mathiask88 / node-snap7

node.js wrapper for snap7
MIT License
163 stars 59 forks source link

How to read/write a single bit? #1

Closed psi-4ward closed 9 years ago

psi-4ward commented 9 years ago

Hi, with can access a single bit in WinCC. Can i do this with your lib too?

Thanks!

mathiask88 commented 9 years ago

Hi, try

S7Client.ReadArea(area, dbNumber, start, amount, wordLen, [callback])

and

S7Client.WriteArea(area, dbNumber, start, amount, wordLen, buffer, [callback])

with wordLen=S7WLBit. But keep in mind, that this library is still a work in progress.

psi-4ward commented 9 years ago

Please contact me via skype: psitrax Thanks!