Create a controller-scoped tag

Create a controller-scoped tag

Controller-scoped tags apply to the entire controller, and can be used by all controller programs. The data in a controller tag is available to every task or program within the controller application. These tags can be used as global variables.
TIP: Controller tags are not available for use in smart object programs.
Prerequisites
  • A controller in the project. Add a controller from the
    Execution
    explorer or the
    Devices
    explorer.
To create a controller-scoped tag
  1. On the explorer bar, select Execution Icon
    Execution
    .
  2. Right-click a controller and select
    Tags and parameters
    . The Tag Editor opens for that controller.
    TIP: You can also select a controller and then, in the
    Explorer
    title bar, select Tags Icon
    View tags and parameters
    .
  3. In the last row of the Tag Editor, enter a tag name.
  4. Fill in the tag parameters:
    • Data Type
      . The name of the data type. If the data type does not appear, browse to open the
      Select Data Type
      dialog, select a data type from the list, and then select
      Apply
      . For more information, see Select a data type.
    • (Optional)
      Value
      . Enter the value of the tag.
    • (Optional)
      Description
      . Enter a description of the tag to indicate the purpose of the tag or the latest change to the tag.
    • Style
      . For a BOOL, SINT, INT, DINT, or REAL tag, select a display style to define how the tag value appears. Styles include DECIMAL, BINARY, OCTAL, and HEX. The default is DECIMAL.
    • Usage
      . Select a usage type -- LOCAL, INPUT, OUTPUT, or INOUT. The default is LOCAL.
      TIP: Usage is unavailable for tag members. Changes to Usage update the tag definition.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal