1.0.1 • Published 1 year ago

@krakul/node-red-modbus-rtu-slave v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

modbus-rtu-slave

Provides basic nodes for simulating a modbus RTU slave. Provides the following nodes:

  • Modbus-RTU-Slave: Slave itself; listens on the configured port for RTU requests and responds with requested values; values can be updated either over port using write commands, or directly using the node's input. Can contain upto 50000 values in each register.
  • Modbus-RTU-Writer: A helper node for making writing common values directly into the Slave's input; can write addresses both in the local range 0:9999 and the global range 1:50000.

e.g, when writing the address 30001, it will always be written into the Input registers, since addresses 30001:40000 are conventionally the Input registers. When using the 'convertToLocal' option when writing, the address 30001 would automatically be converted to the address 0 (of the Input registers). If NOT using the 'convertToLocal' option, the address 30001 would stay as 30001. Since all buffers allow upto 50000 values, this would also work and not overflow into another buffer. (This unconventional approach is supported due to a requirement of a project.)

1.0.1

1 year ago

1.0.0

1 year ago