Output DescriptionΒΆ

../_images/9bf62e5df1c5fa800a3313903fac1698

DONE (done)

Data type: BOOL

Output DONE indicates that the read operation is completed.

This output has always to be considered together with the output ERR.

The following states apply:

  • DONE = TRUE and ERR = FALSE

    The read operation is completed. Its contents are indicated at the outputs KEY and VALUE.

  • DONE = TRUE and ERR = TRUE

    An error occurred while reading/searching. Output ERNO signalizes the error number.

ERR (error)

Data type: BOOL

Output ERR indicates whether an error occurred during Function Block processing. This output always has to be considered together with output DONE. If DONE is TRUE and ERR is TRUE, an error occurred. In this case, the error number can be read at output ERNO.

ERNO (error number)

Data type: WORD

Output ERNO provides an error identifier, if an invalid value was applied to an input, or if an error occurred during job processing. ERNO always has to be considered together with the outputs DONE and ERR. The value output at ERNO is only valid, if DONE is TRUE and ERR is TRUE.

The Function Blocks SLOT_CONFIG_READ, SLOT_CONFIG_WRITE and SLOT_PROD_ENTRY_READ are executed in the background by the operating system. This procedures can take quite a long time, since the PLC user program is processed with priority. During this phase ERR=FALSE and DONE=FALSE.

EOS (end of section)

Data type: BOOL

Output EOS indicates whether the end of the section was reached while searching sequentially. This output only must be evaluated, if a search is carried out with INDEX=0 and KEY_SEARCH=0.

KEY (key)

Data type: STRING[20]

Output KEY indicates the found key.

VALUE (value)

Data type: STRING[80]

Output VALUE indicates the value of the found key.

Calling of the SLOT_CONFIG_READ in ST

ConfigRead   (EN         := ConfigRead_EN,

SLOT       := ConfigRead_SLOT,

SECTION    := ConfigRead_SECTION,

KEY_SEARCH := ConfigRead_KEY_SEARCH,

INDEX      := ConfigRead_INDEX,

ACT        := ConfigRead_ACT);

ConfigRead_DONE      := ConfigRead.DONE;

ConfigRead_DONE_ERR  := ConfigRead.ERR;

ConfigRead_ERNO      := ConfigRead.ERNO;

ConfigRead_EOS       := ConfigRead.EOS;

ConfigRead_KEY       := ConfigRead.KEY;

ConfigRead_VALUE     := ConfigRead.VALUE;