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: PLC based Gas Detection System using Ladder Logic Project
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 > PLC based Gas Detection System using Ladder Logic Project

PLC based Gas Detection System using Ladder Logic Project

Design a PLC-based ladder logic project for a gas detection system to monitor the H2S, HC, and oxygen gas concentration in an industry.

Last updated: May 27, 2022 6:22 am
Editorial Staff
PLC Tutorials Fire & Gas System
No Comments
Share
11 Min Read
SHARE

The fixed gas detection system is a sampling system to monitor the gas concentration in a potentially hazardous environment. It is applicable in areas where there is a possible leak of toxic gas and eventual depletion of oxygen.

Contents
Gas Detection System using PLCNetwork 1 – Sampling PumpNetwork 2 – Flow MonitorNetwork 3 – No Flow Alarm ResetNetwork 4 – Start of SequenceNetwork 5 – Sampling TimeNetwork 6 – SequencerNetwork 7 – Sampling Point ANetwork 8 – Sampling Point BNetwork 9 – Sampling Point CNetwork 10 – Hydrocarbon Sensor Sensor Input ScalingNetwork 11 – O2 Sensor Input ScalingNetwork 12 – H2S Sensor Input ScalingNetwork 13 – HC Content High AlarmNetwork 14 – HC Sensor FaultNetwork 15 – O2 Content AlarmNetwork 16 – Oxygen Sensor FaultNetwork 17 – H2S Content High AlarmNetwork 18 – H2S Sensor FaultNetwork 19 – BuzzerNetwork 20 – CalibrationNetwork 21 – Stop of Sequence

Examples of application areas are; Boiler plant room, gas bottle storage facility, refineries, oil rigs, etc.

A fixed gas detection system basically constitutes sampling pipes and a detection unit.

Gas Detection System using PLC

Industrial Gas Detection Systems

The detection unit contains all the functions for the detection and transport of sample gas.

Its components comprise gas detectors or sensors (oxygen sensor, hydrocarbon sensor, and hydrogen sulfide sensor), solenoid valves, sampling pump, flow meter, PLC, filter, pressure, and vacuum switches.

Gas sample is taken from sample points according to a sampling sequence in the PLC program.

Sample gas is transported through the sampling pipes to the gas detectors where measurement of toxic gas takes place.

Sample gas is filtered to remove dust particles or dirt before it is pumped through the in-line gas sensors to a safe area or atmosphere outside the detection unit.

The following PLC ladder program explains the operation of the gas detection system with three (3) sampling points using Siemens CPU 314C-2 DP.

Network 1 – Sampling Pump

One push button (PB) is used to start and stop of sampling pump in input I124.0.

Once the PB is depressed, the set/reset (SR) flip-flop (Q124.0) is set to signal state “1” by the positive signal edge (i.e. change of signal state from “0” to “1”) of the PB at input S.

The output signal state of the SR flip-flop remains at the “1” state so far as the signal state at input R1 has not changed and remains at a “0” state.

Thus, the sampling pump is set to run. When the push button (PB) is pressed once again, the set/reset (SR) flip-flop is set to the “0” state by the negative signal edge (i.e. change of signal state from “1” to “0”) of the PB at input R1 resulting in stopping of sampling pump.

Flow Monitor PLC Program

Network 2 – Flow Monitor

Once the sampling pump is running, flow is monitored by the vacuum switch I124.5 and pressure switch I124.4 which are normally open contacts but closes at flow fault condition.

No flow alarm indicates possible failure of sampling pump, choked/dirty filter, or blocked sampling pipe(s).

Delay timer T1 is set to 10 seconds for no flow alarm activation at output Q125.4, and stop of sampling sequence.

Network 3 – No Flow Alarm Reset

Reset of no flow alarm is possible only when alarm buzzer Q125.3 is silenced or deactivated and flow is restored.

Once the flow is restored, vacuum and/or pressure switch contact opens to deactivate timer T1, thus allowing the reset of the no-flow alarm.

Gas Detection System using PLC

Network 4 – Start of Sequence

The start of the sampling sequence is initiated with a MOVE function.

A bit “1” is moved to memory word MW0, starting from memory M1.0 to M1.2 in this program.

Network 5 – Sampling Time

The time for the sampling of each sampling point is set to 20 seconds. Interlocks are provided for fault or alarm to stop the sampling sequence at the point the alarm or fault occurs.

Sampling resumes from the same point after the fault or alarm has been rectified and reset.

Network 6 – Sequencer

Shift left instruction is used to shift and cycle memory bit “1” through memory M1.0, M1.1, and M1.2.

A positive signal edge pulse at M2.0 activates the shift register by integer 1.

Network 7 – Sampling Point A

Solenoid valve connected at output Q125.1 for sampling point A opens for sampling gas to flow through to the detectors when memory M1.0 is set to “1” state.

The solenoid valve deactivates when M1.0 changes state to “0”.

PLC based Fire and Gas detection system

Network 8 – Sampling Point B

Solenoid valve connected at output Q125.2 for sampling point B opens for sampling gas to flow through to the detectors when memory M1.1 is set to “1” state.

The solenoid valve deactivates when M1.1 changes state to “0”.

Network 9 – Sampling Point C

Solenoid valve connected at output Q125.3 for sampling point C opens for sampling gas to flow through to the detectors when memory M1.2 is set to “1” state.

The solenoid valve deactivates when M1.2 changes state to “0”.

Network 10 – Hydrocarbon Sensor Sensor Input Scaling

The hydrocarbon (HC) sensor is connected at the analog input IW752, using a SCALE function to convert the input value (integer) into a floating-point number that is scaled to physical units (%LEL – the percentage of lower explosive limit) between a low limit and high limit of the value range at double word MD10.

PLC Sensor Scaling

Network 11 – O2 Sensor Input Scaling

The oxygen (O2) sensor is connected at the analog input IW754, using a SCALE function to convert the input value (integer) into a floating-point number that is scaled to physical units (%V – the percentage of volume) between a low limit and high limit of the value range at double word MD14.

Network 12 – H2S Sensor Input Scaling

The hydrogen sulfide (H2S) sensor is connected at the analog input IW756, using a SCALE function to convert the input value (integer) into a floating-point number that is scaled to physical units (PPM – parts per million) between a low limit and high limit of the value range at double word MD18.

Scaling and Unscaling in PLC Programming

Network 13 – HC Content High Alarm

When the HC content, the converted value of the sampling gas is equal to or greater than 10.0 %LEL but not exceeding the high limit value of 50.0 %LEL.

An HC content high alarm is triggered at output Q125.0. This sets the input S1 of reset/set (RS) flip-flop to signal state “1” irrespective of the signal state at input R.

Network 14 – HC Sensor Fault

When the HC sensor value is greater than the high limit (HI_LIM) or less than the low limit (LO_LIM) as a result of a short circuit, open circuit, or out-of-range sensor, an error signal state “1” is output at MW4 of the scale function and thus sets the RS flip-flop to signal state “1” to activate an HC sensor fault.

Sensor Fault and Alarm in Ladder Logic

Network 15 – O2 Content Alarm

When the oxygen content, the converted value of the sampling gas is less or equal to 20.0 %V but not less than the low limit value (LO_LIM) of 0.0 %V.

An oxygen content low alarm is triggered at output Q125.1. This sets the input S1 of reset/set (RS) flip-flop to signal state “1” irrespective of the signal state at input R.

Network 16 – Oxygen Sensor Fault

When the oxygen sensor value is greater than the high limit (HI_LIM) or less than the low limit (LO_LIM) as a result of a short circuit, open circuit, or out-of-range sensor, an error signal state “1” is output at MW6 of the scale function and thus sets the RS flip-flop to signal state “1” to activate an oxygen sensor fault.

PLC based Multi-channel Fire Detection & Alarm System Project

Network 17 – H2S Content High Alarm

When the H2S content, the converted value of the sampling gas is equal to or greater than 5 PPM but not exceeding the high limit value of 50 PPM.

An H2S content high alarm is triggered at output Q125.0. This sets the input S1 of reset/set (RS) flip-flop to signal state “1” irrespective of the signal state at input R.

Network 18 – H2S Sensor Fault

When the H2S sensor value is greater than the high limit (HI_LIM) or less than the low limit (LO_LIM) as a result of a short circuit, open circuit, or out-of-range sensor, an error signal state “1” is output at MW8 of the scale function and thus sets the RS flip-flop to signal state “1” to activate an H2S sensor fault.

Gas Sensor PLC Logic

Network 19 – Buzzer

Gas content alarm, sensor fault, or no flow alarm sets the RS flip-flop to signal state “1” hence activating the buzzer at output Q125.3.

A positive signal edge of the buzzer stop PB, I124.1 resets the RS flip-flop to silence the buzzer despite the alarm or fault being active, that is signal state “1” at input S.

Alarm Buzzer PLC Programming

Network 20 – Calibration

The calibration switch, I124.3 when activated, sets the RS flip-flop to signal state “1” thereby energizing the calibration solenoid valve at output Q124.4.

Calibration gas can then be introduced through the calibration port to test and/or calibrate the sensors.

PLC Calibration

Network 21 – Stop of Sequence

The switching ON of the calibration switch stops the sampling sequence and deactivates all sampling points; Q124.1, Q124.2, and Q124.3.

A zero (“0”) bit is moved to MW0 resulting in de-energizing the sampling point’s solenoid valves.

Stop Sequence in PLC

An alarm or a fault condition is acknowledged by firstly pressing the buzzer stop push button to silence the buzzer, and then pressing the reset push button only after rectifying the alarm or fault.

Author: Kweku Atta Hagan, TMIET

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

How to Add Security in InTouch SCADA?
Why Use Normally-Closed Contact for Stop Buttons?
Overview of Industrial Control Systems
PLC Sizes and Applications
PLC Batch System for 4 Tanks Mixing using CX-Programmer
Studio 5000 Tutorial: PLC Programming for Digital Alarms
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

Fire Water Sprinklers Working Principle
PLC Sequence Programming Ladder Logic
PLC based Auto/Manual Operation of Roll down Shutters in Industry
How to Create New Project in Studio 5000?
Tanks Draining Control in PLC using Functional Block Diagram
#11 PLC Best Practices – Instrument for Plausibility Checks
Motor Classic Control Circuits using Single Push button
PLC Program for Control Valve Scaling

Keep Learning

PLC Documents

PLC System Documentation

Gas-detection-system

Selection Criteria for Toxic Gas Detector

PLC Logic for Water Pumping and Chemical Addition

Developing PLC Logic for Water Pumping and Chemical Addition

HMI configuration for Delta VFD

Modbus Communication between Delta PLC with VFD

fire alarm system operation

What is Fire Alarm System?

Advantages of Redundant System

Redundant Automation Systems – Need and Advantages

How to Select the Right Encoder for Your Machine

How to Select the Right Encoder for Your Machine?

Electrical Ladder Diagram Control using Timers Example

Electrical Ladder Diagram Control using Timers Example

Learn More

OMRON PLC program for waste-burning automation

Waste-Burning System OMRON PLC Program Example

Recording Systems Objective Questions

Recording Systems Objective Questions

Electrical Engineering Materials Objective Questions

200 Electrical Engineering Materials Objective Questions & Answers

Control System Vendor Internal Test Procedures

Vendor View of Supplying Industrial Process Control & Safety Systems

Failed Letdown Valve

Failed Letdown Valve Shuts down a Urea Plant Several Hours

Geothermal Air Conditioners

Types of Air Conditioning Systems

Which instrument is at fault in this system

Which Instrument is at Fault in this System?

PLC based drilling machine

Drilling Process using PLC Program

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?