Comments (3)
ReadArea() always returns a buffer object (For S7WLBit either 0x00 or 0x01). Issue with your code is that you force a type change in your console.log('Read data: ' + data);
by concatenating the buffer object with a string and 0x00 or 0x01 are no printable utf8 characters.
Try console.log('Read data: ', data);
instead.
from node-snap7.
I can access the data in the form of data[0], but when I ran the first code, I was getting the normal direct data.
from node-snap7.
I apologize for keeping you busy for something so simple. I'm sorry for switching from Delphi programming language to new internet technologies.
from node-snap7.
Related Issues (20)
- S7 1200 Poll error Last-Error Info: 36700160: CLI HOT 2
- termux linux aarch64 not compatible! HOT 3
- Read OB & FC data ? HOT 2
- how to force ??
- Electron 13 support HOT 2
- read MD real values
- Missing wrapper for S7WLChar
- Collaboration request HOT 1
- why i install node-snap7 error ? help
- webpack5 | Module not found: Error: Can't resolve 'fs'
- can not install node-snap7
- S7Server.GetParam() always returns boolean
- Won't build with nodejs19 HOT 2
- Electron 21 Support
- In Centos7.9, an error occurred when running a program referencing node-snap7 through the nodejs environment
- Set local port
- Won't work with Node.js v20.x HOT 2
- Uncaught Error: Dynamic require of “events” is not supported HOT 2
- Sporadic transfer of random numbers to the S7 HOT 19
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-snap7.