Autoread_Getmessage(Called Via "Exec_Comand") - Siemens SIMATIC RF1000 Operating Instructions Manual

Hide thumbs Also See for SIMATIC RF1000:
Table of Contents

Advertisement

Parameter
Return value
6.2.1.16

Autoread_GetMessage(called via "exec_comand")

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- 18
Parameter
brp_exec_comand
SIMATIC RF1000
Operating Instructions, 02/2020, C79000-G8976-C432-07
6.2 Programming via USB/RS232 interface (using DLL functions)
Description
param_len
0x01
timeout
Time in [ms] until the action is aborted (500 is the recommended value).
Status
OK
You will find more information on the reader status in the section "Status
codes (Page 55)".
resp
Buffer for the received data
resp_len
Current length of the response data in bytes
max_resp_len
Maximum length of the response data
BRP_OK
You will find more information on return values in the section "Return val-
ues (Page 40)".
Description of the parameters
Description
This function call reads data from the transponder located in the antenna
field.
Handle
The session key returned by the "brp_open_usb_session" or
"brp_open_serial_session" function.
devcode
0x05
cmdcode
0x01
param
--
param_len
0x00
timeout
Time in [ms] until the action is aborted (100 is the recommended value).
Programming
39

Advertisement

Table of Contents
loading

Table of Contents