Output DescriptionΒΆ

../_images/60aca731f5e7e9560a3313901150993d

DONE (done)

Data type: BOOL

Operation done = TRUE, as long as EN = TRUE

Output DONE indicates the state of job processing. If the processing is finished, DONE is set to TRUE.

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 functions CPU_CONFIG_READ, CPU_CONFIG_WRITE and CPU_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_PROD_ENTRY_READ in ST

CPU_PROD_ENTRY_READ(EN := EN_CPU_PROD_ENTRY_READ,

SECTION := SECTION_CPU_PROD_ENTRY_READ,

KEY_SEARCH := KEY_SEARCH_CPU_PROD_ENTRY_READ,

INDEX := INDEX_CPU_PROD_ENTRY_READ,

ACT := ACT_CPU_PROD_ENTRY_READ);

DONE_CPU_PROD_ENTRY_READ := CPU_PROD_ENTRY_READ.DONE;

ERR_CPU_PROD_ENTRY_READ  := CPU_PROD_ENTRY_READ.ERR;

ERNO_CPU_PROD_ENTRY_READ := CPU_PROD_ENTRY_READ.ERNO;

EOS_CPU_PROD_ENTRY_READ  := CPU_PROD_ENTRY_READ.EOS;

KEY_CPU_PROD_ENTRY_READ  := CPU_PROD_ENTRY_READ.KEY;

VALUE_CPU_PROD_ENTRY_READ:= CPU_PROD_ENTRY_READ.VALUE;