Shift Variable; Parallel Input Variable - Omron SCARA YRCX Series Programming Manual

Robot controller
Hide thumbs Also See for SCARA YRCX Series:
Table of Contents

Advertisement

9.2
1
2
3
4
5
MEMO
9.3
6
MEMO
3-8
Chapter 3 Variables

Shift variable

This variable specifies a shift coordinate number with a numeric constant or expression.
Format
Snn or S[expression]
Values
n: Shift number ..................... 0 to 9
Functions
A shift number is expressed with an "S" followed by a 2-digits number or an expression
surrounded by brackets ([expression]). As a shift number, 0 to 39 can be specified.
Examples: S1
S[A]
S[BASE]
S[A(10)]
• The "shift coordinate range" for each shift number can be changed from the programming box.

Parallel input variable

This variable is used to indicate the status of parallel input signals.
Format 1
DIm(b,···,b)
Format 2
DI(mb,···,mb)
Values
m : port number .................... 0 to 7, 10 to 17, 20 to 27
b : bit definition .................... 0 to 7
If the bit definition is omitted in Format 1, bits 0 to 7 are all selected.
Examples: A%=DI1()
→Input status of ports DI(17) to DI(10)
is assigned to variable A%.
0 to 255 integer can be assigned to A%.
A%=DI5(7,4,0)
→Input status of DI(57), DI(54) and
DI(50) is assigned to variable A%.
(If all above signals are 1(ON), then A%=7.)
A%=DI(27,15,10)
→Input status of DI(27), DI(15) and
DI(10) is assigned to variable A%.
(If all above signals except DI(10) are 1 (ON), then A%=6.)
WAIT DI(21)=1
→Waits for DI(21) to change to 1(ON).
• When specifying multiple bits, specify them from left to right in descending order (high to low).
• A "0" is input if an input port does not actually exist.

Advertisement

Table of Contents
loading

Table of Contents