This instruction acts as a timer to delay a rising edge by a predefined time.
Syntax |
tm_on (timer name, bool start) |
---|---|
name |
Name of the timer of type timer |
start |
Timer start input (rising edge). Can be any condition, even an expression (e.g., cp(1) > 1000) |
Validity |
Rule, Task |
Note |
Timers are not retentive. In case of programmatic approach tm_on() should be initialized and set to false before the main loop |
Example of use:
Example usage: NOTE: In case of programmatic approach tm_on() should be initialized and set to false before the main loop.
|