Communication processor and Modbus TCP
13.3 Point-to-point (PtP) communication
13.3.6
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_Config (Page 1110)
● Send_Config (Page 1112)
● Receive_Config (Page 1115)
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 198).
All of the PtP functions operate asynchronously. The user program can use a polling
architecture to determine the status of transmissions and receptions. Send_P2P and
Receive_P2P 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_P2P (Page 1122)
● Receive_P2P (Page 1126)
Additional instructions provide the capability to reset the receive buffer, and to get and set
specific RS232 signals:
● Receive_Reset (Page 1128)
● Signal_Get (Page 1129)
● Signal_Set (Page 1130)
1134
S7-1200 Programmable controller
System Manual, V4.2, 09/2016, A5E02486680-AK