Parker Products OPS1200 user manual Sets up the keypad for subroutines, On Menu Goto

Page 24

ON MENU GOSUB (OPS1200 Display and Keyboard Only)

Sets up the keypad for subroutines

Format:

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

Group:

Character I/O

Units:

none

See also:

ON MENU GOTO

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 GOSUB 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 GOSUB command and setup.

Usage example:

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

20 ? ”FINISHED”

30 END

100 ? “100 OK”

110 RETURN

200 ? “200 OK”

210 RETURN

300 ? “300 OK”

310 RETURN

400 ? “400 OK”

410 RETURN

500 ? “500 OK”

510 RETURN

600 ? “600 OK”

610 RETURN

700 ? “700 OK”

710 RETURN

800 ? “800 OK”

810 RETURN

900 ? “900 OK”

910 RETURN

18

OPS1200 User’s Manual

Image 24
Contents OPS1200 User’s Manual This page intentionally left blank Change Notice OPS1200 User’s Manual Table of Contents Tables FiguresIntroduction 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 Open a devicePRINT, INPUT, Close Clear the LCD screen CLSOpen Contrast Sets up the display viewing contrastTimeout OPS1200 Display and Keyboard Only Sets up the character input timeout valueHpos Move the horizontal cursor positionVPOS, Open Vpos Move the vertical cursor positionHPOS, Open Sets up the keypad for subroutines On Menu GotoOn Menu Goto Sets up the keypad for Goto statementOn Menu Gosub This page intentionally left blank Chapter OPS1200 Hardware Interconnection OPS1200 Interconnect Wiring Encoder Inputs P1 Usage PinAnalog Inputs/Outputs P2 Definition PinDigital Inputs / Outputs P3 Communications P5 Power InputI/O PWR Input PWR InputPower Plug Power Input Power InputXP3-Digital Outputs Auxiliary Digital Inputs / Outputs XP3 / XP4XP4 -- Digital Inputs Digital Inputs / OutputsChapter OPS1200 Technical Specification Technical Specification Chapter OPS1200 Mechanical Drawings 10.3 Cutout Size 10.7 x