Questions tagged [twincat]

TwinCAT is a PC-based PLC automation software package made by Beckhoff Automation.

TwinCAT is a PC-based PLC automation software package made by Beckhoff Automation.

Links

Related Tags

421 questions
0
votes
1 answer

Implement a Read_I_Point FB in TwinCAT 2 BeckHoff PLC

What I want to do is to create a FB to read the signal of input point when it is given a TAG NAME. For example, if the tag name is "I_motor_sensor", so "I_motor_sensor" is send to Read_I_Point FB, then the FB will give the current status back. So…
Sunh Hao
  • 3
  • 2
0
votes
1 answer

Simulink to TwinCAT 3 code export

I am trying to export Simulink to TwinCAT 3.I have followed the TwinCAT 3 Simulink-TwinCAT interface user manual and executed the same procedure as decscribed. I am using windows 10 (x64) but while building simulink it's throwing an error,saying…
0
votes
1 answer

Beckhoff CX9020 - Can't establish a connection with TwinCAT 3

I've got a Beckhoff CX9020 module with the following informations (as seen in General Tab in the CX Configuration Tool): System Information: Device Name: CX-xxxxxx Image Version: CX9020 HPS 5.02d CXConfig Version: 1.0 (Build 73) CPU Frequency: 1000…
FlKo
  • 805
  • 1
  • 10
  • 27
0
votes
2 answers

Publish and subscribe variables between twincat 2 and twincat 3

I need to send a variable via ethernet from a Twincat 3 to a Twincat 2. Is it possible? How could I do that?
JosepB
  • 2,205
  • 4
  • 20
  • 40
0
votes
2 answers

TwinCAT 3 Task Start/Stop from PLC

I need to run some code every time the PLC starts. This code should only be run once and then never again until the PLC is restarted. I initialize some global variables and validate the persistent data before allowing the main PLC to run. This is…
DevLocus
  • 55
  • 1
  • 9
0
votes
1 answer

c# twincat passing argument to class constructor

I wonder what is the best way. If I need to pass a class to a class constructor why should I use a variable inside my class. Example: using Beckhoff.App.Ads.Core.Plc; Class test() { private static IBAAdsServer AdsServer; private static…
JudgeDreed
  • 143
  • 1
  • 13
0
votes
1 answer

Use pyads library in multiple python processes in parallel

I've imported pyads (Python lib to communicate through the TwinCAT library with TcAdsDll.dll. I've read here that this library has multi-threading capability. Is it also possible to use the pyads library in multiple processes without conflict? To…
David Zwart
  • 431
  • 5
  • 23
0
votes
1 answer

How to know if it is a reader in a delegate event callback?

I have a question about callback. I have two forms(VS2010). I have made a class that raise an event when the ''valueIN'' change. I set a delegate in my class so that any Form can get the ValueIN when it changes. The problem I create the Form2…
JudgeDreed
  • 143
  • 1
  • 13
0
votes
0 answers

Publish Procedure Failed - Simulink code generation with TwinCAT Target file

I would like to develop an application in Matlab/Simulink which will be integrated in TwinCAT by TcCOM modules (code generation with TwinCAT.tlc target file). I have some problems in the PUBLISH PROCEDURE!!! First of all, I have to mention that I…
ferko
  • 1
0
votes
3 answers

where can I find tcadsdll.dll?

I am running an example application using TwinCAT ADS communication system, got from a colleague. When I give the command to connect to ADS, error ' fail to load tcadsdll.dll file ' appears; I have looked for it on the web but din't find
Danich56
  • 1
  • 1
  • 1
0
votes
4 answers

Change system time of Beckhoff controller by programming

For the last couple of hours, I am facing problems with changing system date and time by structured-text programming. I have used function block FB_LocalSystemTime where I can read the system time. But I could not find any function or function block…
krishna
  • 123
  • 1
  • 1
  • 12
0
votes
1 answer

Frequency calculation in Beckhoff TwinCAT3.1

I am trying to determine the frequency of a pulsing input, which is tacho feedback of a pump. I have tried to create two timers which are a second each, and counts up every time there is rising edge. Based on the number of rising edges in a second,…
Vinny
  • 48
  • 8
0
votes
2 answers

explanation about NT_GetTime in twincat/beckhoff plc

Can I have explanation about this function block and its parameters (timeout: what is it for, busy: when it will be true and false)?
Ahmad Z. Tibi
  • 419
  • 2
  • 8
  • 19
0
votes
3 answers

TwinCAT 2.11: Set Config/Freerun-Mode with Win32-Application

I am using TwinCAT I/O 2.11 on Windows XP SP2. With the .NET-Library "TwinCAT.ADS" I already managed to read and write Inputs/Outputs (mapped objects from the device on the EtherCAT bus). But of course this only works when TwinCAT is in Freerun or…
0
votes
3 answers

TwinCAT 3, Using Methods for internal FB functionality or just for interfaces?

I´m old users of Beckhoff technologies, especially TwinCAT. At the moment, we are suffering a transformation of our PLC architectures due to the new functionality that are bring by TwinCAT 3 (Object Oriented) At the moment we are developing our new…
OscarSanhueza
  • 317
  • 2
  • 13