Mca527 – GBS Elektronik MCA-166 Communication DLL User Manual
Page 22

MCA527
MCA Query functions:
Name
MMCA_QUERY_USER_DATA
Description
The function reads 32 user data (32 bit values) from the MCA parameter memory.
Declaration
ERROR_FLAG CALLBACK MMCA_QUERY_USER_DATA(unsigned short unNumber,
LPSTR rec_data);
unNumber
Number of the first entry:
MCA166: 0 ... 63
MCA527: 0 … 255
rec_data
Pointer to a QUERRY_USER_DATA structure.
See CMD_QUERY_USER_DATA, mca_comm.h or mca32com.bas.
Return value
See MCA_COMM function
Remarks
Appendix 5 contains additional information about user data.
Name
MMCA_QUERY_POWER
Description
The function reads the MMCA power state.
Declaration
ERROR_FLAG CALLBACK MMCA_QUERY_POWER(LPSTR rec_data);
rec_data
Pointer to a QUERRY_POWER structure.
See CMD_QUERY_POWER, mca_comm.h or mca32com.bas.
Return value
See MCA_COMM function
Name
MMCA_QUERY_STATE
Description
The function reads the MCA state.
Declaration
ERROR_FLAG CALLBACK MMCA_QUERY_STATE(LPSTR rec_data);
rec_data
Pointer to a QUERRY_STATE structure.
See CMD_QUERY_STATE, mca_comm.h or mca32com.bas.
Return value
See MCA_COMM function
Name
MMCA_QUERY_STATE527
Description
The function reads the MCA527 state.
Declaration
ERROR_FLAG CALLBACK MMCA_QUERY_STATE527(LPSTR rec_data);
rec_data
Pointer to a QUERRY_STATE527 structure.
See CMD_QUERY_STATE527, mca_comm.h or mca32com.bas.
(This function converts the 32 bits value at byte offset 12 to year, month, day, hour, minute and second
Return value
See MCA_COMM function
Remarks
This function is only usable for MCA527.
Name
MMCA_QUERY_STATE527_EX
Description
The function reads the extended MCA527 state.
Declaration
ERROR_FLAG CALLBACK MMCA_QUERY_STATE527_EX(LPSTR rec_data);
rec_data
Pointer to a QUERRY_STATE527_EX structure.
See CMD_QUERY_STATE527_EX, mca_comm.h or mca32com.bas.
Return value
See MCA_COMM function
Remarks
This function is only usable for MCA527.
22