0.2.2 • Published 5 years ago
modbus-repl v0.2.2
CLI arguments
--host,-haddress of the machine hosting modbus server--port,-pport on which modbus server is listening, by default502--proto,-Pprotocol to be used, possible options areudportcp, by defaulttcp--headless,-Hif set, given--commandwill be executed after successful connection, it's result will be printed to stdout and application will exit--command,-ccommand to be executed in headless mode
commands
# write coils
wc A C1 C2 ... Cn# write holding registers
wh A R1 R2 ... Rnwhere:
Ais address on which writing should startCis coil value1or0that should be setRis 16-bit register value that should be set, hexadecimal format is supported with prefix0x
# read coils
rc A N# read descrete coils
rd A N# read input registers
ri A N# read holding registers
rh A Nwhere:
Aaddress on which reading should startNnumber of registers or coils to read