0.2.2 • Published 4 years ago

modbus-repl v0.2.2

Weekly downloads
3
License
ISC
Repository
github
Last release
4 years ago

CLI arguments

  • --host, -h address of the machine hosting modbus server
  • --port, -p port on which modbus server is listening, by default 502
  • --proto, -P protocol to be used, possible options are udp or tcp, by default tcp
  • --headless, -H if set, given --command will be executed after successful connection, it's result will be printed to stdout and application will exit
  • --command, -c command to be executed in headless mode

commands

# write coils
wc A C1 C2 ... Cn
# write holding registers
wh A R1 R2 ... Rn

where:

  • A is address on which writing should start
  • C is coil value 1 or 0 that should be set
  • R is 16-bit register value that should be set, hexadecimal format is supported with prefix 0x
# read coils
rc A N
# read descrete coils
rd A N
# read input registers
ri A N
# read holding registers
rh A N

where:

  • A address on which reading should start
  • N number of registers or coils to read
0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago