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: How to use FIFO Block in TIA Portal? – Siemens PLC Programming
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 > How to use FIFO Block in TIA Portal? – Siemens PLC Programming

How to use FIFO Block in TIA Portal? – Siemens PLC Programming

In this article, you will learn how to use FIFO block in Siemens TIA portal PLC programming. FIFO stands for First In First Out.

Last updated: September 28, 2022 2:22 pm
Hussien Ghareb
PLC Tutorials
No Comments
Share
4 Min Read
SHARE

First In First Out (FIFO)

Regarding the Programming Engineers, there is always an idiom stating that “It is not about your code result, it is always about how did you make it.”

Contents
First In First Out (FIFO)The Function and Application of FIFO BlockSteps for Configuring FIFO Table in TIA Portal

So, today we are going to enhance our programming skills by learning a new tool that will help us to build a (first input first output) register.

But before we are getting started, we need to know why we need such instruction? and when are we supposed to use it? so clear your mind and stay tuned.

The Function and Application of FIFO Block

FIFO is a structure used in hardware or software applications when you need to buffer data.

Basically, you can think about a FIFO as a bus queue, the people that arrive first is the one who catches the bus first.

Function and Application of FIFO Block

Sometimes your input data and field signals are being done faster than the system outputs that you have to make, so in order to handle such a situation you have to make an instruction that slows down the flow of input data and at the same time you have to store these data safely and by its turn.

Simply that is what a FIFO block can do, it outputs the oldest entry of the “FIFO” table as function value then the number of entries is decremented by one and If there are still entries in the table, these are shifted down.

Steps for Configuring FIFO Table in TIA Portal

First of all, you have to understand that this operation needs two instructions.

  • One for loading the FIFO table with the unique sequence “ATT” instruction (Add value to table). Shown in Fig. (1)
  • Another one for unloading the FIFO table “FIFO” instruction. As figured in Fig. (2)
Steps for Configuring FIFO Table in TIA Portal
Figure 1
fifo instruction in tia portal
Figure 2

Creating the FIFO register (DB)

By pressing the right click on program blocks you can choose Add new block.

Creating the FIFO register
Figure 3

Configuring the FIFO database

Then we have to configure the database as illustrated in the next figure. Fig. (4)

  • The first entry in the table specifies the maximum length of the table.
  • The second entry in the table specifies the number of existing entries.
  • The third entry in the table contains the first word of data.
Configuring of FIFO database
Figure 4

Coding the FIFO block in the Main OB

As we can see in the next figure Fig. (5), the first network is responsible for unloading our FIFO table by activating M0.0 automatically the data in turn will be transmitted to MW2.

And for the second network, we can see that it is responsible for loading the table by activating M1.0 automatically the data in MW4 will take its turn into the FIFO table.

Note: the word (P#DB1.DBX0.0) stands for the start address of your table.

FIFO logic in Siemens PLC
Figure 5

If you liked this article, then please subscribe to our YouTube Channel for Electrical, Electronics, Instrumentation, PLC, and SCADA video tutorials.

You can also follow us on Facebook and Twitter to receive daily updates.

Read Next:

  • Ladder Logic Example
  • WinCC Runtime Advanced
  • Why 24 Volts DC Power Supply?
  • Communication in S7-1200 PLC
  • Factory Acceptance Test of PLC
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

Product Painting PLC Program using Omron CX-Programmer
PLC Based Product Sorting Machine System – Lift Control
Electrical Switches Principle & Types
Schneider PLC Example Program for Star-Delta System
System Cabinet Health Checks – PLC and DCS Industrial Automation
PLC Digital Signals Wiring Techniques
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

Software Troubleshooting Errors and Faults in Siemens PLC
100 PLC Quiz Questions : True or False
Architecture of Allen Bradley PLC
UPS Selection Factors for a Control System
PLC Math instructions
Conveyor Sorting System with Color Detection PLC Logic
PLC Electric Motor Interlocks
Gas Turbine Temperature Alarms using Siemens TIA Portal

Keep Learning

Complementary Split Range Control

What is Complementary Split Range Control (CSRC)?

PLC Program for Traffic Light Sequence using Functional Blocks

PLC Program for Traffic Light Sequence using Functional Blocks

Sticker machine with weighing PLC logic

Product Sticker Machine with Weighing PLC Program

Conveyor Speed Logic using Structured Text in PLC

Conveyor Speed Logic using Structured Text in PLC

Using Clock Memory Bits in TIA Portal - Siemens PLC

Using Clock Memory Bits in TIA Portal – Siemens PLC

PLC Programming Projects for Beginners

PLC Programming Projects for Beginners

Connection between PLC and Contactor

Contactor – Basics, Wiring, Connection with PLC

Indusoft SCADA Modbus Communication

Establishing a Modbus Driver for SCADA Indusoft Web Studio

Learn More

Strip-Chart-Recorder-Working-Principle

Strip Chart Recorder Working Principle

Boiler Blowdown

What is Boiler blowdown ?

Structured Text PLC Program for Measuring Event Duration

Structured Text PLC Program for Measuring Event Duration

PLC Programming Example on Timers Function Block

PLC Programming Example on Timers Function Block

Single-Acting Cylinder Control Operation using Proximity Sensor

Single-Acting Cylinder Control using Proximity Sensor

How to test SCR using Multimeter

How to test SCR using Multimeter

Solid State Relay Working Principle

What is a Solid State Relay? – Working Principle, Types of Control

Dip Tape

What is Dip Tape Level Measurement?

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?