Parker Products user manual Timeout OPS1200 Display and Keyboard Only

Page 21

TIMEOUT (OPS1200 Display and Keyboard Only)

Sets up the character input timeout value

Format: TIMEOUT #device,{value}

Group: Character I/O

Units: none

See also: INPUT, OPEN

This command sets up a timeout value to be used by the “INPUT” and “ON MENU” commands, in case no character is input within a specified period of time. The value is in 0.1-second increments. This command also flushes the input buffer of the device selected. The INPUT statement returns an error code of 34 if the timeout has expired. The INPUT statement also zeroes out the TIMEOUT value after using regardless if a timeout has occurred or not.

Therefore, if a timeout is needed on successive occasions, the TIMEOUT command must be used to set the timeout before the INPUT command.

The following example sets the input timeout value to 1 second for device #1:

Usage example:

TIMEOUT #1,10

Chapter 2, OPS1200 Firmware Command Set

15

Image 21
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 Open a devicePRINT, INPUT, Close Clear the LCD screen CLSOpen Sets up the display viewing contrast ContrastSets up the character input timeout value Timeout OPS1200 Display and Keyboard OnlyHpos Move the horizontal cursor positionVPOS, Open Vpos Move the vertical cursor positionHPOS, Open On Menu Goto Sets up the keypad for subroutinesOn Menu Goto Sets up the keypad for Goto statementOn 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