beautypg.com

Campbell Scientific CR7 Measurement and Control System User Manual

Page 104

background image

SECTION 10. PROCESSING INSTRUCTIONS

10-2

*** 36 X * Y ***

FUNCTION
Multiply the value in location X by 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 for X * Y

[Z]

Input locations altered: 1

*** 37 X * F ***

FUNCTION
Multiply the value in location X by the fixed
number F and place the result in location Z.

PAR. DATA
NO.

TYPE

DESCRIPTION

01:

4

Input location of X

[X]

02:

FP

Fixed multiplier

[F]

03:

4

Dest. input location for X * F

[Z]

Input locations altered: 1

*** 38 X / Y ***

FUNCTION
Divide the value in location X by the value in
location Y and place the result in location Z.
Division by 0 will cause the result to be set to
the maximum CR7 number (+99999 if positive, -
99999 negative).

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

*** 39 SQUARE ROOT ***

FUNCTION
Take the square root of the value in location X
and place the result in location Z. If the value in
X is negative, 0 will be stored as the result.

PAR. DATA
NO.

TYPE

DESCRIPTION

01:

4

Input location of X

[X]

02:

4

Dest. input location for X

1/2

[Z]

Input locations altered: 1

*** 40 LN(X) ***

FUNCTION
Take the natural logarithm of the value in
location X and place the result in location Z. If
the value in X is 0 or negative, -99999 will be
stored as the result.

PAR. DATA
NO.

TYPE

DESCRIPTION

01:

4

Input location of X

[X]

02:

4

Dest. input location for LN(X) [Z]

Input locations altered: 1

*** 41 EXP(X) ***

FUNCTION
Raise the exponential base e to the value in
location X power and place the result in location
Z.

PAR. DATA
NO.

TYPE

DESCRIPTION

01:

4

Input location of X

[X]

02:

4

Dest. input location for EXP(X) [Z]

Input locations altered: 1

*** 42 1/X ***

FUNCTION
Take the inverse of the value in location X and
place the result in location Z. If X=0, 99999 will
be stored as the result.

PAR. DATA
NO.

TYPE

DESCRIPTION

01:

4

Input location of X

[X]

02:

4

Dest. input location for 1/X

[Z]

Input locations altered: 1