![Siemens SIMATIC RF1070R Operating Instructions Manual Download Page 30](http://html.mh-extra.com/html/siemens/simatic-rf1070r/simatic-rf1070r_operating-instructions-manual_375027030.webp)
Programming
6.2 Programming via USB interface
SIMATIC RF1000
30
Operating Instructions, 02/2019, C79000-G8976-C432-04
6.2.1.14
Autoread_GetMessage
This function reads data from a transponder located in the antenna field of the SIMATIC
RF1070R. 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
Parameter
Description
brp_exec_comand
The parameter reads data from a transponder located in the antenna field
of the SIMATIC RF1070R.
Handle
The session key returned by the function "brp_open_usb_session".
devcode
0x05
cmdcode
0x01
param
--
param_len
0x00
timeout
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 1: Message data
resp_len
Current length of the response data in bytes
max_resp_len
Maximum length of the response data
Return value
•
BRP_OK
You will find more information on return values in the section "Return val-