Vai al contenuto

Closing a Trigger Window and Removing a Trigger

This page deals with what you can do when you finish a debug session with a trigger win- dow. You can choose between the following options.
  • Closing the trigger window.
  • Removing the trigger.
  • Removing all the triggers.
Notice that the actions listed above produce very different results.Closing the trigger windowIf you close a trigger window you’re just hiding its interface window, the trigger is still ac- tive. You will still see the green arrowhead (or the network highlighted).The fact that the trigger is active, means it is still working, if you reopen the interface you won’t find it at the same status it was when you closed it; for example the counter may have raised.You can reopen the interface window, to resume working with the same trigger, by open- ing the Trigger list window, select the record referred to that trigger, and click the Open button. Closing a Trigger Window and Removing a Trigger-image_0The interface window appears with value of variables and trigger counter updated, as if it had not been closed.Removing a triggerIf you choose this option, you completely remove the code both of the window manager and of its trigger. To this purpose, just open the Trigger list window, select the record referred to the trigger window you want to eliminate, and click the Remove button. Closing a Trigger Window and Removing a Trigger-image_0Alternatively, you can move the cursor to the line (if the module is in IL or ST), or click the block (if the module is in FBD or LD) where you placed the trigger. Now press Debug>Add/Remove trigger.Removing all the triggersIf you wish, you can remove all the existing triggers at once, regardless for which records are selected, by clicking on the Remove all button from the Trigger list window. Closing a Trigger Window and Removing a Trigger-image_0Alternatively you can select Debug>/Remove all triggers.