Output DescriptionΒΆ

../_images/fb8d7a93e38a210d0a33139000eba54e

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 is TRUE and ERR is 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 encoding at output ERNO are explained at the beginning of the library description.

IP_ADR   DWORD    (IP address)

Output IP_ADR displays the resolved IP address of the hostname provided by the input HOSTNAME. Each byte in IP_ADR represents one octet of the address.

Example:

IP address 192.15.24.2,

IP_ADR (hex) 16#C00F1802,

IP_ADR (dec) 3222214658