node-modbus-serial
node-modbus-serial copied to clipboard
A pure JavaScript implemetation of MODBUS-RTU (and TCP) for NodeJS
Hi @yaacov , firstly thanks again for this awesome module :) I'm looking for a way to scan available unitsIds in a modbus network, I was thinking about simply try...
Hello, I've asked on the repo https://github.com/BiancoRoyal/node-red-contrib-modbus about an issue with a communication with my company energy meter. But it seems that issue come directly from your base library :...
`servertcp` [appends a generated CRC to the buffer](https://github.com/yaacov/node-modbus-serial/blob/master/servers/servertcp.js#L260) right before logging the data it received. This is misleading because it makes it look like the CRC was part of the...
in index,js around line 350 are the following two blocks of code which I have altered as shown. In some devices with floating point numbers, rather than doubling the number...
``` var ModbusRTU = require("modbus-serial"); var client = new ModbusRTU(); // open connection to a serial port client.connectRTUBuffered( "COM1", { baudRate: 9600,parity: 'none', dataBits : 8,stopBits : 1 }, read);...
I use the function below to connect, read registers and disconnect from a modbus device: ```javascript async function readRegisters(ip, registerAddress, numberOfRegisters){ try { client.setID(1); client.setTimeout(1000); await client.connectTCP(ip, {port: 502}) const...
First, this is not a problem, this is only the experience about I use this driver I use IOT2040 and siemens 1200PLC to test modbus TCP. IOT2040 as the client,...
``` node-red.0 | 2020-05-18 22:30:01.998 | info | (5230) node-red exited with 1 -- | -- | -- | -- node-red.0 | 2020-05-18 22:30:01.285 | warn | (5230) 18 May...
Update readme to reference https://serialport.io/docs/api-stream#openoptions
Hello, I am using pymodbus library to have a running modbus RTU server on one computer. With another computer I am using the node-modbus-serial library and trying to write. The...