PLCHome / node-red-contrib-ads

Beckhoff TwinCat ADS support for Node-Red.
MIT License
15 stars 11 forks source link

CX9020 and TwinCAT 2 #41

Closed xavier-1197 closed 3 years ago

xavier-1197 commented 3 years ago

Hello PLCHome,

I have a problem with the node-red-contrib-ads module. I can read a global variable in my CX9020 PLC (with TwinCAT 2) but I can't read a variable in a program. I write the right path

Can you help me please thanks

beckhoff

xavier-1197 commented 3 years ago

Here you can see my configuration

variable wCTUCv

PLCHome commented 3 years ago

Compteur is not a function block under MAIN. Compteur is a program so "MAIN." leave out and it should go "Compteur.wCTUCv". The writing will blocked by twincat 2. Reading goes.

PLCHome commented 3 years ago

You can see it with ADS symbols. There are flow examples in read.me.

xavier-1197 commented 3 years ago

Thanks a lot @PLCHome That works. The example

node red contrib ads

took me down the wrong path.

It makes perfect sense now