Issue
After compiling the project, I have a compilation error W1048 - Reserved Words.
Product Line
Power Scada Operation 2020
Power Scada Operation 2020 R2
Power Scada Operation 2021
Ecostruxure Power Operation 2022
Ecostruxure Power Operation 2024
Environment
Power Operation Studio Compiler
Cause
There are certain words that are restricted for use. You can find these words in the AVEVA Plant Scada manual. Reserved Words may be different version to version. Some reserved words like "Array" or "While" may result in a compiler warning. Other reserved word errors may end up causing functions to fail.
Using reserved words should be avoided as much as possible.
| Schneider Electric Power Operation Version | AVEVA Plant SCADA Version |
| PO 2024 | 8.5 |
| PO 2022 | 8.4 |
| PO 2021 R1 | 8.3 |
| PSO 2020 R2 | 8.21 |
| PSO 2020 | 8.2 |
| PSO 9.0 | 8.10.0.2086 |
| PSE 8.2 | 8.0.0.2065 |
| PSE 8.1 | 7.50.0.4150 |
| PSE 8.0 SR1 | 7.50.0.4107 |
| PSE 8.0 | 7.40.1.239 |
| PSE 7.40 SR1 | 7.40.1.239 |
| PSE 7.40 | 7.40.1.239 |
| PSE 7.30 SR1 | 7.30.0.601, 7.30.1.94 |
| PSE 7.20 SR1 | 7.20.4.38 |
| PSE 7.20 | 7.20.1.33 |
Resolution
Changing the name of tags, variables or equipment in the database may result in unattended consequences and errors that are difficult to trace. Please do not attempt if you are not comfortable with Power Operation/Power SCADA or Plant SCADA. If you are using TGML graphics please call into Technical Support to consult before making attempting the changes below.
- Back up project.
- Back up citect.ini file.
- If there is a secondary server or virtual environment, restore the project to the secondary server under a different name and work on the changes there.
- Navigate to the compiler warning or error. Click on the warning.
- Note the current name.
- Rename the offending string to a word not in the Reserved Words list.
- Note the changes made and save the project.
- Navigate to the Graphics Builder. Select Tools -> Updated Pages in Active and Included Projects.
- Graphics Builder -> Tools -> Pack with Active and Included Pages.
- Power Operation Studio -> Project -> Pack with included projects.
- Run the compiler.
- Verify the warning has been removed for the line changed.
- Run the project.
- Verify correct startup of Runtime Manager services (IO Server, Alarm Server, Trend Server, etc).
- Verify alarming is functional.
- Verify communications and graphic functionality including one line.
- Verify trending functionality.
- Verify any custom utilities.