Creating Local Tags

Use the Add-On Instruction Definition Editor to create the local tags for your instructions. Local tags contain data that will be used by your Add-On Instruction but that you do not want exposed to the user of your instruction.
Local tags do not appear in the data structure for an Add-On Instruction because they are hidden members.

Follow these steps to define the local tags for your instruction.

1. In the Controller Organizer, right-click an instruction and choose Open Definition.

2. Click the Local Tags tab and type a name for a new tag and select a data type.



You cannot use these data types for local tags - ALARM_ANALOG, ALARM_DIGITAL, MESSAGE, or any Motion data types, for example Axis or MOTION_GROUP. To use these type of tags in your Add-On Instruction, define an InOut Parameter. Local tags also are limited to single dimension arrays, the same as User-Defined Data Types.

3. Set the default values.

Default values are loaded from the Add-On Instruction definition into the tag of the Add-On Instruction data type when it is created or any time a new tag is added to the Add-On Instruction.

4. Set the display style.

5. Type a description, a maximum of 512 characters.

6. Repeat for additional local tags.

0 comments :