![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
Содержание SCARA YRCX Series
Страница 1: ... 7 6HULHV DW 1R 1 5 5RERW RQWUROOHU 352 5 00 1 0 18 6 5 5RERWV 5 6HULHV ...
Страница 2: ......
Страница 20: ......
Страница 26: ......
Страница 27: ...Chapter 2 Constants 1 1 Outline 2 1 2 2 Numeric constants 2 1 3 3 Character constants 2 2 ...
Страница 28: ......
Страница 32: ......
Страница 52: ......
Страница 54: ......
Страница 61: ...Chapter 5 Multiple Robot Control 1 1 Overview 5 1 2 2 Command list with a robot setting 5 2 ...
Страница 62: ......
Страница 66: ......
Страница 76: ......
Страница 78: ......
Страница 92: ......
Страница 328: ......
Страница 408: ......
Страница 409: ...Chapter 11 User program examples 1 1 Basic operation 11 1 2 2 Application 11 8 ...
Страница 410: ......
Страница 432: ......
Страница 488: ......
Страница 489: ...Chapter 13 Appendix 1 1 Reserved word list 13 1 2 2 Changes from conventional models 13 3 ...
Страница 490: ......
Страница 496: ......
Страница 497: ...Index ...
Страница 498: ......
Страница 504: ......
Страница 505: ......
Страница 506: ... DW 1R 1 XWKRUL HG LVWULEXWRU 3ULQWHG LQ XURSH ...