GSE 60 SERIES Technical Reference Manual page 371

Programmable process controllers
Table of Contents

Advertisement

Example:
Determining the Current Unit of
Measure
This example shows how you can use the
[PRINT] key to send a unique custom transmit
for each displayed unit of measure.
===================================
805%s10%e
Print Mc 10
MACRO #10 - PRINT PRESS
if current units = lb...
0?%u
1%Q
send transmit #1
else
%N
1?%u
if current units = kg...
send transmit #2
2%Q
end if
%E
Example:
Renaming Units for Prompting
10)00
kg
Gross
The display above could be used to show a bag
count in VAR#1 along with the gross weight.
================================
rename units
1,Bag#%u
80.1P%o%[
copy bag# to temp buffer
rename gross mode
0,%]%R
10)00
Bag#
00101
interrupted. Accessing the setup will not change a unit's
name.
If a unit's name exceeds 2 characters, the center-of-zero
indication will not appear.
If a unit's name exceeds 4 characters, the scale number
will not appear in the case of multiple scale operation.
See Also
%R Rename Mode
%`
Scale Select
%-
Perform Scale Specific Function
Units
[ unit#
] %u
1
Selects the displayed units of measure for the current scale. Omitting
unit#
toggles through the units specified in the setup mode at
1
P131àP134.
0%u
Selects the units assigned at P131 for the current scale.
1%u
Selects the units assigned at P132 for the current scale.
2%u
Selects the units assigned at P133 for the current scale.
3%u
Selects the units assigned at P134 for the current scale.
%u
Toggles to the next units assigned at P131àP134.
If Current Units
< unit#
> [ . scale# ] ?%u
2
Determine if a specific unit of measure is currently selected.
0?%u
Determines if "lb" is the current units for the current scale.
0.0?%u
Determines if "lb" is the current units for the current scale.
0.1?%u
Determines if "lb" is the current units for scale #1.
0.2?%u
Determines if "lb" is the current units for scale #2.
3.2?%u
Determines if "g" is the current units for scale #2.
Rename Units
< units#
> , < name > %u
2
Allows a unit's displayed name to be changed. Once changed, the new
name will be displayed every time the specified units are accessed.
Renaming the units in this manner allows you to use a unit's name to
display a prompt without suspending macro execution. The example –
Renaming Units for Prompting shows how to use the %u command along
60 Series Technical Reference Manual
Macros 9-123

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents