6 - 7
6 DriveProgramming Commands
DriveProgramming User’s Manual (I622-E1)
6-3 Command List
6
Remainder for
division
<variable 1> : =
<variable 2/
constant>
mod
<variable 3/
constant>
Divides <variable
2/constant> by <vari-
able 3/constant> and
assigns the remainder
to <variable 1>.
Absolute value <variable 1> : = abs
<variable 2/
constant>
Assigns the absolute
value of <variable 2/con-
stant> to <variable 1>.
Logical operation
<variable 1> : =
<variable 2/
constant>
and
<variable 3/
constant>
Performs a logical
AND operation on
<variable 2/constant>
and <variable 3/con-
stant> and assigns the
result to <variable 1>.
<variable 1> : =
<variable 2/
constant>
or
<variable 3/
constant>
Performs a logical OR
operation on <variable
2/constant> and <vari-
able 3/constant> and
assigns the result to
<variable 1>.
<variable 1> : =
<variable 2/
constant>
xor
<variable 3/
constant>
Performs a logical
exclusive OR opera-
tion on <variable
2/constant> and <vari-
able 3/constant> and
assigns the result to
<variable 1>.
<variable 1> : = not
<variable 2/
constant>
Reverses the bit of
<variable 2/constant>
and assigns the result
to <variable 1>.
Increment and Decrement Commands
Command Argument 1 Argument 2 Argument 3 Argument 4 Argument 5 Description
Increment inc <variable> Adds 1 to <variable>.
Decrement Dec <variable> Subtracts 1 from
<variable>.
I/O control commands
Command Argument 1 Argument 2 Argument 3 Argument 4 Argument 5 Description
Input terminal
variable
assignment
<variable> : = X(i) Set current state of the
input terminal X(i) to
<variable>.
0 = off, 1 = on
<variable> : = Xw Set the current state of
the Xw to <variable> in
units of words.
Command Argument 1 Argument 2 Argument 3 Argument 4 Argument 5 Description