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.

Appendix A. CRBasic Programming Instructions<br />

A.19 Calibration Functions<br />

DNP<br />

Sets up a <strong>CR1000</strong> as a DNP slave (outstation/server) device. Third parameter is<br />

optional.<br />

Syntax<br />

DNP(ComPort, BaudRate, DisableLinkVerify)<br />

DNPUpdate<br />

Determines when the DNP slave will update arrays of DNP elements. Specifies<br />

the address of the DNP master to send unsolicited responses.<br />

Syntax<br />

DNPUpdate(DNPAddr)<br />

DNPVariable<br />

Sets up the DNP implementation in a DNP slave <strong>CR1000</strong>.<br />

Syntax<br />

DNPVariable(Array, Swath, Object, Variation, Class, Flag,<br />

Event Expression, Number of Events)<br />

ModBusMaster<br />

Sets up a datalogger as a ModBus master to send or retrieve data from a<br />

ModBus slave.<br />

Syntax<br />

ModBusMaster(ResultCode, ComPort, BaudRate, ModBusAddr,<br />

Function, Variable, Start, Length, Tries, TimeOut)<br />

ModBusSlave<br />

Sets up a datalogger as a ModBus slave device.<br />

Syntax<br />

ModBusSlave(ComPort, BaudRate, ModBusAddr, DataVariable,<br />

BooleanVariable)<br />

Calibrate<br />

Used to force calibration of the analog channels under program control.<br />

Syntax<br />

Calibrate(Dest, Range) (parameters are optional)<br />

FieldCal<br />

Sets up the datalogger to perform a calibration on one or more variables in an<br />

array.<br />

Syntax<br />

FieldCal(Function, MeasureVar, Reps, MultVar, OffsetVar,<br />

Mode, KnownVar, Index, Avg)<br />

FieldCalStrain<br />

Sets up the datalogger to perform a zero or shunt calibration for a strain<br />

measurement.<br />

Syntax<br />

FieldCalStrain(Function, MeasureVar, Reps, GFAdj, ZeromV/V,<br />

Mode, KnownRS, Index, Avg, GFRaw, uStrainDest)<br />

522

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

Saved successfully!

Ooh no, something went wrong!