Matrix
Electrónica
–
MTX
‐
Router
‐
Titan
User
Manual
‐
Rel3.00.3.09
Page
166
http://www.mtxm2m.com
Subject
to
changes
without
prior
notice
Example Scenario 2.11
Example of how Titan Scripts are used. Updating registers in a Modbus device according to the
Modbus registers in a different device. Sending SMS and changing the Titan’s relays according to
the values in these registers.
Details of the example scenario:
We need to provide Internet connectivity to a network analyzer with an Ethernet interface. The
LAN IP address of the Ethernet device 192.168.1.70.
We also have 3 Modbus RTU modules. One of them, with address Modbus1, is to ready 8
digital inputs. The module with address 2 allows us to read 2 analog inputs (4-20mA). The
module with address 3 has 8 relay outputs.
We can change Relay1 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”).
Also, Relay2 in module 3 will be changed (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. Finally, an SMS alert should be sent and an internal relay in the
miniTitan device should be changed when the second analog input in module 2 has a value
greater than 18mA.
Solution :
MTX-Router-Titan-3G-mini router
Configuration example ready for use:
MTX-Router-
Titan-3G
Ethernet device
RS485
RS485
RS485
Ethernet
8 Modbus
digital
inputs
@1
2 Modbus
inputs
4-20mA
@2
8 Modbus
relay
outputs
@3
3G
Receiving an
SMS alarm
Relay