Pulse
medium
Produces a 1-second output pulse on each rising edge of the trigger input.
What it teaches
Combines edge detection, output latching, and a timer that gates the pulse duration. Demonstrates that pulse width is decoupled from input duration — the trigger only starts the pulse, the timer ends it. Foundation for one-shot generators.
Parameters
| Tag | Direction | Type | Default | Description |
|---|---|---|---|---|
| In_Trigger | Input | BOOL | 0 | Trigger input; rising edge starts the pulse |
| Out_Pulse | Output | BOOL | 0 | 1-second output pulse |
Required behavior
- Out_Pulse goes high on the rising edge of In_Trigger.
- Out_Pulse stays high for exactly 1 second, then goes low.
- The pulse duration is independent of how long In_Trigger is held high.
- Subsequent rising edges of In_Trigger while the pulse is active are ignored.