The pulse timer TP behaves in a very definite way: after a rising edge at the input it holds the output for a fixed time and then resets it automatically, regardless of whether the input is still true. That makes it ideal for driving alarm lamps and buzzers that should sound for a while and then stop. The sections below cover its behavioural limits and how it differs from the other timers.
TP starts timing on the rising edge of the input, holds output Q at 1 for the preset time PT, and then resets it automatically whether or not the input is still 1. In other words, one signal in produces one pulse of fixed width out. Whether another rising edge during the timing interval restarts the timer depends on the retrigger behaviour of the instruction, so check that point before choosing it.
TON is on-delay: the output comes on only after the input has been true for the set time, and resets as soon as the input goes false. TOF is off-delay: the output stays on for a time after the falling edge of the input. TP is pulse output: a rising edge triggers a fixed duration. For an alarm that should "sound for a few seconds and stop", TP is the most direct choice; with TON the input would have to stay true.
Wire the alarm condition, such as a fault bit, to the IN of TP and let Q drive the lamp or buzzer output point. To sound once per alarm, trigger on the rising edge of the alarm bit; to prompt repeatedly while the alarm lasts, retrigger TP on its own completion or combine it with a flash bit. The two approaches feel different to the operator, so choose by what the site needs.
A common requirement is that the alarm sounds for a time and stops when the operator presses acknowledge. The approach: let the alarm bit produce a prompt pulse through TP, let the acknowledge button set an "acknowledged" flag, and decide whether prompting continues from the flag and the alarm bit together. If a new alarm arriving after acknowledgement should sound again, reset the flag when the alarm bit clears.
The PT of TP accepts time literals such as T#5s and can also be a Time variable so it can be adjusted from the HMI. Actual accuracy depends on the scan cycle: when the pulse width is far shorter than one scan, the output may be inaccurate or even lost, so short pulses such as 0.1 s require the scan cycle to be small enough.
| Prompting need | Recommended element | Trigger mode | Note |
|---|---|---|---|
| Sound a fixed few seconds | TP | Rising edge, fixed pulse | Resets itself on completion |
| Sustain until acknowledged | Set/reset flip-flop | Alarm sets, acknowledge resets | A new alarm must re-set it |
| Delay to avoid false alarms | TON | Input true for the full time | Resets when the input drops |
| Keep prompting after the alarm clears | TOF | Off-delay from the falling edge | Watch for leftover prompts |
| Flashing alarm | TP plus a flash bit | Timer drives self-reset | Flash period adjustable |
| Repeated intermittent prompting | TP retriggered | Retrigger on completion | Avoid making it too frequent |
| Several alarms share a buzzer | TP outputs or logic | Selected by priority | Avoid output contention |
| Adjustable alarm time | TP with PT as a variable | Time sent from the HMI | Bound it to a sensible range |
| Record how long the alarm lasted | TP with a counter or timestamp | Timestamp on the edge | For later traceability |
The value of TP is turning a single event into a fixed span of prompting so the operator has time to notice. Before choosing it, settle three things: what triggers it, how long it sounds, and what happens if a new alarm arrives while it is sounding. Once these are fixed, the wiring and the logic will both be right.
Timer instruction semantics and the time data type follow GB/T 15969.3, Programmable controllers, Part 3: Programming languages (equivalent to IEC 61131-3). The electrical safety requirements for alarm signals and audible/visual indicators follow GB 5226.1 and the equivalent international standard IEC 60204-1. The actual timing accuracy depends on the CPU and the scan cycle in use.
Pair audible prompting with visual indication, and allow silencing or acknowledgement only in a safe state. Alarms that carry a safety function must not rely on programmable prompting alone; implement them through a separate safety circuit.