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
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 > 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

Sink or Source? Normally Open or Normally Closed?
Hardwired I/O and Serial I/O – Differences Explained
PLC Program for Temperature Control using Thermostat
How to Communicate with Excel from RsLinx?
Instrumentation Engineer in Process Plant Project
Omron PLC Online Training Course
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

Top Free PLC Software
PLC Program for Water filling and Discharging Process
Function Block (FB) for Motor Control Logic
PLC Logic GATE Program
InTouch SCADA Login Password Security
How to Use an SQL Server with Indusoft Web Studio?
How to Configure an Alarm in InTouch SCADA?
Structured Text PLC Programming for Two-Tanks Level Application

Keep Learning

FactoryTalk View Studio Site Edition Pop-Up Confirm Action

How to Automatically Close Pop-up in FactoryTalk View Studio?

PLC Programmer Unknown Do's

Unknown Do’s Need to Know as a PLC Programmer

Simatic 300 Station Configuration

Monitor and Modify Variables in Simatic Manager

Function Block Program Simulation

What are Functions in PLC Programming? (FCs)

Edge Detection in PLC

Edge Detection in PLC Programming

Proper Earthing Practices Used for PLC Control Panel

Proper Earthing Practices Used for PLC Control Panel

PLC Memory Organization - Data Files and Program Files

PLC Memory Organization – Data Files and Program Files

Studio 5000 Logix Emulate Controller

How to Create New Project in Studio 5000?

Learn More

Switch NO or NC Contact

Normally-open and Normally-closed Switch Contacts

Installation and Calibration of Level Transmitter

Installation and Calibration of Level Transmitter

Irrigation based Projects

Irrigation based Projects for College Students

How to Create DFB in Schneider PLC? – Derived Function Block

Advantages of Three Phase System Compared to Single Phase System

Advantages of Three Phase System Compared to Single Phase System

Split range control scheme

Overview of Split Range Control

Power Electronics Objective Questions

Advanced Three Phase Converter Objective Questions

Top 10 Common Mistakes on Electrical Systems

Top 10 Common Mistakes on Electrical Systems

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?