Sign in to follow this  
Followers 0
Nielske

connecting c# with TwinCAT

3 posts in this topic

Hello i´m a beginner and for my thesis i need to connect a C# program with Twincat 3. i made a simple program to test it but i got always the same error like you will see in the attached picture. I based my program on the example you find via this link: My link Anybody an idea how i can solve this problem. Thanks in advance. Edited by Nielske

Share this post


Link to post
Share on other sites
Hi Nielske, Take a look at this links: Information about connecting TC3 to different high level languages: http://infosys.beckhoff.com/content/1033/tc3_connectivity_overview/html/overview_intro.htm?id=13485 How to link the ADS library to your C# program: http://infosys.beckhoff.com/content/1033/tc3_adssamples_net/html/twincat.ads.setuptc3.htm?id=14149 And a nice list of sample code: http://infosys.beckhoff.com/content/1033/tc3_adssamples_net/html/tcsample_net_intro.htm?id=14153 I hope this will help you. I've still not done that with TC3... only with TC2 and it is a little different so... I'm afraid this is the best I can give you.

Share this post


Link to post
Share on other sites
You have not declared the variable hbool1 You must put it under: Private TcAdsClient AdsClient

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0