Step Editor

To access this editor:
Expand the desired controller in the Project pane, expand Programming, and expand User Programs. Double-click an existing User Program, or right-click User Programs and click New Program to create a new one.

 

Use the Step Editor to create a User Program. The Step Editor provides an easy and intuitive programming interface.

User Programs allow you to run a sequence of commands on the RMC. A User Program consists of a series of steps that are linked together in sequences.  The steps consist of the following:

Example User Programs

For examples of user programs, see the Programming Examples Overview topic.

Using the Step Editor

Steps

When adding and deleting steps, the Step Editor automatically updates the Link Jump To numbers. For example, if step 3 has a Jump To number of 4, and you insert a step before step 3, then the old step 3 becomes the new step 4. The Step Editor automatically increments its Jump To number from 4 to 5.

If a deleted step was linked to with a number from some other step, a warning will appear in the Output window.

Commands

There are two ways to choose a command:

Entering Command Parameters

If the command has any parameters, enter their values. In most parameters, you may enter a number, tag, or an expression. If you use a tag name, register, or expression, it must evaluate to the data type required by the parameter, typically a REAL.

Tip:
For help on the command's parameters, click the command box and press F1.

Note:
A tag may be a variable or any register in the RMC.

Selecting Commanded Axes

The Commanded Axes specifies which axes to issue the command to.

Important: A maximum of one non-immediate command per axis can be issued in a single step. If you try to issue more than one command to an axis per step, the verify will report an error and you will not be able to download the programs.

Choosing a Link Type

  1. Click the down-arrow in the Link Type box and choose the desired link type.

  2. If the link type has a condition, enter it according to the table below:

Link Type

To enter a Link condition:

Immed

N/A

Jump

N/A

Delay

Type a number, or click the ellipsis button to choose a tag.

Wait For

Click the ellipsis button to open the Link Condition Wizard.

Cnd Jump

Click the ellipsis button to open the Link Condition Wizard.

End

N/A

 

  1. If you chose Jump, Delay, or CndJump, enter the step to jump to in the Jump To box(es). You can enter a step number, "Next", or a step label.

Adding A Comment

Adding A Label

Adding Local Variable Declarations

If you are using the Expression (113) command, you can also define local variables for use in the step. See Local Variables in Expressions for details.

Copy/Paste

The Step Editor fully supports copy and paste. You can copy and paste any section of a step, entire steps, multiple steps, etc. The copy and paste also works between instances of RMCTools.

Undo

Undo is available for all editing actions in the Step Editor. Undo is also available within an individual expression, although once an expression edit is accepted, the undo history internal to the expression box is cleared.

Printing

To print the currently open user program, on the Step Editor toolbar, click the Print button . Or, on the File menu, choose Print.

 

See Also

User Program Overview


Send comments on this topic.

Copyright © 2024 Delta Computer Systems, Inc. dba Delta Motion