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
19
votes
6 answers

Console application not closing

I'm developing a console application that is supposed to run under WinCE 6.0 and WinCE 7.0. I'm using C#, Compact Framework 2.0 for different compatibility reasons. My application is started by an external runtime called TwinCAT (from Beckhoff).…
Andy M
  • 5,945
  • 7
  • 51
  • 96
8
votes
1 answer

What do the I/O Idle Task and the PlcAux Task do in TwinCAT?

There are two default tasks which always get added to a newly created TwinCAT project: the I/O Idle Task and the PlcAux Task. I wonder what these tasks do and are responsible for? And what are the influences when I for example change their…
Roald
  • 2,459
  • 16
  • 43
7
votes
4 answers

Is there a way to increase the stack size in Twincat 3

I am getting stack overflow problems and I can clearly see that it happens with the introductions of some new arrays. I cannot find the option to increase the stack size on the soft PLC (Twincat) running on my machine. Any help is appreciated
gone
  • 81
  • 1
  • 2
6
votes
7 answers

TwinCAT3 AdsWarning 4115: system clock setup fail

I've got problem with TwinCAT3 (Win10 64bit) when I try to active TC3. Error message is : Severity Code Description Project File Line Suppression State Error 19-Jan-19 11:42:34 AM 545 ms | 'TwinCAT System' (10000): Sending ams …
talpham
  • 61
  • 1
  • 1
  • 2
6
votes
1 answer

Twincat ADS event driven reading stops working after a while (Java)

We developed a Java application which uses the TwinCat ADS library (DLL) to read, write and handle events from the Beckhoff PLC (CX5120). We successfully run this on several machines but unfortunately we’re currently having a problem case where the…
Inth_TS
  • 111
  • 5
6
votes
1 answer

Write array of struct using TwinCAT.Ads through C# application

I’m using TwinCAT.Ads (TwinCAT 3) for Beckhoff plc communication through c# application. Application is reading and writing few plc variables. I’m getting an error: “Unable to marshal object. Parameter name: value” while writing an array of…
V P
  • 91
  • 3
  • 10
5
votes
1 answer

Is there a way to print to output console? (twincat3)

Is there a way to print to output to console like debug.print() in VB.NET using structured text? (twincat3)
Jess
  • 88
  • 2
  • 8
4
votes
3 answers

C# Backgroundworker and Twincat, How to fire Notification event inside worker thread

I had little knowledge about mixing events and threads. The scenario is that there is a C# program running on a PC and Twincat running on a PLC. We need to access PLC variables inside the C# program ( Already done without a background worker thread…
abhilash
  • 245
  • 4
  • 10
4
votes
2 answers

How can I use a local TwinCat 3 runtime with Hyper-V enabled?

I'm trying to run TwinCat 3 XAR in a PC where I need to have hyper-V ON to run Azure IoT Edge (which uses hyper-V). Is there a way to run XAR with hyper-V turned on? Is there any way to isolate the cores from hyper-v or something else?
Paulo Ilheu
  • 61
  • 1
  • 4
4
votes
4 answers

What is the benefit of defining enumerators as a DUT?

The main goal of defining enumerators is to assign a variable to some numbers and their equal strings as I understand. We can define var a as an enum everywhere in the initializing section of our Program or Function Block like…
asys
  • 667
  • 5
  • 20
4
votes
3 answers

How to assign an initialized array to an array of arrays in TwinCAT

I'm trying to assign two initialized arrays evenNumbers and oddNumbers to an array of arrays integers: PROGRAM ArrayInit VAR evenNumbers : ARRAY[1..3] OF INT := [2, 4, 6]; oddNumbers: ARRAY[1..3] OF INT := [1, 3, 5]; integers :…
Roald
  • 2,459
  • 16
  • 43
4
votes
1 answer

Twincat3: Can't connect to LabVIEW's Modbus TCP/IP server via Tc2_ModbusSrv library (on virtual PLC)

I am trying to create a simple Hello World Modbus TCP/IP program using Twincat3 and virtual PLC (PLC running locally on my computer). I have set up a LabVIEW Modbus TCP/IP master + slave program (both of which are working see screenshots below). I…
Jakub Szlaur
  • 1,852
  • 10
  • 39
4
votes
3 answers

How do I pass an array of an extended type in codesys/twincat3?

Say I have an abstract function block AValve that I extend for various types of valve. I extend that AValve in order to implement it as a BasicValve. Also I have a function block that takes an array of AValve, which looks like this FUNCTION_BLOCK…
Taeo
  • 55
  • 7
4
votes
2 answers

TwinCAT - How to measure program execution time?

I would like to measure the execution time of a structured text (ST) program. The task associated with the program is running at 10 ms. How do I measure execution time?
Piper
  • 149
  • 11
4
votes
2 answers

How to make inputs of a function block method optional?

When calling a method of a function block, is it possible to make certain input variables optional? If I call fbA.methA() without assignments for all input variables, TwinCAT throws an error: "Function methA requires exactly 'x' inputs." There are…
kolyur
  • 457
  • 2
  • 13
1
2 3
28 29