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
49
14.3 Usage and Command lines
Read register 0 on slave 1:
• mcmodbus -a 0
Print debug information during execution:
• mcmodbus -v -a 0
• mcmodbus -vv -a 0
Show help message:
• mcmodbus
• mcmodbus –h
Read register 0 on slave 17:
• mcmodbus -s 17
Set the output of slave 17 for the I/O Pins 4,5,6 to 1 0 1:
• mcmodbus -o wb - a 4 -s 17 1 0 1
Use another device with a baud rate of 115200:
• mcmodbus -d /dev/ttyUSB10 -b 115200
Setting digital output at address 0x34 to ON:
• mcmodbus -o wib -a 0x34 1
• mcmodbus -o wib -a 064 1
• mcmodbus -o wib -a 52 1
Reading analog input at address 0x20 and 0x21:
• mcmodbus -o rir -a 0x20 -n 2
Setting register 8 to 0x4563:
• mcmodbus -o wr -a 0x08 0x4563
• mcmodbus -a 8 -o wr 17763