cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing local TwinCAT Variables with Labview

macn994
Member

Accessing local TwinCAT Variables with Labview

Message contains a hyperlink

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.

2 REPLIES 2
VA.KI
Active Participant

Re: Accessing local TwinCAT Variables with Labview

Hello,

 

I'm in the same situation.

Has anybody find the solution?

__________________________________________
The best way to thank, is to give KUDOS
rolfk
Knight of NI

Re: Accessing local TwinCAT Variables with Labview

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
DEMO, Electronic and Mechanical Support department, room 36.LB00.390