05-23-2006 10:13 AM
05-23-2006 10:23 AM
02-12-2009 06:24 AM
I would also like to know how to transfer Arrays from LabView to TwinCAT (for exampel a 10 x 32int Array).
Right now, I have an application which transfers 300 Bits from LabView to TwinCAT in 100ms via TCP/IP to a Beckhoff BC9000 controller. I do this using 10 individual 32int Variables with the AdsOcx AdsWriteLongReq. The problem here is, that it takes to much time for calling up 10 times the function AdsWriteLongReq. I do it in a for-loop and I have to place small breaks after ech AdsWriteLongReq call in this loop, in order to keep it running without errors. I would rather transfer all 10 int variables in one call, since they are all declared in a row (starting at adress 0 till adress 36)
I also figured out, that the AdsSyncWriteLongReq takes much longer than the AdsWriteLongReq command. I guess it is because of communication-acknowledgement
Does someone know a better way of how to transfer 300 Bits (or 38 Bytes) from LabView to TwinCAT in less than 100ms?
02-12-2009 06:49 AM
Sorry, I forgot to mention, that my application is not workin within 100ms. It takes a lot longer than that.
I also attached a small VI which explains how the communication right now looks like.
08-02-2011 08:55 PM
Check http://www.ackermann-automation.de/
They have libraries to comunicate with TWINCAT.
My current VI reads data from a beckhoff el3104 and displays it on a graph control, but the current sampling is 1 sec (for 60Hz wave I get nothing plausible). I'm working now to recode the programm to avoid calling the read function in a while loop.
Best regards
05-25-2017 03:54 PM
Dear could u help me out in twincat Ads programing.I m developing a program code with Ads fuction block to read the same data from common memory adress but from multiple controllers having different Amsnet ids. How to change the Ams net id in common ads function block using program.