EasyManua.ls Logo

GSE 574 - Page 182

Default Icon
339 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
GSE Scale Systems - 163
Chapter 16 Macro Programming Operations Technical Reference Manual
1%A ACTIVATE setpoint 1.
%E END of IF statement (the next
command is where macro
execution would resume if
setpoint 1 was active)
n%^ GOTO macro n where n can be 0 - 9 or :, ;, <,
=, >, or ? for macros 0 - 15 respectively
The GOTO command is most often used when one runs
out of room in a macro and it becomes necessary to
branch to another macro. Using this method of executing
another macro (as opposed to the %X method) prevent
the possibility of overflowing the macro stack.
For certain special applications, the GOTO command
provides another valuable capability. That is having the
correct macro number to be executed be a calculated
number. This can be accomplished by performing a
calculation and then copy the result into the entry buffer
and follow that with the %^ command. Refer to the
following example where each time macro 11 is invoked,
Reg #1 is decremented and the resultant macro is called.
This could be implemented into a multi-step process
where macro execution stops in between the steps.
Example:
91%s Select Reg 1 as the current parameter.
%i Decrement Reg 1.
0%s Select the gross as the current mode.
91%R IF register is not = 0...
91%C Copy the value of Reg 1 to the entry
buffer.
%^ GOTO the macro specified by the
value of Reg1.
%N ELSE
91%s Select Reg 1 as the current parameter.
10%e Reset macro GOTO counter to 10 for
next time.
0%s Select the gross as the current mode.
0%^ GOTO macro 0.
%[ SAVE current ENTRY
%] RETRIEVE saved ENTRY
The SAVE ENTRY command can be useful in many
situations. It is most often used in conjunction with the
%G command. For instance, when the Gross weight
must be displayed while an operator is prompted to key
in a value which is be stored in a Var, the SAVE ENTRY
command can be used to temporarily save the entry while
the proper mode is selected to store the value away. In
order for the %[ command to have any benefit it must be
followed at some time by the RETRIEVE ENTRY
command, %]. This command will append its
information to any entry currently in the buffer.
This command when used without an entry preceeding it
does not clear out the saved entry. This was the case in
previous versions of eproms prior to 031594.
Example:
0%s Select the Gross mode as the current
mode.
KeyinTargt%G Prompt operator for target weight.
%[ SAVE the operator ENTRY.
80%s Select Var #0 as the current mode.
%] Retrieve the entry saved previously.
%e Store the retrieved into Var #0.
Specify Port: %"
The RS-232 port used by the %$ command is specified
with this command. The format is:
1%" specifies the comm port.
2%" specifies the print port.
After the x%" command has been issued, that port will
remain in effect for all subsequent uses of the %$ and %/
& commands until either the instrument is reset (by
power-down or exiting the setup mode) or the %"
command is issued again. The handshaking and protocol
specified in the setup modes for the specified port will be
used.
When the instrument re-initializes, the port which would
be used by the %$ and the %& commands defaults to
that specified by P211 of the setup mode.
Refer to the "Send control codes" %& command for
examples.
Send Entry: %$
This command allows a macro to send ASCII text out
either of the serial ports of the instrument. The port used
is specified by the %" command (see above). The text
preceding the %$ command is transmitted immediately
without any terminating characters. Up to 49 characters
may precede the %$ command. Multiple %$ commands
may be used if more characters are required.
SECTION - 16.8

Table of Contents