beautypg.com

Readio (dest, pslot, mask), Realtime(dest) – Campbell Scientific CR9000X Measurement and Control System User Manual

Page 379

background image

Section 9. Program Control Instructions

Parameter

Enter

POWERUP.INI FILE PARAMETERS

Command

Code
1

2

5
6

9

Action to be taken
Run Now and on Run Power-up. Unless CRD is specified for the
device, the file will be copied to the CPU and run from there.
Run on Power-up. Unless CRD is specified for the device, the file
will be copied to the CPU and run from there.
Format specified device
Run now. Unless CRD is specified for the device, the file will be
copied to the CPU and run from there.
Replace the current OS with the specified file. Prior to loading the
new OS file into Flash memory, the current OS signature will be
compared to the signature of the OS on the card. If they match, this
function will be aborted.

File

The file on the card associated with the action.

Device

The device to which the associated file will be copied to. If left blank, this
parameter will default to CPU.

Alpha

Code

CPU:

CRD:

Device Location
File will be written to the CPU Flash Memory with the run
attributes selected.
File will be compiled and ran from the Card.

ReadIO (Dest, PSlot, Mask)

ReadIO is used to read the status of selected digital I/O channels (ports) on the
CR9070/CR9071E Counter - Timer/Digital I/O Module. There are 16 ports
on the CR9070/CR9071E. The status of these ports is considered to be a
binary number with a high port (+3.5V to +5 V) signifying 1 and a low port (-
0.5V to +1.2 V) signifying 0.

See Section 7.6 Pulse/Timing/State for a complete description of this
instruction.

RealTime(Dest)

Used to read the year, month, day, hour, minute, second, day of week, and/or
day of year from the CR9000X clock.

Syntax
RealTime(
Dest)

Remarks

The RealTime instruction loads the destination array (Dest argument) with the
current time values from the datalogger clock in the following order: (1) year,
(2) month, (3) day of month, (4) hour of day, (5) minutes, (6) seconds, (7)
microseconds, (8) day of week (1-7; Sunday = 1), and (9) day of year. The
destination array must be dimensioned to 9. The time returned is the time of
the datalogger's clock at the beginning of the scan in which the RealTime
instruction occurs.

9-49