TIA Portal Project Server and Modular Programming Tutorial
285 355 450
This guide provides an industry-standard approach to structuring a Siemens TIA Portal project and details the step-by-step workflow for collaboration using the TIA Project Server, as recommended by Siemens documentation.
Adopting a modular structure is essential for team projects to ensure readability, scalability, and maintainability. This structure relies heavily on Function Blocks (FBs), data organization, and a clean main program (OB1).
The standard programming concept in TIA Portal uses FBs and FCs for specific purposes:
The Organization Block 1 (OB1) manages the program's execution flow. It must be kept clean to simplify troubleshooting.
FB_Machine_Modules
, FB_Global_Tasks
). OB1 calls these blocks, and they, in turn, use Multi-Instance calls to execute the specific, low-level equipment FBs (like FB_Motor_1
).Consistent data structuring is paramount for team efficiency:
Element | Purpose | Industry Standard |
---|---|---|
User-Defined Data Types (UDTs) | Defines a common data structure for a type of component (e.g., UDT_Motor includes Start, Stop, Running_Sts, Fault_Code). |
Use UDTs extensively for FB interfaces and Global DBs to maintain consistency. |
Global Data Blocks (Global DBs) | Stores system-wide or shared data. | Store configuration parameters (e.g., DB_Config ) or HMI setpoints (e.g., DB_HMI_Data ). |
Instance Data Blocks (Instance DBs) | Automatically generated memory for a specific FB call. | Stores the current state of a component (e.g., Motor_M1's running status). |
Source Reference: Siemens Industry Online Support often details these best practices in their programming guidelines and application examples. Multiuser Engineering with TIA Project-Server (Siemens Document)
Assuming the TIA Project Server is set up and the initial project is uploaded with a unique server project for each group (A01, B01, etc.), follow these steps for collaborative work.
Each student creates an independent local copy of the server project.
Before modifying an object (Block, HMI Screen, Tag Table, etc.), you must reserve it.
FB_Valve_V1
).Once your assigned task is complete and tested (compiled without errors), check your changes back into the server.
Periodically refresh your session to get the latest contributions from your teammates.
Note on Conflicts: If you and another student modify the same object simultaneously, the Multiuser editor will display a red flag [⚑], indicating a conflict. You must manually resolve this within the editor before a check-in or refresh can be completed.
Source Reference: For a full overview of the Multiuser process, consult the Siemens documentation: Introduction to Multiuser Engineering (TIA Portal Documentation)