TP Pulse timer (TP)

Also called: pulse, timer pulse, one-shot timer, monostable

European style only: the American style has no such instruction.

Pulse: a rising edge of IN / EN sets Q / DN to 1 for exactly PT / PRE.Pulse: a rising edge of IN sets Q to 1 for exactly PT.Pulse: a rising edge of EN sets DN to 1 for exactly PRE.

What it does

The TP block makes a fixed-length pulse: on the rung's rising edge, Q / DN turns 1 for PT / PRE, whether the rung stays 1 or not.The TP block makes a fixed-length pulse: on the rung's rising edge, Q turns 1 for PT, whether the rung stays 1 or not.The TP block makes a fixed-length pulse: on the rung's rising edge, DN turns 1 for PRE, whether the rung stays 1 or not.

When to use it

For a fixed-length command: horn blast, pulse to a cylinder, timed dose.

Operands

European mnemonicAmerican mnemonicNameData typeDirectionRequiredAccessMeaning
InstanceInstanceInstance (the timer’s memory)IEC_TIMER / TIMERInputYes—Instance (T1…): the timer's memory. One instance per timer.
INENEnableBOOLInputYesRead (T1.IN / T1.EN)The bit that says the instruction is active: the rung’s power reaches the instruction.
PTPREPresetTIME / DINTInputYesRead and write (T1.PT / T1.PRE)Preset: the time to reach. A constant on the box is only the starting value; the program can change it with a MOVE / MOV.
QDNDoneBOOLOutputNoRead (T1.Q / T1.DN)Pulse of length PT / PRE started by a rising edge of IN / EN.
ETACCAccumulator: elapsed timeTIME / DINTOutputNoRead (T1.ET / T1.ACC)Accumulator: the elapsed time, from 0 up to PT / PRE.
—TTTimingBOOLOutputNoRead (T1.TT)1 during the pulse. American style only: not in the European style.
MnemonicNameData typeDirectionRequiredAccessMeaning
InstanceInstance (the timer’s memory)IEC_TIMERInputYes—Instance (T1…): the timer's memory. One instance per timer.
INEnableBOOLInputYesRead (T1.IN)The bit that says the instruction is active: the rung’s power reaches the instruction.
PTPresetTIMEInputYesRead and write (T1.PT)Preset: the time to reach. A constant on the box is only the starting value; the program can change it with a MOVE.
QDoneBOOLOutputNoRead (T1.Q)Pulse of length PT started by a rising edge of IN.
ETAccumulator: elapsed timeTIMEOutputNoRead (T1.ET)Accumulator: the elapsed time, from 0 up to PT.
MnemonicNameData typeDirectionRequiredAccessMeaning
InstanceInstance (the timer’s memory)TIMERInputYes—Instance (T1…): the timer's memory. One instance per timer.
ENEnableBOOLInputYesRead (T1.EN)The bit that says the instruction is active: the rung’s power reaches the instruction.
PREPresetDINTInputYesRead and write (T1.PRE)Preset: the time to reach. A constant on the box is only the starting value; the program can change it with a MOV.
DNDoneBOOLOutputNoRead (T1.DN)Pulse of length PRE started by a rising edge of EN.
ACCAccumulator: elapsed timeDINTOutputNoRead (T1.ACC)Accumulator: the elapsed time, from 0 up to PRE.
TTTimingBOOLOutputNoRead (T1.TT)1 during the pulse. American style only: not in the European style.

Readable anywhere in the program, for example T1.Q / T1.DN. Writable members can be changed by the program (MOVE).Readable anywhere in the program, for example T1.Q. Writable members can be changed by the program (MOVE).Readable anywhere in the program, for example T1.DN. Writable members can be changed by the program (MOVE).

Timing diagram

European style
INETPT = T#3sQ0123456789101112time (s)
American style
ENACCPRE = 3000DN0123456789101112time (s)

Timing diagram checked against the simulator (the same engine as the editor).

Example

European style
American style

H1 turns on for 2 s each time S1 is pressed.

Try it in the simulatorThe example opens in the free simulator; your own program stays as it was.

Behaviour in detail

European (IEC) and American styles

European: TP, a fixed-length pulse (IEC 61131-3).

American: there is no TP in ladder; a pulse comes from the TT bit of a TON, 1 while it is timing. Difference: TT drops if the rung drops before the end; for a fixed length, keep the rung at 1 (seal-in) until DN. Here, TP is offered in the European style only.

See also