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

Hide thumbs Also See for SIMATIC RF1000:
Table of Contents

Advertisement

7.2.1.15

Autoread_SetMode (called via "exec_command")

This function controls the "Autoread" functionality during runtime. The memory content of the
cards that enter the antenna field of the reader is automatically read in "Autoread" mode without
an explicit read job. You can specify in your reader configuration whether only the UID or also
explicit memory areas should be read. The read data is output with the "Autoread_GetMessage"
function.
In "Autoread" mode, after a card has been detected by the user, the data must be fetched
using the "Autoread_GetMessage" function within 5 seconds. Otherwise, this data is lost.
Note that in "Autoread" mode, the "vhl_select" function is automatically executed cyclically by
the reader. If the "vhl_select" function is executed from the Demo application as well, this can
result in the card not being recognized when it enters the antenna field of the reader because
it was already read in "Autoread" mode. In addition, the mode is ended with the function call
"vhl_select" in "Autoread" mode. Make sure that the "vhl_select" function is not executed in
addition in "Autoread" mode.
By activating/deactivating the "Autoread" function, the "MessageBuffer" is deleted.
This ensures that no incorrect results are supplied by a subsequent call of the
"Autoread_GetMessage" function when no card is located in the antenna field.
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
);
SIMATIC RF1000
Operating Instructions, 05/2023, C79000-G8976-C432-10
7.2 Programming via USB/RS232 interface (using DLL functions)
Programming
49

Advertisement

Table of Contents
loading

Table of Contents