Beckoff TwinCat communication

jonfarrugia

Member
Join Date
Mar 2008
Location
London
Posts
130
I am creating an application using Labview and I'm trying to populate some variables in the PLC. I went to beckoff's website to download the "TwinCAT ADS Communication Library". This software is suppose to be free but when I try to install it, it asks for a serial number. I just cant get around it. Any advice?
 
Thanks!

I have another question. Do these drivers communicate directly with the plc hardware or to TwinCAT. If this is a dumb question, I am very new with twincat!
 
Last edited:
Do these drivers communicate directly with the plc hardware or to TwinCAT.
TwinCAT is essentially a service that runs on the Windows XP and CE platforms with exception of the smaller controllers. For instance, if you have a CX1020 with a TwinCAT runtime on Windows CE, then the TwinCAT service running in the background listens on a TCP port for incoming commands.

The drivers in the communication library communicate with the service via the ADS/AMS protocol. There are multiple versions of the driver including DLL, ActiveX, scripting, and .NET

Hopefully I didn't make that too confusing.
 
Hi jonfarrugia, are you talking about distributed controllers, or distributed IO blocks without any intelligence? ADS messages can be sent over TCP IP to either type of device with the ADS Communications library, but the other issue is latency.

The ADS Communications library isn't nearly as fast as TwinCAT IO, because it doesn't contain the Real Time software. Are you just doing data collection, or do you require sub-second update times for control of distributed IO?
 
The app will talk with the beckhoff I/O manily for data collection.

I've been considering the ActiveX method because it seems to be the easiest. I am however looking for a manual that describes all the methods associated with the beckhoff activeX control. Does anyone know if such a document exists?
 
Since you are doing Data Collection and speed isn't an issue, the ADS Communications Library should be fine.

The documentation for the ADS Interface is all online here...
http://infosys.beckhoff.com/content/1033/tcadscommon/html/tcadscommon_intro.htm

The section below contains samples. The Beckhoff Information System is also available for download and offline viewing here...
http://www.beckhoffautomation.com/english/download/tcinfo.htm?id=70997977100337
It's quite a large file, but it's faster to navigate than the website.
 
ADS latency

Hi, I am new to PLC/TwinCat programming, and have a problem with ADS communications. I have a simple application (C++, .Net) in which I have a Slave following a Master with a GearRatio that is varied every 5 to 6 ms. I am using ADS WriteAny to change the GearRatio. But strangely, the motor does not respond for about 3 to 4 seconds. When it starts, it seems to make rapid speed changes, every 5 to 6 ms.

Reading back the value immediately after writing gives the correct values, right from the beginning. Only no response from the motor, initially!

Any help in solving this will be greatly appreciated.

Thank you!
 

Similar Topics

I'm wondering how should I use persistent variables in my program. Should I just use PERSISTENT on the declaration of the variables I want to...
Replies
1
Views
2,266
I just see new tech of relationship between BECKOFF PLC Modules and IPC through Profibus in HUSKY Hypet, i am little confuse to understand it, if...
Replies
3
Views
2,269
Hello, I am a robotics engineering student. I have recently been put on to an older project that is driven with twincat using a beckoff PLC. Just...
Replies
2
Views
4,611
How i Can connect Delta plc, with Beckoff remote IO cards?
Replies
2
Views
174
I am facing ADS Error reading/writing not permit while trying to connect Cx8090 PLC controller to my PC (see screnshots). I guess it is because of...
Replies
4
Views
1,731
Back
Top Bottom