Configuration

All supported RFID readers can be configured with the same command. This must be available according to the instruction set for the specific model (see RFID command set).

In addition to the reader version, the current configuration of the reader should also be requested at each program start.

Since RFID readers from different manufacturers never have identical configuration options, in addition to the input configuration structure the TwinCAT RFID library offers a substructure for each manufacturer with the specific parameters (ST_RFID_CfgStruct_DeisterUDL, ST_RFID_CfgStruct_LeuzeRFM,...). The parameters listed there can be parameterized by the user as desired within the limits of the valid ranges of values. The meaning of the parameters is to be taken either from the structure declaration or the proprietary specifications.

Reading the configuration

The GetConfig command from the instruction set is used in order to read the current RFID reader configuration. After that, the configuration data can be taken from the output of the function block if the query was successful. They are available there in the structure ST_RFID_Config both as a configuration structure and as a configuration register.

Changing the configuration

The SetConfig command from the instruction set is used in order to write an RFID reader configuration. After a SetConfig command, the current configuration must be read once with the GetConfig command.

If the user sets further reaching special configuration parameters via an external tool and wants to retain these, then the flag for "Default Values" bUseCfgDefault in the structure ST_RFID_ConfigIn should be deactivated.

Configuration 1:

Invalid combination of configuration parameters

Certain combinations of configuration parameters are sometimes impermissible. You can find out which parameter values are excluded in which combination from the proprietary protocol specifications of the RFID reader manufacturers.

If the parameters are entered incorrectly, then either an error will be generated even before the configuration query, or the RFID reader signals by its response that the configuration data could not be adopted.

Configuration data

Each configuration can be seen as a register (byte array) or as a structure. This is not the parameterization of the TwinCAT RFID library but the proprietary configuration of the RFID reader. The TwinCAT RFID library contains various configuration structures, which process the raw data of the configuration registers of different RFID readers. If available, both variants are provided in ST_RFID_Config at the output of the library function block. This takes place via pointers.

Baltech

The configuration data is used as a structure for Baltech RFID readers.

The structure is suitable for writing with the eRFC_SetConfig command (see RFID command set).

Balluff

No configuration options are offered.

Deister

The configuration data can be used for Deister RFID readers both as a structure and as a register.

If a register array (byte array) is used, it must always have the size of the complete configuration data. For the supported Deister RDL devices this is 88 bytes, for the UDL devices 117 bytes.

The structures are suitable for writing with eRFC_SetConfig and reading with eRFC_GetConfig (see RFID command set).

Leuze

For Leuze RFID readers the configuration data can be used as a structure and as a register.

If a register array (byte array) is used, it must always have the size of the complete configuration data. For supported Leuze devices this is 88 bytes.

The structure is suitable for writing with eRFC_SetConfig and reading with eRFC_GetConfig (see RFID command set).

Pepperl+Fuchs

For Pepperl+Fuchs RFID readers the configuration data are used as a structure.

The structure is suitable for reading with eRFC_GetConfig (see RFID command set).