
139
Part 4 Commands
Chapter 1 List of SEL Language Command Codes
Part 4 Commands
Part 4 Commands
Chapter 1 List of SEL Language Command Codes
1. By Function
Variables can be specified indirectly in the operand 1, operand 2 and output fields.
Symbols can be input in the condition, operand 1, operand 2 and output fields.
The input items in ( ) under operand 1 and operand 2 are optional.
Once an “actuator control declaration” command is executed in a program, the command will remain valid as long as
the program is running. To change the values (in operand 1, operand 2, etc.) already set by the “actuator control
declaration” command, the necessary parts of the program must be set again. In other words, the values set by the
last executed command will prevail.
The output field will be turned OFF when the command is executed. Once the execution is completed, the output field
may be turned ON depending on the operation type condition in the output field. (The output field will remain OFF if the
condition is not satisfied.)
Note:
The output field of a comparison command CPxx (CPEQ, CPNE, CPGT, CPGE, CPLT and CPLE), ECMD will not be turned OFF
when the command is executed.
Operation type in the output field
CC: Command was executed successfully,
ZR: Operation result is zero, PE: Operation is complete,
CP: Command part has passed, TU: Time up
EQ: Operand 1 = Operand 2, NE: Operand 1
Operand 2,
GT: Operand 1 > Operand 2, GE: Operand 1
Operand 2,
LT:
Operand 1 < Operand 2, LE: Operand 1 Operand 2
Category
Condition
Command
Operand 1
Operand 2
Output
Function
Page
Optional
LET
Assignment variable
Assigned value
ZR
Assign
151
Optional
TRAN
Copy-destination
variable
1
5
1
y
p
o
C
R
Z
e
l
b
a
i
r
a
v
e
c
r
u
o
s
-
y
p
o
C
Variable
assignment
Optional
CLR
Start-of-clear variable
End-of-clear variable
ZR
Clear variable
152
Optional
ADD
Augend variable
Addend
ZR
Add
153
Optional
SUB
Minuend variable
Subtrahend
ZR
Subtract
153
Optional
MULT
Multiplicand variable
Multiplier
ZR
Multiply
154
Optional
DIV
Dividend variable
Divisor
ZR
Divide
154
Arithmetic
operation
Optional
MOD
Remainder
assignment variable
Divisor
ZR
Calculate remainder
155
Optional
SIN
Sine assignment
variable
6
5
1
e
n
i
S
R
Z
]
n
a
i
d
a
r
[
d
n
a
r
e
p
O
Optional
COS
Cosine assignment
variable
6
5
1
e
n
i
s
o
C
R
Z
]
n
a
i
d
a
r
[
d
n
a
r
e
p
O
Optional
TAN
Tangent assignment
variable
7
5
1
t
n
e
g
n
a
T
R
Z
]
n
a
i
d
a
r
[
d
n
a
r
e
p
O
Optional
ATN
Inverse-tangent
assignment operation
Operand
ZR
Inverse tangent
157
Function
operation
Optional
SQR
Root assignment
variable
Operand
ZR
8
5
1
t
o
o
R
Optional
AND
AND operand variable
Operand
ZR
Logical AND
159
Optional
OR
OR operand variable
Operand
ZR
Logical OR
160
Logical
operation
Optional
EOR
Exclusive-OR operand
variable
Operand
ZR
Logical exclusive-OR
161
Comparison
Optional
CP
Comparison variable
Comparison value
EQ, NE,
GT, GE,
LT, LE
2
6
1
e
r
a
p
m
o
C
Optional
TIMW
Wait time (sec)
Prohibited
TU
Wait
163
Optional
TIMC
Program number
Prohibited
CP
Cancel waiting
164
Timer
Optional
GTTM
Time assignment
variable
Prohibited
CP
Get
5
6
1
e
m
i
t
Optional
BT
Start output, flag
(End output, flag)
CP
Output, flag [ON, OF, NT]
166
Optional
BTPN
Output port, flag
Timer setting
CP
Output ON pulse
167
Optional
BTPF
Output port, flag
Timer setting
CP
Output OFF pulse
168
Optional
WT
I/O, flag
(Wait time)
TU
Wait for I/O, flag [ON, OF]
169
Optional
IN
Head I/O, flag
End I/O, flag
CC
Input binary (32 bits max.)
170
Optional
INB
Head I/O, flag
Conversion digits
CC
Input BCD (8 digits max.)
171
Optional
OUT
Head output, flag
End I/O, flag
CC
Output binary (32 bits max.)
172
Optional
OUTB
Head output, flag
Conversion digits
CC
Output BCD (8 digits max.)
173
I/O, flag
operation
Optional
FMIO
Format type
Prohibited
CP
Set IN (B)/OUT (B) command
format
174
Содержание X-SEL
Страница 1: ...Operation Manual Nineteenth Edition XSEL Controller P Q PCT QCT Type ...
Страница 2: ......
Страница 3: ... ...
Страница 14: ... I Q 4 I9 A 5 ...
Страница 15: ... 9 1 9 R K 4 5 R Q 4 5 ...
Страница 16: ... R 4 5 A 91 B 9 Q O Y Q 4 5 4R 5 Q Q 4 7 5 ...
Страница 17: ... C 6 C I 4 b 5 ...
Страница 18: ......
Страница 52: ...30 Part 1 Installation Chapter 4 Name and Function of Each Part 46 5 4 8 5 8 8 8 8 K L 8 8 Q 46 5 ...
Страница 54: ...32 Part 1 Installation Chapter 4 Name and Function of Each Part 4 5 BBB O B F O 9 F R 4 5 b b 8 b 5 ...
Страница 104: ...82 Part 1 Installation Chapter 7 System Setup 8 C 8S8 K9 9 O Q C K 8 99 8 4K 5 4 9 5 N RJ A 4 95 4 995 ...
Страница 105: ...83 Part 1 Installation Chapter 7 System Setup Q 4 O O O 5 I 8 91 N O O O I I ...
Страница 106: ...84 Part 1 Installation Chapter 7 System Setup Q O O C 9A O C A I 8 91 9 4 99 5C 6 N 9 6 C 99 O O O N I N I ...
Страница 115: ...93 Part 1 Installation Chapter 8 How to Perform An Absolute Encoder Reset Absolute Specification 4 5 R T 4 5 R T ...
Страница 116: ...94 Part 1 Installation Chapter 8 How to Perform An Absolute Encoder Reset Absolute Specification 4 5 I 4 5 Q O 4N 5 ...
Страница 120: ...98 Part 1 Installation Chapter 8 How to Perform An Absolute Encoder Reset Absolute Specification 4 5 M 4 5 I 4 5 ...
Страница 121: ...99 Part 1 Installation Chapter 8 How to Perform An Absolute Encoder Reset Absolute Specification 4 5 R T 4 5 R T ...
Страница 126: ...104 Part 1 Installation Chapter 8 How to Perform An Absolute Encoder Reset Absolute Specification 4 A5 8 8 T 4 B5 R T ...
Страница 129: ...107 Part 1 Installation Chapter 9 Maintenance 5 8 NI Q 5 5 4 7 5 5 ...
Страница 130: ...108 Part 1 Installation Chapter 9 Maintenance 4A5 R 8 4B5 O 9 8 b 6 4 95 4 5 4O 5 C I O 9C Q 8 I O C K 8 4 5 R Q ...
Страница 150: ...128 Part 3 Controller Data Structure Chapter 2 XSEL Language Data Q 4 5 b Q b C 4 5 4 5 47 5 4 5 ...
Страница 153: ...131 Part 3 Controller Data Structure Chapter 2 XSEL Language Data Q b b J b J 4 BB5 J J ...
Страница 156: ...134 Part 3 Controller Data Structure Chapter 2 XSEL Language Data Q 9 Q 4 5 I C K QI JI KU SQ QI KU KU J ...
Страница 160: ...138 Part 3 Controller Data Structure Chapter 2 XSEL Language Data Q I 4QIN 5 I I I O 4N 5 O O O O ...
Страница 185: ...163 Part 4 Commands Chapter 2 Explanation of Commands R 4 5 I 4N 5 4 5 4 5 R Q 9 9 BB O I R R I NI 9 9 R 6 R 4 9 5 ...
Страница 201: ...179 Part 4 Commands Chapter 2 Explanation of Commands I Q 4I 5 I 4N 5 4 5 4 5 I Q ISQ I ISQ ...
Страница 202: ...180 Part 4 Commands Chapter 2 Explanation of Commands B IS 4I 5 I 4N 5 4 5 4 5 IS I IS 4O 5 Q N N J J I C C IS I ...
Страница 212: ...190 Part 4 Commands Chapter 2 Explanation of Commands P 4 4 55 I 4N 5 4 5 4 5 P 9 9 I Y I P 99 99 ...
Страница 216: ...194 Part 4 Commands Chapter 2 Explanation of Commands N 4 5 I 4N 5 4 5 4 5 N J I N 9 9 O ...
Страница 224: ...202 Part 4 Commands Chapter 2 Explanation of Commands 4Q 5 I 4N 5 4 5 4 5 Q J 4O 5 O 8 O b I 9 Q 9 J 4O 5 Q ...
Страница 225: ...203 Part 4 Commands Chapter 2 Explanation of Commands N 4Q 5 I 4N 5 4 5 4 5 N Q J 4O 5 O N 8 O b N I N 9 Q 9 J 4O 5 Q ...
Страница 275: ...253 Part 4 Commands Chapter 2 Explanation of Commands JQ 4J 5 I 4N 5 4 5 4 5 JQ Q 4 5 4O 5 9 b 4O 5 4 5 I JQ O ...
Страница 286: ...264 Part 4 Commands Chapter 2 Explanation of Commands Q K 4Q 5 I 4N 5 4 5 4 5 Q K Q I R 9 4 Q 5 I I R ...
Страница 295: ...273 Part 4 Commands Chapter 2 Explanation of Commands QNIO 4Q 5 I 4N 5 4 5 4 5 QNIO Q C Q Q T Q RQ Q K N NK Q I C ...
Страница 304: ...282 Part 4 Commands Chapter 2 Explanation of Commands KU 4 Y U8 5 I 4N 5 4 5 4 5 KU 4 5 Q Y U Y U Y U8 J 4F Y 5 O ...
Страница 307: ...285 Part 4 Commands Chapter 2 Explanation of Commands KU 4 8 U8 5 I 4N 5 4 5 4 5 KU Q 8 U 8 U O ...
Страница 318: ...296 Part 4 Commands Chapter 2 Explanation of Commands 8 U8 8 K 8 U U 8 8 8 U8 d 8 8 8 U8 ...
Страница 320: ...298 Part 4 Commands Chapter 2 Explanation of Commands QN 4 5 I 4N 5 4 5 4 5 QN Q K JK 4O 5 4 5 8 ...
Страница 340: ...318 Part 4 Commands Chapter 4 Palletizing Function 4 5 888 K U8 KU J K 9 K O Q 8 O I 8 O Q I O 9 ...
Страница 352: ...330 Part 4 Commands Chapter 6 Application Program Examples I L 8 J 4 5 8 8 8 K K N 8 8 ...
Страница 355: ...333 Part 4 Commands Chapter 6 Application Program Examples Q 4 5 ST8 8 8 ST8 R ST8 ...
Страница 358: ...336 Part 4 Commands Chapter 6 Application Program Examples Y Y Q 4 5 Y 8 8 U8 4 Y 5 ...
Страница 362: ...340 Part 5 Multi Tasking Chapter 1 Real Time Multi Tasking 8 8 8 b Q 8 8 8 8 8 8 4 5 8 8 b ST Q Q O Q M Q ...
Страница 363: ...341 Part 5 Multi Tasking Chapter 1 Real Time Multi Tasking 8 Q Q 4 5 8 4 5 8 4 5 Q 8 8 Q ...
Страница 367: ...345 Part 5 Multi Tasking Chapter 2 Example of Building a System 8 Q 8 Q 8 8 U8 8 U8 Q 8 R ...
Страница 373: ...351 Appendix 4O 5 4 5 4O 5 Q 4 5 4 5 4O 5 4O 5 K Y K Y 5 5 5 5 5 8 Appendix ...
Страница 374: ...352 Appendix 4O 5 4 5 4O 5 4O 5 Q8 Q 4 5 4 5 4O 5 4O 5 K Y K Y 5 5 5 5 ...
Страница 375: ...353 Appendix 4O 5 4 5 4O 5 Q 4 5 4 5 4O 5 4O 5 K Y K Y Appendix ...
Страница 376: ...354 Appendix 4O 5 4 5 4O 5 Q 4 5 4 5 4O 5 4O 5 K Y K Y ...
Страница 377: ...355 Appendix 4O 5 4O 5 4O 5 NQ Q 4 5 K Y 4 5 4 5 4O5 4 5 4O 5 4J5 4O 5 Appendix ...
Страница 380: ...358 Appendix 99 K R 4K I 5 Q K Q I ...
Страница 381: ...359 Appendix K J J J J J J I I Q Q L Q Appendix ...
Страница 382: ...360 Appendix I J J Q K ...
Страница 383: ...361 Appendix 4 K 5 N C K 4 5 I K b K b K b K b 4 5 K K K B 9 O K O B 9 9 B Appendix ...
Страница 385: ...363 Appendix A 8 K I Q b b b I Q b 8 4 5 8 4 5 QC 8 QC 8 Appendix ...
Страница 387: ...365 Appendix 9 R K I 9 O O 9 Q 9 9 O 9 O I Appendix ...
Страница 389: ...367 Appendix Q K I 9 9 9 4 K 5 K b K N 4 5 4 8 5 Q Q Q Appendix ...
Страница 391: ...369 Appendix K Q Q BB K C ISQ C JQ C 4 5 I Q C 4 5 I L J J Q Appendix ...
Страница 392: ...370 Appendix K N K 4 5 K N R K N 4 5 I K N 9 8 9 O T K N 9 F 4 5 Q F 4 5 F 4 5 Q 9 O 9 ...
Страница 393: ...371 Appendix 4 O 5 O K R O I O 9 O 4 5 6 6 R O 4 5 Q R O O 9 F 4 5 Q F 4 5 Q 9 O Appendix ...
Страница 394: ...372 Appendix 4Q 5 4Q 5 K I Q 4 8 5 Q I Q Q b N b N b N b I Q 9b N b N b N b Q 4 5 N Q Q 9 O Q R Q R ...
Страница 395: ...373 Appendix A O Q N I O 9 Q A A B 9 9 9 9 A9 99 99 99 A99 Q Q O Appendix ...
Страница 396: ...374 Appendix B I I O I I C b 9 Q Q Q O ...
Страница 397: ...375 Appendix 9 I P 9 8 9 99 BBB BB O O C 6 R P 9 Q SSS SSSb 99 SSSSS Sb O BB 8 Appendix ...
Страница 398: ...376 Appendix L Q J 4 5 I 9 O J 6 9 O 9 I 9 9 9 O 9 I J 9 O 9 O 9 O O ...
Страница 399: ...377 Appendix R R O I 9 9 4 5 R O 9 9 O 6 O O Appendix ...
Страница 400: ...378 Appendix K R Q 4 5 Q 4 8 b5 9b 4 8 5 K ...
Страница 401: ...379 Appendix I O I I IP 9 RIP Appendix ...
Страница 402: ...380 Appendix 8 I Q S8 Q I Q N Q Q H I 4 5 4O 5 ...
Страница 403: ...381 Appendix L O K I 9 O O I Q I 4 5 K N Q O Q 4 95 Q R Appendix ...
Страница 405: ...383 Appendix A I J 4 5 8 6 I 4 5 4 5 R 6 J Appendix ...
Страница 414: ...392 Appendix Q Q Q 4 5 R 8 O A I Q O b 8 O A I Q O b Q Q 9 Q 9 9 4 F 9 F 9 K 8 5 I 5 8 I 5 8 4 5 Q Appendix ...
Страница 416: ...394 Appendix 4 5 4 8 5 C I b I b I b 8 I b Q I T I Q I T 8 I I Appendix ...
Страница 418: ...396 Appendix I 8 8 O K b Q R 4 5 4 5 4 5 I O 9 b I O b I O Q 8 b C 4 5 C 8 O 8 b 8 O A Q 8 Y b Y 4O 5 8 8 Appendix ...
Страница 423: ...401 Appendix Q Q 9 Q Q Q Q 4 5 Q I 4 5 8 Q 4 5 Q Q 4 Q I 5 Q Q Q QIN 4O K 5 b b Appendix ...
Страница 431: ...409 Appendix 4 5 Q J N J C 99 BBB 4 995 N C BB 4 BB5 Q I Q Y b 8 K Ib b N b I Appendix ...
Страница 432: ...410 Appendix I b Q K Ib K Ib 99 N BB J 99 J K Ib 99 ...
Страница 433: ...411 Appendix K Q Appendix ...
Страница 435: ...413 Appendix N 3 Q I Q Q Y b b b b Appendix ...
Страница 486: ...464 Appendix B O 4 5 9 9 9C O C Y C J 8 9 9 9C C 7 C 9 9 J 99 4 5 99999999K 9K K ...
Страница 493: ...471 Appendix O INN JIO R 4 5 8 4 8 5 8 b O 9 F O F 4 O 5 O F 4 O 5 8 O O O O O8 O 8 8 O 9 F 9 QIN 4 5 O R 8 b Appendix ...
Страница 506: ...484 Appendix O INN JIO 4 Ib 5 I O I O Q O b I Y I Q I Y 8 O B 4 5 b 9 Y Y I Y C 4 5 8 4 5 R Appendix ...
Страница 507: ...485 Appendix O INN JIO 4 Ib 5 I O I A 4 5 8 8 O B 8 C 4 5 8 4 5 C 4 5 8 4 Q 5 I C 4 5 8 9 C Y Y Y Appendix ...
Страница 510: ...488 Appendix O INN JIO 4 Ib 5 I O I 9 C O B O O O O O O 3 4 5 A I B Appendix ...
Страница 512: ...490 Appendix O INN JIO 4 Ib 5 I O I C 4 5 8 4 5 4 5 O O A B 8 4 5 O b C Y O O A 4 O A5 4 O 9 5 4 5 8 9 Appendix ...
Страница 524: ...502 Appendix O INN JIO 4 Ib 5 I O I B B B B B B A B B 4 5 B B 4 5 B 8 8 4 5 B I 8 8 4 5 B I B Y Y Appendix ...
Страница 529: ...507 Appendix O INN JIO 4 Ib 5 I O I 4 5 AI 4 5 Appendix ...
Страница 534: ...512 Appendix O INN JIO 4 Ib 5 I O I 8 O 8 8 8 8 8 8 A 8 B 9 9b QP QP 9b QP Q A O Q I 9 8 8 U Y A B Q 8 Q I Q 8 Appendix ...
Страница 550: ...528 Appendix O INN JIO 4 Ib 5 I O I IA QIN 8 IA Q 8 IA 8 IA 8 I 4 5 Appendix ...
Страница 559: ...537 Appendix O INN JIO I O I A Q A9 Q I 8 4 5 Appendix ...
Страница 560: ...538 Appendix Q J Q K 4 5 J 8 4 5 9 9 BBBB 9 K Q N J 4 N 5 4 5 8 99 4 5 K Q Q 4 5 Q Q Q 4 5 Q Appendix ...
Страница 561: ...539 Appendix Q N 4 N 5 4 5 8 999 9 N O 4 5 8 9 O K 4 N 5 4 5 8 99 9 Q Q 4 5 Q Appendix ...
Страница 565: ...543 ...