Inst ToolsInst ToolsInst Tools
  • Courses
  • Automation
    • PLC
    • Control System
    • Safety System
    • Communication
    • Fire & Gas System
  • Instrumentation
    • Design
    • Pressure
    • Temperature
    • Flow
    • Level
    • Vibration
    • Analyzer
    • Control Valve
    • Switch
    • Calibration
    • Erection & Commissioning
  • Interview
    • Instrumentation
    • Electrical
    • Electronics
    • Practical
  • Q&A
    • Instrumentation
    • Control System
    • Electrical
    • Electronics
    • Analog Electronics
    • Digital Electronics
    • Power Electronics
    • Microprocessor
  • Request
Search
  • Books
  • Software
  • Projects
  • Process
  • Tools
  • Basics
  • Formula
  • Power Plant
  • Root Cause Analysis
  • Electrical Basics
  • Animation
  • Standards
  • 4-20 mA Course
  • Siemens PLC Course
Reading: Automated Test Bench – Complex PLC Programming Examples
Share
Font ResizerAa
Inst ToolsInst Tools
Font ResizerAa
  • Courses
  • Design
  • PLC
  • Interview
  • Control System
Search
  • Courses
  • Automation
    • PLC
    • Control System
    • Safety System
    • Communication
    • Fire & Gas System
  • Instrumentation
    • Design
    • Pressure
    • Temperature
    • Flow
    • Level
    • Vibration
    • Analyzer
    • Control Valve
    • Switch
    • Calibration
    • Erection & Commissioning
  • Interview
    • Instrumentation
    • Electrical
    • Electronics
    • Practical
  • Q&A
    • Instrumentation
    • Control System
    • Electrical
    • Electronics
    • Analog Electronics
    • Digital Electronics
    • Power Electronics
    • Microprocessor
  • Request
Follow US
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Inst Tools > Blog > PLC Tutorials > Automated Test Bench – Complex PLC Programming Examples

Automated Test Bench – Complex PLC Programming Examples

This is a complex PLC programming example on an automated test bench to carry out 3 tests sequentially when specimen is placed on the bench.

Last updated: April 23, 2024 6:01 am
Editorial Staff
PLC Tutorials
No Comments
Share
8 Min Read
SHARE

This is a complex PLC programming example on an automated test bench to carry out 3 tests sequentially when the specimen is placed on the bench.

Contents
Automated Test BenchComplex PLC Programming ExamplesList of I/OsLadder LogicProgram DescriptionSimulation of Logic

Note: This PLC program was created for the persons to learn the PLC basics.

Automated Test Bench

Problem Statement:

Design a PLC ladder logic for the following application.

We are using one toggle switch and one sensor to control 3 Tests.

When a test specimen is placed on the bench, a series of 3 tests should run sequentially, each lasting for 10 seconds. The time delay between the two tests should be 5 seconds.

Complex PLC Programming Examples

Instrumentation Tools provides you the complex PLC example programs for practicing the ladder logics.

This PLC video explains the test bench PLC programming in a detailed explanation.

PLC Programming Simple Examples - Automated Test Bench

List of I/Os

Digital Inputs:

Start Button: I0.0

Sensor: I0.1

Digital Outputs:

Test 1: Q0.0

Test 2: Q0.1

Test 3: Q0.2

Ladder Logic

Automated Test Bench - Complex PLC Programming Examples

Program Description

We have used Normally Open Contacts for Start Button( I0.0) and Sensor (I0.1).

In Rung 0:

  1. Normally Open Contacts are used for the Start Button (I0.0) and Sensor (I0.1) to Turn ON the output  Test 1 (Q0.0).
  2. Normally Closed Contact is used for Memory Bit (M0) to turn OFF the output Test 1 (Q0.0).

In Rung 1:

  1. Normally Open Contacts are used for the Start Button (I0.0) and Sensor (I0.1) to Turn ON Memory Bit (M0).
  2. Timer-type TON is used to delay the turning ON time of Memory Bit (M0) for some time.

In Rung 2:

  1. Normally Open Contacts are used for the Start Button (I0.0) and Sensor (I0.1) to Turn ON the output  Test 2 (Q0.1).
  2. Normally Closed Contact is used for Test 1 (Q0.0) to turn ON the output Test 2 (Q0.1).
  3. Timer Function Block type TON is used to delay the turning ON time of the output Test 2 (Q0.1) for some time.
  4. Timer Function Block type TP is used to Turn ON the output Test 2(Q0.1) for a limited time.

In Rung 3:

  1. Normally Open Contacts are used for the Start Button (I0.0) and Sensor (I0.1) to Turn ON the output  Test 3 (Q0.2).
  2. Normally Closed Contacts are used for Test 1 (Q0.0) and Test 2 (Q0.1) to turn ON the output Test 3 (Q0.2).
  3. Timer-type TON is used to delay the turning ON time of the output Test 3 (Q0.2) for some time.
  4. Timer-type TP is used to Turn ON the output Test 3 (Q0.2) for a limited time.

Simulation of Logic

We will simulate our PLC logic and analyze the results. We may show the part of the logic instead of the complete code.

Rung 0:

When the Start Button (I0.0) is turned ON and Sensor (I0.1) gets activated (Sensor detects test), the output Test 1 (Q0.0) turns ON (Tests 1 starts) as Normally Open Contact used for Start Button (I0.0) and sensor (I0.1) allows the signal to pass through it to turn ON the output Test 1 (Q0.0).

Sequential test automation PLC

In a false state, Normally Closed Contact used for Memory Bit (M0) also passes the signal to turn ON the output Test 1 (Q0.0) and the output Test 1 (Q0.0) turns ON.

Rung 1:

PLC control for bench tests

Also, When the Start Button (I0.0) is turned ON and Sensor (I0.1) gets activated (Sensor detects test).

Memory Bit (M0) turns ON after 10 seconds as Timer Function Block type TON is used to delay the turning ON time of Memory Bit (M0) and the time is set to 10 seconds.

PLC logic for test automation

So after 10 seconds, Memory Bit (M0) will turn ON.

When Memory Bit (M0) turns ON in Rung1, Normally Closed Contact used for Memory Bit (M0) in Rung0 will be in True State and does not allow the signal to flow through it and the output Test 1 (Q0.0) in Rung0 will Turn OFF (Test 1 Ends).

Bench test automation system

Rung 2:

When Start Button (I0.0) is turned ON, Sensor (I0.1) gets activated (Sensor detects test) and the output Test 1 (Q0.0) turns OFF in Rung0 (Test 1 Ends), the output Test 2 (Q0.1) turns ON because when the output Test 1 (Q0.0) turns OFF in Rung0.

Automated test bench control

Normally Closed Contact used for Test 1 (Q0.0) in Rung2 will be in a False state and allow the signal to pass through it.

The output Test 2 (Q0.1) will turn ON but after 5 seconds (Test 2 starts after 5 seconds) as Timer Function Block type TON is used to delay the turning ON time of the output Test 2 (Q0.1) and the time is set to 5 seconds.

PLC-based test bench control

So after 5 seconds, the output Test 2 (Q0.1) will turn ON (Test 2 starts) but only for 10 seconds as we have used Timer Function Block type TP to turn ON the output Test 2 (Q0.1) only for a limited time and the time is set to 10 seconds.

So after 10 seconds, the output Test 2 (Q0.1) will turn OFF (Test 2 Ends).

Rung 3:

When Start Button (I0.0) is turned ON, Sensor (I0.1) gets activated (Sensor detects test), the output Test 1 (Q0.0) turns OFF in Rung0 (Test 1 is Ended) and the output Test 2 (Q0.1) turns OFF in Rung2 (Test 2 is Ended).

PLC ladder logic for bench test

The output Test 3 (Q0.2) turns ON because when the output Test 1 (Q0.0) turns OFF in Rung0 and the output Test 2 (Q0.1) turns OFF in Rung2, Normally Closed Contact used for Test 1 (Q0.0) and Test 2 (Q0.1) in Rung3 will be in False state.

This allows the signal to pass through it and the output Test 3 (Q0.2) will turn ON but after 5 seconds (Test 3 starts after 5 seconds) as Timer Function Block type TON is used to delay the turning ON time of the output Test 3 (Q0.2) and the time is set to 5 seconds.

PLC logic for bench test automation

So after 5 seconds, the output Test 3 (Q0.2) will turn ON (Test 3 starts) but only for 10 seconds as we have used Timer Function Block type TP to turn ON the output Test 3 (Q0.2) only for a limited time and the time is set to 10 seconds.

So after 10 seconds, the output Test 3 (Q0.2) will turn OFF (Test 3 Ends).

If you liked this article, please subscribe to our YouTube Channel for PLC and SCADA video tutorials.

You can also follow us on Facebook and Twitter to receive daily updates.

Read Next:

  • Traffic Lights PLC Program using Timers
  • Heater and Cooler PLC Exercise Problem
  • PLC Programming for Trash Compactor
  • Playground Swing PLC Logic Programming
  • PLC Programming for the Pump to fill the tank
Don't Miss Our Updates
Be the first to get exclusive content straight to your email.
We promise not to spam you. You can unsubscribe at any time.
Invalid email address
You've successfully subscribed !

Continue Reading

What is Thin Client in SCADA? – Purpose, Advantages
Overview of SIEMENS PLC – S7-1500, S7-1200, S7-400, S7-300
How to Choose a PLC for New Project? – Criteria for Selection of PLC
If Else Statement in SCL Language
PLC Digital Input and Digital Output Modules
Push button Motor PLC Logic
Share This Article
Facebook Whatsapp Whatsapp LinkedIn Copy Link
Share
Leave a Comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

128.3kFollowersLike
69.1kFollowersFollow
210kSubscribersSubscribe
38kFollowersFollow

Categories

Explore More

Structured Text in PLC: Parking Information Systems
Speed Control of Pneumatic Cylinder (Explanation with PLC)
How to Use Diagnostic Buffer for SIEMENS PLC?
PLC Multiple Outputs Configuration
Programmable Logic Controller Quiz
PLC Mixing Process with Adjustable Timer and Valve Control
How to use Master Control Reset (MCR) Instruction in PLC
PLC Automatic Control of Two Outputs with one Input

Keep Learning

Alarm prioritization

What is Alarm Prioritization? – Types of Alarms

PLC Ladder Program for Automatic Car Wash

PLC Ladder Program for Automatic Car Wash using Siemens TIA Portal

Field Instruments Questions and Answers

Control Room and Field Instruments Questions and Answers

Analog Inputs in Siemens TIA Portal

What are Analog Inputs? – Analog Signals Processing in PLC

Garage Door Roller Shutter

Shutter Door Control using Motor and Limit Switches

PLC Controlling a Motor

PLC Motor Control Ladder Logic Programming

Check Block Consistency Tools

Check Block Consistency Tools in Simatic Manager

OB10 Time of Day Interrupt

Tia Portal – OB10 Time of Day Interrupt Organization Block

Learn More

Control Valve Relation between Cv and Kv

Control Valve Relation between Cv and Kv

PLC program for Latching and unlatched circuit

PLC Program for Latching and unlatching Circuit

control valve sequencing

Control Valve Sequence Methods

Reading Clock data in PLC

Real-Time Clock in Omron PLC? – CX Programmer

Fire Extinguishers Mock Test

Fire Extinguishers Mock Test

Stability and Uniformity of Temperature Bath

Stability and Uniformity of Temperature Bath

SIL Levels

Understanding Safety Integrity Level IEC 61511

What is a Bourdon tube

Bourdon Tube Pressure Gauge Advantages and Disadvantages

Menu

  • About
  • Privacy Policy
  • Copyright

Quick Links

  • Learn PLC
  • Helping Hand
  • Part Time Job

YouTube Subscribe

Follow US
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?