st-one-io / node-red-contrib-s7

A Node-RED node to interact with Siemens S7 PLCs
GNU General Public License v3.0
111 stars 58 forks source link

Problem addressing bit in DataBlock #22

Closed peibowl closed 6 years ago

peibowl commented 6 years ago

Hello there!

I am exploring this module in node-red and I am experiencing issues when I try to write a bit of a DataBlock (DB). I have my DB, which is DB5. There I have 2 Structs 'CONTROL' and 'SEÑALIZACION'. What I am trying to do is to change the value from B0, B1 and B2 within Control structure. I have tried all kinds of combination to create my variable in the PLC object in node-red. The best I got is to change the first bit when I set up my variable as DB5,B0. But I haven't been able to access another bits. I have tried DB5,B0.1, DB5,B0.X1, DB5,B0.%X1 and so on, Images.zip but I dont get to write where I want. Is there any suggestion, please?

Thank you in advance. Please find attached some printscreens to clarify my configuration.

peibowl commented 6 years ago

Fixed! It worked using DB5,X0.1. The issue can be closed.