Autoread_Getmessage - Siemens SIMATIC RF1000 Series Operating Instructions Manual

Simatic ident
Hide thumbs Also See for SIMATIC RF1000 Series:
Table of Contents

Advertisement

Programming
6.2 Programming via USB interface
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
Parameter
brp_exec_comand
Return value
30
Description of the parameters
Description
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
codes (Page 43)".
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
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 31)".
Operating Instructions, 02/2019, C79000-G8976-C432-04
SIMATIC RF1000

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic rf1060rSimatic rf1070r

Table of Contents