Fareed Mohmed← Project library

Engineering · PLC · Project 4 of 15 · Conveyors and doors · Level 2

Conveyor with warning horn

A horn sounds for 3 seconds before the conveyor starts, as required by safety rules.

▶ Run it in the simulator

Virtual machine for Conveyor with warning horn: buttons, lamps and the process it controls
Learning model only. This page teaches the program logic. A real machine needs a proper control panel with an isolator, fuses, motor protection and a hard-wired emergency stop. Mains and motor wiring is for qualified electricians. A PLC output never drives a motor directly.

You will learn

An on-delay timer (TON) starts timing when its rung is true and sets its done bit after the preset time. Using a memory bit (RUNREQ) keeps the request separate from the output.

How it works

  • Press START. The horn sounds for 3 seconds while the belt stays still.
  • The timer finishes, the horn stops and the conveyor starts.
  • Press Put a box to load a box. Press STOP to halt the belt.

In real life

Long conveyors in warehouses and airports sound a horn or flash a beacon before moving, so nobody is trapped.

Inputs, outputs and addresses

The same signals on seven PLC brands. Inputs and outputs are numbered in order; check your own hardware and software, because addresses depend on the model and module position.

NameWhat it isTypeSiemens
S7-1200
Allen-Bradley
CompactLogix
Mitsubishi
iQ-F FX5U
Delta
DVP / AS
Omron
CP2E
Schneider
M241
Inovance
H5U
STARTSTART push-buttonInput%I0.0Local:1:I.Data.0X0X00.00%IX0.0X0
STOPSTOP push-button (N.C.)Input%I0.1Local:1:I.Data.1X1X10.01%IX0.1X1
OLOverload contact (N.C.)Input%I0.2Local:1:I.Data.2X2X20.02%IX0.2X2
HORNWarning hornOutput%Q0.0Local:2:O.Data.0Y0Y0100.00%QX0.0Y0
CONVConveyor motor contactorOutput%Q0.1Local:2:O.Data.1Y1Y1100.01%QX0.1Y1

Ladder diagram (shown for Siemens, live state)

Green wires carry power in the moment captured below. Switch the brand and the language in the simulator.

Rung 1 Run request with seal-inSTART%I0.0RUNREQ%M0.0STOP%I0.1OL%I0.2RUNREQ%M0.0Rung 2 Horn timer (3 s)RUNREQ%M0.0"T1"TONINPT T#3sQETET = 3000 msRung 3 Horn sounds until the timer endsRUNREQ%M0.0Timer 1 done"T1".QHORN%Q0.0Rung 4 Conveyor runs after the warningRUNREQ%M0.0Timer 1 done"T1".QCONV%Q0.1

Structured text, Siemens SCL

(* Siemens S7-1200, CPU 1214C DC/DC/DC - TIA Portal - SCL *)
(* Rung 1: Run request with seal-in *)
"RUNREQ" := ("START" OR "RUNREQ") AND "STOP" AND "OL";
(* Rung 2: Horn timer (3 s) *)
"T1"(IN := "RUNREQ", PT := T#3s);
(* Rung 3: Horn sounds until the timer ends *)
"HORN" := "RUNREQ" AND NOT "T1".Q;
(* Rung 4: Conveyor runs after the warning *)
"CONV" := "RUNREQ" AND "T1".Q;

Structured text, Allen-Bradley

(* Allen-Bradley CompactLogix 5069 (L306ER) - Studio 5000 Logix Designer - Structured Text *)
(* Rung 1: Run request with seal-in *)
RUNREQ := (START OR RUNREQ) AND STOP AND OL;
(* Rung 2: Horn timer (3 s) *)
Timer1.PRE := 3000;   (* ms *)
Timer1.TimerEnable := RUNREQ;
TONR(Timer1);
(* Rung 3: Horn sounds until the timer ends *)
HORN := RUNREQ AND NOT Timer1.DN;
(* Rung 4: Conveyor runs after the warning *)
CONV := RUNREQ AND Timer1.DN;

Try this

Parts to buy

The links open a search on each store, so you see what is in stock today. Check the model, voltage and price before you order.

#ItemBuy / compare
1PLCAmazon.in · IndiaMART · Robu.in
2Horn or beacon 24 VAmazon.in · IndiaMART · Robu.in
3Conveyor motor and contactorAmazon.in · IndiaMART · Robu.in
4START and STOP buttonsAmazon.in · IndiaMART · Robu.in
← 3. Star-delta starterAll projects5. Automatic pump with float switches →

This is a learning tool. It teaches the logic, not the exact keystrokes of each vendor’s software. Check the manual of your own PLC.