Communication processor and Modbus TCP
13.6 Legacy PtP communication (CM/CB 1241 only)
S7-1200 Programmable controller
1226 System Manual, V4.2, 09/2016, A5E02486680-AK
SEQ.CTL IN Byte
B#16#0
Sequence 1 ignore/compare control for each character:
These are the enabling bits for each character for the end
sequence. Character 1 is bit 0, character 2 is bit 1, …,
character 5 is bit 4. Disabling the bit associated with a
character means any character will match, in this se-
SEQ.STR IN Char[5]
Sequence 1 start characters (5 characters)
Table 13- 103 Condition codes
Illegal start condition selected
Illegal end condition selected, no end condition selected
Receive interrupt enabled and this is not possible.
Maximum length end condition is enabled and max length is 0 or > 1024.
Calculated length is enabled and N is >= 1023.
Calculated length is enabled and length is not 1, 2 or 4.
Calculated length is enabled and M value is > 255.
Calculated length is enabled and calculated length is > 1024.
Response timeout is enabled and response timeout is zero.
Inter-character gap timeout is enabled and it is zero.
Idle line timeout is enabled and it is zero.
End sequence is enabled but all chars are "don't care".
Start sequence (any one of 4) is enabled but all characters are "don't care".
SEND_PTP (Transmit send buffer data)
Table 13- 104 SEND_PTP (Send Point-to-Point data) instruction
REQ:=_bool_in_,
PORT:=_uint_in_,
BUFFER:=_variant_in_,
LENGTH:=_uint_in_,
PTRCL:=_bool_in_,
DONE=>_bool_out_,
ERROR=>_bool_out_,
SEND_PTP initiates the transmission of the data
and transfers the assigned buffer to the communica-
tion interface. The CPU program continues while
the CM or CB sends the data at the assigned baud
rate. Only one send operation can be pending at a
given time. The CM or CB returns an error if a sec-
ond SEND_PTP is executed while the CM or CB is
already transmitting a message.
1
STEP 7 automatically creates the DB when you insert the instruction.