04.01.2015 Views

CR1000 Manual - Campbell Scientific

CR1000 Manual - Campbell Scientific

CR1000 Manual - Campbell Scientific

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Section 7. Installation<br />

Case Is < 121<br />

Month = 4<br />

Date = DOY + -90<br />

Case Is < 152<br />

Month = 5<br />

Date = DOY + -120<br />

Case Is < 182<br />

Month = 6<br />

Date = DOY + -151<br />

Case Is < 213<br />

Month = 7<br />

Date = DOY + -181<br />

Case Is < 244<br />

Month = 8<br />

Date = DOY + -212<br />

Case Is < 274<br />

Month = 9<br />

Date = DOY + -243<br />

Case Is < 305<br />

Month = 10<br />

Date = DOY + -273<br />

Case Is < 336<br />

Month = 11<br />

Date = DOY + -304<br />

Case Is < 366<br />

Month = 12<br />

Date = DOY + -334<br />

EndSelect<br />

EndIf<br />

EndSub<br />

'//////////////////////////// PROGRAM ////////////////////////////<br />

BeginProg<br />

StationID = 4771<br />

Scan(1,Sec, 3, 0)<br />

'/////////////////Measurement Section////////////////////////<br />

'PulseCount(KWH_In, 1, 1, 2, 0, 1, 0) 'Activate this line in working program<br />

KWH_In = 4.5<br />

'Simulation -- delete this line from working program<br />

'PulseCount(KVarH_I, 1, 2, 2, 0, 1, 0) 'Activate this line in working program<br />

KVarH_I = 2.3<br />

'Simulation -- delete this line from working program<br />

KWHH = KWH_In<br />

KvarH = KVarH_I<br />

KWHHold = KWHH + KWHHold<br />

KVarHold = KvarH + KVarHold<br />

CallTable OneMinTable<br />

'////////////////////Serial I/O Section/////////////////////<br />

SerialOpen(ComRS232,9600,0,0,10000)<br />

218

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!