Useful information about the PC Worx software
8482_en_03 PHOENIX CONTACT 105
Output parameters
Input/output parameters
ADD_ERROR input/output
(ERROR = TRUE)
Table 7-4 Outputs of the ETH_SEND function block
Name Data type Description
DONE BOOL
TRUE: The function block was executed.
The Ethernet telegram was sent.
The TRUE status is valid for each
PLC cycle.
FALSE: The Ethernet telegram was not
sent.
ERROR BOOL
TRUE: An error has occurred
The Ethernet telegram was sent.
The TRUE status is valid for each
PLC cycle.
The ADD_ERROR input provides
error details (see Table 7-5).
FALSE: No error has occurred
Table 7-5 Inputs/outputs of the ETH_SEND function block
Name Data type Description
ADD_ERROR ARRAY [0...1] OF
WORD
The first word of the array contains the error
class. The error class is always 0x09B0
(ERR_FB_ERROR.)
The second word contains the error code of
the error that has occurred (ERROR output =
TRUE), see Table 7-6.
ETH_PDU_DATA ARRAY [0...1517]
OF BYTE
Ethernet frame to be sent
Table 7-6 Error codes of the "ADD_ERROR" input/output (ERROR output = TRUE)
Value Description
0x01 ERR_ADDE_FB_ETH_PDU_INVALID_TYPE
Incorrect data type at the ETH_PDU_DATA input/output.
ARRAY data type required
0x02 ERR_ADDE_FB_ETH_PDU_NO_BYTE_ARRAY_TYPE
Incorrect data type at the ETH_PDU_DATA input/output.
Permissible data type: ARRAY [0...1517] OF BYTE