Output DescriptionΒΆ

DONE   BOOL \    (done)

Output DONE indicates that the user data of a data package were copied consecutively from the receive buffer to the memory area of the variable specified at DATA or that the Function Block processing was aborted due to an occurred error. This is why the output has always to be considered together with output ERR.

Output DONE is set to TRUE for one cycle.

The following applies:

DONE = FALSE

ERR = xxx:

The data package was not read from the receive buffer.

DONE = TRUE

ERR = FALSE:

The data package was successfully read from the receive buffer.

DONE = TRUE

ERR = TRUE:

An error occurred while reading the user data from the receive buffer. The user data were not copied to the area specified at DATA . The error can be evaluated 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.

Output ERR is set to TRUE for one cycle.

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.

IP_ADR   DWORD \    (IPaddress)

Output IP_ADR displays the IP address of the sending device which transmitted the received data package. 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

LEN   WORD \    (length)

Output LEN displays the length of the received data package in bytes.

LEV_BY   WORD \    (level \ in bytes)

Output LEV_BY displays the filling level of the receive buffer in bytes. The displayed value is updated as long as EN is TRUE and applies to the input values read with the rising edge at input EN.

One data package occupies output LEN + 6 bytes in the receive buffer (4 bytes for the IP address of the sending device, 2 bytes for the specification of the length).

LEV_DS   WORD \    (level \ in data \ sets)

Output LEV_DS displays the filling level of the receive buffer in data records. The displayed value is updated as long as EN is TRUE and applies to the input values read with the rising edge at input EN.