![background image](http://html.mh-extra.com/html/omron/scara-yrcx-series/scara-yrcx-series_programming-manual_1633413169.webp)
A
B
C
D
E
F
G
H
I
J
K
L
M
8
INPUT 8-77
48
INPUT
Assigns a value to a variable specified from the programming box
Format
INPUT prompt statement
; variable
, variable
,...
, point variable point variable
shift variable shift variable
Explanation
Assigns a value to the variable specified from the programming box.
The input definitions are as follows:
1. When two or more variables are specified by separating them with a comma ( , ),
the specified input data items must also be separated with a comma ( , ).
2. At the <
prompt statement
>, enter a character string enclosed in double quotation
marks ( " ) that will appear as a message requiring data input. When a semicolon (
; ) is entered following the <
prompt statement
>, a question mark ( ? ) and a space
will appear at the end of the message. When a comma ( , ) is entered, nothing will
be displayed following the message.
3. When the <
prompt statement
> is omitted, only a question mark ( ? ) and a space
will be displayed.
4. The input data type must match the type of the corresponding variables. When
data is input to a point variable or shift variable, insufficient elements are set to
"0".
5. If only the ENTER key is pressed without making any entry, the program interprets
this as a "0" or "null string" input. However, if specifying two or more variables, a
comma ( , ) must be used to separate them.
6. If the specified variable is a character type and a significant space is to be entered
before and after a comma ( , ), double quotation mark ( " ) or character string, the
character string must be enclosed in double quotation marks ( " ). Note that in this
case, you must enter two double quotation marks in succession so that they will
be identified as a double quotation mark input.
Input
Contents of A$
ABC
ABC
(space)ABC(space) ABC: space is not entered before and after ABC
" ABC "
ABC : space is entered before and after ABC
ABC,XYZ
ABC is entered, and XYZ is entered when the next INPUT
statement is executed.
"ABC,XYZ"
ABC,XYZ
"""ABC"""
"ABC"
7. Pressing the ESC key skips this command.
• If the variable and the value to be assigned are different types, the specified message displays,
and a “waiting for input” status is established.
• When assigning alphanumeric characters to a character variable, it is not necessary to enclose
the character string in double quotation marks ( " ).
• When using INPUT statement, the value is assigned to the variable from the channel specified
in cotroller parameter "INPUT/PRINT using channel".
MEMO
Summary of Contents for SCARA YRCX Series
Page 1: ... 7 6HULHV DW 1R 1 5 5RERW RQWUROOHU 352 5 00 1 0 18 6 5 5RERWV 5 6HULHV ...
Page 2: ......
Page 20: ......
Page 26: ......
Page 27: ...Chapter 2 Constants 1 1 Outline 2 1 2 2 Numeric constants 2 1 3 3 Character constants 2 2 ...
Page 28: ......
Page 32: ......
Page 52: ......
Page 54: ......
Page 61: ...Chapter 5 Multiple Robot Control 1 1 Overview 5 1 2 2 Command list with a robot setting 5 2 ...
Page 62: ......
Page 66: ......
Page 76: ......
Page 78: ......
Page 92: ......
Page 328: ......
Page 408: ......
Page 409: ...Chapter 11 User program examples 1 1 Basic operation 11 1 2 2 Application 11 8 ...
Page 410: ......
Page 432: ......
Page 488: ......
Page 489: ...Chapter 13 Appendix 1 1 Reserved word list 13 1 2 2 Changes from conventional models 13 3 ...
Page 490: ......
Page 496: ......
Page 497: ...Index ...
Page 498: ......
Page 504: ......
Page 505: ......
Page 506: ... DW 1R 1 XWKRUL HG LVWULEXWRU 3ULQWHG LQ XURSH ...