node-modbus-serial
node-modbus-serial copied to clipboard
A pure JavaScript implemetation of MODBUS-RTU (and TCP) for NodeJS
Hi, I am trying to implement Modbus RTU over TCP. I am using connectTcpRTUBuffered and getting TransactionTimedOutError and PortNotOpenError. Below is the code snippet and error log. Referred to, https://github.com/yaacov/node-modbus-serial/issues/117...
 hi, I am getting a port not found error on the TCP connection. actually, we are fetching plc data every 1 minute. the issue is coming after 6-8 hours....
i want to use this library as a slave. it listens from the server for FCs and responds. please give me an example to do it.
## Introduction We are using the modbus-serial library with NodeJS version 16 on an edge gateway to read and write some data to some Modbus clients. This works good except...
Hi. I tried the code as it is mentioned in the example: // create an empty modbus client const ModbusRTU = require("modbus-serial"); const client = new ModbusRTU(); // open connection...
Please add Worker API in TS declaration ModbusRTU.d.ts
This code block doesn't work while it is not giving any error. I am able to write to this coil with the same IP adress, port and coil adress on...
I'm writing some test suites of my package and I have this bug, if I inpect modbus-serial I can see that [here](https://github.com/yaacov/node-modbus-serial/blob/master/ports/tcpport.js#L145) the callback is assigned correctly but when I...
If I disconnect the modbus/tcp device from the network, to test what happens, I am getting the following error: (node:25171) UnhandledPromiseRejectionWarning: Error: TCP Connection Timed Out at Socket. (/home/pi/vision/node_modules/modbus-serial/ports/tcpport.js:111:24) at...
It sometimes reads the data sometime, it hangs to read from the bus and write to the Bus. I get a lot of CRC error while reading and writing to...