Reputation: 733
At one point in my TwinCAT 3 project I suddenly couldn't start my project in <Local>
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 launch my app directly on it so I need to fix this error I get when I try to launch the app on my computer.
I get two pop-up errors windows when I click on the Activate configuration
button.
First one states:
Error starting TwinCAT system!
Init12\IO: Set State TComObj SAFEOP: Set Objects (11) to SAFEOP >> AdsError: 1817 (0x719, ADS ERROR: device has a timeout)
For further information start the event viewer and open the log.
The second one states:
12/12/2022 15:30:00 573 ms | 'TwinCAT System' (10000): Sending ams command >> Init12\IO: Set State TComObj SAFEOP: Set Objects (11) to SAFEOP >> AdsError: 1817 (0x719, ADS ERROR: device has a timeout) << failed!
I disabled my IO card (which is an EtherCAT device), I also tried to disable the SafetyCard but I still get the problem.
I tried to run the win8settick.bat
script and reboot multiples times, it didn't work.
Hyper-V
is disabled.
I tried using Visual Studio 2019
and TwinCAT XAE Shell
directly (which runs under Visual Studio 2017
I believe)
I have tried all these on my computer directly (Windows 10 64 bits 12 cores i7 CPU) and also on a Windows 10 IoT Enterprise 2019 LTSC
virtual machine which has the same configuration as my industrial computer.
Does anyone know how I could solve this issue? Thank you in advance!
Upvotes: 3
Views: 9237
Reputation: 415
I have faced similar problems / errors and for me the following procedure always works:
It happens sometimes when you work in an IPC and after that you want to continue working in another machine, it seems Twincat
make diverse configurations with the TcCom objects that are not migrated when you archive the solution, you can give it a try, I hope it helps
Upvotes: 0
Reputation: 171
This message basically says that one of the TcCom-Objects did not start up correctly. Almost everything is a TcCom-Object in TC3. EC-Master, EC-Slave, PLC, Axis, XTS-Mover, Task, C++ Modules, ... In your case the TcSystem-Object failed to switch to SafeOp. This can have a bunch of reasons. Saying, you have to provide more information. Please give use a screenshot of your project tree and have a look in the (Windows-)Event-Viewer on the target system. Also the Output-Window in the IDE can provide additional information.
Upvotes: 0
Reputation: 1
If ADS is returning that error when an IP stack TcCOM object is started, the configuration of the network card is probably incorrect.
Check the settings under “Adapter” for the network card in the project folder.
The configuration of the network card for the TCP/UDP RT module is documented in more detail here:
Hope it works!!
Upvotes: 0