beautypg.com

Program capacity and time usage, E program, Capacity and time usage – Delta RMC151 User Manual

Page 315: Program, E program capacity and time usage

background image

5 Programming

Entering Tag names

You do not have to remember the tag names in order to use them. The Address Selection

Tool can be used to find tag names.
To access the Address Selection Tool from a User Program command parameter box, or
from a link type, click the ellipsis button ( ).
In the Expression Editor, the Tags box lists all the tags.

Special Tag Names

Controller
The following controller tag names are useful for certain advanced programming

applications.

Tag Name

Description

_FirstScan

This BOOL value goes high (1) on first scan after entering

RUN Mode, otherwise it is low (0). See the Program Triggers

topic for usage details.

_SysMS

System Milliseconds. Contains the number of milliseconds

since the RMC powered up. This DINT value will wrap around

to -2147483648 after it reaches its maximum value of

2147483647.

_SysTicks

System Ticks. Contains the number of control loops since the

RMC powered up. This DINT value will wrap around to -

2147483648 after it reaches its maximum value of

2147483647.

Tasks
The following Task tag names are useful for certain advanced programming applications.

See the Tasks topic for more details.

Tag Name Description
_CurTask

The current task that is running the user program.

_CurAxis

The current axis for the task that is running the user program.

Variables
Variables can be given a user-defined tag name in the Variable Table Editor, which is the

preferred method of referencing variables. If they are not given a user-defined tag name,

they can still be accessed with the default tag names:

Tag Name

Description

_VarTbl.CurVal[n] Current Value of variable n.
_VarTbl.Initial[n]

Initial value of variable n.

5.8. Program Capacity and Time Usage

The RMC has a fixed amount of memory for user programs, and a fixed amount of time

allocated for processing user programs. When verifying or downloading the programming,

RMCTools calculates the memory and time usage and displays them in the Verify Results

Window. If the memory or time limits are exceeded, an error is logged in the Verify Results

window, and RMCTools will not allow the programs to be downloaded to the controller.
This topic describes methods of reducing the program size and the program time usage.

deltamotion.com

295

This manual is related to the following products: