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
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

80+ PLC MCQ Questions
Allen Bradley Powerflex VFD
What are Trends in SCADA?
PLC Program for Bank Counter Application
What is Function Module in Siemens PLC?
#13 PLC Best Practices – Disable Unused Communication Ports
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

How to Operate a Group of Induction Motors using PLC Logic?
Motor Control Circuits
PLC Automatic Control of Two Outputs with one Input
Basic Pumping System Application Used in Industrial Automation
PLC Programming for Tank Heating Control using Heater
PLC Motor Control Ladder Logic Programming
Count and Pack Objects from Conveyor using PLC Ladder Logic
What is an RTU? – Remote Terminal Unit

Keep Learning

PLC Instruction List Example for Level Control of Tank

PLC Instruction List Example for Level Control of Tank

Communicate between the PLC program and HMI program

Design a Program Using Studio 5000 and FactoryTalk View Studio

How to program a running hours meter in PLC

Allen Bradley Studio 5000: Motor Running Hours PLC Program

Types of PLC Memory

Types of PLC Memory

PLC Ladder Logic Example

PLC Ladder Logic Example

Ladder Logic Programming Examples

Ladder Logic Programming Examples

PLC Interlock Example

PLC Interlock Logic with First Input Priority

Door Lock with Delay PLC Exercise Problems

Door Lock with Delay PLC Exercise Problems

Learn More

Electric Circuits Objective Questions

Electric Circuits Objective Questions – Set 17

Architecture of Allen Bradley PLC

Architecture of Allen Bradley PLC

Digital Electronics Objective Questions

Digital Electronics Objective Questions – Set 8

Hard-Wired Control Logic for the Pressure Alarm

Hard-Wired Control Logic for the Pressure Alarm

PLC Scan Time

PLC Scan Time

Digital Instrument Example

Digital Measuring Instruments – Types, Functions, Advantages, Disadvantages

PLC Fault Diagnosis - PLC Training Documents

PLC Fault Diagnosis – PLC Training Documents

Instrument Panel Exhaust Fan Efficiency Improved

Instrument Panel Cooling Efficiency Enhancement

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?