Thank you for providing your code.
We've all been there, so I'd like to take a step back. The first two rungs we see are the Start and Stop rungs below*. There are two canonical ways to start and stop a process or sub-process: the Start/Stop Pattern (see
this link); and the Set/Reset Pattern (see
this link). One reason for using the Start/Stop pattern is that the process should always be put in its stopped state when the PLC mode changes to Run (e.g. after a power failure and recovery). One reason for using the Set/Reset pattern is that the process should be returned to its previous state, started or stopped, when then PLC mode changes to Run.
Looking at your code, it seems that you have confused the two patterns:
View attachment 60020
I am not saying the code does not work as is, but it does mean that your code is more cluttered than it needs to be, certainly on these two rungs and therefore likely elsewhere, which will make adding new features, such as runtime balancing, more difficult.
Also, while there are some comments in the code, it is very brief; it would be helpful for others here, and more so for yourself a few months from now doing diagnostics, if there was more a detail comment on the reason and behavior of each rung. Comments should describe what is happening in the process (e.g. "Switching to manual or pressing Stop button stops the process"); comments do not need to describe the logic instructions (e.g. "XIC of Manual bit or XIC of Stop bit will cause Reset instruction to reset System_1 bit"), because it is assumed the reader can read the logic.
Again, we have all been there I am not trying to embarrass you. But with experience will come a recognition of things like these. Also, it will be difficult to communicate in this forum unless there is more of a common understanding how PLCs work. I strongly suggest you commit to memory at least the Start/Stop pattern and the Set/Reset pattern, and look at the other patterns on that website (see
this link). Further, you will benefit from watching Ron Beaufort's excellent bootcamp primer series, comprising less than a dozen videos and taking less than a couple of hours; see
this link.
* I removed the XIO Toggle_1/_2/_3 instructions for clarity.