The S5 protocol is used to communicate with S5 PLCs (S5 AP headers) and with CPs capable of using the S5 protocol.
The S5 protocol can be used in conjunction with TCP/IP, H1 or for serial communication with AS511.
Read (Fetch active):
• | To read data actively from an S5 PLC, you need to establish a read connection in the device. |
• | Besides the S5 PLC address (IP address or MAC address), a read port or a read TSAP must be specified. |
• | The read connection needs to be parameterized on both sides of the communication (Fetch active connection in the OPC Server, Fetch passive connection in the S5). |
Write (Write active):
• | If you want to write data to the S5 PLC as well, a write connection needs to be established besides the read connection. When using S5 via TCP/IP or via AS511, a single connection may be used for this purpose. |
• | For the write connection, a write port or a write TSAP must be specified. |
• | The write connection needs to be parameterized on both sides of the communication (Write active connection in the device, Write / Receive passive connection in the S5). |
• | Newer S5 TCP/IP cards and devices support reading and writing over a single connection. |
Read the hint for bit writing.
|