B006 is used to read the AI1 value from slave3, then save
it into AF3 of master (slave1 IP 192.168.0.103, UDP port is
8003)
Slave1--Slave3 Program are the same.
Example 4: One Master CPU (TCP Client) Connected with
3 Slave CPUs (UDP Servers)
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
UDP Server port 8000
Target1 UDP 192.168.0.101, Port :8001
Target2 UDP 192.168.0.102, Port :8002
Target3 UDP 192.168.0.103, Port :8003
Slave1
IP: 192.168.0.101