TIA Portal Modular Programming
TIA Portal Modular Programming
TIA Portal Modular Programming
Programming
In Urdu/Hindi/English
Instructor: Rana Muhammad Awais
TIA Portal Modular Programming
Cyclic Execution
OB1
FB1
FB2
FC1
Better Structure
Source: Siemens Rana Muhammad Awais | www.automationplay.com| automationplayonline@gmail.com | Facebook.com/automationplay | Youtube: Rana Muhammad Awais
TIA Portal Modular Programming
Source: Siemens Rana Muhammad Awais | www.automationplay.com| automationplayonline@gmail.com | Facebook.com/automationplay | Youtube: Rana Muhammad Awais
TIA Portal Modular Programming
OB1
FB1
FB2
Source: Siemens Rana Muhammad Awais | www.automationplay.com| automationplayonline@gmail.com | Facebook.com/automationplay | Youtube: Rana Muhammad Awais
TIA Portal Modular Programming
Source: Siemens Rana Muhammad Awais | www.automationplay.com| automationplayonline@gmail.com | Facebook.com/automationplay | Youtube: Rana Muhammad Awais
TIA Portal Modular Programming
Source: Siemens Rana Muhammad Awais | www.automationplay.com| automationplayonline@gmail.com | Facebook.com/automationplay | Youtube: Rana Muhammad Awais
TIA Portal Modular Programming
Source: Siemens Rana Muhammad Awais | www.automationplay.com| automationplayonline@gmail.com | Facebook.com/automationplay | Youtube: Rana Muhammad Awais
TIA Portal Modular Programming
DATA BLOCKS
You create data blocks (DB) in your user program to store data for the code blocks. All of the
program blocks in the user program can access the data in a global DB, but an instance DB
stores data for a specific function block (FB).
Your user program can store data in the specialized memory areas of the CPU, such as for
the inputs (I), outputs (Q), and bit memory (M). In addition, you can use a data block (DB) for
fast access to data stored within the program itself.
The data stored in a DB is not deleted when the data block is closed or the execution of the
associated code block comes to an end. There are two types of DBs:
● A global DB stores data for the code blocks in your program. Any OB, FB, or FC can
access the data in a global DB.
● An instance DB stores the data for a specific FB. The structure of the data in an instance
DB reflects the parameters (Input, Output, and InOut) and the static data for the FB. The
Temp memory for the FB is not stored in the instance DB.
Although the instance DB reflects the data for a specific FB, any code block can access the
data in an instance DB.
Source: Siemens Rana Muhammad Awais | www.automationplay.com| automationplayonline@gmail.com | Facebook.com/automationplay | Youtube: Rana Muhammad Awais