9 timed offset, 10 random offset, 11 goessetup() example – Campbell Scientific TX320 Transmitter User Manual

Page 36: 6 edlog programming, Timed offset, Random offset, Goessetup() example, Edlog programming

Advertising
background image

TX320 Transmitter

7.5.4.9 Timed Offset

Timed Offset is assigned by NESDIS and is a string variable in the format of
“hh_mm_ss”, where hh is hours and usually 00, mm is minutes, and ss is
seconds.

7.5.4.10

7.5.4.11

Random Offset

Random Offset is a string variable in the format of “hh_mm_ss” where hh and
ss are usually zero and mm is 30 or 45.

GOESSetup() Example

Public setup_RC, setup

Sub Gsetup

GOESSetup (setup_RC,&H12345677,10,195,300,0,100,"0_01_00_0" ,"0_16_20" ,"1_0_0" )
If setup_RC = 0 Then setup = false
EndSub


BeginProg
setup = true

Scan (10,Sec,0,0)
If setup Then Call Gsetup

NextScan
EndProg

7.6 Edlog Programming

This section only applies to the CR10(X), CR23X, and CR510 dataloggers.

The datalogger is used to measure and record data values. The TX320 is used
to transmit data over a GOES satellite to a ground receiving station. Program
Instruction 126 is used to send data from the datalogger to the TX320 satellite
transmitter. The TX320 has two data buffers. The data buffers will hold data
until it is time to transmit the data. Data in the self-timed buffer is erased after
transmission. Data in the random buffer will be erased after the preset number
of repetitions has been met. When properly configured, the TX320 will ensure
the data is transmitted on the correct channel, at the correct baud rate and at the
correct time without overrunning the transmit window.

The datalogger will interface with the TX320 under program control. Two
program instructions are used, P126 and P127. P126 is used to send data to a
buffer. New data is either added to existing data (append) or overwrites
existing data. In overwrite mode, all data in the buffer is erased before new
data is written. P127 is used to retrieve information from the TX320.
Information regarding GPS time, latitude and longitude can be retrieved and
stored in the datalogger. Information regarding the status and past errors can
also be retrieved.

Data that is sent to the self-timed buffer 60 seconds or more before transmit
time will be transmitted on the next scheduled transmission; otherwise, the data
will be scheduled for a later transmission.

26

Advertising