Owning Palette: Timer
Installed With: RT Module
Generates an output signal with falling edges that align with those of the input signal, but with rising edges delayed by preset time (ms).
This function block generates an output signal that remains FALSE 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 function block runs. If an error occurs, the function block does not execute. |
| 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. If error in (no error) indicates that an error occurred before this function block ran, error out contains the same error information. Otherwise, it describes the error status that this function block produces. Right click the error out front panel indicator and select Explain Error from the shortcut menu for more information about the error. |
| 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. |
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.