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
2 answers

TwinCAT 3: Synchronizing "F_GetSystemTime" with local Windows time?

I'm working on an application where I am time-stamping high precision data using the "F_GetSystemTime". This function returns the number of 100ns intervals since January 1st 1601. I also have my local Windows time synchronized to a global network…
Izzo
  • 4,461
  • 13
  • 45
  • 82
0
votes
3 answers

How to init bool array with TRUE in ST (Twincat2)?

How to init a boolean array in Structured Text (Twincat 2) with TRUE? For example like this: VAR a_referenz_array : ARRAY[0..2] OF BOOL := TRUE, FALSE ; (* This does not work !! *) END_VAR
Richard Teubner
  • 303
  • 2
  • 11
0
votes
1 answer

pyads.pyads.ADSError: ADSError: Service is not supported by server (1793)

pyads.pyads.ADSError: ADSError: Service is not supported by server (1793) import pyads pyads.open_port() print(pyads.get_local_address()) plc=…
shanmuga
  • 1
  • 2
0
votes
3 answers

TwinCAT crashes showing Debug: CSysService::SysUnhandledExceptionFilter(); Addr:770A2092 Code:C0000005

TwinCAT crashes every now and then with the following message in the eventlog Debug: CSysService::SysUnhandledExceptionFilter(); Addr:770A2092 Code:C0000005 Search on Google reveals nothing about why this is happening, how to troubleshoot this or…
0
votes
2 answers

How to deploy twincat 3 project to PLC programmatically

I´m looking for a way to activate the configuration and update the boot project via C#. My Twincat 3 project is compiled and all necessary file are in the /_Boot folder. Next step is a C# programm (actually unit tests) that loads and executes the…
downforme
  • 371
  • 2
  • 15
0
votes
1 answer

Variable links problem in TwinCAT 3 on windows 10

I am using TwinCAT 3 on Windows 10, and create a PLC project in visual studio 2013 shell(isolated). When I try to link an output variable to an input variable by “Change Link”, there is always no avaible variable to be linked. The pop-up window is…
Mahler
  • 394
  • 4
  • 14
0
votes
1 answer

How to solve problems with missing IoT drivers on PLC

I wrote a piece of code to set up MQTT communication very similar to https://infosys.beckhoff.com/english.php?content=../content/1033/tf6701_tc3_iot_communication_mqtt/54043198920281355.html&id= and I tested it using a virtual PLC. It works…
Louise
  • 3
  • 2
0
votes
5 answers

MQTT using TC3_IoT_Communication; no connection with MQTT broker but there is no error

I had a mqtt broker running on my computer and I could connect to it with twincat. I moved the mqtt broker to a server on the same network. I can connect with it by using Node-RED (so the hostname, hostport, username, and password must be correct),…
Louise
  • 3
  • 2
0
votes
1 answer

Twincat 3 how to declare variable

I am trying to convert some lines of code from siemens scl to twincat 3, I find myself in difficulty on some things that I explain below: This the code that I was to understand: VAR_INPUT in_00 : BOOL ; in_00_b AT in_00 : ARRAY[0..0] OF BOOL; …
SHKODRAN
  • 15
  • 1
  • 8
0
votes
2 answers

If a VAR_INPUT is of INTERFACE type, is the value pass-by-reference or pass-by-value?

In the TwinCAT and CodeSys IEC-61131 programming environments, it's possible to declare POU VAR_INPUTs using an INTERFACE as a type specification. I believe the support for interfaces in TwinCAT and CoDeSys is an extension to the standard IEC-61131…
Hydrargyrum
  • 3,378
  • 4
  • 27
  • 41
0
votes
1 answer

How to start/restart PLC using Twincat3 (error 1793)

Following the advice to the question (TwinCAT 3.0 Automation Interface without Visual Studio?) I receive 1793 error (Service is not supported by server). I try to write program to start/restart/config Beckhoff PLC using Twincat3 (this is the same…
0
votes
2 answers

How to handle a lot of MQTT subscription topics in TwinCAT using Tc3_IoTBase

I'm able to read multiple subscription topics by using this code. However I'm subscribed to a lot of different topics and the long if statement is slowing down my code. I already had to up the amount of cycle ticks to 20 (this is probably overkill,…
Louise
  • 3
  • 2
0
votes
2 answers

Beckhoff - Build query from results of another query

I want to build a SELECT statement from the results of query within the Twicat3 PLC environment. Query executes properly when variable is hard coded, but fails to execute when variable is passed from the results of another query. The defined…
0
votes
1 answer

Import excel data into TwinCat3

I want to enter large amount of data in twincat3 as an array. I have 6000*2 matrix(one column as time and other one is value corresponding of function). I read this link of Beckhoff but it was a bit hazy for me. I'm looking for a simple example of…
asys
  • 667
  • 5
  • 20
0
votes
1 answer

TwinCAT3: Running on isolated cores failed

I'm usingtwincat3.1.4020.32 on windows10. I've tried one simple code as: i:= i+1; but I got following error: 'TwinCAT System' (10000): Sending ams command >> Init4\RTime: Start Interrupt: Ticker started >> AdsWarning: 4118 (0x1016, RTIME: startup of…
asys
  • 667
  • 5
  • 20