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: Automatic Highway Lights Program using RTC in Omron PLC
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 > Automatic Highway Lights Program using RTC in Omron PLC

Automatic Highway Lights Program using RTC in Omron PLC

Learn the RTC function on the Automatic Highway Light program using the Omron PLC CX-Programmer software for beginners.

Last updated: September 22, 2024 4:17 pm
Editorial Staff
PLC Tutorials
No Comments
Share
6 Min Read
SHARE

Learn the RTC function (Real Time Clock) on the Automatic Highway Lights program using the Omron PLC CX-Programmer software for beginners.

Contents
Automatic Highway LightsInputs and OutputsProgram in Omron PLC

Automatic Highway Lights

This PLC program has 5 buttons and 1 Selector Switch, The START_SYSTEM (0.00) button is used to turn ON the system, the STOP_SYSTEM (0.01) button is used to turn OFF the system, and the LAMP1_BUTTON (0.03) button is used to turn ON Lamp 1, the LAMP2_BUTTON (0.04) button is used to turn ON Lamp 2, the LAMP3_BUTTON (0.05) button is used to turn ON Lamp 3.

Selector Switch SELECTOR_MODE (0.02) is used to select Manual or Auto system mode.

By default, the PLC system will Run in Manual mode. The system will be in a standby state when the START_SYSTEM (0.00) button is Pressed, and the system will be OFF when the STOP_SYSTEM (0.01) button is Pressed.

Manual Mode

When the system is Running in Manual mode all outputs can only be turned ON using the buttons. Output LAMP1 (100.00) will be ON if the LAMP1_BUTTON (0.03) button is Pressed, Output LAMP2 (100.02) will be ON if the LAMP2_BUTTON (0.04) button is Pressed, and Output LAMP3 (100.03) will be ON if the LAMP3_BUTTON (0.05) button is Pressed.

Auto Mode

In general, highway lights will turn On in the evening (17.00) and will automatically turn OFF in the morning (06.00). So the time parameters need to be set in the memory words SV_HOUR_ON (D0-D1) “D0 = 0000 & D1 = 0017” and SV_HOUR_OFF (D10-D11) “D10 = 0000 & D11 = 0006”.

Automatic Highway Lights Program using RTC in Omron PLC

Inputs and Outputs

CommentInput (I)Output (Q)Word MemoryMemory Bits
START_SYSTEM0.00   
STOP_SYSTEM0.01   
SELECTOR_MODE0.02   
LAMP1_BUTTON0.03   
LAMP2_BUTTON0.04   
LAMP3_BUTTON0.05   
LAMP1 100.00  
LAMP2 100.01  
LAMP3 100.02  
SV_HOUR_ON  D0-D1 
SV_HOUR_OFF  D10-11 
SYSTEM_ON   W0.00
MANUAL_MODE   W0.01
AUTO_MODE   W0.02
IR_LAMP1   W0.10
IR_LAMP2   W0.11
IR_LAMP3   W0.12
IR_AUTO   W0.13

Program in Omron PLC

RUNG 0 (SYSTEM ON)

In this Rung, when the START_SYSTEM (0.00) button is pressed, the memory bit SYSTEM_ON (W0.00) changes to the HIGH state. The memory bit SYSTEM_ON (W0.00) will remain in the HIGH state even though the START_SYSTEM (0.00) button has been Released because it uses Latching.

If the STOP_SYSTEM (0.01) button is Pressed, the memory bit SYSTEM_ON (W0.00) will change to a LOW state.

Omron PLC real-time clock street lighting program

RUNG 1 (AUTO & MANUAL MODE)

In this Rung, when the NO contact of memory bit SYSTEM_ON (W0.00) in the HIGH state and the Selector Switch SELECTOR_MODE (0.02) in the LOW state, the memory bit MANUAL_MODE (W0.01) will change to the HIGH state.

When the Selector Switch SELECTOR_MODE (0.02) is changed to HIGH state, the memory bit AUTO_MODE (W0.02) will become HIGH and the memory bit MANUAL_MODE (W0.01) will become LOW state.

RUNG 2 (LAMP 1 MANUAL BUTTON)

In this Rung, when the NO contact of memory bit SYSTEM_ON (W0.00) in the HIGH  state and the LAMP1_BUTTON (0.03) button is pressed, the memory bit IR_LAMP1 (W0.10) will become a HIGH state.

RUNG 3 (LAMP 2 MANUAL BUTTON)

In this Rung, when the NO contact of memory bit SYSTEM_ON (W0.00) is in the HIGH  state and the LAMP2_BUTTON (0.04) button is pressed, the memory bit IR_LAMP2 (W0.11) will become a HIGH state.

RUNG 4 (LAMP 3 MANUAL BUTTON)

In this Rung, when the NO contact of memory bit SYSTEM_ON (W0.00) is in the HIGH state and LAMP3_BUTTON (0.05) button is pressed, the memory bit IR_LAMP3 (W0.12) will become a HIGH state.

highway lighting control

RUNG 5 (RTC AUTO)

In this Rung, when the NO contact of memory bit AUTO_MODE (W0.02) in the HIGH state and the RTC time is above “17.00”, then the memory bit IR_AUTO (W0.13) will change to the HIGH state.

The memory bit IR_AUTO (W0.13) will change to LOW state when the RTC time is above “06.00”.

RUNG 6 (OUT LAMP1)

The LAMP1 (100.00) output will be ON if the NO contact of memory bit IR_LAMP1 (W0.10) or IR_AUTO (W0.13) is in the HIGH state.

RUNG 7 (OUT LAMP2)

The LAMP2 (100.02) output will be ON if the NO contact of memory bit IR_LAMP2 (W0.11) or IR_AUTO (W0.13) is in the HIGH state.

Highway lights automation using Real-time-clock

RUNG 8 (OUT LAMP3)

The LAMP3 (100.03) output will be ON if the NO contact of memory bit IR_LAMP3 (W0.12) or IR_AUTO (W0.13) is in the HIGH state.

Read Next:

  • PLC Product Sticker Machine with Weighing
  • Automatic Exhaust Fan XG5000 PLC Program
  • Perfume Mixing and Filling System PLC Logic
  • Waste-Burning System OMRON PLC Logic
  • Water Pump PLC Program CX-Programmer

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

Moving Data between PLCs – Siemens Basics – TSEND TRCV
PLC Program to Separate Different Size Objects
How a PLC do the Scaling for a Sensor ?
How Could FB and FC Make Me Professional PLC Programmer?
What is Loop Checking?
PLC FBD Example for Tank Liquid Heating Control by Steam Flow
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 Convert an Electrical Diagram into PLC Program?
One-Shot Rising and Falling Edge Instructions in Rockwell PLC
#7 PLC Best Practices – Validate and Alert for Paired Inputs/Outputs
How to Blink Lights in Ladder Logic?
How to Automatically Close Pop-up in FactoryTalk View Studio?
Types of PLC
PLC Tag Naming Conventions
Automated Test Bench – Complex PLC Programming Examples

Keep Learning

Things to Take Care of When Designing SCADA System

Things to Take Care of When Designing SCADA System

Move function block

Move Instruction in Tia Portal

Introduction to SCL Programming in Siemens PLC

Types of Expressions in the SCL Language of the Tia Portal

How to Select a SCADA for New Project

How to Select a SCADA for New PLC Project?

Allen Bradley RSLogix 500 PLC Programming

Encode and Decode Instructions

How to Use Encode and Decode Instructions in PLC ?

PLC project for traffic signals automation

Complete PLC Project: Traffic Light Auto and Manual Automation

PLC Batch System for 4 Tanks Mixing using CX-Programmer

PLC Batch System for 4 Tanks Mixing using CX-Programmer

Learn More

What is Loop Checking

What is Loop Checking?

Hazard Identification and Risk Assessment

Hazard Identification & Risk Assessment (HIRA)

harmonics-disadvantages-in-power-system

Harmonics Disadvantages in Power System

As-Found and As-Left data during Calibration

Why it is important to note As-Found and As-Left data during Calibration?

4-20mA Loop Power Supply Questions

4-20mA Loop Power Supply Questions and Answers

Frequency Response MCQ

Experimentation of Transfer Function

Wellhead Control Panel

Basics of Wellhead Control Panel (WHCP)

Weinview HMI

How to Connect Mitsubishi FX3U PLC with Weinview MT6071iE HMI?

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?