ST_RFID_CfgStruct_LeuzeRFM
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_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
Name | Description |
---|---|
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. 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 : ( |
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 : ( |
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 : ( |
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 : ( |
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 :( |
bSerialNumberMode | If bSerialNumberMode is TRUE, the serial number is transferred with write and read commands. By default this is the last transponder serial number detected with the command GetInventory. Otherwise the transponder serial number is specified in ST_RFID_Control. |
bMultiTranspMode | If bMultiTranspMode is TRUE, anti-collision is active when several transponders are in the field. |
bOutputAutomatic | If bOutputAutomatic is TRUE, the switching output is switched automatically. |
iBlockSize | The block size can be set to 4 or 8 bytes. It must match the block size set 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. The value 16#FE is used for unlimited options. The following values are possible (E_RFID_TranspType): eRFTT_ICode |
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. |
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 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 |