@krakul/node-red-modbus-rtu-slave

1.0.1 • Public • Published

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.)

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @krakul/node-red-modbus-rtu-slave

    Weekly Downloads

    11

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    28.3 kB

    Total Files

    11

    Last publish

    Collaborators

    • artizirk
    • jaagup_averin