Operators, E operators – Delta RMC151 User Manual
Page 350
RMC70/150 and RMCTools User Manual
5. All items of the array must have the same setting for the Retain column.
Before declaring an array, make sure there is room in the Variable Table for it. If the new
array will overwrite existing variables, RMCTools will warn you and ask whether to
continue or not.
If you plan on using a variable to index through the array, you should declare it also.
Make sure it is a DINT.
Monitoring Arrays
To monitor arrays or change the values of the elements from RMCTools, use the Monitor
tab of the Variable Table Editor as you would for any variable.
Array Functions
The following functions are intended for handling arrays:
•
Returns the number of elements in the Array.
For example:
LENGTH(MyArray)
•
Sets Len registers starting at the To address to the specified value (Val).
For example, in the array MyArray, to set elements 0-9 to 1:
FILL(MyArray[0],1,10)
5.13.7. Operators
This topic describes the operators available in the RMC expressions. For details on using the
operators, see the Assignment Expressions and Logical Expressions topics.
Operator Description
Operates on
these Data
Types
Notes
:=
Assigns the value of the
expression on the right-
hand side to the register
on the left-hand side.
Required in all
assignment expressions.
All Data Types
The assignment operator is
required in the Expression
command.
+
Addition
REAL, DINT
-
Subtraction
REAL, DINT
*
Multiplication
REAL, DINT
/
Division
REAL, DINT
MOD
Integer Modulo
DINT
(
Opening parenthesis.
All Data Types
The number of opening
parentheses must match the
number of closing
parentheses.
)
Closing parenthesis.
All Data Types
The number of opening
parentheses must match the
number of closing
330
Delta Computer Systems, Inc.