TP Timer Pulse in PLC Programming: Definition and Usage
TP (Timer Pulse) is a timer instruction that generates a fixed-length pulse output when triggered. It produces a single ON pulse for a set time duration regardless of how long the input stays ON.How It Works
Think of a TP timer like a camera flash. When you press the button (trigger), it flashes ON for a short, fixed time, then turns OFF automatically, no matter how long you hold the button. In PLCs, the TP timer starts timing as soon as its input condition becomes TRUE.
Once triggered, the TP timer output immediately turns ON and stays ON for the preset time. After this time passes, the output turns OFF even if the input remains TRUE. This behavior helps create precise, short pulses in automation processes.
Example
This example shows a TP timer that creates a 5-second pulse when a start button is pressed.
START_BUTTON := TRUE; TP_TIMER(IN := START_BUTTON, PT := T#5s, Q => OUTPUT_PULSE); // When START_BUTTON goes TRUE, OUTPUT_PULSE turns ON for 5 seconds then OFF automatically.
When to Use
Use a TP timer when you need a precise, short pulse output triggered by an event. For example:
- Triggering a conveyor belt motor for a fixed time.
- Generating a timed signal to start another machine step.
- Creating a one-shot pulse to reset counters or alarms.
This timer is useful when the pulse length must be exact and independent of how long the input signal lasts.
Key Points
- TP timer outputs a fixed-length pulse on trigger.
- Output pulse duration is set by the timer preset.
- Pulse length is independent of input signal duration.
- Commonly used for one-shot signals in automation.