Leuze RFID reader
Settings of the RFID reader
For smooth communication between controller and RFID readers, some settings need to be made before the system startup. These include, for example, the baud rate for the serial communication. A proprietary tool from the manufacturer of the RFID reader may be required to transfer these settings to the RFID.
This standard setting for data communication has proven itself for all supported RFID reader models:
Setting | Value |
---|---|
Baud rate (RS232 and RS485) | 9600 baud |
Parity Bit | none |
Data bits | 8 |
Stop bit | 1 |
Depending on the hardware, other parameters can also be adjusted if necessary or the default settings of the RFID reader can be used. These must then also be adopted into the reader connection on the software side.
The following special settings may need to be parameterised using the proprietary tools before the system startup.
Setting | Value |
---|---|
Data transmission parameters (see above) | Setting analogous to the values selected in the PLC program |
If the RFID reader should be activated by means of a trigger, then the ensuing response telegram is received by the function block of the Tc RFID library. There is no assignment of read transponder data in this case. The received raw data can be taken from the block interface for further processing.
Handling of the RFID reader
The block size corresponding to the tag must be configured in the RFID reader configuration.
The Leuze devices support 4 bytes or 8 bytes block size.
Example: if a block size of 8 bytes is specified for the transponder, then the reader must be configured with the parameter iBlocksize:=8 and the read or write access via the structure ST_RFID_AccessData must take place with an 8-byte block size.
A write command can write up to 36 bytes of data at a time. If more data is to be written to the transponder, it must be divided into several commands.
![]() | Not all peculiarities of each supported RFID reader model can be mentioned here. Therefore you are referred to the manufacturer’s own documentation for more detailed information. |
Configuration
Is a new configuration written to the RFID device (command 'SetConfig') the following has to be attended:
Some combinations of configuration parameters (structure ST_RFID_CfgStruct_LeuzeRFM) are invalid. Disregard of these dependencies leads to an error (eRFERR_InvalidCfg).
configuration parameter | required dependencies |
---|---|
eReadMode = eRFRD_ContinuousRead | eTriggerMode = eRFTR_ImmediateRead |
eWriteMode = eRFWR_WriteToNextTag | eTriggerMode = eRFTR_ReadWithTrigger |
bMultiTranspMode = TRUE | bSerialNumberMode = TRUE |
These dependencies also exist if the configuration is transferred as register. The RFID device will return an error code in case of conflicts.