Parker Products OPS1200 On Menu Goto, Sets up the keypad for Goto statement, On Menu Gosub

Page 25

ON MENU GOTO

(OPS1200 Display and Keyboard Only)

Sets up the keypad for GOTO statement

Format:

ON MENU GOTO {list of 9 line numbers separated by commas}

Group:

Character I/O

 

Units:

none

 

See also:

ON MENU GOSUB

This command will automatically wait for the operator to press the function (F1 thru F9) or ABORT keys on the OPS1200 front panel. Then, depending on the key depressed, a GOTO will be done to the corresponding line number specified in the list of line numbers. If the ABORT key or any other key except F1 thru F9 is depressed, the control will transfer to the NEXT line in the program. Even if the user is only trying to sense 2 or 3 keys, he or she must specify the entire list of 9 line numbers.

This command will only work if the OPS: device has been opened using the OPEN command.

The following example shows a program using the ON MENU GOTO command and setup.

Usage example:

10 ON MENU GOTO (100,200,300,400,500,600,700,800,900)

20 ? “ABORT”

30 END

70 ? ”FINISHED”

80 GOTO 70

100 ? “100 OK”

110 GOTO 70

200 ? “200 OK”

210 GOTO 70

300 ? “300 OK”

310 GOTO 70

400 ? “400 OK”

410 GOTO 70

500 ? “500 OK”

510 GOTO 70

600 ? “600 OK”

610 GOTO 70

700 ? “700 OK”

710 GOTO 70

800 ? “800 OK”

810 GOTO 70

900 ? “900 OK”

910 GOTO 70

Chapter 2, OPS1200 Firmware Command Set

19

Image 25
Contents OPS1200 User’s Manual This page intentionally left blank Change Notice OPS1200 User’s Manual Table of Contents Figures TablesIntroduction This page intentionally left blank Chapter OPS1200 Display and Keyboard Display OPS1200 LCD Screen Worksheet OPS1200 Displayable Character Set on the LCD Screen Keyboard OPS1200 Keyboard KEY Codes This page intentionally left blank Chapter OPS1200 Firmware Command SET Open a device OpenPRINT, INPUT, Close CLS Clear the LCD screenOpen Sets up the display viewing contrast ContrastSets up the character input timeout value Timeout OPS1200 Display and Keyboard OnlyMove the horizontal cursor position HposVPOS, Open Move the vertical cursor position VposHPOS, Open On Menu Goto Sets up the keypad for subroutinesSets up the keypad for Goto statement On Menu GotoOn Menu Gosub This page intentionally left blank Chapter OPS1200 Hardware Interconnection OPS1200 Interconnect Wiring Usage Pin Encoder Inputs P1Definition Pin Analog Inputs/Outputs P2Digital Inputs / Outputs P3 Communications P5 PWR Input Power InputI/O PWR InputPower Input Power Input Power PlugAuxiliary Digital Inputs / Outputs XP3 / XP4 XP3-Digital OutputsDigital Inputs / Outputs XP4 -- Digital InputsChapter OPS1200 Technical Specification Technical Specification Chapter OPS1200 Mechanical Drawings 10.3 Cutout Size 10.7 x