New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

modbus-repl

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

modbus-repl

- `--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`

latest
Source
npmnpm
Version
0.2.2
Version published
Maintainers
1
Created
Source

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

Keywords

modbus

FAQs

Package last updated on 08 Jul 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts