LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TwinCat 3 .NET Callback

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?

David A. Moore, Ph.D.
President
Moore Good Ideas, Inc.
0 Kudos
Message 1 of 3
(2,713 Views)

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

0 Kudos
Message 2 of 3
(2,098 Views)

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 

David A. Moore, Ph.D.
President
Moore Good Ideas, Inc.
0 Kudos
Message 3 of 3
(2,086 Views)