GOESTable (Format Output to GOES)

The GOESTable and GOESField instructions are used within in a DataTable/EndTable declaration to format data output to a TX325 GOES satellite data transmitter. When a table containing GOESTable and GOESField stores a new record, then the datalogger will send the specified data to the satellite transceiver.

Syntax

GOESTable (Result, Comport, Model, BufferControl, Fields_Scan_Order, Newest_First, Format)

Remarks

The GOESTable instruction resides within the data table declaration.

NOTE: There can only be one GOESTable() instruction per self-timed or random table.

The following Closedtable provides the maximum data bytes for an assigned time slot duration. Note that if transmitted output is configured (via GOESField instructions) to have a size near to or exceeding the specified limits, there will be automatic truncation of the outputs that get transmitted.

Parameters

Result

The Result parameter is a string variable that holds either the data to be output in its specified format or a message indicating there are no data to output to the transmitter. If the Result parameter is used to view data that is output to the transmitter, then the string variable must be sized large enough to accommodate the data to be viewed. Following is a list of example messages that may be returned when there are no data output to the transmitter:

Examples of messages when there is no data output to the transmitter:

Type: Variable of type string

ComPort (Communication Port)

The ComPort parameter specifies the communication port that will be used for outputting data. When communicating over TCP/IP, use the variable returned by the TCPOpen function as the ComPort for GOESTable. If the PakBusTCPServer setting is being used rather than TCPOpen, use the Route instruction for the ComPort parameter.

Alphanumeric Description
ComRS232 RS232 port of the datalogger
ComC1 Datalogger control terminals 1 & 2
ComC3 Datalogger control terminals 3 & 4
ComU1 Universal terminal pair U1 (TX) & U2 (RX)
ComU3 Universal terminal pair U3 (TX) & U4 (RX)
ComU5 Universal terminal pair U5 (TX) & U6 (RX)
ComU7 Universal terminal pair U7 (TX) & U8 (RX)
ComU9 Universal terminal pair U9 (TX) & U10 (RX)
ComU11 Universal terminal pair U11 (TX) & U12 (RX)
COMSDC7 Datalogger CS I/O port; SDC7
COMSDC8 Datalogger CS I/O port; SDC8
COMSDC10 Datalogger CS I/O port; SDC10
COMSDC11 Datalogger CS I/O port; SDC11

NOTE: When using an SDC comport, an SC105 with a female-to-female null modem cable should be used. The SC105 baud rates for both the CS I/O and RS-232 ports should be set to 9600 baud.

Type: Constant or Variable

Model

The Model parameter indicates the model of satellite data transmitter to be used. Or, entering 0  for the model parameter specifies a “No Connection” protocol that may be used for a TCP/IP connection or to test output formats with no transmitter connected.

Code Description
0 No Connection Protocol
2 COM9602 (Irridium)
3 TX325/TX326

Type: Constant

BufferControl (Buffer to Use)

BufferControl is a ClosedBoolean Data type used to represent conditions or hardware that have only two states (true or false) such as flags and control ports. parameter (0 or non-zero) that specifies which buffer in the transmitter to write to. The parameter may be a constant or a variable expression. If the parameter is a constant, then 0 specifies a self-timed buffer and 1 or non-zero specifies write to the random buffer. If outputting to the self-timed buffer, output is controlled by whether there is a new record or not. To conditionally output to the random buffer, specify the Buffer Control parameter as a variable expression. When the expression evaluates as True (non-zero), output is written to the random buffer. False (0) means do not output.

NOTE: The Self-Timed Interval must be at least 5 minutes greater than the Random Interval. Setting the Self-Timed Interval smaller than the Random Interval is atypical, but if done will result in a timing conflict between the two tasks.

Parameter Type Value Function
Constant 0 Write to self-timed buffer when new record occurs
Constant 1 (non-zero) Write to random buffer when new record occurs
Variable Expression True (non-zero) Output right now to random buffer
Variable Expression False (0) No output

Type: Constant (always write to either buffer) or Variable as Boolean (conditionally output to random buffer)

Fields_Scan_Order (Output Table Order)

This a ClosedBoolean Data type used to represent conditions or hardware that have only two states (true or false) such as flags and control ports. parameter that determines how the output table is ordered.

Code Description
False Output each record (scan) along the row of the output table
True Output each field along the row of the output table

Type: Constant or Variable as Boolean

Newest_First (Output Order)

This a ClosedBoolean Data type used to represent conditions or hardware that have only two states (true or false) such as flags and control ports. parameter that determines whether the newest or oldest data are output first.

Code Description
False Output oldest data first
True Output newest data first

Type: Constant or Variable as Boolean

Format

The Format parameter is used to define the format of the data sent to the transmitter. A numeric value is entered:

Code Description
0 Campbell Scientific ClosedFP2 Two-byte floating-point data type. Default datalogger data type for stored data. While IEEE four-byte floating point is used for variables and internal calculations, FP2 is adequate for most stored data. FP2 provides three or four significant digits of resolution, and requires half the memory as IEEE4. data; 3 bytes per data point
1 Campbell Scientific ClosedFP2 Two-byte floating-point data type. Default datalogger data type for stored data. While IEEE four-byte floating point is used for variables and internal calculations, FP2 is adequate for most stored data. FP2 provides three or four significant digits of resolution, and requires half the memory as IEEE4. data; 7 bytes per data point (ASCII)
2 ASCII table space
3 ASCII comma
4 Pseudo-binary (PB)
6 Line SHEF (Standard Hydrological Exchange Format)

Type: Variable or Constant

Related Topics Link IconRelated Topics