6.6.2 Example2: One master CPU(TCP Client) connect with 3 slave CPUs(TCP
Servers)
The connection sketch:
Requirement:
1.If I1 of Master is ON/OFF, the Q1 of slave1---slave3 are ON/OFF.
2.Read the AI2 value from the slave1--slave3 to master and display.
Step1: Configure the IP configuration of the PLCs.
Master
IP: 192.168.0.100
Target server 1 IP :192.168.0.101 port 8001
Target server 2 IP :192.168.0.102 port 8002
Target server 3 IP :192.168.0.103 port 8003