Hi,
I am having some problems on execute a program at the controller start an init the variables only once.
For example:
Program main
VAR
i : INTERGER
ROUTINE Init
BEGIN
i=0
END Init
ROUTINE Program
BEGIN
i=i+1
END_Program
BEGIN
Init
REPEAT
abort_=FLG[555]
Program
DELAY(1000)
UNTIL abort_
END main
I put [Main] in HOT START and COLD START Autoexec program but every cold or hot start i restart to 0 even with the '" return to top of program" = FALSE
May be there is another way to do what I need?
Thanks