Owning Palette: Timer Function Blocks
Requires: RT Module
Generates an output signal with rising edges that align with the input signal, but with falling edges delayed by preset time (ms).
This function block generates an output signal that remains TRUE longer than the input signal by preset time (ms).
| Dialog Box Options |
| Block Diagram Inputs |
| Block Diagram Outputs |
| Parameter | Description |
|---|---|
| Inputs | Contains the following configuration options:
|
| Outputs | Contains the following configuration options:
|
| Parameter | Description |
|---|---|
| error in (no error) | Describes error conditions that occur before this node runs. |
| preset time | Specifies the amount of time for the function block to use in calculations. |
| input | Specifies the digital input signal. |
| Parameter | Description |
|---|---|
| error out | Contains error information. This output provides standard error out functionality. |
| elapsed time (ms) | Returns the amount of time, in milliseconds, elapsed since the start of the delay. If no delay has started, this output returns the amount of time elapsed since the first call of the function block. |
| output | Returns the digital output signal. |
If a new rising edge occurs on input during the delay period, output remains TRUE and the delay period restarts at the next falling edge of input.
The timing of this function block depends on the rate of the Timed Loop or While Loop in which you place the function block. For example, if you need the function block to update with millisecond resolution, you can place the function block in a Timed Loop configured to execute every millisecond.
The following timing diagram illustrates the behavior of this function block.