ST_RFID_Config
The structure indicates the RFID reader configuration that was last read. This is not the parameterization of the TwinCAT RFID library but the proprietary configuration of the RFID reader. This can be queried with the eRFC_GetConfig command (see RFID command set).
Each configuration can be seen as a register (byte array) or as a structure. Hence, there are various configuration structures in the TwinCAT RFID library (ST_RFID_CfgStruct_DeisterUDL, ST_RFID_CfgStruct_LeuzeRFM,…), which process the raw data from the configuration registers of different RFID readers. Both variants are made available at the output of the library function block. This takes place via pointers. For further evaluation, the MEMCPY () function can be used with the specified data length in bytes.
(* defines the configuration as structure and register.
Different RFID Reader in different ReaderGroups can differ in their configuration data. *)
TYPE ST_RFID_Config :
STRUCT
pCfgStruct : POINTER TO BYTE; (* pointer to config structure *)
pCfgReg : POINTER TO BYTE; (* pointer to config register *)
iCfgStructSize : UINT := 0; (* size in bytes of the structure *)
iCfgRegSize : UINT := 0; (* size in bytes of the register *)
END_STRUCT
END_TYPE
Name | Description |
---|---|
pCfgStruct | This pointer indicates the memory address of the specific configuration structure. |
pCfgReg | This pointer indicates the memory address of the specific configuration register. |
iCfgStructSize | This output variable indicates the length in bytes of the specific configuration structure. |
iCfgRegSize | This output variable indicates the length in bytes of the specific configuration register. If iCfgRegSize = 0, the configuration data is not available as a register (byte array). |
Further information on RFID reader configuration is summarized in section Configuration.
Requirements
Development Environment |
Target Platform |
PLC Libraries to include |
---|---|---|
TC3.1.4013 |
PC or CX (x86, x64) |
Tc2_RFID |