ZQR
I want to see what the binary files run by PLCs look like. I am running PLC runtime on my Windows PC. Is there a way that I can get the binary file generated from the ST file I have uploaded? Thank you!
Reply 0 0
thiagoralves
You will find OpenPLC binary for the currently running program at C:\Users\[your username]\OpenPLC\runtime\home\[your username]\OpenPLC_v3\webserver\core\openplc 

But this is not a “PLC” binary. This is just another regular Windows binary containing the logic you wrote. As it runs on Windows it can’t be any different than this
Reply 0 0
ZQR
Thanks for your reply! If I use an actual PLC device to run the logic I wrote, is it possible to get the binary file? I suppose it depends on the OS on the PLC?
Reply 0 0
thiagoralves
It depends on a million of things. It depends if the program is compiled or interpreted, it depends if the program is stored in the Flash and if it is possible to dump the flash somehow... etc. Each device will have its own architecture. Even for OpenPLC, the binary it generates for a Raspberry Pi is different than the binary it generates for Windows. In any case what is the reasoning behind this question? Curiosity or research? If this is just curiosity, I suggest you go study about embedded systems design and computer architecture. You will have a better picture of how binaries work from the inside
Reply 0 0
Reply