If we had selected Remote 2, the Slave IP would be
192.168.0.213, Remote 3 then IP would be 192.168.0.124,
etc.
Example 2 Local CPU as Server (Slave)
For the CPU to work as a Server (Slave) we only need to
configure the IP address of the Client (Master).
Example 3 Local CPU using Customised Modbus
The CPU needs to provide the following information to a
Server (Slave) using the communication parameters set in
example 1 above:
Identification string: x-Messenger station1
Digital Input states for I3, I4, I5 and I6
Digital Output states for Q1, Q2, Q3 and Q4
Analogue Inputs AI1, AI2, AI3 and AI4
Analogue Outputs AQ1, AQ2, AQ3 and AQ4
Digital Flags F1, F2, F3 and F4
Analogue Flags AF1, AF2, AF3 and AF4
M Coils M1, M2, M3 and M4
AM Coils AM1, AM2, AM3 and AM4
The data received by the Server would be:
00 09 00 00 00 4c 01 8b 49 14 78 2d 4d 65 73 73 65 6e
67 65 72 20 73 74 61 74 69 6f 6e 31 01 01 01 02 01 0d
0b 08 00 80 00 88 00 00 00 00 0c 08 00 00 00 00 00 80
00 88 16 01 02 17 08 01 c2 00 00 02 26 00 00 07 01 04
0d 08 00 00 00 00 00 00 01 c2