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
4
votes
1 answer

How do I run a Twincat program without PLC?

I am a beginner in Twincat and have been playing around with it. I watched this playlist where this guy explain structured text and successfully runs a program on his system. However when I try to run on my system, I get error 0x1028. Then I read…
Piper
  • 149
  • 11
3
votes
1 answer

What is the difference between "Action" and "Method" in TwinCAT 3?

I see options to make an action instead of a method when using function blocks in TwinCAT 3. I am only familiar with methods. What is the difference between the two, and when should you use one instead of the other? I would like to know why the FIFO…
Robert S
  • 33
  • 3
3
votes
3 answers

How to properly and fully uninstall TwinCAT 3?

Disclaimer: I am aware that the "how to" questions are not very appreciated here but it was the most effective way to sum up my question and make it available for other people if an answer is found. I have tried on multiple occasions to remove…
Jack
  • 695
  • 10
  • 29
3
votes
3 answers

Error starting twincat AdsError: device timeout

At one point in my TwinCAT 3 project I suddenly couldn't start my project in mode. I didn't pay much attention to it but now I need to get back to the project and the industrial computer is in production, I don't have access to it so I can't…
Jack
  • 695
  • 10
  • 29
3
votes
3 answers

How can link BIT2 type to a variable?

In most input cards of Beckhoff, there are two variables, Limit 1 and limit 2. They have a BIT2 datatype, size of 0.2 bytes, which means they have two bits, as shown in the following figure for Limit 1: Bit0: Value smaller/equal Limit 1 Bit1: Value…
asys
  • 667
  • 5
  • 20
3
votes
1 answer

In TwinCAT, is there a way to get the real time (isolated) CPU usage from outside of the PLC code?

The CPU usage of non-RT cores is available in MDP (either over ADS or UA), but I'm unable to find any way to get the CPU usage of isolated cores from user land (i.e. Windows). I feel like there should be an easy way to read this since TcXaeShell is…
Jay
  • 33
  • 4
3
votes
1 answer

TwinCAT Motion record travel distance

I need some help writing a function block which I can use to record the travel distance of an axis. This should record every time the axis moves sort of like an odometer, this value will be used for preventative maintenance on the axis. ie greasing…
3
votes
1 answer

Deploying config files to PLC

Is it possible include arbitrary files (in this case a .csv) from a TwinCAT project direct to the Boot directory of a PLC? By using PATH_BOOTPATH in the file open/read FBs it is possible to load files from this directory in a convenient manner…
Steve
  • 963
  • 5
  • 16
3
votes
1 answer

What does "Activate TC Settings" do?

Upon installing a new TwinCAT version, an option can be selected called “Activate TC settings”. InfoSys mentions that If you also want to (re-)activate the TwinCAT XAE settings, activate the associated Activate TC Settings selection boxes. But…
Roald
  • 2,459
  • 16
  • 43
3
votes
2 answers

How to enable the TwinCAT remote status icon in Visual Studio

I always used to have a TwinCAT remote status icon in the bottom bar of Visual Studio (2017 Community). However, after a recent update of Visual Studio this icon disappeared. How can I get this icon back?
Roald
  • 2,459
  • 16
  • 43
3
votes
1 answer

How can warm start a method in TwinCAT?

One of the features of the method based on the definition of Beckoff site is that: All data of a method are temporary and are only valid while the method is executed (stack variables). This means that TwinCAT re-initializes all variables and…
asys
  • 667
  • 5
  • 20
3
votes
1 answer

How to get symbols from TwinCAT in windows 10?

I have to use Beckhoff I/O in real-time mode (not PLC project), because the final goal is to make a Soft-PLC, where the program runs on the cumputer and not on Beckhoff. So in Visual Studio I wrote a c# code which opens an existing TwinCAT project…
dvd_ronk
  • 81
  • 5
3
votes
2 answers

Reading properties from TwinCAT function blocks using c#

We are using a C# application to read variables from a Beckhoff PLC through TwinCAT ADS v.3. If we attempt to utilize the same code to read properties the code fails with an exception. FUNCTION_BLOCK FB_Sample VAR SomeVariable : INT; …
froeschli
  • 2,692
  • 2
  • 28
  • 55
3
votes
1 answer

TwinCat How To Initialize Functionblock with Reference to Global Variable

Hello StackOverflow Community, i have another question regarding the TwinCat/Beckhoff/Codesys Programming Language, maybe someone is able to help me with this problem. Here is the Problem: I want to initalize a functionblock with a reference to some…
manuel2705
  • 45
  • 4
3
votes
7 answers

TwinCAT Realtime Startup of isolated CPU Fails

I am currently running Twincat 3.1..4022.16 on Hyper V virtual machine. I am able to correctly build my project but when activating configuration I am getting realtime startup isolated cpu fail. Attached is my Realtime setting and the error. Any…
sami.khan
  • 31
  • 1
  • 1
  • 3
1
2
3
28 29