01-23-2020 02:04 PM
I'm starting to work with TwinCat 3. Beckhoff has TwinCat 2 examples for LabVIEW that work with TwinCat 3 after changing the port from 801 to 851, but the .NET callback example isn't working for me. Has anyone played with that combination?
05-28-2020 09:19 AM
Hello David. Nice to meet you.
Did you succeed with this issue?
I'm in the opposite case of you: I'm new with labview, and some years with Codesys / Twincat programming.
I tried to communicate TC3 with labview also with .NET lib. In my case in a polled way instead of event driven.
I tested the Beckhoff example ("Accessing an array in the PLC") and there should be some kind of memory leakeage, as after some minutes, it gave me a memory error. Note that this ADS .NET libraries have worked fine for me in C# programs.
After some hours of tests, I decided to move to ADS OCX controls and it worked. Have you test this way?
Eugenio Goñi
05-28-2020 02:34 PM
Eugenio,
I only have used my code on the test bench so far, not for running a system. I'm using .NET but not callbacks. I don't actually need callbacks to make my TwinCat implementation match other options for motion control that I support. When I'm testing on a real system we'll see if I experience any memory leakage issues.
--David