Output DescriptionΒΆ

../_images/726e8fa2f59ab5d70a3313901c2c79ad

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 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.

Calling of the SLOT_CONFIG_WRITE in ST

ConfigWrite  (EN      := ConfigWrite_EN,

SLOT    := ConfigWrite_SLOT,

SECTION := ConfigWrite_SECTION,

KEY     := ConfigWrite_KEY,

VALUE   := ConfigWrite_VALUE,

ACT     := ConfigWrite_ACT);

ConfigWrite_DONE      := ConfigWrite.DONE;

ConfigWrite_ERR       := ConfigWrite.ERR;

ConfigWrite_ERNO      := ConfigWrite.ERNO;