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: Always ON and OFF Bit using Ladder Logic and Statement List
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 > Always ON and OFF Bit using Ladder Logic and Statement List

Always ON and OFF Bit using Ladder Logic and Statement List

Last updated: March 4, 2021 12:03 pm
Editorial Staff
PLC Tutorials
2 Comments
Share
3 Min Read
SHARE

In this article, I will discuss how to create always ON and OFF bit in PLC programming using ladder logic and statement list in Siemens Simatic Manager.

Contents
Always ON and Always OFF bit using STLAlways ON and Always OFF bit using Ladder Logic

Say in the plant when the machine lost its power and comes back after some time, then we need some functions to perform automatically when starting the machine.

For examples like a cold start or hot start, you want some facility to remain ON and some to remain OFF. The below discussed small two lines of code are used there.

There are many instances in the industry where we require to make some blocks always ON or OFF as per our applications.

In siemens PLC, you can use DB address or bit memory address to create always ON and OFF bit.

To create always ON and OFF bit, we simply have to write code OB and use that memory address anywhere in the program.

To create a bit, first, open Simatic Manager. Create a new project. Now I am going to write code in ladder logic and in statement list too.

You can write code in Function and then you can call it from OB or you can write in OB and you can use its address in the programming.

Always ON and Always OFF bit using STL

The below is the programming window of statement list (STL) where I have written the code of Always ON and OFF bit.

Logic for Always ON and Always OFF bit

Network 1:

I simply have used memory bit with AND NOT (AN) means NC contact in ladder logic.

In the second line of code, I have used “s” to set the same bit which I have used as input which allows this bit to remain always ON.

Network 2:

In this network, everything is the same except I want a bit to stay always OFF, I have used “R” means reset as an output coil.

Always ON and Always OFF bit using Ladder Logic

This is the window of ladder logic programming.

Bit always false in PLC

Network 1:

Here, in Network 1, I have used NC contact which always passes a signal, at output side set coil is used the same as input which makes it always true.

Network 2:

In network 2, I have used the Reset coil at the output side to make the bit always false.

Author: Suhel Patel

If you liked this article, then 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:

  • Extended Timer Logic in PLC
  • Rewire Tool in Simatic Manager
  • STL to Find the Highest Value
  • History of Microprocessors
  • Motor Control Function Block
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 to Start or Stop 3 Machines using 1 Switch Program
What is Midline Instruction in Siemens PLC?
Shift Bit Register in PLC
Types of Failures in Industrial Automation Systems
Various Types of Delta PLC used in Industrial Automation
PLC Program for Alarm Security System
Share This Article
Facebook Whatsapp Whatsapp LinkedIn Copy Link
Share
2 Comments
  • AndNi says:
    November 15, 2021 at 6:36 pm

    This is the right code…

    AN M 0.0
    S M 0.0

    A M 0.1
    R M 0.1

    Reply
  • Madhu says:
    November 24, 2022 at 6:25 am

    Nice Explination, I already subscribed your you tube channnel

    Reply

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

Push button Motor PLC Logic
PLC Program to Drain Same Products from Two Tanks
Schneider Electric PLC Timer Problem: Vacuum Cleaner
PLC Timer Application in Security Camera Recording
How to Prevent Ground Loops in Analog Circuits?
Basic PLC Ladder Programming Example
PLC Output Types
PLC Programming Projects for Beginners

Keep Learning

Communication between Factory IO and Siemens Tia Portal

Communication between Factory IO and Siemens Tia Portal

How to Select the Right Encoder for Your Machine

How to Select the Right Encoder for Your Machine?

Use PLC Flags as Integrity Checks

#4 PLC Best Practices – Use PLC Flags as Integrity Checks

PLC Program for Solenoid, Pilot Lamp, and Switch with Alarm

PLC Program for Solenoid, Pilot Lamp, and Switch with Alarm

PLC Example on Manufacturing Line Assembly

PLC Example on Manufacturing Line Assembly

Safety Considerations in PLC System Design

Safety Considerations in PLC System Design

PLC Digital Inputs

PLC Digital Input and Digital Output Modules

Creating Logic in Intouch Using Scripting

Create Logic with InTouch Scada using Scripting

Learn More

Choke Input Filter Operation

Choke Input Filter Operation

Why are Impulse Lines often Installed in a Sloping Manner (Angle)

Why are Impulse Lines often Installed in a Sloping Manner?

Orifice Specifications

Orifice Flow Meters: Detailed Specifications

Problem in Water Level Control System

Problem in Water Level Control System

Electrical Welding Multiple Choice Questions and Answers

Electrical Welding Multiple Choice Questions and Answers (MCQ)

Product Packaging Automation

Why Does Product Packaging Matter in Retailing?

Industrial Instrumentation Questions & Answers

Industrial Instrumentation Questions & Answers

Power Electronics Objective Questions

Thyristor Firing Objective Questions

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?