Overview: Using Constants

Constants, or Defines, exist at Internal, Global, and a Local level.

Level

Scope

Internal Defines

All the projects present on your machineClosed The complete assembly of all connected parts or devices, of which at least one is movable..

Global Defines

All the programsClosed The act of performing a sequence of instructions or commands. in your project.

These are user-defined.

Local Definitions

Only the current program currently open.

How to define constants

  1. Double click on the Defines item in the Project Tree.
    Global Definitions
  2. Use the text editor to create the defines using the following syntax.
    #define   Identifier   Equivalence   (* comments *)

See Use the Defines List for more in-depth information.