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: Structured Text PLC Code for Sequential Process Data Storage
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 > Structured Text PLC Code for Sequential Process Data Storage

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
PLC Tutorials
No Comments
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 !

Continue Reading

How to Use Analog Input in Mitsubishi FX3U LOLLETTE PLC?
PUT Command in Siemens PLC – TIA Portal Basics
Auto Sugar Bag Filling Station
Types of PLC Memory
Siemens Drum block for Sequencer Operation
Do’s and Don’ts in PLC
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

Troubleshooting a 4-20mA Current loop
Timer in Studio 5000 – TON, TOF, RTO
Door Locking System – PLC Applications Examples
How to Troubleshoot Siemens PLC Programs?
Seven Segment Display Programming with Structured Text
Automatic Door Operation PLC Programming and Simulation
PLC Brands Software Information
PLC Timer Instructions

Keep Learning

PLC Motor Control Ladder Logic

PLC Program for Star Delta Motor Starter

How-to do Security of SCADA Systems

How-to do Security of SCADA Systems?

Batch mixing process automation with Omron PLC

Automate Batch Mixing with Repeated Cycles in Omron PLC

3 to 8 Line Decoder Circuit Diagram

3 to 8 Line Decoder PLC Ladder Diagram

Schneider PLC Programming Example

Schneider PLC Programming Example for Beginners

Save to Memory Card

How to Save a PLC Project to a Micro Memory Card?

Relay Wiring

Animation of Electromagnetic Relay

PLC Program for Forward and Reverse Motor control

3 Phase Motor Control using PLC Ladder Logic

Learn More

How to Calibrate Load Cells

How to Calibrate Load Cells in Weighing Applications?

Renewable Energy Projects

200 Renewable Energy Projects for Students and Engineers

Electronic Meters Questions & Answers

Electronic Meters Questions & Answers

What is Zero Trust Security

How a Single ZTNA Solution Can Help Overcome Cybersecurity Issues?

Boiler Feed Water Circulation System

Boiler Feed Water Circulation System

Resistive Transducers Objective Questions

Resistive Transducers Objective Questions

Thermocouple Calibration

Thermocouple Calibration

Programmable Logic Controllers Multiple Choice Questions

Programmable Logic Controllers Multiple Choice 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?