System Information
System Name & ID Modification in WinCC OA
When creating a project, the default name "System1" is selected. However, in cases like a distributed system where you're dealing with multiple systems, there may arise a need to modify the system name and its corresponding ID.
Although the modification can be performed using a command instruction, the official documentation might not provide a clear explanation. Here, we provide a comprehensive guide to achieving this.
Prerequisites
- This tool is included in the most recent version of WinCC OA. Access is only through the command line.
- The project, whose name and ID you intend to change, must be completely stopped for the changes to take effect.
Step-by-Step Guide
- Navigate to the WinCC OA installation directory. For a default Windows installation, this would typically be:
C:\Siemens\Automation\WinCC_OA
- Select the version of WinCC OA you're working with. For instance, if you're working with version 3.18, navigate to:
C:\Siemens\Automation\WinCC_OA\3.18\bin
- Open your preferred command-line tool at this directory. You can use Visual Studio Code, traditional command prompt, developer shell, or any other command-line tool of your choice.
-
Run the following command, modifying the placeholders accordingly:
Example:WCCOAtoolSyncTypes -proj <project_name> -system <new_system_number> <new_system_name> -log +stderr
WCCOAtoolSyncTypes -proj TestProj -system 111 10TestP -log +stderr
Outcome
Upon executing the above, you've effectively changed the default system ID and name. For instance, if you've modified the default system ID from 100 to 111 and changed "System1" to "10TestP", this will reflect in the System Information Tab in the Settings page. Alternatively, you can also verify these changes via a script:
DebugN(getSystemId(),getSystemName());
This will display the following log output:
WCCOAui1:[111]["10TestP:"]