I am debugging a Codesys control program for a Compax3 motor system, but when I build or rebuild the project (create binary file is enabled in build options, and a message in the terminal says the binary file has been made), then download the new version of the project to the Compax3 system (Download -> IEC61131-3 project -> Click to Begin 'IEC61131-3 project download'), the program that gets run in the optimization window is clearly not the same as the updated project.
I know this because I have set certain outputs to always be true or always be false for testing purposes, but no matter what, only output O2 is lit up as true, and everything else is false.
The Compax3 device is configured as I11T30, and I haven't had issues like this in the past with other Codesys test programs I have made/updated that couldn't be resolved by making a new program and copying all the ST code there (which I tried with this one to no avail), so I am not sure what is going on. Is the binary file not being properly created/updated on the Codesys side, or is it a download problem on the Compax3 side? In either case, why is this happening?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am debugging a Codesys control program for a Compax3 motor system, but when I build or rebuild the project (create binary file is enabled in build options, and a message in the terminal says the binary file has been made), then download the new version of the project to the Compax3 system (Download -> IEC61131-3 project -> Click to Begin 'IEC61131-3 project download'), the program that gets run in the optimization window is clearly not the same as the updated project.
I know this because I have set certain outputs to always be true or always be false for testing purposes, but no matter what, only output O2 is lit up as true, and everything else is false.
The Compax3 device is configured as I11T30, and I haven't had issues like this in the past with other Codesys test programs I have made/updated that couldn't be resolved by making a new program and copying all the ST code there (which I tried with this one to no avail), so I am not sure what is going on. Is the binary file not being properly created/updated on the Codesys side, or is it a download problem on the Compax3 side? In either case, why is this happening?