beautypg.com

Campbell Scientific CR7 Measurement and Control System User Manual

Page 98

background image

SECTION 9. INPUT/OUTPUT INSTRUCTIONS

9-8

*** 18 MOVE TIME TO INPUT LOCATION ***

FUNCTION
This instruction takes the current time in tenths
of seconds into the minute, minutes into the
day, or hours into the year and does a modulo
divide (see Instruction 46) on the time value
with the number specified in the second
parameter. The result is stored in the specified
input location. Entering 0 or a number which is
greater than the maximum value of the time for
the modulo divide will result in the actual time
value being stored.

PARAMETER 1 OPTION CODES

CODE TIME UNITS

0

Tenths of seconds into minute
(maximum 600)

1

Minutes into current day (maximum
1440)

2

Hours into current year (maximum
8784)

PAR.

DATA

NO.

TYPE

DESCRIPTION

01:

2

Option Code (see above)

02:

4

Number to modulo divide by

03:

4

Input location number

Input locations altered: 1

*** 19 MOVE SIGNATURE INTO ***

INPUT LOCATION

FUNCTION
This instruction stores the signature of the Read
Only Memory (ROM) and user program memory
(RAM) into an input location. This signature is
not the same as the signatures given in the *B
mode. Recording the signature allows detection
of any program change or ROM failure.

PAR.

DATA

NO.

TYPE

DESCRIPTION

01:

4

Input location number

Input locations altered: 1

*** 20 PORT SET ***

FUNCTION
This instruction sets a specified Digital Control
output port or is used to set the active excitation
card for port commands with Program Control
Instructions or manual toggling (Section 1.3.3).
Ports may be set as specified by a flag or
unconditionally.

PARAMETER 1 OPTION CODES

Code

Function

00

Set port low

01

Set port high

1X

Set port according to flag X

2X

Set opposite to flag X

30

Set active port card

PAR.

DATA

NO.

TYPE

DESCRIPTION

01:

2

Option code (see above)

02:

2

Excitation card number

03:

2

Port number (1-8)

Input locations altered: 0

*** 21 ANALOG OUTPUT ***

FUNCTION
This instruction sets the continuous Analog
Output (CAO) to a voltage level specified in an
input location. The analog output degrades
approximately 0.17mV every seven seconds
requiring the instruction to be periodically
repeated to maintain a given output accuracy.

PAR.

DATA

NO.

TYPE

DESCRIPTION

01:

2

Excitation card number

02:

2

CAO channel number

03:

4

Input location number
containing analog output
magnitude in millivolts

Input locations altered: 0
Input locations read: 1