EasyManua.ls Logo

Siemens SIMATIC S7-1200 - Page 876

Siemens SIMATIC S7-1200
1614 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Communication
11.2 PROFINET
S7-1200 Programmable controller
876 System Manual, V4.2, 09/2016, A5E02486680-AK
Note
Ad hoc mode
The
"ad hoc mode" exists with the TCP and ISO on TCP protocol variants. You set "ad hoc
mode" by assigning "65535" to the LEN parameter. The receive area is identical to the area
formed by DATA. The length of the received data will be output to the parameter
R
CVD_LEN. Immediately after receiving a block of data, TRCV enters the data in the receive
area and sets NDR to 1.
If you store the data in an "optimized" DB (symbolic only), you can receive data only in
arrays of Byte, Char, USInt, and SInt data types.
Note
Importing of S7-300/400 STEP 7 projects containing "ad hoc mode" into the S7-1200
In S7
-300/400 STEP 7 projects, "ad hoc mode" is selected by assigning "0" to the LEN
parameter. In the S7
-1200, you set "ad hoc mode" by assigning "65535" to the LEN
pa
rameter.
If you import an S7
-300/400 STEP 7 project containing "ad hoc mode" into the S7-1200, you
must change the LEN parameter to "65535".
TSEND and TRCV Error and Status condition codes
ERROR
STATUS
Description
0 0000
Send job completed without error (TSEND)
New data accepted: The current length of the received data is shown in RCVD_LEN
(TRCV).
0 7000
No job processing active (TSEND)
Block not ready to receive (TRCV)
0 7001
Start of job processing, data being sent: During this processing the operating sys-
tem accesses the data in the DATA send area (TSEND).
Block is ready to receive, receive job was activated (TRCV).
0 7002
Follow-on instruction execution (REQ irrelevant), job being processed: The operat-
ing system accesses the data in the DATA send area during this processing
(TSEND).
Follow-on instruction execution, receive job being processed: Data is written to the
receive area during this processing. For this reason, an error could result in incon-
sistent data in the receive area (TRCV).
1 8085
LEN parameter is greater than the largest permitted value (TSEND) and (TRCV).
LEN or DATA parameter changed since the first instruction execution (TRCV).
1
8086
The ID parameter is not in the permitted address range.
1
8088
The LEN parameter is larger than the memory area specified in DATA.

Table of Contents

Other manuals for Siemens SIMATIC S7-1200

Related product manuals