
Useful information about the PC Worx software
8482_en_03
PHOENIX CONTACT
107
Output parameters
Input/output parameters
ADD_ERROR input/output
(ERROR = TRUE)
Table 7-8
Outputs of the ETH_RECV function block
Name
Data type
Description
NDR
BOOL
Indicates whether an Ethernet telegram was
received
TRUE:
An Ethernet telegram was re-
ceived.
FALSE:
No Ethernet telegram was re-
ceived.
ERROR
BOOL
TRUE:
An error has occurred. The Ether-
net telegram was not received. The
TRUE status is valid for each PLC
cycle.
The ADD_ERROR input provides
error details (see Table 7-10).
FALSE:
No error has occurred.
ETH_PDU_LEN
INT
Total length of the received Ethernet telegram
Table 7-9
Inputs/outputs of the ETH_RECV function block
Name
Data type
Description
ADD_ERROR
ARRAY [0...1] OF
WORD
Error code of the error that has occurred
(ERROR output = TRUE)
ETH_PDU_DATA
ARRAY [0...1517]
OF BYTE
Received Ethernet frame
Table 7-10
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
0x03
ERR_ADDE_FB_ETH_PDU_INVALID_SIZE
Invalid Ethernet frame length at the ETH_PDU_DATA input/output.
Permissible length: 18 ... 1518 Bytes