Published by: Fusion Industrial Training
(Designed for RSLogix 500/5000 or Studio 5000 software platforms)
Practice over 200 real-life Allen Bradley PLC programming questions designed by Fusion Industrial Training. Topics include logic operations, timers, sequences, motor control, STL/RET logic & more. Perfect for students and job-seekers in industrial automation.
At Fusion Industrial Training, we’ve developed over 200+ practical PLC programming questions specifically for Allen Bradley systems (RSLogix 500/5000 & Studio 5000). These questions are based on real-world use cases — from basic logic and timers to traffic lights, STL/RET sequences, and advanced automation cycles.
Whether you’re a student, intern, job-seeker, or engineer preparing for interviews or live projects, these questions will boost your skills and confidence.
Section 1: Basic Logical Operations & Memory Concepts (50 Questions)
Publisher: Fusion Industrial Training
1–10: Start/Stop and Latching Circuits
- Design a logic to start a cooling tower pump using a Start/Stop button with latching.
- Create a circuit where a Start PB activates a lubrication system, and a Float Switch stops it when the tank is full.
- Pressing a Start PB turns ON an air compressor, which stays ON until low pressure switch deactivates it.
- Implement a latch that turns ON a hydraulic press motor with PB1 and turns OFF when Limit Switch 1 is activated.
- A Start PB turns ON a vibrating feeder only if Safety Door is closed. It latches ON until Stop is pressed.
- When PB1 is pressed, a chemical agitator starts. If Overheat Sensor detects high temperature, it turns OFF.
- A Start button starts a dust extraction fan, which remains ON even after button release. A separate Stop PB stops it.
- Latch an exhaust blower to start with PB1. If Emergency Stop (E-Stop) is triggered, the system must shut off and require manual reset.
- Pressing PB1 turns ON a machine tool motor. A door sensor must be closed for it to operate.
- Use 2 start PBs (PB1 and PB2) in series. Only when both are pressed will the press machine start.
11–20: Toggling & Alternate Operations
- Use one PB to toggle a siren ON and OFF alternately.
- One PB toggles between Red Beacon ON / Green Beacon OFF, then vice versa with next press.
- Toggle a conveyor and labeling machine ON and OFF alternately with one PB.
- First press: Fan ON, second press: Fan OFF, third press: Pump ON, fourth press: Pump OFF (cycle through 2 devices).
- Pressing PB1 toggles between motor forward and reverse.
- One PB toggles between:
- Press 1: Start Cooler Fan 1
- Press 2: Stop Fan 1, Start Cooler Fan 2
- Press 3: Stop both
- On PB1 press, activate Conveyor 1. On second press, switch to Conveyor 2. On third press, turn both OFF.
- Use a 3-way toggle to cycle through Low, Medium, and High Speed modes of a blower using memory bits.
- A single push button cycles through 3 modes:
- 1st press: Tank Fill Mode
- 2nd press: Tank Mix Mode
- 3rd press: Tank Drain Mode
- Toggle between Day Shift Indicators and Night Shift Indicators using one PB.
21–30: Memory Bit Applications & Logic Conditions
- Use a memory bit to hold ON a Batch Counter Display when batch start is pressed.
- Activate a cutting machine only when Guard Switch is ON and Material Sensor detects presence.
- A Start PB runs a Paint Sprayer only if Selector Switch is in “Auto Mode”.
- Run a conveyor motor only if Weight Sensor is below set point and Safety Interlock is OK.
- Use two PBs:
- PB1: Set memory bit M1
- PB2: Reset M1
- Use M1 to run a Pallet Lift
- Pressing Manual PB sets memory bit M2. M2 allows operation of a Drilling Head until reset by Auto mode.
- If Door is closed (input) and Fan is ON, set memory bit to enable Machine Operation.
- Use a toggle memory bit to change color of tower light (Red ↔ Green).
- Set a maintenance mode memory bit when three switches are in specific positions.
- Use NO PB and NC PB combination to control two memory bits for interlock of two pumps.
31–40: Interlocking & Safety Logics
- Interlock two motors: If Pump A is ON, Pump B should not start.
- When Overload Relay trips, latch a Fault Indicator until reset PB is pressed.
- Crane movement logic: Press PB1 to move left, PB2 to move right, both cannot be pressed at same time.
- Only allow Heater to turn ON if Cooler is OFF (interlocked control).
- Pressing Safety Reset PB enables Start PB for main equipment.
- Enable Manual Control Panel only when Auto Selector is OFF and vice versa.
- Prevent Forklift Gate from opening if Lift Motor is running.
- If Limit Switch 1 is active, Gate Motor cannot start even if Start PB is pressed.
- If any of the three E-Stops are pressed, all outputs must turn OFF.
- Hydraulic pump should run only if oil level, pressure, and temperature inputs are within range.
41–50: Combination Logic & Multi-State Controls
- Pressing PB1 once activates Pump 1.
Pressing again starts Pump 2.
Pressing a third time stops both. - Use three input switches:
- If S1 ON → Fan ON
- If S2 ON → Heater ON
- If S3 ON → Both OFF
- Implement a toggle logic to switch between 4 conveyor lines in a loop (1→2→3→4→1…).
- Create a Manual Override condition to bypass level sensors and force pump to run.
- If both High Temp and Overcurrent occur, trigger Alarm Buzzer and latch it ON.
- Start Blower only if VFD Ready, Temp Sensor OK, and Filter Clean inputs are true.
- Automatic Mode Selector runs the blower for 5 minutes and then sets a memory bit. Use that bit to light “Cycle Done” lamp.
- Press PB1 once to start Mixing Tank Stirrer, press again to pause, third press resumes, fourth press stops.
- One PB cycles between 3 indicator lights (Red, Yellow, Green) in loop, each on for next press.
- Use memory and latch logic to simulate a three-step safety startup:
- Step 1: Door Closed
- Step 2: Emergency Reset Done
- Step 3: Operator Presence Detected
- Only then enable Main Motor Start
1–10: Basic ON-Delay and OFF-Delay Applications
- When PB1 is pressed, a suction pump starts after a 5-second ON-delay.
- When a gate opens, wait for 3 seconds, then turn ON warning buzzer.
- Press PB1 → Alarm Light ON for 10 seconds, then automatically OFF.
- If Emergency Exit Switch is triggered, activate siren for exactly 20 seconds.
- Press PB1 → Cooling Fan ON, and after 60 seconds, turn OFF automatically using an OFF-delay.
- On PB press, wait 2 seconds, then start conveyor; when released, conveyor stops instantly.
- Start a paint dryer fan with a delay of 10 seconds from PB press.
- On closing the furnace door, turn ON the gas valve after a safety delay of 15 sec.
- When sensor detects object, keep ejector solenoid ON for 3 seconds and then turn OFF.
- On pressing PB1, delay 8 seconds, then turn ON dehumidifier motor for 30 sec.
11–20: Time-Based Sequencing
- PB1 starts:
- Motor A → ON for 10s
- Then Motor B → ON for 20s
- Then Motor C → ON for 15s
- Machine starts:
- Delay 5s → Open valve
- Delay another 5s → Start motor
- Delay another 10s → Sound horn
- After start, run a silo feeder for 10s → wait 5s → run bucket elevator for 15s.
- Start cooling tower → wait 30s → turn ON chlorine injector.
- Create a sequence:
- Alarm light blinks ON/OFF every 2s
- After 10 blinks, turn ON buzzer for 5s
- PB1 initiates:
- Step 1: Green light ON for 10s
- Step 2: Yellow for 5s
- Step 3: Red for 15s
- Loop
- A boiler heater is activated for 10 minutes, then rests for 2 minutes before repeating.
- Start a crushing mill → after 25 seconds, activate conveyor for 10 seconds.
- Sequentially activate 4 fans with 5-second delays between each.
- Start a material pusher only 10 seconds after system is powered ON.
21–30: Retentive Timer (RTO) Based Applications
- Press PB1 → run air filter blower for 5 min. If power fails, resume from last elapsed time.
- Machine runs for 1 hour daily using RTO. Stop manually or on time completion.
- PB1 starts a syrup stirrer with RTO. If Stop PB is pressed, pause timer. Resume on next start.
- Run chemical agitator for 30 minutes each shift using retentive logic.
- Monitor a lubrication system cycle time using RTO to ensure daily operation logging.
- Log operation time of hydraulic pump using RTO and display time on HMI.
- If oil pump fails 3 times in a day, use RTO to log downtime.
- Use RTO to track fan run time, auto shutdown after 4 cumulative hours.
- Implement a system restart only if machine was idle for 10 minutes (using RTO).
- Press PB1 → Fan ON → if stopped in between, resume until total 2 hours is reached.
31–40: Pulse & Cyclic Timer Applications
- Generate a pulsed output ON/OFF every 1 second to blink indicator lamp.
- Use timers to create 100 pulses per second to simulate encoder pulse.
- Turn ON chopper motor for 2 seconds, OFF for 2 seconds—repeat cyclically.
- PB1 press → ON for 200ms, OFF for 800ms → control a signal light.
- Use TON/TOF combination to blink an alarm lamp continuously until Stop pressed.
- PB1 pressed → generate 5 pulses of 1 second ON/OFF each to test a relay.
- Use a cycle timer to rotate a rotary platform ON for 15s, OFF for 5s, loop.
- Start a vibrating screen for 7s every 2 minutes using cyclic pulse logic.
- PB1 press → open air vent for 3s → close for 3s → repeat until Stop pressed.
- Create a pulsing buzzer pattern:
- ON 500ms
- OFF 500ms
- For 10 repetitions only
41–50: Time-Conditioned Safety & Special Applications
- If access door is opened, delay 5s before cutting main power to give warning.
- If machine not used for 2 minutes, activate auto shut-off mode.
- Use a timer to start a backup pump 15 seconds after primary pump fails.
- When PB1 is pressed, wait 1s, then turn ON 10 signal lamps with 0.5s delay between each.
- During cleaning, rinse motor runs for 10s, pauses for 5s, repeats 3 times.
- PB1 starts dryer fan → after 20s, heater starts. Heater must stop before fan.
- If PB1 held down for more than 5 seconds → trigger operator present alarm.
- Press PB1 → run hydraulic ram for 4s only if pressure OK within that time.
- Trigger inspection camera flash with a 0.2s ON pulse whenever product detected.
- Use timer to delay restart of compressor for 90 seconds after trip/reset to avoid surge.
Section 3: Practical Industrial Use Cases (50 Questions)
Publisher: Fusion Industrial Training
1–10: Blinking and Flashing Logic
- Design a logic to blink a warning lamp (1 sec ON, 1 sec OFF) continuously while Machine is Idle.
- On PB1 press, blink a conveyor start indicator ON for 500ms, OFF for 500ms until PB2 is pressed.
- Create a blinking pattern:
- Red lamp: ON for 2s
- OFF for 1s
- Repeat as long as Overload Condition is active.
- Flash signal light three times when a product passes the sensor.
- When an emergency switch is pressed, flash a siren light rapidly (0.2s ON/OFF) for 10 seconds.
- Simulate police light blinking: alternate between Red and Blue lights every 1 second.
- Blink power ON indicator for the first 5 seconds after PLC is powered.
- Three tower lights should blink one after the other in sequence continuously.
- Blink a rejection lamp five times when a defective product is detected, then stop.
- When over-temperature is detected, alternate blinking between cooling and shutdown indicators every 2 seconds.
11–20: Pulse Generation Logic
- Generate a pulse output of 100 Hz to test an external relay’s coil response.
- Create logic to produce a 50ms pulse every 5 seconds for a signal tester.
- Generate 10 pulses at 1s interval each time PB1 is pressed.
- Each time a bottle passes a sensor, generate a 100ms pulse to activate a labeling unit.
- When limit switch is triggered, generate 3 pulses of 0.5s ON, 0.5s OFF for counter logic.
- PB1 → generate 1 pulse of 0.1s for triggering solenoid valve.
- On conveyor stop, generate one pulse to push the package to next stage.
- Simulate encoder pulse generation: 10 pulses per second continuously for diagnostics.
- When sensor S1 and PB1 are ON together, generate a pulse to start timer circuit.
- After detecting 5 objects, send a single pulse to start diverter motor.
21–30: Traffic Light Control Logic
- Design a basic 3-phase traffic light:
- Red → 30s
- Yellow → 5s
- Green → 20s
- Repeat cycle
- Create a pedestrian crossing system:
- Button press → halt traffic, walk signal ON for 10s
- Four-way traffic controller:
- Each direction gets 30s green, 5s yellow in sequence
- Emergency vehicle detection:
- Interrupt normal cycle, give priority to North lane for 15s
- Use night mode:
- After 10 PM, all lights blink yellow continuously
- Pedestrian crossing → when pressed, delay 10s before giving green walk signal
- Use override switch to hold red light in all directions during inspection.
- A timer-based traffic bypass: After every 5 cycles, give 60s to East side.
- Implement a school zone controller: Flash yellow lights between 8–9 AM and 2–3 PM.
- Make traffic lights blink red when power resumes after blackout (for safety).
31–40: Motor Start-Stop with Timing
- Motor starts on PB1 and runs for exactly 5 minutes; auto stops.
- On PB1 → run forward motor for 15s, wait 5s, then run reverse motor for 15s.
- If conveyor starts, delay 10s before allowing sorting arm to move.
- Press PB1 → drum mixer rotates for 2 minutes → stops → wait 30s → repeats 3 times.
- Run hydraulic press in auto cycle: press → hold for 10s → retract → repeat.
- Start gearbox motor → after 20s → switch ON cooling fan automatically.
- PB1 → turn ON exhaust fan for 10s every 5 minutes
- Lubrication pump should run for 10 seconds every hour (pulse + timer logic)
- Manual start PB → run motor for 3 min, or stop if over-current signal received.
- If sensor detects product, run packaging motor for 7s, then stop.
41–50: Multi-Step or Mixed Logic Use Cases
- Start cycle with PB1:
- Valve opens (5s)
- Mixer runs (20s)
- Valve closes
- Alarm sounds for 3s
- If motor runs for 10 minutes continuously, activate heat alarm for 5s.
- Start cutting blade → after 15s, open clamp → stop blade after clamp is open.
- Auto operation:
- Detect object → wait 3s → activate ejector → stop after 1.5s
- Use two timers:
- First for startup delay
- Second for shutdown delay (fan after motor off)
- Press PB1:
- Light A ON for 3s
- Light B ON for 5s
- Light C ON for 2s
- Repeat sequence continuously
- After system reset, wait 10s before enabling motor operation.
- If machine is idle for 5 mins, flash light every 2s and play buzzer every 10s.
- If 3 sensors detect presence within 10 seconds, start batch motor for 1 minute.
- Use master timer: After every 30 minutes, run all outputs (motor, fan, valve) for 5 minutes.
Understanding STL / RET in PLC Programming
✅ What is STL?
STL (Structured Text List) is a low-level, textual programming language used in PLCs, especially in Siemens systems (similar to Assembly language). However, in Allen Bradley, we use Structured Text (ST) in Studio 5000 or RSLogix 5000, which is more high-level (like Pascal or C). STL-like logic in Allen Bradley refers to step-wise control using logic blocks, ladder rungs, or sequencer patterns.
In simpler words:
It’s a way to break complex machine sequences into multiple “steps” and execute them one-by-one in order.
✅ What is RET (Return Logic)?
RET or Return Logic is used to return to the beginning of a sequence or jump back to a start condition, often used when a fault occurs, cycle is complete, or stop is pressed. It resets all steps, timers, counters, and returns the machine to its initial position.
Section 4: STL/RET Logic & Stepwise Sequential Control (50 Questions)
Publisher: Fusion Industrial Training
1–10: Basic Stepwise Sequence Problems
- Create a 3-step motor control:
- Step 1: Motor ON
- Step 2: Wait 10s → Motor OFF
- Step 3: Light ON
- RET: If Stop PB pressed, return to Step 1
- Create a mixer sequence:
- Step 1: Fill tank
- Step 2: Stir for 15s
- Step 3: Drain
- RET: On Overload or Stop, reset all
- Press PB1:
- Step 1: Open Valve
- Step 2: Delay 10s → Start Pump
- Step 3: After 60s → Close Valve
- Return to Step 1 if Emergency PB is pressed
- Use flags or integers to manage:
- Step 0: Init
- Step 1: Conveyor
- Step 2: Robot Pick
- Step 3: Robot Place
- RET to 0 if any sensor fails
- Program a 4-stage dryer:
- Blower ON → Heater ON → Cycle Timer → Alarm
- RET on Door Open
- Create a package press logic:
- Step 1: Clamp
- Step 2: Press
- Step 3: Unclamp
- RET on Limit Switch error
- Design a logic to step through:
- Valve → Pump → Motor
- If level sensor LOW → go back to Step 1
- Use integer counter for:
- Step 1: Light A
- Step 2: Light B
- Step 3: Light C
- Loop or RET on push button
- Implement 5-machine startup sequence with 3s delay between each. RET on E-Stop.
- Press PB1:
- Step 1: Fill
- Step 2: Mix
- Step 3: Drain
- Step 4: Rinse
- RET if cycle not completed in 10 mins
11–20: Advanced Process Sequences
- Program a batch feeder:
- Load Hopper → Agitate → Discharge
- Reset if sensor S1 not reached in 30s
- Create a car wash cycle:
- Wash → Rinse → Foam → Dry
- RET on door open or Stop PB
- Conveyor logic:
- Sensor detects item → Step 1: Pick → Step 2: Place
- Repeat for 10 items
- RET
- Create a textile dye cycle:
- Fill → Heat → Soak → Drain
- Manual reset to return to Step 1
- If button held for 5s, enter Step 1. Continue to Step 5 with each press. RET if idle >30s.
- A robot performs:
- Step 1: Pick
- Step 2: Rotate
- Step 3: Place
- RET on misalignment sensor
- Program a 6-stage automatic press using step number flags (N7:0 register)
- Sequence: Light ON → Fan ON → Heater ON
- Off in reverse order
- RET on fault
- Bottle Filling: Entry → Fill → Cap → Label → Exit
- Return to Step 1 when photoeye clear
- Timer logic:
- 30s ON → 10s OFF → Repeat for 5 cycles
- RET after last cycle
21–30: Safety & Interlocks with RET
- If Emergency Switch ON at any step, RET to safe mode.
- Include door lock interlock: Only allow Step 2 if Door = Closed.
- Process stops and resets if pressure is < threshold in Step 2.
- If over-temperature in Step 3, RET to Step 0 and flash warning.
- During Step 4, allow operator to manually override using HMI. RET after 1 min idle.
- Use 3 safety interlocks: If any goes FALSE → RET whole sequence.
- Add a Check Step: Sensor 1 and Sensor 2 must be ON to go to Step 3.
- On Stop PB:
- Turn OFF all actuators
- Reset all timers
- RET to Step 0
- While in Step 2, allow PB2 to pause process. Resume where left off. RET if not resumed in 60s.
- On completion of all 5 steps, light Green LED and RET if Restart PB pressed.
31–40: Looping and Repetitive STL Sequences
- Mix-Drain cycle repeats 3 times, then goes to idle. RET on Stop PB.
- Index table rotates 5 times:
- Step 1 → 2 → 3 → 4 → 5
- Loop and RET if Stop pressed.
- Machine performs:
- Clamp → Press → Unclamp
- Repeat every 10 mins
- RET on sensor fail
- Paint Sprayer:
- Start → Spray 1 → Rotate → Spray 2 → RET
- Step 1: Alarm ON
- Step 2: Wait for PB
- Step 3: Reset Timer
- Step 4: Start Cycle
- RET if no PB within 15s
- Based on part count, go through Steps 1–4. RET on reaching 100 parts.
- Design reusable block for:
- Preheat → Run Motor → Shutdown
- RET after timer completes
- After each cycle, display step count on HMI and RET if Reset is pressed.
- Perform 3 trial runs:
- Run Motor → Stop → Delay
- Loop 3 times
- RET if Abort PB pressed
- Press PB1:
- Start Fan → After 5s Start Pump → After 10s Start Motor
- RET if fault occurs
41–50: Combined STL/RET + Real-Time Control
- Build a sequencer that uses step numbers (N7:0 = 0 to 5). RET when complete.
- Temperature monitoring:
- If < 60°C → Step 1
- If > 100°C → RET to safe state
- Door closes → Step 1: Light ON → Step 2: Conveyor → RET if Door Opened
- After all steps complete, trigger pulse to log data in SCADA. RET then restart.
- Level sensor logic:
- Fill → Wait → Drain
- RET if sensor S3 LOW
- On Startup:
- Delay 10s
- Activate steps sequentially
- RET if PLC reset
- Perform:
- Start → Check Sensors → Execute Motion
- RET on timeout
- Batch mixer: PB1 → 4 step logic → Display “Done” → RET if PB2 pressed
- Each station in assembly line has 3 steps. RET to beginning if any step fails.
- Conveyor → Picker → Checker → Packer → RET after completion.

Leave a Reply