modbus-cli v1.0
First release version of the Modbus-cli tool. All binaries were built statically.
Usage of ./modbus-cli:
-address string
Example: tcp://127.0.0.1:502, rtu:///dev/ttyUSB0 (default "tcp://127.0.0.1:502")
-filename string
-fn-code int
fn (default 3)
-ignore-crc
ignore crc
-log-frame
prints received and send modbus frame to stdout
-order-exec-bigendian
t: big, f: little (default true)
-order-parse-bigendian
t: big, f: little (default true)
-quantity int
register quantity, length in bytes (default 2)
-register int
(default -1)
-rs485-delayRtsAfterSend duration
Delay rts after send
-rs485-delayRtsBeforeSend duration
Delay rts before send
-rs485-enable
enables rs485 cfg
-rs485-rtsHighAfterSend
Allow rts high after send
-rs485-rtsHighDuringSend
Allow rts high during send
-rs485-rxDuringTx
Allow bidirectional rx during tx
-rtu-baudrate int
Symbol rate, e.g.: 300, 600, 1200, 2400, 4800, 9600, 19200, 38400 (default 2400)
-rtu-databits int
5, 6, 7 or 8 (default 8)
-rtu-parity string
Parity: N - None, E - Even, O - Odd (default "E")
-rtu-stopbits int
1 or 2 (default 1)
-slaveID int
Is used for intra-system routing purpose, typically for serial connections, TCP default 0xFF (default 1)
-tcp-timeout-link-recovery duration
Link timeout (default 20s)
-tcp-timeout-protocol-recovery duration
Proto timeout (default 20s)
-timeout duration
Modbus connection timeout (default 20s)
-type-exec string
(default "uint16")
-type-parse string
(default "raw")
-write-value float
(default 1.7976931348623157e+308)