ST_RFID_ConfigIn

TYPE ST_RFID_ConfigIn :
(* defines the configuration input parameters.
Tha data can be set via Config structure or Config register.
Different RFID Reader in different ReaderGroups can differ in their configuration data. *)
STRUCT
    pCfg            : DWORD;            (* pointer to config structure or register *)
    iCfgSize        : UINT  := 0;       (* size in bytes of the structure or register *)

    bUseCfgReg      : BOOL  := FALSE;           (* Set Config via Register instead of CfgStructure *)
    bUseCfgDefault  : BOOL  := TRUE;        (* Set Config using default parameters beside CfgStructure *)

    (*      An additional option to demand/set a specific config parameter without transmission of the whole config register. Not possible at all reader models.
        Set a desired value before calling GetConfig/SetConfig or keep the default for full register request. *)
    iRegIdx         : UINT  := 0;
    iRegGroup       : USINT := 0;       (* 0:full register; 1:reg.00-0F; 2:single register *)

    bReserved           : BOOL;
END_STRUCT
END_TYPE

At the input of the RFID function block, this structure provides the possibility to transfer an arbitrary configuration to the RFID reader.
The RFID reader configuration last read is specified at the output with the structure ST_RFID_Config. Supplementary information about configurations can be found in its description.
Configuration data can be available in the form of a specific configuration structure (ST_RFID_CfgStruct_DeisterUDL, ST_RFID_CfgStruct_LeuzeRFM,…) or also in the form of a configuration register (byte array). This selection can be made with the variable bUseCfgReg.

Further information on RFID reader configuration is summarized in the Configuration chapter.

Baltech:

pCfg

This pointer must contain the memory address of the configuration to be written. This must be the configuration structure ST_RFID_CfgStruct_BaltechMifVHLFile.

iCfgSize

This input variable indicates the length in bytes of the configuration data specified via the pointer.

Deister:

pCfg

This pointer must contain the memory address of the configuration to be written. This can be both a configuration structure and a configuration register.

iCfgSize

This input variable indicates the length in bytes of the configuration data specified via the pointer.

bUseCfgReg

If the input variable bUseCfgReg is set (TRUE), then a configuration register (byte array) can be addressed via the pointer pCfg instead of a configuration structure. By default a specific configuration structure is specified.

bUseCfgDefault

This parameter is relevant only if the configuration data is present in the form of a specific configuration structure. A configuration structure is not specifically an overall representation of the configuration register. The structure contains only the most important configuration parameters. If the input variable bUseCfgDefault is set (TRUE), then default values are used for the unspecified configuration parameters. Otherwise the value of this configuration parameter is not changed, because the last read values are reused.

Leuze:

pCfg

This pointer must contain the memory address of the configuration to be written. This can be both a configuration structure and a configuration register.

iCfgSize

This input variable indicates the length in bytes of the configuration data specified via the pointer.

bUseCfgReg

If the input variable bUseCfgReg is set (TRUE), then a configuration register (byte array) can be addressed via the pointer pCfg instead of a configuration structure. By default a specific configuration structure is specified.

bUseCfgDefault

This parameter is relevant only if the configuration data is present in the form of a specific configuration structure. A configuration structure is not specifically an overall representation of the configuration register. The structure contains only the most important configuration parameters. If the input variable bUseCfgDefault is set (TRUE), then default values are used for the unspecified configuration parameters. Otherwise the value of this configuration parameter is not changed, because the last read values are reused.

The following configuration variant is available only for Leuze electronic RFID readers.

iRegIdx

If a special index is specified on iRegIdx, then exclusively this index of the configuration register is changed/read. To this end, iRegGroup must additionally be specified as a single register.

iRegGroup

Three values are available: 0 to change/read the entire configuration register; 1 to change/read the indices 16#00-16#0F of the register; 2 to change/read an individual index of the register, whereby this must be specified with iRegIdx.