Programming
6.2 Programming via USB interface
SIMATIC RF1000
34 Operating Instructions, 11/2019, C79000-G8976-C432-06
6.2.1.14 Autoread_GetMessage
This function reads data from a transponder located in the antenna field. Up to 16 bytes of
data can be read autonomously with this function.
Function call
int
brp_exec_comand(
int Handle,
byte devcode,
byte cmdcode,
byte * param,
byte param_len,
init timeout,
init * Status,
byte * resp,
int * resp_len,
init max_resp_len
);
Table 6- 16 Description of the parameters
The parameter reads data from a transponder located in the antenna field.
The session key returned by the function "brp_open_usb_session".
Time in [ms] until the action is aborted (100 is the recommended value).
Status
• OK
• ERR_NOMESSAGE
• ERR_AR_DISABLED
You will find more information on the reader status in the section "Status
resp Buffer for the received data
• Byte 0: Message type (0x00 for card identification)
• Byte 1: Message length in bytes
• Byte 2: ... message length +1: Message data
Current length of the response data in bytes
Maximum length of the response data
Return value
• BRP_OK
You will find more information on return values in the section "Return val-