AXC 1050 (XC)
106
PHOENIX CONTACT 8482_en_03
7.11.2.2 ETH_RECV function block
The function block receives Ethernet frames from one or more communication partners. A
maximum of ten instances of the function block are permitted.
Function block
Figure 7-25 ETH_RECV function block
Input parameters
0x03 ERR_ADDE_FB_ETH_PDU_INVALID_SIZE
Invalid Ethernet frame length at the ETH_PDU_DATA input/output.
Permissible length: 18 ... 1518 Bytes
0x04 ERR_ADDE_FB_ETH_LEN_INVALID
The Ethernet telegram length input at the ETH_PDU_LEN input is larger than
the buffer storage unit of the ETH_PDU_DATA input/output.
0x06 ERR_ADDE_FB_ETH_SEND_ERROR
An error occurred when sending the Ethernet frame.
Table 7-6 Error codes of the "ADD_ERROR" input/output (ERROR output = TRUE)
Value Description
Table 7-7 Inputs of the ETH_RECV function block
Name Data type Description
EN_R BOOL The function block is activated on a positive
edge at this input and waits for incoming
Ethernet telegrams.
ETH_TYPE UINT Type field (EtherType) of the Ethernet tele-
gram to be received
Please note:
– The type field 0x0600 must be used to re-
ceive Ethernet I-frames.
– The type fields 0x0800 (IP) and 0x0806
(ARP) are not permitted for the function
block. Ethernet frames with these type
fields cannot be received.