Configuration

All supported RFID readers can be configured with the same command. This must be available in the command set for the special reader model.

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

Because the RFID readers from different manufacturers never have identical configuration options, the Plc RFID library offers a substructure for each manufacturer with the specific parameters, in addition to the input configuration structure. (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 command set is used 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 command set is used in order to write an RFID reader configuration.

Following 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:

Note

Certain combinations of configuration parameters are sometimes impermissible. Refer to the RFID reader manufacturer’s proprietary protocol specifications for details of which parameter values are excluded in which combinations. 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 a register (byte array) or a structure. This does not concern the parameterization of the PLC RFID library, but rather the proprietary configuration of the RFID reader. Hence, there are various configuration structures in the PLC RFID library, which process the raw data from the configuration registers of different RFID readers. Both variants are made available at the output ST_RFID_Config of the library function block. This takes place via pointers.

Baltech

The configuration data are used as structure for Baltech RFID readers.

ST_RFID_CfgStruct_BaltechMifVHLFile

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

Balluff

There is no possibility for configuration supported.

Deister

The configuration data can be handled as structure or as register for Deister RFID readers.
If a register (byte array) is used it always has to be defined with the size of the whole configuration data. For the supported Deister RDL devices this is 88 bytes and for the UDL devices 117 bytes.

ST_RFID_CfgStruct_DeisterRDL
ST_RFID_CfgStruct_DeisterUDL

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

Leuze

The configuration data can be handled as structure or as register for Leuze RFID readers.
If a register (byte array) is used it always has to be defined with the size of the whole configuration data. For the supported Leuze devices this is 88 bytes.

ST_RFID_CfgStruct_LeuzeRFM

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

Pepperl+Fuchs

The configuration data are used as structure for Pepperl+Fuchs RFID readers.

ST_RFID_CfgStruct_PepperlFuchsIDENT

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