EasyManua.ls Logo

GSE 574 - Page 185

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)
166 - GSE Scale Systems
The %( command works on both the keypad (which takes
precedence) and the serial port, either one of which may
be disabled with "%!". Therefore if required a specific
character may be checked for on a specific input source.
(The following example utilizing remote key inputs is
not valid on the 574) Previously, the 550's remote keys
could only be used to invoke a macro. However with the
advent of this feature, remote keys may be used for
operator input within a macro. The decimal value to be
used to check for the remote keys is 176 through 181, as
shown in Table 27, Macro Call commands.
Refer to the following example which is based on having
a remote switch connected to J6 pins 1 & 3 (code 176)
labeled "YES" and another switch wired to pins 2 & 4
(code 180) labeled "NO". Remote key commands are
not valid on the 574.
%T Tag this position.
Batch NOW?%I Prompt and perform weight
conversion process.
%( IF input...
%N otherwise...
%J Jump to tag.
%E ENDIF
176%( IF "YES" remote key pressed...
%) clear keypress.
1%A acitvate setpoint 1.
2%^ goto macro 2 to complete process.
%N otherwise...
180%( IF "NO" remote key pressed...
%) clear keypress.
%3 call macro 3 for report printout.
%N otherwise...
%) clear keypress.
%E ENDIF
%J Jump to tag.
To calculate values for front panel keys or extended
ASCII commands, add 128 to the decimal value.
Lower case “c” has a decimal value of 99. The front
panel clear command is “%c”. This is an extended
ASCII command of lower case “c”. The value 128 is
added to 99 for a sum of 227. This is the value that is
prepended to the %( command if the <CLR> key press is
being looked for while a macro is running.
227%( IF <CLR> is pressed.
Determine “IF” a character entered is above or below
a certain value.
The capability of the %( command has been further
expanded.
1. To determine whether an entered character is at
or above a certain
character value, perform the following version
of the "IF INPUT" command:
xxx>%( where xxx is the decimal value of the
character being compared against.
2. Similarly, to determine whether an entered
character is at or below a certain character
value, perform the following version of the "IF
INPUT" command:
xxx<%( where xxx is the decimal value of the
character being compared against.
3. Finally, to append the next entered character to
an existing entry, bring up the existing entry
(using either a %C or %]) and follow it with a
"G" then %(. The "G" will be replaced by the
entered character. The entry can then be saved
or copied as required:
%] get previous entry
G%( append next character
%[ save as new entry
Example:
determine if the next operator input character is between
0 and 9:
%%[%e clear saved entry.
%%T%e
EnterP/N:%%I%e prompt operator for entry
%%(%e if an entry has been made...
%%N%e
%%J%e
%%E%e
2%%T%e
%%(%e if an entry has been made...
48>%%(%e if character is greater than or
equal to the number "0".
57<%%(%e if character is less than or
equal to the number "9".
%%]%e retrieve entry thus far
G%%(%e get next character and append
to entry...
%%[%e save new entry

Table of Contents