
91
Part 2 Programs
Chapter 2 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 CP
(CPEQ, CPNE, CPGT, CPGE, CPLT and CPLE) 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
z
Operand 2,
GT: Operand 1 > Operand 2, GE: Operand 1
t
Operand 2,
LT: Operand 1 < Operand 2, LE: Operand 1
d
Operand 2
Category
Condition
Command
Operand 1
Operand 2
Output
Function
Page
Optional
LET
Assignment variable
Assigned value
ZR
Assign
101
Optional TRAN
Copy-destination
variable
Copy-source variable
ZR
Copy
102
Variable
assignment
Optional
CLR
Start-of-clear variable End-of-clear variable
ZR
Clear variable
103
Optional ADD
Augend
variable Addend
ZR Add
104
Optional SUB
Minuend
variable Subtrahend
ZR Subtract
104
Optional MULT
Multiplicand
variable
Multiplier
ZR Multiply
105
Optional DIV
Dividend
variable Divisor
ZR Divide
105
Arithmetic
operation
Optional MOD
Remainder
assignment variable
Divisor ZR
Calculate
remainder
106
Optional SIN
Sine assignment
variable
Operand [radian]
ZR
Sine
107
Optional COS
Cosine assignment
variable
Operand [radian]
ZR
Cosine
107
Optional TAN
Tangent assignment
variable
Operand [radian]
ZR
Tangent
108
Optional ATN
Inverse-tangent
assignment operation
Operand ZR
Inverse
tangent
108
Function
operation
Optional SQR
Root assignment
variable
Operand ZR
Root
109
Optional AND
AND operand
variable
Operand ZR
Logical
AND 110
Optional
OR
OR operand variable
Operand
ZR
Logical OR
111
Logical
operation
Optional EOR
Exclusive-OR
operand variable
Operand ZR
Logical
exclusive-OR
112
Comparison Optional CP
Comparison variable
Comparison value
EQ NE GT
GE LT LE
Compare 113
Optional
TIMW
Wait time (sec)
Prohibited
TU
Wait
114
Optional TIMC
Program
number Prohibited
CP Cancel
waiting
115
Timer
Optional GTTM
Time assignment
variable
Prohibited CP
Get
time
116
Optional BT
Start output, flag
(End output, flag)
CP
Output, flag [ON, OF, NT]
117
Optional
BTPN
Output port, flag
Timer setting
CP
Output ON pulse
118
Optional
BTPF
Output port, flag
Timer setting
CP
Output OFF pulse
119
Optional WT
I/O, flag
(Wait time)
TU
Wait for I/O, flag [ON, OF]
120
Optional
IN
Head I/O, flag
End I/O, flag
CC
Input binary (32 bits max.)
121
Optional
INB
Head I/O, flag
Conversion digits
CC
Input BCD (8 digits max.)
122
Optional
OUT
Head output, flag
End I/O, flag
CC
Output binary (32 bits max.)
123
Optional
OUTB
Head output, flag
Conversion digits
CC
Output BCD (8 digits max.)
124
I/O, flag
operation
Optional FMIO
Format
type
Prohibited
CP
Set IN (B)/OUT (B)
command format
125
Summary of Contents for PSEL
Page 2: ......
Page 10: ......
Page 18: ...8 Part 1 Installation ...
Page 37: ...27 Part 1 Installation 2 2 axis specification with battery ...
Page 382: ...372 Appendix Micro cylinder RCL Series Current limiting value ratio Push force N ...
Page 476: ...466 Appendix ...
Page 480: ...470 ...
Page 485: ...475 ...
Page 487: ...INTELLIGENT ACTUATOR SEL Language Programming Manual Eighth Edition ...
Page 488: ......
Page 490: ......
Page 494: ......
Page 518: ...24 ...
Page 526: ...32 ...
Page 831: ... 11 Actuator Control Declaration 337 Example DFIF 1 170 ...
Page 1060: ......
Page 1061: ......