105BCommunication processor
12.3 Point-to-Point (PtP) communication
S7-1200 Programmable controller
System Manual, 11/2011, A5E02486680-05
541
Parameter
Parameter type
Data type
Description
ENDSEQ1CTL
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
sequence position.
ENDSEQ1
IN
Char[5]
0
Sequence 1 start characters (5 characters)
Table 12- 18 Condition codes
STATUS (W#16#....)
Description
80C0
Illegal start condition selected
80C1
Illegal end condition selected, no end condition selected
80C2
Receive interrupt enabled and this is not possible.
80C3
Maximum length end condition is enabled and max length is 0 or > 1024.
80C4
Calculated length is enabled and N is >= 1023.
80C5
Calculated length is enabled and length is not 1, 2 or 4.
80C6
Calculated length is enabled and M value is > 255.
80C7
Calculated length is enabled and calculated length is > 1024.
80C8
Response timeout is enabled and response timeout is zero.
80C9
Inter-character gap timeout is enabled and it is zero.
80CA
Idle line timeout is enabled and it is zero.
80CB
End sequence is enabled but all chars are "don't care".
80CC
Start sequence (any one of 4) is enabled but all characters are "don't care".
12.3.1.5
SEND_PTP instruction
Table 12- 19 SEND_PTP (Send Point-to-Point data) instruction
LAD / FBD
SCL
Description
"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_);
SEND_PTP initiates the transmission of the data
and transfers the assigned buffer to the
communication 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 second 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.