Validity: Rule, Task
This variable is used to indicate the number of output channel that will be held in the ON state for the duration of task $RULE.
Syntax |
I32 rule_length_ch = n |
---|---|
n |
Digital output channel index |
If n is positive the output channel n is held in ON state during the entire rule execution, if n is negative at each start of execution it switches its state.
Example
; Output channel 257 is kept in ON state ; throughout the execution of the rules rule_length_ch = 257 ; The state of the output channel 258 ; is switched at each execution start rule_length_ch = -258 |