beautypg.com

Tag names – Delta RMC151 User Manual

Page 314

background image

RMC70/150 and RMCTools User Manual

After changing any items under the Programming node in the Project Pane, you must

download the programs to the RMC to apply the changes to the RMC.
To download the programs:

1. In the Project Pane, right-click Programming and click Download Programs.

5.7. Tag Names

Each register in the RMC is considered a tag. In RMCTools, each tag has a tag name. Tag

names can only be used for programming in the RMCTools. Most tags have a fixed name, also

referred to as system tags. Some tag names can be defined by the user, such as the

variables tags and discrete I/O.
Use tags names instead of register addresses to make your user programs more readable. For

example, the Axis 0 Actual Position tag name is _Axis[0].ActPos, which is much more

readable than its IEC address %MD8.8.
The tag names for each register are given in the Register Description topics. Use the Registers

Maps to find the description topic for the register you need. The tag name details will be given

there.
When using tag names in expressions in RMCTools, the Expression Editor includes a Tags box

from which you can choose the register you need and double-click to insert the tag name in

the expression. Therefore, you do not need to memorize or look up tag names.

Using Tag Names

In general tag names can be used wherever an expression can be entered in RMCTools.

Tags names can be used in the following places in RMCTools:

In User Program command parameter boxes

Example 1: Consider in a User Program, a Move Absolute command is issued to

Axis 0. In the Position parameter of the Move Absolute command, entering the tag

name _Axis[1].ActPos would make Axis 0 move to the position of Axis 1.
Example 2: Assume a variable is defined with a tag name MySpeed. In a User

Program, in the Speed parameter of a Move Absolute command, entering the tag

name MySPeed would make the move at the speed defined by the variable

MySpeed.

In the Expression (113) command

Example: The assignment expression _Axis[0].OutputBias := 5 sets the Axis 0

Output Bias to 5.

In the Wait For, Conditional Jump, and Delay link types

Example: The logical expression _Axis[0].TarPos > _Axis[1].ActPos in the Wait

For Link Type compares the Axis 0 Target Position with the Axis 1 Actual Position.

Tag Names and Bits
Individual bits in any DWORD register can be accessed by appending a period and the bit

name or bit number after the tag name.

Examples:

_Axis[0].StatusBits.InPos accesses the Axis 0 In Position bit.
_Task[2].Status.Running accesses the bit that indicates whether task 2 is running.
MyDWORD.MyBit accesses the bit named MyBit in the variable named MyDWORD.
MyDWORD.4 accesses bit 4 in the variable named MyDWORD.

294

Delta Computer Systems, Inc.

This manual is related to the following products: