GSE 60 SERIES Technical Reference Manual page 353

Programmable process controllers
Table of Contents

Advertisement

Example:
Getting a Numeric Operator Entry
80.2P=0%o
clear target value
tag position
%T
get entry
EnterTargt%n
if no entry...
%\
prompt
Must Enter%P
%J
jump to tag
else
%N
=80.2P%o
save entry
end if
%E
G
N
%n
ET
UMERIC
Syntax
Get Numeric Entry
[ prompt ] [ ,* ] %n
Arguments
prompt
Text to be displayed as an entry prompt on the 2X5
character matrix of the 7-segment VFD.
*
Entered characters will be displayed as an asterisks '*'.
Notes
Limit the prompt to 10 characters. If more than 10
characters are specified, only the last 10 will be used.
The first 5 characters of the prompt are displayed on the
top line of the 2X5 matrix, the last 5 characters on the
bottom line.
See Also
%G Get Entry
%K Get Entry from 4X20 VFD
%\
If No Entry
%[
Save Entry Buffer
%o
Math Assignment
Get Numeric Entry
[ prompt ] [ ,* ] %n
Accepts operator numeric-only input. When this command is executed,
the macro is suspended until the entry is completed by pressing [ENTER].
The optional prompt will be displayed until the first entry character is
received. The %n command will accept an entry from the front panel
keypad or any enabled comm port. Numbers remain in the entry buffer
until [ENTER] is pressed or a carriage return <CR> is received on one of
the comm ports, allowing the next macro command to retrieve and/or store
the entry. Press [CLR] to clear the entire entry from the entry buffer,
display the optional prompt, and restart the entry process.
Use of the asterisks '*' argument will cause each entered character to
appear as an asterisks on the display. This provides a means of adding
security to a user entry such as a password. Note that the asterisks
characters only appear during the entry. When [ENTER] is pressed to
complete the entry, the entered characters are put into the entry buffer and
become visible on the display. Be sure to copy the entry to a variable or
other parameter immediately after the entry is complete to prevent this
from happening.
KeyInTargt%n
Prompts for target entry and stores entry in
VAR#11.
=80.11P%o
11%i
Simulates a manual entry into VAR#11. Here,
VAR#11 is selected as the current mode, using the
%n
variable's name as the prompt. Use this method
when entering time/date values or scale-specific
E
NTRY
60 Series Technical Reference Manual
Macros 9-105

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents