EasyManua.ls Logo

MC Technologies MC100 - Modbus Master CLI

MC Technologies MC100
72 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
MC100
Mobile programmable gateway
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
65
Modbus Master Command line Tool
MC100 can be used as master device to read/write data command for up to 247 slave
devices.
Installation
To install the modbus command line tool you have to install the ‘mcmodbus.ipk’ from the
MC-Technologies update server.
root@MC100:~# opkg update
root@MC100:~# opkg install mcmodbus
Usage and Command lines
Read register 0 on slave 1:
root@MC100:~# mcmodbus -a 0
Print debug information during execution:
root@MC100:~# mcmodbus -v -a 0
root@MC100:~# mcmodbus -vv -a 0
Show help message:
root@MC100:~# mcmodbus h
Read register 0 on slave 17:
root@MC100:~# mcmodbus -s 17
Set the output of slave 17 for the I/O Pins 4,5,6 to 1 0 1:
root@MC100:~# mcmodbus -o wb - a 4 -s 17 1 0 1
Use another device with a baud rate of 115200:
root@MC100:~#mcmodbus -d /dev/ttyUSB10 -b 115200
Setting digital output at address 0x34 to ON:
root@MC100:~# mcmodbus -o wib -a 0x34 1
root@MC100:~# mcmodbus -o wib -a 064 1
root@MC100:~# mcmodbus -o wib -a 52 1
Reading analog input at address 0x20 and 0x21:
root@MC100:~# mcmodbus -o rir -a 0x20 -n 2
Setting register 8 to 0x4563:
root@MC100:~# mcmodbus -o wr -a 0x08 0x4563
root@MC100:~# mcmodbus -a 8 -o wr 17763
Note: MC100 was tested to query data using Modbus RTU trouble free in frequencies
between 20 to 40 Hz.

Table of Contents

Related product manuals