6.4.1 input

Description

Use the input statement to enter a string as a keystroke of the Teach Pendant and store it in a variable. If not entered by the timeout, proceed to the following statement or branch to the timeout address.

Syntax

input <variable>[,<timeout>,<timeout address>]

Parameter

Parameter

Description

Remarks

variable

Variable to receive input. Numbers are also entered as string types. If numerical values are required, convert to int( ) or double( ) functions.

timeout

Maximum time limit

0.1~60.0 sec

timeout address

Address to branch when timeout is exceeded

address

Example

input work_no
input work_no,10
input work_no,10,*timeout

Last updated

Was this helpful?