Error Twincat 3, impossible to go online

Jr2009

Member
Join Date
Oct 2009
Location
Flanders
Posts
9
Greetings,
after doing some online modifications on a Beckhoff CX5040 PLC with Twincat 3 I get this error:
Error.jpg

I cannot get online, not even after trying 'Clean Solution'.

The only solution is restarting the PLC but in a production environment this is not so easy :mad:

Anyone has more info/ideas to tackle this problem?
 
I assume you mean you modified the PLC code. Did it compile w/ no errors or warnings (Rebuild All)? Until you get a good build, you won't be able to go online. I have seen cases where we got only partly online - some code windows showed debug view and others not. I think that means your PLC code has problems, since after fixing the code all showed debug view.

"Clean All" deletes the links between PLC variables and I/O memory locations. I always answer "No" to the "Keep Unchanged?" box. After a clean, I recall you need to "Activate Configuration" again in "System" to re-map the I/O. Then, "Rebuild All" again to be safe.

In TwinCAT2, you do above by going back and forth several times between two separate programs - "System Manager" and "PLC-Control". It is a little klunky, but you better understand what is going on. It is more behind the scenes and integrated in TwinCAT3, but also less obvious how it works.

Restarting the PLC loads the last "Boot project" code. BTW, if your PLC code has errors, it might hang as the boot code starts. I have seen that when bad PLC code crashes Windows (array index out of bounds). To fix, start Windows in Safe Mode and delete the boot project in the TwinCAT folder, then reboot.

For safest use in a production environment, after you have robust PLC code and any HMI, to lock it down use the "embedded write filter" of Win7E. Beckhoff's CX come w/ a little Windows utility to set it. That stops writes to the hard drive (SSD). That means no matter what Operator's do, if they reboot the PC it will come up in the last configuration. Avoids 3 am trips to the plant.
 
Thanks RocketTester for the reply.

Indeed I modfied the code but the code can be compiled.
It really is a fault in TC3, one of many :-(

But I asked because sometimes there is a workaround.
 
as the message says, download the old program, change it on the computer and then save it, now download the new one to the PLC.
 

Similar Topics

Sorry if this has been asked before, and apologies if this seems like a trivial issue, but I am new to Beckhoff and have been banging my head...
Replies
1
Views
60
Gents, I'm trying get some SEW Movigear motors in control by a Beckhoff PLC which is TwinCAT 3. The SEW motor is connected by EtherCAT and is...
Replies
0
Views
1,287
Gents, I'm pretty new to Twincat 3 and facing at an annoying issue when try to go online with a remote Beckhoff PLC. At out plant we have 10...
Replies
5
Views
4,555
Hello: I have a TwinCAT embedded PLC and for years I was able to access it through the AMS NetID. Recently updated Windows 10 and I was not able...
Replies
6
Views
15,811
Hi! i try to use string as variable name in a forloop my problem is tahat my if insturktion not allow strings as variable name. my declaration...
Replies
7
Views
2,342
Back
Top Bottom