Siemens SIMATIC NET S7-300 Manual page 206

Cps for industrial ethernet
Hide thumbs Also See for SIMATIC NET S7-300:
Table of Contents

Advertisement

7 Programming FCs (Functions) and FBs for S7 Ethernet CPs
FC6 AG_RECV / FC60 AG_LRECV - continued
Parameter
Declaratio
n
LEN
OUTPUT
Condition Codes
The following table shows the codes formed by the DONE, ERROR and STATUS
parameters that must be evaluated by the user program.
Note
For entries coded with 8Fxx
Standard and System Functions reference manual. The chapter describing error
evaluation with the RET_VAL output parameter contains detailed information.
To find out which SFCs are used and are relevant for error evaluation, display the
properties dialog of the FC described here in the "Calls" tab.
Table 7-3
AG_RECV / AG_LRECV Codes
NDR
ERROR
1
0
0
0
0
0
0
1
0
1
0
1
A -206
Type
Possible
Values
INT
On ISO
Transport and
ISO-on-TCP:
1,2...8192
On UDP:
1,2...2048
in STATUS, refer to the information in the STEP 7
H
STATUS
0000
New data accepted.
H
8180
No data available yet.
H
8181
Job active.
H
S
8183
The configuration is missing;
H
S
The ISO transport service has not yet started on the Ethernet
CP;
S
The connection is not established.
S
8184
Illegal type specified for the RECV parameter;
H
S
System error.
8185
Destination buffer (RECV) is too short.
H
Remarks
Specifies the number of bytes accepted from
the Ethernet CP and entered in the data area.
S
Note the block type:
-
S7-300
With older versions of FC AG_RECV (up
to V3.0), the data area is always
restricted to a maximum of 240 bytes.
The current versions allow up to 8192
bytes (2048 bytes for UDP).
-
S7-400
With FC AG_RECV, the data area is
restricted to a maximum of 240 bytes.
Meaning
S7-CPs for Industrial Ethernet Configuring and Commissioning
Release 01/2007
C79000-G8976-C182-07

Advertisement

Table of Contents
loading

Table of Contents