COM9602 Short Burst Data Modem
11
6.6 Programming
The program example and related Include file (i.e. COM9602
CR1000_Sub_str_Enc.CR1) are required to send data from a Campbell
Scientific datalogger via the COM9602 Short Burst Data modem.
Programming elements that require configuration:
•
Configure the “SBDComPort” Constant. This will tell the
datalogger which communication port to use. The default setting
is COM1. It is possible to use the RS-232 or CS I/O port; however,
once one of these ports is configured, it will affect the ability to
directly communicate with the datalogger.
•
Configure the “NumberDataTables” Constant to the number of
required data tables for the application. Typically for Short Burst
Data, hourly and daily data is preferred. This suggests 2 data
tables are sufficient.
•
Configure the “DataInterval” instruction for each data table.
•
Configure the “TableFile” instruction for each data table. Be sure
to select Binary (TOB1/Header/TimeStamp) data as part of the
configuration of the “TableFile” instruction.
It is recommended to use Binary outputs whenever possible to
reduce the data table size for a transmission and the related cost.
This feature is configured in the “TableFile” instruction for each
data table.
•
Configure a “CallTable” instruction for each data table that will be
transmitted via SBD.
•
Configure the Control port used for the COM9602 power control.
The default setting is C3. This configuration must be set in 5
separate instructions: “PortsConfig” and “WriteIO” (4).
Programming Notes:
•
Do not use a data table interval faster than 5 minutes. For
example, if you have 2 data tables, the minimum data interval
should be 10 minutes.
•
Be sure to maintain the slow sequence related to checking of new
data files.
The COM9602_Sub_str_Enc.CR1 include file is available from the
Campbell Scientific Canada ResourceDVD or for download from
http://www.campbellsci.ca/downloads
•
The program is configured to transmit data table definition
information once a new program starts.
•
Please reference literature related to integrated equipment for
programming details.
•
When building and testing an application program, be sure not to
transmit data via the COM9602 until finalized, as this will be
counted against your account.
Содержание COM9602
Страница 2: ......