Questions tagged [twincat-ads-.net]

The TwinCAT.Ads DLL is a .NET class library, that provides classes to communicate with an ads device.

The class library is part of the TwinCAT AdsCommLib. The DLL allows for server-client based communication in a synchronous and asynchronous(event-based) manner.

Links

Related Tags

34 questions
1
vote
1 answer

Write array of struct using TwinCAT.Ads through vb.net application

I’m using TwinCAT.Ads (TwinCAT 3) for Beckhoff plc communication through vb.net application. Application is reading and writing few plc variables. I need to write in an array of struct. My struct : Friend Structure Struct_Recette Dim nNumProg As…
Luigi G.
  • 38
  • 6
0
votes
1 answer

Beckhoff ADS decoding

I'm trying to decode the ADS data for a small project I'm doing in my free time. I want to retrieve as much information as possible. So far, I have successfully decoded most of the Symbol information. I'm trying to decode this: [1, 0, 0, 0, 0, 0, 0,…
Krystian
  • 11
  • 2
0
votes
1 answer

Unable to scan slots with local mode in TwinCAT

I'm currently facing an issue with slot scanning on my PC using TwinCAT. Here's the setup: I have a CX2030 PLC with several slots for Beckhoff modules. I have another PC connected to one of the CX2030's ports through an RJ45 connection. I have set…
asys
  • 667
  • 5
  • 20
0
votes
1 answer

Query the configured TwinCAT Static Routes using TwinCAT - ADS API

I am using the Beckhoff.TwinCAT.Ads Version = 6.0235 NuGet package in c#, I want to query the configured Static Routes: I have tried with TwinCAT.Ads.TcpRouter and TwinCAT.Router namespaces with no success: Is that possible? Which class or method…
DonMiguelSanchez
  • 376
  • 3
  • 15
0
votes
0 answers

TwinCAT stops sending notifications after a few seconds

using the ADS.NET Interface for TwinCAT (Package Beckhoff.TwinCAT.Ads 6.0.235) together with TwinCAT 3.1.4024.42 (as of today) we are experiencing an undesired effect. When connecting to a variable by notification with a cycle of notification update…
Tomsaw
  • 11
  • 3
0
votes
0 answers

In Twincat, how ca we read windows core CPU loads?

TC_CpuUsage and TC_CpuUsageEx can give you cpu loads on RT cores but you can't read windows cores, is there a way to read the load on all CPU cores in the twincat program? Also where can I find details of AMS Port 200 (RT server) there might be some…
0
votes
1 answer

Twincat Ads Reactive weird Handle behaviour

I'm working with TwincatAds.Reactive 6.0.190 in .NET 6 WPF Desktop application. I'm also using MVVM pattern. My goal is to create a Class that is going to observe for a PLC Variable changes, collect those variables to a dictionary, and later on use…
0
votes
1 answer

Twincat 3 Writes data in AdsServer

I'm trying to write my own ADS Sever (using .NET 5). Here is my Code: public class SampleServer :AdsServer { private IServerLogger _serverLogger; public Server(ushort port, string portName, ILogger logger) : base(port,…
0
votes
1 answer

Write variables of TwinCAT 2 PLC via ADS remotely

The reason why I am asking a question is because I am having issues writing variable values of a TwinCAT 2 system remotely (but reading variables works fine). The setup what I am trying to make working is the following: There is an avreage PC where…
ZolkoKft
  • 21
  • 3
0
votes
0 answers

How to solve TwinCAT XAR C++ module instance error?

I have two PCs connected to each other in TwinCAT as shown in the picture. Successful Connection But, I am facing an error when I try to activate the configuration. Error AdsError 1792 is shown in the picture. Error picture For further reference,…
Talha Bashir
  • 33
  • 1
  • 7
0
votes
1 answer

TwinCAT XAR showing file missing error on starting windows PC

The windows-PC having TwinCAT XAR installed on it, after starting shows a file missing error. I tried reinstalling with the fresh download. But, the same error appeared again. The error is shown in the picture The system information is also shared…
Talha Bashir
  • 33
  • 1
  • 7
0
votes
1 answer

How to get Remote User Credentials in TwinCAT XAE of Target System?

How can I get the password for the Remote User Credentials in TwinCAT XAE. Context: I have TwinCAT XAE in development PC-Windows and I have TwinCAT XAR on another PC-WINDOWS which is my Runtime PC. I want to connect both these PCs via Ethernet/IP to…
MAK
  • 1
  • 2
0
votes
1 answer

Can a simple PC (windows 10) having TwinCAT XAR be used as a target in host computer having TwinCAT 3 XAE

I want to know if I can use a system(run time pc) with Windows 10 OS which has TwinCAT XAR installed in it as a remote system. In other words can I select it as a target? Do we need any extra settings to make it work or it will work just like any…
Talha Bashir
  • 33
  • 1
  • 7
0
votes
1 answer

C# equivalent enums for TwinCAT Data types

Do I need to write the enums for the TwinCAT data types? Or they exist somewhere and I just can't find them? Example: there is a data type called MC_HomingMode, which defines how to perform homing. I want to control it VIA ADS, so I need an enum for…
Yomi1984
  • 165
  • 2
  • 10
0
votes
0 answers

Reading String from TwinCAT PLC using ADS.NET returns ???? after data

I'm trying to read String data from TwinCAT PLC using WinForm and ADS.NET. I based my code from their sample codes. Writing the string into the console shows my data as: "123456????????????????????????". I can use a textbox and it will show and save…