This instruction acts as a timer to generate a square wave.
Syntax |
tm_sqw (timer name, bool start) |
---|---|
name |
Name of the timer of type timer |
start |
Start input of the timer (rising edge). Can be any condition, even an expression (e.g., cp(1) > 1000) |
Validity |
Rule, Task |
Note |
Timers are not retentive |
Example of use: |