Moog Animatics SmartMotor™ Developer's Guide,Rev. L
Page 197 of 909
VLD(variable,number)
Load Variables
Use the VLD command to load a series of variables starting at the pointer. In the "variable"
space of the command, put the name of the variable; in the "number" space, put the number
of sequential variables to be loaded. Enter a one if just the variable specified needs to be
loaded. Again, the actual sizes of the variables are recognized automatically.
Math Expressions
Variables can be used in mathematical expressions with: math operations, logical operations
and integer operations, as described in the following sections.
Math Operations
All variables can be used in mathematical expressions assuming standard hierarchical rules
and using any of the mathematical operations:
+ Addition
- Subtraction
* Multiplication
/ Division
Logical Operations
The previous mathematical operations can be combined with the following logical operations:
> Less than
< Greater than
== Equal to
!= Not equal to
<= Less than or equal to
>= Greater than or equal to
Integer Operations
The following integer operations are also supported:
^ Raise to an integer power <=4
& Bit wise AND (see ASCIICharacter Set on page 860)
| Bit wise OR (see ASCIICharacter Set on page 860)
!|
Bit wise exclusive OR (see ASCIICharacter Set on
page 860)
% Modulo
SQRT (x) Integer Square Root (x = integer, where x>=0)
ABS (x) Integer Absolute Value (x = integer)
Floating Point Functions
The following floating point functions are also supported:
Part 1: Programming: VLD(variable,number)