Point-to-Point (PtP) communications
8.7 Point-to-Point instructions
Parameter
PTRCL
DONE
ERROR
STATUS
While a transmit operation is in progress, the DONE and ERROR outputs are FALSE. When
a transmit operation is complete, either the DONE or the ERROR output will be set TRUE for
one scan cycle to show the status of the transmit operation. While DONE or ERROR is
TRUE, the STATUS output is valid.
The instruction returns a status of 16#7001 if the communication module (CM) accepts the
transmit data. Subsequent SEND_PTP executions return a 16#7002 if the CM is still busy
transmitting. When the transmit operation is complete, the CM will return the status of the
transmit operation, 16#0000, if no errors occurred. Subsequent executions of SEND_PTP
with REQ low return a status of 16#7000 (not busy).
Relationship of the output values to REQ:
This assumes that the instruction is called periodically to check for the status of the
transmission process. In the diagram below, it is assumed that the instruction is called every
scan (represented by the STATUS values).
The following diagram shows how the DONE and STATUS parameters are valid for only one
scan if the REQ line is pulsed (for one scan) to initiate the transmit operation.
260
Parameter
Data type
type
IN
Bool
OUT
Bool
OUT
Bool
OUT
Word
Description
This parameter selects the buffer as normal point-to-point
or specific Siemens-provided protocols that are
implemented within the attached CM.
FALSE = user program controlled point-to-point
operations. (only valid option)
TRUE for one scan, after the last request was completed
with no error
TRUE for one scan, after the last request was completed
with an error
Execution condition code
System Manual, 11/2009, A5E02486680-02
S7-1200 Programmable controller