Hide thumbs Also See for S7-1200:
Table of Contents
Communication processor and Modbus TCP
12.3 Point-to-point (PtP) communication
End conditions for the RCV_PTP instruction
The end of a message is determined by the specification of end conditions. The end of a
message is determined by the first occurrence of one or more configured end conditions.
The section "Message end conditions" in the topic "Configuring receive parameters
(Page 676)" describes the end conditions that you can configure in the RCV_CFG
instruction.
You can configure the end conditions in either the properties of the communication interface
in the device configuration, or from the RCV_CFG instruction. Whenever the CPU transitions
from STOP to RUN, the receive parameters (both start and end conditions) return to the
device configuration settings. If the STEP 7 user program executes RCV_CFG, then the
settings are changed to the RCV_CFG conditions.
Parameter CONDITIONS data type structure part 2 (end conditions)
Table 12- 17 CONDITIONS structure for END conditions
Parameter
ENDCOND
MAXLEN
N
LENGTHSIZE
LENGTHM
RCVTIME
692
Parameter type
Data type
IN
UInt
0
IN
UInt
1
IN
UInt
0
IN
UInt
0
IN
UInt
0
IN
UInt
200
Description
This parameter specifies message end condition:
01H - Response time
02H - Message time
04H - Inter-character gap
08H - Maximum length
10H - N + LEN + M
20H - Sequence
Maximum message length: Only used when the
maximum length end condition is selected. 1 to 1024
bytes
Byte position within the message of the length field. Only
used with the N + LEN + M end condition. 1 to 1022
bytes
Size of the length field (1, 2, or 4 bytes). Only used with
the N + LEN + M end condition.
Specify the number of characters following the length
field that are not included in the value of the length field.
This is only used with the N + LEN + M end condition. 0
to 255 bytes
Specify how long to wait for the first character to be
received. The receive operation will be terminated with an
error if a character is not successfully received within the
specified time. This is only used with the response time
condition. (0 to 65535 bit times with an 8 second
maximum)
This parameter is not a message end condition since
evaluation terminates when the first character of a
response is received. It is an end condition only in the
sense that it terminates a receiver operation because no
response is received when a response is expected. You
must select a separate end condition.
System Manual, 03/2014, A5E02486680-AG
S7-1200 Programmable controller
Table of Contents
loading

Table of Contents