naturephoenix
Member
I'm wondering how should I use persistent variables in my program.
Should I just use PERSISTENT on the declaration of the variables I want to keep Values, or Second Option is to create NEW EMPTY PErsistent VAriables, Once USER press button on HMI I would copy
my Normal Variables to the "NEW EMPTY PErsistent VAriables".
On the PLC startup I would do the reverse , copy from
"NEW EMPTY PErsistent VAriables" to my Normal Variables.
Any ideas?
How do you guys usually using this feature?
Should I just use PERSISTENT on the declaration of the variables I want to keep Values, or Second Option is to create NEW EMPTY PErsistent VAriables, Once USER press button on HMI I would copy
my Normal Variables to the "NEW EMPTY PErsistent VAriables".
On the PLC startup I would do the reverse , copy from
"NEW EMPTY PErsistent VAriables" to my Normal Variables.
Any ideas?
How do you guys usually using this feature?