
129
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) 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
141
Optional TRAN
Copy destination
variable
Copy source variable
ZR
Copy
141
Variable
assignment
Optional CLR
Start of clear variable End of clear variable
ZR
Clear variable
142
Optional ADD
Augend variable
Addend
ZR Add
143
Optional SUB
Minuend variable
Subtrahend
ZR Subtract
143
Optional MULT
Multiplicand variable
Multiplier
ZR Multiply
144
Optional DIV
Dividend variable
Divisor
ZR Divide
144
Arithmetic
operation
Optional MOD
Remainder
assignment variable
Divisor
ZR
Calculate remainder
145
Optional SIN
Sine assignment
variable
Operand [radian]
ZR
Sine
146
Optional COS
Cosine assignment
variable
Operand [radian]
ZR
Cosine
147
Optional TAN
Tangent assignment
variable
Operand [radian]
ZR
Tangent
148
Optional ATN
Inverse-tangent
assignment operation
Operand
ZR
Inverse tangent
149
Function
operation
Optional SQR
Root assignment
variable
Operand
ZR Root
150
Optional AND
AND operand variable Operand
ZR
Logical AND
151
Optional OR
OR operand variable
Operand
ZR
Logical OR
152
Logical
operation
Optional EOR
Exclusive OR operand
variable
Operand
ZR
Logical exclusive OR
153
Comparison Optional CP
Comparison variable
Comparison value
EQ, NE,
GT, GE,
LT, LE
Compare 154
Optional TIMW
Wait time (sec)
Prohibited
TU Wait
155
Optional TIMC
Program number
Prohibited
CP
Cancel waiting
156
Timer
Optional GTTM
Time assignment
variable
Prohibited
CP
Get time
157
Optional BT
Start output, flag
(End output, flag)
CP
Output, flag [ON, OF, NT]
158
Optional BTPN
Output port, flag
Timer setting
CP
Output ON pulse
159
Optional BTPF
Output port, flag
Timer setting
CP
Output OFF pulse
160
Optional WT
I/O, flag
(Wait time)
TU
Wait for I/O, flag [ON, OF]
161
Optional IN
Head I/O, flag
End I/O, flag
CC
Input binary (32 bits max.)
162
Optional INB
Head I/O, flag
Conversion digits
CC
Input BCD (8 digits max.)
163
Optional OUT
Head output, flag
End I/O, flag
CC
Output binary (32 bits max.)
164
Optional OUTB
Head output, flag
Conversion digits
CC
Output BCD (8 digits max.)
165
I/O, flag
operation
Optional FMIO
Format type
Prohibited
CP
Set IN (B)/OUT (B) command
format
166
130
Part 4 Commands
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 GOTO
Jump destination tag
number
Prohibited
CP Jump
169
Prohibited TAG
Declaration tag
number
Prohibited
CP
Declare jump destination
169
Optional EXSR
Execution subroutine
number
Prohibited
CP
Execute subroutine
170
Prohibited BGSR
Declaration subroutine
number
Prohibited
CP
Start subroutine
170
Program
control
Prohibited EDSR
Prohibited
Prohibited
CP
End subroutine
171
Optional EXIT
Prohibited
Prohibited
CP
End program
172
Optional EXPG
Execution program
number
(Execution program
number)
CC
Start program
173
Optional ABPG
Stop program number (Stop program
number)
CC
Stop other program
174
Optional SSPG
Pause program
number
(Pause program
number)
CC
Pause program
175
Task
management
Optional RSPG
Resumption program
number
(Resumption program
number)
CC
Resume program
176
Optional PGET
Axis number
Position number
CC
Assign position to variable 199
177
Optional PPUT
Axis number
Position number
CP
Assign value of variable 199
178
Optional PCLR
Start position number End position number
CP
Clear position data
179
Optional PCPY
Copy destination
position number
Copy source position
number
CP
Copy position data
180
Optional PRED
Read axis pattern
Save destination
position number
CP
Read current axis position
181
Optional PRDQ
Axis number
Variable number
CP
Read current axis position (1
axis direct)
182
Optional PTST
Confirmation axis
pattern
Confirmation position
number
CC
Confirm position data
183
Optional PVEL
Speed [mm/sec]
Assignment
destination position
number
CP
Assign position speed
184
Optional PACC
Acceleration [G]
Assignment
destination position
number
CP
Assign position acceleration
185
Optional PDCL
Deceleration [G]
Assignment
destination position
number
CP
Assign position deceleration
186
Optional PAXS
Axis pattern
assignment variable
number
Position number
CP
Read axis pattern
187
Optional PSIZ
Size assignment
variable number
CP
Confirm position size
188
Optional GVEL
Variable number
Position number
CP
Get speed data
189
Optional GACC
Variable number
Position number
CP
Get acceleration data
190
Position
operation
Optional GDCL
Variable number
Position number
CP
Get deceleration data
191
132
Содержание X-SEL PX
Страница 1: ...Operation ManualSeventh Edition X SEL Controller PX QX Type Tenth Edition ...
Страница 2: ......
Страница 8: ......
Страница 14: ......
Страница 39: ...15 Part 1 Installation Reference Circuit Diagram Surge absorber Solenoid valve Controller 0 V 15 ...
Страница 410: ...383 Appendix 386 ...
Страница 452: ...425 Appendix 5 428 ...
Страница 559: ......