Specifications

Section 10. CRBASIC Programming Instructions
10-39
10.18 SCADA
Read more! See Sections 15.1 DNP3 and 15.2 Modbus.
ModBusMaster
Sets up a datalogger as a ModBus master to send or retrieve data from a
ModBus slave.
Syntax
ModBusMaster (ResultCode, ComPort, BaudRate, ModBusAddr,
Function, Variable, Start, Length, Tries, TimeOut)
ModBusSlave
Sets up a datalogger as a ModBus slave device.
Syntax
ModBusSlave (ComPort, BaudRate, ModBusAddr, DataVariable,
BooleanVariable)
DNP
Sets up a CR1000 as a DNP slave (outstation/server) device.
Syntax
DNP (ComPort, BaudRate, Addr)
DNPUpdate
Determines when the DNP slave will update arrays of DNP elements.
Specifies the address of the DNP master to send unsolicited responses.
Syntax
DNPUpdate(DNPAddr)
DNPVariable
Sets up the DNP implementation in a DNP slave CR1000.
Syntax
DNPVariable (Array, Swath, Object, Variation, Class, Flag, Event
Expression, Number of Events)
10.19 Calibration Functions
Calibrate
Used to force calibration of the analog channels under program control.
Syntax
Calibrate (Dest, Range) (parameters are optional)
FieldCal
Sets up the datalogger to perform a calibration on one or more variables in an
array.
Syntax
FieldCal (Function, MeasureVar, Reps, MultVar, OffsetVar, Mode,
KnownVar, Index, Avg)
SampleFieldCal
Stores the values in the FieldCal file to a data table.
Syntax
DataTable (TableName, NewFieldCal, Size)
SampleFieldCal
EndTable