Add a tag to an element in a routine
Select or create the tag to be used in an element for a ladder diagram.
Prerequisites
- Add an element to the routine, such as an instruction.
To add a tag to an element in a routine
- In the diagram, right-click the tag or operand.
- Add the tag:
- Existing tag. Select the operand and then select
to select the existing tag.
- New tag:
- In the operand, type a name for then new tag and then select elsewhere.TIP: To enter the full path of a tag, use the following formats where "owner" is an alias used in the path for a program tag and "owner.owner" is an alias used in the path for a controller tag:
- Program scope:
- ControllerName.ProgramName.TagName
- Area.SOName.ProgramName.TagName
- SOName.ProgramName.TagName
- ProgramName.TagName
- Owner.TagName
- Controller scope:
- ControllerName.TagName
- Owner.Owner.TagName
- In the operand, right-click the new tag name and selectCreate new tag.
- InCreate new tag, complete:ParameterDescriptionGeneraltabNameThe name for the tag. If you entered the full path of the tag when typing the name in the operand, only the tag name appears inName.Data TypeBrowse to select the tag data type, enter the array dimensions, and then selectApply. Some instructions are limited to specific data typesStyleSelect the
to choose the tag style.
UsageSelect theto choose the tag usage.
Usage of the types are LOCAL, INPUT, OUTPUT, or INOUT. The default is LOCAL.ScopeThe tag scope:- Controller. Controller tags apply to the entire controller and can be used by all programs. In other words, 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.
- Program. Program tags contain data that is used exclusively by the routines within an individual program. This means that program tags can have the same name in more than one program, allowing programs to be copied and reused more easily. These tags can be seen as local variables.
Description(optional) Add a description of the tag.AdvancedtabTypeSelect theto choose an Alias or Base tag type.
Base tag is the default. WhenTypeis set toBase, selectCreateto create a normal tag.Alias forOnly available for Alias tags.Select theto choose an Alias or type a tag name.
Base tagIf the Alias for is an alias for another tag, then the base tag displays here. Base tag is read-only. - SelectCreate.TIP: If you enter the tag path in an instruction operand and use the alias "owner" or "owner.owner", the path of the tag appears under the instruction operand in the routine.
Provide Feedback