Output DescriptionΒΆ

../_images/87e65262e38a219a0a33139000eba54e

DONE   BOOL \    (done)

Output DONE indicates the state of the job processing. After completing or aborting the processing (due to an error), DONE is set to TRUE for one cycle. For that reason, the output always has to be considered together with output ERR. If ERR is TRUE, an error occurred. In this case, the error number can be read at output ERNO.

ERR   BOOL \    (error)

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

ERNO   WORD \    (error \ number)

Output ERNO provides an error identifier if an invalid value was applied to an input or if an error occurred during request 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 error messages Error Messages of the Function Block Libraries encoding at output ERNO are explained at the beginning of the library description.

NUM_SRV   BYTE \    (number \ of servers)

Output NUM_SRV indicates the number of parallel server channels configured with SYCON.net. NUM_SRV is only valid if DONE = TRUE and ERR = FALSE.

RDY   BOOL \    (ready)

RDY indicates the readiness for operation of the OpenModbus on TCP/IP processing. If RDY = TRUE, the server processing as well as the client processing are ready for operation. RDY is only valid if DONE = TRUE and ERR = FALSE.

Output STAT displays the current operating state of the OpenModubus on TCP/IP processing. STAT is only valid if DONE = TRUE and ERR = FALSE.

STAT Meaning
DEC HEX  
     
0 00 Processing not initialized
1 01 Processing initialized and running
2 02 Processing initialization in progress
3 03 Initialization error
4 04 Processing initialized and waiting for TCP task

NUM_ERRS   DWORD \    (number \ of errors)

Output NUM_ERRS displays the number of errors that occurred on the Ethernet Communication Module.

LAST_ERR   WORD \   (lasterror)

LAST_ERR outputs the last error occurred on the Communication Module. The error message encoding at output LAST_ERR applies to all Ethernet Function Blocks and is explained at the beginning of the library descriptions.

Note

The outputs gives the value which has been received directly from the Communication Module. To find this error code inside the list of error messages, the value 0x6000 has to be added to the error value.