Thermo Scientific AquaSensors
™
DataStick
™
Ethernet Communications User Guide
64
7.2.2.2
Reading and Writing a Configuration Value
The ladder logic program in Figure 59, Figure 60 and Figure 61 continuously reads the
Sensor Filter value from register N30:18 in the Ethernet product at IP address
192.168.10.201 using a Message (MSG) instruction and stores it in N7:0 in the PLC. It
also writes the value in N7:10 in the PLC to N30:18 in the Ethernet product when bit
B3:0/1 is toggled. The program is event-driven in that the completion of a MSG
instruction triggers the transmission of another one. A count of the messages sent is kept
as well as a count of any errors that may have occurred.
Figure 59: Part 1 of 3 of a ladder logic program to read and write the Sensor Filter value at N30:18.