Trigger Window Controls
This paragraph deals with the trigger window controls, which allows you to better supervise the working of this debugging tool, to get more information on the code.Trigger window controls act in a well-defined way on the behaviour of the window, regardless for the type of the module (either IL or FBD) where the related trigger has been inserted.All controls are not accessible until at least one variable is dragged into the Variables window.Window controls are made accessible to users through the grey top half of the debug window.
Trigger counter
This read-only control counts how many times the debug window manager has been triggered, since the window was installed.The window manager automatically resets this counter every time a new triggering session is started.Trigger stateThis read-only control shows the user the state of the Debug window. It can assume the following values.
User-defined condition
If you define a condition by using this control, the values in the Debug window are refreshed every time the window manager is triggered and the user-defined condition is true.After you have entered a condition, the control displays its simplified expression.
Counters
These controls allow the user to define conditions on the trigger counter.The trigger window can be in one of the following three states.
Button | Command | Description |
Start/Stop | This control is used to start a triggering session.If system is triggering you can click this button to force stop. Otherwise session automatically stops when conditions are reached. At this point you can press this button to start another triggering session. | |
Single step execution | This control is used to execute a single step trigger. It is enabled only when there is no active triggering session and None is selected. Specified condition is considered. After the single step trigger is done, triggering session automatically stops. |
The trigger has not occurred during the current task execution. | |
The trigger has occurred during the current task execution. | |
System is not triggering. Triggering has not been started yet or it has been stopped by user or a halt condition has been reached. | |
Communication with target interrupted, the state of the trigger window cannot be determined. |
- None: no counter has been started up, thus no condition has been specified upon the trigger.
- For: assuming that you gave the counter limit the value N, the window manager adds 1 to the current value of the counter and refreshes the value of its variables, each time the debug window is triggered. However, when the counter equals N, the window stops refreshing the values, and it changes to the Stop state.
- After: assuming that you gave the counter limit the value N, the window manager resets the counter and adds 1 to its current value each time it is triggered. The window remains in the Ready state and does not update the value of its variables until the counter reaches N.