Tag Name Syntax
- Last UpdatedJul 18, 2023
- 1 minute read
Plant SCADA tags (variable tags, alarm tags and trend tags) need to use the following syntax:
-
The fields are not case sensitive and need to begin with either an alpha character (A-Z or a-z) or the underscore character (_).
-
Any following characters need to be either alpha characters (A-Z or a-z), digit characters (0 - 9), backslash characters (\), or underscore characters (_).
The use of any other characters will result in a compile error message.
For example:
-
"_MyTag123" and "my\New\Tag" are both valid tag names.
-
"\NewTag\" is invalid.
Tag names that begin with a numeric character, such as '12TagName', are only valid if the INI parameter [General]TagStartDigit is set to 1 (the default value is zero).
Note: In the case of alarms, the Alarm Tag property needs to follow this syntax, but the Alarm Name property does not.
See Also