Tietokoneiden näyttöjä, joissa näkyy kuvaa automaatiolaboratorion laitteistosta. Monitoreiden takana näkyy sama laitteisto kuin kuvissa.

timohei.net / My Courses / My Courses / Production Automation Project / Siemens S7 How-to / Multiuser Engineering /
TIA Portal Project Server and Modular Programming Tutorial

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.


Part 1: Industry-Standard Project Structure (Modular Programming)

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

1. Program Block Types and Usage

The standard programming concept in TIA Portal uses FBs and FCs for specific purposes:

2. The Role of OB1 (Main Cyclic Organization Block)

The Organization Block 1 (OB1) manages the program's execution flow. It must be kept clean to simplify troubleshooting.

3. Tag and Data Organization

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)


Part 2: Multiuser Collaboration Workflow (Client Side)

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.

Step 1: Connect to the Project Server (Initial Setup)

  1. Open TIA Portal.
  2. Go to the main menu and select Options > Settings.
  3. Navigate to the Project server tab.
  4. In the Connections section, click Add server connection and enter the server's network name or IP address and the correct port (default is 443).

Step 2: Create Your Local Session

Each student creates an independent local copy of the server project.

  1. Go to Project > Project server > Manage server projects.
  2. Log in with your assigned Windows or local user account that has permissions for your group's project (e.g., A01).
  3. Select your project (e.g., "A01").
  4. Click Create local session and choose a location on your local computer to save your working copy.
  5. Open this new local session to begin working.

Step 3: Mark Objects for Editing (Checking Out)

Before modifying an object (Block, HMI Screen, Tag Table, etc.), you must reserve it.

  1. In the Project Tree of your local session, locate the block you are assigned to (e.g., FB_Valve_V1).
  2. Right-click the object and select Multiuser > Mark for editing.
  3. A blue flag icon [⚑] appears next to the object, confirming you have reserved it.
  4. Note: Other students will see a yellow flag [⚑] next to the object when they refresh, indicating it is locked by another user.

Step 4: Check-in Changes (Saving to the Server)

Once your assigned task is complete and tested (compiled without errors), check your changes back into the server.

  1. Click the Check-in button in the Multiuser toolbar (or go to Project > Project server > Check in).
  2. The Multiuser editor window opens, listing all objects you have modified.
  3. Crucially: Enter a detailed Comment describing what you changed (e.g., "Implemented safety logic for Valve V1 and updated HMI tag").
  4. Click Start check-in. Your changes are saved to the server and the objects are immediately released for other users.

Step 5: Refresh Local Session (Getting Others' Changes)

Periodically refresh your session to get the latest contributions from your teammates.

  1. Click the Refresh local session button in the Multiuser toolbar.
  2. The Multiuser editor displays all changes recently checked in by your teammates.
  3. Click Start refresh to download and integrate these changes into your local session.

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)

Updated 9.10.2025

<<  Previous Page
( 1) Multiuser Engineering
Sivu 2/2First Page >>
(1) Multiuser Engineering
© Timo Heikkinen | timo piste heikkinen at oamk piste fi