GSE Scale Systems - 175
Chapter 16 Macro Programming Operations Technical Reference Manual
e) Press the <ID> or <TARE> keys to move
forward or backward respectively within the
history buffer. If the end of the buffer is
reached, the display will show "ENDof
TABLE". Pressing the <ID> key will go to the
last character of the history buffer while
pressing <TARE> will move to the first
character in the history buffer.
f) A numeric value may precede the <ID> or
<TARE> keys to move multiple steps in their
respective directions. A decimal point
preceding either the <ID> or <TARE> keys
will move forward or backward one loop in the
history buffer.
g) The amount of history recorded depends on the
amount of available RAM. As mentioned
previously, if the GSE database option is
installed then 8K of the database RAM may be
allocated for general use. If this is done then
ten times the amount of macro history is
recorded. Refer to the database option manual
for further details.
h) Pressing the <PRINT> key will print out the
history buffer. The prompt "1 for Comm", "2
for Prntr" will appear next. Press <1> or <2>
accordingly. If the currently displayed location
is the last item in the history buffer, then the
entire history buffer is printed. Otherwise the
buffer is printed from the currently displayed
location to the end of the buffer.
i) If desired, the history buffer may be cleared out
be pressing the <CLR> key from within the
Macro Debug mode. This may be useful if a
new macro is about to be tested.
16.15 Macro Download
The setup download for macros includes a counter which
indicates the relative offset of each line from the
beginning of the macro. It is transmitted preceding the
comments for each line. This counter has been added to
assist in finding the exact location to which the macro
debug listing is referring. Refer to the following excerpt
as an example. (This macro is designed to be called as a
subroutine to check for the operator keying the proper
code before proceeding. If the incorrect code is keyed,
the operator is allowed two more attempts.)
815%s%c%e P815.66 Macro #15
3;93%%C%e 0001 copy register
%%T%e 0006 tag position
EnterCode:%%G%e 0007 get operator entry
;26%%C%e 0018 copy register
91823;26%%-%e 0022 subtract
%%N%e 0031 if not
WrongCODE!%%P%e 0032 pause
1;93%%-%e 0043 subtract
3%%R%e 0048 if register not zero
%%J%e 0050 jump to tag
%%N%e 0051 if not
%%B%e 0052 break
%%E%e 0053 end if
16.16 Miscellaneous Database Applications
Notes
The items listed below regarding the database operations
may not be of interest unless you have already used the
database for applications.
1. Recalls are allowed on a column of time/date
type, ie parameters 50 through 54. This will
allow the P50 - P54 alarm paramters to be more
easily used for general purpose numeric needs.
2. When the recalled time/date and alarm
paramters (P50 - P54) are used in a database, the
format for printing these parameters is based on
the setup selection P511 through P515. This
allows a printout of stored time/date type parameters to
print only time, only date, time and date both, or
simply a number. Also the default headings of
these columns of a printout are specific to be
"Time" or "Date" when appropriate.
Also, the settings for setup parameters P503 for
12/24 hour format and P510 for USA/Int'l date
format will have their appropriate effects on the
printed out database if the parameters have been
set to time and/or date.
3. The string "ENDofDB" <CR> will define the
end of a database. This must occur at the
begining of a row and terminated by a <CR>.
It does not need to be enclosed in quotes.
Accordingly, the database download command
has an additional option. Pressing [3] or [4]
will cause a pre-amble to be sent which selects
the proper database and then the upload
command. Also, the downloaded data is
followed by the string "ENDofDB". These
SECTION - 16.13