DriveLab
Account

TP 5 · Chapter 5

Conveyor line and brick sorting

Start and stop a line of three conveyors with warning and proof of motion, add the belt protections, and track bricks with a shift register clocked by the belt.

2 sessions of 1 h 30Trainer modules: DC motor, proximity sensor and micro-switch, output relays, buzzerPLC-200 manual exercises: 10-1, 10-2, 3-2

Print QR code

Objectives

  1. Program the start and stop sequence of a line of three conveyors, with pre-start warning and proof of motion before the upstream conveyor may start.
  2. Implement the conveyor protections of Chapter 5: zero speed, belt slip, pull cord and belt drift.
  3. Track products on a moving belt with a shift register clocked by the belt itself, and reject defective bricks at a downstream station.

Background

In a line of conveyors each belt discharges onto the next. Chapter 5 gives the rules: start against the flow of material (discharge conveyor first), stop with the flow (feeder first, then each belt once it has emptied), prove that a belt really moves before feeding it, and stop the whole line at once on an emergency stop or a pull cord.

The line has three conveyors. C1 (feeder) and C3 (discharge) are relay outputs and lamps. C2, the sorting conveyor, is the DC motor module: one revolution of its pointer is one pitch of the belt, the distance between two brick positions. The proximity sensor on the head pulley gives one pulse per pitch; the micro-switch, struck by the same pointer, plays a speed sensor on the tail pulley.

Bench set-up

SW2 OFFSW3 OFFSW4 OFFSW5 OFFSW6 ONSW7 OFFSW8 OFFThumbwheel at 0000; do not press the keypad.

With the trainer OFF: Q0.0 → M+, M− → 24 V−; proximity PS → I1.1; micro-switch COM → 24 V+ and NO → I1.0; buzzer BZ+ → RQ0.4, BZ− → 24 V−, common RC2 → 24 V+. SPEED ADJ fully clockwise.

AddressSymbolMeaning
I0.0STARTline start, momentary
I0.1STOP_NCnormal stop, normally closed (ON = healthy)
I0.2ESTOP_NCemergency stop, normally closed (ON = healthy)
I0.3PULL_CORD_NCpull-cord switch along C2, normally closed (ON = healthy)
I0.4BRICKPart C: a brick is placed on C2 at the loading point, momentary
I0.5DEFECTPart C: the vision check rejects this brick (held with BRICK)
I0.6DRIFT_ALARMbelt-drift switch, first stage
I0.7DRIFT_TRIPbelt-drift switch, second stage
I1.0TAIL_SPEEDtail-pulley speed sensor (micro-switch NO)
I1.1HEAD_PITCHhead-pulley pitch sensor (proximity)
I1.2RESETfault reset, momentary
Q0.0C2_MOTORC2 motor, PWM
Q0.2C1_RUNfeeder C1 contactor (RQ0.2)
Q0.3C3_RUNdischarge conveyor C3 contactor (RQ0.3)
Q0.4HORNpre-start warning and alarm (buzzer on RQ0.4)
Q0.5EJECTORreject pusher (RQ0.5)
Q0.6FAULTline fault lamp
Q0.7DRIFT_WARNbelt-drift warning lamp

Preparation

  1. From your TP 1 measurements, write the nominal time Δtn\Delta t_n between two pitch pulses at 100 % duty cycle. Deduce the zero-speed trip threshold 1.5 Δtn1.5\,\Delta t_n and choose a timer of suitable resolution.
  2. Draw the GRAFCET of the line with the steps stopped, pre-start warning, C3 starting, C2 starting, C2 proven, running, stopping C1, run-on C2, run-on C3 and tripped.
  3. The ejector is 4 pitches downstream of the loading point. Choose the start bit and the length of the SHRB register, and state which bit drives the ejector.

Timer choice

The S7-200 timer number fixes its type and resolution. Enter a duration to see the preset of every group.

TypeResolutionTimer numbersPreset
TON/TOF1 msT32, T96+1000exact
TON/TOF10 msT33–T36, T97–T100+100exact
TON/TOF100 msT37–T63, T101–T255+10exact
TONR1 msT0, T64+1000exact
TONR10 msT1–T4, T65–T68+100exact
TONR100 msT5–T31, T69–T95+10exact

Control byte

Tick the bits you need; the value to move into the control byte appears below. Check each bit against the manual (Table 10-1.1).

MOVB 16#00, SMB67 (2#00000000 = 0)

Part A: start and stop sequence

  1. START sounds the horn for 5 s, then starts C3. C2 starts 2 s later. C1 starts only when C2 is proven: two pitch pulses received within 3 s of its start. If C2 is not proven, the line trips.
  2. STOP_NC stops C1 at once; C2 runs on for 6 pitches (the length of the belt), counted on HEAD_PITCH; C3 stops 5 s after C2.
  3. ESTOP_NC or PULL_CORD_NC stops the three conveyors together. After a pull cord, the line restarts only once the cord switch has been reset locally and RESET pressed, followed by a new START.
EventC1C2C3Time or pitches measured
START pressed
end of warning
C2 proven
STOP pressed
end of C2 run-on
end of C3 run-on

Part B: conveyor protections

  1. Zero speed. While C2 runs and is proven, if the time since the last pitch pulse exceeds 1.5 Δtn1.5\,\Delta t_n, trip the line (FAULT, horn). Test it by reducing SPEED ADJ, then by pulling the I1.1 lead.
  2. Belt slip. Count the pulses of HEAD_PITCH and TAIL_SPEED from the start of C2. If the counts differ by more than 2, the belt is slipping on the drive pulley: trip the line.
  3. Belt drift. The first stage lights DRIFT_WARN without stopping the line. The first stage held for more than 10 s, or the second stage (DRIFT_TRIP), stops the line with the normal stop sequence.
  4. Keep the cause of the first trip in a V-byte (fault code), so that the maintenance technician knows which protection acted.

Part C: brick sorting

  1. A brick placed on C2 is signalled by BRICK; DEFECT held at the same time marks it defective. Latch this information until the next pitch pulse, then shift it into the SHRB register clocked by the rising edge of HEAD_PITCH.
  2. When a defective brick reaches the ejector, 4 pitches downstream, pulse EJECTOR for 0.5 s.
  3. Count the good bricks delivered to C3 and the rejected bricks. Bricks on the belt are not lost when the line stops: the register shifts only when the belt moves.
BrickDefective?Pitch loadedPitch ejected / deliveredCorrect?
1no
2yes
3yes
4no
5yes

Rehearse on the virtual bench

Test your program before the session: paste or open your exported .awl, choose the wiring of this TP, and run the procedure and the fault-injection tests on the simulated trainer.

Virtual PLC-200 bench: stepper, encoder and DC motor
PS · I1.1Micro-switch · I1.0Barrier arm (crank)
Duty cycle
0 %
Speed
0.0 rpm
C0
0
Pull a lead

No errors: the program compiles.

SIMATIC S7-200 · CPU 224SFRUNSTOP
I1.0MICROsensor
I1.1PROXsensor
Q0.0MOTOR0
Timet = 0.00 s · 0 scans

The motor turns at about 1 rev/s at full duty, not at all below about 12 % (friction), and ripples with a long PWM period. PS sees the pointer at 0°, the micro-switch at 180°: a crank lifts the barrier arm between them.

Fault-injection tests

TestSafe reaction requiredObserved
Pull the M+ lead during the start sequenceC2 not proven: the line trips, C1 never starts
Pull the I1.1 lead while runningzero-speed trip
Pull the I1.0 lead while runningbelt-slip trip
Pull cord operated, then RESET pressed with the cord still pulledthe line stays stopped
Emergency stop while bricks are on C2all conveyors stop; tracking kept; correct sorting after restart

Questions

  1. Explain why the line starts against the flow and stops with it. What happens to C2 if C1 is started first?
  2. Why is the shift register clocked by the belt rather than by a timer? What would go wrong with a timer when the belt speed changes or the line stops?
  3. On the trainer the two speed sensors are on the same shaft, so a real slip cannot occur. What did the pulled-lead test really prove, and how would you tell a slipping belt from a failed sensor on a real conveyor?
  4. A long belt is often driven by two motors. Using the load-sharing simulation of Chapter 5, explain why the two drives cannot both run as independent speed controllers, and what droop does.

Group report