- Using the software
- Ladder Editor
- Add-On Instructions
- Instructions
- Instruction set
- Code Editor Domain Specific Language Syntax
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
To create a controller-scoped tag
- On the explorer bar, selectExecution.
- Right-click a controller and selectTags and parameters. The Tag Editor opens for that controller.TIP: You can also select a controller and then, in theExplorertitle bar, selectView tags and parameters.
- In the last row of the Tag Editor, enter a tag name.
- Fill in the tag parameters:
- Data Type. The name of the data type. If the data type does not appear, browse to open theSelect Data Typedialog, select a data type from the list, and then selectApply. 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