├── .gitignore ├── .travis.yml ├── CHANGELOG.md ├── LICENSE ├── README.md ├── lib ├── Buffer.js ├── Exception.js ├── Helpers.js ├── Modbus.js └── protocol │ ├── GET_COMM_EVENT_COUNTER.js │ ├── GET_COMM_EVENT_LOG.js │ ├── MASK_WRITE_REGISTER.js │ ├── READ_COILS.js │ ├── READ_DEVICE_IDENTIFICATION.js │ ├── READ_DISCRETE_INPUTS.js │ ├── READ_EXCEPTION_STATUS.js │ ├── READ_FIFO_QUEUE.js │ ├── READ_FILE_RECORD.js │ ├── READ_HOLDING_REGISTERS.js │ ├── READ_INPUT_REGISTERS.js │ ├── READ_WRITE_MULTIPLE_REGISTERS.js │ ├── WRITE_FILE_RECORD.js │ ├── WRITE_MULTIPLE_COILS.js │ ├── WRITE_MULTIPLE_REGISTERS.js │ ├── WRITE_SINGLE_COIL.js │ └── WRITE_SINGLE_REGISTER.js ├── package.json └── test ├── help.js ├── integration ├── exceptions.js ├── get-comm-event-counter.js ├── get-comm-event-log.js ├── helpers.js ├── invalid.js ├── mask-write-register.js ├── parser.js ├── read-coils.js ├── read-device-identification.js ├── read-discrete-inputs.js ├── read-exception-status.js ├── read-fifo-queue.js ├── read-file-record.js ├── read-holding-registers.js ├── read-input-registers.js ├── read-write-multiple-registers.js ├── write-file-record.js ├── write-multiple-coils.js ├── write-multiple-registers.js ├── write-single-coil.js └── write-single-register.js └── run.js /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | .DS_Store 3 | test.js 4 | ~* 5 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-modbus/pdu/HEAD/.travis.yml -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-modbus/pdu/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-modbus/pdu/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-modbus/pdu/HEAD/README.md -------------------------------------------------------------------------------- /lib/Buffer.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-modbus/pdu/HEAD/lib/Buffer.js -------------------------------------------------------------------------------- /lib/Exception.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-modbus/pdu/HEAD/lib/Exception.js -------------------------------------------------------------------------------- /lib/Helpers.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-modbus/pdu/HEAD/lib/Helpers.js -------------------------------------------------------------------------------- /lib/Modbus.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-modbus/pdu/HEAD/lib/Modbus.js -------------------------------------------------------------------------------- /lib/protocol/GET_COMM_EVENT_COUNTER.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-modbus/pdu/HEAD/lib/protocol/GET_COMM_EVENT_COUNTER.js -------------------------------------------------------------------------------- /lib/protocol/GET_COMM_EVENT_LOG.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-modbus/pdu/HEAD/lib/protocol/GET_COMM_EVENT_LOG.js -------------------------------------------------------------------------------- /lib/protocol/MASK_WRITE_REGISTER.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-modbus/pdu/HEAD/lib/protocol/MASK_WRITE_REGISTER.js -------------------------------------------------------------------------------- /lib/protocol/READ_COILS.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-modbus/pdu/HEAD/lib/protocol/READ_COILS.js -------------------------------------------------------------------------------- /lib/protocol/READ_DEVICE_IDENTIFICATION.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-modbus/pdu/HEAD/lib/protocol/READ_DEVICE_IDENTIFICATION.js -------------------------------------------------------------------------------- /lib/protocol/READ_DISCRETE_INPUTS.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-modbus/pdu/HEAD/lib/protocol/READ_DISCRETE_INPUTS.js -------------------------------------------------------------------------------- /lib/protocol/READ_EXCEPTION_STATUS.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-modbus/pdu/HEAD/lib/protocol/READ_EXCEPTION_STATUS.js -------------------------------------------------------------------------------- /lib/protocol/READ_FIFO_QUEUE.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-modbus/pdu/HEAD/lib/protocol/READ_FIFO_QUEUE.js -------------------------------------------------------------------------------- /lib/protocol/READ_FILE_RECORD.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-modbus/pdu/HEAD/lib/protocol/READ_FILE_RECORD.js -------------------------------------------------------------------------------- /lib/protocol/READ_HOLDING_REGISTERS.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-modbus/pdu/HEAD/lib/protocol/READ_HOLDING_REGISTERS.js -------------------------------------------------------------------------------- /lib/protocol/READ_INPUT_REGISTERS.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-modbus/pdu/HEAD/lib/protocol/READ_INPUT_REGISTERS.js -------------------------------------------------------------------------------- /lib/protocol/READ_WRITE_MULTIPLE_REGISTERS.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-modbus/pdu/HEAD/lib/protocol/READ_WRITE_MULTIPLE_REGISTERS.js -------------------------------------------------------------------------------- /lib/protocol/WRITE_FILE_RECORD.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-modbus/pdu/HEAD/lib/protocol/WRITE_FILE_RECORD.js -------------------------------------------------------------------------------- /lib/protocol/WRITE_MULTIPLE_COILS.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-modbus/pdu/HEAD/lib/protocol/WRITE_MULTIPLE_COILS.js -------------------------------------------------------------------------------- /lib/protocol/WRITE_MULTIPLE_REGISTERS.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-modbus/pdu/HEAD/lib/protocol/WRITE_MULTIPLE_REGISTERS.js -------------------------------------------------------------------------------- /lib/protocol/WRITE_SINGLE_COIL.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-modbus/pdu/HEAD/lib/protocol/WRITE_SINGLE_COIL.js -------------------------------------------------------------------------------- /lib/protocol/WRITE_SINGLE_REGISTER.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-modbus/pdu/HEAD/lib/protocol/WRITE_SINGLE_REGISTER.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-modbus/pdu/HEAD/package.json -------------------------------------------------------------------------------- /test/help.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-modbus/pdu/HEAD/test/help.js -------------------------------------------------------------------------------- /test/integration/exceptions.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-modbus/pdu/HEAD/test/integration/exceptions.js -------------------------------------------------------------------------------- /test/integration/get-comm-event-counter.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-modbus/pdu/HEAD/test/integration/get-comm-event-counter.js -------------------------------------------------------------------------------- /test/integration/get-comm-event-log.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-modbus/pdu/HEAD/test/integration/get-comm-event-log.js -------------------------------------------------------------------------------- /test/integration/helpers.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-modbus/pdu/HEAD/test/integration/helpers.js -------------------------------------------------------------------------------- /test/integration/invalid.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-modbus/pdu/HEAD/test/integration/invalid.js -------------------------------------------------------------------------------- /test/integration/mask-write-register.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-modbus/pdu/HEAD/test/integration/mask-write-register.js -------------------------------------------------------------------------------- /test/integration/parser.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-modbus/pdu/HEAD/test/integration/parser.js -------------------------------------------------------------------------------- /test/integration/read-coils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-modbus/pdu/HEAD/test/integration/read-coils.js -------------------------------------------------------------------------------- /test/integration/read-device-identification.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-modbus/pdu/HEAD/test/integration/read-device-identification.js -------------------------------------------------------------------------------- /test/integration/read-discrete-inputs.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-modbus/pdu/HEAD/test/integration/read-discrete-inputs.js -------------------------------------------------------------------------------- /test/integration/read-exception-status.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-modbus/pdu/HEAD/test/integration/read-exception-status.js -------------------------------------------------------------------------------- /test/integration/read-fifo-queue.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-modbus/pdu/HEAD/test/integration/read-fifo-queue.js -------------------------------------------------------------------------------- /test/integration/read-file-record.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-modbus/pdu/HEAD/test/integration/read-file-record.js -------------------------------------------------------------------------------- /test/integration/read-holding-registers.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-modbus/pdu/HEAD/test/integration/read-holding-registers.js -------------------------------------------------------------------------------- /test/integration/read-input-registers.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-modbus/pdu/HEAD/test/integration/read-input-registers.js -------------------------------------------------------------------------------- /test/integration/read-write-multiple-registers.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-modbus/pdu/HEAD/test/integration/read-write-multiple-registers.js -------------------------------------------------------------------------------- /test/integration/write-file-record.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-modbus/pdu/HEAD/test/integration/write-file-record.js -------------------------------------------------------------------------------- /test/integration/write-multiple-coils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-modbus/pdu/HEAD/test/integration/write-multiple-coils.js -------------------------------------------------------------------------------- /test/integration/write-multiple-registers.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-modbus/pdu/HEAD/test/integration/write-multiple-registers.js -------------------------------------------------------------------------------- /test/integration/write-single-coil.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-modbus/pdu/HEAD/test/integration/write-single-coil.js -------------------------------------------------------------------------------- /test/integration/write-single-register.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-modbus/pdu/HEAD/test/integration/write-single-register.js -------------------------------------------------------------------------------- /test/run.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/node-modbus/pdu/HEAD/test/run.js --------------------------------------------------------------------------------