
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
Summary of Contents for X-SEL
Page 1: ...Operation Manual Nineteenth Edition XSEL Controller P Q PCT QCT Type ...
Page 2: ......
Page 3: ... ...
Page 14: ... I Q 4 I9 A 5 ...
Page 15: ... 9 1 9 R K 4 5 R Q 4 5 ...
Page 16: ... R 4 5 A 91 B 9 Q O Y Q 4 5 4R 5 Q Q 4 7 5 ...
Page 17: ... C 6 C I 4 b 5 ...
Page 18: ......
Page 105: ...83 Part 1 Installation Chapter 7 System Setup Q 4 O O O 5 I 8 91 N O O O I I ...
Page 129: ...107 Part 1 Installation Chapter 9 Maintenance 5 8 NI Q 5 5 4 7 5 5 ...
Page 153: ...131 Part 3 Controller Data Structure Chapter 2 XSEL Language Data Q b b J b J 4 BB5 J J ...
Page 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 ...
Page 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 ...
Page 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 ...
Page 352: ...330 Part 4 Commands Chapter 6 Application Program Examples I L 8 J 4 5 8 8 8 K K N 8 8 ...
Page 355: ...333 Part 4 Commands Chapter 6 Application Program Examples Q 4 5 ST8 8 8 ST8 R ST8 ...
Page 358: ...336 Part 4 Commands Chapter 6 Application Program Examples Y Y Q 4 5 Y 8 8 U8 4 Y 5 ...
Page 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 ...
Page 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 ...
Page 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 ...
Page 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 ...
Page 375: ...353 Appendix 4O 5 4 5 4O 5 Q 4 5 4 5 4O 5 4O 5 K Y K Y Appendix ...
Page 376: ...354 Appendix 4O 5 4 5 4O 5 Q 4 5 4 5 4O 5 4O 5 K Y K Y ...
Page 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 ...
Page 380: ...358 Appendix 99 K R 4K I 5 Q K Q I ...
Page 381: ...359 Appendix K J J J J J J I I Q Q L Q Appendix ...
Page 382: ...360 Appendix I J J Q K ...
Page 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 ...
Page 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 ...
Page 387: ...365 Appendix 9 R K I 9 O O 9 Q 9 9 O 9 O I Appendix ...
Page 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 ...
Page 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 ...
Page 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 ...
Page 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 ...
Page 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 ...
Page 396: ...374 Appendix B I I O I I C b 9 Q Q Q O ...
Page 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 ...
Page 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 ...
Page 399: ...377 Appendix R R O I 9 9 4 5 R O 9 9 O 6 O O Appendix ...
Page 400: ...378 Appendix K R Q 4 5 Q 4 8 b5 9b 4 8 5 K ...
Page 401: ...379 Appendix I O I I IP 9 RIP Appendix ...
Page 402: ...380 Appendix 8 I Q S8 Q I Q N Q Q H I 4 5 4O 5 ...
Page 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 ...
Page 405: ...383 Appendix A I J 4 5 8 6 I 4 5 4 5 R 6 J Appendix ...
Page 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 ...
Page 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 ...
Page 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 ...
Page 432: ...410 Appendix I b Q K Ib K Ib 99 N BB J 99 J K Ib 99 ...
Page 433: ...411 Appendix K Q Appendix ...
Page 435: ...413 Appendix N 3 Q I Q Q Y b b b b Appendix ...
Page 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 ...
Page 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 ...
Page 529: ...507 Appendix O INN JIO 4 Ib 5 I O I 4 5 AI 4 5 Appendix ...
Page 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 ...
Page 559: ...537 Appendix O INN JIO I O I A Q A9 Q I 8 4 5 Appendix ...
Page 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 ...
Page 565: ...543 ...