Posted 30 Jul 2020 If I use the PrgStop command to stop executing a program (say when a different model type or tooling fixture has been selected) is there a way to force the variables to clear? By default they retain their last value. Share this post Link to post Share on other sites
Posted 30 Jul 2020 Local variables or global? I would think local variables would zero out if they are not flagged for retain, but I have not yet looked at this. Share this post Link to post Share on other sites
Posted 30 Jul 2020 (edited) Local variables. I have not tried it with the actual hardware yet, but in simulation mode they maintain their last state. Edit: at least in the simulator, both local and global variables set in the stopped program retain their last state. Edited 30 Jul 2020 by AngryRobot Share this post Link to post Share on other sites
Posted 6 Aug 2020 Confirmed: I just tested this with the hardware and both global and local variables DO retain their values when the program is stopped and also after it is restarted. Share this post Link to post Share on other sites