rQx
Lifetime Supporting Member
Hi!
I've just discovered a problem with my datablock.
I have some values that I wan't to be save even if the power break.
So I have a DWORD that monitor the number of starts. I have it retaining.
But after the power break the DWORD goes to 0 because this is the initial value of the DWORD. How should I be able to have this DWORD retain over power breaks when the PLC always set it to 0 at startup?
I've just discovered a problem with my datablock.
I have some values that I wan't to be save even if the power break.
So I have a DWORD that monitor the number of starts. I have it retaining.
But after the power break the DWORD goes to 0 because this is the initial value of the DWORD. How should I be able to have this DWORD retain over power breaks when the PLC always set it to 0 at startup?