Old values in variables after starting program

Hi,
We have a problem with one of ours robots. After stoping and starting the program retains old values in global variables from previous run. After robot is powered on it works fine clearing its memory before starting program. I can’t initializate values at the begging because some of them are from URcap.
Did anyone have a similar problem?

Best regards

Hi Kuba,

since you can’t call them from “initialize variables” section, you can call the variables from a script line on the “before start” section and manually put them to zero or false. In some cases the variables are not initialized in the program until the URCap node is executed, if that happens you have to put them to zero after that node, otherwise it may cause an error for calling a variable that has not been created yet.

Regards
Anibal Hillier