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 Program for Mailbox with Letter Counting & Light Indicators
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 Program for Mailbox with Letter Counting & Light Indicators

PLC Program for Mailbox with Letter Counting & Light Indicators

Learn the step-by-step PLC program for the mailbox with letter counting and light indicators to automate real-time notifications.

Last updated: September 30, 2024 2:45 pm
Editorial Staff
PLC Tutorials
No Comments
Share
6 Min Read
SHARE

This article discusses the Mailbox Program with Counter and Light Indicator functions. The Mailbox system has a hole for inserting letters and a door which is used to take letters. This mailbox is equipped with sensors to detect incoming mail and taken mail. The mailbox will count the number of incoming letters and it will Reset the data when the letters are taken. Indicator lights (Green, Yellow, Red) are used to indicate the status of the mailbox.

Contents
Program ObjectivePLC Inputs and Outputs AddressingPLC Program for Mailbox

Program Objective

Process:

When the incoming mail sensor SENS_IN (0.02) is Active, then the program will:

  1. Increase the counter COUNT_MAIL (D0) value for the number of letters.
  2. Check the COUNT_MAIL (D0) counter value.
  3. If the COUNT_MAIL (D0) counter value is Not Equal to “0”, the GREEN_LAMP (100.00) indicator lamp will be ON.
  4. If the COUNT_MAIL (D0) counter value is Greater Than Or Equal to “5”, the YELLOW_LAMP (100.01) indicator lamp will turn ON and the GREEN_LAMP (100.00) indicator lamp will turn OFF.
  5. If the COUNT_MAIL (D0) counter value is Equal To “10”, the RED_LAMP (100.02) indicator lamp will turn ON and the YELLOW_LAMP (100.01) indicator lamp will turn OFF.

When the mail retrieval door sensor SENS_OUT (0.03) is Active, then the program will do the following things:

  • Reset the COUNT_MAIL (D0) counter value to “0”.
  • Turn OFF all indicator lamps.
PLC Program for Mail Box with Letter Counting and Light Indicators

PLC Inputs and Outputs Addressing

CommentInput (I)Output (Q)Memory WordMemory BitsTimer
PB_START0.00    
PB_STOP0.01    
SENS_IN0.02    
SENS_OUT0.03    
GREEN_LAMP 100.00   
YELLOW_LAMP 100.01   
RED_LAMP 100.02   
COUNT_MAIL  D0  
SYSTEM_ON   W0.00 
IR_YELLOW_LAMP   W0.01 
IR_RED_LAMP   W0.02 

PLC Program for Mailbox

RUNG 0 (START SYSTEM)

In this Rung, when the PB_START (0.00) button is pressed, the memory bit SYSTEM_ON (W0.00) will be in the HIGH state. Because the KEEP(011) instruction is used, the memory bit SYSTEM_ON (W0.00) remains in the HIGH state even though the PB_START (0.00) button has been Released.

The memory bit SYSTEM_ON (W0.00) will become a LOW state if the PB_STOP (0.01) button is Pressed.

PLC-based mail box automation

RUNG 1 (COUNT MAIL)

In this Rung, when the NO contact of memory bit SYSTEM_ON (W0.00) and Sensor SENS_IN (0.02) in the HIGH state, the value in memory word COUNT_MAIL (D0) will increase (+1), because it uses the Binary Increment @++(590) Instruction.

RUNG 2 (RESET COUNTER)

In this Rung, when the NO contact of memory bit SYSTEM_ON (W0.00) and the Sensor SENS_OUT (0.03) in HIGH state, the value in memory word COUNT_MAIL (D0) will be Reset to zero “0”. Because the MOV(021) instruction moves the zero value “0” to the memory word COUNT_MAIL (D0).

Mail box letter detection

RUNG 3 (GREEN LAMP ALARM)

In this Rung, when the NO contact of memory bit SYSTEM_ON (W0.00) and the value in memory word COUNT_MAIL (D0) are Not Equal to “0”, then the Output GREEN_LAMP (100.00) will be ON.

The GREEN_LAMP (100.00) output will be OFF if the NC contacts of memory bit IR_YELLOW_LAMP (W0.01) and IR_RED_LAMP (W0.02) are in the HIGH state.

RUNG 4 (YELLOW LAMP ALARM)

In this Rung, when the NO contact of memory bit SYSTEM_ON (W0.00) and the value in memory word COUNT_MAIL (D0) is Greater Than Or Equal to “5”, then the Output YELLOW_LAMP (100.01) will be ON and the memory bit IR_YELLOW_LAMP (W0.01 ) will be in the HIGH state.

Output YELLOW_LAMP (100.01) will be ON blinking with an interval of 1 second, because the NO contact of P_1s (1.0 second clock pulse bit).

The YELLOW_LAMP (100.01) output will be OFF if the NC contact of memory bit IR_RED_LAMP (W0.02) in the HIGH state.

Letter counter PLC program

RUNG 5 (RED LAMP ALARM)

In this Rung, when the NO contact of memory bit SYSTEM_ON (W0.00) and the value in memory word COUNT_MAIL (D0) is Equal to “10”, then the Output RED_LAMP (100.02) will be ON and the memory bit IR_RED_LAMP (W0.02) will be in HIGH state.

The RED_LAMP (100.02) output will be ON blinking with an interval of 1 second because of the NO contact of P_1s (1.0 second clock pulse bit).

Read Next:

  • Medium-Level PLC Exercise for Students
  • Dosing Pump PLC Programming Logic
  • PLC Programming based on Logic Circuit
  • Schneider Electric PLC Timer Problems
  • PLC Programming 3 Motors with Priority
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 Distributed IO? – Decentralized Peripherals in PLC
Forcing and Modifying PLC Logic
#2 PLC Best Practices – Track Operating Modes
Monitor and Modify Variables in Simatic Manager
What is Rewire Tool in Simatic Manager?
PLC Problems Troubleshooting
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

Why Baud Rate is Important in Modbus Network?
PLC Automatic Pedal Switch for Speed Control
Augmented Reality and Virtual Reality in Industrial Automation
PLC Pump Permissive Interlocks
PLC Wiring Questions for Technicians and Engineers
Run 4 Motors Sequentially from Same Push button PLC Program
What are Analog Inputs? – Analog Signals Processing in PLC
MOVE Instruction in PLC – What You Need to Know?

Keep Learning

Preventa XPS MC, XPS MP - Safety controllers

High-end Programmable Logic Controller – Schneider PLC

HART Transmitters Loop Checks

Loop Check of 4-20mA or HART Transmitters

PLC Instruction List Code

PLC Instruction List Program for Basic Instructions

PLC Motor Control Circuit

Motor Trip Logic using PLC Programming

Move function block

Move Instruction in Tia Portal

Analog Input Card Resolution Effects on Accuracy

PLC Analog Input Card Resolution Effects on Accuracy

System Architecture in Industrial Automation

How to Design a System Architecture in Industrial Automation?

PLC Program for Star Delta Starter using Functional Block Diagram

PLC Program for Star Delta Starter using Functional Block Diagram

Learn More

Nuclear Power Plant Multiple Choice Questions

Nuclear Power Plant Multiple Choice Questions

Electrical Machines Questions and Answers

Synchronous Machines Excitation Quiz

Chromatography Questions & Answers

Gas Chromatography Questions & Answers

Calculate LRV and URV for 4-20 mA Loop-powered DP Transmitter

Calculate LRV and URV for 4-20 mA Loop-powered DP Transmitter

Diaphragm seal for pressure measurement device

When to use a Diaphragm Seal?

Pressure Temperature Compensation Flow Measurement

Pressure Temperature Compensation Flow Measurement

DC Motor Connections

DC Motor Connections

Measurement and Instrumentation Objective Questions

Measurements & Instrumentation Quiz – Set 9

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?