By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
Inst ToolsInst ToolsInst Tools
  • Ask
  • Courses
  • Videos
  • Q & A
    • Interview
      • Instrumentation
      • Electronics
      • Electrical
      • Practical Questions
    • MCQ
      • Instrumentation MCQ
      • Electrical MCQ
      • Electronics MCQ
      • Control Systems MCQ
      • Analog Electronics MCQ
      • Digital Electronics MCQ
      • Power Electronics MCQ
      • Microprocessor MCQ
      • Multiple Choice Questions
  • EE
    • Electronics
      • Electronics Q & A
      • Electronic Basics
      • Electronic Devices & Circuits
      • Electronics Animation
      • Digital Electronics
    • Electrical
      • Electrical Basics
      • Electrical Q & A
      • Power Electronics
      • Electrical Machines
      • Electrical Animation
      • Power Systems
      • Switchgear & Protection
      • Transmission & Distribution
  • Measure
    • Control Valves
    • Calibration
    • Temperature
    • Pressure
    • Flow
    • Level
    • Analyzers
    • Switches
    • Vibration
    • Solenoid Valve
  • Control
    • PLC Tutorials
    • Control Systems
    • Safety Instrumented System (SIS)
    • Communication
    • Fire & Gas System
  • More
    • Design
    • Tools
    • Animation
    • Basics
    • Formulas
    • Standards
    • TextBooks
    • Common
    • Software
    • Excel Tools
    • Erection & Commissioning
    • Process Fundamentals
    • Videos
    • Books
Search
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Reading: Structured Text PLC Code for Sequential Process Data Storage
Share
Notification Show More
Font ResizerAa
Inst ToolsInst Tools
Font ResizerAa
  • Ask
  • Courses
  • Videos
  • Q & A
  • EE
  • Measure
  • Control
  • More
Search
  • Ask
  • Courses
  • Videos
  • Q & A
    • Interview
    • MCQ
  • EE
    • Electronics
    • Electrical
  • Measure
    • Control Valves
    • Calibration
    • Temperature
    • Pressure
    • Flow
    • Level
    • Analyzers
    • Switches
    • Vibration
    • Solenoid Valve
  • Control
    • PLC Tutorials
    • Control Systems
    • Safety Instrumented System (SIS)
    • Communication
    • Fire & Gas System
  • More
    • Design
    • Tools
    • Animation
    • Basics
    • Formulas
    • Standards
    • TextBooks
    • Common
    • Software
    • Excel Tools
    • Erection & Commissioning
    • Process Fundamentals
    • Videos
    • Books
Follow US
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Inst Tools > Blog > PLC Tutorials > Structured Text PLC Code for Sequential Process Data Storage
PLC Tutorials

Structured Text PLC Code for Sequential Process Data Storage

Learn how to write a structured text PLC code to store data from sequential processes using the case statement.

Last updated: September 18, 2024 2:34 pm
Viral Nagda
Share
3 Min Read
SHARE

In this post, we will write a PLC code to store data of various processes sequentially. We will use structured text language for this.

Contents
Sequential Process Data StorageStructured Text PLC Code

Sequential Process Data Storage

Let us understand the case scenario first. There are two sensors in the system – temperature and pressure. And in total, there are five processes. Process start and stop are not in our control, we will just get the status of the process (whether it is running or stopped).

When the five processes start in sequence, we get a complete signal from each process when over. With this signal, we must store the current value of temperature and pressure in different registers. The values of these registers will be updated after the corresponding process is over every time.

Following are the PLC IO’s:

  1. Digital inputs – Process complete signal
  2. Analog inputs – Temperature transmitter, pressure transmitter.

Structured Text PLC Code

Let us see the logic now. Refer to the below image. It is a very simple logic where we use a case statement. We first use a sequence counter to see in which the current step is running.

We increment the counter on every input signal of the process completely received. The set value of the counter will be five, as per the five processes running.

We will reset the counter when the counter is done.

Structured Text PLC Program for Sequential Process Data Storage

In the next step, we use a case statement. We use five cases. As the counter increments on receiving the process complete signal, this means the current counter value is the current step running. So, we use the case number from 0 to 4, where 0 means step 1 and 4 means step-5.

In each case, we use two different registers of temperature storage and pressure storage. For incrementing the case, we use the counter current value as a case reference. This will ensure that in each step, only the corresponding registers will be written.

In this way, we saw how to write a PLC program to store data of various processes sequentially.

Read Next:

  • PLC Program for Sequential Motor Control
  • Run Motors Sequentially using PLC Program
  • Sequential PLC Program Pneumatic Valve
  • PLC Program for Water Level Control Logic
  • Compare Combinational & Sequential Circuit
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 !
Laws of Boolean Algebra using Ladder Logic
PLC Hoist Crane Programming: Example using Schneider
Your First Steps Through STL Language
From Boolean Algebra to PLC Logic
Mis-conceptions of PLC Ladder Logic
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
206kSubscribersSubscribe
38kFollowersFollow

Latest

Top Non-PLC Certification Courses for Automation Professionals
Top Non-PLC Certification Courses for Automation Professionals
Common
Things You Need to Know About DeviceNet
Things You Need to Know About DeviceNet
Communication
Why is IEC 60269 Important
Why is IEC 60269 Important? – Electrical Applications
Standards
NAMUR OPEN ARCHITECTURE
What is NAMUR OPEN ARCHITECTURE?
Control Systems

Related Articles

Example Ladder Logic Diagram

What is Relay Logic ?

Siemens PLC Organization Blocks used For Troubleshooting

Tia Portal – OB121 Programming Errors Interrupt Organization Block

What is a function call in TIA Portal

Difference Between FC and FB in Tia Portal

ON DELAY TIMER AS OFF DELAY TIMER

How to Interchange ON Delay Timer and OFF Delay Timer in a PLC

LES and GRT Blocks in PLC Programming

Allen Bradley Math Functions

PLC Motor Control Circuit

Motor Trip Logic using PLC Programming

Sticker machine with weighing PLC logic

Product Sticker Machine with Weighing PLC Program

Ladder Diagram Example using Memory Bits and Set Coils

Ladder Diagram Example using Memory Bits and Set Coils

More Articles

Power Electronics Objective Questions

Single Phase Semi-Converter Multiple Choice Questions

Fluorescent Screen of CRT

CRT Fluorescent Screen

Tuning a Liquid Level Process Control Loop - 1

Tuning a Liquid Level Process Control Loop

Spectrometers Questions and Answers

X-Ray Diffractometers Questions & Answers

ProfiBus Questions and Answers

Latest ProfiBus Questions and Answers

Thermal Conductivity Detector (TCD)

Thermal Conductivity Detector (TCD) Principle

Difference between Intrinsically Safe and Flameproof Equipment ?

Difference between Intrinsically Safe and Flameproof Equipment ?

bus-with-spurs-topology

Different Fieldbus Network Topologies

//

Inst Tools

Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

[mc4wp_form id=”847″]

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?