7 Programming FCs (Functions) and FBs for S7 Ethernet CPs
A-205
S7-CPs for Industrial Ethernet Configuring and Commissioning
Release 01/2007
C79000-G8976-C182-07
Explanation of the Formal Parameters
The following table explains all the formal parameters for the AG_RECV /
AG_LRECV function.
Parameter Declaratio
n
Type Possible
Values
Remarks
ID INPUT INT 1,2...64
(S7-400)
1,2...16
(S7-300)
The connection number of the ISO transport
connection is specified in the ID parameter
(See Configuration Section 5.3.1)
LADDR INPUT WORD Module base address
When you configure the CP with STEP 7
hardware configuration, the module base
address is displayed in the configuration table.
Specify this address here.
RECV INPUT ANY Specifies the address and length.
The address of the data area refers to one of
the following:
- Bit memory
- Data block area
Note on length:
Performance is improved when transferring
data records up to 212 bytes if you also restrict
the length to 212 with the RECV parameter.
NDR OUTPUT BOOL 0: -
1: new data
This parameter indicates whether new data
were received.
For the meaning of this parameter in
conjunction with the ERROR and STATUS
parameters, refer to the following table.
ERROR OUTPUT BOOL 0: -
1: error
Error code
For the meaning of this parameter in
conjunction with the DONE and STATUS
parameters, refer to the following table.
STATUS OUTPUT WORD see following
table
Status code
For the meaning of this parameter in
conjunction with the NDR and ERROR
parameters, refer to the following table.
FC6 AG_RECV / FC60 AG_LRECV - continued