11 scada – Campbell Scientific CR200/CR200X-series Dataloggers User Manual
Page 119

Section 10. CRBASIC Programming Instructions
TableName.FieldName
Accesses a specific field from a record in a table
Syntax
TableName.FieldName (FieldNameIndex, RecordsBack)
TableName.Output
Determine if data was written to a specific DataTable the last time the
DataTable was called.
Syntax
TableName.Output (1,1)
TableName.Record
Determines the record number of a specific DataTable record.
Syntax
TableName.Record (1,n)
TableName.TableSize
Returns the number of records allocated for a data table
Syntax
TableName.TableSize (1,1)
TableName.TimeStamp
Returns the time into an interval or a timestamp for a record in a specific
DataTable.
Syntax
TableName.TimeStamp (m,n)
10.11 SCADA
Read More! See
Modbus
(p. 139).
Note: These instructions are supported only in a special operating system
version 'M' for CR200 series dataloggers. That operating system must be loaded
on the datalogger and the program compiled with the matching compiler to use
ModBusMaster and ModBusSlave. No special operating system is required for
CR200(X) series dataloggers.
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,
ModBusVariable, BooleanVariable, ByteOrder,
Offset)
107