Introduction
An on-delay timer (TON) waits for a set time before turning on its output after the input turns on. It helps control timing in machines and processes.
An on-delay timer (TON) waits for a set time before turning on its output after the input turns on. It helps control timing in machines and processes.
TimerName(IN:=InputSignal, PT:=PresetTime, Q=>OutputSignal, ET=>ElapsedTime);
IN is the input that starts the timer.
PT is the preset time to wait before output turns on.
Timer1(IN:=StartButton, PT:=T#5s, Q=>MotorOn, ET=>Elapsed);DelayLight(IN:=LightSwitch, PT:=T#2s, Q=>LightOn, ET=>TimePassed);This program simulates pressing a start button and uses a 3-second on-delay timer. MotorOn becomes true only after 3 seconds.
PROGRAM OnDelayExample VAR StartButton : BOOL := FALSE; MotorOn : BOOL := FALSE; Timer1 : TON; i : INT; END_VAR // Simulate pressing StartButton and running timer StartButton := TRUE; // Simulate time passing in 1 second steps FOR i := 1 TO 4 DO Timer1(IN:=StartButton, PT:=T#3s); IF Timer1.Q THEN MotorOn := TRUE; END_IF; // Print status Print('Second ' + INT_TO_STRING(i) + ': MotorOn=' + BOOL_TO_STRING(MotorOn)); END_FOR END_PROGRAM
If the input turns off before the preset time, the timer resets and output stays off.
The elapsed time (ET) shows how long the timer has been running.
On-delay timers wait before turning on output after input activates.
They help add delays in automation safely and clearly.
On-delay timer (TON) do in a PLC program?Timer1 with a preset time of 5 seconds in a typical PLC ladder logic?TON Timer1 PT:=T#5s; uses PT:=T#5s which is correct syntax for preset time 5 seconds.TON Timer1 with a preset time of 3 seconds:Timer1(IN:=InputSignal, PT:=T#3s); // Assume InputSignal turns ON at time 0s // What is the value of Timer1.Q at 2 seconds?
TON Timer1; Timer1(IN:=StartButton, PT:=T#4s); // Output Q is not turning ON even after 5 seconds of StartButton pressed. // What is the likely error?
Pass the test and this pattern moves unknown