Variables, Variables retentive variables, A variable – Delta RMC151 User Manual
Page 307: S variables, E variables
5 Programming
To change the default task, you can use the _Task[].CurAxis tag. The tag _CurAxis is
equivalent to _Task[].CurAxis, which references the current axis of the current task.
Example 1
"_Task[0].CurAxis := 2" will change the default axis of the task zero to Axis 2.
Example 2
"_Task[].CurAxis := 0" will change the default axis of the current task to Axis 2. The
current task is whatever task is running the user program.
5.4. Variables
This topic is about the Variable Table variables. For details on local variables in a user program
step, refer to Local Variables in Expressions. For details on local variables in a user functions,
refer to Declaring Variables in User Functions.
The RMC has 1024 registers that are specifically intended for user-defined variables. Variables
may be named by the user, and can be set to any value at any time. Variables make the User
Programs very flexible. They can be used to effortlessly change programs, make programs
readable, and easily influence User Programs via a PLC. Variables may be used in command
parameters, the Expression (113) command, and several Link Types.
Variables can be individually selected to be retentive, if supported by the RMC. The Current
Value of retentive variables will be retained between power cycles without requiring a Flash
update. This is useful for retaining data such as setpoint positions, machine cycle counters,
and recipe data.
Retentive variables are only available on the RMC75E (version 1.4A or newer) and the
RMC150E and require firmware 3.30.0 or newer.
PROFIBUS uses some of the variables for communications. PROFINET and EtherNet/IP may
also use some variables if configured to do so. Therefore, before using any variables, you may
first wish to determine which variables you will be using for the communciations to avoid
having to move variables later.
The Variable data types can be REAL, DINT, or DWORD. See the Boolean variables topic for
special instructions regarding how to create boolean variables. Arrays with indexed addressing
are also supported.
Example Variable Table:
The Edit tab is for creating variables. The Monitor tab is for monitoring and changing the
current value in real-time.
Column Details
Register
The address of the current value of the variable. This address is used for
accessing the current value of the variable externally, such as from a PLC.
For the address of the initial value, see the Register Map topic.
deltamotion.com
287