Section 10. processing instructions – Campbell Scientific CR7 Measurement and Control System User Manual
Page 103
10-1
SECTION 10. PROCESSING INSTRUCTIONS
To facilitate cross referencing, parameter
descriptions are keyed [] to the values given on
the PROMPT SHEET. These values are
defined as follows:
[Z] = User specified input location number
destination
[X] = Input location no. of source X
[Y] = Input location no. of source Y
[F] = Fixed data (user specified, entered via the
keyboard)
*** 30 LOAD FIXED DATA, Z = F ***
FUNCTION
Store a fixed value into input location Z.
PAR. DATA
NO.
TYPE
DESCRIPTION
01:
FP
Fixed data
[F]
02:
4
Destination for input location
[Z]
Input locations altered: 1
*** 31 MOVE INPUT DATA, Z = X ***
FUNCTION
Move data from one input location to another.
PAR. DATA
NO.
TYPE
DESCRIPTION
01:
4
Input location of X
[X]
02:
4
Destination for input location
[Z]
Input locations altered: 1
*** 32 INCREMENT INPUT LOCATION, ***
Z = Z+1
FUNCTION
Add 1 to the current value in input location Z.
PAR. DATA
NO.
TYPE
DESCRIPTION
01:
4
Destination for input location
[Z]
Input locations altered: 1
*** 33 X + Y ***
FUNCTION
Add the value in Input location X to the value in
location Y and place the result in location Z.
PAR. DATA
NO.
TYPE
DESCRIPTION
01:
4
Input location of X
[X]
02:
4
Input location of Y
[Y]
03:
4
Dest. input location of X + Y
[Z]
Input locations altered: 1
*** 34 X + F ***
FUNCTION
Add the fixed number F to the value in location
X and place the result in location Z.
PAR. DATA
NO.
TYPE
DESCRIPTION
01:
4
Input location of X
[X]
02:
FP
Value to add
[F]
03:
4
Dest. input location of X + F
[Z]
Input locations altered: 1
*** 35 X - Y ***
FUNCTION
Subtract the value in location Y from the value
in location X and place the result in location Z.
PAR. DATA
NO.
TYPE
DESCRIPTION
01:
4
Input location of X
[X]
02:
4
Input location of Y
[Y]
03:
4
Dest. input location for X - Y
[Z]
Input locations altered: 1