ST_RFID_CfgStruct_DeisterUDL

TYPE ST_RFID_CfgStruct_DeisterUDL :
STRUCT
    ePollingMode        : E_RFID_PollingMode    := eRFPO_PollingMode;   (* CMD: 0x0A  OR    Byte 32, Bit 5  *)
    eTriggerMode        : E_RFID_TriggerMode    := eRFTR_ImmediateRead; (* Byte 15, Bit 1       *)
    eOpMode             : E_RFID_OpMode     := eRFOP_ReadSerialNumber;      (* Byte 15, Bit 6,7     *)
    eTranspType         : E_RFID_TranspType       := eRFTT_EPC1Gen2;          (* Byte 33 *)

    tOutputPulseTime    : TIME          := T#300ms;         (* Byte 38 and 39 *)
    bOutputLevel    : BOOL;                     (* TRUE = high; FALSE = low *)

    iReserved           : USINT;

    iCountBlocksRead    : USINT         := 1;           (* Byte 41 *)
    iCountBlocksWrite   : USINT         := 1;           (* Byte 43 *)

    iStartBlockRead     : UINT          := 0;           (* Byte 40 *)
    iStartBlockWrite    : UINT          := 0;           (* Byte 42 *)
    arrWriteData        : ARRAY [0..31] OF BYTE;                (* Byte 44 - 75 *)
END_STRUCT
END_TYPE

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.

ST_RFID_CfgStruct_DeisterUDL 1:

As previously mentioned, attention must be paid to the difference between polling and triggering if necessary. In addition it must be considered in this context that the TriggerMode can nevertheless be present in addition to the PollingMode.

ePollingMode

If eRFPO_PollingMode is set, the RFID device sends data only on request. [default]

If eRFPO_ReportMode is set, the RFID device can transfer data automatically at any time.

TYPE E_RFID_PollingMode :( eRFPO_ReportMode, eRFPO_PollingMode );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 module interface for further processing.

TYPE E_RFID_TriggerMode : ( eRFTR_ImmediateRead, eRFTR_ReadWithTrigger );END_TYPE

eOpMode

These operating modes are only available with certain transponder types.

If eRFOP_WriteData is set, a write access is executed as soon as a transponder is detected.
If eRFOP_ReadData is set, a read access is executed as soon as a transponder is detected.
If eRFOP_ReadSerialNumber is set, no action is executed. The polling command provides the serial number. [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 possibe at all RFID Reader types. *) );END_TYPE

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_EPC1Gen1
eRFTT_EPC1Gen2

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.

bOutputLevel

bOutputLevel is used to influence the control of the optional digital output. After a successful read operation the output can be set to HighLevel (bOutputLevel=TRUE) or LowLevel (bOutputLevel=FALSE).

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. The block size depends on the transponder type.

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. The block size depends on the transponder type.

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 32 bytes.

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