Hi
I'm beginner in codesys
There is a PM564 ABB Plc in a machine and I am going to upload plc program
The connection with plc is established with tk503, Codesys is online and show plc status,
How can I upload the program in PLC? I don't have any source code.
regards
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Tim is right on the core point, unfortunately β what sits in the PLC is compiled code, so there is no upload that hands your ST or ladder logic back.
What I would do in your shoes, before rewriting anything, is check whether the source is still hiding somewhere. If the original programmer enabled the option to download the source together with the application, you can pull it back from the device through the Source Upload function in the Online menu, but it only works when that option was switched on at download time. On an ABB setup it is also worth asking whoever built or commissioned the machine for the Automation Builder project archive, I have seen that turn up on an old laptop or a USB stick more than once.
If that comes up empty, you are not completely stuck. Since you can already go online, you can watch the live values, look at the I/O mapping and the task configuration, and work out what the machine is actually doing before you touch anything. I usually note down the inputs and outputs as they change while the machine runs, that makes rewriting the application a lot less guesswork.
Then build the new application offline, test it in simulation first, and only download it to the real PLC once you are confident it behaves. Keep the safety circuits and any hardwired stops out of anything you rewrite, those should stay independent and be checked on site, not trusted to a fresh program straight away. It is a slow job, I know, but starting from the live I/O behaviour is usually quicker than starting from a blank page.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi
I'm beginner in codesys
There is a PM564 ABB Plc in a machine and I am going to upload plc program
The connection with plc is established with tk503, Codesys is online and show plc status,
How can I upload the program in PLC? I don't have any source code.
regards
You cannot. The code in the PLC is compiled. You either need the source code, or create a new application.
Tim is right on the core point, unfortunately β what sits in the PLC is compiled code, so there is no upload that hands your ST or ladder logic back.
What I would do in your shoes, before rewriting anything, is check whether the source is still hiding somewhere. If the original programmer enabled the option to download the source together with the application, you can pull it back from the device through the Source Upload function in the Online menu, but it only works when that option was switched on at download time. On an ABB setup it is also worth asking whoever built or commissioned the machine for the Automation Builder project archive, I have seen that turn up on an old laptop or a USB stick more than once.
If that comes up empty, you are not completely stuck. Since you can already go online, you can watch the live values, look at the I/O mapping and the task configuration, and work out what the machine is actually doing before you touch anything. I usually note down the inputs and outputs as they change while the machine runs, that makes rewriting the application a lot less guesswork.
Then build the new application offline, test it in simulation first, and only download it to the real PLC once you are confident it behaves. Keep the safety circuits and any hardwired stops out of anything you rewrite, those should stay independent and be checked on site, not trusted to a fresh program straight away. It is a slow job, I know, but starting from the live I/O behaviour is usually quicker than starting from a blank page.