Matrix
Electrónica
–
MTX
‐
Router
‐
Titan
User
Manual
‐
Rel3.00.3.09
Page
83
http://www.mtxm2m.com
Subject
to
changes
without
prior
notice
Below you can see the commands that are currently supported, giving you an idea of what
you can do with them. That said, the best way to understand the workings of each of them is
by reading the examples in this section of the manual.
“Modbus Read” command
Syntax:
MR[
modbusAddress
,
modbusRegister
]
Description:
Reads
a
Modbus
RTU
device
register.
Can
be
used
on
the
IF
field,
or
the
ACTION1
or
ACTION2
fields.
Parameters:
modbusAddress
:
Modbus
device
address
modbusRegister
:
address
of
Modbus
register
to
be
read
Examples:
MR[1,10]
Reads
register
10
of
the
Modbus
device
with
address
1.
MR[192.168.1.20:502,10]
Reads register 10 of the Modbus TCP device with IP address 192.168.1.20
and TCP port 502.
“Modbus Write” command
Syntax:
MW[
modbusAddress
,
modbusRegister,registerValue,commandWrite
]
Description:
Reads
a
Modbus
RTU
device
register.
It
can
be
used
on
the
ACTION1
and
ACTION2
fields.
Parameters:
modbusAddress
:
Modbus
device
address