User`s guide
MENU COMMANDS
Copyright © 2006, Cognitive. 117
Menu Programming
Menus generally conform to the following structure:
! 0 0 0 0
MENU CONTROL cn nx pr sl
MENU START x menuname
MENU ITEM "item1"
MENU ACTION command parameters
MENU ACTION command parameters
MENU EXIT
MENU ITEM "item2"
MENU ACTION command parameters
MENU ITEM "item3"
MENU ACTION command parameters
...
MENU END
END
MENU CONTROL is an optional command that defines the four keyboard
keys that scroll the menu, select menu items, and exit the menu. If
used, it must appear before the MENU START command. MENU START
signals the beginning of the menu, and MENU END signals the end of the
menu. All commands bounded by MENU START and MENU END define
menu prompts and actions.
MENU ACTIONs generally follow MENU ITEMs. If no MENU ITEMs are
present, the menu will simply execute the MENU ACTIONs in sequence
without input from the operator. The effect is similar to using a stored
label format.
MENU EXIT commands will terminate execution of the current menu, at
which time the printer will continue executing the remaining
commands in the label format that called the menu.
Menus cannot be nested within other menus, but they can call other
menus.
Menus are stored objects. They must be stored in memory before they
are called by the Recall Menu command. They follow all of the usual
rules for stored objects.