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
Notification Show More
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

PLC Count values higher than 999
Quiz: Identifying I/O Examples in PLC Systems
Basic Conveyor System for Product Handling in Omron PLC
Siemens Drum block for Sequencer Operation
What is Complementary Split Range Control (CSRC)?
What is Seal-in Circuit ?
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

Laws of Boolean Algebra using Ladder Logic
The Concept of Shift Register in Omron PLC with Example
How a PLC do the Scaling for a Sensor ?
RSLogix 5000 PLC Programming Procedure
PID with Practical Example
What is the DDE Protocol?
Micro PLC Hardware Configuration
Use of Isolators and Barriers in Electrical Panel

Keep Learning

scada hmi

Functions of SCADA

PLC based Automatic Bell System

PLC based Automatic Bell System for a School

Structured Text Automatic Gate Logic

Structured Text PLC Programming for Automatic Gate Control

DCS Alarm and Setpoint

Setpoints and Alarms in Control System

Basics of PID Controllers

PID Controllers in Closed Loop Control Systems – PLC Basics

Automatic Liquid Mixing Application

PLC Program for Automatic Liquid Mixing Application

How to Start Writing SCL in Siemens PLC

Rules for Writing SCL Language in Tia Portal

Coil Type Timers in Siemens PLC Programming

Coil Type Timers in Siemens PLC Programming

Learn More

Career Scope in Civil Engineering

Career Scope in Civil Engineering

How to Use Symbol Factory Software for Graphic Design in HMI or SCADA

How to Use Symbol Factory Software for Graphic Design in HMI or SCADA?

Gases LEL and UEL

What is Lower Explosive Limit & Upper Explosive Limit ?

Emergency Block Valve

SIS Emergency Block Valves (EBV)

ISO 5167 Orifice Plate Types

Readers Questions on Flow Transmitter

Siemens micro memory card

Micro Memory Card (MMC) in Siemens PLC

3 Phase Balanced Loads

Power in Balanced 3 Phase Loads

PLC Automation for Product Weighing and Labeling

PLC Controlled Conveyor and Weighing with Labeling Automation

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?