Section 8. Processing and Math Instructions
8-14
Move
Moves a block or fills an array.
Syntax
Move(
Dest, Reps, Source, Reps
)
Remarks
Block Move or fill array.
Parameters: Dest array, destination reps; Source array or expression; Source reps.
If source reps is less than destination reps, the remainder of destination is filled
with that last value of source.
Parameter
& Data Type
Enter
Move Parameters
Dest
Variable or
Array
The variable in which to store the results of the instruction.
Reps
Constant
The number of repetitions for the measurement or instruction.
Source
Array
The name of the variable array that is the input for the instruction.
Reps
Constant
The number of repetitions for the measurement or instruction.
Move Function Example
The example uses the Move function.
Move(
x, 20, y, 20
)
'move array y into array x
Move(
x, 20, 0.0, 1
)
'fill x with 0.0.
NOT
The NOT function is used to perform a bit-wise negation on a number.
Syntax
result = NOT (number)
The NOT operator inverts the bit values of any variable and sets the
corresponding bit in result according to the following truth table:
If bit is
The result is
0 1
1 0
Although NOT is a bit wise operator, it is often used to test Boolean
(True/False) conditions. The CR200 decides if something is true or false on the
criteria that 0 is false and any non-zero number is true (Section 4.5). Because
NOT is a bit wise operation, the only non-zero number that NOT can operate
on and return 0 is –1. The binary representation of –1 has all bits equal 1. That
is why the pre defined constant, True = -1.
The predefined constant True = -1
The predefined constant False = 0
Содержание CR9000
Страница 6: ...CR9000 Table of Contents iv This is a blank page ...
Страница 22: ...CR9000 Overview OV 16 This is a blank page ...
Страница 26: ...Section 1 Installation 1 4 CR9000 FIGURE 1 1 3 CR9000 Battery Pack ...
Страница 72: ...Section 3 CR9000 Measurement Details 3 28 This is a blank page ...
Страница 88: ...Section 5 Program Declarations 5 6 This is a blank page ...
Страница 217: ...This is a blank page ...