User's Manual

CHAPTER 3
Operations at the Application Level
39
Frame Types
The information in this section is intended to programmers writing
their own routines to interface with the A840 Telemetry Gateway.
The A840/A440 combination can communicate with various types
of RTUs. The distinctive frame type of each RTU makes no differ-
ence to the application software on the A840. The software stores
the frame in the memory and retrieves it when needed—whatever
its length is. But it is important for the software on the host to cor-
rectly interpret the frames returned by the gateway.
The data is retrieved from the gateway
using the GETBLOCK command (see
page 29). All frames have certain com-
mon elements: the date/time, the num-
ber of following bytes (including the
frame type), the frame type, and the data
portion. Clearly, the only difference
between the various frames is the data
portion (the size and type are also differ-
ent from frame to frame). Following are
descriptions of the frames that are currently in use.
The A730MD frames
The A730MD uses frame type 9.
Type 9
SIZE 21 (including the type byte).
FORMAT struct tlg_type9 {
BYTE RF_LevelIn;
BYTE RF_LevelOut;
BYTE DigiByte;
BYTE PulseCounter0;
BYTE PulseCounter1;
BYTE BatteryLevel;
BYTE Analog1;
BYTE Analog2;
BYTE Analog3;
BYTE Analog4;
BYTE Analog5;