MC Technologies GmbH, Kabelkamp 2, 30179 Hannover, Germany
Tel: +49511 67 69 99-0, Fax: +49511 67 69 99-150, Website & Shop: www.mc-technologies.net, Email: info@mc-technologies.net
66
Modbus Slave Command line Tool
Install:
Using MC100 as Slave device:
Usage: mcmodbus-slave [OPTIONS]
Options:
-h,--help Print this help message and exit
-c,--config-file TEXT Json config for the address mappings. Default: ./mappings.json
-d,--device-file TEXT Serial device for modbus RTU
-p,--port UINT Port for modbus TCP.
-b,--baud-rate UINT Baud rate for the serial device. Default: 115200
-v,--verbose Activate debug input
Using ModBus RTU
Command: mcmodbus-slave -d <Serial-port-Device-file> -b <baud-rate> -c <Json Config>
For Example (RS485):
root@MC100:~# mcmodbus-slave -d /dev/ttymxc4 -b 115200
Using ModBus TCP
Command: mcmodbus-slave -p <port> -b <baud-rate> -c <Json Config>
For Example:
root@MC100:~# mcmodbus-slave -p 502
MC100 default Json mapping.
MC100 ModBus addressing map:
Example: The address of Digital Input 4 on MC100 GPIO is: 1204
01-08: Digital Outputs
03-04: Current Inputs
01-02: Current Outputs (Sens)
01-02: Voltage Inputs
{00,01}, .... , {06,07}, ….: RTD (2 registers
each).
00: PWM Prescalar
01-02: PWM Pulse
03: AC Input Relais (SensorBox)
00: Current Output (SensorBox)