How to upload a CODESYS program from a Weintek HMI

How to upload a CODESYS program from a Weintek HMI https://forum.weintekusa.com/uploads/db0776/original/2X/8/812bf0f5665b33a4eaddeda07fa70742b754ba53.png
none 0.0 0

While making some online edits to my Codesys PLC program, Codesys decided to crash on me. This happened after I’d made a lot of changes, applied them to my device (a cMT3108XP), but had not done a recent save of my Codesys project.

After opening that project file again, I was given the option to recover lost data and save it as a separate project. I clicked “Yes”, but then saw a popup with some reason that I couldn’t do that. I don’t remember the reason.

There was enough work lost that I wanted to just upload what’s on the device rather than re-do it. So in Codesys I clicked File → Source Upload, click on the only device seen, which is my Weintek HMI, and get the below message when trying to upload.

What is the method to just upload the entire Codesys project in a case like this so that I can recover lost work?

Hi @JDControlsLLC,

By default, CODESYS does not download the project source to the controller. This feature must be enabled before login using the method described within this video: Link

If you did not configure the project to download the source code before it crashed it will not be possible to recover the application as no source code exists on the device.

You can configure save to automatically occur with each build, assuming this fits your workflow.

As mentioned, source upload is not default. It can be set to automatically occur but does slow down transfers.