LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing local TwinCAT Variables with Labview

Hello everyone,

I am currently trying to read/write local variables in TwinCAT with Labview. I had no problem to read/write global variables in Labview with the ADS OCX function. I have tried to set up an OPC Server, but realised that I can not add an I/O Server in my Labview project. According to this link https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P7DhSAK&l=de-DE I need the Labview DSC Module for that task. My question is wether there is another way to access the local TwinCAT variables in Labview ?

Thanks.

0 Kudos
Message 1 of 3
(1,393 Views)

Hello,

 

I'm in the same situation.

Has anybody find the solution?

__________________________________________
The best way to thank, is to give KUDOS
0 Kudos
Message 2 of 3
(1,335 Views)

Why do you want to access local variables? TwinCAT doesn't export them through normal ADS access. And for good reason, you do not want the world to be able to affect your entire PLC program. The idea is that only specifically designated and exported variables are accessible for extern application and not that your entire PLC application is exposed to the world to hack as wished.

Rolf Kalbermatter
My Blog
0 Kudos
Message 3 of 3
(1,326 Views)