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

Hide thumbs Also See for SIMATIC RF1000:
Table of Contents

Advertisement

Programming
7.2 Programming via USB/RS232 interface (using DLL functions)
Table 7-17
Parameter
brp_exec_command
 
Return value
7.2.1.16

Autoread_GetMessage (called via "exec_command")

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_command(
int Handle,
byte devcode,
byte cmdcode,
byte * param,
byte param_len,
init timeout,
init * Status,
byte * resp,
int * resp_len,
init max_resp_len
);
50
Description of the parameters
Description
The parameter activates/deactivates the "Autoread" function.
Handle
The session key returned by the "brp_open_usb_session" or "brp_open_seri‐
al_session" function.
devcode
0x05
cmdcode
0x00
param
Buffer for the function parameters:
0x00: The "Autoread" functionality is deactivated and VHL functions can be
used.
0x01: The "Autoread" functionality is permanently switched on. There is a
permanent check as to whether a card is located in the antenna field.
0x02: The "Autoread" functionality is executed once as soon as a card
enters the antenna field. This is followed by a switch to VHL mode. The card
identification is executed one more time with another call using the pa‐
rameter value 0x02.
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 66)".
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 values
(Page 52)".
Operating Instructions, 05/2023, C79000-G8976-C432-10
SIMATIC RF1000

Advertisement

Table of Contents
loading

Table of Contents