Built-in Variables

Built-ins are variables and parameters that are dedicated to well defined aspects of the TRACE observations. These include things like the location of the IMAX, the indicator that a flare event has happened, or the number of flare buffers available. Some built-ins are values returned from the DHC. Built-in variables are listed in Table 1 and defined in the paragraphs that follow. The built-ins occupy sequencer registers 27-47. The first 3 built-ins have no special meaning to the sequencer per se. These are used by convention to signify specific orbital events. A sequence may use these flag as it would any other variables to control flow.

NameRegisterDescription
$SAA27South Atlantic Anomaly
$HLF28High Latitude Flag
$AAZ29Atmospheric Absorption Zone

30Spare
$MMS31Mass Memory Status
$FEF32Flare Event Flag
$SEF33Super Event Flag
$TEF34Transient Event Flag
$NBF35Number of Buffers
$CBF36Current Buffer
$TRC37Target Class
$MXR38IMAX Row Number
$MXC39IMAX Column number
$MXV40IMAX Value
$MNR41IMIN Row Number
$MNC42IMIN Column number
$MNV43IMIN Value
$RTN44Sequence Exit Status
$PRI45Sequence Priority
$PND46Sequence Pending

47Spare
Table 1 Built-in Variables

South Atlantic Anomaly ($SAA)

By convention, this flag is set from the timeline at or before the spacecraft enters the SAA and cleared from the timeline upon exit from the SAA. The sequencer takes no specific action based on this flag, but rather, each sequence responds in whatever way is deemed appropriate for that sequence.

High Latitude Flag ($HLF)

By convention, this flag is set from the timeline at or before the spacecraft enters the High Latitude Zone and cleared from the timeline upon exit from that zone. The sequencer takes no specific action based on this flag, but rather, each sequence responds in whatever way is deemed appropriate for that sequence.

Atmospheric Absorption Zone ($AAZ)

By convention, this flag is set from the timeline at or before the spacecraft enters the Atmospheric Absorption Zone and cleared from the timeline upon exit from that zone. The sequencer takes no specific action based on this flag, but rather, each sequence responds in whatever way is deemed appropriate for that sequence

Spare Mass Memory Status ($MMS)

The format of $MMS is shown in Table 2. For each file, S[hort]1 - S[hort]4 and M[ain]F[ile], the DLE bits indicate the following:

D: Set if the file is currently being downlinked.

L: Set if the file is currently locked.

E: Set if the file is currently empty.

The last status bit S is set if any downlink is in progress and is a general indicator that the spacecraft is in a station contact. The information in $MMS is gleaned from the mass memory status command which the TRACE instrument receives from the SCS each 5 seconds.

Bits(r)151413121 1109876543210


MFStatusS4Status S3StatusS2StatusS1Status

SDLEDLEDLEDLE DLE
Table 2 Mass Memory Status Word

Flare Event Flag ($FEF)

$FEF is set if the flare criteria was satisfied by the most recent frame that requested a flare check. The flag is reset automatically the next time a flare check is requested and not satisfied.

Super Flare Event Flag ($SEF)

$SEF is set if the flare criteria was satisfied by the most recent frame that requested a super flare check. The flag is reset automatically the next time a super flare check is requested and not satisfied.

Transient Event Flag ($TEF)

$TEF is set if the transient criteria was satisfied by the most recent frame that requested a transient check. The flag is reset automatically the next time a transient check is requested and not satisfied.

Number of Buffers ($NBF)

$NBF contains the number of flare buffers that are currently unlocked. There are four flare buffers. The LOCKBUF instruction locks the current buffer then sets the current buffer to the next unlocked buffer. The CC unlocks each buffer when the memory status command from the spacecraft indicates that the buffer is empty and thus has been dumped.

Target Class ($TRC)

$TRC contains the two bit target class field from the current target.

Row Number Of IMAX ($MXR)

$MXR contains the row number of the most recent IMAX. If an event has occurred, it contains the row number of that of the event. $MXR is always set to the row number as read from amplifier A.

Column Number Of IMAX ($MXC)

$MXC contains the column number of the most recent IMAX. If an event has occurred, it contains the column number of that of the event. $MXC is always set to the column number as read from amplifier A.

Maximum Value ($MXV)

$MXV contains the number of counts in the most recent event or IMAX. The value has been adjusted so it represents counts per pixel. If the counts exceed that which can be expressed as a 16 bit number, $MXV is set to all 1's

Row Number Of IMIN ($MNR)

$MNR contains the row number of the most recent IMIN. $MNR is always set to the row number as read from amplifier A.

Column Number Of IMIN ($MNC)

$MNR contains the column number of the most recent IMIN. $MNC is always set to the column number as read from amplifier A.

Minimum Value ($MNV)

$MNV contains the number of counts in the most recent event or IMIN. The value has been adjusted so it represents counts per pixel.

Return Status ($RTN)

$RTN contains the value specified on the most recent EXIT instruction.

Priority ($PRI)

$PRI contains the priority flag. If the values is zero, the priority is low; otherwise, it is high. When a sequence is started by the new sequence command, $PRI contains the value of the priority parameter on that command.

Sequence Pending ($PND)

$PND indicates that a sequence is pending. This occurs if the current sequence is high priority and the new sequence command is low priority.

Repeat Count ($RPT)

$RPT contains the current value of the count used by the repeat instruction. $RPT counts up from 0.