Trigger variables and trigger type

Previous chapterNext chapter Show allShow all    Hide allHide all

info Info

For allocations it is possible to define a Trigger-Variable and a Trigger-Style. With their help, you can define event-driven allocations. The allocation is not carried out automatically but only when the Trigger-Variable changes its value.

Possible options are:

No Trigger-Variable has been defined:

The behaviour of the allocation is as before. For every change of the source variable, the source value is also assigned to the target variable.

A Trigger-Variable has been defined, and the option Edge has been set:

The allocations is only performed when the value of the Trigger-Variable changes 0 to 1. Only the positive flank of the Bool variable causes the allocation to be triggered. The allocation is no longer triggered automatically by a value change of the source variable.

A Trigger-Variable has been defined, and the option Level has been set:

As long as the value of the Trigger-Variable equals 1, the allocation is carried out. Every time the value of the source variable changes, the allocation is activated and the value is written to the source variable. The allocation stays active until the value of the trigger variable changes back to 0.