EasyManua.ls Logo

GSE 574 - Page 183

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...
Model 574 Programmable Counting System (PCS)
164 - GSE Scale Systems
Refer to the "Send control codes" %& command for
examples.
Send Control Codes: %&
This command allows a macro to send any character
value out either of the serial ports of the instrument. This
is intended to allow the sending of control codes (such as
form feed, carriage return, etc...) and extended ASCII
codes (>127). The port used is specified by the %"
command (see above). The decimal value of the
characters that must be transmitted should precede the %
& command. Multiple codes may be sent at once; the
decimal values must be separated by a comma. The
specified codes will be transmitted immediately exactly
as specified. Up to 49 characters may precede the %&
command. Multiple %& commands may be used if more
characters are required.
The valid decimal values which may precede this
command are from 0 to 255. Also, a value of 256 may
be used to cause both a carriage return and line feed to be
sent.
Examples:
1%%" Specify comm port.
27,74,18%& Send <ESC> <J> <18> to
advance paper 18/216".
(Epson command)
Hello 574 instrument.%$ Send text.
256,12%& Send <CR>, <LF>, and a
<FF>.
Selected Scale Number Command (%#):
When the Multi-Scale option is employed with the 574, it
is sometimes helpful if the macro can perform differently
depending on which scale is currently selected. The "%
#" macro command may be used either to append the
scale number to the entry buffer or to perform an IF
clause within a macro based on the currently selected
scale. The three possible implementations of this
command are described below:
A. Appending the Current Scale Number into the
Entry Buffer:
A1. Without an Entry in Process:
When the %# command is not preceded by an entry, the
currently selected scale number will be put into the entry
buffer. This could be used to store the current scale
number into a parameter in order to allow it to be printed.
For instance, the following example stores the current
scale number into Reg 1 (parameter 91).
802%s%c%e P802.16 Macro # 2
%%#%e 0001 scale #
;91%%C%e 0002 copy register
91%%s%e 0006 select
%%P%e 0009 pause
0%%s%e 0010 select
In the above example the %# is replaced by the current
scale number, ie 1, 2, 3, or 4. Then the next line of the
macro effectively becomes x;91%C, where x is the one
through four character. Thus the current scale number is
put into Reg 1.
A2. With an Entry in Process:
When the %# follows an entry, if the last character of the
entry is not the number one through four, then that last
character is deleted and replaced by the current scale
number. This can be useful in copying or adding the
current weight to a separate parameter for each scale,
such as in calculating separate total weights for each
connected scale. Refer to the following examples:
801%s%c%e P801.19 Macro # 1
0,8 %%#%e 0001 scale #
%%C%e 0006 copy register
8 %%#%e 0007 scale #
%%s%e 0010 select
%%P%e 0011 pause
0%%s%e 0012 select
800%s%c%e P800.14 Macro # 0
scale= # %%#%e 0001 scale #
!%%P%e 0011 pause
In these examples, since the character preceding the %#
command is a space (ie not 1 through 4) then the space is
replaced by the current scale number. In the first
example, this results in "0,8x%C" where the 'x' is the
number one through 4. Thus if scale one is selected, the
weight is copied to Var 1, scale 2's weight would be
copied to Var 2, etc...
B. Performing an IF Command based on
the Currently Selected Scale:
If the character preceding the %# command is the
number '1', '2', '3', or '4' then an IF command is
performed. If the currently selected scale's number
matches the number preceding the command, then the
subsequent commands are executed up to an ELSE

Table of Contents