Be retentive – Delta RMC151 User Manual

Page 309

Advertising
background image

5 Programming

Use the Edit tab of the Variable Table Editor to set the initial value. The Initial value is

the value the variable will take on when the RMC is reset.

Use the Monitor tab of the Variable Table Editor to set the current value of the

variable.

Use the Expression (113) command in a User Program to assign a value to a variable.

Write to the Variable register via a PLC or other host controller. See Variable

Locations - Using Variables with a PLC or other Host Controller below for

details.

Using Variables

Variables can be used for many purposes:

Store a value for later use.

To influence User Programs.

Count how many times an event occurs.

To use the values assigned to variables, do the following:

Enter variables in the Command parameters in User Programs.

Use variables in Link Type expressions in Use Programs.

Use variables in the Expression (113) command in User Programs.

Use variables in the Program Triggers.

Examples:

1. If you create a variable called MySpeed, and enter it as the Speed command

parameter in several Move commands in a User Program, then you can easily change

the speed for all those commands at once by simply changing the value of the Speed

variable.

2. To count how many times an event occurs, you can add 1 to a variable each time the

event occurs.

Variable Locations—Using Variables with a PLC or other Host Controller

You can read or write to variables when communicating to the RMC with a PLC or other

host controller. See the Register Map topic to find the addresses of the variables. Notice

that each variable has two locations—one for the Current Value, and one for the Initial

Value.

Retained Variables

Retained means that the Current Value of the variable is automatically saved, or retained,

in non-volatile memory and will be preserved even when power is cycled to the RMC.

Retained variables are saved to non-volatile memory approximately every 100 msec.
Any variable can be set to be retained by checking the Retain cell in the Variable Table

Editor. A maximum of 986 variables can be retentive.
Variables that are not retained will not retain the Current Value. When power is cycled to

the RMC, the Current Value of non-retained variables will be set to the Initial Value.
Support for Retentive Variables
Retentive variables require firmware version 3.30.0 or newer and are supported on the

following hardware:
RMC75S: none
RMC75P: none
RMC75E: versions 1.4A and newer
RMC150E: versions 1.0A and newer
Boot-up Details

deltamotion.com

289

Advertising
This manual is related to the following products: