We want to provide Internet connectivity to a device with an Ethernet interface. The LAN IP address of the Ethernet device 192.168.1.70.
We also have 3 Modbus RTU modules:
Device with modbus address 1, has 8 digital inputs
Device with modbus address 2 has 2 analog inputs (4-20mA)
Device with modbus address 3 has 8 relay outputs.
In addition to providing the internet access to the Ethernet device, we want to achieve the following:
Activate Relay 1 in module 3 (by writing “1” in register 1), when the digital inputs 1, 2 and 3 (registers 1, 2 and 3) in module 1 are activated (all three of them have the value “1”).
Activate Relay 2 in module 3 (writing 1 in register 2) when the digital entries 4 or 5 (registers 4 and 5) in module 1 are not activated or when the analog input 1 in module 2 has a value of 10mA or less.
Send an SMS alarm when the second analog input in module 2 has a value greater than 18mA