Not with a V570 unless the program was "Burned" upon download. If not then the poster is out of luck. If it was burned on download, it would have loaded up immediately when powered on (with or without a battery). I suspect it did not which is why the poster is here.
Your problem is somewhere else on your code, I bet you.
Those rungs both are correct.... assuming you are not using both at the same time because as mentioned by other you can not use a coil twice
I dont think that this is the case that @salt has mistaken inverted coils with normal coils
I would think that the program should still be intact. Typically, only the data would be lost upon a battery failure...things like timer and temperature settings. If you know the process parameters, you may be able to replace the battery and re-enter your parameters and get back to brewing.
Thanks for the helpful comments.
A description of the program :
There are several modes of operation:
1- Standard process according to set points (3 temperatures and 1 relative humidity) by which some of 8 outputs are ON and some OFF in 8 states (combination matrix of 3 temperatures and 1 rh).
2- external (by modbus) main switch. When on - the operation is same as (1), otherwise shut down of all outputs in particular order.
3- operation in case of operational problems (detected by digital inputs). In this case, and depending on the detected fault , some of the outputs go off and stay that way for several minutes.
Based on this I decided to dedicate each mode of operation to its own subroutine which run one after another, wherein 8 internal MBs change state before actual output. Thise are overriden in order: mode 1 then 2 and last 3. So the last mode turns off relevant MBs set beforehand.
The snippets I posted above are from the third subroutine (events).
Now, I see that I should have used resets instead of inverted coils, because I need only to turn false some of the MBs. DanT -so yes because of this coils were true instead of just going false in this subroutine.
Ausman, I'll consider your suggestion on using vectors instead of MBs.
I tell you all this because maybe you have another idea for the design of the entire program.