Programming The Ptp Communications - Siemens S7-1200 System Manual

Hide thumbs Also See for S7-1200:
Table of Contents
Communication processor and Modbus TCP
12.3 Point-to-point (PtP) communication
12.3.4

Programming the PtP communications

STEP 7 provides extended instructions that enable the user program to perform Point-to-
Point communications with a protocol designed and implemented in the user program. These
instructions fall into two categories:
● Configuration instructions
● Communication instructions
Configuration instructions
Before your user program can engage in PtP communication, you must configure the
communication interface port and the parameters for sending data and receiving data.
You can perform the port configuration and message configuration for each CM or CB
through the device configuration or through these instructions in your user program:
● PORT_CFG (Page 686)
● SEND_CFG (Page 688)
● RCV_CFG (Page 689)
Communication instructions
The PtP communication instructions enable the user program to send messages to and
receive messages from the communication interfaces. For information about transferring
data with these instructions, see the section on data consistency (Page 178).
All of the PtP functions operate asynchronously. The user program can use a polling
architecture to determine the status of transmissions and receptions. SEND_PTP and
RCV_PTP can execute concurrently. The communication modules and communication board
buffer the transmit and receive messages as necessary up to a maximum buffer size of 1024
bytes.
The CMs and CB send messages to and receive messages from the actual point-to-point
devices. The message protocol is in a buffer that is either received from or sent to a specific
communication port. The buffer and port are parameters of the send and receive
instructions:
● SEND_PTP (Page 694)
● RCV_PTP (Page 697)
Additional instructions provide the capability to reset the receive buffer, and to get and set
specific RS232 signals:
● RCV_RST (Page 698)
● SGN_GET (Page 699)
● SGN_SET (Page 700)
702
S7-1200 Programmable controller
System Manual, 03/2014, A5E02486680-AG
Table of Contents
loading

Table of Contents