node-modbus / pdu Goto Github PK
View Code? Open in Web Editor NEWNodeJS Modbus PDU builder
License: MIT License
NodeJS Modbus PDU builder
License: MIT License
windows 10/centos 7.4
node@^8
webpack@^3
[email protected]
var files = fs.readdirSync(path.resolve(__dirname, "protocol"));
at https://github.com/node-modbus/pdu/blob/master/lib/Modbus.js#L31
fs.js:904
return binding.readdir(pathModule._makeLong(path), options.encoding);
^
Error: ENOENT: no such file or directory, scandir '/protocol'
at Object.fs.readdirSync (fs.js:904:18)
Going from modbus-pdu 0.3.1 to 1.12.0, now the record length in the message's write header is in bytes which is two times too long. Using pdu 0.3.1 I was supplying the length as the number of words thus end represented the # of words. Now modbus-pdu\lib\protocol\WRITE_FILE_RECORD.js is taking the length of the values array and multiplying it by two. I believe that multiplication is unneeded.
Instead of
05 ServerDeviceBusy
06 Aknowledge
Should be
05 Aknowledge
06 ServerDeviceBusy
I reported it in node-modbus-stream but the crash is actually in this module.
See node-modbus/stream#1 for details
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.