P3: Basic PLC Program for SINUMERIK 840D sl
13.13 Block descriptions
Basic Functions
Function Manual, 09/2011, 6FC5397-0BP40-2BA0
1071
Description of formal parameters
The following table shows the formal parameters of the function AG_RECV.
When using the functions AG_SEND and AG_RECV, data is transported to the communication partner via the
Ethernet bus of the CP. The communication partner is configured in STEP 7 in the "NetPro" tool.
The special feature when calling the functions involves the specification of parameter "LADDR" at the named
blocks. In the case of SINUMERIK 840D sl, value W#16#8110 must be connected to parameter "LADDR".
In the basic program, this function is available under the FC number 1006 (this FC corresponds to the FC number
FC 6 in the library "SIMATIC_NET_CP").
The block can also be used in a SIMATIC-CPU 3xx with CP343-1.
The protocols TCP and UDP are supported. TCP is the preferred protocol.
Signal
Typ
e
Type
Value range
Remark
ID
I
INT
Connection ID
LADDR
I
WORD
Module start address (special
SINUMERIK feature; see
description below the table)
RECV
I
ANY
Specifies the address and length.
The address of the data area
alternatively refers to:
• Bit memory address area
• Data block area
NDR
O
BOOL
New data accepted
ERROR
O
BOOL
Error display
STATUS
O
WORD
Status display
LEN
O
INT
Number of bytes accepted into the
data area from the Ethernet CP