ST_RFID_CfgStruct_DeisterUDL
The structure is suitable for writing with eRFC_SetConfig and reading with eRFC_GetConfig (see RFID command set).
This is not the parameterization of the TwinCAT RFID library but the proprietary configuration of the RFID reader.
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
If applicable, the difference between polling and trigger must be taken into account. In addition it must be considered in this context that the TriggerMode can nevertheless be present in addition to the PollingMode.
Name | Description |
---|---|
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 :( |
eTriggerMode | If eRFTR_ImmediateRead is set, the device is always ready to read. With this setting, the trigger condition is always considered met [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 (see RFID command set). The subsequent response telegram is received by the function block of the TwinCAT 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 : ( |
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 returns the serial number [default]. The subsequent response telegram is received by the function block of the TwinCAT 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 : ( |
eTranspType | If the RFID device is to detect only transponders of a certain type, this can be set with eTranspType. The value 16#FE is used for unlimited options. The following values are possible (E_RFID_TranspType): eRFTT_EPC1Gen1 |
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 on the RFID reader configuration process is summarized in section Configuration.
Requirements
Development Environment |
Target Platform |
PLC Libraries to include |
---|---|---|
TC3.1.4013 |
PC or CX (x86, x64) |
Tc2_RFID |