Defined Words
AADvance projects support the use of identifier names, called defined words. Defined words are replaced by the variables and expressions these represent when building. Defined words have a common scope making these available for use in any program organization unit (POU) of any controller of a project.
For POUs, a defined word replaces literal expressions, boolean expressions, reserved keywords or complex ST expressions.
These are examples of defined words:

When an equivalence is defined, its identifier is available anywhere in an ST program to replace the attached expression. This ST programming example uses defined words:
If OK Then angle := PI / 2.0; isdone := YES; End_if;
TIP:
Defined words must have unique names. Create defined
words in a library for use in a project. Build errors occur when a project and library
contain the same defined word.
Provide Feedback