P3: Basic PLC program for SINUMERIK 840D sl
13.17 Block descriptions
Signal
SEND:
LEN:
DONE:
ERROR:
STATUS:
1) Parameter ACT must be TRUE long enough until the following applies: (DONE == 1) OR (ERROR
== 1)
2) For SINUMERIK 840D sl: Parameter LADDR := W#16#8110
Documentation
A detailed module description can be found in:
● SINUMERIK user interfaces: Online help
● SIMATIC Programming Manual: Program blocks for SIMATIC NET S7-CPs
Chapter: "Program blocks for Industrial Ethernet" > "Program blocks for open
communication services (SEND/RECEIVE interface)" > "AG_SEND / AG_LSEND /
AG_SSEND"
13.17.31
FC1006: AG_RECV - receives data from the Ethernet CP
Function
The function block AG_RECV receives data transferred via a configured connection from the
Ethernet CP. Together with the AG_SEND function block, data exchange can be established
with another station via the integrated "CP 840D sl." This station must be configured in STEP 7,
"NetPro."
In the basic program, this function is available as a function block FC1006. This is roughly
equivalent to function block FC6 in the "SIMATIC_NET_CP" library.
The TCP, UDP, and ISO-on-TCP protocols are supported.
Note
Smaller volume of transmittable data with SINUMERIK CP and UDP or ISO-on-TCP protocol
For SINUMERIK CP, only 240 bytes can be transmitted when function block FC1006 and the
UDP or ISO-on-TCP protocol are used.
1062
Typ
Type
Value range
e
I
ANY
I
INT
TCP: 1, 2, ... 8192
UDP: 1, 2, ... 240
ISO-on-TCP: 1, 2. ... 240
O
BOOL
0 (FALSE), 1 (TRUE)
O
BOOL
0 (FALSE), 1 (TRUE)
O
WORD
Description
-
Specifies the address and length.
The address of the data area alter‐
natively refers to:
● Bit memory address area
● Data block area
Number of bytes that are transmitted
0: Job running
1: Job executed
0: No error
1: An error is active
-
Status display
Function Manual, 01/2015, 6FC5397-0BP40-5BA2
Basic Functions