ST_RFID_CfgStruct_LeuzeRFM

The structure is suitable for writing with eRFC_SetConfig and reading with eRFC_GetConfig. (see command set)
This does not concern the parameterization of the PLC RFID library, but rather the proprietary configuration of the RFID reader.

TYPE ST_RFID_CfgStruct_LeuzeRFM :
STRUCT
    eOpMode            : E_RFID_OpMode     := eRFOP_ReadData;
    eTriggerMode       : E_RFID_TriggerMode    := eRFTR_ImmediateRead;
    eReadMode          : E_RFID_ReadMode       := eRFRD_SingleShot;
    eWriteMode         : E_RFID_WriteMode      := eRFWR_ImmediateWrite;

    eNetworkMode       : E_RFID_NetworkMode    := eRFNM_Network;
    bAFI               : BOOL          := FALSE;       (* not implemented; ready for future extention *)
    iAFI               : BYTE;                 (* not implemented; ready for future extention *)

    bSerialNumberMode  : BOOL          := FALSE;
    bMultiTranspMode   : BOOL          := FALSE;
    bOutputAutomatic   : BOOL          := TRUE;
    iBlockSize         : USINT         := 8;

    tOutputPulseTime   : TIME          := T#300ms;

    eTranspType        : E_RFID_TranspType     := eRFTT_TagItHfi;

    iCountBlocksRead   : USINT         := 1;
    iCountBlocksWrite  : USINT         := 1;

    iStartBlockRead    : UINT          := 16#4000;
    iStartBlockWrite   : UINT          := 5;
    arrWriteData       : ARRAY [0..71] OF BYTE;
END_STRUCT
END_TYPE

eOpMode

This operating mode defines which function is triggered by a trigger pulse.

The command eRFC_TriggerOn or a pulse at the optional trigger input triggers the action set here.

If eRFOP_WriteData is set, a write access is executed.
If eRFOP_ReadData is set, a read access is executed. [default]

The answer telegram that follows 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 function block interface for further processing.

TYPE E_RFID_OpMode : ( eRFOP_WriteData, eRFOP_ReadData, eRFOP_ReadSerialNumber (* This option is not possible at all RFID Reader types. *) );END_TYPE

eTriggerMode

If eRFTR_ImmediateRead is set, the device is always ready to read. This setting means that the trigger condition always applies. [default]

If eRFTR_ReadWithTrigger is set, the device only reads if the trigger condition is met. The eRFC_TriggerOn command can be used for this purpose. (see command set)

The answer telegram that follows 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 function block interface for further processing.

TYPE E_RFID_TriggerMode : ( eRFTR_ImmediateRead, eRFTR_ReadWithTrigger );END_TYPE

eReadMode

If eRFRD_ContinuousRead is set, the device reads continuously and continuously outputs read data.

If eRFRD_SingleShot is set, the device reads precisely once. [default]

TYPE E_RFID_ReadMode : ( eRFRD_ContinuousRead, eRFRD_SingleShot );END_TYPE

eWriteMode

If eRFWR_ImmediateWrite is set, the transponder must be in the field in order to execute a write or read command correctly. [default]

If eRFWR_WriteToNextTag is set, the data from a write command is written to the next transponder. ('Preload')

TYPE E_RFID_WriteMode : ( eRFWR_ImmediateWrite, eRFWR_WriteToNextTag );END_TYPE

eNetworkMode

If eRFNM_Network is set, several devices can be integrated in an RS485 network. [default]

If eRFNM_StandAlone is set, the device is in stand-alone mode.

The library does not support the operation of several devices within an RS485 network.

TYPE E_RFID_NetworkMode :( eRFNM_Network, eRFNM_StandAlone );END_TYPE

bSerialNumberMode

If bSerialNumberMode is TRUE, the serial number is also transferred with write and read commands.
By default, this corresponds to the last transponder serial number detected with the GetInventory command. Otherwise, the transponder serial number is specified in ST_RFID_Control.

bMultiTranspMode

If bMultiTranspMode is TRUE, anti-collision is active if several transponders are in the field.

bOutputAutomatic

If bOutputAutomatic is TRUE, the switching output is switched automatically.

iBlockSize

The block size can be set as 4 bytes or 8 bytes.
It must match the block size used for reading and writing in ST_RFID_AccessData.

tOutputPulseTime

tOutputPulseTime is used to configure the action time of the output. The pulse duration of the optional output signal can be set between 30 ms and 9000 ms.

eTranspType

If the RFID device is to detect only transponders of a certain type, this can be set with eTranspType. No restriction is made with the value 16#FE.
The following values are possible:
eRFTT_ICode
eRFTT_STmLRI512
eRFTT_TagIt
eRFTT_ICodeSli
eRFTT_InfineonSRF55
eRFTT_Inside
eRFTT_TagItHfi

iCountBlocksRead

iCountBlocksRead is used to configure the number of blocks that are to be read automatically. The product with iBlockSize provides the number of bytes. The maximum number of blocks is between 4 and 9, depending on the block size and other settings.

iCountBlocksWrite

iCountBlocksWrite is used to configure the number of blocks that are to be written automatically. The product with iBlockSize provides the number of bytes. The maximum number of blocks is between 4 and 9, depending on the block size and other settings.

iStartBlockRead

iStartBlockRead is used to configure the start address for automatic reading.

iStartBlockWrite

iStartBlockWrite is used to configure the start address for automatic writing.

arrWriteData

Write data are limited to a maximum of 72 bytes.

ST_RFID_CfgStruct_LeuzeRFM 1:

Certain combinations of values are not permitted. The existing dependencies are defined in the proprietary manufacturer's specification. An attempt to write an invalid configuration will result in error eRFERR_InvalidCfg, or the RFID device receives an error code.

Further information regarding the RFID reader configuration can be found in chapter Configuration.