Create a defined word

Create defined words to use in projects. Defined words are identifier names that replace literal expressions, boolean expressions, reserved keywords, or complex ST expressions.
To create a defined word
  1. From the
    Application View
    , double-click
    Defined Words
    .
  2. In the
    Defined Words
    grid, define the required properties:
    • Name
      -- Name of the defined word. Limited to 32 characters beginning with a letter or single underscore followed by letters, digits, and single underscore characters. Names cannot be reserved words, defined words, or data types. Names must be unique.
    • Equivalent
      -- String replacing the defined word during compilation. For example, the defined word "PI" is replaced by its equivalent "3.14159". Limited to 255 characters.
      TIP: Do not use spaces for the equivalent string. Using a space prevents saving of the new defined word.
    • Comment
      -- Plain text.
  3. Press
    Enter
    .
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal