MOULDLKnowledge BaseElectrical Knowledge Base3D Model DownloadsMembership
中文版Model Store »
Knowledge Base › Electrical Knowledge Base › How is the pulse timer TP used in alarm outputs?
HomeModels
Table of contents

On this page

PLC & Programming (100 articles)

Quick Reference

  • PLC & Programming
  • Electrical & Electronic Basics (monthly)(每月更新中)
  • Electrical Control & Drawings (monthly)(每月更新中)
  • Drives & Actuators (monthly)(每月更新中)
  • Sensors & Detection (monthly)(每月更新中)
  • Industrial Communication & Networks (monthly)(每月更新中)
  • HMI & Host Systems (monthly)(每月更新中)
  • Industrial Robots & Motion Control (monthly)(每月更新中)
  • Mechatronic System Integration (monthly)(每月更新中)
  • Fault Diagnosis & Standards (monthly)(每月更新中)

How is the pulse timer TP used in alarm outputs?

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.

1. The basic behaviour of TP

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.

2. TP, TON and TOF compared

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.

3. Typical use in an alarm output

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.

4. Working with an acknowledge button

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.

5. Time base and accuracy

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.

6. Alarm prompting needs and timer selection at a glance

Prompting needRecommended elementTrigger modeNote
Sound a fixed few secondsTPRising edge, fixed pulseResets itself on completion
Sustain until acknowledgedSet/reset flip-flopAlarm sets, acknowledge resetsA new alarm must re-set it
Delay to avoid false alarmsTONInput true for the full timeResets when the input drops
Keep prompting after the alarm clearsTOFOff-delay from the falling edgeWatch for leftover prompts
Flashing alarmTP plus a flash bitTimer drives self-resetFlash period adjustable
Repeated intermittent promptingTP retriggeredRetrigger on completionAvoid making it too frequent
Several alarms share a buzzerTP outputs or logicSelected by priorityAvoid output contention
Adjustable alarm timeTP with PT as a variableTime sent from the HMIBound it to a sensible range
Record how long the alarm lastedTP with a counter or timestampTimestamp on the edgeFor later traceability

7. Notes

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.

8. References

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.

9. Points to watch

⚠️ Three common traps:
1. Using TP for "reset a delay after the alarm clears", getting the direction backwards, so after a restart the alarm hangs on;
2. Setting the pulse width shorter than the scan cycle, so the output is unstable or never appears, and then suspecting a faulty output point;
3. Letting only the buzzer sound with no visual latch, so an operator who leaves and returns does not know an alarm occurred.

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.

Related reading

Related 3D models: Ready to build it? Download free 3D models & CAD drawings at MOULDL »
MOULDL · Electrical Knowledge Base · free self-study reference for electrical & automation engineers, 3D CAD models at MOULDL