TPERIOD (Functionblock) |
Top Previous Next |
TPERIOD is a periodic timer. This function block will activate its "q" output when it is enabled by using the enable input. The high_period specifies the period where the "q" output should be true, and the low_period specifies the period where the "q" output should be false. The periods are specified in milliseconds.
Timing:
•This functionblock uses the TP function block.
Input: enable : BOOL (true/false) Default FALSE If this input is true, the timer is enabled.
high_period : INT (0..32767) Specifies how many milliseconds the "q" output should be true.
low_period : INT (0..32767) Specifies how many milliseconds the "q" output should be false.
Output: q : BOOL (true/false) Output from the timer.
Declaration: FUNCTION_BLOCK TPERIOD;
Example: INCLUDE rtcu.inc |