Communication processor and Modbus TCP
13.6 Legacy PtP communication (CM/CB 1241 only)
Parameter
Parameter type
SEQ.CTL
IN
SEQ.STR
IN
Table 13- 103 Condition codes
STATUS (W#16#....)
80C0
80C1
80C2
80C3
80C4
80C5
80C6
80C7
80C8
80C9
80CA
80CB
80CC
13.6.1.4
SEND_PTP (Transmit send buffer data)
Table 13- 104 SEND_PTP (Send Point-to-Point data) instruction
LAD / FBD
STEP 7 automatically creates the DB when you insert the instruction.
1
1226
Data type
Byte
B#16#0
Char[5]
0
Description
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".
SCL
"SEND_PTP_DB"(
REQ:=_bool_in_,
PORT:=_uint_in_,
BUFFER:=_variant_in_,
LENGTH:=_uint_in_,
PTRCL:=_bool_in_,
DONE=>_bool_out_,
ERROR=>_bool_out_,
STATUS=>_word_out_);
Description
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-
quence position.
Sequence 1 start characters (5 characters)
Description
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.
System Manual, V4.2, 09/2016, A5E02486680-AK
S7-1200 Programmable controller