Installation guide

Programming Commands 131
NOT Boolean Operator
ACTION: The logical NOT operator is used in Boolean expressions.
PROGRAM SYNTAX: NOT expression
REMARKS: The NOT operator uses the truth table: The result is TRUE if the ex-
pression is FALSE.
expression condition result
TRUE FALSE
FALSE TRUE
EXAMPLES: DO
statements
WHILE NOT(DONE(axis))
The controller will continue to execute the loop until the axis is done
with the motion.
NVR Miscellaneous Command
ACTION: The NVR array is used for non-volatile variable storage.
PROGRAM SYNTAX: NVR(number)
NVR(number)=expression
REMARKS: The number is the NVR element number being addressed (1-2048). In
the MX2000-2-32, (1-32768) NVR elements can be stored.
The expression is the value that will be stored at the specified NVR
element.
The NVR array has 2048 elements (1-2048) and is accessible by all
program tasks.
To set the NVR element to a default setting use the Host Command
SNVR.
EXAMPLES: A=NVR(2)
Returns the NVR element 2 value to variable A.
NVR(2048)=10.5
Sets the NVR element 2048 to a value 0f 10.5.
NVR(3)=A
Sets the NVR element 3 to the value of variable A.