Sel Programming Manual (Me0224-10k)
Sel Programming Manual (Me0224-10k)
ACTUATOR
SEL Language
Programming Manual
Tenth Edition
Please Read Before Use
This Instruction Manual describes all necessary information items to operate this product safely
such as the operation procedure, structure and maintenance procedure.
Before the operation, read this manual carefully and fully understand it to operate this product
safely. The enclosed CD/DVD in this product package includes the Instruction Manual for this
product.
For the operation of this product, print out the necessary sections in the Instruction Manual or
display them using the personal computer.
After reading through this manual, keep this Instruction Manual at hand so that the operator of this
product can read it whenever necessary.
[Important]
• This Instruction Manual is original.
• The product cannot be operated in any way unless expressly specified in this Instruction Manual.
IAI shall assume no responsibility for the outcome of any operation not specified herein.
• Information contained in this Instruction Manual is subject to change without notice for the
purpose of product improvement.
• If you have any question or comment regarding the content of this manual, please contact the
IAI sales office near you.
• Using or copying all or part of this Instruction Manual without permission is prohibited.
• The company names, names of products and trademarks of each company shown in the
sentences are registered trademarks.
Contents
1. Preparation in Advance······························································································ 31
1.1 Related Manuals ················································································································· 31
1.2 Programming Tool ··············································································································· 32
1.3 PC Operational Environment ······························································································ 33
1.4 Axes on Each Actuator and Precautions············································································· 34
1.4.1 Single-Direction Axis ···································································································· 34
1.4.2 Rectangular Axes, TT/TTA ··························································································· 35
1.4.3 Rotational Axis ············································································································· 36
1.4.4 Gripper ························································································································· 37
1.4.5 TTA, MSEL-PC/PG ······································································································ 37
1.4.6 SCARA Robot ·············································································································· 56
2. Connection with Host System ···················································································· 89
2.1 I/O Signal····························································································································· 89
2.1.1 XSEL-J/K Type Controllers ·························································································· 90
2.1.2 XSEL-P/Q/PCT/QCT Controllers ················································································· 96
2.1.3 XSEL-PX/QX Controllers ··························································································· 102
2.1.4 XSEL-R/S/RX/SX/RXD/SXD Controllers ··································································· 106
2.1.5 XSEL-RA/SA/RAX/SAX/RAXD/SAXD Controllers······················································112
2.1.6 SSEL, ASEL, PSEL Controllers ··················································································118
2.1.7 Tabletop Robot TT/TTA ······························································································ 121
2.1.8 MSEL Controller ········································································································· 126
3. Program ··················································································································· 129
3.1 Position Table and Program Format·················································································· 129
3.1.1 Position Table············································································································· 129
3.2 Program····························································································································· 134
3.3 Program Format ················································································································ 135
3.4 Relationship of program and position table······································································· 138
3.5 Basic Stage (Program creation and position table creation) ············································· 139
3.5.1 Home Return and Home Return Completion Signal·················································· 139
3.5.2 Positioning Operation (Moving position) ···································································· 140
3.5.3 Moving Back and Forth between Two Points····························································· 141
3.5.4 Repeated Operation··································································································· 142
3.5.5 PATH Operation (Continuous operation among multiple positions)··························· 143
3.5.6 External Signal Output during Path Movement·························································· 144
3.5.7 Circle/Arc Operation··································································································· 145
3.5.8 Axis Movement by External Signals and Output of Completion Signal to
External Device ·········································································································· 146
3.5.9 Changing the Moving Speed······················································································ 147
3.5.10 Speed Setting Change during PATH (Continuous) Operation ··································· 148
3.5.11 Variables and Flags [Global/Local] ············································································ 149
3.5.12 How to Use Subroutines ···························································································· 150
3.5.13 Pausing the Operation ······························································································· 151
3.5.14 Canceling the Operation ···························································································· 152
3.5.15 Aborting from Other Program····················································································· 153
3.5.16 Operation by Position Number Specification via External Signals and Output of
Completion Signal to External Device········································································ 154
3.5.17 Operation by Coordinate Value Input via External Signals and Output of
Completion Signal to External Device········································································ 155
3.5.18 Output of Current Position Coordinate Value to External Device ······························ 156
3.5.19 Conditional Jump ······································································································· 157
3.5.20 How to Pause and Then Resume Program after Output Signal Input ······················· 158
3.5.21 How to Use Offset ······································································································ 159
3.5.22 How to Repeat Specified Operation Multiple Times··················································· 160
3.5.23 Constant Feed Operation [Pitch Feed] ······································································ 161
3.5.24 How to JOG via External Signal Input········································································ 162
3.5.25 Switching Programs ··································································································· 163
3.5.26 Aborting a Program ···································································································· 164
3.5.27 Way to Prevent Duplicated Startup by Program ························································ 165
3.5.28 How to Cause Rotational Axis [Multi-rotation Specification] to
Rotate Multiple Times································································································· 166
3.6 For Advanced Operations (program edit)·········································································· 168
3.6.1 Handling of Axis Numbers and Patterns ···································································· 168
3.6.2 Setting of Multi-tasking and Task Level······································································ 171
3.6.3 Pseudo-Ladder Task ·································································································· 174
3.6.4 How to Use Arch Motion ···························································································· 179
3.6.5 How to Use Palletizing Function ················································································ 181
3.6.6 Handling of WAIT Timers ··························································································· 198
3.6.7 Handling of Shot Pulse Timers··················································································· 198
3.6.8 Handling of Number of Symbol Definitions ································································ 199
3.6.9 Serial Communication ································································································ 200
3.7 Controller Data Structure and Saving of Data ··································································· 205
3.7.1 XSEL-J/K/KE/KT/KET, JX/KX/KETX ·········································································· 205
3.7.2 XSEL-P/Q/PCT/QCT, PX/QX ····················································································· 209
3.7.3 XSEL-R/S/RX/SX/RXD/SXD······················································································ 215
3.7.4 XSEL-RA/SA/RAX/SAX/RAXD/SAXD ······································································· 218
3.7.5 ASEL, PSEL··············································································································· 221
3.7.6 SSEL ·························································································································· 225
3.7.7 TT/TTA ······················································································································· 229
3.7.8 MSEL ························································································································· 233
4. Program Edit············································································································ 236
4.1 Each Type of Data Available to Handle on the Program and its Range···························· 236
4.2 Setting of Function and Values·························································································· 240
4.2.1 Handling of I/O Port···································································································· 240
4.2.2 Handling (Setting and Resetting) of Flags ································································· 241
4.2.3 How to Deal with Values and Variables ····································································· 242
4.2.4 Specification Method for Local String and Global String············································ 246
4.2.5 Handling of Tag Numbers··························································································· 247
5. SEL Commands······································································································· 248
5.1 How to Read Explanation of Command ············································································ 248
[1] SEL language structure······························································································ 248
[2] Applicable models ······································································································ 249
[3] Description of functions······························································································ 249
5.2 SEL Language Code Table for each Function ·································································· 250
5.3 Explanation of Commands ································································································ 259
[1] Variable Assignment··································································································· 259
[2] Arithmetic Operation ·································································································· 262
[3] Function Operation····································································································· 267
[4] Logical Operation ······································································································· 276
[5] Comparison Operation ······························································································· 282
[6] Timer ·························································································································· 283
[7] I/O, Flag Operation····································································································· 286
[8] Program Control········································································································· 299
[9] Task Management······································································································ 304
[10] Position Operation ··················································································· 309
[11] Actuator Control Declaration······································································· 326
[12] Actuator Control Command ········································································ 389
[13] IF structure ····························································································· 436
[14] Structural DO ·························································································· 440
[15] Multi-Branching ······················································································· 444
[16] System Information Acquisition ··································································· 449
[17] Zone ····································································································· 453
[18] Communication ······················································································· 457
[19] String Operation ······················································································ 468
[20] Arch-Motion ···························································································· 477
[21] Palletizing Definition ················································································· 483
[22] Palletizing Calculation ··············································································· 498
[23] Palletizing Movement················································································ 504
[24] Building of Pseudo-Ladder Task ·································································· 508
[25] Extended Command················································································· 511
[26] RC gateway function commands ································································· 533
[27] Extension Motion Control Function ······························································ 559
[28] Conveyor Tracking Related Commands ························································ 619
[29] Vision System I/F Related Command ··························································· 623
[30] Anti-Vibration Control Related Command ······················································ 627
5.4 Key Characteristics of Actuator Control Commands and Points to Note ····················· 628
5.4.1 Continuous Movement Commands
[PATH, CIR, ARC, PSPL, CIR2, ARC2, ARCD, ARCC, CIRS, ARCS and CNTP] ···· 628
5.4.2 PATH/PSPL Commands ············································································ 631
5.4.3 CIR/ARC Commands················································································ 631
5.4.4 CIR2/ARC2/ARCD/ARCC Commands ·························································· 631
5.5 Position Output Operation Features ··································································· 632
5.5.1 Outline··································································································· 632
5.5.2 How to Valid Position Output Operation Function (TTA, MSEL) ·························· 633
5.5.3 How to Valid Position Data Output Operation Setting ······································· 634
5.5.4 Valid SEL Language Commands for Output Operation of
Position Data and Common Notes for Caution················································ 635
5.5.5 Explanation of Each Output Function ··························································· 636
5.5.6 Common Notes for Caution ········································································ 644
5.5.7 Other Caution Notes················································································· 645
6. Program Examples·················································································· 647
6.1 Operation by Jog Command Doll-Picking Game Machine···································· 647
6.2 Operation by Point Movement Command Riveting System ·································· 650
6.3 Palletizing Operation Palletizing System·························································· 653
6.4 Screw-Tightening Machine··············································································· 656
7. Appendix······························································································· 661
Change History ···························································································· 663
Table of Contents of Commands in Alphabetical Order
Some commands cannot be used depending on the actuator. For details, refer to individual
commands.
XSEL XSEL XSEL
XSEL XSEL XSEL XSEL XSEL ASEL
Command Function -P/Q/ -RX/SX/ -RAX/SAX/ SSEL MSEL TT/TTA Page
-J/K -JX/KX -PX/QX -R/S -RA/SA PSEL
PCT/QCT RXD/SXD RAXD/SAXD
Absolute value
ABS ○ ○ ○ 275
calculation
Set acceleration ○
ACCS ratio in PTP ○ ○ ○ ○ (PCX/PG 331
operation X only)
Declare arch motion
ACHZ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 479
Z-axis
Indicate ACMX
ACMX ○ ○ ○ ○ ○ ○ 344
acceleration
Move
ARCS three-dimensionally ○ ○ ○ ○ ○ ○ ○ ○ ○ 420
along arc
Declare start of
BGPA ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 483
palletizing setting
Output, flag
BT ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 286
[ON, OF, NT]
Move
CIRS three-dimensionally ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 418
along circle
1
XSEL XSEL XSEL
XSEL XSEL XSEL XSEL XSEL ASEL
Command Function -P/Q/ -RX/SX/ -RAX/SAX/ SSEL MSEL TT/TTA Page
-J/K -JX/KX -PX/QX -R/S -RA/SA PSEL
PCT/QCT RXD/SXD RAXD/SAXD
PTP Continuous ○ ○
CNTP Operation Mode (V1.10 (V1.10 402
Setting or later) or later)
Compare number of
variable
CP
○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 282
comparisons based
on free comparison
Set deceleration ○
DCLS ratio for PTP ○ ○ ○ (PCX/PG 333
operation X only)
Define coordinates
○
of simple
DFIF ○ ○ ○ (PCX/PG 378
interference check
X only)
zone
Define tool ○
DFTL ○ ○ ○ ○ 357
coordinate system (TTA only)
Define load ○
DFWK ○ ○ ○ ○ 364
coordinate system (TTA only)
Set spline division
DIS ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 348
distance
Angle conversion
DTOR ○ ○ ○ 274
(degrees to radians)
Loop
DW
[EQ, NE, GT, GE, LT, ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 440
LE]
○
○
Get motor current (V1.18 (TTA only
ECMD1 ○ ○ ○ ○ ○ ○ ○ ○ 511
value V1.22
or later) or later)
Set torque
○ Δ
limit/detection time
ECMD250 ○ ○ ○ ○ ○ ○ (V0.52 (With a 524
for torque limit over
or later) condition)
error
Conversion from
each axis
ECMD280 coordinates to work ○ 527
coordinates in wrist
unit equipped robot
Conversion from
work coordinates to
ECMD281 each axis ○ 528
coordinates in wrist
unit equipped robot
2
XSEL XSEL XSEL
XSEL XSEL XSEL XSEL XSEL ASEL
Command Function -P/Q/ -RX/SX/ -RAX/SAX/ SSEL MSEL TT/TTA Page
-J/K -JX/KX -PX/QX -R/S -RA/SA PSEL
PCT/QCT RXD/SXD RAXD/SAXD
Conversion from tool
coordinates to work
ECMD282 ○ 530
coordinates in wrist
unit equipped robot
Conversion from
each axis
ECMD290 coordinates to work ○ 527
coordinates in wrist
unit equipped robot
Conversion from
work coordinates to
ECMD291 each axis ○ 528
coordinates in wrist
unit equipped robot
Conversion from tool
coordinates to work
ECMD292 ○ 530
coordinates in wrist
unit equipped robot
User system error
ECMD300 ○ ○ 532
output
Declare end of
EDPA ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 484
palletizing setting
Declare end of
EDSL ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 448
SLCT
Declare execution
destination when IF
ELSE ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 438
command condition
is not satisfied
Logical exclusive
EOR ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 278
OR
Get acceleration
GACC ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 324
data
○
Get current arm
GARM ○ ○ ○ ○ (PCX/PG 452
system
X only)
Get deceleration
GDCL ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 325
data
Get definition
○
coordinates of
GTIF ○ ○ ○ ○ (PCX/PG 382
simple interference
X only)
check zone
Get tool coordinate ○
GTTL system definition ○ ○ ○ ○ ○ (TTA 362
data only)
Acquirement of ○
GTAM target arm system ○ ○ (PCX/PG 322
data X only)
○
Image capture
GTVD ○ ○ ○ (PC/PG 625
command
only)
Get load coordinate ○
GTWK system definition ○ ○ ○ ○ ○ (TTA 369
data only)
Declare port to
HOLD ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 342
pause
3
XSEL XSEL XSEL
XSEL XSEL XSEL XSEL XSEL ASEL
Command Function -P/Q/ -RX/SX/ -RAX/SAX/ SSEL MSEL TT/TTA Page
-J/K -JX/KX -PX/QX -R/S -RA/SA PSEL
PCT/QCT RXD/SXD RAXD/SAXD
Compare
IF [EQ, NE, GT, GE, LT, ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 436
LE]
Input BCD
INB ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 291
(8 digits max.)
Input binary
IN ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 290
(32 bits max.)
Connected
Destination IP
IPCN address / Port ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 467
Number Setting
Jog
JW ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 406
[FN, FF, BN, BF]
○
Change current arm
LEFT ○ ○ ○ ○ (PCX/PG 373
system to left arm
X only)
○ ○
LSFT Logic Shifted to Left (V1.10 (V1.10 280
or later) or later)
○
Move by direct value
MOVD ○ ○ (PCX/PG 399
specification
X only)
Move to specified
MOVL position via ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 393
interpolation
Move to specified
MOVP ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 391
position
Move incrementally ○
MVDI by direct value ○ ○ (PC/PG 400
specification only)
Move to relative
MVLI position via ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 397
interpolation
Move to relative
MVPI ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 395
position
○ ○
NOT Deny (V1.10 (V1.10 279
or later) or later)
○ ○
Anti-Vibration
(Linear (Linear
NTCH Control Parameter ○ ○ ○ 627
drive drive
Set Select
axis) axis)
Set arch-motion
OFAZ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 482
Z-axis offset
Set palletizing Z-axis
OFPZ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 497
offset
OR Logical OR ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 277
4
XSEL XSEL XSEL
XSEL XSEL XSEL XSEL XSEL ASEL
Command Function -P/Q/ -RX/SX/ -RAX/SAX/ SSEL MSEL TT/TTA Page
-J/K -JX/KX -PX/QX -R/S -RA/SA PSEL
PCT/QCT RXD/SXD RAXD/SAXD
Declare branching
destination when
OTHE ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 447
condition is not
satisfied
Output current
OTPS ○ 298
position
Output binary
OUT ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 292
(32 bits max.)
Output BCD
OUTB ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 293
(8 digits max.)
Output relay for
OUTR ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 175
ladder
Assign position
PACC ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 318
acceleration
Palletizing point arch
PACH ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 506
motion
Get palletizing
PAPG ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 503
calculation data
Set palletizing
PAPI ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 485
counts
Set palletizing
PAPN ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 486
pattern
Set PUSH command
PAPR ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 350
distance, speed
Set palletizing points
PAPS for 3-point or 4-point ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 490
teaching
Set palletizing
PAPT ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 488
pitches
Set palletizing
PAST ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 489
reference point
Assign position
PDCL ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 319
deceleration
Decrement
PDEC palletizing position ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 500
number by 1
Wait for end of
operation of axis
PEND ○ 435
using current
program
Set palletizing
PEXT ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 496
composition
Assign position to
PGET ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 309
variable 199
Increment palletizing
PINC position number by ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 499
1
Move to palletizing ○
PMVL points via ○ ○ ○ ○ ○ ○ ○ ○ ○ (PC/PG ○ 505
interpolation only)
Move to palletizing
PMVP ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 504
points via PTP
Set PATH output
POTP ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 349
type
Assign value of
PPUT ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 310
variable 199
Read current axis
PRDQ position ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 314
(1 axis direct)
5
XSEL XSEL XSEL
XSEL XSEL XSEL XSEL XSEL ASEL
Command Function -P/Q/ -RX/SX/ -RAX/SAX/ SSEL MSEL TT/TTA Page
-J/K -JX/KX -PX/QX -R/S -RA/SA PSEL
PCT/QCT RXD/SXD RAXD/SAXD
Read current axis
PRED ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 313
position
Set palletizing
PSET position number ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 501
directly
Confirm position
PSIZ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 321
size
○
Substitution of target
PTAM ○ ○ (PCX/PG 315
arm system data
X only)
Get palletizing
PTNG ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 498
position number
Specify current arm ○
PTPD as PTP target arm ○ ○ ○ ○ (PCX/PG 376
system X only)
Specify current arm ○
PTPE as PTP target arm ○ ○ ○ ○ (PCX/PG 377
system X only)
Specify left arm as ○
PTPL PTP target arm ○ ○ ○ ○ (PCX/PG 375
system X only)
Specify right arm as ○
PTPR PTP target arm ○ ○ ○ ○ (PCX/PG 374
system X only)
Set palletizing arch
PTRG ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 495
triggers
Change push torque
PTRQ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 413
limit parameter
Confirm position
PTST ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 316
data
Move by push
PUSH ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 411
motion
Assign position
PVEL ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 317
speed
○ ○
Set quick return
QRTN ○ ○ ○ ○ (V1.10 ○ ○ (PC/PG ○ 351
mode
or later) only)
Assign RC axis
position acceleration/
RGAD ○ ○ ○ ○ 544
deceleration to
variable 199
Assign RC axis
RGIP position positioning ○ ○ ○ ○ 545
width to variable 199
Assign RC axis
position
RGTQ ○ ○ ○ ○ 546
current-limiting value
to variable 199
Assign RC axis
RGVL position speed to ○ ○ ○ ○ 543
variable 199
Return RC axis to its
RHOM ○ ○ ○ ○ 550
home
○
Change right arm of
RIGH ○ ○ ○ ○ (PCX/PG 372
current arm system
X only)
Incremental move by
RMDI RC axis direct ○ ○ ○ ○ 554
specification
Incremental move by
RMPI RC axis position ○ ○ ○ ○ 552
specification
Move by RC axis
RMVD ○ ○ ○ ○ 553
direct specification
Move by RC axis
RMVP ○ ○ ○ ○ 551
position specification
6
XSEL XSEL XSEL
XSEL XSEL XSEL XSEL XSEL ASEL
Command Function -P/Q/ -RX/SX/ -RAX/SAX/ SSEL MSEL TT/TTA Page
-J/K -JX/KX -PX/QX -R/S -RA/SA PSEL
PCT/QCT RXD/SXD RAXD/SAXD
Assign variable 199
to RC axis position
RPAD ○ ○ ○ ○ 540
acceleration/
deceleration
Copy RC axis
RPCP ○ ○ ○ ○ 536
position data
Clear RC axis
RPCR ○ ○ ○ ○ 535
position data
Assign RC axis
RPGT position to variable ○ ○ ○ ○ 533
199
Assign variable 199
RPIP to RC axis position ○ ○ ○ ○ 541
positioning band
Assign variable 199
RPPT ○ ○ ○ ○ 534
to RC axis position
Read current RC
RPRD ○ ○ ○ ○ 537
axis position
Read current RC
RPRQ axis position (1 axis, ○ ○ ○ ○ 538
direct)
Assign variable 199
RPTQ to RC axis position ○ ○ ○ ○ 542
current-limiting value
Move by RC axis
RPUS push-motion ○ ○ ○ ○ 555
operation
Assign variable 199
RPVL to RC axis position ○ ○ ○ ○ 539
speed
○ ○
Logic Shifted to
RSFT (V1.10 (V1.10 281
Right
or later) or later)
Turn RC axis servo
RSOF ○ ○ ○ ○ 549
OFF
Turn RC axis servo
RSON ○ ○ ○ ○ 548
ON
Decelerate RC axis
RSTP ○ ○ ○ ○ 556
to stop
Angle conversion
RTOD ○ ○ ○ 274
(radians to degrees)
Compare character
SCMP ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 469
strings
Copy character
SCPY ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 468
string
Set sigmoid motion
SCRV ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 334
ratio
Specify error type for ○
SEIF simple contact check ○ ○ ○ ○ (PCX/PG 381
area X only)
Declare start of
SLCT ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 444
multi-branching
○
Select tool
SLTL ○ ○ ○ ○ ○ (TTA 360
coordinate system
only)
○
Declare use of
SLVS ○ ○ ○ (PC/PG 623
Vision System
only)
○
Select load
SLWK ○ ○ ○ ○ ○ (TTA 367
coordinate system
only)
Specify output for ○
SOIF simple interference ○ ○ ○ ○ (PCX/PG 380
check zone X only)
7
XSEL XSEL XSEL
XSEL XSEL XSEL XSEL XSEL ASEL
Command Function -P/Q/ -RX/SX/ -RAX/SAX/ SSEL MSEL TT/TTA Page
-J/K -JX/KX -PX/QX -R/S -RA/SA PSEL
PCT/QCT RXD/SXD RAXD/SAXD
Move relatively
between positions ○
TMLI on tool coordinate ○ ○ ○ ○ ○ (TTA 430
system via only)
interpolation
Move relatively
○
between positions
TMPI ○ ○ ○ ○ ○ (TTA 429
on tool coordinate
only)
system
○
Set read timeout
TMRD ○ ○ (TT 461
value
only)
○
Set read timeout
TMRW ○ ○ ○ ○ ○ ○ ○ ○ ○ (TTA 463
value
only)
Specify processing
to be performed
TPCD ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 509
when input condition
is not specified
○ ○
Image capturing and (Linear (Linear
TRAC ○ ○ ○ ○ 620
tracking command drive drive
axis) axis)
Declare use of
TRMD ○ ○ ○ ○ ○ ○ 619
Conveyor Tracking
Convert character
VAL ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 474
string data; decimal
Convert character
VALH string data; ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 475
hexadecimal
○
Set speed ratio for
VELS ○ ○ ○ ○ (PCX/PG 327
PTP operation
X only)
8
XSEL XSEL XSEL
XSEL XSEL XSEL XSEL XSEL ASEL
Command Function -P/Q/ -RX/SX/ -RAX/SAX/ SSEL MSEL TT/TTA Page
-J/K -JX/KX -PX/QX -R/S -RA/SA PSEL
PCT/QCT RXD/SXD RAXD/SAXD
Branch character
WS string ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 446
[EQ, NE]
Wait for I/O, flag
WT ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 289
[ON, OF]
Wait for zone OFF,
WZFA ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 455
with AND
Wait for zone OFF,
WZFO ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 456
with OR
Wait for zone ON,
WZNA ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 453
with AND
Wait for zone ON,
WZNO ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 454
with OR
Extension motion
control axis patterns
XA16 ○ ○ 576
setting
(16 to 31 axes)
Extension motion
XACH control axis arch ○ ○ 614
motion
Extension motion
control axis arch
XACZ ○ ○ 616
motion Z-axis
declaration
Extension motion
control axis arch
XAEX ○ ○ 616
motion composition
setting
Acquire extension ○
XAST motion control axis (0 to 15 ○ ○ ○ 611
status axes)
Extension motion
XATG control axis arch ○ ○ 617
trigger setting
Set extension
XAXS motion control axis ○ ○ ○ ○ 575
patterns
Start synchronizing
extension motion
control axis
XCAS ○ ○ ○ 593
electronic cam
(indicating main
axis)
Clear input counter
XCRP record for extension ○ ○ ○ 559
motion control axis
Move extension
motion control axis
XCTM ○ ○ ○ 604
individual electronic
cam (indicating time)
Read extension
XGAC motion control axis ○ ○ ○ ○ 572
acceleration data
Read extension
XGDC motion control axis ○ ○ ○ ○ 573
deceleration data
Read extension
motion control axis
XGIP ○ ○ ○ ○ 574
poaitioning width
data
Acquire current
record of extension
XGTP ○ ○ 560
motion control axis
input counter
Read extension
XGVL motion control axis ○ ○ ○ ○ 571
speed data
Return extension
XHOM motion control axis ○ ○ ○ ○ 579
to home position
Perform extension
XJ motion control axis ○ ○ ○ ○ 588
jog operation
Move extension
motion control axis
XMDI ○ ○ ○ ○ 585
to directly indicated
relative position
Move extension
motion control axis
XMLI ○ ○ ○ ○ 583
for position relative
interpolation
9
XSEL XSEL XSEL
XSEL XSEL XSEL XSEL XSEL ASEL
Command Function -P/Q/ -RX/SX/ -RAX/SAX/ SSEL MSEL TT/TTA Page
-J/K -JX/KX -PX/QX -R/S -RA/SA PSEL
PCT/QCT RXD/SXD RAXD/SAXD
Perform extension
motion control axis
XMPI ○ ○ ○ ○ 581
position relative
movement
Move extension
motion control axis
XMVD ○ ○ ○ ○ 584
to directly indicated
absolute position
Move extension
motion control axis
XMVL ○ ○ ○ ○ 582
for position indicated
interpolation
Move extension
XMVP motion control axis ○ ○ ○ ○ 580
to indicated position
Extension motion
control axis arch
XOAZ ○ ○ 618
motion Z-axis offset
setting
Write extension
motion control board
XPAC ○ ○ ○ ○ 568
axis acceleration
data
Copy extension
XPCP motion control board ○ ○ ○ ○ 564
axis position data
Erase extension
XPCR motion control axis ○ ○ ○ ○ 563
position data
Write extension
XPDC motion control axis ○ ○ ○ ○ 569
deceleration data
Waiting for
extension motion
control axis to finish
XPED ○ ○ ○ ○ 589
positioning operation
of axis used by
self-program
Read extension
XPGT motion control axis ○ ○ ○ ○ 561
position data
Write extension
motion control axis
XPIP ○ ○ ○ ○ 570
positioning complete
width data
Write extension
XPPT motion control axis ○ ○ ○ ○ 562
position data
Read extension
motion control axis
XPRD ○ ○ ○ ○ 565
current command
position
Read extension
motion control axis
XPRQ current command ○ ○ ○ ○ 566
position (single-axis
direct)
Extension motion
XPTH control axis path ○ ○ 586
operation
Write extension
XPVL motion control axis ○ ○ ○ ○ 567
speed data
Start synchronizing
of extension motion
XSFS ○ ○ ○ 606
control axis
electronic shaft
Extension motion
XSOF control axis servo ○ ○ ○ ○ 578
OFF
Extension motion
XSON control axis servo ○ ○ ○ ○ 577
ON
Cancel operation of
XSTP extension motion ○ ○ ○ ○ 590
control axis
Synchronizing of
extension motion
XSYE ○ ○ ○ 609
control axis
completed
Waiting for
extension motion
control axis
XWIP ○ ○ ○ ○ 591
positioning complete
signal to be turned
ON
10
Table of Contents of Commands by Function
Some commands cannot be used depending on the actuator. For details, refer to individual
commands.
XSEL XSEL XSEL XSEL XSEL
XSEL XSEL XSEL ASEL
Category Function Command -J/K/ -P/Q/ -JX/KX/ -RX/SX/ -RAX/SAX/ SSEL MSEL TT/TTA Page
-PX/QX -R/S -RA/SA PSEL
KE/KT/KET PCT/QCT KETX RXD/SXD RAXD/SAXD
Angle conversion
DTOR ○ ○ ○ 274
(degrees to radians)
Angle conversion
RTOD ○ ○ ○ 274
(radians to degrees)
Absolute value
ABS ○ ○ ○ 275
calculation
Logical OR OR ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 277
○ ○
Deny NOT (V1.10 (V1.10 279
or later) or later)
○ ○
Logic Shifted to Left LSFT (V1.10 (V1.10 280
or later) or later)
○ ○
Logic Shifted to Right RSFT (V1.10 (V1.10 281
or later) or later)
Comparison
11
XSEL XSEL XSEL XSEL XSEL
XSEL XSEL XSEL ASEL
Category Function Command -J/K/ -P/Q/ -JX/KX/ -RX/SX/ -RAX/SAX/ SSEL MSEL TT/TTA Page
-PX/QX -R/S -RA/SA PSEL
KE/KT/KET PCT/QCT KETX RXD/SXD RAXD/SAXD
Output, flag
BT ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 286
[ON, OF, NT]
Set IN (B)/OUT (B)
FMIO ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 294
command format
I/O, flag operation
Input binary
IN ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 290
(32 bits max.)
Input BCD
INB ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 291
(8 digits max.)
Output current
OTPS ○ 298
position
Output binary
OUT ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 292
(32 bits max.)
Output BCD
OUTB ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 293
(8 digits max.)
Wait for I/O, flag
WT ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 289
[ON, OF]
Declare jump
TAG ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 300
destination
○
Acquirement of target
GTAM ○ ○ (PCX/PGX 322
arm system data
only)
Assign position
PACC ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 318
acceleration
Assign position
PDCL ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 319
deceleration
Assign position to
PGET ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 309
variable 199
Assign value of
PPUT ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 310
variable 199
Read current axis
position PRDQ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 314
(1 axis direct)
Read current axis
PRED ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 313
position
○
Substitution of target
PTAM ○ ○ (PCX/PGX 315
arm system data
only)
Assign position
PVEL ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 317
speed
12
XSEL XSEL XSEL XSEL XSEL
XSEL XSEL XSEL ASEL
Category Function Command -J/K/ -P/Q/ -JX/KX/ -RX/SX/ -RAX/SAX/ SSEL MSEL TT/TTA Page
-PX/QX -R/S -RA/SA PSEL
KE/KT/KET PCT/QCT KETX RXD/SXD RAXD/SAXD
○
Set acceleration ratio
ACCS ○ ○ ○ ○ (PCX/PGX 331
for PTP operation
only)
Indicate ACMX
ACMX ○ ○ ○ ○ ○ ○ 344
acceleration
○
Set deceleration ratio
DCLS ○ ○ ○ ○ (PCX/PGX 333
for PTP operation
only)
Get defined ○
coordinate for simple GTIF ○ ○ ○ ○ (PCX/PGX 382
contact check area only)
Get defined data of
○
tool coordinate GTTL ○ ○ ○ ○ ○ 362
(TTA only)
system
Get defined data of
○
load coordinate GTWK ○ ○ ○ ○ ○ 369
(TTA only)
system
Actuator control declaration
○
Change left arm of
LEFT ○ ○ ○ ○ (PCX/PGX 373
current arm system
only)
13
XSEL XSEL XSEL XSEL XSEL
XSEL XSEL XSEL ASEL
Category Function Command -J/K/ -P/Q/ -JX/KX/ -RX/SX/ -RAX/SAX/ SSEL MSEL TT/TTA Page
-PX/QX -R/S -RA/SA PSEL
KE/KT/KET PCT/QCT KETX RXD/SXD RAXD/SAXD
○
Set speed ratio for
VELS ○ ○ ○ ○ (PCX/PGX 327
PTP operation
Actuator control declaration
only)
○
Set tip load
WGHT ○ ○ ○ (PCX/PGX 383
mass/inertial moment
only)
Tip load condition
WGT2 ○ ○ 385
setting 2
PTP Continuous ○ ○
Operation Mode CNTP (V1.10 (V1.10 402
Setting or later) or later)
Move along arc
(ARC2 is ARC ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 433
recommended)
Move along arc 2
ARC2 ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 416
(arc interpolation)
Move along arc via
specification of center
ARCC ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 426
position and center
angle
Move along arc via
specification of end
ARCD ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 424
position and center
angle
Move three-
dimensionally along ARCS ○ ○ ○ ○ ○ ○ ○ ○ ○ 420
arc
Jog
J
W
○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 406
[FN, FF, BN, BF]
○
Move by direct value
MOVD ○ ○ (PC/PG 399
specification
only)
Actuator control command
Move to specified
position via MOVL ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 393
interpolation
Move to specified
MOVP ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 391
position
Move incrementally ○
by direct value MVDI ○ ○ (PC/PG 400
specification only)
Move to relative
position via MVLI ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 397
interpolation
Move to relative
MVPI ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 395
position
Move relatively
between positions on
○
tool coordinate TMLI ○ ○ ○ ○ ○ 430
(TTA only)
system via
interpolation
Move relatively
between positions on ○
TMPI ○ ○ ○ ○ ○ 429
tool coordinate (TTA only)
system
14
XSEL XSEL XSEL XSEL XSEL
XSEL XSEL XSEL ASEL
Category Function Command -J/K/ -P/Q/ -JX/KX/ -RX/SX/ -RAX/SAX/ SSEL MSEL TT/TTA Page
-PX/QX -R/S -RA/SA PSEL
KE/KT/KET PCT/QCT KETX RXD/SXD RAXD/SAXD
Declare execution
Structural IF
destination when IF
ELSE ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 438
command condition is
not satisfied
Compare [EQ, NE,
IF ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 436
GT, GE, LT, LE]
Declare branching
destination when
Multi-branching
OTHE ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 447
condition is not
satisfied
Declare start of
SLCT ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 444
multi-branching
Branch value [EQ,
WH ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 445
NE, GT, GE, LT, LE]
Branch character
WS ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 446
string [EQ, NE]
○
Get current arm
acquisition
Convert character
STR ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 472
string; decimal
Convert character
STRH ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 473
string; hexadecimal
Convert character
VAL ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 474
string data; decimal
Convert character
string data; VALH ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 475
hexadecimal
15
XSEL XSEL XSEL XSEL XSEL
XSEL XSEL XSEL ASEL
Category Function Command -J/K/ -P/Q/ -JX/KX/ -RX/SX/ -RAX/SAX/ SSEL MSEL TT/TTA Page
-PX/QX -R/S -RA/SA PSEL
KE/KT/KET PCT/QCT KETX RXD/SXD RAXD/SAXD
Set palletizing
PAST ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 489
reference point
Set palletizing
PEXT ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 496
composition
Decrement palletizing
PDEC ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 500
position number by 1
Increment palletizing
PINC ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 499
position number by 1
Set palletizing
position number PSET ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 501
directly
Get palletizing
PTNG ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 498
position number
Palletizing-point arch
PACH ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 506
motion
movement
Palletizing
Move to palletizing ○
points via PMVL ○ ○ ○ ○ ○ ○ ○ ○ ○ (PC/PG ○ 505
interpolation only)
Move to palletizing
PMVP ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 504
points via PTP
ladder
ladder task
Specify processing to
be performed when
TPCD ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ 509
input condition is not
specified
16
XSEL XSEL XSEL XSEL XSEL
XSEL XSEL XSEL ASEL
Category Function Command -J/K/ -P/Q/ -JX/KX/ -RX/SX/ -RAX/SAX/ SSEL MSEL TT/TTA Page
-PX/QX -R/S -RA/SA PSEL
KE/KT/KET PCT/QCT KETX RXD/SXD RAXD/SAXD
○
○
Get motor current (TTA only
ECMD1 ○ ○ ○ ○ ○ ○ ○ ○ (V1.18 511
value V1.22
or later)
or later)
Get home sensor
ECMD2 ○ ○ ○ ○ ○ 512
status
Get overrun sensor
ECMD3 ○ ○ ○ ○ ○ 513
status
Get creep sensor
ECMD4 ○ ○ ○ ○ ○ 514
status
Get axis operation
ECMD5 ○ ○ ○ ○ ○ ○ ○ ○ 515
status
Current position ○
○
acquirement on each ECMD6 ○ (V1.20 ○ ○ 516
(TTA only)
axis system or later)
Get total movement ○
ECMD7 ○ 517
count (TTA only)
○
Get total mileage ECMD8 ○ 518
(TTA only)
○
Get position deviation ECMD9 ○ 519
(TTA only)
○ ○
Acquirement of ECMD
(V1.10 (V1.10 520
Overload Level 10
or later) or later)
Acquirement of ○ ○
ECMD
Encoder Overheated (V1.10 (V1.10 521
11
Level or later) or later)
Extended commands
ECMD
Get parameter ○ ○ ○ ○ ○ ○ ○ ○ 522
20
Set torque limit/ ○ Δ
ECMD
detection time for ○ ○ ○ ○ ○ ○ (V0.52 (With a 524
250
torque limit over error or later) condition)
Conversion from
each axis coordinates
ECMD
to work coordinates ○ 527
280
in wrist unit equipped
robot
Conversion from
work coordinates to
ECMD
each axis coordinates ○ 528
281
in wrist unit equipped
robot
Conversion from tool
coordinates to work ECMD
○ 530
coordinates in wrist 282
unit equipped robot
Conversion from
each axis coordinates
ECMD
to work coordinates ○ 527
290
in wrist unit equipped
robot
Conversion from
work coordinates to
ECMD
each axis coordinates ○ 528
291
in wrist unit equipped
robot
Conversion from tool
coordinates to work ECMD
○ 530
coordinates in wrist 292
unit equipped robot
User system error ECMD
○ ○ 532
output 300
○
Vision System
System
only)
○
Image Caputure
GTVD ○ ○ ○ (PC/PG 625
command
only)
Declare use of
TRMD ○ ○ ○ ○ ○ ○ 619
Conveyor Tracking
Conveyor
Tracking
Related
○ ○
Image capturing and (Linear (Linear
TRAC ○ ○ ○ 620
tracking command drive drive
axis) axis)
Anti-Vibration
○ ○
Related
Control
17
RC Gateway Function Commands (Controllers with Gateway Function Only)
speed
Assign variable 199 to
RC axis position
RPAD ○ ○ ○ ○ 540
acceleration/
deceleration
Assign variable 199 to
RC axis position RPIP ○ ○ ○ ○ 541
positioning width
Assign variable 199 to
RC axis position RPTQ ○ ○ ○ ○ 542
current-limiting value
Assign RC axis
position speed to RGVL ○ ○ ○ ○ 543
variable 199
Assign RC axis
position acceleration/
RGAD ○ ○ ○ ○ 544
deceleration to
variable 199
Assign RC axis
position positioning RGIP ○ ○ ○ ○ 545
width to variable 199
Assign RC axis
position
RGTQ ○ ○ ○ ○ 546
current-limiting value
to variable 199
18
XSEL XSEL XSEL XSEL XSEL
XSEL XSEL XSEL ASEL
Category Function Command -J/K/ -P/Q/ -JX/KX/ -RX/SX/ -RAX/SAX/ SSEL MSEL TT/TTA Page
-PX/QX -R/S -RA/SA PSEL
KE/KT/KET PCT/QCT KETX RXD/SXD RAXD/SAXD
19
Extension Motion Control Function Related Commands
motion control
Read extension
motion control axis XPGT ○ ○ ○ ○ 561
position data
Write extension
motion control axis XPPT ○ ○ ○ ○ 562
position data
Erase extension
motion control axis XPCR ○ ○ ○ ○ 563
position data
Copy extension
motion control axis XPCP ○ ○ ○ ○ 564
position data
Read extension
Extension motion control board axis position operations
(0 to 15 axes)
Extension motion
XSON ○ ○ ○ ○ 577
control axis servo ON
Extension motion control board axis actuator
Extension motion
XSOF ○ ○ ○ ○ 578
control axis servo OFF
Return extension
motion control axis to XHOM ○ ○ ○ ○ 579
control commands
home position
Move extension
motion control axis to XMVP ○ ○ ○ ○ 580
indicated position
Perform extension
motion control axis
XMPI ○ ○ ○ ○ 581
position relative
movement
Move extension
motion control axis for
XMVL ○ ○ ○ ○ 582
position indicated
interpolation
20
XSEL XSEL XSEL XSEL XSEL
XSEL XSEL XSEL ASEL
Category Function Command -J/K/ -P/Q/ -JX/KX/ -RX/SX/ -RAX/SAX/ SSEL MSEL TT/TTA Page
-PX/QX -R/S -RA/SA PSEL
KE/KT/KET PCT/QCT KETX RXD/SXD RAXD/SAXD
Move extension
motion control axis for
XMLI ○ ○ ○ ○ 583
position relative
interpolation
Move extension
motion control axis to
XMVD ○ ○ ○ ○ 584
directly indicated
Extension motion control board axis actuator control commands
absolute position
Move extension
motion control axis to
XMDI ○ ○ ○ ○ 585
directly indicated
relative position
Extension motion
control axis path XPTH ○ ○ 586
operation
Perform extension
motion control axis jog XJ ○ ○ ○ ○ 588
operation
Waiting for extension
motion control axis to
finish positioning XPED ○ ○ ○ ○ 589
operation of axis used
by self-program
Cancel operation of
extension motion XSTP ○ ○ ○ ○ 590
control axis
Waiting for extension
motion control axis
XWIP ○ ○ ○ ○ 591
positioning complete
signal to be turned ON
Start synchronizing
extension motion
control axis electronic XCAS ○ ○ 593
cam (indicating main
axis)
Move extension
board axis actuator control
XCTM ○ ○ ○ 604
individual electronic
cam (indicating time)
commands
Start synchronizing of
extension motion
XSFS ○ ○ ○ 606
control axis electronic
shaft
Cancel operation of
extension motion XSYE ○ ○ ○ 609
control axis
Extension motion control board
axis status acquirement
Acquire extension
motion control axis XAST ○ ○ ○ ○ 611
status
Extension motion
control axis arch XACH ○ ○ 614
motion
Extension motion
control axis arch
XACZ ○ ○ 616
motion Z-axis
Arch Motion related
declaration
Extension motion
control axis arch
XAEX ○ ○ 616
motion composition
setting
Extension motion
control axis arch XATG ○ ○ 617
trigger setting
Extension motion
control axis arch
XOAZ ○ ○ 618
motion Z-axis offset
setting
21
22
Safety Guide
“Safety Guide” has been written to use the machine safely and so prevent personal injury or
property damage beforehand. Make sure to read it before the operation of this product.
Operation
No. Description
Description
1 Model ● This product has not been planned and designed for the application
Selection where high level of safety is required, so the guarantee of the protection
of human life is impossible. Accordingly, do not use it in any of the
following applications.
1) Medical equipment used to maintain, control or otherwise affect
human life or physical health.
2) Mechanisms and machinery designed for the purpose of moving or
transporting people (For vehicle, railway facility or air navigation
facility)
3) Important safety parts of machinery (Safety device, etc.)
● Do not use the product outside the specifications. Failure to do so may
considerably shorten the life of the product.
● Do not use it in any of the following environments.
1) Location where there is any inflammable gas, inflammable object or
explosive
2) Place with potential exposure to radiation
3) Location with the ambient temperature or relative humidity exceeding
the specification range
4) Location where radiant heat is added from direct sunlight or other
large heat source
5) Location where condensation occurs due to abrupt temperature
changes
6) Location where there is any corrosive gas (sulfuric acid or
hydrochloric acid)
7) Location exposed to significant amount of dust, salt or iron powder
8) Location subject to direct vibration or impact
● For an actuator used in vertical orientation, select a model which is
equipped with a brake. If selecting a model with no brake, the moving
part may drop when the power is turned OFF and may cause an
accident such as an injury or damage on the work piece.
23
Operation
No. Description
Description
2 Transportation ● When carrying a heavy object, do the work with two or more persons or
utilize equipment such as crane.
● When the work is carried out with 2 or more persons, make it clear who
is to be the leader and who to be the follower(s) and communicate well
with each other to ensure the safety of the workers.
● When in transportation, consider well about the positions to hold,
weight and weight balance and pay special attention to the carried
object so it would not get hit or dropped.
● Transport it using an appropriate transportation measure.
The actuators available for transportation with a crane have eyebolts
attached or there are tapped holes to attach bolts. Follow the
instructions in the instruction manual for each model.
● Do not step or sit on the package.
● Do not put any heavy thing that can deform the package, on it.
● When using a crane capable of 1t or more of weight, have an operator
who has qualifications for crane operation and sling work.
● When using a crane or equivalent equipments, make sure not to hang a
load that weighs more than the equipment’s capability limit.
● Use a hook that is suitable for the load. Consider the safety factor of the
hook in such factors as shear strength.
● Do not get on the load that is hung on a crane.
● Do not leave a load hung up with a crane.
● Do not stand under the load that is hung up with a crane.
3 Storage and ● The storage and preservation environment conforms to the installation
Preservation environment. However, especially give consideration to the prevention
of condensation.
● Store the products with a consideration not to fall them over or drop due
to an act of God such as earthquake.
4 Installation (1) Installation of Robot Main Body and Controller, etc.
and Start ● Make sure to securely hold and fix the product (including the work part).
A fall, drop or abnormal motion of the product may cause a damage or
injury.
Also, be equipped for a fall-over or drop due to an act of God such as
earthquake.
● Do not get on or put anything on the product. Failure to do so may
cause an accidental fall, injury or damage to the product due to a drop
of anything, malfunction of the product, performance degradation, or
shortening of its life.
● When using the product in any of the places specified below, provide a
sufficient shield.
1) Location where electric noise is generated
2) Location where high electrical or magnetic field is present
3) Location with the mains or power lines passing nearby
4) Location where the product may come in contact with water, oil or
chemical droplets
24
Operation
No. Description
Description
4 Installation (2) Cable Wiring
and Start ● Use our company’s genuine cables for connecting between the actuator
and controller, and for the teaching tool.
● Do not scratch on the cable. Do not bend it forcibly. Do not pull it. Do
not coil it around. Do not insert it. Do not put any heavy thing on it.
Failure to do so may cause a fire, electric shock or malfunction due to
leakage or continuity error.
● Perform the wiring for the product, after turning OFF the power to the
unit, so that there is no wiring error.
● When the direct current power (+24V) is connected, take the great care
of the directions of positive and negative poles. If the connection
direction is not correct, it might cause a fire, product breakdown or
malfunction.
● Connect the cable connector securely so that there is no disconnection
or looseness. Failure to do so may cause a fire, electric shock or
malfunction of the product.
● Never cut and/or reconnect the cables supplied with the product for the
purpose of extending or shortening the cable length. Failure to do so
may cause the product to malfunction or cause fire.
(3) Grounding
● The grounding operation should be performed to prevent an electric
shock or electrostatic charge, enhance the noise-resistance ability and
control the unnecessary electromagnetic radiation.
● For the ground terminal on the AC power cable of the controller and the
grounding plate in the control panel, make sure to use a twisted pair
cable with wire thickness 0.5mm2 (AWG20 or equivalent) or more for
grounding work. For security grounding, it is necessary to select an
appropriate wire thickness suitable for the load. Perform wiring that
satisfies the specifications (electrical equipment technical standards).
● Perform Class D Grounding (former Class 3 Grounding with ground
resistance 100Ω or below).
25
Operation
No. Description
Description
4 Installation (4) Safety Measures
and Start ● When the work is carried out with 2 or more persons, make it clear who
is to be the leader and who to be the follower(s) and communicate well
with each other to ensure the safety of the workers.
● When the product is under operation or in the ready mode, take the
safety measures (such as the installation of safety and protection
fence) so that nobody can enter the area within the robot’s movable
range. When the robot under operation is touched, it may result in
death or serious injury.
● Make sure to install the emergency stop circuit so that the unit can be
stopped immediately in an emergency during the unit operation.
● Take the safety measure not to start up the unit only with the power
turning ON. Failure to do so may start up the machine suddenly and
cause an injury or damage to the product.
● Take the safety measure not to start up the machine only with the
emergency stop cancellation or recovery after the power failure. Failure
to do so may result in an electric shock or injury due to unexpected
power input.
● When the installation or adjustment operation is to be performed, give
clear warnings such as “Under Operation; Do not turn ON the power!”
etc. Sudden power input may cause an electric shock or injury.
● Take the measure so that the work part is not dropped in power failure
or emergency stop.
● Wear protection gloves, goggle or safety shoes, as necessary, to
secure safety.
● Do not insert a finger or object in the openings in the product. Failure to
do so may cause an injury, electric shock, damage to the product or
fire.
● When releasing the brake on a vertically oriented actuator, exercise
precaution not to pinch your hand or damage the work parts with the
actuator dropped by gravity.
5 Teaching ● When the work is carried out with 2 or more persons, make it clear who
is to be the leader and who to be the follower(s) and communicate well
with each other to ensure the safety of the workers.
● Perform the teaching operation from outside the safety protection
fence, if possible. In the case that the operation is to be performed
unavoidably inside the safety protection fence, prepare the “Stipulations
for the Operation” and make sure that all the workers acknowledge and
understand them well.
● When the operation is to be performed inside the safety protection
fence, the worker should have an emergency stop switch at hand with
him so that the unit can be stopped any time in an emergency.
● When the operation is to be performed inside the safety protection
fence, in addition to the workers, arrange a watchman so that the
machine can be stopped any time in an emergency. Also, keep watch
on the operation so that any third person can not operate the switches
carelessly.
● Place a sign “Under Operation” at the position easy to see.
● When releasing the brake on a vertically oriented actuator, exercise
precaution not to pinch your hand or damage the work parts with the
actuator dropped by gravity.
* Safety protection Fence : In the case that there is no safety protection
fence, the movable range should be indicated.
26
Operation
No. Description
Description
6 Trial ● When the work is carried out with 2 or more persons, make it clear who
Operation is to be the leader and who to be the follower(s) and communicate well
with each other to ensure the safety of the workers.
● After the teaching or programming operation, perform the check
operation one step by one step and then shift to the automatic
operation.
● When the check operation is to be performed inside the safety
protection fence, perform the check operation using the previously
specified work procedure like the teaching operation.
● Make sure to perform the programmed operation check at the safety
speed. Failure to do so may result in an accident due to unexpected
motion caused by a program error, etc.
● Do not touch the terminal block or any of the various setting switches in
the power ON mode. Failure to do so may result in an electric shock or
malfunction.
7 Automatic ● Check before starting the automatic operation or rebooting after
Operation operation stop that there is nobody in the safety protection fence.
● Before starting automatic operation, make sure that all peripheral
equipment is in an automatic-operation-ready state and there is no
alarm indication.
● Make sure to operate automatic operation start from outside of the
safety protection fence.
● In the case that there is any abnormal heating, smoke, offensive smell,
or abnormal noise in the product, immediately stop the machine and
turn OFF the power switch. Failure to do so may result in a fire or
damage to the product.
● When a power failure occurs, turn OFF the power switch. Failure to do
so may cause an injury or damage to the product, due to a sudden
motion of the product in the recovery operation from the power failure.
27
Operation
No. Description
Description
8 Maintenance ● When the work is carried out with 2 or more persons, make it clear who
and is to be the leader and who to be the follower(s) and communicate well
Inspection with each other to ensure the safety of the workers.
● Perform the work out of the safety protection fence, if possible. In the
case that the operation is to be performed unavoidably inside the safety
protection fence, prepare the “Stipulations for the Operation” and make
sure that all the workers acknowledge and understand them well.
● When the work is to be performed inside the safety protection fence,
basically turn OFF the power switch.
● When the operation is to be performed inside the safety protection
fence, the worker should have an emergency stop switch at hand with
him so that the unit can be stopped any time in an emergency.
● When the operation is to be performed inside the safety protection
fence, in addition to the workers, arrange a watchman so that the
machine can be stopped any time in an emergency. Also, keep watch
on the operation so that any third person can not operate the switches
carelessly.
● Place a sign “Under Operation” at the position easy to see.
● For the grease for the guide or ball screw, use appropriate grease
according to the Instruction Manual for each model.
● Do not perform the dielectric strength test. Failure to do so may result in
a damage to the product.
● When releasing the brake on a vertically oriented actuator, exercise
precaution not to pinch your hand or damage the work parts with the
actuator dropped by gravity.
● The slider or rod may get misaligned OFF the stop position if the servo
is turned OFF. Be careful not to get injured or damaged due to an
unnecessary operation.
● Pay attention not to lose the cover or untightened screws, and make
sure to put the product back to the original condition after maintenance
and inspection works.
Use in incomplete condition may cause damage to the product or an
injury.
* Safety protection Fence : In the case that there is no safety protection
fence, the movable range should be indicated.
9 Modification ● Do not modify, disassemble, assemble or use of maintenance parts not
and Dismantle specified based at your own discretion.
10 Disposal ● When the product becomes no longer usable or necessary, dispose of it
properly as an industrial waste.
● When removing the actuator for disposal, pay attention to drop of
components when detaching screws.
● Do not put the product in a fire when disposing of it.
The product may burst or generate toxic gases.
11 Other ● Do not come close to the product or the harnesses if you are a person
who requires a support of medical devices such as a pacemaker. Doing
so may affect the performance of your medical device.
● See Overseas Specifications Compliance Manual to check whether
complies if necessary.
● For the handling of actuators and controllers, follow the dedicated
instruction manual of each unit to ensure the safety.
28
Alert Indication
The safety precautions are divided into “Danger”, “Warning”, “Caution” and “Notice” according to
the warning level, as follows, and described in the Instruction Manual for each model.
This indicates lower possibility for the injury, but should be kept to
Notice
use this product properly. Notice
29
30
1. Preparation in Advance
SEL language is the simplest type of language in many existing robot languages.
Even though SEL language is an interpreter program, it enables to perform high level controls
1. Preparation in Advance
in simple expression ways.
In this manual, describes how to use SEL language, explanations of command language,
examples of how to create programs for each actuator, etc.
In this section, explains what are needed to be prepared beforehand to start programming, or
the things that you need to know for programming.
31
1.2 Programming Tool
To create a program with SEL language, it is necessary to prepare a dedicated teaching
pendant or PC software provided by IAI.
1. Preparation in Advance
Please confirm in the table below that the controller you intend to use complies with the
programming tool that you have.
Controller
XSEL-J/K/KE/KT/KET
XSEL-RA/RAX/RAXD
XSEL-SA/SAX/SAXD
XSEL-JX/KX/KETX
XSEL-PX/RX/RXD
XSEL-QX/SX/SXD
Model
XSEL-Q/QCT/S
XSEL-P/PCT/R
TT/TTA
MSEL
ASEL
PSEL
SSEL
No. Item
Model
Code of
Programming
Tool
PC software
1 (with RS232C cable IA-101-X-MW { { { { { { { { {
+ emergency stop box)
PC software
(with USB conversion
2 IA-101-X-USBMW { { { { { { { { {
adapter + RS232C cable
+ emergency stop box)
PC software
(with RS232C cable
3 + emergency stop box IA-101-X-MW-J { { { {
+ connector conversion
cable)
PC software
4 (with USB cable + IA-101-X-USB { { { {
dummy plug)
PC software
(with safety category 4
5 IA-101-XA-MW { { {
cable + emergency stop
box)
Teaching pendant {
{
(TTA has
6 SEL-T (J is { { { { { { { { some
excluded) restrictions)
Teaching pendant {
{
(TTA has
7 (with deadman switch) SEL-TD (J is { { { { { { { { some
excluded) restrictions)
Teaching pendant (with {
(TTA has
8 TP adapter for Safety SEL-TG { { { { { { { { { some
Categories) restrictions)
Teaching pendant { { {
9 IA-T-X { (Q is { { { (QX is { { { (TTA is
excluded) excluded) excluded)
Teaching pendant { { {
10 (with deadman switch) IA-T-XD { (Q is { { { (QX is { { { (TTA is
excluded) excluded) excluded)
11 Touch panel teaching TB-01 { { { { { { { { { { { { {
Touch panel teaching
12 TB-01D { { { { { { { { { { { { {
(with deadman switch)
13 Touch panel teaching TB-02 { { { { { { { { { { { { {
Touch panel teaching
14 TB-02D { { { { { { { { { { { { {
(with deadman switch)
{: Applicable, Blank: Not applicable
32
1.3 PC Operational Environment
If you use the PC software, make sure your PC meets the following specifications before
installing the software. [Refer to PC Software Instruction Manual for how to install it.]
1. Preparation in Advance
Also, confirm in the next section that it is applicable for the controller that you intend to use.
33
1.4 Axes on Each Actuator and Precautions
In this section, explains the construction of axis number of each actuator on the 3-dimensional
coordinate system, X, Y and Z.
1. Preparation in Advance
+
00(原点)
(Home) Position No.3 Position No.4····
Position No.1
Axis Number of the position table will be that of the connector that is connected physically to
the actuator motor and encoder cable. [Refer to the instruction manual of the controller for the
details.]
34
1.4.2 Rectangular Axes, TT/TTA
The coordinate value from the home of each axis corresponds to 0mm in position data.
With each axis, positions from the home represent position data.
1. Preparation in Advance
Rectangular
Axes Axis3
(Axis 3)
Axis2
(Axis 2)
0 (Home)
Axis2
(Y-axis)
Axis1 Axis1
(Axis 1) (X-axis)
Axis3
(Z-axis)
Axis Number is that the actuator motor and encoder cable is connected physically.
The coordinate system shown in the figure below is when each actuator motor and encoder
cable is connected to the Axis Number in bracket.
Refer to the instruction manual of each controller for the details.
Axis3
(Axis 3) Axis2
(Axis 2)
Axis2 Axis1
(Y-axis) (X-axis)
0 (Home)
Axis1
(Axis 1)
Axis3
(Z-axis)
35
1.4.3 Rotational Axis
0° 300° + -
To the rotation axes, there is the finite stroke type that operates within the established angular
range and the infinite stroke type that can rotate for a number of times in the indicated
direction.
Refer to the instruction manual of each actuator for the details.
36
1.4.4 Gripper
The coordinate value (opening side) from the home corresponds to 0mm in position data.
1/2 stroke*1 from the home represent position data.
1. Preparation in Advance
*1 Stroke : Distance between both grippers
Finger Attachment
フィンガアタッチメント
[1] Overview
In the groups of axes can be structured by indicating linear axes in parameters, and the work
coordinate system and tool coordinate system can be determined to these axis groups.
The structured axis groups are called “coordinate system definition unit”, and each axis
constructing the unit is called “coordinate system definition unit axis”.
The coordinate system definition unit axis usually makes positioning of the tool attachment
(*1)
datum point or tool tip on the selected work coordinate system. However, it makes positioning
of SEL language commands TMPI, TMLI and XY (tool) coordinate system jog on the tool
coordinate system.
*1 Tool Attachment Datum Point (PT0) : It is a point of datum when a tool is attached.
If there is R-axis in the coordinate system constructing
axes, it will be one point on the rotation axis of R-axis.
If there is no R-axis in the coordinate system
constructing axes, it will be one point on the axis that a
tool is attached.
37
[2] Setting of parameters
Shown below, describes how to set the parameters necessary for using the work and tool
coordinate system features on the linear axis.
1. Preparation in Advance
• By setting All Axes Parameter No. 55 “Coordinate System Definition 1 Control” to “1h”, the
coordinate system definition unit becomes effective.
Initial value Access
No. Parameter name Input range Unit Remarks
(Reference) right
Bits 0-3 : Unit Valid Indication
Coordinate 0~ (0: Invalid,
55 System Definition 0H F
FFFFFFFFH 1: Valid)
1 Control
Bits 4-31 : Reservation
• Indicate the physical axis applicable for the coordinate axes (X-axis, Y-axis, Z-axis and R-axis)
in the coordinate system in All Axes Parameter No. 56 “Coordinate System Definition 1
Constructing Axis Setting”.
Initial value Access
No. Parameter name Input range Unit Remarks
(Reference) right
Bits 0 to 3: X Indicated
Axis Number
Bits 4 to 7: Y Indicated
Axis Number
Coordinate
Bits 8 to 11: Z Indicated
System Definition 0~
56 0H F Axis Number
1 Constructing FFFFFFFFH
Bits 12 to 15: R Indicated
Axis Setting
Axis Number
Bits 16 to 31: Reservation
(No applicable definition
axis when Axis No. = 0)
Stated below are the caution items regarding the setting of All Axes Parameter No. 56. “5C0
Coordinate System Setting Error” will occur when there is an error in setting related to these
caution items described below.
x The patterns of constructing axes that are available to indicate should be either of “XY”,
“XYZ”, “XYZR” and “XYR”.
x Duplicated indication of one physical axis is not allowed.
x It is necessary that the axes indicated as the X, Y and Z-axes are linear driving axes (Each
Axis Parameter No. 1 = “0”), and that the axis indicated as R-axis should be rotary driving
axis (Each Axis Parameter No. 1 = “1”).
x The following axes cannot be indicated.
[Synchronized Slave Axes, Infinite Stroke Axes, Shortcut Control Valid Axes]
Caution :x There may be a case that an error such as “D41 Coordinate System Data
Management Domain ID Error” occurs after conducting parameter writing →
reboot when the coordinate system definition unit gets activated by setting All
Axes Parameter No. 55 for the first time.
In such a case, initialize the memory for the “coordinate system definition data”
using the PC software or a teaching pendant and then reboot the controller.
x There will be limitation in some part of operation if indicated to the coordinate
system definition unit axis. (Refer to [4] for details.)
38
• In case there is an axis indicated as the R-axis in All Axes Parameter No. 56, establish the
setting in All Axes Parameter No. 57 “Coordinate System Definition 1 R-Axis Coordinates
Direction Setting”.
Initial value Input Access
No. Parameter name Unit Remarks
1. Preparation in Advance
(Reference) range right
Relation between direction
Coordinate
of rotation from X-axis to
System Definition
Y-axis and R-axis direction
57 1 R-Axis 0 0~1 F in base coordinate system
Coordinates
0: Same direction
Direction Setting
1: Opposite direction
(All Axes Parameter No. 57 is the parameter to define the relations of X-axis, Y-axis and
R-axis in the base coordinate system.
In case this parameter is not established correctly, the axes will not operate as expected.
Pay attention when establish the setting for this parameter as the controller cannot judge
right or wrong for the contents of the setting.)
Establish the setting as described below for the value in All Axes Parameter No. 57.
x When “Rb Positive Direction” is the same as “Rotating Direction from Xb Positive Direction
to Yb Positive Direction” → “0”
x When “Rb Positive Direction” is opposite “Rotating Direction from Xb Positive Direction to
Yb Positive Direction” → “1”
(Example) In the construction below, Rb positive direction (clockwise) is opposite the rotating
direction from Xb positive direction to Yb positive direction R’ (counterclockwise),
thus All Axes Parameter No. 56 should be set to “1”.
X-Axis
X軸
Y-Axis
Y軸
Z-Axis
Z軸
R-Axis
R軸
Example for unit (Left : Each axis system / Right : Base coordinate system)
39
(Example) Example for Standard Setting in TTA
Setting Value
1h
* Shown above are just examples for standard settings. There would be no problem if change
is made in the setting for All Axes Parameter No. 56 and 57 as long as there is no
contradiction to the composition of the axes.
In such a case, make sure to check the caution items for each parameter so the settings can
be established with no failure.
(Example) In TTA-C4 (XY Home Standard Type)
x Indicate Axis1 as Y-axis and Axis2 as X-axis
→ All Axes Parameter No. 56 = “4312h”, All Axes Parameter No. 57 = “1”
x Construct the coordinate system only with Axis1 and Axis2
→ All Axes Parameter No. 56 = “21h”
40
[3] Coordinates for Coordinate System Definition Unit
The coordinate system for the coordinate system definition unit consists of four coordinate
axes at the maximum (X-axis, Y-axis, Z-axis and R-axis).
At this time, it should be premised that the physical axes applicable for each coordinate axis
satisfy the following conditions.
1. Preparation in Advance
x X-axis, Y-axis and Z-axis are laid orthogonally to each other.
x The center axis of rotary for the R-axis is laid orthogonally to XY plane. (It is parallel to Z-axis if
there is Z-axis.)
x A tool is attached on the R-axis if there is R-axis. (It should be premised that the tool attachment
datum point is on the R rotation axis.)
X-Axis
Y-Axis
Z-Axis
R-Axis
41
[Each Axis System]
Each axis system is the coordinate system specific for each linear axis.
In below, shows each axis system in four-axis type TTA for example.
1. Preparation in Advance
Yj
Xj
Rj
Zj
Example for Each Axis System in Four-Axis Type TTA (XYZ Home Standard Specification)
(Left:TTA-C4 / Right:TTA-A4)
42
[Base Coordinate System]
It is the coordinate system to indicate the position of the datum point for tool installation
against the work piece mount face. Work Coordinate System No. 0 (work coordinate system
1. Preparation in Advance
offset 0) = Base Coordinate System. X axis of Base Coordinate System is described as Xb, Y
axis as Yb, Z axis as Zb and R axis as Rb.
Work Piece
43
Also, when a work piece is mounted on an axis of either X, Y or Z-axis, the positive side of the
base coordinate system is the opposite direction of the operation direction of the physical axis.
For instance, in below explains for when a work piece is mounted on the X-axis in TTA-A4
(XYZ Home Standard Specification).
1. Preparation in Advance
In this case, if moving the X-axis in the positive direction of each axis system, the tool
attachment datum point seems to move in opposite direction to the motion if viewed from the
work piece.
In below, shows the definition related to the home of the base coordinate system and the
direction of coordinates.
Home : The position of the tool attachment datum point under
condition that each axis system coordinates for all the
unit constructing axes = 0
Positive direction of coordinate : The direction that the tool attachment datum point moves
to the work piece mount face when each axis in the each
axis system is moved in the positive direction.
44
[Work Coordinate System]
It is the 32 kinds of coordinate systems defined by the offset of each axis against the base
1. Preparation in Advance
coordinate system.
Work Coordinate System No. 0 is reserved as Base Coordinate System (= Work Coordinate
System Offset = 0) by the system.
45
Also, the direction of the coordinate system rotation (positive direction of R offset) is defined as
described below by the axis structure of the coordinate system definition unit.
x When no R-axis in constructing axes x x x x x x x Rotating Direction from Xb positive
1. Preparation in Advance
46
(1) Setting of Work Coordinate System
When required to define Work Coordinate System No. 1 and No. 2 as shown in the figure
below;
1. Preparation in Advance
Home of Work Coordinate
System No. 2
Home of Work
Coordinate System No. 1
The offset of Work Coordinate System No. 1 and No. 2 are to be set as shown in the table
below.
47
(2) Positioning on Work Coordinate System
Select the work coordinate system to be used and perform positioning.
When selecting the work coordinate system number in SEL program, use SLWK Command.
Also, the selected work coordinate system number is valid after program complete and after
1. Preparation in Advance
rebooting.
1) When having PTP positioning to Position No. 5 and No. 6 on Work Coordinate System No. 1.
Coordinate Data
Position No.
Axis1(X) Axis2(Y) Axis3(Z) Axis4(R)
5 0.000 0.000 0.000 0.000
6 50.000 40.000 0.000 -45.000
40
-25°
Yw1
50
Xw1 -45°
* Example for when the datum surface on the R-axis orients Xb positive direction when
each axis system coordinate on all the unit axes = 0
48
2) When having PTP positioning to Position No. 5 and No. 6 on Work Coordinate System No. 2.
1. Preparation in Advance
System No. X [mm] Y [mm] Z [mm] R [deg]
2 150.000 300.000 0.000 45.000
Coordinate Data
Position No.
Axis1(X) Axis2(Y) Axis3(Z) Axis4(R)
5 0.000 0.000 0.000 0.000
6 50.000 40.000 0.000 -45.000
Yw2
40
45° -45°
50
Xw2
49
[Tool Coordinate System]
It is the 128 kinds of coordinate systems defined by the too (such as hand) dimensions (offset)
1. Preparation in Advance
of that attached on the tool attached position. Work Coordinate System No. 0 is reserved as
offset = 0 of Tool Coordinates by the system.
Select the defined tool coordinate system number, and it is used as the destination point at
positioning of the tool tip as well as the tool attached position.
R-axis
Tool
Tool Tip
Select the defined Tool Coordinate System and operate the R axis with JOG operation, and
such movement as shown in the figure below can be performed.
Regarding directions of X and Y axes (Xtn and Ytn) in tool coordinate system
With R-Axis : Varies relying on coordinates of R-axis
Without R-Axis : Always fixed, the directions depends on R offset of tool coordinate system
50
(1) Setting the tool coordinate system
Set the offset amount from the tool attached position to the tool tip.
Set the tool offset as explained below under condition that each axis system coordinates for all
the unit constructing axes is 0 is taken as the datum.
1. Preparation in Advance
X, Y, Z offset
Distance from the tool attached position to the tool tip along Xb, Yb and Zb
directions of the base coordinate system
R offset
Angle of the working direction with Xb positive direction as the datum
(Definition for direction of angle is the same as work coordinate system R offset)
PT0
Tool tip
ツール先端
The offset of Tool Coordinate System No. 1 are to be set as shown in the table below.
51
(2) Positioning using Tool Coordinate System Offset
Select the work coordinate system to be used and perform positioning.
When selecting the work coordinate system number in SEL program, use SLTL Command.
Also, the selected work coordinate system number is valid after program complete and after
1. Preparation in Advance
rebooting.
1) When having the tool tip on Tool Coordinate System No. 1 to perform PTP positioning
from Position No. 5 to No. 6 in Work Coordinate System No. 1;
Coordinate Data
Position No.
Axis1(X) Axis2(Y) Axis3(Z) Axis4(R)
5 0.000 0.000 0.000 0.000
6 50.000 40.000 0.000 -45.000
52
2) When having the tool tip on Tool Coordinate System No. 1 to perform PTP positioning
from Position No. 5 to No. 6 in Work Coordinate System No. 2;
1. Preparation in Advance
Work Coordinate Offset
System No. X [mm] Y [mm] Z [mm] R [deg]
2 150.000 300.000 0.000 45.000
Coordinate Data
Position No.
Axis1(X) Axis2(Y) Axis3(Z) Axis4(R)
5 0.000 0.000 0.000 0.000
6 50.000 40.000 0.000 -45.000
Yw2
40
45° -45°
50
Xw2
53
[4] Caution Note
Shown below are the cases when limitation is applied to indication for operation of X, Y and
R-axes in the coordinate system definition unit.
Indicated Axis
Operations Subject for Limitation X Y Z R
Pressing Movement (PUSH) ∆*1 ∆*1 ○ ∆*1
Arch motion Z-axis (ACHZ/PCHZ) ∆*1 ∆*1 ○ ×
palletize XY-axis (PASE/PAPS) ○ ○ ○ ×
Circular / Arc Movement (CIRS/ARCS)
3-Dimensional Circular / (CIR/ARC) ○ ○ ○ ×
Arc Movement
Circular / Arc Movement 2 (CIR2/ARC2)
Arc Movement with (ARCC/ARCD) ○ ○ ∆*2 ×
Center Indication
○ : Available for Indication ∆ : Available for Indication with Conditions × : Unavailable for Indication
(*1) Permitted only when operated physical axis is one axis to the indicated axis
(*2) Permitted only when operated axes are two axes in total
Yb Yb
Ywn
Ywn
Xb Xb
Xwn Xwn
○ : Available
○:指定可能for Indication × : Unavailable
×:指定不可 for Indication
54
(2) Note for Other Caution
x While in operation of either X-axis or Y-axis (or R-axis) in a SEL program, or with operation of
1. Preparation in Advance
PC software or TP, X-axis and Y-axis (and R-axis) cannot be operated in another SEL
program.
x When operating either X-axis or Y-axis (or R-axis), it is basically necessary that servo is
turned on and home return operation is completed on all of X-axis and Y-axis (and R-axis). It
could cause an error if operation is attempted with those conditions above unsatisfied.
x In the position edit window for the PC software and teaching tools applicable for the feature,
when operation is made to turn on/off the servo to the coordinate system definition unit axes,
servo turns on/off on all the axes in the applicable units.
x When performing CP operation on the R-axis by setting the tool coordinate system offset, the
operation speed and acceleration / deceleration on the X-axis and Y-axis will be limited so
they do not exceed the indicated velocity and acceleration / deceleration. Therefore, even if
the indicated velocity and acceleration / deceleration are the same, the actual operation
speed may tend to be slower as the tool length (distance from the tool attachment datum
point to the tool tip) gets longer.
x When attempted to perform CP operation or JOG operation on the work coordinate system or
tool coordinate system while the coordinate system definition unit axis is out of the soft limit,
“Error No. C73 Target Track Soft Limit Exceeding Error” could occur. In such a case, use the
PC software or a teaching pendant and have JOG operation on each axis system to have the
axis moved inside the soft limit from outside.
x When a velocity change command is issued to CP operation including the R-axis, the
specification could be limited depending on the condition. Refer in the section for CHVL
Command for details. [Refer to the explanation of section of CHVL command for details.]
x When a synchronized master axis is indicated as the coordinate system definition unit axis,
the applicable synchronized slave axes are to be treated as the axes outside the unit (*
Operation will be synchronized to the synchronized master axis as it does in ordinary use).
Therefore, the work coordinate system and the tool coordinate system are not considered in
the current position display of the slave axes, and will be in the each axis system value.
55
1.4.6 SCARA Robot
[1] Coordinates
1. Preparation in Advance
A horizontal articulated (SCARA) robot has three coordinate systems including the base
coordinate system, work coordinate system and tool coordinate system.
Base coordinate system
56
(1) Base coordinate system (= Work Coordinate System No. 0)
This is a combination of three-dimensional rectangular coordinates and rotational axis
coordinates defined in the robot prior to shipment.
Work Coordinate System No. 0 (= 0 work coordinate system offsets) = Base coordinate
system.
1. Preparation in Advance
* There is no rotary axis on Three-Axis Type SCARA ROBOT (IXP-3N****). (Xb, Yb and Zb)
are available to indicate as the target position.
The XY-axis home is the center of the base (center of rotation of arm 1).
The Z-axis home is the top edge of the effective Z-axis stroke.
The R-axis home is where the D-cut surface faces the -Xb direction.
The X-axis, Y-axis, Z-axis and R-axis on the base coordinate system are indicated as Xb, Yb,
Zb and Rb, respectively.
D-cut surface
of R-axis
Z-axis position
-Zb Zb=0
Stroke
+Zb
57
(2) Work coordinate system
This is a combination of 32 types of three-dimensional rectangular coordinates and rotational
axis coordinates defined by the offset of each axis relative to the base coordinate system.
Note that Work Coordinate System No. 0 is reserved as the base coordinate (= 0 work
coordinate system offset) by the system.
1. Preparation in Advance
* R work coordinate offset is valid also on Three-Axis Type SCARA ROBOT (IXP-3N****).
58
(3) Tool coordinate system
This is a combination of 128 types of three-dimensional rectangular coordinates and rotational
axis coordinates defined by the dimension (offset) of the tool (hand, etc.) installed on the tool
installation surface. Note that Tool Coordinate System No. 0 is reserved as one with 0 tool
coordinate system offset by the system.
1. Preparation in Advance
When a defined tool coordinate system number is selected, the robot uses the tip of the tool,
not the center of the tool installation surface, as the point to reach by positioning.
R-axis
Tool
Tip of tool
When a defined tool coordinate system is elected and the R-axis is jogged, the axis operates
as shown below.
The orientation of the tool coordinate system axis is always the same as the orientation of the
base coordinate system axis on Three-Axis Type SCARA ROBOT (IXP-3N****). As there is no
R axis, the control of the orientation (posture) of the tool cannot be conducted. Therefore,
there may be a case the tool end may not be the reachable point at positioning. Also, the
setting of the tool coordinate system offset on the R axis will be ignored.
59
[2] CP Operation and PTP Operation
How CP operation and PTP operation differ as they pertain to SCARA robots is explained.
(1) CP operation
1. Preparation in Advance
1) Path
The axes move to the target position while interpolating with one another. The path of the
tip of movement can be specified by a command (linear, circle, arc, path movement, etc.).
(Example)
Position No. 1
MOVL 1
Move from the current position to position No. 1
along a straight line.
(Example)
ACC 0.5 Set the acceleration for CP operation to 0.5G.
DCL 0.5 Set the deceleration for CP operation to 0.5G.
VEL 500 Set the speed for CP operation to 500mm/sec.
The speed and acceleration/deceleration for CP operation can also be set in the VEL,
ACC and DCL fields of the position data table.
To set these items as part of position data, do so for each position number. If the VEL,
ACC and DCL fields of the position data table contain settings for a given position number,
they are given priority over the “VEL”, “ACC” and “DCL” commands in the program when
moving to the applicable position number.
60
3) Notes on CP operation
The singular point is where both arms 1 and 2 extend straight.
If the actuator moves near the singular point via CP operation, poor path precision,
vibration (abnormal noise) or error may occur. The following errors may generate:
“D09: Driver overspeed error”, “B91: Main overspeed error”, “C64: Abnormal servo
1. Preparation in Advance
acceleration/deceleration error”, “B74: CP operation limit band entry error”, “CB6:
Deviation overflow error”, etc.
These errors may be avoided by lowering the speed and/or acceleration/deceleration.
If the actual movement path enters the CP operation limit band, on the other hand, “B74:
CP operation limit band entry error (PTP/jogging of axis permitted)” or “C74: Actual
position soft limit over error” occurs.
The width of the CP operation limit band (distance between the solid line and dotted line)
varies depending on the arm length of the robot.
(If the arm length is 500 or 600, this width becomes approx. 0.5mm (All Axes Parameter
No. 50 or No. 227, “Width of CP operation limit band around point directly above Arm
1/2”).)
Avoid writing programs that cause the actuator to pass the CP operation limit band via CP
operation.
The actuator cannot pull out from the CP operation limit band by means of CP operation. In
this case, move the actuator in PTP operation. Exercise caution in situations where the
condition of each arm is not recognized, such as when the program is started, etc.
With CP operation, conduct test operation at low speed at first and confirm absence of
problems, and then gradually raise the speed to an appropriate level.
61
(2) PTP operation
1) Movement path
Each axis moves to the target position at the specified speed. The path of the tip of
movement cannot be specified by a command.
1. Preparation in Advance
(Example)
Position No. 1
MOVP 1
Move from the current position to position No. 1 via
PTP operation.
The arm system may change during movement depending on the operation area and arm
system control command.
PTP operation commands: MOVP MVPI TMPI PACH PMVP ARCH
For details on these commands, refer to “Explanation of Each Command”
(Example)
ACCS 50 Set the acceleration for PTP operation to 50% of the
maximum PTP acceleration.
DCLS 50 Set the deceleration for PTP operation to 50% of the
maximum PTP deceleration.
VELS 50 Set the speed for PTP operation to 50% of the maximum PTP
speed.
62
[3] Settings of Each Axis
(1) Base coordinate system
1) Positioning on Base Coordinate System
To select a work coordinate system number in the SEL program, use a SLWK command.
The work coordinate system selection number that has been set will remain effective even
1. Preparation in Advance
after the program ends or after the system-memory backup battery has been set and
power has been reconnected. (For XSEL-RX/SX/RXD/SXD,
XSEL-RAX/SAX/RAXD/SAXD, MSEL-PCX/PGX battery is not necessary.)
The figure below shows a part of the position edit screen in the PC software for horizontal
articulated robot.
In this example, the following teaching settings are assumed:
Position data for Position No. 1: X = 300, Y = 200, Z = 0, R=0
Position data for Position No. 2: X = -350, Y = 300, Z = 50, R = 30
Position data for Position No. 3: X = -320, Y = -250, Z = 100, R = -30
The selected work coordinate system number is displayed.
Work Coordinate System No. 0 = Base coordinate system
Position No.2
Program example
Position No.1 VELS 50
ACCS 50
SLWK 0 Select Work Coordinate System No. 0
SLTL 0 Select Tool Coordinate System No. 0
EXIT
Position No.3
63
(2) Work coordinate system
1) Setting of Work Coordinate System
Set the offset relative to the base coordinate system.
Home of Work
Coordinate
System No. 2
Home of Work
Coordinate
System No. 1
For the offset of Work Coordinate System No. 1, set Xofw1 = 150, Yofw1 = 200, Zofw1 = 0
and Rofw1 = 30.
For the offset of Work Coordinate System No. 2, set Xofw2 = -400, Yofw2 = 100, Zofw2 =
25 and Rofw2 = -20.
Shown below is the edit screen for work coordinate system definition data in the PC
software for horizontal articulated robot, where Work Coordinate System No. 1 and No. 2
have been set.
* To set a work coordinate system offset in the SEL program, use a DFWK command.
64
2) Positioning on Work Coordinate System
Perform positioning after selecting the work coordinate system you want to use.
To select a work coordinate system number in the SEL program, use a SLWK command.
The work coordinate system selection number that has been selected will remain effective
even after the program ends or after the system-memory backup battery has been set and
1. Preparation in Advance
power has been reconnected. (For XSEL-RX/SX/RXD/SXD,
XSEL-RAX/SAX/RAXD/SAXD, MSEL-PCX/PGX battery is not necessary.)
(Example 1) Position to Position No. 5 and No. 6 via PTP operation on Work Coordinate
System No. 1.
Position No. 6
Program example
:
:
Position No. 5 :
SLWK 1 Select Work Coordinate System No. 1
SLTL 0 Select Tool Coordinate System No. 0
PTPR Specify right arm of PTP target arm system
MOVP 5 Move to Position No. 5.
MOVP 6 Move to Position No. 6.
:
:
:
Position No. 5
65
(Example 2) Position to Position No. 5 and No. 6 via PTP operation on Work Coordinate
System No. 2.
1. Preparation in Advance
Program example
:
:
:
Position No. 6 SLWK 2 Select Work Coordinate System No. 2
SLTL 0 Select Tool Coordinate System No. 0
PTPR Specify right arm of PTP target arm system
MOVP 5 Move to Position No. 5.
MOVP 6 Move to Position No. 6.
:
:
:
Position No. 5
D-cut surface
of R-axis
(- direction)
66
(3) Tool coordinate system
1) Setting of Tool Coordinate System
Set the offset from the center of the tool installation surface to tip of the tool.
(Example) Setting example of tool coordinate system
Define Tool Coordinate System No. 1 as shown below.
1. Preparation in Advance
Offsets under Tool Coordinate System No. 1: Xoft1 = 45, Yoft1 = 35, Zoft1 = -10,
Roft1 = 45
Shown below is the edit screen for tool coordinate system definition data in the PC
software for horizontal articulated robot, where Tool Coordinate System No. 1 has been
set.
* To set a tool coordinate system offset in the SEL program, use a DFTL command.
67
2) Positioning Using Tool Coordinate System Offset
Perform positioning after selecting the tool coordinate system you want to use.
To use a tool coordinate system number in the SEL program, use a SLTL command.
The tool coordinate system selection number that has been selected will remain effective
even after the program ends or after the system-memory backup battery has been set and
1. Preparation in Advance
The orientation of the tool coordinate system axis is always the same as the orientation of the
base coordinate system axis on Three-Axis Type SCARA ROBOT (IXP-3N****). As there is no
R axis, the control of the orientation (posture) of the tool cannot be conducted. Therefore,
there may be a case the tool end may not be the reachable point at positioning. Also, the
setting of the tool coordinate system offset on the R axis will be ignored.
(Example 1) Position the tip of the tool on Tool Coordinate System No. 1 to Position No. 5
and No. 6 on Work Coordinate System No. 1 via PTP operation.
Program example
:
:
Position No. 6 :
SLWK 1 Select Work Coordinate System No. 1
SLTL 1 Select Tool Coordinate System No. 1
PTPR Specify right arm of PTP target arm system
MOVP 5 Move to Position No. 5.
MOVP 6 Move to Position No. 6.
:
:
:
The Z-axis position at the tip of the tool is as follows:
Position No. 5 Zb = 0
Position No. 6 Zb = 20
The figure on the left is viewed from above.
Position No. 5
68
(Example 2) Position the tip of the tool on Tool Coordinate System No. 1 to Position No. 5
and No. 6 on Work Coordinate System No. 2 via PTP operation.
1. Preparation in Advance
Program example
:
:
:
SLWK 2 Select Work Coordinate System No. 2
SLTL 1 Select Tool Coordinate System No. 1
PTPR Specify right arm of PTP target arm system
MOVP 5 Move to Position No. 5.
MOVP 6 Move to Position No. 6.
:
:
:
The Z-axis position at the tip of the tool is as follows:
Position No. 5 Zb = 25
Position No. 6 Zb = 45
69
[4] Arm System
Robot postures are classified into two types: right arm system and left arm system.
1. Preparation in Advance
Right arm system : Condition where arms 1 and 2 extend straight and arm 2 is positioned in
the CCW direction.
Left arm system : Condition where arms 1 and 2 extend straight and arm 2 is positioned in
the CW direction.
The conditions of robot arms are expressed by assuming them as human arms.
The operation area is different between the right arm system and left arm system.
The figure below shows the operation area of each arm system of a robot whose arm length is
500mm.
Operation area of left arm system Operation area of right arm system
70
(2) Arm control commands (dedicated SCARA commands)
The left arm system is defined as “opposite arm system” of the right arm system, and vice
versa.
The actual arm system currently used is defined as “current arm system”.
The arm system scheduled to be used for positioning to the target under a movement
1. Preparation in Advance
command is defined as “target arm system”.
Commands that are used to control the robot arm system include PTPD, PTPE, PTPR, PTPL,
RIGH and LEFT.
PTPD, PTPE, PTPR and PTPL are control declarations for the target arm system of PTP
operation, so they remain valid throughout the program once declared. In the case of CP
operation where the arm system does not change, operation is performed based on the
current arm system without being affected by the above commands.
Only one of PTPD, PTPE, PTPR and PTPL, whichever is executed last, remains valid.
RIGH and LEFT are control commands for the current arm system.
[1] [2]
[4] [3]
How the arm system changes with an arm system control command is explained for each
command.
71
In the figure, the black arrows indicate movements where the arm system changes.
White arrows indicate movements where the arm system does not change.
The shaded arm represents the right arm system. The unshaded arm represents the left arm
system.
1. Preparation in Advance
[PTPD]
Following the execution of a PTPD command, the robot performs positioning by moving
according to the current arm system. The PTPD command prohibits situations where the
current arm system is opposite the target arm system. An attempt to move to an area to which
positioning is impossible without changing to the opposite arm system generates an error
“C73: Target path soft limit over error”. Even when a PTPD command is not executed, this
command is already effective on the robot when the program is started.
72
[PTPE]
Following the execution of a PTPE command, the robot gives priority to the current arm
system for movement and positioning. The PTPE command permits situations where the
current arm system is opposite the target arm system. Therefore, it is permitted to move to an
1. Preparation in Advance
area to which positioning is impossible without changing to the opposite arm system.
To prohibit moving to the area for opposite arm system after permitting such movement,
execute a PTPD command.
73
[PTPR]
Following the execution of a PTPR command, the robot performs positioning according to the
right arm system. The PTPR command limits the target arm system to the right arm system.
Therefore, an attempt to move to an area to which positioning is impossible without changing
to the left arm system generates a “C73: Target path soft limit over error”.
1. Preparation in Advance
Executing a PTPR command alone does not initiate any arm movement.
When a PTP movement command is executed following the execution of a PTPR command
and while the current arm system is the left arm system, the robot moves as it changes from
the left arm system to right arm system and performs positioning according to the right arm
system.
74
[PTPL]
Following the execution of a PTPL command, the robot performs positioning according to the
left arm system. The PTPL command limits the target arm system to the left arm system.
Therefore, an attempt to move to an area to which positioning is impossible without changing
to the right arm system generates a “C73: Target path soft limit over error”.
1. Preparation in Advance
Executing a PTPL command alone does not initiate any arm movement.
When a PTP movement command is executed following the execution of a PTPL command
and while the current arm system is the right arm system, the robot moves as it changes from
the right arm system to left arm system and performs positioning according to the left arm
system.
75
[RIGH]
The RIGH command changes the current arm system to the right arm system.
When a RIGH command is executed while the current arm system is the left arm system, arm
2 operates in such a way that both arms 1 and 2 form a straight line.
Executing a RIGH command while the current arm system is the right arm system does not
1. Preparation in Advance
In the above example, the PTPD command is effective because no arm system control
command other than RIGH is set.
The RIGH command only controls the current arm system. It does not limit positioning via PTP
operation to the right arm system. The arm system used for positioning varies depending on
the control declaration of target arm system (PTPD, PTPE, PTPR, PTPL).
Accordingly, the specific operation that takes place after the execution of a RIGH command
varies depending on the control declaration of target arm system which is currently effective.
76
[LEFT]
The LEFT command changes the current arm system to the left arm system.
When a LEFT command is executed while the current arm system is the right arm system, arm
2 operates in such a way that both arms 1 and 2 form a straight line.
Executing a LEFT command while the current arm system is the left arm system does not
1. Preparation in Advance
initiate any arm movement.
In the above example, the PTPD command is effective because no arm system control
command other than LEFT is set.
The LEFT command only controls the current arm system. It does not limit positioning via PTP
operation to the left arm system. The arm system used for positioning varies depending on the
control declaration of target arm system (PTPD, PTPE, PTPR, PTPL).
Accordingly, the specific operation that takes place after the execution of a LEFT command
varies depending on the control declaration of target arm system which is currently effective.
77
[4] PTP Acceleration/Deceleration Optimization Function
IX-***H Type and IXP Type operates in the optimum acceleration / deceleration speed during
the PTP operation.
1. Preparation in Advance
z PTP acceleration = Maximum acceleration determined by the load mass, etc. × ACCS
command [%]
z PTP deceleration = Maximum deceleration determined by the load mass, etc. × DCLS
command [%]
Caution
• PTP optimum acceleration/deceleration would not work with the ideal acceleration or
deceleration unless the setting of the WGHT Command according the actual robot tip load is
conducted. Make sure to setup the tip load mass setting in the WGHT Command.
• PTP optimum acceleration/deceleration function is effective only for the PTP operation. It cannot
be operated with the optimized acceleration or deceleration for CP operation or direct-movement
axis.
• If an overload error occurs, lower the acceleration setting and/or deceleration setting as deemed
appropriate or make other adjustment such as providing a stopping time after
acceleration/deceleration to prevent an overload error from occurring.
78
[5] Horizontal Movement Optimizing Function responding to Z-axis position
SCARA Robot (IX-***H) can utilize the horizontal movement optimizing function.
(Note) Note that the horizontal movement Z-position optimization function is not available for
1. Preparation in Advance
those such as IX-NNN5020. (Using this function would generate a “D8A: Internal
parameter error for acceleration/deceleration optimization or horizontal movement
Z-position optimization function”.)
Horizontal movement optimizing function by Z-axis is the function to optimize the horizontal
movement condition based on Z-axis position and the tip load mass.
This function can be set effective/ineffective in the all axes parameter No. 51. When a
parameter setting change is made, make sure to reset the software or reboot the system after
the flash ROM writing is complete.
The tip load mass setting by the WGHT Command is required while the SCARA Z-axis position
and horizontal movement optimizing function are effective. Set the load mass setting
accordingly following the transporting work figure.
79
Caution
• It is necessary to set the tip load mass with the WGHT Command while the horizontal
movement optimizing function by Z position is activated. An appropriate result could not be
1. Preparation in Advance
gained unless the mass setting according the actual robot tip load is conducted.
• When the horizontal movement optimizing function by Z position is activated, the speed may not
reach the set speed due to the robot load mass or movement position. Make the horizontal
movement optimization function invalid if it is required to reach the set speed.
* When also it is indicated the Operation 1 = 0 (prioritized to reach set speed automatic division)
for DIS (divide distance setting for spline movement) and DIG (arc angle setting), the
horizontal movement optimization function should be prioritized and may not reach the set
speed.
• When operating individually with the PATH, CIR, ARC, CIRS, ARCS or PSPL Command while
the horizontal movement optimization (CP) by Z position is activated, the movement speed
during the command may vary due to the robot load mass or the movement position. In a
continuous operation with the continuous operation related commands (PATH, PSPL, CIR2,
ARC2, CIRS, ARCS, CIRS, ARCD, ARCC, CIR, ARC Commands, etc.), the movement speed
between the commands may vary due to the operational condition. Make the horizontal
movement optimization (CP) invalid if an evenly paced speed is required.
• When the horizontal movement optimization (CP) by Z axis is activated, the track of CP
operation may slightly vary due to the robot load mass and movement position.
If accuracy in the track is required, make the horizontal movement optimization (CP) invalid.
80
[6] Soft Limit
The soft limit is set in axis-specific parameter No. 7 and 8. Below is an example of a screen
showing the soft limits for IX5020 (arm length 500mm, Z-axis 200mm).
1. Preparation in Advance
The soft limit parameters are set by coordinate values according to each axis system.
Axis 1 corresponds to arm 1, axis 2 corresponds to arm 2, axis 3 corresponds to Z-axis, and
axis 4 corresponds to R-axis.
The setting units is [0.001deg] for arm 1, arm 2 and R-axis (rotational axis). The setting unit for
Z-axis is [0.001mm].
The soft limits are used to limit the range of operation of arm 1, arm 2, Z-axis or R-axis from
the coordinate home of each axis system. It is not affected by the work coordinates system or
tool coordinate systems.
(Note) These parameters have been set to the maximum limits of range of operation at the
factory. Do not set values that would enlarge the range of operation.
81
[Soft limits for arm 2]
The arm 2 position at which the arm forms a straight line with arm 1 defines the coordinate
home of the axis system of arm 2 (0deg).
This position is not affected by the arm 1 position.
Operating angles in the counterclockwise direction (positive direction) from this coordinate
1. Preparation in Advance
home of axis system are limited by the soft limit+ (axis 2 of axis-specific parameter No. 7).
Operating angles in the clockwise direction (negative direction) are limited by the soft limit-
(axis 2 of axis-specific parameter No. 8).
Coordinate home of axis
system of arm 2 (0deg)
Soft limit+
200mm in the
example of PC
software screen
82
[Soft limits for R-axis]
The R-axis position at which the D-cut surface at the tip of the axis faces the center of rotation
of arm 2 defines the coordinate home of the axis system of R-axis (0deg). This position is not
affected by the arm 1 or arm 2 position.
1. Preparation in Advance
Center of rotation of R-axis D-cut surface
When limiting the operating range of the R-axis, you must pay attention to the difference
between the base coordinate system and this axis system.
(Example)
Limit the range of operation of the R-axis to ±180 from the position shown below.
(Limit the R-axis to within ±180deg in the Axis 4 = 0 condition on the base coordinate system.)
-180deg (base coordinate) +Yb
-Xb +Xb
-270deg
(axis system of R-axis)
+90deg
(axis system of R-axis)
Orientation of center
of rotation of arm 2 In this case, the R-axis is limited to within
90deg in the positive direction and within
270deg in the negative direction from the
coordinate home of the axis system of R-axis.
The parameters below are set as follows:
Axis 4 of axis-specific parameter No. 7 = 90000
Axis 4 of axis-specific parameter No. 8 = -270000
83
(2) Monitoring of axis system coordinates
You can use the PC software or teaching pendant to monitor axis system coordinates.
Shown below is an example of a PC software screen. When the jog movement coordinate
system is selected for each axis system in the position data edit window, the currently
displayed position switch to a coordinate based on the selected axis system.
1. Preparation in Advance
(An IX5020 (arm length 500mm, Z-axis 200mm) is located at the position of Axis 1 = 0,
Axis 2 = 500, Axis 3 = 0, Axis 4 = 0 on the base coordinate system.)
[For details on the specific operating procedure, refer to the Instruction Manual for your PC
software or teaching pendant.]
84
[7] Simple Contact Check Zone
The simple contact check zone is an area you must set when checking for contact between
the robot and nearby equipment.
When tool coordinate system No. 0 (= tool coordinate system offset 0) is selected, you can
1. Preparation in Advance
detect an entry into the simple contact check zone by the center position of the tool mounting
surface. When any one of tool coordinate system No. 1 to 127 (= tool coordinate system offset
enabled) is selected, you can detect a similar entry by the tool tip position.
G H
85
(Example) Setting example of simple contact check zones
Define simple contact check zone No. 1, 2 and 3 as shown below.
1. Preparation in Advance
B A
G H
Simple contact
No. 3
Shown below is the screenshot of the edit window for the simple contact check zone definition
data in PC software dedicated for SCARA Robot assuming the simple contact check zones
No. 1, No. 2 and No. 3 are set.
86
• As for simple contact check zone No. 1, an entry into this rectangular solid is not detected if
the Rb is outside the range of 0 to 180°. To detect an entry into this zone regardless of the
R-axis coordinate value, leave the coordinate 1 and 2 fields for zone 1 and R blank.
1. Preparation in Advance
• If either the maximum value or minimum value is not limited, as is the case with simple
contact check zone No. 2 and 3, enter a value outside the range of operation (such as 1000
for zone 2, and 1000 or -1000 for zone 3).
• The maximum value and minimum value can be set under either coordinate 1 or 2.
• According to the above settings, output port No. 311 turns ON upon entry into simple contact
check zone No. 1, output port No. 312 turns ON upon entry into simple contact check zone
No. 2, and output port No. 313 turns ON upon entry into simple contact check zone No. 3.
* Use a DFIF command if you want to set a simple contact check zone within the SEL
program.
Depending on the movement path, a part of the tool other than its tip may enter the simple
contact check zone, as shown below. Exercise due caution because in this case, the entry will
not be detected until the tool tip enters the simple contact check zone.
Tool tip
87
z Caution
In XSEL-RXD/SXD, XSEL-RAXD/SAXD, the definitions of SCARA axes (Axes 1 to 4) are to be
set to Axes 1 to 4 and SCARA axes (Axes 5 to 8) to Axes 5 to 8. SCARA axes (Axes 1 to 4)
and SCARA axes (Axes 5 to 8) cannot be set in one zone number at the same time. (10 zone
1. Preparation in Advance
88
2. Connection with Host System
When transferring the data between the host system (PLC, etc.), it can be selected from the
following methods(Note 1):
1) Use 24V DC I/O.
2) Use the serial communication (RS232C).
3) Use the Fieldbus communication(Note 2) (option). … This is able to control like I/O.
(Note 1) It includes the optional functions.
Data Transfer
I/O Unit
With XSEL-J/K type controllers, the assignments of input and output functions to I/O ports are
fixed and cannot be changed.
90
Output
Pin No. Wire Port No. Standard (factory) setting I/O parameter
color Can be changed by I/O parameter
34 Yellow-4 300 Output of operation-cancellation level No. 46 0: General-purpose output
or higher error (OFF) 1: Output of operation-cancellation level or higher error
(ON)
2: Output of operation-cancellation level or higher error
(OFF)
3: Output of operation-cancellation level or higher error
+ Emergency stop output (ON)
• By default, the ON/OFF state of an input signal is recognized by the controller when the
signal has remained ON/OFF for approx. 4msec or more.
• The setting for this ON/OFF duration can be changed using I/O parameter No. 20, “Input
filtering period”.
91
[2] Virtual I/O Ports
Virtual I/O ports are provided so that the controller can notify internal information. They are
used to warn a low power-supply voltage, notify errors, etc. Use these ports as necessary.
92
XSEL-J/K Virtual Output Ports (Internal Flags)
Port No. Function
7300 Latch cancellation output for a latch signal indicating that all-operation-cancellation factor
is present (7011) (latch is cancelled only when operation-cancellation factor is no longer present)
(7300 will be turned OFF following an attempt to cancel latch.)
7301 to 7380 (For future expansion = Use strictly prohibited)
93
XSEL-JX/KX Virtual Input Ports (Internal Flags)
Port No. Function
7000 Always OFF
7001 Always ON
7002 System-memory backup battery voltage low warning
7003 System-memory backup battery voltage error
2. Connection with Host System
94
XSEL-JX/KX Virtual Output Ports (Internal Flags)
Port No. Function
7300 A latch cancellation signal is output to cancel the latch signal indicating a cause of all-operation cancellation
(7011). (Unlatched only when the cause of operation cancellation is no longer present.)
(7300 is turned OFF after latch cancellation is attempted.)
7301 to 7380 (For future expansion = Use is strictly prohibited)
95
2.1.2 XSEL-P/Q/PCT/QCT Controllers
[1] Input and Output I/O Port
With XSEL-P/Q/PCT/QCT controllers, input and output functions can be assigned to input and
output ports as desired.
For input ports, set input functions using I/O parameters 30 to 45 (input function selections 000
to 015) and then use I/O parameters 283 to 298 to set the port numbers to assign the
2. Connection with Host System
Input
Pin Port Standard Remarks
Wire color Inputs are set as shown in the table prior to the shipment, but you can change these
No. No. (factory-set) function
input functions by setting applicable I/O parameters.
1 Brown-1 +24V input Parameter Parameter name Function
No.
2 Red-1 000 Program start No. 30 Input function 0: General-purpose input
selection 000 1: Program start (input ports 007 to 013, BCD
specification)
2: Program start (input ports 007 to 013, binary
specification)
3: Program start (input ports 008 to 014, BCD
specification)
4: Program start (input ports 008 to 014, binary
specification)
3 Orange-1 001 General-purpose input No. 31 Input function 0: General-purpose input
selection 001 1: Soft reset signal
4 Yellow-1 002 General-purpose input No. 32 Input function 0: General-purpose input
selection 002 1: Servo ON signal
5 Green-1 003 General-purpose input No. 33 Input function 0: General-purpose input
selection 003 1: Auto program start upon power-ON reset or
software reset in AUTO mode
2: Auto program start signal
6 Blue-1 004 General-purpose input No. 34 Input function 0: General-purpose input
selection 004 1: Software interlock of all servo axes (OFF level)
7 Purple-1 005 General-purpose input No. 35 Input function 0: General-purpose input
selection 005 1: Operation pause cancellation input (ON edge)
8 Gray-1 006 General-purpose input No. 36 Input function 0: General-purpose input
selection 006 1: Operation pause signal (OFF level)
9 White-1 007 Program number No. 37 Input function 0: General-purpose input
specification (MSB) selection 007 1: Program number specification (MSB)
10 Black-1 008 Program number No. 38 Input function 0: General-purpose input
specification (bit 2) selection 008 1: Program number specification (bit 2)
11 Brown-2 009 Program number No. 39 Input function 0: General-purpose input
specification (bit 3) selection 009 1: Program number specification (bit 3)
12 Red-2 010 Program number No. 40 Input function 0: General-purpose input
specification (bit 4) selection 010 1: Program number specification (bit 4)
13 Orange-2 011 Program number No. 41 Input function 0: General-purpose input
specification (bit 5) selection 011 1: Program number specification (bit 5)
14 Yellow-2 012 Program number No. 42 Input function 0: General-purpose input
specification (bit 6) selection 012 1: Program number specification (bit 6)
15 Green-2 013 Program number No. 43 Input function 0: General-purpose input
specification selection 013 1: Program number specification (LSB: bit 7)
(LSB: bit 7)
16 Blue-2 014 General-purpose input No. 44 Input function 0: General-purpose input
selection 014 1: Drive-source cutoff cancellation (ON edge)
17 Purple-2 015 General-purpose input No. 45 Input function 0: General-purpose input
selection 015 1: Home return of all effective axes (ON edge)
2: Home return of all effective incremental axes (ON
edge)
18 Gray-2 016 General-purpose input
19 White-2 017 General-purpose input
20 Black-2 018 General-purpose input
21 Brown-3 019 General-purpose input
22 Red-3 020 General-purpose input
23 Orange-3 021 General-purpose input
24 Yellow-3 022 General-purpose input
25 Green-3 023 General-purpose input
26 Blue-3 024 General-purpose input
27 Purple-3 025 General-purpose input
28 Gray-3 026 General-purpose input
29 White-3 027 General-purpose input
30 Black-3 028 General-purpose input
31 Brown-4 029 General-purpose input
32 Red-4 030 General-purpose input
33 Orange-4 031 General-purpose input
96
Output
Remarks
Pin Wire Port Standard Setting When the unit is delivered, the output is set as shown in the table.
No. color No. (in the delivery) However, the output function can be changed using the I/O parameter setting.
Function Parameter Parameter Name Function
No. *1
34 YW-4 300 Error Output at the No.46 Output Function 0: Universal Output
Operation Cancellation No.331 Selection 300 1: Error Output at the Operation Cancellation Level
Level or more (OFF) Output Function or more (ON)
Selection 300 2: Error Output at the Operation Cancellation Level
97
Remarks
Pin Wire Port Standard Setting When the unit is delivered, the output is set as shown in the table.
No. color No. (in the delivery) However, the output function can be changed using the I/O parameter setting.
Function Parameter
No. *1 Parameter Name Function
47 PL-5 313 Universal Output No.59 Output Function 0: Universal Output
No.344 Selection 313 1: System Memory Backup Battery Low Voltage
Output Function Alarm Level or less
Selection 313
2. Connection with Host System
(Area 2)
48 GY-5 314 Universal Output No.60 Output Function 0: Universal Output
No.345 Selection 314 1: Absolute Battery Backup Battery Low Voltage
Output Function Alarm Level or less (All axes OR check: Error level
Selection 314 detection is maintained until power ON reset and
(Area 2) software reset)
49 WT-5 315 Universal Output No.61 Output Function
No.346 Selection 315
Output Function
Selection 315
(Area 2)
50 BK-5 0V Output
• By default, the ON/OFF state of an input signal is recognized by the controller when the
signal has remained ON/OFF for approx. 4msec or more.
• The setting for this ON/OFF duration can be changed using I/O parameter No. 20, “Input
filtering period”.
98
[2] Virtual I/O Port
Virtual I/O ports are provided so that the controller can notify internal information. They are
used to warn a low power-supply voltage, notify errors, etc. Use these ports as necessary.
99
XSEL-P/Q/PCT/QCT Virtual Input Ports (Internal Flags)
Port No. Function
7165 Program No. 65 is being executed (or paused).
(Controller with increased memory capacity (with gateway function) only)
~ ~
7228 Program No. 128 is being executed (or paused).
2. Connection with Host System
100
XSEL-P/Q/PCT/QCT Virtual Output Ports (Internal Flags)
Port No. Function
7300 A latch cancellation signal is output to cancel the latch signal indicating a cause of all-operation cancellation
(7011). (Unlatched only when the cause of operation cancellation is no longer present.)
(7300 is turned OFF after latch cancellation is attempted.)
7301 Axis 1 Gripper Release Output (On; Releasing Command, Off; Gripping Command)
* Each Axis Parameter No. 103 “Brake Output Control Method Select” = 1 (Valid when User Control)
101
2.1.3 XSEL-PX/QX Controllers
[1] Input and Output I/O Port
With XSEL-PX/QX type controllers, the assignments of input and output functions to I/O ports
are fixed and cannot be changed.
Input
2. Connection with Host System
I/O parameter
Pin Port Standard
Wire color Inputs are set as shown in the table prior to the shipment, but you can change these input
No. No. (factory-set) function
functions by setting applicable I/O parameters.
1 Brown-1 +24V input
2 Red-1 000 Program start No. 30 0: General-purpose input
1: Program start (input ports 007 to 013, BCD specification)
2: Program start (input ports 007 to 013, binary specification)
3: Program start (input ports 008 to 014, BCD specification)
4: Program start (input ports 008 to 014, binary specification)
3 Orange-1 001 General-purpose input No. 31 0: General-purpose input
1: Soft reset signal
4 Yellow-1 002 General-purpose input No. 32 0: General-purpose input
1: Servo ON signal
5 Green-1 003 General-purpose input No. 33 0: General-purpose input
1: Auto program start upon power-ON reset or software reset in AUTO mode
2: Auto program start signal
6 Blue-1 004 General-purpose input No. 34 0: General-purpose input
1: Software interlock of all servo axes (OFF level)
7 Purple-1 005 General-purpose input No. 35 0: General-purpose input
1: Operation pause cancellation input (ON edge)
8 Gray-1 006 General-purpose input No. 36 0: General-purpose input
1: Operation pause signal (OFF level)
9 White-1 007 Program number No. 37 0: General-purpose input
specification (MSB) 1: Program number specification (MSB)
10 Black-1 008 Program number No. 38 0: General-purpose input
specification (bit 2) 1: Program number specification (bit 2)
11 Brown-2 009 Program number No. 39 0: General-purpose input
specification (bit 3) 1: Program number specification (bit 3)
12 Red-2 010 Program number No. 40 0: General-purpose input
specification (bit 4) 1: Program number specification (bit 4)
13 Orange-2 011 Program number No. 41 0: General-purpose input
specification (bit 5) 1: Program number specification (bit 5)
14 Yellow-2 012 Program number No. 42 0: General-purpose input
specification (bit 6) 1: Program number specification (bit 6)
15 Green-2 013 Program number No. 43 0: General-purpose input
specification 1: Program number specification (LSB: bit 7)
(LSB: bit 7)
16 Blue-2 014 General-purpose input No. 44 0: General-purpose input
1: Drive-source cutoff cancellation (ON edge)
17 Purple-2 015 General-purpose input No. 45 0: General-purpose input
1: Home return of all effective axes (ON edge)
2: Home return of all effective incremental axes (ON edge)
18 Gray-2 016 General-purpose input
19 White-2 017 General-purpose input
20 Black-2 018 General-purpose input
21 Brown-3 019 General-purpose input
22 Red-3 020 General-purpose input
23 Orange-3 021 General-purpose input
24 Yellow-3 022 General-purpose input
25 Green-3 023 General-purpose input
26 Blue-3 024 General-purpose input
27 Purple-3 025 General-purpose input
28 Gray-3 026 General-purpose input
29 White-3 027 General-purpose input
30 Black-3 028 General-purpose input
31 Brown-4 029 General-purpose input
32 Red-4 030 General-purpose input
33 Orange-4 031 General-purpose input
102
Output
Pin Wire Port Standard
No. color No. (factory-set) function
34 Yellow-4 300 Output of No. 46 0: General-purpose output
operation-cancellation 1: Output of operation-cancellation level or higher error (ON)
level or higher error (OFF) 2: Output of operation-cancellation level or higher error (OFF)
3: Output of operation-cancellation level or higher error + Emergency stop
output (ON)
4: Output of operation-cancellation level or higher error + Emergency stop
• By default, the ON/OFF state of an input signal is recognized by the controller when the
signal has remained ON/OFF for approx. 4msec or more.
• The setting for this ON/OFF duration can be changed using I/O parameter No. 20, “Input
filtering period”.
103
[2] Virtual I/O Port
Should be the same as XSEL-P/Q/PCT/QCT [Refer to 2.1.2 XSEL-P/Q/PCT/QCT]
7001 Always ON
7002 Voltage low warning for system memory backup battery
7003 Abnormal voltage of system memory backup battery
7004 (For future expansion = Use strictly prohibited)
7005 (For future expansion = Use strictly prohibited)
7006 Top level system error = Message level error is present
7007 Top level system error = Operation cancellation level error is present
7008 Top level system error = Cold start level error is present
7009 (For future expansion = Use strictly prohibited)
7010 Drive source cutoff factor is present (including when waiting for cutoff reset input)
Latch signal indicating that all operation cancellation factor is present (latch signal for recognizing 1-shot
7011
cancellation factor; latch is cancelled by 7300 being ON)
All operation pause factor is present (including when waiting for restart switch signal. Valid only during
7012
automatic operation recognition)
7013 All servo axis interlock factor is present (all operation pause factor + interlock input port factor)
7014 (For future expansion = Use strictly prohibited)
7015 Voltage low warning for axis 1 absolute data backup battery
7016 Abnormal voltage of axis 1 absolute data backup battery (latched until power on reset or software reset)
7017 Voltage low warning for axis 2 absolute data backup battery (main application version 0.28 or later)
7018 Abnormal voltage of axis 2 absolute data backup battery (latched until power on reset or software reset)
7019 Voltage low warning for axis 3 absolute data backup battery
7020 Abnormal voltage of axis 3 absolute data backup battery (latched until power on reset or software reset)
7021 Voltage low warning for axis 4 absolute data backup battery
7022 Abnormal voltage of axis 4 absolute data backup battery (latched until power on reset or software reset)
Voltage low warning for axis 5 absolute data backup battery (valid only when the controller supports up to 6
7023
axes)
Abnormal voltage of axis 5 absolute data backup battery (latched until power on reset or software reset. Valid
7024
only when the controller supports up to 6 axes)
Voltage low warning for axis 6 absolute data backup battery (valid only when the controller supports up to 6
7025
axes)
Abnormal voltage of axis 6 absolute data backup battery (latched until power on reset or software reset. Valid
7026
only when the controller supports up to 6 axes)
7027 to 7040 (For future expansion = Use strictly prohibited)
7041 to 7070 (For future expansion = Use strictly prohibited)
7071 In AUTO mode
7072 During automatic operation
7073 to 7100 (For future expansion = Use strictly prohibited)
7101 Running program No. 01 (including during pause)
~ ~
7164 Running program No. 64 (including during pause)
Running program No. 65 (including during pause)
7165
(Controller with increased memory size (with gateway function) only)
~ ~
Running program No. 128 (including during pause)
7228
(Controller with increased memory size (with gateway function) only)
7229 to 7299 (For future expansion = Use strictly prohibited)
104
XSEL-PX/QX Virtual Output Ports (Internal Flags)
Port No. Function
Latch cancellation output for a latch signal indicating that all operation cancellation factor is present (port 7011.
7300 The latch is cancelled only when operation cancellation factor is no longer present. 7300 will be turned OFF
following an attempt to cancel latch)
7301 to 7380 (For future expansion = Use strictly prohibited)
105
2.1.4 XSEL-R/S/RX/SX/RXD/SXD Controllers
[1] Input and Output I/O Port
With XSEL-R/S/RX/SX/RXD/SXD controllers, input and output functions can be assigned to
input and output ports as desired.
For input ports, set input functions using I/O parameters 30 to 45 (input function selections 000
to 015) and then use I/O parameters 283 to 298 to set the port numbers to assign the
2. Connection with Host System
Input
Pin Port Standard Remarks
Wire color Inputs are set as shown in the table prior to the shipment, but you can change these
No. No. (factory-set) function
input functions by setting applicable I/O parameters.
1 Brown-1 +24V input Parameter Parameter name Function
No.
2 Red-1 000 Program start No. 30 Input function 0: General-purpose input
selection 000 1: Program start (input ports 007 to 013, BCD
specification)
2: Program start (input ports 007 to 013, binary
specification)
3: Program start (input ports 008 to 014, BCD
specification)
4: Program start (input ports 008 to 014, binary
specification)
3 Orange-1 001 General-purpose input No. 31 Input function 0: General-purpose input
selection 001 1: Soft reset signal
4 Yellow-1 002 General-purpose input No. 32 Input function 0: General-purpose input
selection 002 1: Servo ON signal
5 Green-1 003 General-purpose input No. 33 Input function 0: General-purpose input
selection 003 1: Auto program start upon power-ON reset or
software reset in AUTO mode
2: Auto program start signal
6 Blue-1 004 General-purpose input No. 34 Input function 0: General-purpose input
selection 004 1: Software interlock of all servo axes (OFF level)
7 Purple-1 005 General-purpose input No. 35 Input function 0: General-purpose input
selection 005 1: Operation pause cancellation input (ON edge)
8 Gray-1 006 General-purpose input No. 36 Input function 0: General-purpose input
selection 006 1: Operation pause signal (OFF level)
9 White-1 007 Program number No. 37 Input function 0: General-purpose input
specification (MSB) selection 007 1: Program number specification (MSB)
10 Black-1 008 Program number No. 38 Input function 0: General-purpose input
specification (bit 2) selection 008 1: Program number specification (bit 2)
11 Brown-2 009 Program number No. 39 Input function 0: General-purpose input
specification (bit 3) selection 009 1: Program number specification (bit 3)
12 Red-2 010 Program number No. 40 Input function 0: General-purpose input
specification (bit 4) selection 010 1: Program number specification (bit 4)
13 Orange-2 011 Program number No. 41 Input function 0: General-purpose input
specification (bit 5) selection 011 1: Program number specification (bit 5)
14 Yellow-2 012 Program number No. 42 Input function 0: General-purpose input
specification (bit 6) selection 012 1: Program number specification (bit 6)
15 Green-2 013 Program number No. 43 Input function 0: General-purpose input
specification selection 013 1: Program number specification (LSB: bit 7)
(LSB: bit 7)
16 Blue-2 014 General-purpose input No. 44 Input function 0: General-purpose input
selection 014 1: Drive-source cutoff cancellation (ON edge)
17 Purple-2 015 General-purpose input No. 45 Input function 0: General-purpose input
selection 015 1: Home return of all effective axes (ON edge)
2: Home return of all effective incremental axes (ON
edge)
18 Gray-2 016 General-purpose input
19 White-2 017 General-purpose input
20 Black-2 018 General-purpose input
21 Brown-3 019 General-purpose input
22 Red-3 020 General-purpose input
23 Orange-3 021 General-purpose input
24 Yellow-3 022 General-purpose input
25 Green-3 023 General-purpose input
26 Blue-3 024 General-purpose input
27 Purple-3 025 General-purpose input
28 Gray-3 026 General-purpose input
29 White-3 027 General-purpose input
30 Black-3 028 General-purpose input
31 Brown-4 029 General-purpose input
32 Red-4 030 General-purpose input
33 Orange-4 031 General-purpose input
106
Output
Remarks
Pin Wire Port Standard Setting When the unit is delivered, the output is set as shown in the table.
No. color No. (in the delivery) However, the output function can be changed using the I/O parameter setting.
Function Parameter Parameter Name Function
No. *1
34 YW-4 300 Error Output at the No.46 Output Function 0: Universal Output
Operation Cancellation No.331 Selection 300 1: Error Output at the Operation Cancellation Level
Level or more (OFF) Output Function or more (ON)
Selection 300 2: Error Output at the Operation Cancellation Level
107
Remarks
Pin Wire Port Standard Setting When the unit is delivered, the output is set as shown in the table.
No. color No. (in the delivery) However, the output function can be changed using the I/O parameter setting.
Function Parameter
No. *1 Parameter Name Function
47 PL-5 313 Universal Output No.59 Output Function 0: Universal Output
No.344 Selection 313 1: Reserved by the system
Output Function
Selection 313
2. Connection with Host System
(Area 2)
48 GY-5 314 Universal Output No.60 Output Function 0: Universal Output
No.345 Selection 314 1: Voltage low warning for absolute-data backup
Output Function battery
Selection 314
(Area 2)
49 WT-5 315 Universal Output No.61 Output Function 0: Universal Output
No.346 Selection 315
Output Function
Selection 315
(Area 2)
50 BK-5 0V Output
• By default, the ON/OFF state of an input signal is recognized by the controller when the
signal has remained ON/OFF for approx. 4msec or more.
• The setting for this ON/OFF duration can be changed using I/O parameter No. 20, “Input
filtering period”.
108
[2] Virtual I/O Port
Virtual I/O ports are provided so that the controller can notify internal information. They are
used to warn a low power-supply voltage, notify errors, etc. Use these ports as necessary.
109
XSEL-R/S/RX/SX/RXD/SXD Virtual Input Ports (Internal Flags)
Port No. Function
7076 Tracking Operation Complete Work Position Arrival Latch Signal (Latches until “TRAC 1 nnn” or “Tracking
Operation Execution Program Finish”)
7077 In Tracking Conveyor Tracking Complete Range
7078 Tracking Reversed Operation Detected Work Position Arrival Latch Signal (Latches until “TRAC 1 nnn” or
2. Connection with Host System
110
XSEL-R/S/RX/SX/RXD/SXD Virtual Output Ports (Internal Flags)
Port No. Function
7300 A latch cancellation signal is output to cancel the latch signal indicating a cause of all-operation cancellation
(7011). (Unlatched only when the cause of operation cancellation is no longer present.)
(7300 is turned OFF after latch cancellation is attempted.)
7301 to 7380 (For future expansion = Use is strictly prohibited)
111
2.1.5 XSEL-RA/SA/RAX/SAX/RAXD/SAXD Controllers
[1] Input and Output I/O Port
With XSEL-RA/SA/RAX/SAX/RAXD/SAXD controllers, input and output functions can be
assigned to input and output ports as desired.
For input ports, set input functions using I/O parameters 30 to 45 (input function selections 000
to 015) and then use I/O parameters 283 to 298 to set the port numbers to assign the
2. Connection with Host System
Input
Pin Port Standard Remarks
Wire color Inputs are set as shown in the table prior to the shipment, but you can change these
No. No. (factory-set) function
input functions by setting applicable I/O parameters.
1 Brown-1 +24V input Parameter Parameter name Function
No.
2 Red-1 000 Program start No. 30 Input function 0: General-purpose input
selection 000 1: Program start (input ports 007 to 013, BCD
specification)
2: Program start (input ports 007 to 013, binary
specification)
3: Program start (input ports 008 to 014, BCD
specification)
4: Program start (input ports 008 to 014, binary
specification)
3 Orange-1 001 General-purpose input No. 31 Input function 0: General-purpose input
selection 001 1: Soft reset signal
4 Yellow-1 002 General-purpose input No. 32 Input function 0: General-purpose input
selection 002 1: Servo ON signal
5 Green-1 003 General-purpose input No. 33 Input function 0: General-purpose input
selection 003 1: Auto program start upon power-ON reset or
software reset in AUTO mode
2: Auto program start signal
6 Blue-1 004 General-purpose input No. 34 Input function 0: General-purpose input
selection 004 1: Software interlock of all servo axes (OFF level)
7 Purple-1 005 General-purpose input No. 35 Input function 0: General-purpose input
selection 005 1: Operation pause cancellation input (ON edge)
8 Gray-1 006 General-purpose input No. 36 Input function 0: General-purpose input
selection 006 1: Operation pause signal (OFF level)
9 White-1 007 Program number No. 37 Input function 0: General-purpose input
specification (MSB) selection 007 1: Program number specification (MSB)
10 Black-1 008 Program number No. 38 Input function 0: General-purpose input
specification (bit 2) selection 008 1: Program number specification (bit 2)
11 Brown-2 009 Program number No. 39 Input function 0: General-purpose input
specification (bit 3) selection 009 1: Program number specification (bit 3)
12 Red-2 010 Program number No. 40 Input function 0: General-purpose input
specification (bit 4) selection 010 1: Program number specification (bit 4)
13 Orange-2 011 Program number No. 41 Input function 0: General-purpose input
specification (bit 5) selection 011 1: Program number specification (bit 5)
14 Yellow-2 012 Program number No. 42 Input function 0: General-purpose input
specification (bit 6) selection 012 1: Program number specification (bit 6)
15 Green-2 013 Program number No. 43 Input function 0: General-purpose input
specification selection 013 1: Program number specification (LSB: bit 7)
(LSB: bit 7)
16 Blue-2 014 General-purpose input No. 44 Input function 0: General-purpose input
selection 014 1: Drive-source cutoff cancellation (ON edge)
17 Purple-2 015 General-purpose input No. 45 Input function 0: General-purpose input
selection 015 1: Home return of all effective axes (ON edge)
2: Home return of all effective incremental axes (ON
edge)
18 Gray-2 016 General-purpose input
19 White-2 017 General-purpose input
20 Black-2 018 General-purpose input
21 Brown-3 019 General-purpose input
22 Red-3 020 General-purpose input
23 Orange-3 021 General-purpose input
24 Yellow-3 022 General-purpose input
25 Green-3 023 General-purpose input
26 Blue-3 024 General-purpose input
27 Purple-3 025 General-purpose input
28 Gray-3 026 General-purpose input
29 White-3 027 General-purpose input
30 Black-3 028 General-purpose input
31 Brown-4 029 General-purpose input
32 Red-4 030 General-purpose input
33 Orange-4 031 General-purpose input
112
Output
Remarks
Pin Wire Port Standard Setting When the unit is delivered, the output is set as shown in the table.
No. color No. (in the delivery) However, the output function can be changed using the I/O parameter setting.
Function Parameter Parameter Name Function
No. *1
34 YW-4 300 Error Output at the No.46 Output Function 0: Universal Output
Operation Cancellation No.331 Selection 300 1: Error Output at the Operation Cancellation Level
Level or more (OFF) Output Function or more (ON)
Selection 300 2: Error Output at the Operation Cancellation Level
113
Remarks
Pin Wire Port Standard Setting When the unit is delivered, the output is set as shown in the table.
No. color No. (in the delivery) However, the output function can be changed using the I/O parameter setting.
Function Parameter
No. *1 Parameter Name Function
47 PL-5 313 Universal Output No.59 Output Function 0: Universal Output
No.344 Selection 313 1: Reserved by the system
Output Function
Selection 313
2. Connection with Host System
(Area 2)
48 GY-5 314 Universal Output No.60 Output Function 0: Universal Output
No.345 Selection 314 1: Voltage low warning for absolute-data backup
Output Function battery
Selection 314
(Area 2)
49 WT-5 315 Universal Output No.61 Output Function 0: Universal Output
No.346 Selection 315
Output Function
Selection 315
(Area 2)
50 BK-5 0V Output
• By default, the ON/OFF state of an input signal is recognized by the controller when the
signal has remained ON/OFF for approx. 4msec or more.
• The setting for this ON/OFF duration can be changed using I/O parameter No. 20, “Input
filtering period”.
114
[2] Virtual I/O Port
Virtual I/O ports are provided so that the controller can notify internal information. They are
used to warn a low power-supply voltage, notify errors, etc. Use these ports as necessary.
115
XSEL-R/S/RX/SX/RXD/SXD Virtual Input Ports (Internal Flags)
Port No. Input/ Function
Output
7076 Tracking Operation Complete Work Position Arrival Latch Signal (Latches until “TRAC 1 nnn” or “Tracking
Operation Execution Program Finish”)
7077 In Tracking Conveyor Tracking Complete Range
2. Connection with Host System
7078 Tracking Reversed Operation Detected Work Position Arrival Latch Signal (Latches until “TRAC 1 nnn” or
“Tracking Operation Execution Program Finish”)
7079 During Tracking Mode (Work detection valid) (for SCARA controller only)
7080 During Tracking Operation (including a pause in tracking operation)
7081 to 7100 Input (Reserved by the system = Use is strictly prohibited)
7101 Program No. 01 is being executed (or paused).
7102 Program No. 02 is being executed (or paused).
7103 Program No. 03 is being executed (or paused).
~ ~
7227 Program No. 127 is being executed (or paused).
7228 Program No. 128 is being executed (or paused).
7229 to 7299 (Reserved by the system = Use is strictly prohibited)
116
XSEL-RA/SA/RAX/SAX/RAXD/SAXD Virtual Output Ports (Internal Flags)
Port No. Input/ Function
Output
7300 A latch cancellation signal is output to cancel the latch signal indicating a cause of all-operation
cancellation (7011). (Unlatched only when the cause of operation cancellation is no longer present.)
(7300 is turned OFF after latch cancellation is attempted.)
7301 Axis 1 Gripper Release Output (On; Releasing Command, Off; Gripping Command)
117
2.1.6 SSEL, ASEL, PSEL Controllers
[1] Input and Output I/O Port
With SSEL, ASEL and PSEL controllers, input and output functions can be assigned to input
and output ports as desired.
For input ports, set input function setting values (0 to 23) in input function selections 000 to
015 (I/O parameters 30 to 45) corresponding to port No. 000 to 015 or input function selections
2. Connection with Host System
016 to 023 (I/O parameters 251 to 258) corresponding to port No. 16 to 23, and the set
functions will be assigned.
For output ports, set output function setting values (0 to 17, 24, 25) in output function
selections 300 to 307 (I/O parameters 46 to 53) corresponding to port No. 300 to 307, and the
set functions will be assigned.
Program mode
Input
Input
Input function
Pin Port Standard (factory-set) Paramet Parameter function
Wire color setting value Function
No. No. function er No. name setting
(factory setting)
value
1A Brown 1 - I/O power supply +24 V - - - 0 General-purpose input
118
Program mode
Output
Input function Input
Pin Wire Port Standard (factory-set) Parameter Parameter setting value function
Function
No. color No. function No. name (factory setting
setting) value
13B Blue 3 300 Alarm output 46 Output 2 0 General-purpose input
function
selection 300
*1 Output function setting values 1, 2, 3 and 4 cannot be assigned at the same time.
*2 Output function setting values 5, 6 and 7 cannot be assigned at the same time.
• By default, the ON/OFF state of an input signal is recognized by the controller when the
signal has remained ON/OFF for approx. 4msec or more.
• The setting for this ON/OFF duration can be changed using I/O parameter No. 20, “Input
filtering period”.
119
[2] Virtual I/O Port
Virtual I/O ports are provided so that the controller can notify internal information. They are
used to warn a low power-supply voltage, notify errors, etc. Use these ports as necessary.
120
2.1.7 Tabletop Robot TT/TTA
[1] Input and Output I/O Port
With the tabletop robot TT, input and output functions can be assigned to input and output
ports as desired.
For input ports, set input functions using I/O parameters 30 to 45 (input function selections 000
to 015) and then use I/O parameters 283 to 298 to set the port numbers to assign the
Input
Remarks
Pin Port Standard
Wire color Inputs are set as general-purpose inputs, but you can change these input functions by setting applicable
No. No. (factory-set) function
I/O parameters.
Parameter
1 Brown 1 - I/O power supply +24V Parameter name Function
No.
30 Input function selection 000*1 1: Program start
2 Red 1 016 General-purpose input
31 Input function selection 001 0: General-purpose input
1: Soft reset signal
3 Orange 1 017 General-purpose input 32 Input function selection 002 0: General-purpose input
1: Soft reset signal
4 Yellow 1 018 General-purpose input 33 Input function selection 003 0: General-purpose input
1: Auto program start upon power-ON reset or software
5 Green 1 019 General-purpose input reset in AUTO mode
2: Auto program start signal
6 Blue 1 020 General-purpose input 34 Input function selection 004 0: General-purpose input
1: Software interlock of all servo axes (OFF level)
35 Input function selection 005 0: General-purpose input
7 Purple 1 021 General-purpose input
1: Operation pause cancellation input (ON edge)
36 Input function selection 006 0: General-purpose input
8 Gray 1 022 General-purpose input 1: Operation pause signal (OFF level)
37 Input function selection 007*2 0: General-purpose input
9 White 1 023 General-purpose input 1: Program number specification (LSB)
38 Input function selection 008*2 0: General-purpose input
10 Black 1 024 General-purpose input 1: Program number specification (bit 2)
39 Input function selection 009*2 0: General-purpose input
11 Brown 2 025 General-purpose input 1: Program number specification (bit 3)
40 Input function selection 010*2 0: General-purpose input
1: Program number specification (bit 4)
12 Red 2 026 General-purpose input
41 Input function selection 011*2 0: General-purpose input
1: Program number specification (bit 5)
13 Orange 2 027 General-purpose input
42 Input function selection 012*2 0: General-purpose input
1: Program number specification (bit 6)
14 Yellow 2 028 General-purpose input 43 Input function selection 013*2 0: General-purpose input
1: Program number specification (MSB: bit 7)
15 Green 2 029 General-purpose input 2: Error reset (ON edge)
44 Input function selection 014 0: General-purpose input
16 Blue 2 030 General-purpose input 1: Drive-source cutoff cancellation (ON edge)
45 Input function selection 015 0: General-purpose input
17 Purple 2 031 General-purpose input 1: Home return of all effective axes (ON edge)
2: Home return of all effective incremental axes (ON edge)
*1 If input function selection 000 (program start) is assigned to a port other than No. 000, the start
switch on the front panel is disabled.
*2 If input function selections 007 to 013 (program selection switches) are assigned to ports other
than No. 007 to 013, the program selection switches on the front panel are disabled.
121
Output
Remarks
Pin Port Standard
Wire color Outputs are set as general-purpose outputs, but you can change these output functions by setting
No. No. (factory-set) function
applicable I/O parameters.
Parameter
Parameter name Function
18 Gray 2 316 General-purpose output No.
46 Output function selection 300
*3 0: General-purpose output
331 Output function selection 300 (area 2) 1: Output of operation-cancellation level or higher
error (ON)
19 White 2 317 General-purpose output 2: Output of operation-cancellation level or higher
2. Connection with Host System
error (OFF)
3: Output of operation-cancellation level or higher
error + Emergency stop output (ON)
20 Black 2 318 General-purpose output 4: Output of operation-cancellation level or higher
error + Emergency stop output (OFF)
47 Output function selection 301
*3 0: General-purpose output
21 Brown 3 319 General-purpose output 332 Output function selection 301 (area 2) 1: READY output (PIO-trigger program operation
enabled)
2: READY output (PIO-trigger program operation
enabled AND no operation-cancellation level or
22 Red 3 320 General-purpose output higher error)
3: READY output (PIO-trigger program operation
enabled AND no cold-start level or higher error)
48 Output function selection 302*3 0: General-purpose output
23 Orange 3 321 General-purpose output 333 Output function selection 302 (area 2) 1: Emergency stop output (ON)
2: Emergency stop output (OFF)
49 Output function selection 303
*3 0: General-purpose output
334 Output function selection 303 (area 2) 1: AUTO mode output
24 Yellow 3 322 General-purpose output 2: Auto operation output (When other parameter No.
12 is set to ‘1’)
50 Output function selection 304
*3 0: General-purpose output
25 Green 3 323 General-purpose output 335 Output function selection 304 (area 2) 1: Output when all effective axes are home (= 0)
2: Output when all effective axes have completed
home return
3: Output when all effective axes are at home preset
26 Blue 3 324 General-purpose output coordinate
51 Output function selection 305 0: General-purpose output
336 Output function selection 305 (area 2) 2: Axis 1 servo ON output
27 Purple 3 325 General-purpose output 52 Output function selection 306 0: General-purpose output
337 Output function selection 306 (area 2) 2: Axis 2 servo ON output
53 Output function selection 307 0: General-purpose input
28 Gray 3 326 General-purpose output 338 Output function selection 307 (area 2) 2: Axis 3 servo ON output
54 Output function selection 308
0: General-purpose output
339 Output function selection 308 (area 2)
29 White 3 327 General-purpose output
55 Output function selection 309
0: General-purpose output
340 Output function selection 309 (area 2)
*3 Since output function selections 300 to 304 are assigned to LEDs in the panel window, the
LEDs are disabled if parameters 46 to 50 are set as general-purpose outputs or port number
assignments are changed using parameters 299 to 303.
If you want to output system signals to the I/O shown in the tables above, use output function
selection area 2.
• By default, the ON/OFF state of an input signal is recognized by the controller when the
signal has remained ON/OFF for approx. 4msec or more.
• The setting for this ON/OFF duration can be changed using I/O parameter No. 20, “Input
filtering period”.
122
[2] Virtual I/O Port
Virtual I/O ports are provided so that the controller can notify internal information. They are
used to warn a low power-supply voltage, notify errors, etc. Use these ports as necessary.
123
TTA Virtual Input/Output Ports (Internal Flags)
Port No. Input/Output Function
7000 Always OFF
7001 Always ON
7002 Reserved by the system = Use is strictly prohibited
7003 Reserved by the system = Use is strictly prohibited
2. Connection with Host System
124
TTA Virtual Input/Output Ports (Internal Flags)
Port No. Input/Output Function
7300 A latch cancellation signal is output to cancel the latch signal indicating a cause of
all-operation cancellation (7011). (Unlatched only when the cause of operation cancellation is
no longer present.)
(7300 is turned OFF after latch cancellation is attempted.)
Output
7301 to 7380 (For future expansion = Use is strictly prohibited)
125
2.1.8 MSEL Controller
[1] Input and Output I/O Port
In Input Function Select No. 000 to 015 and Output Function Select No. 300 to 315, dedicated
functions can be set, and they can be assigned to desired input and output ports.
For input ports, set input functions using I/O parameters 30 to 45 (input function selections 000
to 015) and then use I/O parameters 283 to 298 to set the port numbers to assign the
2. Connection with Host System
126
(2) Output Port Function Assignment
Input Parameter
function Setting Setting at
Input Signal Functions
selection No. values delivery
No.
0 General-purpose output
1 Output of operation-cancellation level or higher error (ON)
2 Output of operation-cancellation level or higher error (OFF)
• By default, the ON/OFF state of an input signal is recognized by the controller when the
signal has remained ON/OFF for approx. 4msec or more.
• The setting for this ON/OFF duration can be changed using I/O parameter No. 20, “Input
filtering period”.
127
[2] Virtual I/O Port
Virtual I/O ports are provided so that the controller can notify internal information. They are
used to warn a low power-supply voltage, notify errors, etc. Use these ports as necessary.
128
3. Program
3.1 Position Table and Program Format
To run the robot,
• Program
• Position data
(information of positions for the robot to move)
Controller
it is necessary to create 2 types of data as Personal
computer
3. Program
shown below and input them to the controller
with using PC. 1) Program 2) Position data
129
[1] Single/rectangular axes, TT robots
Set positions (coordinate values), speeds, accelerations and decelerations in the position table
and store the table in the controller.
Deceleration
Acceleration
Positions for each axis (coordinate values) Speed
3. Program
(Note 2) Comment is applicable also for PCLR (Position Data Clear) Command and PCPY
(Position Data Copy) Command in SEL Program.
Therefore, in case that the position data with a comment being set is cleared by
PCLR Command, or that a copy is made to the position with a comment being set in
the area to copy from or area to copy to with PCPY Command, if the software reset is
conducted or the power is turned OFF without the position data being written to the
flash ROM, 22B “Position Data Comment Lost Error” will occur.
Please understand this well when using PCLR or PCPY.
130
● Vel (speed), Acc (acceleration), Dcl (deceleration)
If Vel (speed), Acc (acceleration) and Dcl (deceleration) are set in the position data table, the
values set in the position data table are given priority over the corresponding data set in the
program.
To make the Vel (speed), Acc (acceleration) and Dcl (deceleration) settings in the program
effective, leave these fields blank.
The effective values of speed and acceleration are determined based on the priorities specified
below.
3. Program
Priority Speed Acceleration (Deceleration)
1 Value set in the position data table Value set in the position data table
2 Value set in the VEL command Value set in the ACC (DCL) command
All-axis parameter No. 11, "Default acceleration"
3
(All-axis parameter No. 12, "Default deceleration")
● For XSEL-RA/SA/RAX/SAX/RAXD/SAXD, TTA and MSEL, there is the output operation data.
Parameter select for TTA and MSEL) [Refer to 5.5 Position Output Operation Features]
131
[2] SCARA robots
Set positions (coordinate values), target arm system indications, speeds, accelerations and
decelerations in the position table and store the table in the controller.
Target arm
system SCARA 2
Deceleration
Target arm
system SCARA 1 Acceleration
Positions for each axis (coordinate values) Speed
3. Program
(Note 1) Unless otherwise the target arm system is indicated, the operation will be made with the
current arm system.
(Note 2) The priority is put in the order as shown below to the indication of the target arm
systems when PTP movement command is executed by SEL program.
1) Position data settings
2) SEL command (Settings for PTPR, PTPL, PTPD and PTPE)
(Note 3) Error No. B4D “Arm System Setting Error” would be issued if the current arm system
and the target arm system are different at CP movement.
132
● Vel (speed), Acc (acceleration), Dcl (deceleration)
If Vel (speed), Acc (acceleration) and Dcl (deceleration) are set in the position data table, the
values set in the position data table are given priority over the corresponding data set in the
program.
To make the Vel (speed), Acc (acceleration) and Dcl (deceleration) settings in the program
effective, leave these fields blank.
Only for CP operation (*1) the speeds, accelerations and decelerations set in the position table
become effective.
(*1) CP operation is a type of operation in which the axes interpolates with one another
3. Program
to move to the target position. CP operation may be performed in the form of linear
movement, arc movement, etc. If the axes do not interpolate with one another, such
operation is called “PTP operation”.
The effective values of speed and acceleration are determined based on the priorities specified
below.
Priority Speed Acceleration (Deceleration)
1 Value set in the position data table Value set in the position data table
2 Value set in the VEL command Value set in the ACC (DCL) command
All-axis parameter No. 11, "Default acceleration"
3
(All-axis parameter No. 12, "Default deceleration")
133
3.2 Program
Create a program using the “SEL Language” which is a proprietary language by IAI.
(Note) The number of programs and total number steps vary depending on the controller.
Number of
Controller Total number of program steps
programs
3. Program
XSEL-P/Q/PCT/QCT/PX/QX/
128 9999
R/S/RX/SX/RXD/SXD
XSEL-RA/SA/RAX/SAX/
255 20000
RAXD/SAXD
XSEL-J/K/KE/KT/KET
64 6000
JX/KX/KETX
SSEL 128 9999
ASEL/PSEL 64 2000
TT 64 6000
TTA 255 9999
MSEL 255 9999
134
3.3 Program Format
[1] Program Edit
SEL language is translated by a step number (1 line) to another for the operation. Thus, it is
unnecessary to compile (translate into the computer language).
3. Program
Step No.
The program edit window is created in a program format (table format) and you are only to
input the information for position, command, etc. to the appropriate areas.
In the following, explains about the program format.
<Expression>
Binary: Add prefix &B
Decimal: No prefix
Hexadecimal: Add prefix &H
<Example>
AND 200 &B00111000 ; Binary number
AND 200 56 ; Decimal number
AND 200 &H00000038 ; Hexadecimal number
<Caution>
The input range of a number is 99999999 to -9999999 of decimal system regardless of
the number base.
(In hexadecimal system, 0SFSE0FF to FF676981)
135
[2] Program Format
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output port, flag)
(AND, OR) declaration
E N, Cnd Cmnd Operand1 Operand2 Pst
(1) The conditions in front of the command are equivalent to “IF to THEN” for the BASIC
language.
IF to THENx x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x ELSEx x x x x x x x
To next step
1) The command will be executed if the input conditions meet the requirement. If there is an
indication for the output, it turns the output port on, and if the input conditions do not meet
the requirement, it moves to the next step.
2) If no condition is set, the command is executed unconditionally.
3) To use the condition in reverse (using the so-called contact b logic), add “N” (NOT) to the
condition.
4) You can use an input port, output port or flag for the input condition.
5) Operands 1 and 2, and the output, can be specified indirectly.
(2) Operation of the output, specified after the command and operands 1 and 2, is explained
below.
1) In the case of an actuator operation control command, etc., the output turns OFF the
moment the command execution is started and turns ON when the execution is completed.
In the case of a calculation command, etc., the output turns ON when the result becomes
a certain value and turns OFF with other values.
2) You can use an output port or flag for the output.
136
[Application] Extended condition
You can combine extended conditions in a complex manner using the AND gate and OR gate.
(Example)
[Extension by AND]
Combination of A (AND) and A (AND)
3. Program
Extension Command
Input condition Output
condition
Command Operand 1 Operand 2 Condition 1
Condition 1
A Condition 2
Condition 2
A Condition 3 Command Operand 1 Operand 2
Condition 3
[Extension by OR]
Combination of O (OR) and O (OR)
Extension Command
Input condition Output
condition
Command Operand 1 Operand 2 Condition 1
Condition 1
Extension Command
Input condition Output
condition
Command Operand 1 Operand 2 Condition 1
Condition 1
A Condition 2
Condition 2
{ Condition 3 Command Operand 1 Operand 2
Condition 3
137
3.4 Relationship of program and position table
In the case of a movement command such as MOVL, set a position number in operand 1.
Some commands such as ARCH (arch motion) require a position number to be set in operand
2, as well.
The position corresponding to the position number set in the position table is referenced and
the actuator moves to the applicable position.
3. Program
In the above example, the actuator moves to the positions at 100mm corresponding to position
No. 1 and 150mm corresponding to position No. 2.
The position table is a single table that can be referenced from all programs. In the example
below, the standard position table is used. A different table is used if the controller has a
gateway function.
(Note) For RC Gateway Function and Extension Motion Control Function, a different position
table is to be used.
[Refer to the Instruction Manual for XSEL Controller P/Q/PX/QX RC Gateway Function.]
[Refer to the Instruction Manual for XSEL-RA/SA/RAX/SAX/RAXD/SAXD Extension Motion
ControlFunction.] [Program format]
Program No. 1
Position table
Program No. n
138
3.5 Basic Stage (Program creation and position table creation)
In this section, explains how to create a program for the basic operation patterns.
3. Program
program using a general-purpose output.
Once turned ON, a general-purpose output will remain ON even after the current program
ends or other program is started. (It will turn OFF upon emergency stop, etc., but the ON
status can be maintained using an I/O parameter (I/O parameter No. 70 and 71).)
(Note) SCARA robots do not require home return operation.
b. Use a home return completion signal to make sure the actuator will not perform homing if it
has already been performed.
Execute homing if output 303 is OFF.
Home-return complete output
(turn Output 303 ON)
If 出力303がOFF(NOT)なら
output 303 is OFF (NOT);
Output port No. 304 can be used as a home return completion output (dedicated output) by
setting I/O parameter No. 50 to “2”.
139
3.5.2 Positioning Operation (Moving position)
[1] Description
Move the actuator to positions 1 through 5 at a speed of 100mm/sec after homing.
Flowchart
3. Program
Start • Homing must be performed and a speed must be set, before the actuator
can be operated.
• The actuator moves to the position data coordinates specified by the
Homing respective move commands.
• With the absolute specification, homing (HOME command) is not required.
Set speed
Move to P1
Move to P2
Move to P3
Move to P4
Move to P5
End of program
Program (Example)
プログラム(例) Position data (Example)
ポジションデータ(例)
ポジションデータNo.1に移動
ポジションデータNo.2に移動
ポジションデータNo.3に移動
ポジションデータNo.4に移動
ポジションデータNo.5に移動
140
3.5.3 Moving Back and Forth between Two Points
[1] Description
Moves back and forth between two points.
Flowchart
3. Program
Start • The actuator moves back and forth between P1 and P2 indefinitely.
• Use of only 1 axis is assumed.
• Enter TAG in the first of the steps to be repeated, and enter GOTO
Homing
in the last of the steps to be repeated.
Move to P1
Move to P2
Program (Example)
プログラム(例) Position data (Example)
ポジションデータ(例)
TAG1にジャンプ
ポジションデータNo.1に移動
ポジションデータNo.2に移動
TAG1 にジャンプ
141
3.5.4 Repeated Operation
[1] Description
Use GOTO and TAG commands to repeat the same operation within the program or to jump to
a desired step if a condition is satisfied. A TAG command can be written in a step either before
or after a GOTO command.
Example 1
3. Program
Example 2
Skip steps.
142
3.5.5 PATH Operation (Continuous operation among multiple positions)
[1] Description
This function moves the robot continuously among 4 arbitrary points. (PATH movement)
3. Program
require the actuator to position exactly at P2 and P3, and
thus the movement tact time can be reduced.
Assume the following command is executed when the
actuator is stopped at P1:
PATH 2 4
The actuator will move from P1 to P4 by passing points
near P2 and P3.
143
3.5.6 External Signal Output during Path Movement
[1] Description
Output signals while the actuator is moving with a PATH command.
or flag specified in the output field will turn ON as the actuator approaches, via path movement,
the position specified in the PATH command.
Example 1
Example 2
Outputs 310 to 313 can be turned ON sequentially at the respective points of P2 to P5.
(Note) This command is able only to output and to turn the flag ON. The output or flag that
was turned ON during path operation must be turned OFF (using a BTOF command)
after the operation is completed.
144
3.5.7 Circle/Arc Operation
[1] Description
The actuator moves along a two-dimensional circle or arc.
3. Program
Example 1
Circle
• Specify “CIR2 2 3” after the actuator has moved to P1.
• If “CIR2 2 3” is specified in the figure shown at left, the
actuator will move along this circle clockwise.
Example 2
Arc
[3] Reference
1) Some circle and arc commands can be executed not only two-dimensionally (between two
actuator axes) but also three dimensionally (among three actuator axes).
2) Refer to the page for “CIR2, ARC2, CIRS, ARCS” Command in [12] Actuator Control
Command for each command language for the caution in use.
145
3.5.8 Axis Movement by External Signals and Output of Completion Signal to
External Device
[1] Description
This is a function to enable the axes movement with an external signal input and to output the
complete signal to an external device.
Flowchart
Wait for the input port (external signal) 10 to turn ON, and then move to
Start P1 (Position Data No. 1).
Wait for the input port (external signal) 11 to turn ON, and then move to
P2 (Position Data No. 2).
The movement complete signal for P1 is output to the output port 310,
Input 10
and P2 complete signal to port 311.
Move to P1
Output 310 ON
Input 11
Move to P2
Output 311 ON
End of program
Program (Example)
プログラム(例)
146
3.5.9 Changing the Moving Speed
[1] Description
Change the moving speed.
3. Program
Program (Example)
プログラム(例) ポジションデータ(例)
Position data (Example)
P1移動
速度1000mm/sec設定
P2移動
P3移動
速度50mm/sec設定
P4移動
If a speed is specified in the position data table, this speed takes precedence over the speed
specified in the application program, as shown above.
147
3.5.10 Speed Setting Change during PATH (Continuous) Operation
[1] Description
You can change the speed of the actuator without stopping it, by using a PATH command and
VEL fields of the position table.
For example, this command is useful in a paint dispensing application where the application
volume changes in the middle.
The actuator moves through linear sections a, b and c at 50mm/sec, 20mm/sec and
50mm/sec, respectively, without stopping (PATH operation).
Application width
Program (Example)
プログラム(例)
“PATH 1 4” is the only movement command required.
[3] Reference
The speed can also be changed from other program using a CHVL (speed change) command.
148
3.5.11 Variables and Flags [Global/Local]
[1] Description
The internal variables and flags used in the SEL language are classified into local and global
types.
The data range used commonly by all programs is called the global range, while the data
range used only by each program is called the local range. When multi-tasking programs are
run simultaneously, the global range must be used to synchronize the programs and allow
cross-referencing of variables among the programs.
3. Program
[2] Example of Use
Program handshake
Program A Program B
Use of global flags with the above two programs permits handshake between the programs,
and the actuator moves per “MOVL 1” in program A, moves per “MOVL 2” in program B, and
then move per “MOVL 3” in program A, for example.
Backup in Battery
(Note 1)
The XSEL controller has a built-in battery for retaining variables and flags used in the
programs. The data is retained in the global domain for both variables and flags even if the
power is turned OFF.
The variables and flags in the local range are cleared when the program is started (the
variables are reset to “0”, while the flags turn OFF).
Note 1: XSEL-RA/SA/RAX/SAX/RAXD/SAXD, XSEL-R/S/RX/SX/RXD/SXD, MSEL and TTA
do not have a system memory backup battery since they possess the global domain in
the non-volatile memory.
The system-memory backup battery is optional for ASEL, PSEL and SSEL controllers.
No system-memory backup battery is available for TT robots.
If the system memory is not backed up with a battery, global areas will be cleared once the
power is cut off.
149
3.5.12 How to Use Subroutines
[1] Description
A subroutine is a group of steps that are called and executed several times within a program.
Subroutines are used to reduce the number of program steps and make the program easy to
read. Up to 99 subroutines can be used in one program. Up to 15 subroutine calls can be
nested.
Subroutine
[3] Note
Jumping from within a subroutine to a TAG position outside the subroutine using a GOTO
command is prohibited.
150
3.5.13 Pausing the Operation
[1] Description
Use a declaration command HOLD to pause the moving axis temporarily via external input.
3. Program
all moving commands in the same program.
Remaining
operation
Time
Application
You can specify a global flag, instead of an input port, in Operand 1 of the HOLD command.
Use of a global flag allows the actuator to be paused from other program.
The input signal pattern and stop action can be selected using Operand 2.
[3] Note
If the actuator is paused during homing, it will start the homing sequence from the beginning
upon restart.
151
3.5.14 Canceling the Operation
[1] Description
Use a declaration command CANC to decelerate the moving axis to a stop and cancel the
remaining operation.
CANC command
CANC 20 Cancel the movement commands if input port 20 turns ON (declaration).
:
MOVP 1
MOVP 2
:
WTON 21
:
* Declare this command in a step before the movement commands you want to cancel.
* While CANC is input, all operation commands are cancelled sequentially, while tasks
other than operation commands (such as I/O processing and calculation processing) are
executed sequentially.
Input port 20 ON
Remaining
operation
Time→
Application
A desired input signal pattern can be selected for a CANC command using Operand 2.
0 = Contact a (Decelerates to a stop) ⇒ Same as when Operand 2 is not specified.
1 = Contact b (Decelerates to a stop)
[3] Note
It is recommended that you use a WTON command to create an input waiting step, because
otherwise you cannot specify which of the program steps the actuator is currently executing.
152
3.5.15 Aborting from Other Program
[1] Description
Decelerate the moving axis to a stop and cancel the remaining operation. (STOP)
3. Program
Input port 20 ON
Remaining
operation
Time→
Example 1
STOP command
Main program Stop control program
EXPG n The stop program starts. WTON 20 Wait for stop input.
: STOP 11 Axes 1 and 2 stop.
MOVL 1
MOVL 2
:
If “STOP 11” is executed while “MOVL 1” is being executed, “MOVL 1” will be cancelled and
the actuator will continue its operation from “MOVL 2”.
Example 2
Main program Stop control program
EXPG n The stop program starts. WTON 20 Wait for stop input.
: STOP 10 Axis 2 stops.
MOVP 1
MOVP 2
:
If “STOP 10” is executed while “MOVL 1” is being executed, only the axis 2 part of “MOVL 1”
will be cancelled. Both axes 1 and 2 will operate under “MOVL 2”.
[3] Note
If a STOP command is executed during a CP operation (interpolation operation) initiated by
MOVL, etc., the operations of all axes will be cancelled regardless of the axis pattern specified
in the STOP command.
153
3.5.16 Operation by Position Number Specification via External Signals and
Output of Completion Signal to External Device
[1] Description
Load externally input BCD codes as position numbers to execute movements.
Flowchart
*1
Input assignment Output
Start
Port Description 303 Movement completion
Initial setting 1 Start input
15 Position specification 1
16 Position specification 2
Start input 17 Position specification 4
18 Position specification 8
Read BCD
19 Position specification 10
20 Position specification 20
21 Position specification 40
Movement
completion OFF 22 Position specification 80
23 Position specification 100
Move to specified 24 Position specification 200
position number 25 Position specification 400
26 Position specification 800
Movement
completion ON
Program (Example)
*1 Shown above is an example of port assignment for XSEL, ASEL, PSEL and SSEL controllers.
An example for TT robots is shown below.
Input assignment
Port Description
28 Start input
16 Position specification 1
17 Position specification 2
18 Position specification 4
19 Position specification 8
20 Position specification 10
21 Position specification 20
22 Position specification 40
23 Position specification 80
24 Position specification 100
25 Position specification 200
26 Position specification 400
27 Position specification 800
154
3.5.17 Operation by Coordinate Value Input via External Signals and Output of
Completion Signal to External Device
[1] Description
Receive target position data as absolute values from a host device to execute movements.
3. Program
The moving axis is axis 1.
Example: If a BCD of “1234” is received, the axis will move to the position at 123.4mm.
Flowchart
Input assignment Output
Start
Port Description 303 Movement completion
1 Start input
Initial setting 15 0.1mm
16 0.2mm
17 0.4mm
Start input 18 0.8mm
19 1mm
20 2mm
Read BCD 21 4mm
22 8mm
Movement 23 10mm
completion OFF 24 20mm
25 40mm
Move to specified
26 80mm
position
27 100mm
Movement
28 200mm
completion ON 29 400mm
30 800mm
Program (Example)
プログラム(例)
[3] Note
With TT robots, 16 general-purpose inputs from 016 to 031 can be input. However, if
coordinate values from 400mm [maximum TT stroke] to 0.0mm are inputs in 0.1mm
increments and a start signal is used to start the movement, as in the example, all of the 16
general-purpose inputs are used. Take note that in this case you can no longer use
general-purpose inputs for other purposes.
155
3.5.18 Output of Current Position Coordinate Value to External Device
[1] Description
Read the current actuator coordinate in real time and output the coordinate from an output port
as BCD data.
* The current position coordinate is written to variable 101 according to the PRDQ command.
Since the value that has been read into the variable is in the xxx.xxx format, move the unused
digits to below the decimal point so that the result can be output as BCD data.
In this example, the third and subsequent decimal places are not required and thus the value
is multiplied by 100 to obtain the data xxxxx.x.
Next, the BCD output data is copied to dedicated variable 99.
The digit below the decimal point is rounded off at this time.
Then, the final value is output to an external device via an OUTB command.
This program is run in the multi-tasking mode as a sub-program.
[3] Note
The unit of output data may have to be changed as deemed appropriate depending on the
moving range of the actuator and number of available output ports.
If coordinate values from 0mm to 400mm [maximum TT stroke] are output in 0.01mm
increments, as in the example, 19 general-purpose outputs are needed. However, TT robots
only have 16 general-purpose outputs of 316 to 331. Accordingly, you must take an
appropriate action such as changing the unit of output data to 0.1mm.
156
3.5.19 Conditional Jump
[1] Description
Select the destination to jump to via GOTO using the external input, output and/or internal flag
statuses as a condition.
Process is switched over for each input.
3. Program
Example 1
If input 10 turns ON, the actuator will jump to TAG 1. If it turns OFF, the actuator will proceed
to the next processing.
Processing b
Example 2
Wait for the input to the two ports 10 and 11, and if Input 10 becomes ON, proceed to the
processing a, and proceed to the processing b if Input 11 becomes ON.
Input 10
Input 11
Processing a
Processing a
Processing b No input.
Processing b Input 10 turns ON.
Input 11 turns ON.
If both inputs 10 and 11 turn ON, the actuator will perform processing a.
157
3.5.20 How to Pause and Then Resume Program after Output Signal Input
[1] Description
The controller waits for multiple different inputs and performs processing upon reception of any
of these inputs.
Input 20
Next processing
Next processing
Next processing
* Both programs a and b perform the same processing.
As shown in the sample, the controller waits for input without using a WTON command.
This method can also be used when multiple input conditions must be combined.
[3] Note
With a WTON command, the program cannot wait for multiple inputs because processing will
resume upon receipt of one of the specified inputs.
158
3.5.21 How to Use Offset
[1] Description
With an OFST command, an offset can be specified for position data when you want to shift
(offset) all teaching points by several millimeters because the actuator was not installed
exactly in the specified position or for other reasons.
3. Program
Home
[3] Note
Once an offset has been set, the offset applies to all movement commands executed
thereafter. To cancel the offset, execute an offset command again by specifying 0mm. An
offset does not apply to other programs (even in the multi-tasking mode). If a given offset must
be applied to all programs, it must be set for all programs individually.
159
3.5.22 How to Repeat Specified Operation Multiple Times
[1] Description
Execute a specific operation n times.
Program (Example)
[3] Reference
The same operation can also be performed using a DWEQ command.
160
3.5.23 Constant Feed Operation [Pitch Feed]
[1] Description
Feed the actuator by a specified pitch n times from a reference point.
The pitch and number of repetitions are specified by variables in advance.
3. Program
The X-axis is fed in the positive direction.
Flowchart
Start
Initial setting
Start input
Move
Increment
pitch variable
Apply offset
Pitch (mm)
Increment
feed counter Reference point (Number of feeds n)
Counter up?
End of
program
Program (Example)
[3] Note
An OFST command applies to movement commands.
Executing an OFST command alone does not move the axis.
[4] Reference
Pitch feed can also be performed with MVPI and MVLI Commands.
161
3.5.24 How to JOG via External Signal Input
[1] Description
The slider moves forward or backward while an input is ON or OFF.
Instead of an input, an output or global flag can be used as a cue.
The slider will move directly to the next step if the specified input does not satisfy the condition
when the command is executed.
Regardless of the input status, the slider will stop upon reaching the soft limit, and the
command in the next step will be executed.
3. Program
Example 1
Work
Example 2
• Cause the actuator to jog just like in teaching pendant operation (2 axes are operated).
Program (Example)
[3] Note
HOLD, STOP and CANC commands remain valid while the actuators are jogging.
162
3.5.25 Switching Programs
[1] Description
Use EXPG/ABPG commands to switch programs using a program.
Example 1
3. Program
Start program 2 once the processing of program 1 is completed, and then end program 1.
Program 1 Program 2
: :
EXPG 2 :
EXIT
Example 2
Start a program via an external signal, and then end the other program.
Program 1 Program 2
ABPG 2 ABPG 1
: :
If program 2 is started while program 1 is running, program 1 will be aborted.
If program 1 is started while program 2 is running, program 2 will be aborted.
Application
If a program number is specified in operand 2, the programs from the one corresponding to
the program number in operand 1 to the other corresponding to the program number in
operand 2 can be started (EXPG) or ended (ABPG) simultaneously.
[3] Note
z Up to 16 programs (maximum of 8 programs in the case of ASEL/PSEL/SSEL controllers)
can be run at the same time. To use other programs when the controller is already running
16 programs, switch programs by closing a program or programs that are not required.
z If an ABPG command was executed to end a program while the program was executing a
movement command, the actuator immediately decelerates to a stop.
163
3.5.26 Aborting a Program
[1] Description
Abort a program currently running.
Execute an ABPG command (command to abort other program) from other program in the
multi-tasking mode.
EXPG n The abort control program starts. WTON 20 Wait for an abort input.
WTON 10 ABPG 1 Prg. 1 is aborted.
MOVP 1 EXIT The program ends.
BTON 303
:
:
[3] Note
If the running program was executing any movement command, the applicable axis
immediately decelerates to a stop and then the program ends.
164
3.5.27 Way to Prevent Duplicated Startup by Program
[1] Description
How to prevent other programs from starting redundantly using virtual I/O port N710
(Program No.
running) is explained. If a given program is not running as determined by the
checking of corresponding virtual I/O port N710
(Program No.
running), that program is
started.
3. Program
PRG1 (for task management)
PRG2 (auto)
TAG1 ABPG 3 4
N7102 EXPG 0.02 PRG2 stopped x PRG3 (step)
PRG2 running x ABPG 2
N7103 EXPG 0.03 PRG3 stopped ABPG 4 PRG4 (JOG)
ABPG 2 3
PRG3 running x
x
N7104 EXPG 0.04 PRG4 stopped x
x
PRG4 running
TIMW 0.02 Task open
GOTO 0.01
165
3.5.28 How to Cause Rotational Axis [Multi-rotation Specification] to Rotate
Multiple Times
Regarding the axis operation types and rotation axis modes
(1) Axis-specific parameter No. 1, “Axis operation type”
z Explanation
This parameter defines the type of the actuator used. (Set this to 1.)
z Setting values
0: Linear movement axis Actuator other than rotational axis
1: Rotational movement axis Rotational axis (RS-30/60, RCS2-RT*/RTC*)
z Explanation
This parameter selects a desired rotational axis mode. (Set this to 1.)
Related parameter: Axis-specific No. 7, “Soft limit+”
z Setting values
0: Normal
1: Index mode
* When the index mode is selected, the soft limit is fixed to 359.999mm internally.
Short-cut control is enabled while the index mode is selected.
2 to 5: Reserved by the system
166
(3) Axis-specific parameter No. 67, “Short-cut control selection for rotational movement axis”
z Set this parameter to 1 when the rotation of the rotary axis is required to be in one way.
Multi-rotation operation can be performed by setting this parameter to 1 (Short-cut control
selected) and repeating a movement command in the same rotating direction.
3. Program
What is short-cut control?
A type of operation in which the actuator moves to the closest point in the next move.
It may shortcut if a far point is indicated. Pay attention to the indication value if the
multi-rotation operation is preferred.
z Setting values
0: Not selected
1: Selected
Position No. 1
Program Position
Step No. Command Operation Position No. Position data
1 MOVP 2 1 0
Position No. 4 Position No. 2 2 MOVP 3 2 90
3 MOVP 4 3 100
4 MOVP 1 4 270
1° of position data
Position No. 3
corresponds to 1mm.
1 2 3 4
Position No. 1 Position No. 1
1 2 3 4
Position No. 1 Position No. 1
* By selecting short-cut control, you can cause the actuator to rotate in a specific direction.
167
3.6 For Advanced Operations (program edit)
3.6.1 Handling of Axis Numbers and Patterns
You can specify each axis using an axis number or multiple axes using an axis pattern.
In addition to following the above rule, you can also express axis numbers using symbols.
SCARA robot
Axis Axis number (Note) The movements of arms 1 and 2 of a SCARA robot are
X-axis 1 interlocked. It is not that arm 1 always represents the X-axis
and arm 2, Y-axis.
Y-axis 2 Consider that the X-axis (axis No. 1) moves in the direction of
Z-axis 3 X coordinates, while the Y-axis (axis No. 2) moves in the
direction of Y coordinates.
R-axis 4
Note that only when an AXST command is issued, the X-axis
represents the arm 1 axis, while the Y-axis represents the arm
2 axis.
In addition to following the above rule, you can also express axis numbers using symbols.
168
[2] Axis pattern
(Higher) (Lower)
3. Program
Use 1 1 1 1 1 1 1 1
Do not use 0 0 0 0 0 0 0 0
[Example] Axis pattern where home return is performed only for axis 3
HOME 100
If multiple axes must be specified at the same time, use an axis pattern.
• Commands where an axis pattern is used to specify axes
OFST, GRP, SVON, SVOF, HOME, JFWN, JFWF, JBWN, JBWF, STOP, PTST, PRED
CHVL, PBND, WZNA, WZNO, WZFA, WZFO, PAXS, NBND, PTRQ, MOVD, MVDI, NTCH,
RAXS, XAXS, ECMD(250)
169
[SCARA robot]
Use “1” or “0” to indicate which axis(es) you want to use.
(Higher) (Lower)
(Note) The movements of arms 1 and 2 of a SCARA robot are interlocked. It is not that arm 1
always represents the X-axis and arm 2, Y-axis.
Consider that the X-axis (axis No. 1) moves in the direction of X coordinates, while the
Y-axis (axis No. 2) moves in the direction of Y coordinates.
If multiple axes must be specified at the same time, use an axis pattern.
• Commands where an axis pattern is used to specify axes
OFST, GRP, PTST, PRED, PBND
(Note) In the case of SVON, SVOF and STOP, all axes are specified regardless of the axis
pattern.
170
3.6.2 Setting of Multi-tasking and Task Level
[1] Multi-tasking
Controllers come standard with the multi-tasking function that allows multiple programs to be
run simultaneously, such as moving actuators in one program and turning ON/OFF solenoid
valves in another programs.
“Multi-tasking” literally means performing multiple tasks. The main CPU processes each
program step by step. If multiple programs are run that contain actuator commands, timer
3. Program
commands, input waiting commands, etc., however, the main CPU uses an idle time while
waiting for completion of each commanded task to process different programs.
(If a given program has no idle time, the system forcibly switches to the next program after
1msec based on “time slicing” action.)
XSEL controllers adopt high-speed CPUs, so multi-tasking is also performed at high speed.
Note that this function also supports simulated ladder circuits, which means that as long as
your equipment is small enough you can build it as a sequencer.
Main CPU
171
[3] Multi-Tasking
Operation Flow
Tighten screw
Tighten screw
Although the flow chart is simple, the movement of axis 1 and axis 2 actuators and the
operation of the parts feeder must take place simultaneously. This requires “multi-tasking”
operation.
Screw
preparation OK
Tighten screw
Move
Shortage of
screws
172
[4] Program Switching
Various methods are available to switch between programs, depending on the purpose of
programs. The representative methods are explained below.
External start
Program switching
Program Single-tasking -----------EXIT command
Multi-tasking -------------EXPG command
3. Program
There are mainly two ways. One is to conduct with external startup and the other with
application program.
(1) External start method ······· Refer to the Instruction Manual for each controller.
{ Multi-tasking
By creating a program for control and executing EXPG Command (startup of another
program) in the program, multiple programs run in parallel one after another.
173
3.6.3 Pseudo-Ladder Task
A pseudo-ladder task function can be used depending on the command and extension
condition.
The input format is shown below. Note that this function must be used by expert engineers
with a full knowledge of PLC software design.
condition condition
E N Cnd Cmnd Operand 1 Operand 2 Pst
LD 7001 CHPR 1
TPCD 1
TAG 1
- - - - - - - - - -
- - - - - - - - - -
- - - - - - - - - -
- - - - - - - - - -
Ladder
statement
field
- - - - - - - - - -
- - - - - - - - - -
- - - - - - - - - -
Ladder
statement
field
174
[2] Ladder Statement Field
1) Extension conditions
LD ·······LOAD
A ·······AND
O ·······OR
AB ·······AND BLOCK
OB ·······OR BLOCK
All of the above extension conditions can be used in non-ladder tasks.
3. Program
2) Ladder commands
OUTR ·········· Ladder output relay (Operand 1 = Output, flag number)
TIMR ·········· Ladder timer relay
(Operand 1 = Local flag number, Operand 2 = Timer setting (sec))
175
• Ladder processing is based on software ladders using an interpreter, you cannot branch an
output “1” to produce an input “2” or “3” as shown in the input circuit below.
3. Program
Cannot be expressed.
To perform this operation, you can write a ladder as follows, for example.
However, this is conditional upon the output “1” not changing during the output processing at
OUTR301 in line 1. Make sure the output “1” does not change due to other programs.
OUTR301
1
2
OUTR302
1 3
Extension Input
N Command Operand 1 Operand 2 Operand 3
condition condition
E N Cnd Cmnd Operand 1 Operand 2 Operand 3
LD 1
A 2 OUTR 301
LD 1
A 3 OUTR 302
176
[4] Program Example
3. Program
Extension Input
N Command Operand 1 Operand 2 Output
condition condition
E N Cnd Cmnd Operand 1 Operand 2 Pst
LD 7001 CHPR 1
TPCD 1
TAG 1
LD 8
A N 9
O 10
LD N 11
A 12
AB OUTR 314
LD 7001 TSLP 3
LD 7001 GOTO 1
LD 7001 EXIT
177
An example where 13, 14, 15 and timer TIMER900 are added further is given below.
OUTR 314
8 9 11 12
3. Program
10 13 14
TIMR 900
314 15
0.5 SEC
Extension Input
N Command Operand 1 Operand 2 Output
condition condition
E N Cnd Cmnd Operand 1 Operand 2 Pst
LD 7001 CHPR 1
TPCD 1
TAG 1
LD 8
A N 9
O 10
LD N 11
A 12
LD 13
A N 14
OB
AB OUTR 314
LD 314
A 15 OUTR 900 0.5
LD 7001 TSLP 3
LD 7001 GOTO 1
LD 7001 EXIT
178
3.6.4 How to Use Arch Motion
Move from the current position to end point via arch motion.
3. Program
Start-point arch trigger End-point arch trigger
Position No. 13 * *
Position No. 11
Example of program
ARCH 10 (position of end point) 12 (position of top point of arch motion) ------ Arch motion
• Use an ACHZ command to specify the arch motion Z-axis. In the case of a SCARA robot,
you only need to specify the Z-axis (axis 3) to perform arch motion. (ACHZ 3)
• Use an ATRG command to specify the arch motion trigger.
After rising up to the start arch trigger from the current position by ARCH Command, a
movement in the direction other than Z-axis starts with the arch motion.The actuator passes
the top point being the Z point specified in operand 2 and completes the movement in a
direction other than that of arch motion Z-axis, after which it passes near the end-point arch
trigger and reaches the positions of the specified point.
Note
When operation is resumed after a pause, the transition from rising movement to horizontal
movement and transition from horizontal movement to rising movement may follow the paths
indicated by * (dotted lines) in the figure. Exercise caution to prevent contact.
179
• The arch motion Z-axis coordinate at the end point corresponds to the sum of the
arch-motion Z-axis component of position data specified in operand 1, if any, and the
arch-motion Z-axis offset. If the position data has no arch-motion Z component, the arch
motion Z-axis coordinate corresponds to the sum of the arch motion Z-axis coordinate at the
start point and the arch motion Z-axis offset. (Normally an offset is added to all positions
such as the arch trigger and Z point.)
• If the start-point arch trigger is set below the start point or end-point arch trigger is set below
the end point, an error occurs. (Note: The upward and downward directions have nothing to
do with + and - of coordinates.)
3. Program
• The rising direction of the arch motion Z-axis is the direction of moving from the end point to
Z point (while the downward direction is the opposite of that direction), and has nothing to do
with the magnitude correlation of coordinate values. Accordingly, be sure to check the actual
operating direction when using this command.
• As for the data of end-position arch trigger, also start/end the operation at a point above the
applicable arch trigger for any effective axis data other than data of the arch motion Z-axis, if
available.
• If a composite arch trigger is set and any effective axis data is available other than data of
the effective axis at the end point or arch motion Z-axis, the applicable axis also operates. In
this case, also start/end the operation at a point above the applicable arch trigger.
180
3.6.5 How to Use Palletizing Function
The SEL language provides palletizing commands that support palletizing operation. These
commands allow simple specification of various palletizing settings and enable arch motion
ideal for palletizing. You can also call a subroutine at the palletizing destination to perform
palletizing operation.
3. Program
(1) Palletizing setting
Set palletizing positions, arch motion, etc., using palletizing setting commands.
(2) Palletizing calculation
Specify palletizing positions using palletizing calculation commands.
(3) Palletizing movement
Execute motion using palletizing movement commands.
A maximum of 10 sets (palletizing No. 1 to 10) of palletizing setting can be specified for each
program.
181
[Palletizing pattern ................ Command: PAPN]
Select a pattern indicating the palletizing order.
The two patterns illustrated below are available.
The encircled numbers indicate the order of palletizing and are called “palletizing position
numbers”.
Pattern 1 Pattern 2
3. Program
Preferential Preferential
axis axis
(PX-axis) Start point (PY-axis) (PX-axis) Start point (PY-axis)
Fig. 1
The row from 1 to 3 to be placed first is called the “preferential axis (PX-axis)”, while the other
direction comprising the palletizing plane is called the “PY-axis”.
182
A. 3-point teaching method
To set the palletizing positions by 3-point teaching, store desired positions in position data
fields as three continuous position data and then specify the first position number using a
PAPS command.
This method allows you to set the PX-axis and PY-axis as three-dimensional axes not parallel
with the actuators and not crossing with each other.
In the example shown below, position data [1], [3] and [10] are stored in three continuous
position data fields.
3. Program
When three points are taught from position No. 11
Position No. 11 [1] : Start point (First palletizing position)
Position No. 12 [3] : Palletizing position corresponding to the end point in the PX-axis
direction
Position No. 13 [10] : Palletizing position corresponding to the end point in the PY-axis
direction
The encircled numbers indicate palletizing position numbers (palletizing order).
Use a PAPS command to specify the position number corresponding to the start point.
Preferential
axis
(PX-axis)
Fig. 1
PAPS 11
The pitches are calculated automatically from the count set for each axis.
In 3-point teaching, you can specify position data for two axes or three axes. If position data is
specified for three axes, the palletizing plane becomes a three-dimensional plane.
183
B. Method to set palletizing positions in parallel with the actuators
Palletizing reference point: Store the position data of the start point (palletizing position No. 1)
in a position data field and specify the applicable position number
using a PAST command, as shown below.
Palletizing pitches: Use a PAPT command to specify the pitches in the PX-axis and
PY-axis directions.
Palletizing axes: Use a PASE command to specify the two axes, one representing
the PX-axis direction and the other representing the PY-axis
direction, to be used in palletizing.
3. Program
(An actuator axis number parallel with the preferential axis (PX-axis) and another
perpendicular to the preferential axis)
Axis 1
PAST 100 Teach position data No. 100 as the start point.
PAPT 45 30 The PX-axis direction pitch is 45mm and the PY-axis
direction pitch is 30mm.
PASE 2 1 Set axis 2 as the priority axis (PX-axis) and axis 1 as
the rectangular axis and the priority axis.
(Note) When the above palletizing axes, palletizing pitches and palletizing reference point
are used, the PX-axis and PY-axis must be parallel with the actuators and crossing
with each other.
184
[Zigzag setting ................ Command: PSLI]
Use a PSLI command to set a zigzag layout as shown below.
Zigzag offset: Offset amount in the preferential-axis direction, which will be applied
when even-numbered rows are placed.
“Even-numbered rows” refer to the rows occurring at the even numbers
based on the row placed first representing the first row.
Zigzag count: Number in the even-numbered rows. Two in the diagram below.
3. Program
Preferential Offset
axis
(PX-axis)
Start point (X0, Y0, Z0) End point (X4, Y4, Z4)
185
[Palletizing arch motion setting]
(a) Axis number corresponding to palletizing Z direction...... Applicable command: PCHZ
(b) Palletizing Z-axis offset .................................................. Applicable command: OFPZ
(c) Composite palletizing ..................................................... Applicable command: PEXT
Composite palletizing data refers to position data used when you want to cause any axis
other than the PX- or PY- (or PZ-) axis to perform an additional operation in a palletizing
movement command (such as when setting a rotational angle).
Note, however, that any composite axis operation starts and ends at a position above the
applicable palletizing arch trigger.
3. Program
Set this composite palletizing setting command by specifying a position number under
which composite palletizing data is stored.
186
[3] Palletizing Calculation
The items that can be operated or obtained using palletizing calculation commands are shown
below:
3. Program
(ARCH excepted) --- PSET
Load coordinate
system, Yw-axis Palletizing container
PY-axis
PX-axis
+θ direction
θ
–θ direction
Load coordinate
system, Xw-axis
Fig. 4
If the composite axis is a rotating axis, you can obtain the palletizing angle and add it as an
offset to the operation of the composite axis in order to correct the composite axis against any
position error of the palletizing container.
With XSEL commands, executing a “get palletizing angle” command following a palletizing
setting via 3-point teaching will automatically obtain the palletizing angle.
If 3-point teaching is set three-dimensionally, you must specify the palletizing Z-axis.
187
[4] Palletizing Movement
Palletizing movement commands include commands used to move the actuator to palletizing
points and other that uses position data to specify the end point.
You need two actuator axes to constitute a two-dimensional plane. If you need a vertical axis
(PZ-axis), you must specify one more axis.
PMVP: Move from the current position to a palletizing point via PTP.
PMVL: Move from the current position to a palletizing point via interpolation.
PACH: Move from the current position to palletizing position via arch motion.
You must set palletizing arch motion based on palletizing setting.
188
[Movement command that uses position data as end point...ARCH]
Arch motion is performed to the end point specified by position data.
If the movement is linear in parallel with the actuator, arch motion operation can be possible by
specifying only two axes including the applicable axis and PZ-axis.
Arch motion must be set.
3. Program
Start-point arch trigger End-point arch trigger
Position No. 13 Position No. 11
189
[5] Program Examples
[Simple program example (two-axis specification) using PAPS (set by 3-point teaching)]
The example below specifies movement only and does not cover picking operation.
190
[Simple program example (two-axis specification) using PAPS, PAPT and PAST]
The example below specifies movement only and does not cover picking operation.
3. Program
6 EDPA End setting palletizing No. 1
7
8 VEL 200 Speed 200mm/sec
9 MOVL 1 Move to pick position
10 PSET 1 1 Set palletizing position number to 1
11 TAG 1
Move to palletizing position via
12 PMVL 1
interpolation
Move to pick position via
13 MOVL 1
interpolation
Increment palletizing position
14 PINC 1 600
number by 1
Move to beginning of loop if PINC
15 600 GOTO 1
was successful
16 EXIT End
PY-axis
(PX-axis)
Reference point
Position No. 2
(70, 70)
Pitch in PX-axis direction: 40
Pitch in PY-axis direction: 25
The PX-axis is parallel with axis 1,
Picking position while the PY-axis is parallel with axis 2.
Position No. 1
191
[Program example using PAPS (set by 3-point teaching)]
The example below specifies movement only and does not cover picking operation.
192
Step E N Cnd Cmnd Operand1 Operand2 Pst Comment
31 MOVP 8 Move to pick position
32
33 TAG 1 Beginning of loop process
34 PACH 1 9 Palletizing arch motion
35 Z point specified under position No. 9
36 ARCH 8 9 Arch motion
37 Z point specified under position No. 9
3. Program
Increment palletizing position
38 PINC 1 600
number by 1
Move to beginning of loop if PINC
39 600 GOTO 1
was successful
40
41 EXIT End task
42
43
44
45
193
Schematic diagram of placement point positions according to the program defined earlier
Axis 1 direction Priority axis (PX-axis) end point coordinate position No. 2 (260, 105, 100)
3. Program
PX-axis
Axis 2 direction
PY-axis
• The number at the top right of each circle indicates the palletizing position number.
• Number of points in PX-axis direction = 5, Number of points PY-axis direction = 7
• Zigzag offsets: 20
• Number of zigzags: 4
• Pallet angle error θ: -1.79°
194
[Example of program using PASE, PAPT and PAST]
The following program consists of movements only and does not support pick operation.
3. Program
6 PAPT 40 30 Pitch (X = 40, Y = 30mm)
7 PAST 1 Set reference position data
8 Use data of position No. 1
9 PSLI 20 4 Zigzag offset = 20mm
10 Number of zigzags = 4
11 PCHZ 3 Palletizing Z-axis = Axis 3
12 PTRG 4 4 Set palletizing arch trigger
13 Use data of position No. 4
14 OFPZ 100 PZ-axis offset = 100mm
15
16 EDPA
17
18 */ / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / /
19 ATRG 4 4 Set arch trigger
20 Use data of position No. 4
21 ACHZ 3 Set arch motion Z-axis
22
23 ACC 0.3 Acceleration
24 DCL 0.3 Deceleration
25 VLMX
26
27 PSET 1 1 Set palletizing position number
28 MOVP 8 Move to pick position
29 */ / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / /
30
195
Step E N Cnd Cmnd Operand1 Operand2 Pst Comment
31 TAG 1 Beginning of loop process
32 PACH 1 9 Palletizing arch motion
33 Z point specified under position No. 9
34 ARCH 8 9 Arch motion
35 Z point specified under position No. 9
Increment palletizing position
36 PINC 1 600
number by 1
3. Program
196
Schematic diagram of placement point positions according to the program defined earlier
Axis 1 direction
PX-axis
3. Program
PY-axis
• The number at the top right of each circle indicates the palletizing position number.
• Number of points in PX-axis direction = 5, Number of points PY-axis direction = 7
• Pitch in PX-axis direction: 40
• Pitch in PY-axis direction: 30
• Zigzag offsets: 20
• Number of zigzags: 4
197
3.6.6 Handling of WAIT Timers
WAIT timers are provided to wait for certain events to occur.
Use a TIMW command to specify waiting.
WAIT timers can be actuated in each program.
You can use a BTPN command to turn ON an I/O or flag for a specified time.
Similarly, you can use a BTPF command to turn OFF an I/O or flag for a specified time.
The maximum number of shot pulse timers that can be actuated simultaneously in one
program is 16 as a total of BTPN and BTPF commands.
Note, however, that there are no limitations to how many times these timers can be used in
one program.
198
3.6.8 Handling of Number of Symbol Definitions
With XSEL controllers, you can create a program with ease by using symbols representing
variable numbers, flag numbers, etc.
In the example below, variable No. 203 is defined the symbol “Count3” in the symbol edit
screen.
The defined symbol can be used in programs, and each statement of “Count3” in programs
indicates variable No. 203.
3. Program
Symbol edit screen Program edit screen
For information on how to edit symbols, refer to “Editing Symbols” in the XSEL Teaching Pendant
Instruction Manual or “Symbol Edit Window” in the XSEL PC Software Instruction Manual.
199
3.6.9 Serial Communication
[1] String processing commands
Strings are character strings. Strings used by the controllers covered by this manual include
global strings and local strings.
Global strings can be read or written commonly from any program.
Local strings are valid only within each program and cannot be used in other programs.
Global strings and local strings are differentiated by the range to which their number belongs.
Global areas 300 to 999 (700)
3. Program
Character
原点復帰指令string for Characters
文字列の終わりを indicating the end
homeを意味する文字列
return command of the character string
示す文字
200
[3] Explanation of string
Strings sent according to the format explained above are stored in boxes designed to contain
character strings, so that they can be used freely in the program.
Two types of strings are available: global strings that can be read or written in all programs,
and local strings that can be red or written only in each program. Both strings are differentiated
by their column numbers.
Column
カラム 1 2 3 4 5 6 ・・・・・・ ・・・・・・ 295 296 297 298 299
3. Program
Local string
ローカルストリング
299
299
Column
カラム 300 301 302 303 304 ・・・・・・ ・・・・・・ 995 996 997 998 999
Global string
Global string
グローバルストリング
700
700
700
Column
カラム 300 301 302 303 305 306 307 308 309
Global string
グローバルストリング
Store “HOME”
カラム300から
from column 300
“HOME”を格納
201
[4] Determination of transmission format
In this example of application program, three types of transmission formats are required, or
namely transmission formats for home return command, movement command and movement
completion. These formats are determined as follows. Note that these are only examples and
the user can freely determine each format.
Speed
速度 Axis 1 position
1軸位置 Axis2軸位置
2 position
202
[5] Processing procedure
The processing procedure you should follow to program this application example is explained.
A. Set “LF” as characters (terminator characters) indicating the end of a string.
B. Open channel 1 of the RS232 unit to use this channel 1.
C. Program so that any data, if sent through channel 1, is received into columns starting from
column 1 for local strings.
D. Program so that if the received data is “MOVE”, the applicable speed data is converted to a
binary value and the converted binary value is set in variable 10, while the applicable
position data is converted to a binary value and the obtained binary value is set in position
3. Program
No. 1, after which the actuator moves and when the movement is completed, “OK” is sent.
203
[7] Number of SIO Channels for each Controller
The channel numbers of SIO channels used in RS232C serial communication are as shown
below.
Use OPEN and CLOS commands to specify SIO channel numbers that are used to open and
close the RS232C serial communication line.
How many SIO channel numbers are available varies depending on the controller.
SIO channel
Controller
3. Program
number
XSEL-P/Q/PCT/QCT/PX/QX/R/
1 to 2
S/RX/SX/RXD/SXD
XSEL-RA/SA/RAX/SAX/RAXD/
1
SAXD
XSEL-J/JX
(1, 2-axis specification) 1*1
TT
XSEL-J/JX
(3, 4-axis specification)
1*1 *2
XSEL-K/KE/KT/KET,
KX/KETX, TTA, MSEL
SSEL, ASEL, PSEL 0*1
*1 This channel is used as the teaching-pendant connector port.
*2 If an expansion SIO board is installed, No. 2 and subsequent channels can be used.
204
3.7 Controller Data Structure and Saving of Data
3.7.1 XSEL-J/K/KE/KT/KET, JX/KX/KETX
[1] Data structure
The controller contains parameters as well as position data and application programs used
to use the SEL language fully.
3. Program
Data structure of XSEL controller
Communication
Main
Driver Driver Driver Driver
1 2 3 4
SEL language
Application
Position
programs
Parameters data
Parameters Parameters Parameters Parameters
205
[2] Saving of data
XSEL controllers have areas saved by the backup battery and areas saved by the flash
memory.
Also note that even if you transfer data to your controller via the PC software or teaching
pendant, the data is only written to the temporary memories and will be cleared once the
power is turned OFF or controller is reset, as shown below.
So that your important data is saved without fail, write the data to the flash memory.
Write to flash
Programs memory
Parameters Temporary Flash
(Content 1) Transfer memory memory
Symbols
Load after reset
Transfer
Slave card
parameters Temporary
Transfer memory
(Content 2)
Load after reset
Transfer
* Encoder Temporary * Encoder
Transfer EEPROM
parameters memory
Load after reset
Battery
Positions Transfer Write to flash Flash
backup memory
memory
memory
* Encoder parameters are stored not in the controller, but in the EEPROM of the actuator's encoder. Accordingly, they
are loaded to the controller when the power is turned on or software is reset.
Since programs, parameters and symbols are loaded from the flash memory upon restart,
these data in the temporary memories will return to the conditions before editing unless written
to the flash memory. The controller always operates according to the data in each temporary
memory (dotted box) (excluding parameters).
Content 1: Parameters other than those included in Content 2 below and encoder
parameters
Content 2: Driver card and I/O slot card (power card) parameters
Content 3: Flags, variables and strings
206
[System-memory backup battery is not used]
3. Program
Write to flash
Programs memory
Parameters Flash
Transfer Temporary
(Content 1) memory
memory
Symbols
Positions Load after reset
Transfer
Slave card Temporary
parameters Transfer memory
(Content 2)
Load after reset
Transfer
Since programs, parameters, symbols and positions are loaded from the flash memory upon
restart, these data in the temporary memories will return to the conditions before editing unless
written to the flash memory. The controller always operates according to the data in each
temporary memory (dotted box) (excluding parameters).
Note: SEL global data cannot be retained unless the backup battery is installed.
207
[3] Notes
Caution
• Notes on transferring data and writing it to the flash memory
Never turn OFF the main power while data is being transferred or written to the flash
memory, because data may be lost and the controller will no longer be able to operate.
Encoder parameters are stored in the EEPROM of the actuator’s encoder. (Unlike
parameters of other types, these parameters are not stored in the controller’s
EEPROM.) When the power is turned on or software is reset, encoder parameters are
loaded from the EEPROM to the controller.
Accordingly, if parameters are saved to a file after the controller power was turned on
(or software was reset) while the actuator (encoder) was still not connected, the
encoder parameters in this file will become invalid.
208
3.7.2 XSEL-P/Q/PCT/QCT, PX/QX
[1] Data structure
The controller contains parameters as well as position data and application programs used
to use the SEL language fully.
3. Program
Communication
Main
Driver Driver Driver Driver
1 2 3 4
SEL language
Application
Position
programs
Parameters data
Parameters Parameters Parameters Parameters
The customer must create position data and application programs. Certain parameters can be
changed according to the customer’s system.
209
[2] Saving of data
XSEL controllers have areas saved by the backup battery and areas saved by the flash
memory.
Also note that even if you transfer data to your controller via the PC software or teaching
pendant, the data is only written to the temporary memories and will be cleared once the
power is turned OFF or controller is reset, as shown below.
So that your important data is saved without fail, write the data to the flash memory.
1) XSEL-P/Q/PCT/QCT, PX/QX
(gateway function + 5V supply switch not available, memory capacity 16M)
Other parameter No. 20 = 2 (System-memory backup battery installed)
Data is retained while
Data edited on the PC Data is retained even after
the power is ON,
or teaching pendant the power is turned OFF
but cleared upon reset
Positions
Transfer
Coordinate system data
Since programs, parameters and symbols are loaded from the flash memory upon restart,
these data in the temporary memories will return to the conditions before editing unless written
to the flash memory.
The controller always operates according to the data in each temporary memory (excluding
parameters).
210
2) XSEL-P/Q/PCT/QCT, PX/QX
(gateway function + 5V supply switch available, memory capacity 32M)
3. Program
Main CPU RAM memory Main CPU flash memory
Write to flash memory
Programs
Parameters (other than
Transfer upon reset
slave card parameters)
Transfer Symbols
*1
Positions (XSEL axes)
*2
Positions (XSEL axes)
Transfer
Coordinate system data
User-data backup
Transfer memory
(positions (RC-axis))
SEL global data
(flags, variables, strings)
Error lists
Since programs, parameters and symbols are loaded from the flash memory upon restart,
these data in the temporary memories will return to the conditions before editing unless written
to the flash memory.
The controller always operates according to the data in each temporary memory (excluding
parameters).
211
[System-memory backup battery is not used]
1) XSEL-P/Q/PCT/QCT, PX/QX
(gateway function + 5V supply switch not available, memory capacity 16M)
Since programs, parameters, symbols and positions are loaded from the flash memory upon
restart, these data in the temporary memories will return to the conditions before editing unless
written to the flash memory. The controller always operates according to the data in the main
CPU memory (excluding parameters).
Note: SEL global data cannot be retained unless the backup battery is installed.
212
2) XSEL-P/Q/PCT/QCT, PX/QX
(gateway function + 5V supply switch available, memory capacity 32M)
3. Program
Main CPU RAM memory Main CPU flash memory
Programs
Parameters (other than Write to flash memory
slave card parameters)
Transfer Symbols
Transfer upon reset
*1
Positions (XSEL axes)
Coordinate system data
Since programs, parameters, symbols, positions and user-data backup memory are loaded
from the flash memory upon restart, these data in the temporary memories will return to the
conditions before editing unless written to the flash memory. The controller always operates
according to the data in the main CPU memory (excluding parameters).
Note: SEL global data cannot be retained unless the backup battery is installed.
213
[3] Notes
Caution
• Notes on transferring data and writing it to the flash memory
Never turn OFF the main power while data is being transferred or written to the flash
memory, because data may be lost and the controller will no longer be able to operate.
Encoder parameters are stored in the EEPROM of the actuator’s encoder. (Unlike
parameters of other types, these parameters are not stored in the controller’s
EEPROM.) When the power is turned ON or software is reset, encoder parameters
are loaded from the EEPROM to the controller.
Accordingly, if parameters are saved to a file after the controller power was turned on
(or software was reset) while the actuator (encoder) was still not connected, the
encoder parameters in this file will become invalid.
214
3.7.3 XSEL-R/S/RX/SX/RXD/SXD
[1] Data structure
The controller contains parameters as well as position data and application programs used
to use the SEL language fully.
3. Program
Communication
Main
Driver Driver Driver Driver
1 2 3 4
SEL language
Application
Position
programs
Parameters data
Parameters Parameters Parameters Parameters
The customer must create position data and application programs. Certain parameters can be
changed according to the customer’s system.
215
[2] Saving of data
In XSEL controller, there is a storage domain with saving memory and a storage domain with
flash memory.
Also note that even if you transfer data to your controller via the PC software or teaching
pendant, the data is only written to the temporary memories and will be cleared once the
power is turned OFF or controller is reset, as shown below.
So that your important data is saved without fail, write the data to the flash memory.
Data is retained while
Data edited on the PC or Data is retained even after
the power is ON,
teaching pendant the power is turned OFF
but cleared upon reset
3. Program
Programs
Parameters (other than
Write to flash memory
slave parameters)
Symbols
Transfer
Position (X-SEL Axis)
(Latter half)
Position comments Transfer upon reset
(X-SEL Axis)
Transfer
Slave card parameters
Transfer (encoder parameters)
Transfer upon reset
Retaining Memory
Positions (X-SEL Axis)
(First half)
Transfer Coordinate system data
(for SCARA)
Since programs, parameters and symbols are loaded from the flash memory upon restart,
these data in the temporary memories will return to the conditions before editing unless written
to the flash memory.
The controller always operates according to the data in each temporary memory (excluding
parameters).
Note: The first half of the position data is stored in the saving memory while the second half in
flash memory. The comment for each position data can be used in Positions No. 1 to
10000, and it is saved in the flash memory.
216
[3] Notes
Caution
• Notes on transferring data and writing it to the flash memory
Never turn OFF the main power while data is being transferred or written to the flash
memory, because data may be lost and the controller will no longer be able to operate.
3. Program
Encoder parameters are stored in the EEPROM of the actuator’s encoder. (Unlike
parameters of other types, these parameters are not stored in the controller’s
EEPROM.) When the power is turned ON or software is reset, encoder parameters
are loaded from the EEPROM to the controller.
Accordingly, if parameters are saved to a file after the controller power was turned on
(or software was reset) while the actuator (encoder) was still not connected, the
encoder parameters in this file will become invalid.
217
3.7.4 XSEL-RA/SA/RAX/SAX/RAXD/SAXD
[1] Data structure
The controller contains parameters as well as position data and application programs used
to use the SEL language fully.
Communication
Main
Driver Driver Driver Driver
1 2 3 4
SEL language
Application
Position
programs
Parameters data
Parameters Parameters Parameters Parameters
The customer must create position data and application programs. Certain parameters can be
changed according to the customer’s system.
218
[2] Saving of data
In XSEL controller, there is a storage domain with saving memory and a storage domain with
flash memory.
Also note that even if you transfer data to your controller via the PC software or teaching
pendant, the data is only written to the temporary memories and will be cleared once the
power is turned OFF or controller is reset, as shown below.
So that your important data is saved without fail, write the data to the flash memory.
Data is retained while
Data edited on the PC or Data is retained even after
the power is ON,
teaching pendant the power is turned OFF
but cleared upon reset
3. Program
Main CPU RAM memory Main CPU flash memory
Programs
Parameters
(other than slave parameters)
Write to flash memory
Symbols
Position
Transfer
(Standard motion control axis)
Position comments
(Standard motion control axis)
(No.1 to 10000) Transfer upon reset
Transfer
Slave card parameters
Transfer (encoder parameters)
Transfer upon reset
Retaining Memory
Positions
(Standard motion control axis)
Transfer Coordinate system data
(for SCARA)
Since programs, parameters and symbols are loaded from the flash memory upon restart,
these data in the temporary memories will return to the conditions before editing unless written
to the flash memory.
The controller always operates according to the data in each temporary memory (excluding
parameters).
Note: The first half of the position data is stored in the battery-less backup memory while the
second half in flash memory. The comment for each position data can be used in
Positions No. 1 to 10000, and it is saved in the flash memory.
219
[3] Notes
Caution
• Notes on transferring data and writing it to the flash memory
Never turn OFF the main power while data is being transferred or written to the flash
memory, because data may be lost and the controller will no longer be able to operate.
Encoder parameters are stored in the EEPROM of the actuator’s encoder. (Unlike
parameters of other types, these parameters are not stored in the controller’s
EEPROM.) When the power is turned ON or software is reset, encoder parameters
are loaded from the EEPROM to the controller.
Accordingly, if parameters are saved to a file after the controller power was turned on
(or software was reset) while the actuator (encoder) was still not connected, the
encoder parameters in this file will become invalid.
220
3.7.5 ASEL, PSEL
[1] Data structure
The controller contains parameters as well as position data and application programs used
to use the SEL language fully.
3. Program
Main
SEL language
221
[2] Saving of data
On ASEL and PSEL controllers, data is saved as shown below.
Even if you transfer data to your controller via the PC software or teaching pendant, the data
is only written to the temporary memories and will be cleared once the power is turned OFF
or controller is reset, as shown below.
To save the data without fail, be sure to write the data you want to save to the flash ROM.
Since programs, parameters, symbols and positions are loaded from the flash memory upon
restart, these data in the temporary memories will return to the conditions before editing unless
written to the flash memory. The controller always operates according to the data in the main
CPU memory (excluding parameters).
Note: SEL global data cannot be retained unless the backup battery is installed.
SEL global data is cleared once the control power is turned OFF or software is reset.
Error lists are cleared once the control power is turned OFF.
222
[System-memory backup battery (optional) is used]
The setting of other parameter No. 20 = 2 (System-memory backup battery installed) must be
changed.
Data edited on Data is retained while
Data is retained even after
the PC or the power is ON,
the power is turned OFF
teaching pendant but cleared upon reset
3. Program
Main CPU memory Main CPU flash memory
Write to flash memory
Programs
Parameters (other than
Transfer encoder parameters)
Symbols Transfer upon reset
Positions
PC
software
TP
Transfer Positions
Since programs, parameters and symbols are loaded from the flash memory upon restart,
these data in the temporary memories will return to the conditions before editing unless written
to the flash memory.
The controller always operates according to the data in each temporary memory (excluding
parameters).
223
[3] Notes
Caution
• Notes on transferring data and writing it to the flash memory
Never turn OFF the main power while data is being transferred or written to the flash
memory, because data may be lost and the controller will no longer be able to operate.
Encoder parameters are stored in the EEPROM of the actuator’s encoder. (Unlike
parameters of other types, these parameters are not stored in the controller’s
EEPROM.) When the power is turned ON or software is reset, encoder parameters
are loaded from the EEPROM to the controller.
Accordingly, if parameters are saved to a file after the controller power was turned on
(or software was reset) while the actuator (encoder) was still not connected, the
encoder parameters in this file will become invalid.
224
3.7.6 SSEL
[1] Data structure
The controller contains parameters as well as position data and application programs used
to use the SEL language fully.
3. Program
Communication
Main
Driver Driver
1 2
SEL language
Parameters Parameters
225
[2] Saving of data
On SSEL controllers, data is saved as shown below.
Even if you transfer data to your controller via the PC software or teaching pendant, the data
is only written to the temporary memories and will be cleared once the power is turned OFF
or controller is reset, as shown below.
To save the data without fail, be sure to write the data you want to save to the flash ROM.
Since programs, parameters, symbols and positions are loaded from the flash memory upon
restart, these data in the temporary memories will return to the conditions before editing unless
written to the flash memory. The controller always operates according to the data in the main
CPU memory (excluding parameters).
Note: SEL global data cannot be retained unless the backup battery is installed.
SEL global data is cleared once the control power is turned OFF or software is reset.
Error lists are cleared once the control power is turned OFF.
226
[System-memory backup battery (optional) is used]
The setting of other parameter No. 20 = 2 (System-memory backup battery installed) must be
changed.
Data is retained while
Data edited on the PC Data is retained even after
the power is ON,
or teaching pendant the power is turned OFF
but cleared upon reset
3. Program
Main CPU memory Main CPU flash memory
Transfer Positions
Since programs, parameters and symbols are loaded from the flash memory upon restart,
these data in the temporary memories will return to the conditions before editing unless written
to the flash memory.
The controller always operates according to the data in each temporary memory (excluding
parameters).
227
[3] Notes
Caution
• Notes on transferring data and writing it to the flash memory
Never turn OFF the main power while data is being transferred or written to the flash
memory, because data may be lost and the controller will no longer be able to operate.
Encoder parameters are stored in the EEPROM of the actuator’s encoder. (Unlike
parameters of other types, these parameters are not stored in the controller’s
EEPROM.) When the power is turned ON or software is reset, encoder parameters
are loaded from the EEPROM to the controller.
Accordingly, if parameters are saved to a file after the controller power was turned on
(or software was reset) while the actuator (encoder) was still not connected, the
encoder parameters in this file will become invalid.
228
3.7.7 TT/TTA
[1] Data structure
The controller module of a tabletop robot contains parameters as well as position data and
application programs used to drive the SEL language.
3. Program
Communication
Main
Driver Driver Driver
1 2 3
SEL language
229
[2] Data Saving of TT
When data created/edited using the PC software or teaching pendant is transferred to the
controller (by pressing the Write button or WRT key if you are using the teaching pendant),
the data is temporarily stored in the controller’s memories. Accordingly, such data will be
cleared once the power is turned off or software is reset (restarted).
If you want your data to be retained, be sure to write it to the flash memory.
Note: Global data (variables, flags, strings) is cleared once the power is turned OFF or
software is reset (restarted) (global data cannot be retained after the power is turned
3. Program
OFF). Error lists are retained after the software is reset, but cleared if the power is
turned OFF.
Transfer
Slave card
Temporary
parameters Transfer memory
(Content 2)
Load after reset
Transfer
Encoder Temporary Encoder
parameters Transfer EEPROM
memory
Load after reset
Content 1: Parameters other than those included in Content 2 below and encoder parameters
Content 2: Driver card and I/O slot card (power card) parameters
Content 3: Flags, variables and strings
Since programs, parameters, symbols and positions are loaded from the flash memory upon
restart, these data in the temporary memories will return to the conditions before editing unless
written to the flash memory. The controller always operates according to the data in each
temporary memory (dotted box) (excluding parameters).
230
[3] Notes
Caution
Notes on transferring data and writing it to the flash memory
Never turn OFF the main power while data is being transferred or written to the flash
memory, because data may be lost and the controller will no longer be able to operate.
3. Program
In the retaining memory (FRAM), Position data (No. 1 to 10000), SEL global data, error list
and maintenance information are stored for backup in standard with no battery.
Position (No. 1 to 10000) is stored only in the retaining memory. (It is not necessary to have
the flash ROM writing.)
Data edited on the PC or Data is retained while the power is ON, Data is retained even after the power is
teaching pendant but cleared upon reset turned OFF
Programs
Parameters Write to flash memory
(Other than
Driver card parameter)
Symbols Reset transfer
Positions
PC software Transfer
Driver card parameter
TP
Transfer
Reset transfer
(Note 1) Do not attempt to turn the power OFF during the memory initialization (position, global
variables and flags) or the maintenance information initialization. As the initializing
process terminates incomplete, errors described below* may be generated in the next
startup. Redo initializing in case the power is turned OFF accidently, and an error is
generated. (* Error No. 4A4, 69E, 6C7 or 826)
(Note 2) As the position data, maintenance information data and SEL global data will not be
initialized even if an error gets detected (error data can be seen as it is), do not attempt
to use the data as it is. To cancel the error, initialize the memory in the data the error
was detected.
For position data (No. 10001 to 30000), conduct also the flash ROM writing after
initializing.
231
(Reference) How to Initialize Memory
• Position Data: Select [Memory Initialization] → [Position Data] Menu in the PC software
• Coordinate System Data: Select [Memory Initialization] → [Coordinate System Definition Data]
Menu in the PC software
• SEL Global Data: Select [Memory Initialization] → [Global Variables/Flags] Menu in the PC
software
• Maintenance Information Data: Select [Memory Initialization] → [Maintenance Information] in the
PC software and select [Information Initialization]
* Initialization available when Error No. 4A4, 4A5 or 4A6 has occurred
3. Program
232
3.7.8 MSEL
3. Program
Main
Driver Communication
SEL language
Parameters Application
Position programs
Parameters data
233
[2] Saving of data
On MSEL controllers, data is saved as shown below.
Even if you transfer data via the PC software or teaching pendant, the data, except for some
(Note)
, is only written to the memories temporarily and will be cleared once the power is turned
off or controller is reset.
To save the data without fail, be sure to write the data you want to save to the flash ROM.
(Note) The position data (No. 1 to 10000), SEL global data, error list, maintenance information
and SCARA coordinate system data are stored in the battery-less backup memory
3. Program
Transfer
Programs Parameters
(other than driver card Write to flash memory
parameters) Symbols
Transfer
PC
software
Driver CPU Retention Memory
TP
Transfer
Main CPU
battery-less backup memory
Positions
Transfer
(No.1 to 10,000)
Coordinate System Data
234
(Note 1) Do not attempt to turn the power off while initializing the memories (position, global
variables and flags) or maintenance information. It may cause to generate such as an
error* in the next startup due to incomplete of initializing process. Have an initializing
process again in case the power is turned off accidently. (* Error No. 4A4, 69E, 6C7,
826)
(Note 2) Because the position data, maintenance information data and SEL global data will not
be initialized (error data remains) even after an error is detected, make sure not to
use the data without canceling it. To cancel an error, initialize the memory of the data
which an error has been detected.
3. Program
For the position data (No. 10001 to 30000), do not fail to conduct the flash ROM
writing at the same time after initializing.
235
4. Program Edit
4.1 Each Type of Data Available to Handle on the Program and its Range
In SEL language, separate areas are provided for each task such as I/O port, variables, flags, etc.
Some areas are separated to the global area and local area. Data set to the global area can
be read and written from multiple programs.
The global domain is backed up in the controller battery for the models except for XSEL-R*/S*,
TTA, MSEL Data in local area gets cleared each time the program is booted.
In the following, explains about the area and range. However, It will not be backed up.
SSEL/ASEL/PSEL will be possible backup option.
Global area Local area
4. Program Edit
236
Global area Local area
Function Total Total Remarks
Range Range
number number
For SCARA robots,
For the axes of the
coordinate system
definition unit of
Tool coordinate system number 0 to 127 128 MSEL-PC/PG and TTA
set in Coordinate System
Definition 1 Constructing
Axes Setting (All Axes
Parameter No. 56)
Simple contact check zone number 1 to 10 10 For SCARA robots
4. Program Edit
For single-axis/
Zone number 1 to 4 4
Cartesian robots
Other than
1 to 10 10 XSEL-RA/SA/RAX/SAX/
Palletizing number RAXD/SAXD
XSEL-RA/SA/RAX/SAX/
1 to 32 10
RAXD/SAXD
Varies depending on the
Axis number 1 to 8 8
controller.
Varies depending on the
Axis pattern 0 to 11111111
controller.
Program number
(XSEL-P/Q/PX/QX/PCT/QCT, 1 to 128 128
XSEL-R/S/RX/SX/RXD/SXD, SSEL)
Program number
(XSEL-J/K/KE/KTKET/JX/KX/KETX, 1 to 64 64
TT, ASEL/PSEL)
Program number
(XSEL-RA/SA/RAX/SAX/RAXD/SAXD, 1 to 255 255
TTA, MSEL)
237
Global area Local area
Function Total Total Remarks
Range Range
number number
Depend on how
XSEL-R/S/RX/SX/RXD/ 1 to 53332 53332
many axes are to be
SXD (MAX) (MAX)
used
Depend on how
XSEL-RA/SA/RAX/SAX/ 1 to 55000 55000
many axes are to be
RAXD/SAXD (MAX) (MAX)
Position used
number XSEL-P/Q/PX/QX/PCT/QC
1 to 20000 20000
T, SSEL
XSEL-J/K/KE/KT/KET/
1 to 3000 3000
JX/KX/KETX, TT
4. Program Edit
238
Global area Local area
Function Total Total Remarks
Range Range
number number
XSEL-P/Q/PCT/QCT/PX/
5000 (including string literals)
QX/R/S/RX/SX/RXD/SXD
Number of XSEL-RA/SA/RAX/SAX/
10000 (including string literals)
symbol RAXD/SAXD
used in XSEL-J/K/KE/KT/KET/JX/
commands KX/KETX, TT, TTA, MSEL, 5000 (including string literals)
SSEL
ASEL/PSEL 2500 (including string literals)
XSEL-R/S/RX/SX/RXD/
400
4. Program Edit
SXD, TTA, MSEL
XSEL-RA/SA/RAX/SAX/
400
Number of RAXD/SAXD
recorded XSEL-P/Q/PCT/QCT/PX/
200
history QX
XSEL-J/K/KE/KT/KET/JX/
200
KX/KETX, TT
SSEL/ASEL/PSEL 100
* Character-string literals are used in certain string-operation commands and consist of the portion
enclosed by single quotation marks (‘ ‘) (maximum eight single-byte characters).
(Note) When the number of symbols used in a command is at nearly the limit, C46 error “Blank
area shortage error with source-symbol storage table” will occur.
239
4.2 Setting of Function and Values
Explanation below shows how you should handle the I/O port and how you should take the
variables in your mind when you create a program with SEL language.
240
4.2.2 Handling (Setting and Resetting) of Flags
Unlike their literal meaning, flags are actually “memories” where data is set and reset. Flags
correspond to “auxiliary relays” in sequencers.
Flags are classified into two types: general-purpose flags (global flags) that are assigned
numbers from 600 to 899 and usable in all programs, and dedicated flags (local flags) that are
assigned numbers from 900 to 999 and usable only in each program.
The general-purposed flags (global flags) can be saved (in the battery backup or saving
memory, depends on the models) even after the power is turned OFF.
Dedicated flags (local flags) will be cleared once the power is turned OFF.
4. Program Edit
Flag No. 600 to 899 Usable in all programs. "General-purpose flags (global flags)"
Flag No. 900 to 999 Usable only in each program. "Dedicated flags (local flags)"
Program 1 Program n
241
4.2.3 How to Deal with Values and Variables
(1) How to Deal with Values
If the last digit of the set value is H, set with hexadecimal number.
Refer to the following.
Input the value of hexadecimal number transformed from the binary number.
●Binary number
Binary number expresses a numeral figure with using 2 numbers, 0 and 1.
The number increases in the order of 0, 1, and then the number of digit increases, and goes 10, 11
…
Decimal
0 1 2 3 4 5 6 7 8 9 10
number
4. Program Edit
Binary
0 1 10 11 100 101 110 111 1000 1001 1010
number
●Hexadecimal number
Hexadecimal number expresses a numeral figure with using numbers from 0 to 9 and alphabets
from A to F. The number increases in the order of 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B,C, D, E, F, and then
the number of digit increases, and goes 10, 11, …
Decimal
0 to 9 10 11 12 13 14 15 16
number
(Same for decimal and
Hexadecimal hexadecimal numbers) A B C D E F 10
number
Example 1 : 001340H
Example 2 : 123456H
242
(2) Types and Handling of Variables
1) Meaning of variables
“Variable” is a technical software term. Simply put, a variable is a “container in which a value
is placed”. You can use variables in many different ways such as placing a value in a
variable, taking a value out of a variable, and adding or subtracting a value to/from a
variable, to name a few.
4. Program Edit
Add 1
You can do
various things.
With this command, if 2 is already placed in the box of variable 1 as shown, then 1 is added
and the content of variable 1 becomes 3.
Add 1.
243
2) Types of variables
Variables are classified into two types as explained below.
[Integer variables]
These variables cannot handle decimal points.
[Example] 1234
Integer variable box
4. Program Edit
200 to 299
Integer variable No. Usable in all programs. “Global integer variables”
1200 to 1299
Usable in all programs. “Global integer variables”
(XSEL-P/Q/PCT/QCT (Ver.1.47 or later)
Applied for PC Software V12.02.00.00 or later, Touch
Panel Teaching (TB-01) V1.30 or later, Touch Panel
Integer variable No. 2000 to 2799 Teaching (TB-02)
XSEL-R/S (Main application Ver.1.24 or later)
Applied for PC Software V12.03.04.00 or later, Touch
Panel Teaching (TB-01) V1.51 or later, Touch Panel
Teaching (TB-02)
XSEL-RA/SA/RAX/SAX/RAXD/SAXD)
1 to 99
Integer variable No. Usable only in each program. “Local integer variables”
1001 to 1099
Caution
• Values from -9,999,999 to 99,999,999 can be entered in programs.
• Variable 99 is a special register used for integer calculations by the system.
[Real variables]
These variables are actual numbers and can also handle decimal points.
[Example] 1234.567
↑
(decimal point)
300 to 399
Real variable No. Usable in all programs. “Global real variables”
1300 to 1399
100 to 199
Real variable No. Usable only in each program. “Local real variables”
1100 to 1199
Caution
• Values from -99,999.9 to 999,999.9 (up to eight digits including the sign and decimal point)
can be entered in programs.
• Variable 199 is a special register used for integer calculations by the system.
244
[Indirect specification of variables]
Variables are specified with a “*” (asterisk) appended to them.
In the example below, the content of variable box 1 is placed in variable box 2. If “1234” is in
variable box 1, “1234” is placed in variable box 2.
4. Program Edit
Place
3) Character-String Literals
Character-string literals are used in certain string-operation commands and consist of the
portion enclosed by single quotation marks (‘ ‘) (maximum eight single-byte characters).
With the PC software, single-byte ASCII code characters from 20h to 7Eh (limited to those
that can be input via keyboard) can be used inside the single quotation marks. With the
teaching pendant, single-byte alphanumeric characters and single-byte underscores can be
used.
245
4.2.4 Specification Method for Local String and Global String
Serial communication is implemented basically by means of exchange of character strings.
These character strings are called “string”.
Strings sent in the communication transmission format can be used freely in programs, or
specifically they are stored in boxes (columns) in which strings are placed.
These string are classified into global string that can be read or written in all programs, and
local string that can be read or written only in each program.
String are differentiated by the range of their number.
Column number
4. Program Edit
Column
Local strings
299
Column
Global strings
700
The characters constituting a string are stored one by one in each of these fields.
The position of a given field in a string is expressed by column X, and the column to store
each character in can be set freely using a command.
246
4.2.5 Handling of Tag Numbers
A “TAG” is a “heading”.
You may stick labels on pages you want to read frequently. Tags are used for the same
purpose.
The destination to jump to where you specify in the jump command “GOTO” is a “TAG”.
TAG
4. Program Edit
Command Operand 1
TAG Tag number (integer of 1 to 256)
TAG 1
GOTO 1
247
5. SEL Commands
5.1 How to Read Explanation of Command
Applicable models
XSEL XSEL ASEL
XSEL XSEL XSEL XSEL
5. SEL Commands
[Function] Assign the value specified in operand 2 to the variable specified in operand 1.
The output will turn ON when 0 is assigned to the variable specified in operand 1. [3] Description of Functions
[Example 1] LET 1 10 Assign 10 to variable 1.
3) Command,
1) Expansion condition declaration
2) Input condition 4) Operand 1 5) Operand 2 6) Output
Program screen
248
2) Input condition (I/O, flag)
Free ······· You can freely set a desired input condition by selecting an input port, output
port, input/output ports or flag (global area or local area).
3) Command/declaration
State a command/declaration command*1. The command explained in the applicable
section is described.
*1 Once executed in the program, “Actuator Control Declaration” Command (VEL
command, VELS command, etc.) will remain effective while the program is running,
until the command is changed. If you want to change a value (operand 1, operand 2,
etc.) previously set by an “Actuator Control Declaration” Command, you must reset
(change) the value at the necessary location in the program.
4) Operand 1,
5) Operand 2
5. SEL Commands
What is set in these items varies depending on the command. Set an appropriate item
according to each command.
6) Output (output port, flag)
This is where the result of command execution is shown, and the output 6) turns ON and
OFF*2. You can freely set an output port, input/output ports or flag (global area or local
area) in which to store the condition of this output. What is turned ON/OFF in output varies
depending on the command.
In the 6) Output (output port, flag), the following types are to be shown depending on the
operational conditions.
(Output operation types)
CC ········ Command successful
ZR ········ Calculation result zero
PE ········ Operation complete
CP ········ Command passing
TU ········ Timeout
(CP comparison command)
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
*2 The output turns OFF when the command is executed. After the command has been
executed, the output turns ON depending on the condition specified as the output
operation type. (If the condition is not met, the output remains OFF.)
Take note that the output of a CP comparison command does not turn OFF when
the command is executed.
249
5.2 SEL Language Code Table for each Function
For Operand 1, Operand 2 and the output, the variable indirect specification is available.
For the condition, Operand 1, Operand 2 and the output, an input with symbols is available.
Input into ( ) for Operand 1 and Operand 2 is not compulsory.
“Actuator control declaration” command is kept effective though the program run once it is
executed during the program. A reconstruction of the settings is required for the appropriate
areas in the program if a change to the values (Operand 1, Operand 2, etc.) already set by
“actuator control declaration” command is needed. It means that the values set by the
executed command in the last operation are effective.
The output section is turned OFF when the command is executed. After the command
execution, it may get turned ON depending on the condition of the output section operation
type. (It is turned OFF if the condition does not meet the requirement.)
Caution: Comparative command CP (CPEQ, CPNE, CPGT, CPGE, CPLT, CPLE) output
5. SEL Commands
section does not get turned OFF during the command execution.
Output operation types
CC : Command successful, ZR: Calculation result zero
PE : Operation complete, CP: Command passing, TU: Timeout
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
Optional TRAN Variable to copy data to Variable to copy data from ZR Copy 260
Optional CLR Clear start variable Clear finish variable ZR Clear variable 261
Optional ADD Augend variable Addend ZR Add 262
Optional SUB Minuend variable Subtrahend ZR Subtract 263
Arithmetic
Operation
Tangent assignment
Optional TAN Operant [Radian] ZR Tangent 271
variable
Arc tangent assignment
Optional ATN Operant ZR Inverse-tangent 272
variable
Square root assignment
Optional SQR Operant ZR Root 273
variable
Angle assignment
Optional DTOR Operant ZR Angle conversion (degrees to radians) 274
variable
Angle assignment
Optional RTOD Operant ZR Angle conversion (radians to degrees) 274
variable
Absolute value
Optional ABS Operant ZR Absolute value calculation 275
assignment variable
Optional SGN Sign assignment variable Operant ZR Get signs 275
Logical conjunction
Optional AND Operant ZR Logical AND 276
variable
Logical Operation
Logical disjunction
Optional OR Operant ZR Logical OR 277
variable
Logical operation
Optional EOR Operant ZR Logical exclusive-OR 278
exclusive disjunction
Optional NOT Variable No. Data ZR Deny 279
Optional LSFT Variable No. Number of shifted bits ZR Logic Shifted to Left 280
Optional RSFT Variable No. Number of shifted bits ZR Logic Shifted to Right 281
Comparison
EQ NE GT
Optional CP Comparative variable Compared number GE LT LE
Compare [EQ/NE/GT/GE/LT/LE] 282
250
Output operation types
CC : Command successful, ZR: Calculation result zero
PE : Operation complete, CP: Command passing, TU: Timeout
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
Optional WT I/O, Flag (Waiting time) TU Wait for input and output, flag [ON/OF] 289
Complete input and
Optional IN Head I/O, Flag CC Input binary number (Max 32 bit) 290
output, Flag
5. SEL Commands
Optional INB Head I/O, Flag Convertible digits CC Input BCD (Max eight digits) 291
Complete input and
Optional OUT Head output, Flag CC Output binary number (Max 32 bit) 292
output, Flag
Optional OTPS Output port No. Axis No. CC Output current position data 298
Optional OUTB Head output, Flag Convertible digits CC Output BCD (Max eight digits) 293
Optional FMIO Format type Prohibited CP IN (B) OUT (B) command format 294
Optional GOTO Tag No. to jump to Prohibited CP Jump 299
Prohibited TAG Declaration tag No. Prohibited CP Declaration of destination to jump to 300
Program
Control
Optional EXSR Execution sub routine No. Prohibited CP Execute subroutine 301
Declaration sub routine
Prohibited BGSR Prohibited CP Start subroutine 302
No.
Prohibited EDSR Prohibited Prohibited CP End subroutine 303
Optional EXIT Prohibited Prohibited CP End program 304
Management
Optional EXPG Execution program No. (Execution program No.) CC Start other program 305
(Termination program
Task
Confirmation position
Optional PTST Axis pattern confirmation CC Check position data 316
No.
Optional PVEL Speed [mm/sec] Position No. to assign to CP Assign position speed 317
Optional PACC Acceleration [G] Position No. to assign to CP Assign position acceleration 318
Optional PDCL Deceleration [G] Position No. to assign to CP Assign position deceleration 319
Axis pattern assignment
Optional PAXS Position No. CP Read axis pattern 320
variable No.
Size assignment variable
Optional PSIZ Prohibited CP Check position data size 321
No.
Optional PTAM Variable No. Position No. CP Substitution of target arm system data 315
Optional GTAM Variable No. Position No. CP Acquirement of target arm system data 322
Optional GVEL Variable No. Position No. CP Get speed data 323
Optional GACC Variable No. Position No. CP Get acceleration data 324
Optional GDCL Variable No. Position No. CP Get deceleration data 325
251
Output operation types
CC : Command successful, ZR: Calculation result zero
PE : Operation complete, CP: Command passing, TU: Timeout
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
Optional HOLD (Pause input port) (HOLD type) CP Declare port to pause 342
(Cancel complete input
Optional CANC (CANC type) CP Declare port to abort 343
port)
Optional VLMX Prohibited Prohibited CP Specify VLMX speed 347
Optional ACMX ACMX Acceleration No. Prohibited CP Indicate ACMX acceleration 344
Optional DIS Distance Prohibited CP Set division distance at spline movement 348
Optional POTP 0 or 1 Prohibited CP Set PATH output type 349
PUSH Command distance and speed
Optional PAPR Distance Speed CP 350
settings
Optional QRTN 0 or 1 Prohibited CP Set quick-return mode 351
Optional ACCS Ratio Prohibited CP Set acceleration ratio 331
Optional DCLS Ratio Prohibited CP Set deceleration ratio 333
Define simple contact check zone
Optional DFIF Contact check zone No. Position No. CP 378
Actuator Control Declaration
coordinate
Tool coordinate system
Optional DFTL Position No. CP Define tool coordinate system 357
No.
Work coordinate system
Optional DFWK Position No. CP Define work coordinate system 364
No.
Get simple contact check zone definition
Optional GTIF Contact check zone No. Position No. CP 382
coordinate
Tool coordinate system Get tool coordinate system definition
Optional GTTL Position No. CP 362
No. data
Work coordinate system Get work coordinate system definition
Optional GTWK Position No. CP 369
No. number
Optional NBND Axis pattern Close distance CP Set close distance 387
Specify PTP target arm system to
Optional PTPD Prohibited Prohibited CP 376
current arm
Tool coordinate system
Optional SLTL Prohibited CP Select tool coordinate system 360
No.
Specify type of simple contact check
Optional SEIF Contact check zone No. 0 to 2 CP 381
zone
Optional RIGH Prohibited Prohibited PE Change current arm system to right arm 372
Optional LEFT Prohibited Prohibited PE Change current arm system to left arm 373
Specify PTP target arm system to right
Optional PTPR Prohibited Prohibited CP 374
arm
Specify PTP target arm system to
Optional PTPE Prohibited Prohibited CP 377
current arm
Optional WGHT Mass (Inertial moment) CP Set tip work mass, inertial moment 383
Optional WGT2 Mass (Inertial moment) CP Tip load condition setting 2 385
Optional VELS Ratio Prohibited CP Set speed ratio 327
Specify output for simple contact check
Optional SOIF Contact check zone No. Output, global flag No. CP 380
zone
Work coordinate system
Optional SLWK Prohibited CP Select work coordinate system 367
No.
Specify PTP target arm system to left
Optional PTPL Prohibited Prohibited CP 375
arm
PTP Continuous Operation Mode
Optional CNTP Other numbers Prohibited CP 402
Setting
252
Output operation types
CC : Command successful, ZR: Calculation result zero
PE : Operation complete, CP: Command passing, TU: Timeout
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
5. SEL Commands
flag
Optional STOP Stop axis pattern Prohibited CP Deceleration and stop of axis 409
Optional PSPL Start position No. End position No. PE Move along spline 410
Optional PUSH Target position No. Prohibited PE Move by push motion 411
Actuator Control Command
Optional PTRQ Axis pattern Ratio [%] CC Change push torque limit parameter 413
Optional CIR2 Passing position 1 No. Passing position 2 No. PE Circle movement 2 (Arc interpolation) 414
Optional ARC2 Passing position No. End position No. PE Arc movement 2 (Arc interpolation) 416
Optional CIRS Passing position 1 No. Passing position 2 No. PE Move along circle three-dimensionally 418
Optional ARCS Passing position No. End position No. PE Move along arc three-dimensionally 420
Optional CHVL Axis pattern Speed CP Change speed 422
Termination position center angle
Optional ARCD End position No. Center angle [°(degree)] PE 424
indicated arc movement
Center position center angle indicated arc
Optional ARCC Center position No. Center angle [°(degree)] PE 426
movement
Optional PBND Axis pattern Distance CP Set positioning width 428
Optional CIR Passing position 1 No. Passing position 2 No. PE Circle movement (CIR2 is recommended) 431
Optional ARC Passing position No. End position No. PE Arc movement (ARC2 is recommended) 433
Wait for end of operation by axes currently
Optional PEND Prohibited Prohibited PE 435
used by program
Optional MOVD Target position (Axis pattern) PE Move via direct value specification 399
Move relatively via direct value
Optional MVDI Travel distance (Axis pattern) PE 400
specification
Move incrementally to position on tool
Optional TMLI Position No. Prohibited PE 430
coordinate system via CP operation
Move incrementally to position on tool
Optional TMPI Position No. Prohibited PE 429
coordinate system via PTP operation
Optional IF
Comparative variable Compared No. CP Compare [EQ/NE/GT/GE/LT/LE] 436
IF structure
Prohibited WH
Comparative variable Compared No. CP Branch values [EQ/NE/GT/GE/LT/LE] 445
Column No., character
Prohibited WS
Column No. CP Branch character line [EQ/NE] 446
literal
Declaration of condition unsuccessful
Prohibited OTHE Prohibited Prohibited CP 447
branching destination
Prohibited EDSL Prohibited Prohibited CP SLCT termination declaration 448
Optional AXST Variable No. Axis No. CP Get axis status 449
Acquisition
nformation
SystemI
Optional PGST Variable No. Program No. CP Get program status 450
Optional SYST Variable No. Prohibited CP Get system status 451
Optional GARM Variable No. Prohibited CP Get current arm system 452
253
Output operation types
CC : Command successful, ZR: Calculation result zero
PE : Operation complete, CP: Command passing, TU: Timeout
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
Optional WZFA Zone No. Axis pattern CP Wait for zone OFF based on AND gate 455
Optional WZFO Zone No. Axis pattern CP Wait for zone OFF based on OR gate 456
Optional OPEN Channel No. Prohibited CP Open channel 457
Optional CLOS Channel No. Prohibited CP Close channel 458
Optional READ Channel No. Column No. CC Input from channel 459
Communication
Optional TMRW Read timer setting (Write timer setting) CP Set READ timeout value 463
Optional WRIT Channel No. Column No. CC Output to channel 465
5. SEL Commands
literal
Optional SPUT Column No. Data CP Set character 471
Optional STR Column No. Data CC Convert character string; decimal 472
Optional STRH Column No. Data CC Convert character string; hexadecimal 473
Column No., character
Optional VAL Variable No. CC Convert character string data; decimal 474
literal
Column No., character Convert character string data;
Optional VALH Variable No. CC 475
literal hexadecimal
Optional SLEN Character string length Prohibited CP Set length 476
Optional BGPA Palletizing No. Prohibited CP Declare start of palletizing setting 483
Prohibited EDPA Prohibited Prohibited CP Declare end of palletizing setting 484
Optional PAPI Count Count CP Set palletizing counts 485
Optional PAPN Pattern No. Prohibited CP Set palletizing pattern 486
Optional PASE Axis No. Axis No. CP Declare palletizing axes 487
Optional PAPT Pitch Pitch CP Set palletizing pitches 488
Optional PAST (Position No.) Prohibited CP Set palletizing reference point 489
Palletizing position Set palletizing points for 3-point or
Optional PAPS Position No. CP 490
setting type 4-point teaching
Optional PSLI Offset amount (Count) CP Set zigzag 493
Optional PCHZ (Axis No.) Prohibited CP Declare palletizing Z-axis 494
Optional PTRG Position No. Position No. CP Set palletizing arch triggers 495
Optional PEXT (Position No.) Prohibited CP Set composite palletizing 496
Palletizing Definition
Optional OFPZ Offset amount Prohibited CP Set palletizing Z-axis offset 497
Optional ACHZ Axis No. Prohibited CP Declare arch-motion Z-axis 479
Optional ATRG Position No. Position No. CP Set arch triggers 480
Optional AEXT (Position No.) Prohibited CP Set composite arch motion 481
Optional OFAZ Offset amount Prohibited CP Set arch-motion Z-axis offset 482
Optional PTNG Palletizing No. Variable No. CP Get palletizing position number 498
Increment palletizing position number
Optional PINC Palletizing No. Prohibited CC 499
by 1
Decrement palletizing position number
Optional PDEC Palletizing No. Prohibited CC 500
by 1
Optional PSET Palletizing No. Data CC Set palletizing position number directly 501
Optional PARG Palletizing No. Axis No. CP Get palletizing angle 502
Optional PAPG Palletizing No. Position No. CP Get palletizing calculation data 503
Optional PMVP Palletizing No. (Position No.) PE Move to palletizing points via PTP 504
Move to palletizing points via
Optional PMVL Palletizing No. (Position No.) PE 505
interpolation
Optional PACH Palletizing No. Position No. PE Arch motion to palletizing point 506
Optional ARCH Position No. Position No. PE Arch motion 477
254
Output operation types
CC : Command successful, ZR: Calculation result zero
PE : Operation complete, CP: Command passing, TU: Timeout
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
5. SEL Commands
Optional ECMD 4 Axis No. CC Get creep sensor status 514
Optional ECMD 5 Axis No. CC Get axis operation status 515
Current position acquirement on each
Optional ECMD 6 Axis No. CC 516
axis system
Optional ECMD 7 Axis No. CC Get total movement count 517
Optional ECMD 8 Axis No. CC Get total mileage 518
Optional ECMD 9 Axis No. CC Get position deviation 519
Optional ECMD 10 Axis No. CC Acquirement of Overload Level 520
Acquirement of Encoder Overheated
Optional ECMD 11 Axis No. CC 521
Level
Extended Command
System I/F
I/F
Related
Control
255
RC Gateway Function Commands (Controller with Gateway Function Only)
* Refer to “XSEL Controller P/Q/PX/QX RC Gateway Function Instruction Manual” for the
commands related to RC gateway functions.
Optional RCST Variable No. RC-axis No. PE Acquire RC axis status 557
256
Extension Motion Control Function Related Commands
* Refer to “XSEL Controller P/Q/PCT/QCT Electronic Cam function Instruction Manual” (Controller
with Electronic Cam Function Only) for the details of the commands related to the electronic cam
functions.
* Refer to “Extension Motion Control Function Instruction Manual” for the details of the extension
motion control commands.
Output operation types
CC: Command successful, CP: Command passing
PE: Operation complete
motion control
5. SEL Commands
Read extension motion control axis
Optional XPGT Axis No. Position No. CC 561
position data
Write extension motion control axis
Optional XPPT Axis No. Position No. CP 562
position data
Extension Motion Control Board Axis Position Operations
(0 to 15 axis)
257
Output operation types
CC: Command successful, CP: Command passing
PE: Operation complete
control axis
Waiting for extension motion control axis
Actuator Control Commands
Status Acquirement
Control Board Axis
Extension Motion
258
5.3 Explanation of Commands
[1] Variable Assignment
LET (Assign)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Variable
Optional Optional LET Data ZR
number
5. SEL Commands
Applicable models
All models [Refer to Section 5.1 for details of models]
[Function] Assign the value specified in operand 2 to the variable specified in operand 1.
The output will turn ON when 0 is assigned to the variable specified in operand 1.
259
TRAN (Copy)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Variable Variable
Optional Optional TRAN ZR
number number
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Assign the content of the variable specified in operand 2 to the variable specified
in operand 1.
The output will turn ON when 0 is assigned to the variable specified in operand 1.
260
CLR (Clear variable)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Variable Variable
Optional Optional CLR ZR
number number
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Clear the variables from the one specified in operand 1 through the other
specified in operand 2.
The contents of the variables that have been cleared become 0.
The output will turn ON when 0 is assigned to the variable specified in operand 1.
261
[2] Arithmetic Operation
ADD (Add)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Variable
Optional Optional ADD Data ZR
number
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Add the content of the variable specified in operand 1 and the value specified in
operand 2, and assign the result to the variable specified in operand 1.
The output will turn ON when the operation result becomes 0.
262
SUB (Subtract)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Variable
Optional Optional SUB Data ZR
number
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Subtract the value specified in operand 2 from the content of the variable specified
in operand 1, and assign the result to the variable specified in operand 1.
The output will turn ON when the operation result becomes 0.
263
MULT (Multiply)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Variable
Optional Optional MULT Data ZR
number
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Multiply the content of the variable specified in operand 1 by the value specified
in operand 2, and assign the result to the variable specified in operand 1.
The output will turn ON when the operation result becomes 0.
264
DIV (Divide)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Variable
Optional Optional DIV Data ZR
number
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Divide the content of the variable specified in operand 1 by the value specified in
operand 2, and assign the result to the variable specified in operand 1.
The output will turn ON when the operation result becomes 0.
(Note) If the variable specified in operand 1 is an integer variable, any decimal places
will be rounded off.
265
MOD (Remainder)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Variable
Optional Optional MOD Data ZR
number
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Assign, to the variable specified in 1, the remainder obtained by dividing the
content of the variable specified in operand 1 by the value specified in operand 2.
The output will turn ON when the operation result becomes 0.
266
[3] Function Operation
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Assign the sine of the data specified in operand 2 to the variable specified in
operand 1.
The output will turn ON when the operation result becomes 0.
The setting in operand 1 must be a real variable in a range of 100 to 199, 1100 to
1199, 300 to 399 or 1300 to 1399.
The unit of data in operand 2 is radian.
[Example 1] SIN 100 0.523599 Assign the sine of 0.523599 (0.5) to variable
100.
267
ASIN (Inverse-sine (Arc sine) operation)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Variable
Optional Optional ASIN Data ZR
number
Applicable models
XSEL-RA/SA/RAX/SAX/RAXD/SAXD (Main application V1.10 or later)
MSEL (Main application V2.10 or later)
5. SEL Commands
[Function] Assign the inverse sine (arc sine) of the data specified in operand 2 to the
variable specified in operand 1.
A number indicated in operand 2 should be in the range from -1 to 1. An error will
occur if the number in operand 2 is smaller than -1 or bigger than 1.
The output will turn ON when the operation result becomes 0.
The setting in operand 1 must be a real variable in a range of 100 to 199, 1100 to
1199, 300 to 399 or 1300 to 1399.
The unit of inverse sine is radian. The range should be from -/2 to /2.
268
COS (Cosine operation)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Variable
Optional Optional COS Data ZR
number
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Assign the cosine of the data specified in operand 2 to the variable specified in
operand 1.
The output will turn ON when the operation result becomes 0.
The setting in operand 1 must be a real variable in a range of 100 to 199, 1100 to
1199, 300 to 399 or 1300 to 1399.
The unit of data in operand 2 is radian.
[Example 1] COS 100 1.047197 Assign the cosine of 1.047197 (0.5) to variable
100.
269
ACOS (Inverse-cosine (Arc cosine) operation)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Variable
Optional Optional ACOS Data ZR
number
Applicable models
XSEL-RA/SA/RAX/SAX/RAXD/SAXD (Main application V1.10 or later)
MSEL (Main application V2.10 or later)
5. SEL Commands
[Function] Assign the inverse cosine (arc cosine) of the data specified in operand 2 to the
variable specified in operand 1.
A number indicated in operand 2 should be in the range from -1 to 1. An error will
occur if the number in operand 2 is smaller than -1 or bigger than 1.
The output will turn ON when the operation result becomes 0.
The setting in operand 1 must be a real variable in a range of 100 to 199, 1100 to
1199, 300 to 399 or 1300 to 1399.
The unit of inverse cosine is radian. The range should be from 0 to .
270
TAN (Tangent operation)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Variable
Optional Optional TAN Data ZR
number
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Assign the tangent of the data specified in operand 2 to the variable specified in
operand 1.
The output will turn ON when the operation result becomes 0.
The setting in operand 1 must be a real variable in a range of 100 to 199, 1100 to
1199, 300 to 399 or 1300 to 1399.
The unit of data in operand 2 is radian.
[Example 1] TAN 100 0.785398 Assign the tangent of 0.785398 (1) to variable
100.
271
ATN (Inverse-tangent operation)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Variable
Optional Optional ATN Data ZR
number
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Assign the inverse tangent of the data specified in operand 2 to the variable
specified in operand 1.
The output will turn ON when the operation result becomes 0.
The setting in operand 1 must be a real variable in a range of 100 to 199, 1100 to
1199, 300 to 399 or 1300 to 1399.
The unit of inverse tangent is radian.
272
SQR (Root operation)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Variable
Optional Optional SQR Data ZR
number
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Assign the root of the data specified in operand 2 to the variable specified in
operand 1.
The output will turn ON when the operation result becomes 0.
273
DTOR (Angle conversion (Degrees to Radians))
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Variable
Optional Optional DTOR Data ZR
number
Applicable models
XSEL-RA/SA/RAX/SAX/RAXD/SAXD (Main application V1.10 or later)
MSEL (Main application V2.10 or later)
5. SEL Commands
[Function] The angle (unit: degrees) in operand 2 of the variable in operand 1 gets
converted into radians.
The setting in operand 1 must be a real variable in a range of 100 to 199, 1100 to
1199, 300 to 399 or 1300 to 1399.
Applicable models
XSEL-RA/SA/RAX/SAX/RAXD/SAXD (Main application V1.10 or later)
MSEL (Main application V2.10 or later)
[Function] The angle (unit: radians) in operand 2 of the variable in operand 1 gets converted
into degrees.
The setting in operand 1 must be a real variable in a range of 100 to 199, 1100 to
1199, 300 to 399 or 1300 to 1399.
[Example] RTOD 100 1.57079 A number converted into degrees from 1.57079
radians of an angle gets substituted to the variable
100.
274
ABS (Absolute value calculation)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Variable
Optional Optional ABS Data ZR
number
Applicable models
XSEL-RA/SA/RAX/SAX/RAXD/SAXD (Main application V1.10 or later)
MSEL (Main application V2.10 or later)
5. SEL Commands
[Function] An absolute value in the data in operand 2 gets substituted to operand 1.
Applicable models
XSEL-RA/SA/RAX/SAX/RAXD/SAXD (Main application V1.10 or later)
MSEL (Main application V2.10 or later)
[Function] Sign in operand 2 data gets searched and substituted in the variable in operand
1.
The values substituted in the variable in operand 1 are as follows.
Value Substituted in
Operand 2 Data
Operand 1 Variable
1 Positive Value
0 0
-1 Negative Value
275
[4] Logical Operation
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Assign the logical AND operation result of the content of the variable specified in
operand 1 and the value specified in operand 2, to the variable specified in
operand 1.
The output will turn ON when the operation result becomes 0.
Decimal Binary
204 11001100
AND 170 AND 10101010
136 10001000
276
OR (Logical OR)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Variable
Optional Optional OR Data ZR
number
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Assign the logical OR operation result of the content of the variable specified in
operand 1 and the value specified in operand 2, to the variable specified in
operand 1.
The output will turn ON when the operation result becomes 0.
Decimal Binary
204 11001100
OR 170 OR 10101010
238 11101110
277
EOR (Logical exclusive-OR)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Variable
Optional Optional EOR Data ZR
number
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Assign the logical exclusive-OR operation result of the content of the variable
specified in operand 1 and the value specified in operand 2, to the variable
specified in operand 1.
The output will turn ON when the operation result becomes 0.
Decimal Binary
204 11001100
EOR 170 EOR 10101010
102 01100110
278
z NOT (Deny)
Extension Command, declaration Output
Input condition
condition Command, operation type
(I/O, flag) Operand 1 Operand 2
(LD, A, O, AB, OB) declaration (Output, flag)
Variable
Optional Optional NOT Data ZR
number
Applicable models
XSEL-RA/SA/RAX/SAX/RAXD/SAXD (Main application V1.10 or later)
MSEL (Main application V2.12 or later)
5. SEL Commands
The output turns on when the arithmetic result gets to 0.
279
z LSFT (Logic Shifted to Left)
Extension Command, declaration Output
Input condition
condition Command, operation type
(I/O, flag) Operand 1 Operand 2
(LD, A, O, AB, OB) declaration (Output, flag)
Variable Number of
Optional Optional LSFT ZR
number shifted bits
Applicable models
XSEL-RA/SA/RAX/SAX/RAXD/SAXD (Main application V1.10 or later)
MSEL (Main application V2.12 or later)
[Function] Variable number in Operation 1 is to be shifted to left for the number of bits in
Operation 2, and substituted to the variable in Operation 1.
5. SEL Commands
The number of shifted bits is available to indicate from 0 to 31. 0 should be set to
the low-order bit for the amount of shift.
280
z RSFT (Logic Shifted to Right)
Extension Command, declaration Output
Input condition
condition Command, operation type
(I/O, flag) Operand 1 Operand 2
(LD, A, O, AB, OB) declaration (Output, flag)
Variable Number of
Optional Optional RSFT ZR
number shifted bits
Applicable models
XSEL-RA/SA/RAX/SAX/RAXD/SAXD (Main application V1.10 or later)
MSEL (Main application V2.12 or later)
[Function] Variable number in Operation 1 is to be shifted to right for the number of bits in
Operation 2, and substituted to the variable in Operation 1.
5. SEL Commands
The number of shifted bits is available to indicate from 0 to 31. 0 should be set to
the high-order bit for the amount of shift.
281
[5] Comparison Operation
CP (Compare)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
EO NE
Variable
Optional Optional CP Data GT GE
number
LT LE
Applicable models
5. SEL Commands
[Function] The output will be turned ON if the comparison result of the content of the
variable specified in operand 1 and the value specified in operand 2 satisfies the
condition.
The value in the variable does not change.
The output will be turned OFF if the condition is not satisfied.
(Note) The output will not be turned OFF when the command is executed.
CP
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
282
[6] Timer
TIMW (Timer)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Optional Optional TIMW Time Prohibited TU
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Stop the program and wait for the time specified in operand 1.
The setting range is 0.01 to 99, and the unit is second.
The output will turn ON when the specified time has elapsed and the program
proceeds to the next step.
283
TIMC (Cancel timer)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Program
Optional Optional TIMC Prohibited CP
number
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
(Note) Timers in TIMW, WTON, WTOF and READ commands can be cancelled. In the
case of WTON, WTOF and READ commands, even if timeout is not specified it is
assumed that an unlimited timer has been specified and the wait time will be
cancelled.
: :
: WTON 8 20 Program 10 waits for input 8 for 20
: (Wait for input 8) seconds.
TIMC 10 (Wait for input 8) Cancel the wait time in program 10.
: :
(Note) The steps shown in the above example represent those executed simultaneously
in different programs.
284
GTTM (Get time)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Variable
Optional Optional GTTM Prohibited CP
number
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Read system time to the variable specified in operand 1. The time is specified in
units of 10msec.
The time obtained here has no base number. Therefore, this command is called
twice and the difference will be used to calculate the elapsed time.
(Note) The system time is the time counted by 32 bits with the controller startup timing
as 0. Therefore, the time passed can be defined by the time difference acquired
while in the continuous operation for approximately 248 days (21474836.47
seconds) after a controller startup.
285
[7] I/O, Flag Operation
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Reverse the ON/OFF status of the output ports or flags from the one specified in
operand 1 through the other specified in operand 2.
(Note) Dedicated outputs (system outputs) other than general-purpose outputs cannot
be specified for operands 1 and 2.
BT
ON ··············· Switch the status to ON.
OF ··············· Switch the status to OFF.
NT ··············· Reverse the status.
[Example 2] BTOF 300 307 Turn OFF output ports 300 through 307.
286
BTPN (Output ON pulse)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Output port, Timer
Optional Optional BTPN CP
flag setting
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Turn ON the specified output port or flag for the specified time.
When this command is executed, the output port or flag specified in operand 1
will be turned ON and then the program will proceed to the next step. The output
port or flag will be turned OFF automatically upon elapse of the timer setting
specified in operand 2.
The timer is set in a range from 0.01 to 99.00sec (including up to two decimal
places).
Timer setting (sec)
タイマ時間(秒)
The output
ここで ON( port
オン or flag turns ON here, after which
) 後次ステップへ進みます。
the program will proceed to the next step.
(Note 1) If this command is executed with respect to an output port or flag already ON, the
output port or flag will be turned OFF upon elapse of the timer setting.
(Note 2) If the program ends after the command has been executed but before the timer is
up, the output port or flag will not be turned OFF.
(Note 5) Dedicated outputs (system outputs) other than general-purpose outputs cannot
be specified for operand 1.
(Note 6) If other task interrupts after a port is turned ON until it is subsequently turned
OFF, an error will generate in pulse output time, in which case pulse output
cannot be used for a specified period.
287
BTPF (Output OFF pulse)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Output port, Timer
Optional Optional BTPF CP
flag setting
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Turn OFF the specified output port or flag for the specified time.
When this command is executed, the output port or flag specified in operand 1
will be turned OFF and then the program will proceed to the next step. The output
port or flag will be turned ON automatically upon elapse of the timer setting
specified in operand 2.
The timer is set in a range from 0.01 to 99.00sec (including up to two decimal
places).
Timer setting (sec)
タイマ時間(秒)
The output
ここで OFF(port
オフor)flag turns OFF here, after which
後次ステップへ進みます。
the program will proceed to the next step.
(Note 1) If this command is executed with respect to an output port or flag already OFF,
the output port or flag will be turned ON upon elapse of the timer setting.
(Note 2) If the program ends after the command has been executed but before the timer is
up, the output port or flag will not be turned ON.
(Note 5) Dedicated outputs (system outputs) other than general-purpose outputs cannot
be specified for operand 1.
(Note 6) If other task interrupts after a port is turned ON until it is subsequently turned
OFF, an error will generate in pulse output time, in which case pulse output
cannot be used for a specified period.
[Example] BTPF 300 1 Turn OFF output port 300 for 1sec.
BTPF 600 10 Turn OFF flag 600 for 10sec.
288
WT (Wait for I/O port, flag)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Optional Optional WT I/O, flag (Time) TU
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Wait for the I/O port or flag specified in operand 1 to turn ON/OFF.
The program can be aborted after the specified time by setting the time in
operand 2.
The setting range is 0.01 to 99sec.
The output will turn ON upon elapse of the specified time (only when operand 2 is
specified).
WT
ON ··············· Wait for the applicable I/O port or flag to turn ON.
OF ··············· Wait for the applicable I/O port or flag to turn OFF.
[Example 2] WTOF 308 10 Wait for 10sec for output port 308 to turn OFF.
289
IN (Read I/O, flag as binary)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Optional Optional IN I/O, flag I/O, flag CC
Applicable models
All models [Refer to Section 5.1 for details of models]
[Function] Read the I/O ports or flags from the one specified in operand 1 through the other
5. SEL Commands
Binary
Input port number
Binary
Variable 99
(Note 2) When 32 bits have been input and the most significant bit is ON, the value read to
variable 99 will be treated as a negative value.
(Note 3) The read data format can be changed using a FMIO command (refer to the
section on FMIO command).
290
INB (Read I/O, flag as BCD)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Optional Optional INB I/O, flag BCD digits CC
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Read the I/O ports or flags from the one specified in operand 1 for the number of
digits specified in operand 2, to variable 99 as a BCD.
Variable 99
(Note 2) The number of I/O ports and flags that can be used is 4 n (digits).
(Note 3) The read data format can be changed using a FMIO command (refer to the
section on FMIO command).
291
OUT (Write output, flag as binary)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Optional Optional OUT Output, flag Output, flag CC
Applicable models
All models [Refer to Section 5.1 for details of models]
[Function] Write the value in variable 99 to the output ports or flags from the one specified in
5. SEL Commands
Variable 99
Upper Lower
Binary
(Note 2) The write data format can be changed using a FMIO command (refer to the
section on FMIO command).
[Example 1] OUT 300 307 Write the value in variable 99 to output ports 300
through 307 as a binary.
292
OUTB (Write output, flag as BCD)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Optional Optional OUTB Output, flag BCD digits CC
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Write the value in variable 99 to the output ports or flags from the one specified in
operand 1 for the number of digits specified in operand 2 as a BCD.
Variable 99
(Note 2) The number of output ports and flags that can be used is 4 n (digits).
(Note 3) The write data format can be changed using a FMIO command (refer to the
section on FMIO command).
[Example 1] OUTB 300 2 Write the value in variable 99 to the output ports
from 300 for two digits (until output port 307) as a
BCD.
293
FMIO (Set IN, INB, OUT, OUTB, OTPS command format)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Optional Optional FMIO Format type Prohibited CP
Applicable models
All models [Refer to Section 5.1 for details of models]
[Function] Set the data format for reading or writing I/O ports and flags with an IN, INB, OUT
5. SEL Commands
1) Operand 1 = 0 (Default status when a FMIO command has not been executed)
Data is read or written without being reversed.
OUT(B) command
IN(B) command
2) Operand 1 = 1
Data is read or written after its upper 8 bits and lower 8 bits are reversed every
16 bits.
(I/O, flag number upper) (I/O, flag number lower)
Temporary data
OUT(B) command
IN(B) command
294
3) Operand 1 = 2
Data is read or written after its upper 16 bits and lower 16 bits are reversed
every 32 bits.
Temporary data
OUT(B) command
5. SEL Commands
IN(B) command
4) Operand 1 = 3
Data is read or written after its upper 16 bits and lower 16 bits are reversed
every 32 bits and its upper 8 bits and lower 8 bits are reversed every 16 bits.
(I/O, flag number upper) (I/O, flag number lower)
Temporary data
OUT(B) command
IN(B) command
(Note) The FMIO command is supported by: Main application Ver.0.56 or later
PC software Ver.2.0.45 or later
Teaching pendant :
IA-T-X (D) Ver.1.13 or later
SEL-T (D) First edition or later
TB-01 (D) First edition or later
TB-02 (D) First edition or later
295
[Example 1] Variable 99 = 00123456h (Decimal: 1193046, BCD: 123456)
OUT(B)
command
Variable 99 1193046 (IN/OUT command)
IN(B)
command 123456 (INB/OUTB command)
OUT(B) command IN(B) command
(I/O, flag number upper) (I/O, flag number lower)
5. SEL Commands
IN(B)
command
OUT(B)
command
Variable 99 4660 (IN/OUT command)
IN(B)
command 1234 (INB/OUTB command)
OUT(B) command IN(B) command
IN(B)
command
296
[Example 3] Variable 99 = 00000012h (Decimal: 18, BCD: 12)
OUT(B)
command
Variable 99 18 (IN/OUT command)
IN(B)
command 12 (INB/OUTB command)
OUT(B) command IN(B) command
(I/O, flag number upper) (I/O, flag number lower)
5. SEL Commands
Temporary data OUT(B)
I/O port, flag status (0 = OFF, 1 = ON)
command
IN(B)
command
297
OTPS (Output current position data)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Output port Axis
Optional Optional OTPS CC
number number
* This command is supported by SSEL controller main application Ver.0.22 or later.
Applicable models
SSEL
Other than SSEL ×
5. SEL Commands
[Function]
Output current position data to an output port.
The current position data corresponding to the axis number specified in operand 2 is output
to 32 bits of ports starting from the output port specified in operand 1.
If the command is executed with 0 specified in operand 1, the command will become invalid
and refreshing of current position data at the specified output will stop.
When this command is executed, current position data will be refreshed continuously at the
specified output port until the program in which this command was input is stopped or
otherwise the command becomes invalid.
32 bits binary data (extended by sign) is output. The minimum unit is 0.001mm.
(Note)
Only output ports of No. 300 or higher port numbers (multiples of 8) can be specified in
operand 1.
Only network output ports are supported.
Even if this command is executed, output data remains indeterminable if home return is not
yet completed.
The output data format can be changed using the FMIO command (refer to the section on
“FMIO command”). Note, however, that data is output in the FMIO-specified format when
this command is called.
[Example 1]
When OTPS 300 1 is executed:
If the current position is -0.012mm, it is expressed as -12 (decimal) or FFFFFFF4 (binary) in
units of 0.001mm.
Accordingly, FFFFFFF4 is output to output port No. 300 onward.
If the current position is 125.305mm, it is expressed as 125305 (decimal) or 0001E979
(binary) in units of 0.001mm.
Accordingly, 0001E979 is output to output port No. 300 onward.
The statuses of output ports are shown below.
307 306 305 304 303 302 301 300
OFF ON ON ON ON OFF OFF ON
315 314 313 312 311 310 309 308
ON ON ON OFF ON OFF OFF ON
323 322 321 320 319 318 317 316
OFF OFF OFF OFF OFF OFF OFF ON
331 330 329 328 327 326 325 324
OFF OFF OFF OFF OFF OFF OFF OFf
298
[8] Program Control
GOTO (Jump)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Optional Optional GOTO Tag number Prohibited CP
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
Using a GOTO command to branch out of or into any of the syntaxes listed below is
prohibited.
Since the maximum number of nests is defined for each conditional branching command or
subroutine call, a nest will be infinitely repeated if an ED is not passed, and a nest
(repetition) overflow error will generate. In the case of palletizing setting, an error will generate
if the second BGPA is declared after the first BGPA declaration without passing an EDPA.
299
TAG (Declare tag)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Prohibited Prohibited TAG Tag number Prohibited CP
Applicable models
All models [Refer to Section 5.1 for details of models]
300
EXSR (Execute subroutine)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Subroutine
Optional Optional EXSR Prohibited CP
number
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Execute the subroutine specified in operand 1.
A maximum of 15 nested subroutine calls are supported.
(Note) This command is valid only for subroutines within the same program.
301
BGSR (Start subroutine)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Subroutine
Prohibited Prohibited BGSR Prohibited CP
number
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
302
EDSR (End subroutine)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Prohibited Prohibited EDSR Prohibited Prohibited CP
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Declare the end of a subroutine.
This command is always required at the end of a subroutine.
Thereafter, the program will proceed to the step next to the EXSR that has been
called.
303
[9] Task Management
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
304
EXPG (Start other program)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Program (Program
Optional Optional EXPG CC
number number)
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Start the programs from the one specified in operand 1 through the other
specified in operand 2, and run them in parallel. Specification in operand 1 only is
allowed.
Error-generation/output-operation conditions
When one EXPG program is specified (only operand 1 is specified)
Status of No program number error *1
Program number
the specified Program already registered Program not yet error *1
program Program running Program not running registered
C03
A57 C2C
“Non-registered
Error “Multiple program None “Program number
program
start error” error”
specification error”
Output operation ON ON OFF OFF
* The errors shown in the table represent those that generate in accordance with the status of the specified program.
Errors caused by other factors are excluded.
* 1… Program number error indicates specification of a number smaller than 1 or exceeding 64.
When multiple EXPG programs are specified (both operands 1 and 2 are specified)
No program number error *2
Registered program exists inside
Status of
the specified
the specified range *3 None of programs Program number
Running program None of programs inside the specified error *1
program
exists inside the inside the specified range are registered
specified range range are running
C03
A57 C2C
“Non-registered
Error “Multiple program None “Program number
program
start error” error”
specification error”
Output operation ON ON OFF OFF
* The errors shown in the table represent those that generate in accordance with the status of the specified program.
Errors caused by other factors are excluded.
* 2… Program number error indicates specification of a number smaller than 1 or exceeding 64.
* 3… In this case, non-registered programs inside the specified range are not treated as a target of operation. This will
not affect error generation or output operation.
305
ABPG (Abort other program)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Program (Program
Optional Optional ABPG CC
number number)
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
Error-generation/output-operation conditions
When one ABPG program is specified (only operand 1 is specified)
Status of No program number error *1
Program number
the specified Program already registered Program not yet error *1
program Program running Program not running registered
C2C
Error None None None “Program number
error”
Output operation ON (OFF *2) ON OFF OFF
* The errors shown in the table represent those that generate in accordance with the status of the specified program.
Errors caused by other factors are excluded.
* 1… Program number error indicates specification of a number smaller than 1 or exceeding 64.
* 2… If an own task (own program) is specified in an ABPG command, the own task will be terminated and then deleted.
The output will turn OFF.
When multiple ABPG programs are specified (both operands 1 and 2 are specified)
No program number error *3
Registered program exists inside
Status of None of programs Program number
the specified range *4
the specified inside the
Running program None of programs error *1
program specified range
exists inside the inside the specified are registered
specified range range are running
C2C
Error None None None “Program number
error”
Output operation ON (OFF *5) ON OFF OFF
* The errors shown in the table represent those that generate in accordance with the status of the specified program.
Errors caused by other factors are excluded.
* 3… Program number error indicates specification of a number smaller than 1 or exceeding 64.
* 4… In this case, non-registered programs inside the specified range are not treated as a target of operation. This will
not affect error generation or output operation.
* 5… If an own task (own program) is included in the specified range, the own task will be terminated, upon which the
processing of the ABPG command will end. Since the own task will be deleted, the result of ending the processing
of specified programs will become indeterminable. Exercise caution. The output will always turn OFF regardless of
the result.
306
SSPG (Pause program)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Program (Program
Optional Optional SSPG CC
number number)
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Pause the program from the one specified in operand 1 through the other specified
in operand 2, at the current step. Specification in operand 1 only is allowed.
(Note 1) Pausing a program will also pause the operation the program has been executing.
(Note 2) Not only the operation but also the execution of the step itself will be paused.
[Example 1] SSPG 10 12 Pause program No. 10, 11 and 12 at the current step.
Program No. 10 Program No. 11 Program No. 12
Error-generation/output-operation conditions
When one SSPG program is specified (only operand 1 is specified)
Status of No program number error *1
Program number
the specified Program already registered Program not yet error *1
program Program running Program not running registered
C03
C2C
“Non-registered
Error None None “Program number
program
error”
specification error”
Output operation ON OFF OFF OFF
* The errors shown in the table represent those that generate in accordance with the status of the specified program.
Errors caused by other factors are excluded.
* 1… Program number error indicates specification of a number smaller than 1 or exceeding 64.
When multiple SSPG programs are specified (both operands 1 and 2 are specified)
No program number error *2
Status of Registered program exists inside the specified range *3 None of programs
Program number
the specified Running program None of programs inside the specified error *1
program exists inside the inside the specified range are
specified range *4 range are running registered
C03
C2C
“Non-registered
Error None None “Program number
program
error”
specification error”
Output operation ON OFF OFF OFF
* The errors shown in the table represent those that generate in accordance with the status of the specified program.
Errors caused by other factors are excluded.
* 2… Program number error indicates specification of a number smaller than 1 or exceeding 64.
* 3… In this case, non-registered programs inside the specified range are not treated as a target of operation with
EXPG, ABPG, SSPG and RSPG commands. This will not affect error generation or output operation.
* 4… In this case, programs not running (but already registered) inside the specified range are not treated as a target of
operation with SSPG and RSPG commands. This will not affect error generation or output operation.
307
RSPG (Resume program)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Program (Program
Optional Optional RSPG CC
number number)
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Resume the programs from the one specified in operand 1 through the other
specified in operand 2. Specification in operand 1 only is allowed.
(Note 1) Resuming a program will also resume the operation the program had been
executing before the pause.
[Example 1] RSPG 10 12 Resume program No. 10, 11 and 12 from the paused step.
Program No. 10 Program No. 11 Program No. 12
Error-generation/output-operation conditions
When one RSPG program is specified (only operand 1 is specified)
Status of No program number error *1
Program number
the specified Program already registered Program not yet error *1
program Program running Program not running registered
C03
C2C
“Non-registered
Error None None “Program number
program
error”
specification error”
Output operation ON OFF OFF OFF
* The errors shown in the table represent those that generate in accordance with the status of the specified program.
Errors caused by other factors are excluded.
* 1… Program number error indicates specification of a number smaller than 1 or exceeding 64.
When multiple RSPG programs are specified (both operands 1 and 2 are specified)
No program number error *2
Status of Registered program exists inside the specified range *3 None of programs
Program number
the specified Running program None of programs inside the specified error *1
program exists inside the inside the specified range are
specified range *4 range are running registered
C03
C2C
“Non-registered
Error None None “Program number
program
error”
specification error”
Output operation ON OFF OFF OFF
* The errors shown in the table represent those that generate in accordance with the status of the specified program.
Errors caused by other factors are excluded.
* 2… Program number error indicates specification of a number smaller than 1 or exceeding 64.
* 3… In this case, non-registered programs inside the specified range are not treated as a target of operation. This will
not affect error generation or output operation.
* 4… In this case, programs not running (but already registered) inside the specified range are not treated as a target of
operation with SSPG and RSPG commands. This will not affect error generation or output operation.
308
[10] Position Operation
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Read to variable 199 the data of the axis number specified in operand 1 in the
position data specified in operand 2.
If the position data table contains no data to be loaded (= the position data
display on the teaching pendant shows X.XXX, blank (for each model) or position
data display fields in the PC software are blank) when the PGET command is
executed, no data will placed in variable 199 (= the PGET command will not be
executed).
309
PPUT (Write position data)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Axis Position
Optional Optional PPUT CP
number number
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Write the value in variable 199 to the axis number specified in operand 1 in the
position data specified in operand 2.
310
PCLR (Clear position data)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Position Position
Optional Optional PCLR CP
number number
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Clear the position data from the one specified in operand 1 through the other
specified in operand 2.
When data is cleared, the field no longer contains data, which is different from the
value of 0.000. The position data display on the teaching pendant changes to
. or blank (for each model) while position data fields in the PC software
become blank.
(Note 1) The comment on each position data are also subject to delete. If the position data
with a comment is deleted by PCLR Command and software reset is conducted
or the power is turned OFF without flash ROM writing being conducted, 22B
“Position Data Comment Lost Error” will occur.
[Example 1] PCLR 10 20 Clear the data from position No. 10 through 20.
311
PCPY (Copy position data)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Position Position
Optional Optional PCPY CP
number number
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Copy the position data specified in operand 2 to the position number specified in
operand 1.
(Note 1) The comment on each position data are also subject to copy. If a change is made
to the position data comment of the area to recover at by PCPY Command and
software reset is conducted or the power is turned OFF without flash ROM writing
being conducted, 22B “Position Data Comment Lost Error” will occur.
[Example 1] PCPY 20 10 Copy the data of position No. 10 to position No. 20.
312
PRED (Read current position)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Position
Optional Optional PRED Axis pattern CP
number
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Read the current position of the axis specified in operand 1 to the position
specified in operand 2.
[Example 2] The axis pattern can be specified indirectly using a variable. When the
command in [Example 1] is rephrased based on indirect specification using a
variable:
11 (binary) 3 (decimal)
LET 1 3 Assign 3 to variable 1.
PRED *1 10
313
PRDQ (Read current axis position (single-axis direct))
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Axis Variable
Optional Optional PRDQ CP
number number
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Read the current position of the axis number specified in operand 1 to the
variable specified in operand 2.
314
PTAM (Substitution of target arm system data)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Variable No.
(Two Position
Optional Optional PTAM CP
variables number
used in a row)
Applicable models
XSEL-RX/SX/RXD/SXD
XSEL-RAX/SAX/RAXD/SAXD
5. SEL Commands
MSEL-PCX/PGX
Other than above ×
[Function] It writes the two types of arm system indications in a row from the variable
number indicated in Operand 1 into the position data indicated in Operand 2.
Variation No. n in Operand 1 is the target arm system indication of the 1st to 4th
axes or 1st to 3rd axes, and variable No. n+1 is that of the 5th to 8th axes. For
the type to connect one unit of SCARA, make sure to set 0 to the indicated
variable No. n+1.
Setting Range
Variable
Description 1 unit of SCARA 2 units of SCARA
No.
connected connected
1st to 4th axes (1st to 3rd axes)
n -1, 0, 1 -1, 0, 1
SCARA target arm system
5th to 8th axes SCARA target 0
n+1 (Reserved by the -1, 0, 1
arm system system)
[Example] LET 20 1 Set right arm system to 1st to 4th axes (1st to 3rd
axes)
LET 21 0 Set 0 to 5th to 8th axes (system reservation as it is
not connected)
PTAM 20 10 Write the arm system data stored in Variable No. 20
and 21 to Position No. 10.
315
PTST (Check position data)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Position
Optional Optional PTST Axis pattern CC
number
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Check if valid data is contained in the axis pattern specified in operand 1 at the
position number specified in operand 2.
The output turns ON when the data specified by the axis pattern is not entirely
available (= the position data display on the teaching pendant is ., blank (for
each model) or position data fields in the PC software are blank).
0 is treated as valid data.
[Example 2] The axis pattern can be specified indirectly using a variable. When the
command in [Example 1] is rephrased based on indirect specification using a
variable:
11 (binary) 3 (decimal)
LET 1 3 Assign 3 to variable 1.
PTST *1 10 300
316
PVEL (Assign speed data)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Position
Optional Optional PVEL Speed CP
number
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Write the CP operation speed/linear axis speed specified in operand 1 to the
position number specified in operand 2. The unit of operand 1 is [mm/sec].
(Note 1) If a negative value is written in PVEL Command, an alarm will be generated when
this position is indicated in a movement.
(Note 2) If 0 is set in Operation 1, the speed setting in the indicated position number is
deleted.
317
PACC (Assign acceleration data)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Position
Optional Optional PACC Acceleration CP
number
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
318
PDCL (Assign deceleration data)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Position
Optional Optional PDCL Deceleration CP
number
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Write the CP operation deceleration/linear axis deceleration specified in operand
1, into the position number specified in operand 2.
The unit of operand 1 is [G], and the set value is effective to two decimal points.
[Example 1] PDCL 0.3 3 Assign 0.3 to the deceleration data at position No. 3.
(Note 1) If Operation 1 is set to 0, the deceleration setting on the indicated position number
gets deleted.
319
PAXS (Read axis pattern)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Variable Position
Optional Optional PAXS CP
number number
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Store the axis pattern at the position specified in operand 2 to the variable
specified in operand 1.
The table below shows different positions and corresponding values stored in a variable.
320
PSIZ (Check position data size)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Variable
Optional Optional PSIZ Prohibited CP
number
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Set an appropriate value in the variable specified in operand 1 in accordance with
the parameter setting.
[Example] PSIZ 1
When “Other parameter No. 23, PSIZ function type” = 0
The maximum number of position data that can be stored in variable 1 will be
set.
When “Other parameter No. 23, PSIZ function type” = 1
The number of position data currently used will be set in variable 1.
321
GTAM (Acquirement of target arm system data)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Variable No.
(Two Position
Optional Optional GTAM CP
variables number
used in a row)
Applicable models
XSEL-RX/SX/RXD/SXD
XSEL-RAX/SAX/RAXD/SAXD
5. SEL Commands
MSEL-PCX/PGX
Other than above ×
[Function] Acquire the target arm system indication from the position data indicated in
Operand 2, and set it in the two variables in a row indicated in Operand 1.
Variation No. n in Operand 1 is the target arm system indication of the 1st to 4th
axes or 1st to 3rd axes, and variable No. n+1 is that of the 5th to 8th axes. For
the type to connect one unit of SCARA, make sure to set 0 to the indicated
variable No. n+1.
Output Range
Variable No. Description 1 unit of SCARA 2 units of SCARA
connected connected
1st to 4th axes (1st to
n 3rd axes) SCARA target -1, 0, 1 -1, 0, 1
arm system
5th to 8th axes SCARA
n+1 Indefinite -1, 0, 1
target arm system
322
GVEL (Get speed data)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Variable Position
Optional Optional GVEL CP
number number
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Obtain speed data from the speed item in the position data specified in operand 2,
and set the value in the variable specified in operand 1.
[Example] GVEL 100 10 Set the speed data at position No. 10 in variable
100.
If the position data is set as above when the command is executed, 100 will be set in variable
100.
323
GACC (Get acceleration data)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Variable Position
Optional Optional GACC CP
number number
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Obtain acceleration data from the acceleration item in the position data specified
in operand 2, and set the value in the variable specified in operand 1.
If the position data is set as above when the command is executed, 0.8 will be set in variable
100.
324
GDCL (Get deceleration data)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Variable Position
Optional Optional GDCL CP
number number
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Obtain deceleration data from the deceleration item in the position data specified
in operand 2, and set the value in the variable specified in operand 1.
If the position data is set as above when the command is executed, 0.8 will be set in variable
100.
325
[11] Actuator Control Declaration
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Set the actuator travel speed in the value specified in operand 1.
In the case of a SCARA, set the operating speed for CP operation.
The unit is [mm/sec].
The maximum speed will vary depending on the model of the actuator connected.
Set a speed not exceeding the applicable maximum speed.
326
VELS (Dedicated SCARA command/Set speed ratio)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Optional Optional VELS Ratio Prohibited CP
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
SAXD
5. SEL Commands
× × × × × × (PCX/
PGX only)
[Function] Set in operand 1 the moving speed for SCARA PTP operation command (angular
speed for all axes other than Z) as a ratio of the maximum PTP speed. Operand 1
must be set with an integer (unit: %).
(Note 1) If a RIGH or LEFT command is used, the speed must be set with VELS even
when a SCARA PTP operation command is not used.
[Example 1] VELS 50 Set the moving speed for PTP operation command
to 50% of the maximum value.
MOVP 1 Move to position No. 1 via PTP at 50% of the
maximum speed.
327
OVRD (Override)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Optional Optional OVRD Speed ratio (OVRD type) CP
Applicable models
All models [Refer to Section 5.1 for details of models]
However, (OVRD Type) in Operand 2 is available to set only for XSEL-RA/SA, MSEL Controllers
(PC, PG only) and TTA
[Function] Change the speed in accordance with the ratio specified in operand 1 (speed
5. SEL Commands
(Note 1) OVRD Type in Operand 2 (Operand 2) is available to set only for XSEL-RA/SA, MSEL
Controllers and TTA.
(Note 2) The continuous operation system interpolation commands that the track concentration
is valid are as shown below;
PATH, CIR, ARC, PSPL, CIR2, ARC2, ARCD, ARCC, CIRS, ARCS
(Note 3) The command track may vary due to the following causes when the track concentration
is valid.
● Influence of the servo system parameter setting (such as gain)
● When values above the actuator specification are set in the acceleration and
deceleration settings
It may cause generation of an error, malfunction or shorten product life as well as
variance in command track.
● When command velocity was changed by CHVL (velocity change) command
● When command velocity has varied by safety velocity valid / invalid
● Operation 1 (1 to 150%) and Operation 2 (OVRD Type) in MSEL-PC/PG and TTA are available
for input to PC software of Ver. 12.03.00.00 and later and teaching pendant TB-02(D) : first
edition or later, TB-01(D) of Ver. 1.50 and later. (Not applicable for SEL-T (D) and IA-T-X (D))
● It is applicable for Operation 1 (1 to 150%) and Operation 2 (OVED) of XSEL-RA/SA in the
following versions and later.
PC software 13.00.00.00, TB-02 1.30, TB-01 1.60
Not applicable for SEL-T (D) and IA-T-X (D).
328
[Example 1] VEL 100 Set the speed to 100mm/s.
OVRD 50 Reduce the speed to 50%.
As a result, the actual speed will become 50mm/s.
[Example 2: SCARA robot]
VEL 150 Set the SCARA CP operation speed / linear axis
speed to 150mm/sec.
VELS 90 Set the SCARA PTP operation speed ratio to 90%.
OVRD 50 Lower the speed to 50%.
The SCARA CP operation speed/linear axis speed
becomes 75mm/sec, while the SCARA PTP
operation speed ratio becomes 45%.
Command limit speed for smooth operation:
Travel distance per encoder pulse [mm/pulse] / time [msec]
Command limit speed that can be generated:
5. SEL Commands
Travel distance per encoder pulse [mm/pulse] / time [msec]
(Smoothness of actual operation cannot be guaranteed. Movement must be checked on the
actual machine.)
[Calculation formula of travel distance per encoder pulse]
Rotary encoder
Travel distance per encoder pulse [mm/pulse] = (Screw lead [0.001mm] Gear ratio numerator)
/ (Encoder resolution [pulses/rev] Gear ratio denominator
/ (2 ^ Encoder division ratio)
Linear encoder
Travel distance per encoder pulse [mm/pulse] = Encoder resolution (0.001m/pulse) 1000
/ (2 ^ Encoder division ratio)
(Reference) Use the values of the following parameters for the above calculation formulas:
Encoder resolution: Axis-specific parameter No. 42
Encoder division ratio: Axis-specific parameter No. 43
Screw lead: Axis-specific parameter No. 47
Gear ratio numerator: Axis-specific parameter No. 50
Gear ratio denominator: Axis-specific parameter No. 51
Example for setting of OVRD type available for setting only in XSEL-RA/SA, MSEL Controllers
and TTA is shown in [Example 3].
[Example 3]
VEL 200 Set the velocity to 200mm/s.
OVRD 80 1 Set the velocity ratio to 80% (velocity should be 160mm/s)
(track concentration).
PATH 10 12 Move Potion No. 10 to 12 continuously…(1)
:
OVRD 110 1 Set the velocity ratio to 110% (velocity should be
220mm/s) (track concentration).
PATH 10 12 Move Potion No. 10 to 12 continuously…(2)
:
VEL 150 Set the velocity to 150mm/s.
OVRD 100 1 Set the velocity ratio to 100% (velocity should be
150mm/s) (track concentration).
PATH 10 12 Move Potion No. 10 to 12 continuously…(3)
It should be the equivalent directive tracks for (1) and (2) (as the standard velocity is the
same 200mm/s).
It should be different directive tracks for (1) and (3) (as the standard velocity is different as
200mm/s for (1) while 150mm/s for (3)).
329
ACC (Set acceleration)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Optional Optional ACC Acceleration Prohibited CP
Applicable models
All models [Refer to Section 5.1 for details of models]
For SCARA robot, the setting is the operational acceleration speed for CP
operation.
The unit of operand 1 is [G], and the set value is effective to two decimal points.
(Note) Setting an acceleration exceeding the specified range for the actuator may
generate an error. It may also result in a failure or shorter product life.
330
ACCS (Dedicated SCARA command/Set acceleration ratio)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Optional Optional ACCS Ratio Prohibited CP
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
SAXD
5. SEL Commands
× × × × × × (PCX/
PGX only)
[Function] Set in operand 1 the acceleration for movement by SCARA PTP operation
command (angular acceleration for all axes other than Z) as a ratio of the
maximum PTP acceleration. Operand 1 must be set with an integer (unit: %).
(Note 1) For the acceleration ratio setting, make sure to refer to “Caution for Use” in
Vertical Articulated Robot IX Series Instruction Manual provided separately.
331
DCL (Set deceleration)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Optional Optional DCL Deceleration Prohibited CP
Applicable models
All models [Refer to Section 5.1 for details of models]
For SCARA robot, the setting is the operational deceleration speed for CP
operation.
The unit of operand 1 is [G], and the set value is effective to two decimal points.
(Note) Setting a deceleration exceeding the specified range for the actuator may
generate an error. It may also result in a failure or shorter product life.
332
DCLS (Dedicated SCARA command/Set deceleration ratio)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Optional Optional DCLS Ratio Prohibited CP
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
SAXD
5. SEL Commands
× × × × × × (PCX/
PGX only)
[Function] Set in operand 1 the deceleration for movement by SCARA PTP operation
command (angular deceleration for all axes other than Z) as a ratio of the
maximum PTP deceleration. Operand 1 must be set with an integer (unit: %).
(Note 1) For the deceleration ratio setting, make sure to refer to “Caution for Use” in
Vertical Articulated Robot IX Series Instruction Manual provided separately.
333
SCRV (Set sigmoid motion ratio) • • • 1/3
Extension Command,declaration
Input condition Output
Condition Command,
(I/O flag) Operand1 Operand2 (Output,flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand1 Operand2 Pst
Optional Optional SCRV Ratio Prohibited CP
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
SAXD
5. SEL Commands
TT:,
× × × × TTA:× ×
[Function] Set the ratio of sigmoid motion control of the actuator in the value specified in
operand1.
The ratio is set as integer in a range from 0 to 50(%)
If the ratio is not set using this command or 0% is set,a trapezoid motion will be
implemented.
A SCRV command can be used with the following commands:
MOVP, MOVL, MVPI, MVLI, JBWF, JBWN, JFWF, JFWN, TMPI, TMLI, RIGH,
LEFT
334
SCRV (Set sigmoid motion ratio) • • • 2/3
Extension Command,declaration
Input condition Output
Condition Command,
(I/O flag) Operand1 Operand2 (Output,flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand1 Operand2 Pst
(S-motion
Optional Optional SCRV Ratio CP
type)
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
5. SEL Commands
QCT SXD
SAXD
TT: ×,
× × × × × × TTA:
[Function] Set the ratio of sigmoid motion control of the actuator in the value specified in
operand1.
The ratio is set as integer in a range from 0 to 50(%)
If the ratio is not set using this command or 0% is set, a trapezoid motion will be
implemented.
A SCRV command can be used with the following commands:
MOVP, MOVL, MVPI, MVLI, JBWF, JBWN, JFWF, JFWN, TMPI, TMLI, RIGH,
LEFT
b
a
Time
時間
S-motion B (Operand 2 = 1)
If S-motionB is selected,the speed pattern becomes smoother(than the equivalent S-motion
control ratio based on S-motionA).(The divergence peak relative to trapezoid motion becase
smaller).
335
SCRV (Set sigmoid motion ratio) • • • 3/3
Extension Command,declaration
Input condition Output
Condition Command,
(I/O flag) Operand1 Operand2 (Output,flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand1 Operand2 Pst
(S-motion
Optional Optional SCRV Ratio CP
type)
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
5. SEL Commands
QCT SXD
SAXD
× × × × × × × ×
[Function] Set the ratio of sigmoid motion control of the actuator in the value specified in
operand1.
The ratio is set as integer in a range from 0 to 50(%)
If the ratio is not set using this command or 0% is set,a trapezoid motion will be
implemented.
XSEL-P/Q/PCT/QCT are available to select operand2.(S-shaped type).
(XSEL-P/Q/PCT/QCT Main application Ver.1.25 and later)
Operand 2 can be inputted from IA-T-X(D):Ver.1.52 or subsequent ones later
teaching box TB-02(D): first edition or later, TB-01(D): first edition later ,
SEL-T(D):Ver.1.12 later PC software:Ver.7.7.12.0 later.
S-shaped Motion
Model Setting in Operand 2 S-shaped Motion Effective Command
Name (S-shaped Type) Class Group
(See the table below)
XSEL Not set, 0 A 1)
-P/Q 1 B 1)
XSEL-RA/ 2 A 2) (Note 2)
SA/RAX/
SAX/RAXD 3 B 2) (Note 2)
/SAXD
Not set, 0 1)
XSEL 1 (Note 1) 1)
B
-PCT/QCT 2 2) (Note 2)
3 2) (Note 2)
336
S-motion A
5. SEL Commands
b
a
時間
S-motion B
In this class, operates with a speed pattern smoother than the control of S-shaped Motion Class
A. (Estrangement peak with Trapezoid Motion becomes small.)
337
OFST (Set offset)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Optional Optional OFST Axis pattern Offset value CP
Applicable models
All models [Refer to Section 5.1 for details of models]
[Function] Add the offset in operand 2 to the target value for the axis pattern specified in
5. SEL Commands
operand 1 when the actuator moves, to reset the target value and operate the
actuator accordingly.
The offset is set in mm, and the effective resolution is 0.001mm.
A negative offset may be specified as long as the operation range is not
exceeded.
(Note) An OFST command cannot be used outside the applicable program. To use
OFST in multiple programs, the command must be executed in each program.
An OFST command cannot be used with MVPI, MVTI, TMLI and TMPI
commands.
[Example 1] OFST 110 50 Add 50mm to the specified positions of Y-axis and
Z-axis.
[Example 2] The axis pattern can be specified indirectly using a variable. When the command
in [Example 1] is rephrased based on indirect specification using a variable:
110 (binary) 6 (decimal)
LET 1 6 Assign 6 to variable 1.
OFST *1 50
338
DEG (Set arc angle)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Optional Optional DEG Angle Prohibited CP
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Set a division angle for the interpolation implemented by a CIR (move along
circle) or ARC (move along arc) command.
When CIR or ARC is executed, a circle will be divided by the angle set here to
calculate the passing points.
The angle is set in a range from 0 to 120.
If the angle is set to “0”, an appropriate division angle will be calculated
automatically so that the actuator will operate at the set speed (maximum 180).
The angle is set in degrees and may include up to one decimal place.
(Note) If a CIR or ARC command is executed without setting an angle with this
command, the default value registered in “All-axis parameter No. 30, Default
division angle” will be used.
339
BASE (Specify axis base)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Datum axis
Optional Optional BASE Prohibited CP
number
Applicable models
XSEL-JX/KX ×
Other than XSEL-JX/KX
5. SEL Commands
[Function] Count the axes sequentially based on the axis number specified in operand 1
being the first axis.
BASE Command is available in PRED, PRDQ, AXST, actuator control commands,
ARCH, PACH, PMVP, PMVL, zone commands, actuator control declaration
commands SLTL, SLWK, WGHT, WGT2, PTPR, PTPL, PTPE, PTPD, RIGH,
LEFT and the system information acquirement command GARM. Note that each
zone range is assigned to the actuator via parameter.
Thereafter, axes 5 and 6 move according to the specifications for axes 1 and 2.
340
GRP (Set group axes)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Optional Optional GRP Axis pattern Prohibited CP
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Allow only the position data of the axis pattern specified in operand 1 to become
valid.
The program assumes that there are no data for other axes not specified.
When multiple programs are run simultaneously, assigning axes will allow the
same position data to be used effectively among the programs.
GRP Command is available in the operand axis pattern indication SEL
commands except for OFST, DFTL, DFWK, DFIF, GTTL, GTWK and GTIF or the
servo operation commands to use the position data, actuator control declaration
commands SLTL, SLWK, WGHT, WGT2, PTPR, PTPL, PTPE, PTPD, RIGH and
LEFT, and the system information acquirement command GARM.
GRP Command activates in the condition before the axis number changed due to
BASE Command.
(Superior) (Inferior)
Axis No. 8-axis 7-axis 6-axis 5-axis 4-axis 3-axis 2-axis 1-axis
Use 1 1 0 1 1 1 1 1
Unused 0 0 1 0 0 0 0 0
2-axis
↓
000011… (0 in front are not necessary. Remove 0 and make it 11.)
↑
1-axis
4-axis
↓
1001… (In this case, 0 are necessary to express the position of the 4th axis.)
↑
1-axis
341
HOLD (Hold: Declare axis port to pause)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
(Input port, (HOLD
Optional Optional HOLD CP
global flag) type)
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Declare an input port or global flag to pause while a servo command is being
executed.
When operation is performed on the input port or global flag specified in operand 1,
the current servo processing will pause. (If the axes are moving, they will decelerate
to a stop.)
If nothing is specified in operand 1, the current pause declaration will become invalid.
[HOLD type]
0 = Contact a (Deceleration stop)
1 = Contact b (Deceleration stop)
2 = Contact b (Deceleration stop Servo OFF (The drive source will not be cut off))
The HOLD type is set to “0” (contact a) when the program is started.
If nothing is specified in operand 2, the current HOLD type will be used.
Using other task to issue a servo ON command to any axis currently stopped via
a HOLD servo OFF will generate an “Error No. C66, Axis duplication error”. If the
servo of that axis was ON prior to the HOLD stop, the system will automatically
turn on the servo when the HOLD is cancelled. Therefore, do not issue a servo
ON command to any axis currently stopped via a HOLD servo OFF.
If any axis currently stopped via a HOLD servo OFF is moved by external force,
etc., from the stopped position, and when the servo of that axis was ON prior to
the HOLD stop, the axis will move to the original stopped position when the
HOLD is cancelled before resuming operation.
(Note 1) The input port or global flag specified by a HOLD declaration will only pause the
axes used in the task (program) in which the HOLD is declared. The declaration
will not be valid on axes used in different tasks (programs).
(Note 2) An input port or global flag to pause is valid for all active servo commands other
than a SVOF command. (A deceleration stop will also be triggered in JW and
PATH operations.)
[Example] HOLD 15 0 The axes will decelerate to a stop when input port
15 turns ON.
Remaining operation
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Declare an input port or global flag to abort while a servo command is being
executed.
When operation is performed on the input port or global flag specified in operand
1, the current servo processing will be aborted. (If the axes are moving, they will
decelerate to a stop before the processing is aborted.)
If nothing is specified in operand 1, the current abort declaration will become
invalid.
[CANC type]
0 = Contact a (Deceleration stop)
1 = Contact b (Deceleration stop)
The CANC type is set to “0” (contact a) when the program is started.
If nothing is specified in operand 2, the current CANC type will be used.
(Note 1) The input port or global flag specified by a CANC command will only abort the
axes used in the task (program) in which the CANC is declared. The declaration
will not be valid on axes used in different tasks (programs).
(Note 2) An input port or global flag to pause is valid for all active servo commands other
than a SVOF command. (A deceleration stop will also be triggered in JXWX and
PATH operations.)
[Example] CANC 14 0 The axes will decelerate to a stop when input port
14 turns ON.
Input port 14 ON
Not executed.
Remaining operation
Movement is complete.
343
ACMX (Indicate ACMX acceleration) (Dedicated linear axis command)
Extension Command, declaration Output operation
Input condition
condition Command, type
(I/O, flag) Operand 1 Operand 2
(LD, A, O, AB, OB) declaration (Output, flag)
E N, Cnd Cmnd Operand 1 Operand 2 Pst
ACMX
Optional Optional ACMX Acceleration Prohibited CP
No.
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
5. SEL Commands
[Function] Set the movement acceleration and deceleration of the actuator to the ACMX
acceleration of the number indicated in Operand 1. Once ACMX Command is
executed, the parameters registered in ACMX Acceleration No. 1 to 4 (Each Axis
Parameters No. 2 to 5 and 194 to 197) are set as the movement acceleration and
deceleration. It is necessary to set the parameters of ACMX acceleration in
advance considering the conditions how to use the actuator (transportation
weight, installation condition, etc.).
ACMX
Moving
Acceleration Acceleration Deceleration
Direction
No.
Each Axis Parameter No.2 Each Axis Parameter No.3
Positive Setting of “ACMX + Setting of “ACMX -
Acceleration 1” Acceleration 1”
1
Each Axis Parameter No.3 Each Axis Parameter No.2
Negative Setting of “ACMX - Setting of “ACMX +
Acceleration 1” Acceleration 1”
Each Axis Parameter No.4 Each Axis Parameter No.5
Positive Setting of “ACMX + Setting of “ACMX -
Acceleration 2” Acceleration 2”
2
Each Axis Parameter No.5 Each Axis Parameter No.4
Negative Setting of “ACMX - Setting of “ACMX +
Acceleration 1” Acceleration 2”
Each Axis Parameter No.194 Each Axis Parameter No.195
Positive Setting of “ACMX + Setting of “ACMX -
Acceleration 3” Acceleration 3”
3
Each Axis Parameter No.195 Each Axis Parameter No.194
Negative Setting of “ACMX - Setting of “ACMX +
Acceleration 3” Acceleration 3”
Each Axis Parameter No.196 Each Axis Parameter No.197
Positive Setting of “ACMX + Setting of “ACMX -
Acceleration 4” Acceleration 4”
4
Each Axis Parameter No.197 Each Axis Parameter No.196
Negative Setting of “ACMX - Setting of “ACMX +
Acceleration 4” Acceleration 4”
(Note 1) It may generate an error is the acceleration or deceleration is set above the
actuator specifications. Also, it cause a malfunction or drop of the production life.
(Note 2) The priority is put to the setting of acceleration and deceleration in the position
data indicated with a movement command if there is any.
344
(Note 3) An operation is made within the range of the maximum acceleration and
deceleration that would not exceed the ACMX acceleration/deceleration of each
movement axis during the CP operation such as MOVL Command. In case
constancy is required in the target acceleration/deceleration, indicate the
acceleration and deceleration in ACC, DCL Command and the position data.
(Note 4) Do not attempt to indicate the ACMX acceleration/deceleration to the continuous
movement related commands (PATH, PSPL, etc.).
It may cause a big speed drop depending on the direction of the movement
position. Indicate the acceleration and deceleration in ACC, DCL Command and
the position data.
(Note 5) Do not attempt to indicate the ACMX acceleration/deceleration to the extended
motion control board axis movement commands. It would cause Error No. C89
“Acceleration/Deceleration Indication Error”. Indicate the acceleration and
deceleration in ACC, DCL Command and the position data.
5. SEL Commands
(Note 6) ACMX Command is a command dedicated for the linear drive axes.
Positive Direction of
3rd Axis Coordinates 1st Axis 1st Axis
Acceleration 3.0G Deceleration 3.0G
3rd Axis
Acceleration 3rd Axis
0.5G Deceleration 0.5G
Start Point End Point (Position No.10)
Positive Direction of
1st Axis Coordinates
345
[Example 2] When the transported weight differs for going forward and backward
Operation of Example 2
346
VLMX (Dedicated linear axis command/Specify VLMX speed)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Optional Optional VLMX Prohibited Prohibited CP
Applicable models
XSEL-JX/KX ×
Other than XSEL-JX/KX
5. SEL Commands
[Function] Set the moving speed of a linear axis to the VLMX speed (normally maximum
speed).
Executing a VLMX command will set the value registered in “Axis-specific
parameter No. 29, VLMX speed” as the travel speed.
(Note 1) If the VLMX speed is specified for a continuous position movement command
(PATH, PSPL), the target speed to each position becomes a composite speed
based on the VLMX speed to the extent that each axis does not exceed the value
set in axis-specific parameter No. 28, “Maximum PTP speed (SCARA axis)/
axis-specific maximum operating speed (linear axis)”. To keep the target speed
constant, you must expressly specify the speed using a VEL command.
(Note 2) Error No. C88 “Velocity Specification Error” will occur if VLMX speed is indicated
in case of CP operation held on the liner axes and SCARA axes at the same time.
Indicate the speed with VEL Command.
347
DIS (Set division distance at spline movement)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Optional Optional DIS Distance Prohibited CP
Applicable models
All models [Refer to Section 5.1 for details of models]
[Function] Set a division distance for the interpolation implemented by a PSPL (move along
5. SEL Commands
spline) command.
When a PSPL command is executed, a passing point will be calculated at each
distance set here and the calculated passing points will be used as interpolation
points.
If the distance is set to “0”, an appropriate division distance will be calculated
automatically so that the actuator will operate at the set speed.
The distance is input in mm.
Interpolation points
Division distance
(Note) If a PSPL command is executed without setting a distance with a DIS command, the
default value registered in “All-axis parameter No. 31, Default division distance” will
be used.
348
POTP (Set PATH output type)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Optional Optional POTP 0 or 1 Prohibited CP
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Set the output type in the output field to be used when a PATH and PSPL
command is executed.
When a PATH and PSPL command is executed, the output will operate as follows
in accordance with the setting of the POTP command.
[Example] POTP 1
PATH 1 5 300 Turn ON output port No. 300 through 304
sequentially each time a specified position
approaches during a pass movement from
position No. 1 through 5, starting from the
first position.
Position No. 1
Turn ON output port 302.
Turn ON output port 300.
Position origin
Turn ON output port 303.
Turn ON output port 301.
349
PAPR (Set push-motion approach distance, speed)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Optional Optional PAPR Distance Speed CP
Applicable models
All models [Refer to Section 5.1 for details of models]
Position origin
(Note) The push-motion approach speed in an OVRD command will be clamped by the
minimum speed of 1mm/sec. (Correct push-motion operation is not guaranteed at
the minimum speed. Operation at slow push-motion approach must be checked
on the actual machine by considering the effects of mechanical characteristics,
etc.)
350
QRTN (Set quick-return mode)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Optional Optional QRTN 0 or 1 Prohibited CP
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
SAXD
5. SEL Commands
× × × (V1.10 (PC/PG
or later.) only)
(Note 1) The quick-return mode will be cancelled when the program ends. (The positioning
width set by a PBND command will not be cancelled.)
(Note 2) If a given axis is used even once in the quick-return mode, the program will not
release the right to use the axis until the QRTN is set to “0” (normal mode) or the
program ends. Any attempt to use the axis from other program will generate an
“Error No. C66, Axis duplication error”.
(Note 3) Following a return from a normal deceleration command in the quick-return mode,
the next positioning will start after all command pulses for the previous positioning
have been output. Therefore, in the quick-return mode a simple reciprocating
operation will require a longer tact time because of the extra completion check. In
this sense, this setting should be used only if you wish to reduce the overall tact
time by performing other processing during deceleration.
351
(Note 4) The quick-return mode represents very irregular processing. Therefore, be sure
to revert to the normal mode when the overlay processing is completed in the
necessary section.
(Note 5) The quick-return mode cannot be used with a push-motion travel command or arc
interpolation command.
(Note 6) It will be invalid if a SCARA axis is included in the operation axes to be operated
with a CP operation command.
5. SEL Commands
352
3) Quick return mode 2 (closeness-detection return target position addition mode)
* XSEL-J/K only
When a MOVP, MOVL or PATH command (specifying the final moving
position) is executed, closeness to the target position is detected when the
close distance set by a NBND command is reached (or all command pulses
are sent AND the positioning width is reached) while all used axes are
positioning in steady state according to the applicable command, after which
the command will be reset (quick return) and the SEL command in the next
step will be executed.
Set this mode if you want to perform other processing during positioning by
using NBND and PEND commands together, or add a target position to
operate the actuator continuously.
If a MOVP, MOVL or PATH command is executed again while the actuator is
moving in quick return mode 2, a target position will be added and the
5. SEL Commands
actuator will operate continuously.
[Example] :
QRTN 2 Set quick return mode to 2
NBND 11 50 Set close position for axes 1 and 2 to 50mm
MOVL 1 600 Move to position 1 (axes 1/2)
(Proceed to the next step when each axis reaches
approx. 50mm before the position.)
WTON 610 Wait for permission of movement to position 2 (610)
MOVL 2 601 Move to position 2 (axis 3)
PEND 602 Wait for all used axes to end operation
QRTN 0 Set quick return mode to 0
:
Detect closing in on each axis approx.
50mm before the axis Next step
Position origin Position No. 1
Path drawn when global flag 610
turns ON after the actuator arrives
at position 1
Path drawn when global flag 610 Output 602: Turns ON upon
turns ON before the actuator arrives successful completion of positioning
at position 1
Position No.2
* This mode is invalid with respect to commands other than MOVP, MOVL
and PATH.
(With CIR2, ARC2, ARCC, ARCD, CIRS, ARCS, CIR, ARC, PSPL, MVPI
and MVLI commands, “Error No. B24: Quick return mode error” occurs
(= the command cannot be executed) because an unexpected path may be
followed and a dangerous situation may result unless the start point is
accurately understood.
* The close distance set by a NBND command must consider an allowance
for the processing time in the next step onward following the quick return
upon closeness detection (the specific processing time varies depending on
the types of commands, number of steps, etc.) (this distance is not intended
for use in precise processing).
353
* Behavior at the connection of movement commands when a new target
position is added (when processing under the new movement command can
be performed in time)
If either the previous movement command (quick return) or new movement
command is MOVP, the actuator starts moving to the target position under
the new movement command simultaneously as the slowest axis starts
decelerating under the previous movement command.
If neither of the commands is MOVP (such as when MOVL and PATH
commands are combined), the connection of operations is equivalent to
what happens between normal PATH commands.
* During quick return mode 2, the output of a MOVP, MOVL or PATH
command turns ON near the target position (regardless of the value set by
the NBND command) (the operation is not yet complete). Use the output of
a PEND command to check if the operation has completed (positioning has
been successful).
5. SEL Commands
* During quick return mode 2, the following tasks apply to all used axes for
any operation with a MOVP command (they apply to all used axes even
when specified for an individual axis):
All stop processing including one by a STOP command
Speed change by a CHVL command
* An attempt to switch from quick return mode 2 directly to quick return mode
1 generates “Error No. B24: Quick return mode error”.
* Software versions supporting quick return mode
Controller main application: Ver.1.04 or later
(excluding flash ROM 8Mbit versions)
PC software: Ver.7.2.3.0 or later
Teaching pendant:
IA-T-X (D): Ver.1.44 or later
SEL-T (D): Ver.1.02 or later
TB-01 (D): First edition or later
TB-02 (D): First edition or later
354
4) Quick return mode 3 (closeness-detection return target position addition mode)
* XSEL-J/K only
When a MOVP, MOVL or PATH command (specifying the final moving
position) is executed, closeness to the target position is detected when the
close distance set by a NBND command is reached (or all command pulses
are sent and the positioning width is reached) while all used axes are
positioning in steady state according to the applicable command, after which
the command will be reset (quick return) and the SEL command in the next
step will be executed.
Set this mode if you want to perform other processing during positioning by
also using a NBND/PEND command or change the target position without
stopping.
If the MOVP, MOVL or PATH command is executed again while the actuator
is still moving as part of quick return in quick return mode 3, the actuator
5. SEL Commands
changes the target position (by decelerating to stop at the previous target
position to cancel the position and then starting to move to the new target
position) without stopping.
[Example] :
QRTN 3 Set quick return mode to 3
NBND 11 80 Set close position for axes 1 and 2 to 80mm
MOVL 1 600 Move to position 1 (axes 1/2)
(Proceed to the next step when each axis reaches
approx. 80mm before the position.)
WTON 610 Wait for permission of movement to position 2 (610)
MOVL 2 601 Move to position 2 (axis 3)
PEND 602 Wait for all used axes to end operation
QRTN 0 Set quick return mode to 0
:
Detect closing in on each axis approx.
50mm before the axis Next step
* This mode is invalid with respect to commands other than MOVP, MOVL
and PATH.
(With CIR2, ARC2, ARCC, ARCD, CIRS, ARCS, CIR, ARC, PSPL, MVPI
and MVLI commands, “Error No. B24: Quick return mode error” occurs
(= the command cannot be executed) because an unexpected path may be
followed and a dangerous situation may result unless the start point is
accurately understood.
* The close distance set by a NBND command must consider an allowance
for the processing time in the next step onward following the quick return
upon closeness detection (the specific processing time varies depending on
the types of commands, number of steps, etc.) (this distance is not intended
for use in precise processing).
355
* Transition between movement commands upon target position change
The actuator starts moving to the target position under the new movement
command roughly at the same time it starts cancelling the previous
movement command via forced deceleration to a stop (there is a delay
corresponding to the processing time to recalculate the target position).
* During quick return mode 3, the output of a MOVP, MOVL or PATH
command turns ON near the target position (regardless of the value set by
the NBND command) (the operation is not yet complete). Use the output of
a PEND command to check if the operation has completed (positioning has
been successful).
However, the output is invalid if the target position was changed (cancelled
via forced deceleration to a stop) before the start of normal deceleration
(during acceleration or constant-speed operation), and so is the S-motion
mode during forced deceleration after the target position has been changed.
* During quick return mode 3, the following tasks apply to all used axes for
5. SEL Commands
any operation with a MOVP command (they apply to all used axes even
when specified for an individual axis):
All stop processing including one by a STOP command
Speed change by a CHVL command
* An attempt to switch from quick return mode 3 directly to quick return mode
1 generates “Error No. B24: Quick return mode error”.
* Software versions supporting quick return mode 3
Controller main application: Ver.1.04 or later
(excluding flash ROM 8Mbit versions)
PC software: Ver.7.2.3.0 or later
Teaching pendant:
IA-T-X (D): Ver.1.44 or later
SEL-T (D): Ver.1.02 or later
TB-01 (D): First edition or later
TB-02 (D): First edition or later
(Note 1) Following a quick return from a SEL movement command, the right to use the
applicable axis is not released in the program even after the command has been
reset. Accordingly, an attempt to use that axis from other program generates
“Error No. C66: Multiple axis use error”. To release the right to use the applicable
axis, set quick return mode 0 (Normal mode = Quick return mode cancelled).
(Note 2) Quick return modes 1 to 3 are cancelled when the program ends (the close
distance set by the NBND command and positioning width set by the PBND
command are not cancelled).
(Note 3) At the end of combined processing requiring a quick return, be sure to reset the
quick return mode to 0 (Normal mode = Quick return mode cancelled).
(Note 4) Always refer to the pages explaining the NBND and PEND commands.
356
DFTL (Define tool coordinate system)
(Note) When using this command in MSEL-PC/PG or TTA, set All Axes Parameter No. 55 and
No. 56. (MSEL-PC/PG or TTA main application V2.00 or later)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Tool
coordinate Position
Optional Optional DFTL CP
system number
number
5. SEL Commands
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
SAXD
(TTA only)
[Function] Set the position data in operand 2 as the tool coordinate system offset data
specified in operand 1.
The position data for all the SCARA axes go into the tool coordinate system offset
data, however, 0 will be set for an axis that the position data is invalid. In
XSEL-RX/SX/RXD/SXD, XSEL-RAX/SAX/RAXD/SAXD if all the position data for
the SCARA axes in one unit are invalid, data cannot be established in the tool
coordinate system offset, and the data before executing DFTL Command is
saved.
In MSEL-PCX/PGX, position data for four axes needs to be set in the tool
coordinate system offset data no mater of the number of axes on SCARA Robot.
It is recommended that the position that the tool coordinate system data is set
from is used as the dedicated data for the tool coordinate set, not to be shared
with the movement target position.
In case there is an additional linear axis is connected on Axis 4 on 3-axis type
SCARA Robot, Axis 4 in the position data set to the tool coordinate system in
DFTL is not a target position for the additional linear axis.
In MSEL-PC/PG and TTA, tool coordinate system offset X, Y, Z and R is set in the
work coordinate system offset on Coordinate System Definition 1 Constructing
Axes Setting Value in order from Axis 1 data (All Axes Parameter No. 56).
(Note 1) The tool/work coordinate systems are functions available for SCARA Robot.
Also, this is a feature for the axes of the coordinate system definition unit of
MSEL-PC/PG and TTA set in Coordinate System Definition 1 Constructing Axes
Setting (All Axes Parameter No. 56).
(Note 2) Since tool coordinate system No. 0 is reserved by the system as a condition
specifying no tool offset, selecting this number generates “Error No. B71:
Coordinate system number error”.
(Note 3) The GRP command is invalid with respect to this command.
(Note 4) “Error No. B71 Coordinate System Number Error” will occur if this command is
executed when Coordinate System Definition 1 Control (All Axes Parameter No.
55) is set to 0 invalid in MSEL-PC/PG or TTA.
MSEL-PC/PG and TTA are available for input to PC software of Ver. 12.03.00.00
and later and teaching pendant TB-02 (D) of first edition later, TB-01 (D) of Ver
1.50 and later. (Not applicable for SEL-T (D) and IA-T-X (D))
357
(Note 5) Ordinary when using the PC software in MSEL-PC/PG or TTA and opened the position
edit window, only the axis data set valid in All Axes Parameter No. 1 “Valid Axis
Pattern” will be displayed.
However, it is possible that the position data for all the four axes can always be
displayed and available for editing by setting in the environment setting window in
the PC software.
[Refer to the instruction manuals of XSEL PC software Instruction Manual for
details]
By conducting the setting above in the environment setting window, referring to
and editing the position data in the position edit window become available for the
th
4 axis applicable to R-axis offset.
(Also, it becomes always available to refer to and edit data for all the four axes for
the operation of position data by PPUT Command and PGET Command
regardless of the parameter settings or the setting in the PC software.)
5. SEL Commands
358
[XSEL-RXD/SXD/RAXD/SAXD: 2 unit of SCARA connected]
[Example 1] DFTL 1 150
In case that the command shown above is executed with the position data as shown below,
the data is set to Axis 1 to 4 in Tool Coordinate System No. 1 as the position data in Axis 1 to 4
for the SCARA axes (1st to 4th axes) are set effective. There will be no change to Axis 5 to 8 in
Tool Coordinate System No. 1 as the position data in Axis 5 to 8 for the SCARA axes (5th to
8th axes) are all set ineffective.
5. SEL Commands
[Example 2] DFTL 2 152
In case that the command shown above is executed with the position data as shown below,
the data is set to Axis 1 to 8 in Tool Coordinate System No. 2 as the position data in either of
Axis 1 to 4 or Axis 5 to 8 for the SCARA axes (1st to 4th axes) or SCARA axes (5th to 8th
axes) is set effective.
However, 0 will be set to Axis 1 to 2 and 7 to 8 that the position data is the invalid axes.
359
SLTL (Select tool coordinate system)
(Note) When using this command in MSEL-PC/PG or TTA, set All Axes Parameter No. 55 and
No. 56. (MSEL-PC/PG or TTA main application V2.00 or later)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Tool
coordinate
Optional Optional SLTL Prohibited CP
system
number
Applicable models
5. SEL Commands
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
SAXD
(TTA only)
360
[Example 1] GRP 1111 It makes the 1st to 4th axes effective.
SLTL 1 Selected tool coordinate system of the SCARA
axes (1st to 4th axes) is changed to No. 1.
[Example 2] GRP 11111111 It makes the 1st to 8th axes effective.
SLTL 2 Selected tool coordinate system of the SCARA
axes (1st to 4th axes) and the SCARA axes (5th to
8th axes) is changed to No. 2.
MSEL-PC/PG and TTA are available for input to PC software of Ver. 12.03.00.00 and later and
teaching pendant TB-02 (D) of first edition later, TB-01 (D) of Ver 1.50 and later. (Not
applicable for SEL-T (D) and IA-T-X (D))
5. SEL Commands
361
GTTL (Get tool coordinate system definition data)
(Note) When using this command in MSEL-PC/PG or TTA, set All Axes Parameter No. 55 and
No. 56. (MSEL-PC/PG or TTA main application V2.00 or later)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Tool
coordinate Position
Optional Optional GTTL CP
system number
number
Applicable models
5. SEL Commands
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
SAXD
(TTA only)
[Function] Set the tool coordinate system offset data specified in operand 1 for the position
data specified in operand 2. Tool coordinate system offset data for all SCARA
axes is set for the position data.
In MSEL-PCX/PGX, tool coordinate system offset data for four axes is set in the
position data no mater of the number of axes on SCARA Robot.
It is recommended that the position that the tool coordinate system is acquired
from is used as the dedicated data for the tool coordinate acquirement, not to be
shared with the movement target position.
In case there is an additional linear axis is connected on Axis 4 on 3-axis type
SCARA Robot, the tool coordinate system R-axis offset in the position data is
written by execution of GTTL Command.
In MSEL-PC/PG and TTA, tool coordinate system offset X, Y, Z and R is set in the
work coordinate system offset on Coordinate System Definition 1 Constructing
Axes Setting Value in order from Axis 1 data (All Axes Parameter No. 56).
(Note 1) The tool/work coordinate systems are functions available for SCARA Robot.
Also, this is a feature for the axes of the coordinate system definition unit of
MSEL-PC/PG and TTA set in Coordinate System Definition 1 Constructing Axes
Setting (All Axes Parameter No. 56).
(Note 2) The position data for the liner axes (5th to 8th axes) are cleared when the
command is executed.
(Note 3) Since tool coordinate system No. 0 is reserved by the system as a condition
specifying no tool offset, selecting this number generates “Error No. B71:
Coordinate system number error”.
(Note 4) The GRP command is invalid with respect to this command.
(Note 5) “Error No. B71 Coordinate System Number Error” will occur if this command is
executed when Coordinate System Definition 1 Control (All Axes Parameter No.
55) is set to 0 invalid in MSEL-PC/PG or TTA.
(Note 6) Ordinary when using the PC software in MSEL-PC/PG or TTA and opened the
position edit window, only the axis data set valid in All Axes Parameter No. 1
“Valid Axis Pattern” will be displayed.
However, it is possible that the position data for all the four axes can always be
displayed and available for editing by setting in the environment setting window in
the PC software.
[Refer to the instruction manuals of XSEL PC software Instruction Manual for
details]
362
By conducting the setting above in the environment setting window, referring to and editing the
position data in the position edit window become available for the 4th axis applicable to R-axis
offset.
(Also, it becomes always available to refer to and edit data for all the four axes for the operation
of position data by PPUT Command and PGET Command regardless of the parameter settings
or the setting in the PC software.)
MSEL-PC/PG and TTA are available for input to PC software of Ver. 12.03.00.00 and later and
teaching pendant TB-02 (D) of first edition later, TB-01 (D) of Ver 1.50 and later. (Not applicable
for SEL-T (D) and IA-T-X (D))
5. SEL Commands
axes) are cleared.
363
DFWK (Define work coordinate system)
(Note) When using this command in MSEL-PC/PG or TTA, set All Axes Parameter No. 55 and
No. 56. (MSEL-PC/PG or TTA main application V2.00 or later)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Work
coordinate Position
Optional Optional DFWK CP
system number
number
Applicable models
5. SEL Commands
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
SAXD
(TTA only)
[Function] Set the position data in operand 2 for the work coordinate system offset data
specified in operand 1. The position data for all the axes go into the work coordinate
system offset data, however, 0 will be set for an axis that the position data is invalid.
In XSEL-RX/SX/RXD/SXD, XSEL-RAX/SAX/RAXD/SAXD, if all the position data for
the SCARA axes in one unit are invalid, data cannot be established in the tool
coordinate system offset, and the data before executing DFWK Command is saved
In MSEL-PCX/PGX, position data for four axes is set in the work coordinate system
offset data no mater of the number of axes on SCARA Robot.
It is recommended that the position that the work coordinate system data is set from
is used as the dedicated data for the work coordinate set, not to be shared with the
movement target position.
In case there is an additional linear axis is connected on Axis 4 on 3-axis type SCARA
Robot, Axis 4 in the position data set to the tool coordinate system in DFWK is not a
target position for the additional linear axis.
In MSEL-PC/PG and TTA, tool coordinate system offset X, Y, Z and R is set in the
work coordinate system offset on Coordinate System Definition 1 Constructing Axes
Setting Value in order from Axis 1 data (All Axes Parameter No. 56).
(Note 1) The tool/work coordinate systems are functions available for SCARA Robot.
Also, this is a feature for the axes of the coordinate system definition unit of
MSEL-PC/PG and TTA set in Coordinate System Definition 1 Constructing Axes
Setting (All Axes Parameter No. 56).
(Note 2) Since work coordinate system No. 0 is reserved by the system as the base
coordinate system, selecting this number generates “Error No. B71: Coordinate
system number error”.
(Note 3) The GRP command is invalid with respect to this command.
(Note 4) “Error No. B71 Coordinate System Number Error” will occur if this command is
executed when Coordinate System Definition 1 Control (All Axes Parameter No.
55) is set to 0 invalid in MSEL-PC/PG or TTA.
MSEL-PC/PG and TTA are available for input to PC software of Ver. 12.03.00.00 and later and
teaching pendant TB-02 (D) of first edition later, TB-01 (D) of Ver 1.50 and later. (Not
applicable for SEL-T (D) and IA-T-X (D))
364
(Note 5) Ordinary when using the PC software in MSEL-PC/PG or TTA and opened the
position edit window, only the axis data set valid in All Axes Parameter No. 1
“Valid Axis Pattern” will be displayed.
However, it is possible that the position data for all the four axes can always be
displayed and available for editing by setting in the environment setting window
in the PC software.
[Refer to the instruction manuals of XSEL PC software Instruction Manual for
details]
By conducting the setting above in the environment setting window, referring to
and editing the position data in the position edit window become available for the
th
4 axis applicable to R-axis offset.
(Also, it becomes always available to refer to and edit data for all the four axes
for the operation of position data by PPUT Command and PGET Command
regardless of the parameter settings or the setting in the PC software.)
5. SEL Commands
[XSEL-JX/KX/PX/QX/RX/SX/RAX/SAX: 1 unit of SCARA connected]
[Example] DFWK 1 150
365
[XSEL-RXD/SXD/RAXD/SAXD: 2 unit of SCARA connected]
[Example 1] DFWK 1 150
In case that the command shown above is executed with the position data as shown below,
the data is set to Axis 1 to 4 in Work Coordinate System No. 1 as the position data in Axis 1 to
4 for the SCARA axes (1st to 4th axes) are set effective. There will be no change to Axis 5 to 8
in Work Coordinate System No. 1 as the position data in Axis 5 to 8 for the SCARA axes (5th
to 8th axes) are all set ineffective.
5. SEL Commands
366
SLWK (Select work coordinate system)
(Note) When using this command in MSEL-PC/PG or TTA, set All Axes Parameter No. 55 and
No. 56. (MSEL-PC/PG or TTA main application V2.00 or later)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Work
coordinate
Optional Optional SLWK Prohibited CP
system
number
Applicable models
5. SEL Commands
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
SAXD
(TTA only)
(Note 2) The selected number last declared in the system becomes effective.
The selected work coordinate system number will remain effective even after the
program ends, and also after the power is reconnected if the system-memory
backup battery is installed (Note 6).
(Note 3) Only one work coordinate system selection number is present within the system.
(Note 4) Expressly declare SLWK in the program to prevent unwanted problems resulting
from forgetting to reset the coordinate system selection number after changing it
in the PC software or on the teaching pendant.
(Execute SLWK 0, if the work coordinate system is not used.)
(Note 5) In XSEL-RX/SX/RXD/SXD, XSEL-RAX/SAX/RAXD/SAXD 8-axes Series, GRP
and BASE Command are available also in the actuator control declaration
commands SLTL, SLWK, WGHT, WGT2, PTPR, PTPL PTPE, PTPD, RIGH, LEFT
and the system information acquirement command GARM. Establish the setting
to have all the SCARA axes valid. Error No. C30 “Axis Pattern Error” will occur if
even one axis is set invalid by GRP and BASE Commands.
When GRP and BASE Commands are undeclared, all the axes are effective
(equivalent to GRP 11111111).
(Note 6) XSEL-RX/SX/RXD/SXD, XSEL-RAX/SAX/RAXD/SAXD, MSEL Controller or TTA
save the tool coordinate system numbers without using a battery.
(Note 7) “Error No. B71 Coordinate System Number Error” will occur if this command is
executed when Coordinate System Definition 1 Control (All Axes Parameter No.
55) is set to 0 invalid in MSEL-PC/PG or TTA.
367
[Example 1] GRP 1111 It makes the 1st to 4th axes effective.
SLWK 1 Selected work coordinate system of the SCARA
axes (1st to 4th axes) is changed to No. 1.
[Example 2] GRP 11111111 It makes the 1st to 8th axes effective.
SLWK 2 Selected work coordinate system of the SCARA
axes (1st to 4th axes) and the SCARA axes (5th to
8th axes) is changed to No. 1.
MSEL-PC/PG and TTA are available for input to PC software of Ver. 12.03.00.00 and later and
teaching pendant TB-02 (D) of first edition later, TB-01 (D) of Ver 1.50 and later. (Not
applicable for SEL-T (D) and IA-T-X (D)) (Not applicable for SEL-T (D) and IA-T-X (D))
5. SEL Commands
368
GTWK (Get work coordinate system definition number)
(Note) When using this command in MSEL-PC/PG or TTA, set All Axes Parameter No. 55 and
No. 56. (MSEL-PC/PG or TTA main application V2.00 or later)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Work
coordinate Position
Optional Optional GTWK CP
system number
number
Applicable models
5. SEL Commands
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
SAXD
(TTA only)
[Function] Set the work coordinate system offset data specified in operand 1 for the position
data specified in operand 2. Work coordinate system offset data for all axes is set
for the position data.
In MSEL-PCX/PGX, work coordinate system offset data for four axes is set in the
position data no mater of the number of axes on SCARA Robot.
It is recommended that the position that the work coordinate system is acquired
from is used as the dedicated data for the work coordinate acquirement, not to be
shared with the movement target position.
In case there is an additional linear axis is connected on Axis 4 on 3-axis type
SCARA Robot, the work coordinate system R-axis offset in the position data is
written by execution of GTWK Command.
In MSEL-PC/PG and TTA, tool coordinate system offset X, Y, Z and R is set in the
work coordinate system offset on Coordinate System Definition 1 Constructing Axes
Setting Value in order from Axis 1 data (All Axes Parameter No. 56).
(Note 1) The tool/work coordinate systems are functions available for SCARA Robot.
Also, this is a feature for the axes of the coordinate system definition unit of
MSEL-PC/PG and TTA set in Coordinate System Definition 1 Constructing Axes
Setting (All Axes Parameter No. 56).
(Note 2) The position data for the liner axes (5th to 8th axes) are cleared when the
command is executed.
(Note 3) Since work coordinate system No. 0 is reserved by the system as the base
coordinate system, selecting this number generates “Error No. B71: Coordinate
system number error”.
(Note 4) The GRP command is invalid with respect to this command.
(Note 5) “Error No. B71 Coordinate System Number Error” will occur if this command is
executed when Coordinate System Definition 1 Control (All Axes Parameter No.
55) is set to 0 invalid in MSEL-PC/PG or TTA.
369
(Note 6) Ordinary when using the PC software in MSEL-PC/PG or TTA and opened the
position edit window, only the axis data set valid in All Axes Parameter No. 1
“Valid Axis Pattern” will be displayed.
However, it is possible that the position data for all the four axes can always be
displayed and available for editing by setting in the environment setting window in
the PC software.
[Refer to the instruction manuals of XSEL PC software Instruction Manual for
details]
By conducting the setting above in the environment setting window, referring to
and editing the position data in the position edit window become available for
th
the 4 axis applicable to R-axis offset.
(Also, it becomes always available to refer to and edit data for all the four axes
for the operation of position data by PPUT Command and PGET Command
regardless of the parameter settings or the setting in the PC software.)
5. SEL Commands
MSEL-PC/PG and TTA are available for input to PC software of Ver. 12.03.00.00 and later and
teaching pendant TB-02 (D) of first edition later, TB-01 (D) of Ver 1.50 and later. (Not
applicable for SEL-T (D) and IA-T-X (D)) (Not applicable for SEL-T (D) and IA-T-X (D))
370
[XSEL-RXD/SXD/RAXD/SAXD: 2 unit of SCARA connected]
[Example] GTWK 1 150
5. SEL Commands
371
RIGH (Dedicated SCARA command/Change current arm system to right
arm (arm 2 operation involved if current arm system is opposite))
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Optional Optional RIGH Prohibited Prohibited PE
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
5. SEL Commands
QCT SXD
SAXD
(PCX/PG
X only)
[Function] Change the current SCARA arm system to the right arm system. If the current
arm system is the left arm system, arm 2 is moved to change it to the right arm
system. After the operation, arms 1 and 2 form a straight line. No arm operation is
performed if the current arm system is the right arm system.
(Note 1) To use a RIGH or LEFT command, the speed must be set with VELS even when
a SCARA PTP operation command is not used.
372
LEFT (Dedicated SCARA command/Change current arm system to left
arm (arm 2 operation involved if current arm system is opposite))
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Optional Optional LEFT Prohibited Prohibited PE
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
5. SEL Commands
RAXD/ SSEL
QCT SXD
SAXD
(PCX/PG
X only)
[Function] Change the current SCARA arm system to the left arm system. If the current arm
system is the right arm system, arm 2 is moved to change it to the left arm
system. After the operation, arms 1 and 2 form a straight line. No arm operation is
performed if the current arm system is the left arm system.
(Note 1) To use a RIGH or LEFT command, the speed must be set with VELS even when
a SCARA PTP operation command is not used.
373
PTPR (Dedicated SCARA command/Specify PTP target arm system to
right arm (Movement of opposite arm system prohibited (no operation is
performed) if target unachievable)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Optional Optional PTPR Prohibited Prohibited CP
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
5. SEL Commands
[Function] Specify the target arm system for SCARA PTP operation commands to the right
arm system. After the PTPR command is executed, the target arm system for
SCARA PTP operation commands becomes the right arm system and an error
occurs if the target value cannot be achieved by operating on the right arm
system. Executing this command does not initiate any arm operation.
374
PTPL (Dedicated SCARA command/Specify PTP target arm system to
left arm (Movement of opposite arm system prohibited (no operation is
performed) if target unachievable)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Optional Optional PTPL Prohibited Prohibited CP
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
5. SEL Commands
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
SAXD
(PCX/PG
X only)
[Function] Specify the target arm system for SCARA PTP operation commands to the left
arm system. After the PTPL command is executed, the target arm system for
SCARA PTP operation commands becomes the left arm system and an error
occurs if the target value cannot be achieved by operating on the left arm system.
Executing this command does not initiate any arm operation.
375
PTPD (Dedicated SCARA command/Specify PTP target arm system to
current arm (Movement of opposite arm system permitted (no operation
is performed) if target unachievable)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Optional Optional PTPD Prohibited Prohibited CP
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
5. SEL Commands
[Function] Specify the target arm system for SCARA PTP operation commands to the
current arm system. After the PTPD command is executed, the target arm system
for SCARA PTP operation commands becomes the current arm system and an
error occurs if the target value cannot be achieved by operating on this arm
system. Executing this command does not initiate any arm operation.
376
PTPE (Dedicated SCARA command/Specify PTP target arm system to
current arm (Movement of opposite arm system prohibited (no operation
is performed) if target unachievable)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Optional Optional PTPE Prohibited Prohibited CP
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
5. SEL Commands
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
SAXD
(PCX/PG
X only)
[Function] Specify the target arm system for SCARA PTP operation commands to the
current arm system. After the PTPE command is executed, the target arm system
for SCARA PTP operation commands becomes the current arm system and if the
target value cannot be achieved by operating on this arm system, the target arm
system is changed to the one opposite the current arm system. An error occurs if
the target value cannot be achieved by operating on either the right arm system
or left arm system. Executing this command does not initiate any arm operation.
377
DFIF (Dedicated SCARA command/Define simple contact check zone
coordinate)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Contact Position number
Optional Optional DFIF check zone (2 successive CP
number positions are used)
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
5. SEL Commands
[Function] Set the data of two successive positions starting from the position number
specified in operand 2, for the simple contact check zone definition coordinate data
in operand 1.
The position data specified in operand 2 is set for simple contact check zone
definition coordinate 1, while the data of the next position is set for definition
coordinate 2. If the axis pattern does not match between the data of the two
successive positions, “Error No. C30: Axis pattern error” occurs.
In MSEL-PCX/PGX, position data for four axes is set in the simple contact check
zone coordinate data no mater of the number of axes on SCARA Robot.
It is recommended that the position that the simple contact check zone coordinate
data is set from is used as the dedicated data for the simple contact check zone
coordinate set, not to be shared with the movement target position.
In case there is an additional linear axis is connected on Axis 4 on 3-axis type
SCARA Robot, Axis 4 in the position data set to the simple contact check zone
coordinate in DFIF is not a target position for the additional linear axis.
(Note 1) Simple contact check zone definition coordinates are always recognized as data
on the base coordinate system (work coordinate system selection No. 0). If you
are setting aside position data for use as effective definition coordinates for the
DFIF command, you must set the data on the base coordinate system.
(Note 2) When the simple contact check zone definition coordinates are changed, it takes
5msec for the check result based on the new settings to be reflected.
(Note 3) The GRP command is invalid with respect to this command.
(Note 4) Indicate the position data effective either on SCARA axes (1st to 4th axes) or
SCARA axes (5th to 8th axes) for the valid axes of the position data. “Error No.
C30: Axis Pattern Error” will be issued when both of SCARA axes (1st to 4th
axes) and SCARA axes (5th to 8th axes) are set effective for the valid axes of the
position data.
378
[Example] DFIF 1 170
5. SEL Commands
379
SOIF (Dedicated SCARA command/Specify output for simple contact
check zone)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Contact Output/
Optional Optional SOIF check zone global flag CP
number number
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
5. SEL Commands
[Function] Set the output number/global flag number in operand 2 as the output specification
to be applied upon entry into the simple contact check zone specified in operand
1.
(Note 1) The simple contact check zone is a function available for SCARA.
(Note 2) If duplicate physical output port numbers/global flag numbers are specified,
chattering occurs and operation results become indeterminable.
380
SEIF (Dedicated SCARA command/Specify type of simple contact check
zone)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Contact
0 or 1 or 2
Optional Optional SEIF check zone CP
(error type)
number
Applicable models
XSEL
XSEL XSEL
5. SEL Commands
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
SAXD
(PCX/PG
X only)
[Function] Specify the error type in operand 2 (see below) as the error type to be applied
upon entry into the simple contact check zone specified in operand 1.
Error types applicable upon entry into simple contact check zone
0: No error
1: Message level error
2: Operation-cancellation level error
(Note 1) The simple contact check zone is a function available for SCARA.
[Example] SEIF 1 2
381
GTIF (Dedicated SCARA command/Get simple contact check zone
definition coordinate)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Contact Position number
Optional Optional GTIF check zone (2 successive CP
number positions are used)
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
5. SEL Commands
[Function] Set the simple contact check zone definition coordinate data in operand 1 for the
data of two successive positions starting from the position number specified in
operand 2.
Simple contact check zone definition coordinate 1 is set for the position data
specified in operand 2, while definition coordinate 2 is set for the data of the next
position. At this time, coordinate data in the position data becomes invalid for all
axes, and then the simple contact check zone definition coordinate data is set.
In MSEL-PCX/PGX, simple contact check zone coordinate data for four axes is
set in the position data no mater of the number of axes on SCARA Robot.
It is recommended that the position that the simple contact check zone coordinate
is acquired from is used as the dedicated data for the simple contact check zone
coordinate acquirement, not to be shared with the movement target position.
In case there is an additional linear axis is connected on Axis 4 on 3-axis type
SCARA Robot, the simple contact check zone coordinate R-axis offset in the
position data is written by execution of GTIF Command.
(Note 1) The position data of the invalid SCARA axes in the liner axes or the simple
interference check zone definition coordinate data is cleared when the command
is executed.
(Note 2) Simple contact check zone definition coordinate is always recognized as data on
the base coordinate system (work coordinate system selection No. 0).
Accordingly, the position data set by a GTIF command must be handled on the
base coordinate system.
382
WGHT (Dedicated SCARA command/Set tip load mass, inertial moment)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
(Inertial
Optional Optional WGHT Mass CP
moment)
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
5. SEL Commands
QCT SXD
SAXD
(PCX/PG
X only)
[Function] Set the mass and inertial moment of the tip load (tool + work).
Set the mass in operand 1, and inertial moment in operand 2. The unit of operand
2
1 is [g], while the unit of operand 2 is [kg•mm ].
The tip load mass/inertial moment set by a WGHT command will be retained until
a new WGHT command is set again (= the set values will be retained even after
the program ends). However, they are cleared when the power is turned OFF or a
software reset is performed, after which you must set the applicable values again
expressly in the program.
(Note 1) For the inertial moment in operand 2, set a composite inertial moment covering
the tool and work relating to the center of rotation of the R-axis.
(Note 2) Although entry of inertial moment in operand 2 is optional, if no inertial moment is
set the maximum allowable inertial moment of the robot is set automatically.
(Note 3) If the tip load mass exceeds the maximum loading capacity of the robot, a “B44:
Load mass setting error” occurs.
(Note 4) Executing a WGHT command updates the information of both the tip load mass
and inertial moment. You cannot change only the mass or only the inertial
moment.
(Note 5) Although both the tip load mass and inertial moment can be approximate values,
set values slightly larger than necessary. Before setting the values, round them
up to the nearest multiple of 1g or 1kg•mm2, respectively.
(Note 6) If a WGHT command has not yet been executed, the load mass and inertial
moment have been initialized to the maximum loading capacity and maximum
allowable inertial moment of the robot. Set an appropriate load mass and inertial
moment according to the use conditions.
(Note 7) The load mass and inertial moment set by a WGHT command are used in the
SCARA PTP acceleration/deceleration optimization function, SCARA horizontal
movement Z-position optimization function, etc.
383
(Note 8) In XSEL-RX/SX/RXD/SXD, XSEL-RAX/SAX/RAXD/SAXD Command are
available also in the actuator control declaration commands SLTL, SLWK, WGHT,
PTPR, PTPL PTPE, PTPD, RIGH, LEFT and the system information acquirement
command GARM. Establish the setting to have all the SCARA axes valid. Error
No. C30 “Axis Pattern Error” will occur if even one axis is set invalid by GRP and
BASE Commands.
When GRP and BASE Commands are undeclared, all the axes are effective
(equivalent to GRP 11111111).
384
WGT2 (Dedicated SCARA command/Tip load condition setting)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Optional Optional WGT2 Mass (Variable No.) CP
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
SAXD
5. SEL Commands
[Function] Set the weight [gr] of the load on the tip (tool + work piece) in Operation 1, and
the center of gravity in the load, inertia around the center of gravity and other
related parameters to the six variables in a row from the indicated variable in
Operation 2.
The tip load mass/inertial moment set by a WGT2 command will be retained until
a new WGT2 command is set again. However, they are cleared when the power
is turned OFF or a software reset is performed, after which you must set the
applicable values again expressly in the program.
•Load Weight
Yb •Inertia Around Center of Gravity in Load
Y t0
Center of Gravity
Y in Load
X t0
Center of Gravity
X in Load
Xb
385
(Note 1) Inputting in Operation 2 is optional. When the setting in Operation 2 is not
established, the parameters are the center of gravity in tip load X-Y = 0 and the
maximum allowable moment of inertia.
(Note 2) An error will be issued when the tip load weight exceeds the maximum
transportable weight of the robot.
(Note 3) When WGT2 Command is executed, the information for both the tip load weight
and the moment of inertia is updated.
A change to individuals such as the weight only or center of gravity in tip load and
inertia around the center of gravity only is not available.
(Note 4) Inappropriate setting of the robot tip load condition may cause vibration
(abnormal noise) or error, and also may give an impact that shortens the
mechanical life.
Establish the setting that reflects the actual mounted load.
5. SEL Commands
386
NBND (Dedicated linear axis command/Set close distance)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Close
Optional Optional NBND Axis pattern CP
distance
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
5. SEL Commands
QCT SXD
SAXD
[Function] Set in operand 2 the close distance (mm) from the target position based on the
axis pattern specified in operand 1.
This command is valid only with respect to MOVP, MOVL and PATH commands
in quick return mode 2 (closeness-detection return target position addition mode)
or quick return mode 3 (closeness-detection return target position change mode).
A different value can be set for each axis.
(Note 1) The default value of 0 is applied if the close distance is not set with a NBND
command.
(Note 2) In the case of PATH commands involving successive movements to multiple
positions, the close distance becomes effective after the movement to the last
position in the last movement is started and also after the processing of the
previous position movement is completed. Accordingly, a dead width is created
between (= at the overlap of) the movement to the last position in the PATH
commands and the movement to the position immediately before it.
(Note 3) The close distance set here will remain effective even after the program ends.
When building a system using NBND commands, therefore, specify the close
distance expressly with a NBND command in all programs before any operation
is started in each program. If you assume that the close distance will be reset
after the end of operation in other programs, an unexpected close distance may
be applied should the program abort due to an error, etc., in which case
unforeseen problems may result.
(Note 4) Be sure to also refer to the pages that explain the QRTN command and PEND
command.
(Note 5) Software versions supporting NBND
XSEL-J/K Controller main application: Ver.1.04 or later
(excluding flash ROM 8Mbit versions)
PC software: Ver.7.2.3.0 or later
Teaching pendant:
IA-T-X (D): Ver.1.44 or later
SEL-T (D): Ver.1.02 or later
TB-01 (D): First edition or later
TB-02 (D): First edition or later
387
[Example 1] NBND 11 50 Set the close distance for axes 1 and 2 to 50mm
after this command.
[Example 2] The axis pattern can be specified indirectly using a variable. [Example 1] can
be rephrased using indirect specification by variable as follows:
11 (binary) 3 (decimal)
LET 1 3 Assign 3 to variable 1.
NBND *1 50 Set the close distance for axes 1 and 2 to 50mm
after this command.
5. SEL Commands
388
[12] Actuator Control Command
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Turn ON/OFF the servos of the axes specified by the axis pattern in operand 1.
SV
ON ·························· Turn ON the servo.
OF ·························· Turn OFF the servo.
(SCARA robots)
The arm system of SCARA axes (1st to 4th axes or 1st to 3rd axes) is set to Local
Variable No. 99 when complete in normal condition.
Right arm system =1
Left arm system = -1
Indeterminable =0
The angle of arm 2 is used to make judgment.
The arm system effective immediately after the servo ON is set. The arm system
is not monitored continuously.
(Note) The arm system data set in Local Variable No. 99 is the arm system for SCARA
axes (1st to 4th axes or 1st to 3rd axes). To acquire the arm system data for
SCARA axes (5th to 8th axes), use GARM Command.
389
HOME (Dedicated linear axis command/Home return)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Optional Optional HOME Axis pattern Prohibited PE
Applicable models
XSEL-JX/KX
Other than XSEL-JX/KX
5. SEL Commands
[Function] Perform home return of the axes specified by the axis pattern in operand 1.
The servo of each home-return axis will turn ON automatically.
The output will turn OFF at the start of home return, and turn ON when the home
return is completed.
(Note 1) This is a dedicated command for linear axes. If a SCARA axis (except for IXP
Type Incremental specification) is specified, “Error No. B80:
Specification-prohibited axis error” or “Error No. 421: SCARA/linear-axis
simultaneous specification error” occurs.
(Note 2) Following a pause of home return, the operation will resume from the beginning
of the home-return sequence.
(Note 3) Home-return operation for the axis using an ABS encoder makes a movement to
the multi-rotation data reset position, thus it does not always make a movement
to the home preset coordinate (including 0).
Use a MOVP command, instead of a HOME command, if you want to turn ON
output 304 when I/O parameter No. 50, “Output function selection 304” is set to 1
(Output when all effective linear axes are home (= 0)) or 3 (Output when all
effective linear axes are at home preset coordinate).
390
MOVP (Move PTP by specifying position data)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Position
Optional Optional MOVP Prohibited PE
number
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Move the actuator to the position corresponding to the position number specified
in operand 1, without interpolation (PTP stands for “Point-to-Point”).
The output will turn OFF at the start of axis movement, and turn ON when the
movement is complete.
(Note) In XSEL-PX/QX, a movement to a position that indicates the target for SCARA
axis and linear drive axis at the same time cannot be made. (421 “SCARA/Linear
Drive Axes Double Indication Error”)
Use GRP Command, or operate the position data of SCARA axis and linear drive
axis separately.
Travel path from the home to the position corresponding to position No. 1 (200, 100)
Y-axis
X-axis
Home 0 100mm 200mm
391
(SCARA robots)
[Example 1] MOVP 2 Move the axes to the positions set under position
No. 2 (200, 225, 150, 30).
(Note) In the case of a SCARA axis, the axis operates according to all-axis parameter
No. 47, “Default PTP acceleration for SCARA axis” or all-axis parameter No. 48,
5. SEL Commands
392
MOVL (Move by specifying position data)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Position
Optional Optional MOVL Prohibited PE
number
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Move the actuator to the position corresponding to the position number specified in
operand 1, with interpolation.
The output will turn OFF at the start of axis movement, and turn ON when the
movement is complete.
(Note) In XSEL-PX/QX, a movement to a position that indicates the target for SCARA
axis and linear drive axis at the same time cannot be made. (421 “SCARA/Linear
Drive Axes Double Indication Error”)
Use GRP Command, or operate the position data of SCARA axis and linear drive
axis separately.
Travel path from the home to the position corresponding to position No. 1 (200, 100)
Y-axis
X-axis
Home 0
393
(SCARA robots)
[Example 1] MOVL 2 Move the axes to the positions set under position
No. 2 (200, 225, 150, 30) via interpolation.
(Note) In the case of a SCARA axis, the axis operates according to all-axis parameter
5. SEL Commands
No. 11, “Default CP acceleration for SCARA axis” or all-axis parameter No. 12,
“Default CP deceleration for SCARA axis” if the acceleration/deceleration is not
specified in the position data table or using an ACC (DCL) command.
In the case of a linear axis, the axis operates according to all-axis parameter
No. 200, “Default acceleration for linear axis” or all-axis parameter No. 201,
“Default deceleration for linear axis” if the acceleration/deceleration is not
specified in the position data table or using an ACC (DCL) command.
394
MVPI (Move via incremental PTP)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Position
Optional Optional MVPI Prohibited PE
number
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Move the actuator, without interpolation, from the current position by the travel
distance corresponding to the position number specified in operand 1.
The output will turn OFF at the start of axis movement, and turn ON when the
movement is complete.
(Note) In XSEL-PX/QX, a movement to a position that indicates the target for SCARA
axis and linear drive axis at the same time cannot be made. (421 “SCARA/Linear
Drive Axes Double Indication Error”)
Use GRP Command, or operate the position data of SCARA axis and linear drive
axis separately.
Travel path from (50, 50) by the travel distance corresponding to position No. 1 (150, 100)
Y-axis Only the Y-axis
completes movement.
X-axis
Home 0
395
(Note) If the specified travel distance is equal to or less than the travel distance per
encoder pulse [mm/pulse], the axis may not move.
[Calculation formula of travel distance per encoder pulse]
Rotary encoder
Travel distance per encoder pulse [mm/pulse]
= (Screw lead [0.001mm] × Gear ratio numerator)
/ (Encoder resolution [pulses/rev] × Gear ratio denominator
/ (2 ^ Encoder division ratio)
Linear encoder
Travel distance per encoder pulse [mm/pulse]
= Encoder resolution (0.001m/pulse) × 1000
/ (2 ^ Encoder division ratio)
(Reference) Use the values of the following parameters for the above
calculation formulas:
5. SEL Commands
(SCARA robots)
(Note 1) If an incremental movement command (MVPI, MVLI, TMPI or TMLI) is used
repeatedly, coordinate conversion rounding errors, etc., will accumulate. To
eliminate these errors, etc., execute an absolute movement command (MOVP,
MOVL, etc.) once.
(Note) In the case of a SCARA axis, the axis operates according to all-axis
parameter No. 47, “Default PTP acceleration for SCARA axis” or all-axis
parameter No. 48, “Default PTP deceleration for SCARA axis” if the
acceleration/deceleration is not specified using an ACCS (DCLS) command.
In the case of a linear axis, the axis operates according to all-axis parameter
No. 200, “Default acceleration for linear axis” or all-axis parameter No. 201,
“Default deceleration for linear axis” if the acceleration/deceleration is not
specified in the position data table or using an ACC (DCL) command.
Caution
A margin of error could accumulate between each pitch if the incremental (relative position
indication) movement commands are repeated continuously.
To avoid accumulation of errors, utilize the movement command to indicate the absolute
position (MOVP Command).
396
MVLI (Move via incremental interpolation)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Position
Optional Optional MVLI Prohibited PE
number
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Move the actuator, with interpolation, from the current position by the travel
distance corresponding to the position number specified in operand 1.
The output will turn OFF at the start of axis movement, and turn ON when the
movement is complete.
(Note) In XSEL-PX/QX, a movement to a position that indicates the target for SCARA
axis and linear drive axis at the same time cannot be made. (421 “SCARA/Linear
Drive Axes Double Indication Error”)
Use GRP Command, or operate the position data of SCARA axis and linear drive
axis separately.
Travel path from (50, 50) by the travel distance corresponding to position No. 1 (150, 100)
Y-axis The X and Y-axes complete
movement simultaneously.
X-axis
Home 0
397
(Note) If the specified travel distance is equal to or less than the travel distance per
encoder pulse [mm/pulse], the axis may not move.
[Calculation formula of travel distance per encoder pulse]
Rotary encoder
Travel distance per encoder pulse [mm/pulse]
= (Screw lead [0.001mm] × Gear ratio numerator)
/ (Encoder resolution [pulses/rev] × Gear ratio denominator
/ (2 ^ Encoder division ratio)
Linear encoder
Travel distance per encoder pulse [mm/pulse]
= Encoder resolution [0.001m/pulse] × 1000
/ (2 ^ Encoder division ratio)
(Reference) Use the values of the following parameters for the above calculation
formulas:
5. SEL Commands
(SCARA robots)
(Note 1) If an incremental movement command (MVPI, MVLI, TMPI or TMLI) is used
repeatedly, coordinate conversion rounding errors, etc., will accumulate. To
eliminate these errors, etc., execute an absolute movement command (MOVP,
MOVL, etc.) once.
(Note) In the case of a SCARA axis, the axis operates according to all-axis parameter
No. 11, “Default CP acceleration for SCARA axis” or all-axis parameter No. 12,
“Default CP deceleration for SCARA axis” if the acceleration/deceleration is not
specified in the position data or using an ACC (DCL) command.
In the case of a linear axis, the axis operates according to all-axis parameter No.
200, “Default acceleration for linear axis” or all-axis parameter No. 201, “Default
deceleration for linear axis” if the acceleration/deceleration is not specified in the
position data or using an ACC (DCL) command.
Caution
A margin of error could accumulate between each pitch if the incremental (relative position
indication) movement commands are repeated continuously.
To avoid accumulation of errors, utilize the movement command to indicate the absolute
position (MOVL Command).
398
MOVD (Move via direct value specification)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Target
Optional Optional MOVD (Axis pattern) PE
position
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
5. SEL Commands
RAXD/ SSEL
QCT SXD
SAXD
(PC/PG
only)
[Function] Move the axis specified by the axis pattern in operand 2, to the target position
corresponding to the value specified in operand 1. If operand 2 is not specified, all
axes will be moved.
The output will turn OFF at the start of axis movement, and turn ON when the
movement is complete.
The target position is set in mm, and the set value is valid to the third decimal
place.
399
MVDI (Move relatively via direct value specification)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Travel
Optional Optional MVDI (Axis pattern) PE
distance
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
5. SEL Commands
QCT SXD
SAXD
(PC/PG
only)
[Function] Move the axis specified by the axis pattern in operand 2 from its current position
by the travel distance corresponding to the value specified in operand 1. If
operand 2 is not specified, all axes will be moved.
The output will turn OFF at the start of axis movement, and turn ON when the
movement is complete.
The travel distance is set in mm, and the set value is valid to the third decimal
place.
(Note) If the specified travel distance is equal to or less than the travel distance per
encoder pulse [mm/pulse], the axis may not move.
[Calculation formula of travel distance per encoder pulse]
Rotary encoder
Travel distance per encoder pulse [mm/pulse]
= (Screw lead [0.001mm] × Gear ratio numerator)
/ (Encoder resolution [pulses/rev] × Gear ratio denominator
/ (2 ^ Encoder division ratio)
Linear encoder
Travel distance per encoder pulse [mm/pulse]
= Encoder resolution [0.001m/pulse] × 1000
/ (2 ^ Encoder division ratio)
(Reference) Use the values of the following parameters for the above calculation
formulas:
Encoder resolution : Axis-specific parameter No. 42
Encoder division ratio : Axis-specific parameter No. 43
Screw lead : Axis-specific parameter No. 47
Gear ratio numerator : Axis-specific parameter No. 50
Gear ratio denominator : Axis-specific parameter No. 51
[Example 1] MVDI 30 11 Move all axes from the current position by 30mm in
the positive direction.
400
PATH (Move along path via CP operation)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Start position End position
Optional Optional PATH number number PE
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Move continuously from the position specified in operand 1 to the position specified in
operand 2.
The output type in the output field can be set using an actuator-declaration command POTP.
Increasing the acceleration will make the passing points closer to the specified positions.
If invalid data is set for any position number between the start and end position numbers,
that position number will be skipped during continuous movement.
Start position
Position origin
End position
(Note 1) Multi-dimensional movement can be performed using a PATH command.
In this case, input in operand 1 the point number of the next target, instead of the predicted
current position upon execution of the applicable command.
(Inputting a point number corresponding to the predicted current position will trigger
movement to the same point during continuous movement, thereby causing the speed to
drop.)
(Note 2) It is possible to move through discontinuous positions or move continuously by passing the
same position.
As shown in the example, specify the number corresponding to the discontinuous position
for both the start position number and end position number in the PATH command. In the
example, this position is No. 6.
[Example] The actuator moves continuously in the sequence of position No. 1 2
3 4 6 9 10.
PATH 1 4
PATH 6 6 (discontinuous position)
PATH 9 10
(Note 3) In XSEL-PX/QX, a movement to a position that indicates the target for SCARA
axis and linear drive axis at the same time cannot be made. (421 “SCARA/Linear
Drive Axes Double Indication Error”)
Use GRP Command, or operate the position data of SCARA axis and linear drive
axis separately.
[Example 1] PATH 100 120 Move continuously from position No. 100 to 120.
401
z CNTP (PTP Continuous Operation Mode Setting)
Extension Command, declaration Output
Input condition
condition Command, operation type
(I/O, flag) Operand 1 Operand 2
(LD, A, O, AB, OB) declaration (Output, flag)
Other
Optional Optional CNTP numbers
Prohibited CP
Applicable models
XSEL-RA/SA/RAX/SAX/RAXD/SAXD (Main application V1.10 or later.)
[Function] It is the command to set PTP Continuous Operation Mode. By having PTP
Continuous Operation Mode activated, the next PTP operation command can be
5. SEL Commands
402
[0] Nomal mode (PTP Continuous Operation Inactivated) (Operation 1 = “0”)
PTP movement command would not perform continuous movement in a normal mode. The
next PTP operation command should be output only after Condition (1) and (2) below are
satisfied.
1) Command outputs to all the operation axes are complete
2) All the operation axes have got into the position band
Also, when this command is not executed in a program, the mode will be set to this mode
automatically.
5. SEL Commands
Next movement command
starts after (1) and (2) satisfied
V
When Positioning Band Expanded by PBND Command
In Mode 1, the next movement command starts after all the axes are confirmed in the
positioning band.
By changing the positioning band width by using PBND Command together, it is available to
check if reached near the target position at the same time as attempting to save time. Also,
even if having the positioning band width wide, the expectation of time shortening efficiency
should not be as high as Mode 2. It is a mode suitable for time saving of such operations as a
rough positioning operation, which requires a certain level of accuracy for positioning.
In Mode 2, the movement command in action and the next movement command get compared,
and the next operation command should be started once it gets ready to start. Commands are
added on top based on the information of movement commands, thus higher efficiency in time
saving can be expected than Mode 1. However, there is a concern that the actuator may not
reach the vicinity of the target point for each operation in some cases. It is a mode suitable for
time saving in such operations as interference prevention that does not require accurate
positioning.
403
Example of When MOVP Command Continues in PTP Continuous Operation Mode 1
V
: Command pulse
: Feedback pulse
: Next Command Start Timing
T
5. SEL Commands
V
When Positioning Band Expanded by PBND Command
(Note 1) PTP continuous operation mode indicated in this command is valid only in the
program that the command was executed.
Also, the setting of the PTP continuous operation mode will be cancelled when the
program ends.
(Note 2) When PTP continuous operation mode gets activated, the motion path should get
different from that in a normal mode.
(Note 3) In case a command which is not subject to PTP continuous operation such as CP
operation command (eg. PATH Command), output operation command (eg. BTON
Command) and palletizing position number calculation command (eg. PINC
Command) during a command subject to PTP continuous operation, PTP
continuous operation will not be performed while this command is executed.
404
(Note 4) If PBND Command is to be used together, be aware that PBND Command setting
will still be valid after the program finishes.
It is recommended basically that the value of the positioning band that has been
changed is set back after the PTP continuous operation mode is finished when
building a program. Also, for the positioning band of SCARA Robot J1/J2/R axes,
the setting should be established in joint angles ([deg]). (For details, refer to the
explanation for PBND Command.)
(Note 5) There is a tendency that high efficiency in time saving by continuous operation
cannot be expected in such motions as stated below.
Duration of acceleration and deceleration is short
- Acceleration and deceleration are high considering velocity
- An axis that operates only for a short distance is included in the operation axes
An axis with a large deviation in operation is included in the operation axes
5. SEL Commands
(Note 6) For a controller for SCARA Robot, it is not available to execute an arch motion
command (ARCH/PACH) to a linear axis while PTP continuous operation mode
activated. Error No. B80 “Indication Prohibited Axis Error” will be issued if
attempted to execute. In the case above, it is necessary to get the setting back to
the normal mode in order to execute an arch motion command.
(Note 7) Check also in the sections in “5.4.1 Continuous Movement Commands” for the
details of the specifications related to the continuous operation.
[Example 3] PBND 11 5 Set the width of the positioning band for 1st and 2nd
axes to 5 [mm].
CNTP 1 Indicate PTP Continuous Operation Mode 1.
MOVP 1 Perform PTP operation to position of Position No. 1.
MOVP 2 Perform PTP operation to position of Position No. 2. PTP Continuous
Operation
MOVP 3 Perform PTP operation to position of Position No. 3.
* The next command will start after it is confirmed
that the axis gets into the range within 5 [mm]
from the target position.
CNTP 0 Put the setting back to normal mode.
PBND 11 0.1 Set the width of the positioning band for 1st and 2nd
axes to 0.1 [mm].
405
JW (Jog)
(Note) When this command is to be used in MSEL-PC/PG or TTA, whether All Axes Parameter No.
55 (Coordinate System Definition 1 Control) and No. 56 (Coordinate System Definition 1
Construction Axis Setting) are set or not makes the operation different.
◎With No Setting
The operation will be the same as the existing linear axis specifications.
• There is no restriction to the number of indicated axes
• JOG operation is made on each axis system
• Execution is available with the home-return operation incomplete
◎With Setting Done
• Only one axis is available to be indicated.
• JOG operation is made on the work coordinate system.
• Execution is not available unless the home-return operation is completed.
5. SEL Commands
Applicable models
XSEL-JX/KX
Other than XSEL-JX/KX
[Function] The axes in the axis pattern specified in operand 1 will move forward or backward
while the input or output port or flag specified in operand 2 is ON or OFF.
JBWF .......... Move backward while the specified port is OFF.
JBWN.......... Move backward while the specified port is ON.
JFWF .......... Move forward while the specified port is OFF.
JFWN .......... Move forward while the specified port is ON.
With SCARA axes, coordinate system definition unit axis (refer to 1.4.6) only one axis (X, Y, Z
or R-axis) can be specified.
If a SCARA axes, coordinate system definition unit axis is specified, operation (CP operation)
based on the currently selected work coordinate system is applied. With linear axis, multiple
axes can be specified.
(Note 2) With linear axes, this command is also effective on axes that have not yet
performed home return. In this case, however, the maximum speed is limited to
all-axis parameter No. 15, “Maximum jog speed before coordinate
confirmation/home return”. Since the coordinate values have no meaning in this
condition, pay due attention to prevent contact with the stroke end. With SCARA
axes, operation by this command is disabled only before the confirmation of ABS
coordinates.
(Note 3) The jog speed of a SCARA axis is limited by all-axis parameter No. 37, “Maximum
SCARA-axis speed under JW command” (default: 250mm/sec). This
parameter can be edited using PC software Ver.7.0.11.0 or later, teaching pendant
TB-02 (D): first edition or later, TB-01 (D): first edition or later, SEL-T (D): Ver.1.01,
IA-T-X (D): Ver.1.44 or later. (Although the value set in the above parameter can
also be changed using an older PC software or teaching pendant version, the
parameter name is not displayed and the set value is indicated in hexadecimal
notation.)
406
(Note 4) Axes other than the SCARA axes, coordinate system definition unit axis (refer to
1.4.6) Z-axis cannot be operated from other tasks while the X, Y or R-axis is jogging.
(Note 5) If the start position of operation of a SCARA axis is near the point at which arms 1
and 2 form a straight line (singular point), operation is performed at low
acceleration to prevent sudden movement.
(Note 6) If the start position of operation of a SCARA axis is outside the work envelope
(within the soft limit overt points of each axis, CP operation limit band,
tool-reference-point entry prohibition circle (if tool offset is enabled) or back entry
prohibition area), select an appropriate axis and direction and move the axis to
inside the work envelope. Jogging out of the work envelope is not permitted.
(Note 7) If the R-axis generates “Error No. C74: Actual-position soft limit over error” due to a
5. SEL Commands
posture control component, etc., during SCARA-axis jog operation, take an
appropriate action, such as bringing the R-axis position closer to the center of the
R-axis stroke, using the jog function for each axis in the PC software or on the
teaching pendant.
(Note 8) The R-axis JOG operation will be the rotational operation of the tool tip when it is
set to tool offset valid (tool coordinate system select number ≠ 0) for SCARA axes,
coordinate system definition unit axis (refer to 1.4.6).
Therefore, Arm 1 and 2 for SCARA axes and X and Y-axes for coordinate system
definition unit axis will operate. Pay attention to this difference.
(Note 9) If the axis that moves according to JW is a linear axis, and also if axis-specific
parameter No. 1, “Axis operation type” is set to 0 (Linear movement axis) while
axis-specific parameter No. 68, “Linear-axis linear movement mode selection” is
set to 1 (Infinite stroke mode*), infinite stroke operation is performed.
During infinite stroke operation, the current position circulates within a range of
approx. -10m to 10m.
Any positioning command to a position outside a coordinate range of approx.
-9999 to +9990 generates “Error No. CBE: Target-value data boundary over error”.
If a positioning command not meeting the above condition is executed outside a
coordinate range of approx. -9990 to +9990, “Error No. CC5: Positioning boundary
breakout error” occurs.
(These errors are generated intentionally because the user cannot recognize the
operating direction precisely around the boundary. If any of these errors occurs,
axis-specific parameter No. 10, “ABS reset position movement/home return method”
must be set to 1 (Current position 0 home) and, if necessary, the current value may
also have to be reset with a HOME command.)
During infinite stroke operation, be sure to implement a timeout check using other
task or external system.
The infinite-stroke mode can be specified only when an incremental encoder is used.
If you wish to use the infinite-stroke mode, contact IAI’s Sales Engineering.
(Note 10) JOG operation in positive direction when the current position is approximately in
the range from 9990 to 9999 and JOG operation in negative direction when the
current position is approximately in the range from -9999 to -9990.
Move the actuator once to the opposite direction with JOG operation and get it out
of the ranges described above, and then perform the JOG operation again.
(Note 11) JOG operation by this command cannot be performed for coordinate system
definition unit axis (refer to 1.4.6) while in home-return incomplete condition. Also,
number of axes available for operation indication is only one.
407
[Example 1] VEL 100 Set the speed to 100mm/s.
JBWF 10000 10 Move axis 5 backward while input 10 is OFF.
408
STOP (Stop movement)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Optional Optional STOP Axis pattern Prohibited CP
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Decelerate and stop the axes specified by the axis pattern in operand 1.
(Note 1) A STOP command can be used with all active servo commands other than a
SVOF command.
(Note 2) With a SCARA robots, all axes are decelerated to a stop regardless of the axis
pattern.
(Note 3) The STOP command only issues a deceleration stop (operation cancellation)
command and the program does not wait for completion of stopping. If other
servo command is issued while the axes are stopping, the command becomes
invalid or an “axis multiple-use” or other error occurs.
Set a timer, etc., in the program so that the next servo command will be issued
after a sufficient deceleration-stop processing time elapses.
Even when a STOP command is to be issued to an axis currently stopped,
provide a minimum interval of 0.1sec before the next servo command is issued.
(SCARA robot)
[Example 1] STOP 1 Decelerate the SCARA axes to a stop.
409
PSPL (Move along spline via CP operation)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Start position End position
Optional Optional PSPL PE
number number
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Continuously move from the specified start position to end position via
interpolation along a spline-interpolation curve.
The output type in the output field can be set using an actuator-declaration
command POTP.
If invalid data is set for any position number between the start and end position
numbers, that position number will be skipped during continuous movement.
Start position
Position origin
End position
(The diagram above is an image.)
(Note 1) If the acceleration and deceleration are different between points, the speeds will
not be connected smoothly.
In this case, input in operand 1 the point number of the next target, instead of the
predicted current position upon execution of the applicable command.
(Inputting a point number corresponding to the predicted current position will
trigger movement to the same point during continuous movement, thereby
causing the speed to drop.)
(Note 2) In XSEL-PX/QX, a movement to a position that indicates the target for SCARA
axis and linear drive axis at the same time cannot be made. (421 “SCARA/Linear
Drive Axes Double Indication Error”)
Use GRP Command, or operate the position data of SCARA axis and linear drive
axis separately.
[Example] PSPL 100 120 Continuously move from position Nos. 100 to 120
along a spline-interpolation curve.
410
PUSH (Move by push motion)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Target position
Optional Optional PUSH Prohibited PE
number
Applicable models
MSEL-PCX/PGX (Axes other than the power Con SCARA, such as the gripper is excluded.)
Other than above
5. SEL Commands
[Function] Perform push-motion operation until the target position specified in operand 1 is
reached.
The axes move in a normal mode from the position origin to the push-motion
approach start position as determined by a PAPR command, after which
push-motion approach operation (toque-limiting operation) will be performed. The
speed of push-motion approach operation (toque-limiting operation) is determined
by the push-motion approach speed specified by a PAPR command. If the output
field is specified, the output will turn ON when a contact is confirmed, and turn
OFF when a missed contact is detected.
Movement from the position origin to start position of push-motion approach
conforms to the speed and acceleration/deceleration specified by VEL/ACC/DCL
commands or in the position data table.
Position origin
Start position of push-motion approach operation (torque-limited operation)
Target position
The pressing force can be adjusted in Driver Card Parameter No. 38 Limitation
for pressing torque in positioning process (default value = 70%) or PTRQ
Command for models other than XSEL-J/K, MSEL and TTA.
For XSEL-J/K, MSEL and TTA, the pressing force can be adjusted in Driver Card
Parameter No. 33 Limitation for Pressing Torque in Positioning Process (default
value = 70%).
For MSEL and TTA, it can also be adjusted with PTRQ Command.
(Note 1) A PUSH command only moves a single axis. PUSH Command moves only the
Z-axis for SCARA Coordinates. PUSH Command is not available for IXP
PowerCON SCARA. If multiple axes are specified, an “Error No. C91, Multiple
push-axes specification error” will generate.
Even though indication of Z-axis is available for coordinate system definition unit
axis (refer to 1.4.6), “Error No. C91 Indication of 2 or More Pressing Axes Error”
could occur and operation could not be made depending on the offset of the
selected coordinate system in X, Y and R-axes.
Indication is available only when R-axis offset of the selected work coordinate
system for X and Y-axes is 0 for coordinate system definition unit axis (refer to
1.4.5). Also, indication is available only when both of X-axis offset and Y-axis
offset in the selected tool coordinate system for R-axis is 0 for coordinate system
definition unit axis.
411
(Note 2) A push-motion approach speed exceeding the maximum speed permitted by the
system will be clamped at the maximum speed.
(The maximum system speed is not the maximum practical speed. Determine a
practical speed by considering the impact upon contact, etc.)
(Note 3) When the pressing approaching distance is longer than the distance from the
position start point to the target position, the pressing operation starts from the
start at the position start point.
[Example] PAPR 100 20
MOVP 2
PUSH 10
The diagram below describes a push-motion movement based on the position data
shown in the table below:
Position No. 10
Position No. 2
Axis 1
412
PTRQ (Change push torque limit parameter)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Optional Optional PTRQ Axis pattern Ratio CC
Applicable models
XSEL-J/K
Other than XSEL-J/K
5. SEL Commands
[Function] Change the push torque limit parameter of the axis pattern specified in operand 1
to the value in operand 2. Operand 2 is set as an integer (unit: %).
A PTRQ command temporarily rewrites “Driver parameter No. 38: Push torque
limit at positioning”.
(Note 1) If the pressing torque limit is not set by PTRQ Command, the value set in “Driver
Card “Parameter No. 38 Limitation for Pressing Torque in Positioning Process” will
be used for models other than XSEL-PC/PG ad TTA.
For XSEL-PC/PG and TTA, the value should be that in “Driver Card Parameter No.
33 Limitation for Pressing Torque in Positioning Process”.
(Note 2) The new push torque limit will remain effective even after the program ends.
Therefore, when building a system using the PTRQ command, in every program
explicitly specify a push torque limit using a PTRQ command before each
push-motion operation. Assuming that the push torque limit will be reset to the
original value when push-motion operation ends in one program can cause an
unexpected problem in another program, because a different push torque limit will
be used if the program is aborted due to an error, etc.
(Note 3) The new value set by a PTRQ command will become ineffective after a power ON
reset or software reset.
(Note 4) A PTRQ command does not rewrite “Driver parameter No. 38: Push torque limit at
positioning” (main CPU flash memory (non-volatile memory)).
[Example] PTRQ 1 50 Change the push torque limit parameter for axis 1 to
50%.
PAPR 100 20 Set the push-motion approach distance to 100mm
and the push-motion approach speed to 20mm/sec.
MOVP 2 Move to position No. 2.
PUSH 10 Move by push motion from position No. 2 to position
No. 10.
413
CIR2 (Move along circle via CP operation 2 (Arc interpolation))
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Passing position Passing position
Optional Optional CIR2 PE
1 number 2 number
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Move along a circle originating from the current position and passing positions 1
and 2, via arc interpolation.
The rotating direction of the circle is determined by the given position data.
The diagram below describes a CW (clockwise) movement. Reversing passing
positions 1 and 2 will change the direction of movement to CCW (counterclockwise).
Axis 1
414
(Note 1) With rectangular actuators, this command is valid on any rectangular planes. If
three or more axes are set in the position data, two axes are selected
automatically from the axes that have been set, starting from the axis of the
youngest number.
If position data is set for axes 2 to 4, for example, a CIR2 command is executed
based on the position data of axes 2 and 3.
(Note 3) If the distance between the position origin and passing position 1 or between
passing position 1 and passing position 2 is small and the path is near a soft limit,
“Error No. C73: Target-path soft limit over error” may occur.
In this case, increase the distance between the adjacent positions as much as
possible, move the path slightly inward from the soft limit boundary, or make other
5. SEL Commands
appropriate correction.
(Note 5) The coordinate system definition unit axes set in ALL Individual Parameter No. 56
(Coordinate System Definition 1 Constructing Axes Setting) in TTA are valid on
XY plane.
When Z-axis is indicated (XZ plane and YZ plane), “Error No. B80 Indication of
Forbidden Axis Error” will occur unless the R-axis offset in the selected work
coordinate system is 0.
(Note 6) When Coordinate System Definition 1 Control (All Axes Parameter No. 55) is set
to 1 valid, and constructing axes (coordinate system definition unit axes) is
selected in All Individual Parameter No. 56 (Coordinate System Definition 1
Constructed Axes Setting) in MSEL-PC/PG and TTA, such an operation is not
available as to draw an arc by indicating axes other than the coordinate system
definition unit axes at the same time. (B80 “Indication of Forbidden Axis Error” will
occur.)
Either get rid of the axes other than the coordinate system definition unit axes by
using GRP Command, or separate the position data for the coordinate system
definition unit axes and other axes in order to make operation.
Axis 1
415
ARC2 (Move along circle via CP operation 2 (Arc interpolation))
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Passing position End position
Optional Optional ARC2 PE
number number
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Move along an arc originating from the current position, passing the specified
position and terminating at the end position, via arc interpolation.
Axis 1
416
(Note 1) With rectangular actuators, this command is valid on any rectangular planes. If
three or more axes are set in the position data, two axes are selected
automatically from the axes that have been set, starting from the axis of the
youngest number.
If position data is set for axes 2 to 4, for example, a ARC2 command is executed
based on the position data of axes 2 and 3.
(Note 3) If the distance between the position origin and passing position 1 or between
passing position 1 and passing position 2 is small and the path is near a soft limit,
“Error No. C73: Target-path soft limit over error” may occur.
In this case, increase the distance between the adjacent positions as much as
possible, move the path slightly inward from the soft limit boundary, or make other
5. SEL Commands
appropriate correction.
(Note 5) The coordinate system definition unit axes set in ALL Individual Parameter No. 56
(Coordinate System Definition 1 Constructing Axes Setting) in TTA are valid on
XY plane.
When Z-axis is indicated (XZ plane and YZ plane), “Error No. B80 Indication of
Forbidden Axis Error” will occur unless the R-axis offset in the selected work
coordinate system is 0.
(Note 6) When Coordinate System Definition 1 Control (All Axes Parameter No. 55) is set
to 1 valid, and constructing axes (coordinate system definition unit axes) is
selected in All Individual Parameter No. 56 (Coordinate System Definition 1
Constructed Axes Setting) in MSEL-PC/PG and TTA, such an operation is not
available as to draw an arc by indicating axes other than the coordinate system
definition unit axes at the same time. (B80 “Indication of Forbidden Axis Error” will
occur.)
Either get rid of the axes other than the coordinate system definition unit axes by
using GRP Command, or separate the position data for the coordinate system
definition unit axes and other axes in order to make operation.
Axis 1
417
CIRS (Move along circle three-dimensionally via CP operation)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Passing position Passing position
Optional Optional CIRS PE
1 number 2 number
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Move along a circle by passing the passing positions 1 and 2 in this order, starting
from the current position being the origin (three-dimensional movement). The
direction in which to go around the circle is determined by the position data given.
In the figure below, the rotating direction is reversed if passing positions 1 and 2
are swapped.
Axis 3
Passing position 2
Passing position 1
Axis 2
Position origin
Axis 1
418
(XSEL-JX/KX/PX/QX/RX/SX/RXD/SXD, XSEL-RAX/SAX/RAXD/SAXD and MSEL-PCX/PGX)
The speed and acceleration will take valid values based on the following priorities:
Priority Speed Acceleration (deceleration)
Setting value in the position
1 Setting value in the position data specified in operand 1
data specified in operand 1
2 Setting value by VEL command Setting value by ACC (DCL) command
All-axis parameter No. 11, “Default acceleration for
SCARA axis”
(All-axis parameter No. 12, “Default deceleration for
SCARA axis”)
3 All-axis parameter No. 200, “Default acceleration for
linear axis”
(All-axis parameter No. 201, “Default deceleration for
linear axis”)
5. SEL Commands
If speed is not set, a “C88 speed specification error” will generate.
If acceleration/deceleration is not valid, a “C89 acceleration/deceleration specification error”
will generate.
(Note 1) This command is valid on any planes in three-dimensional space. If four or more
axes are set in the position data, three axes are selected automatically from the
axes that have been set, starting from the axis of the youngest number.
If position data is set for axes 2 to 5, for example, a CIRS command is executed
based on the position data of axes 2 to 4.
(Note 2) The path tends to shift inward as the speed rises. Minor correction such as setting
the position data slightly outward may be required.
(Note 3) If the diameter of the circle is smaller relative to the set speed, the speed may be
limited.
(Although the extent to which the speed is limited can be reduced by raising the
acceleration/acceleration, make sure the acceleration and deceleration do not
exceed the range permitted by the actuator.)
(Note 4) If the distance between the position origin and passing position 1 or between
passing position 1 and passing position 2 is small and the path is near a soft limit,
“Error No. C73: Target-path soft limit over error” may occur.
In this case, increase the distance between the adjacent positions as much as
possible, move the path slightly inward from the soft limit boundary, or make other
appropriate correction.
(Note 6) When Coordinate System Definition 1 Control (All Axes Parameter No. 55) is set
to 1 valid, and constructing axes (coordinate system definition unit axes) is
selected in All Individual Parameter No. 56 (Coordinate System Definition 1
Constructed Axes Setting) in MSEL-PC/PG and TTA, such an operation is not
available as to draw an arc by indicating axes other than the coordinate system
definition unit axes at the same time. (B80 “Indication of Forbidden Axis Error” will
occur.)
Either get rid of the axes other than the coordinate system definition unit axes by
using GRP Command, or separate the position data for the coordinate system
definition unit axes and other axes in order to make operation.
419
ARCS (Move along arc three-dimensionally via CP operation)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Passing position End position
Optional Optional ARCS PE
number number
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Move to the end position along an arc by passing the passing position, starting
from the current position being the origin (three-dimensional movement).
Axis 3
End position
Passing position
Axis 2
Position origin
Axis 1
(Other than XSEL-JX/KX/PX/QX/RX/SX/RXD/SXD, XSEL-RAX/SAX/RAXD/SAXD and
MSEL-PCX/PGX)
The speed and acceleration will take valid values based on the following priorities:
Priority Speed Acceleration Deceleration
Setting value in the position Setting value in the position Same as the effective
1
data specified in operand 1 data specified in operand 1 value of acceleration
2 Setting value by VEL command Setting value by ACC command
Default acceleration in
3
all-axis parameter No. 11
420
(Note 1) This command is valid on any planes in three-dimensional space. If four or more
axes are set in the position data, three axes are selected automatically from the
axes that have been set, starting from the axis of the youngest number.
If position data is set for axes 2 to 5, for example, a ARCS command is executed
based on the position data of axes 2 to 4.
(Note 2) The path tends to shift inward as the speed rises. Minor correction such as setting
the position data slightly outward may be required.
(Note 3) If the diameter of the circle is smaller relative to the set speed, the speed may be
limited.
(Although the extent to which the speed is limited can be reduced by raising the
acceleration/acceleration, make sure the acceleration and deceleration do not
exceed the range permitted by the actuator.)
5. SEL Commands
(Note 4) If the distance between the position origin and passing position 1 or between
passing position 1 and passing position 2 is small and the path is near a soft limit,
“Error No. C73: Target-path soft limit over error” may occur.
In this case, increase the distance between the adjacent positions as much as
possible, move the path slightly inward from the soft limit boundary, or make other
appropriate correction.
(Note 6) When Coordinate System Definition 1 Control (All Axes Parameter No. 55) is set
to 1 valid, and constructing axes (coordinate system definition unit axes) is
selected in All Individual Parameter No. 56 (Coordinate System Definition 1
Constructed Axes Setting) in MSEL-PC/PG and TTA, such an operation is not
available as to draw an arc by indicating axes other than the coordinate system
definition unit axes at the same time. (B80 “Indication of Forbidden Axis Error”
will occur.)
Either get rid of the axes other than the coordinate system definition unit axes by
using GRP Command, or separate the position data for the coordinate system
definition unit axes and other axes in order to make operation.
421
CHVL (Dedicated command for linear axis: Change speed)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Optional Optional CHVL Axis pattern Speed CP
Applicable models
XSEL-JX/KX
Other than XSEL-JX/KX
When a CHVL command is executed, the speed of the axes specified in operand 1 will
change to the value specified in operand 2.
(Note 1) This command is not valid on an axis operated by a CIR, ARC, PSPL, PUSH, or ARCH
command.
(Note 2) Executing a CHVL command for an axis operating in sigmoid motion (SCRV command)
will generate an “Error No. CC1, Speed-change condition error”.
(Note 3) This is a temporary speed-change command issued from other task to the active
packet (point). It is not affected by the data declared by VEL.
(Note 4) Since this command is valid only for the packet that is active at the time of execution of
the command for an axis subject to continuous motion in a PATH command, etc.,
caution must be exercised against the timing shift. The packet handling will be put on
hold during speed-change processing, so caution must also be exercised against the
locus shift.
Program 1 Program 2
VEL 300
No. 1 No. 3 No. 5
CHVL 11 100 PATH 1 5
VEL 100
No. 2 No. 4
422
(Note 5) Override of the CHVL call task will be applied, so caution must be exercised.
(Note 6) The maximum speed of the specified axis completing home return will be clamped
by the minimum value set in “Axis-specific parameter No. 28, Maximum operating
speed of each axis” or “Axis-specific parameter No. 27, Maximum speed limited by
maximum motor speed” with respect to the specified axis and related interpolation
axes currently operating. To prevent the maximum speed from being limited due to
the effect of other axis whose maximum speed is lower than the speed specified in
the CHVL command, issue a CHVL command in multiple steps corresponding to
the respective axes having different maximum speeds. In particular, specification
of a CHVL command in a separate step is recommended for a rotating axis.
(Note 7) This command is dedicated for the liner axes only. “Error No. 80 Indication
Prohibited Axis Error” will be issued if the SCARA axes are indicated, or SCARA
5. SEL Commands
axes and the liner axes are indicated at the same time.
(Note 8) When Coordinate System Definition 1 Control (All Axes Parameter No. 55) is set
to 1 valid, and constructing axes (coordinate system definition unit axes) is
selected in All Individual Parameter No. 56 (Coordinate System Definition 1
Constructed Axes Setting) in MSEL-PC/PG and TTA, and satisfies the following
conditions, the upper limit of the change velocity will be clamped at the velocity at
the operation start.
The subjected axis of the coordinate system definition unit is in CP operation
together with R-axis and the tool offset of the coordinate system definition unit
is valid.
423
ARCD (Move along arc via CP operation by specifying end position and
center angle (Arc interpolation))
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
End position Center
Optional Optional ARCD PE
number angle
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Move along a circle originating from the current position and passing positions 1
and 2, via arc interpolation.
The rotating direction of the circle is determined by the given position data.
The diagram below describes a CW (clockwise) movement. Reversing passing
positions 1 and 2 will change the direction of movement to CCW (counterclockwise).
The setting unit of the center angle is degree and the set value is effective to three
decimal points.
(Note) The rotating direction of the actual operation locus may vary from the specified
direction depending on how each axis is installed, how the two axes are
combined, and so on. Perform test operation to check the rotating direction.
The setting unit of the center angle is degree and the set value is effective to three
decimal points.
Center angle
424
(Note 1) With rectangular actuators, this command is valid on any rectangular planes. If
three or more axes are set in the position data, two axes are selected
automatically from the axes that have been set, starting from the axis of the
youngest number.
If position data is set for axes 2 to 4, for example, a ARCD command is executed
based on the position data of axes 2 and 3.
(Note 3) If the center angle is small and the path is near a soft limit, “Error No. C73:
Target-path soft limit over error” may occur.
In this case, move the path slightly inward from the soft limit boundary or make
other appropriate correction. Also note that the larger the center angle, the
smaller the path error becomes.
5. SEL Commands
(Note 4) XSEL-PX/QX/RX/SX/RXD/SXD, XSEL-RAX/SAX/RAXD/SAXD cannot make a
movement to draw an arch using the SCARA axes and liner axes, or using the
SCARA axes (axes 1 to 4) and SCARA axes (axes 5 to 8). Either B80 “Indication
Prohibited Axes Error” or 421 “SCARA/Linear Drive Axes Double Indication Error”
will occur. Use GRP Command, or operate the position data of SCARA axis and
linear drive axis separately.
(Note 5) The coordinate system definition unit axes set in ALL Individual Parameter No. 56
(Coordinate System Definition 1 Constructing Axes Setting) in TTA are valid on
XY plane.
When Z-axis is indicated (XZ plane and YZ plane), “Error No. B80 Indication of
Forbidden Axis Error” will occur unless the R-axis offset in the selected work
coordinate system is 0.
(Note 6) When Coordinate System Definition 1 Control (All Axes Parameter No. 55) is set
to 1 valid, and constructing axes (coordinate system definition unit axes) is
selected in All Individual Parameter No. 56 (Coordinate System Definition 1
Constructed Axes Setting) in MSEL-PC/PG and TTA, such an operation is not
available as to draw an arc by indicating axes other than the coordinate system
definition unit axes at the same time. (B80 “Indication of Forbidden Axis Error” will
occur.)
Either get rid of the axes other than the coordinate system definition unit axes by
using GRP Command, or separate the position data for the coordinate system
definition unit axes and other axes in order to make operation.
425
ARCC (Move along arc via CP operation by specifying center position
and center angle (Arc interpolation))
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Center position Center
Optional Optional ARCC PE
number angle
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Move along an arc originating from the current position by keeping a specified radius
from the center position, via arc interpolation.
Specify the center position in operand 1, and the center angle formed by the position
origin and end position in operand 2. The center angle is set in a range from -3600 to
3600 (±10 revolutions). A positive value indicates CCW (counterclockwise-direction)
movement, while a negative value indicates CW (clockwise-direction) movement
(setting unit: (degree)).
The setting unit of the center angle is degree and the set value is effective to three
decimal points.
(Note) The rotating direction of the actual operation locus may vary from the specified
direction depending on how each axis is installed, how the two axes are combined,
and so on. Perform test operation to check the rotating direction.
The setting unit of the center angle is degree and the set value is effective to three
decimal points.
(Note 3) If the center angle is small and the path is near a soft limit, “Error No. C73:
Target-path soft limit over error” may occur.
In this case, move the path slightly inward from the soft limit boundary or make
other appropriate correction. Also note that the larger the center angle, the
smaller the path error becomes.
5. SEL Commands
(Note 4) XSEL-PX/QX/RX/SX/RXD/SXD, XSEL-RAX/SAX/RAXD/SAXD cannot make a
movement to draw an arch using the SCARA axes and liner axes, or using the
SCARA axes (axes 1 to 4) and SCARA axes (axes 5 to 8). Either B80 “Indication
Prohibited Axes Error” or 421 “SCARA/Linear Drive Axes Double Indication Error”
will occur. Use GRP Command, or operate the position data of SCARA axis and
linear drive axis separately.
(Note 5) The coordinate system definition unit axes set in ALL Individual Parameter No. 56
(Coordinate System Definition 1 Constructing Axes Setting) in TTA are valid on
XY plane.
When Z-axis is indicated (XZ plane and YZ plane), “Error No. B80 Indication of
Forbidden Axis Error” will occur unless the R-axis offset in the selected work
coordinate system is 0.
(Note 6) When Coordinate System Definition 1 Control (All Axes Parameter No. 55) is set
to 1 valid, and constructing axes (coordinate system definition unit axes) is
selected in All Individual Parameter No. 56 (Coordinate System Definition 1
Constructed Axes Setting) in MSEL-PC/PG and TTA, such an operation is not
available as to draw an arc by indicating axes other than the coordinate system
definition unit axes at the same time. (B80 “Indication of Forbidden Axis Error” will
occur.)
Either get rid of the axes other than the coordinate system definition unit axes by
using GRP Command, or separate the position data for the coordinate system
definition unit axes and other axes in order to make operation.
427
PBND (Set positioning width)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Optional Optional PBND Axis pattern Distance CP
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Set the positioning complete width for the axes that correspond to the axis pattern
specified in operand 2. The unit of operand 2 is as follows.
Unit of operand 2
SCARA X, Y, R: deg / Z: mm
Linear mm / RS: deg
[Function] As a rule, positioning is deemed complete when all command pulses have been sent
and the current position is within the positioning complete width. Accordingly, this
command provides an effective way to shorten the tact time by shortening the settling
time after rough positioning. (Normally a desired effect can be achieved with approx. 3
to 5, but you must check on the actual equipment.)
Feedback pulses
If the set positioning width exceeds this area,
Command the settling time will become “0”.
pulses
Settling time
(Note 1) If positioning width is not set with a PBND command, the value set in “Axis-specific
parameter No. 58, Positioning width” will be used.
(Note 2) If the positioning width is changed, the new setting will remain valid even after the
program ends. Therefore, to build a system using PBND commands, a positioning
band must be expressly specified with a PBND command before operation of each
program. An assumption that the positioning width will be reset to the original value
when the operation ends in other program may lead to an unexpected problem,
because the positioning width will become different from what is anticipated in case the
applicable program is aborted due to error, etc.
(Note 3) The value set in “Axis-specific parameter No. 58, Positioning width” will not be written
by a PBND command.
[Example 1] PBND 11 5 Set the positioning width for X-axis and Y-axis to 5
after this command.
[Example 2] The axis pattern can be specified indirectly using a variable. When the command
in [Example 1] is rephrased based on indirect specification using a variable:
11 (binary) 3 (decimal)
LET 1 3 Assign 3 to variable 1.
PBND *1 5
428
TMPI (Move incrementally to position on tool coordinate system via PTP
operation)
(Note) When using this command in MSEL-PC/PG or TTA, set All Axes Parameter No. 55 and No. 56.
(MSEL-PC/PG or TTA main application V2.00 or later)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Position
Optional Optional TMPI Prohibited PE
number
Applicable models
XSEL
5. SEL Commands
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
SAXD
(TTA only)
[Function] Move incrementally on the tool coordinate system without interpolation (= via PTP
operation), by the travel from the current position corresponding to the position data in
operand 1.
(Note 1) The tool/work coordinate systems are functions available for SCARA Robot. Also, this is a
feature for the axes of the coordinate system definition unit of MSEL-PC/PG and TTA set in
Coordinate System Definition 1 Constructing Axes Setting (All Axes Parameter No. 56).
Indicating other axes will cause “Error No. B80 Indication of Forbidden Axis Error”.
(Note 2) If an incremental movement command is used repeatedly, coordinate conversion rounding
errors, etc., will accumulate.
[Example] TMPI 120
Position data
429
TMLI (Move incrementally to position on tool coordinate system via CP
operation)
(Note) When using this command in MSEL-PC/PG or TTA, set All Axes Parameter No. 55 and No. 56.
(MSEL-PC/PG or TTA main application V2.00 or later)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Position
Optional Optional TMLI Prohibited PE
number
Applicable models
XSEL
5. SEL Commands
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
SAXD
(TTA only)
[Function] Move incrementally on the tool coordinate system without interpolation (= via CP operation),
by the travel from the current position corresponding to the position data in operand 1.
(Note 1) The tool/work coordinate systems are functions available for SCARA Robot. Also, this is a
feature for the axes of the coordinate system definition unit of MSEL-PC/PG and TTA set in
Coordinate System Definition 1 Constructing Axes Setting (All Axes Parameter No. 56).
Indicating other axes will cause “Error No. B80 Indication of Forbidden Axis Error”.
(Note 2) If an incremental movement command is used repeatedly, coordinate conversion rounding
errors, etc., will accumulate.
[Example] TMLI 120
Position data
430
CIR (Move along circle via CP operation)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Passing position Passing position
Optional Optional CIR PE
1 number 2 number
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Move along a circle originating from the current position and passing the positions
specified in operands 1 and 2.
Therefore, reversing the settings of operands 1 and 2 will implement a circular
movement in the reverse direction.
The output will turn OFF at the start of circular movement, and turn ON when the
movement is complete.
Difference from CIR2:
CIR processing resembles moving along a polygon with a PATH command,
while CIR2 actually performs arc interpolation.
Select an applicable command by considering the characteristics of each
command. (Normally CIR2 is used.)
(Note 1) If the division angle is set to “0” with a DEG command (division angle is calculated
automatically based on priority speed setting), the speed set in the data at passing
position 1 or speed set by a VEL command will be used (former is given priority).
The speed set in the data at passing position 2 will have no meaning.
(Note 2) If the division angle is set to a value other than “0” with a DEG command (normal
division angle), the speed specified in the target position data will be used. (The
speed set by a VEL command will become valid if position data is not specified.)
In the case of circular movement, the axes will return from passing position 2 to
the start position at the speed declared by a VEL command.
Therefore, a VEL command must always be used with a CIR command.
(Note 3) The acceleration is selected in the order of the acceleration in the data at passing
position 1, followed by the value in “All-axis parameter No. 11, Default
acceleration”.
The deceleration will become the same value as the valid acceleration selected
above. Therefore, the deceleration in the data at passing position 1 and the
acceleration/deceleration in the data at passing position 2 will not have any
meaning.
(Note 4) With rectangular actuators, this command is valid on any rectangular planes. If
three or more axes are set in the position data, two axes are selected
automatically from the axes that have been set, starting from the axis of the
youngest number.
If position data is set for axes 2 to 4, for example, a CIR command is executed
based on the position data of axes 2 and 3.
431
(Note 5) If the distance between the position origin and passing position 1 or between
passing position 1 and passing position 2 is small and the path is near a soft limit,
“Error No. C73: Target-path soft limit over error” may occur.
In this case, increase the distance between the adjacent positions as much as
possible, move the path slightly inward from the soft limit boundary, or make other
appropriate correction.
(Note 7) When Coordinate System Definition 1 Control (All Axes Parameter No. 55) is set to
1 valid, and constructing axes (coordinate system definition unit axes) is selected
in All Individual Parameter No. 56 (Coordinate System Definition 1 Constructed
Axes Setting) in MSEL-PC/PG and TTA, such an operation is not available as to
draw an arc by indicating axes other than the coordinate system definition unit
axes at the same time. (B80 “Indication of Forbidden Axis Error” will occur.)
Either get rid of the axes other than the coordinate system definition unit axes by
using GRP Command, or separate the position data for the coordinate system
definition unit axes and other axes in order to make operation.
432
ARC (Move along arc via CP operation)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Passing position End position
Optional Optional ARC PE
number number
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Move along an arc from the current position to the position specified in operand 2,
by passing the position specified in operand 1.
The output will turn OFF at the start of arc movement, and turn ON when the
movement is complete.
Difference from ARC2:
ARC processing resembles moving along a polygon with a PATH command,
while ARC2 actually performs arc interpolation.
Select an applicable command by considering the characteristics of each
command. (Normally ARC2 is used.)
(Note 1) If the division angle is set to “0” with a DEG command (division angle is calculated
automatically based on priority speed setting), the speed set in the data at passing
position 1 or speed set by a VEL command will be used (former is given priority).
The speed set in the data at passing position 2 will have no meaning.
(Note 2) If the division angle is set to a value other than “0” with a DEG command (normal
division angle), the speed specified in the target position data will be used. (The
speed set by a VEL command will become valid if position data is not specified.)
(Note 3) The acceleration is selected in the order of passing position 1 data, ACC
command, and all-axis parameter No. 11, “Default acceleration for SCARA axis” or
all-axis parameter No. 200, “Default acceleration for linear axis”.
The deceleration will become the same value as the valid acceleration selected
above. Therefore, the deceleration in the data at passing position 1 and the
acceleration/deceleration in the data at passing position 2 will not have any
meaning.
(Note 4) With rectangular actuators, this command is valid on any rectangular planes. If
three or more axes are set in the position data, two axes are selected
automatically from the axes that have been set, starting from the axis of the
youngest number.
If position data is set for axes 2 to 4, for example, a ARC command is executed
based on the position data of axes 2 and 3.
(Note 5) If the distance between the position origin and passing position 1 or between
passing position 1 and passing position 2 is small and the path is near a soft limit,
“Error No. C73: Target-path soft limit over error” may occur.
In this case, increase the distance between the adjacent positions as much as
possible, move the path slightly inward from the soft limit boundary, or make other
appropriate correction.
433
(Note 6) XSEL-PX/QX/RX/SX/RXD/SXD, XSEL-RAX/SAX/RAXD/SAXD cannot make a
movement to draw an arch using the SCARA axes and liner axes, or using the
SCARA axes (axes 1 to 4) and SCARA axes (axes 5 to 8). Either B80 “Indication
Prohibited Axes Error” or 421 “SCARA/Linear Drive Axes Double Indication Error”
will occur. Use GRP Command, or operate the position data of SCARA axis and
linear drive axis separately.
(Note 7) When Coordinate System Definition 1 Control (All Axes Parameter No. 55) is set
to 1 valid, and constructing axes (coordinate system definition unit axes) is
selected in All Individual Parameter No. 56 (Coordinate System Definition 1
Constructed Axes Setting) in MSEL-PC/PG and TTA, such an operation is not
available as to draw an arc by indicating axes other than the coordinate system
definition unit axes at the same time. (B80 “Indication of Forbidden Axis Error” will
occur.)
5. SEL Commands
Either get rid of the axes other than the coordinate system definition unit axes by
using GRP Command, or separate the position data for the coordinate system
definition unit axes and other axes in order to make operation.
434
PEND (Wait for end of operation by axes currently used by program)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Optional Optional PEND Prohibited Prohibited PE
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
5. SEL Commands
SAXD
[Function] When a PEND command is executed, the program waits for the end of operation
by the axes it is currently using. The output turns ON only when a MOVP, MOVL
or PATH command has been successfully executed (positioning has been
successful) in quick return mode 2 (closeness-detection return target position
addition mode) or quick return mode 3 (closeness-detection return target position
change mode) (the output does not turn ON if any other servo command is
executed).
(Note 1) To check if the operation has been successful (positioning has been successful),
execute a PEND command before the quick return mode is cancelled.
(Note 2) Be sure to also refer to the pages that explain the QRTN command and NBND
command.
435
[13] IF structure
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Compare the content of the variable specified in operand 1 with the value specified in
operand 2, and proceed to the next step if the condition is satisfied.
If the condition is not satisfied, the program will proceed to the step next to the
corresponding ELSE command, if any, or to the step next to the corresponding EDIF
command.
If the input condition is not satisfied and the IF command is not executed, the program
will proceed to the step next to the corresponding EDIF.
A maximum of 15 nests are supported when IS and DW are combined.
IF
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
[Example 1] SVON 1111 Set the current arm system in variable 99.
PRDQ 1 100 Read the current X coordinate value into
variable 100.
CPNE 99 0 600 Turn OFF flag 600 if the arm system is
indeterminable.
600 IFEQ 99 1 Determine the arm system. The
processing ends if the arm system is
indeterminable.
IFGE 100 0 Move to position No. 1 via PTP if the X
MOVP 1 coordinate value is 0 or greater.
ELSE
MOVP 2 Move to position No. 2 via PTP.
EDIF
ELSE
IFGE 100 0 Move to position No. 3 via PTP if the X
MOVP 3 coordinate value is 0 or greater.
ELSE
MOVP 4 Move to position No. 4 via PTP.
EDIF
EDIF
EXIT
If the current arm system is the right arm and X coordinate is 0 or greater, the axis moves
to position No. 1. If the X coordinate is smaller than 0, it moves to position No. 2. If the left
arm system is currently used and X coordinate is 0 or greater, the axis moves to position
No. 3. If the X coordinate is smaller than 0, it moves to position No. 4.
(Note) Using a GOTO command to branch out of or into an IF-EDIF syntax is prohibited.
436
IS (Compare strings)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Column Column number,
Optional Optional IS□□ CP
number character literal
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Compare the character strings in the columns specified in operands 1 and 2, and
proceed to the next step if the condition is satisfied.
If the condition is not satisfied, the program will proceed to the step next to the
corresponding ELSE command, if any, or to the step next to the corresponding EDIF
command.
Comparison will be performed for the length set by a SLEN command.
If a character literal is specified in operand 2, comparison will be performed for the
entire length of the literal.
If the input condition is not satisfied and the IS command is not executed, the
program will proceed to the step next to the EDIF.
A maximum of 15 nests are supported when IF and DW are combined.
IS
EQ Operand 1 = Operand 2
NE Operand 1 Operand 2
12 34 56 78
XA XS GO FD
437
ELSE (Declare execution destination when IF command condition is not
satisfied)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Prohibited Prohibited ELSE Prohibited Prohibited CP
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
438
EDIF (End IF)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Prohibited Prohibited EDIF Prohibited Prohibited CP
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Declare the end of an IF or IS command.
439
[14] Structural DO
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Compare the content of the variable specified in operand 1 with the value
specified in operand 2, and execute the subsequent commands up to EDDO
while the condition is satisfied.
The program will proceed to the step next to the corresponding EDDO if the
condition is no longer satisfied.
A LEAV command can be used to forcibly end a loop.
If the input condition is not satisfied and the DW command is not executed,
the program will proceed to the step next to the corresponding EDDO.
A maximum of 15 nests are supported when IF and IS are combined.
DW
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
If DW is specified at the start and input 8 is OFF, nothing will occur and
the program will proceed to the step next to EDDO.
440
LEAV (Pull out of DO WHILE)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Optional Optional LEAV Prohibited Prohibited CP
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Pull out of a DO loop and proceed to the step next to EDDO.
441
ITER (Repeat)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Optional Optional ITER Prohibited Prohibited CP
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
442
EDDO (End DO WHILE)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Prohibited Prohibited EDDO Prohibited Prohibited CP
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Declare the end of a loop that began with DW.
If the DW condition is not satisfied, the program will proceed to the step next
to this command.
443
[15] Multi-Branching
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Branch to the step next to any WH or WS command that exists before an
EDSL command and whose condition is satisfied, or to the step next to an OTHE
command if none of the conditions are satisfied.
A SLCT command must be followed by a WH, WS or EDSL command.
A maximum of 15 nests are supported.
444
WH (Select if true; variable)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Variable
Prohibited Prohibited WH□□ Data CP
number
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] This command is used between SLCT and EDSL commands to execute the
subsequent commands up to the next W command or an OTHE or EDSL
command when the comparison result of the content of the variable specified in
operand 1 with the value specified in operand 2 satisfies the condition.
DW
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
* If multiple conditions are likely to be satisfied, remember that the first W will become
valid and any subsequent commands will not be executed. Therefore, state from the
command with the most difficult condition or highest priority.
445
WS (Select if true; character)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Column Column number,
Prohibited Prohibited WS□□ CP
number character literal
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] This command is used between SLCT and EDSL commands to execute the
subsequent commands up to the next W command or an OTHE or EDSL
command when the comparison result of the character strings in the columns
specified in operands 1 and 2 satisfies the condition.
Comparison will be performed for the length set by a SLEN command.
If a character literal is specified in operand 2, comparison will be performed for
the entire length of the literal.
WS
EQ ............ Operand 1 = Operand 2
NE ............ Operand 1 Operand 2
* If multiple conditions are likely to be satisfied, remember that the first W will become
valid and any subsequent commands will not be executed. Therefore, state from the
command with the most difficult condition or highest priority.
446
OTHE (Select other)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Prohibited Prohibited OTHE Prohibited Prohibited CP
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] This command is used between SLCT and EDSL commands to declare the
command to be executed when none of the conditions are satisfied.
447
EDSL (End selected group)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Prohibited Prohibited EDSL Prohibited Prohibited CP
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
448
[16] System Information Acquisition
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Store in the variable specified in operand 1 the status (axis error number) of the
axis specified in operand 2.
3188 / 16 = 199 …4
199 / 16 = 12 (= C) …7
Therefore, an “Error No. C74, Actual-position soft limit over error” is present.
449
PGST (Get program status)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Variable Program
Optional Optional PGST CP
number number
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Store in the variable specified in operand 1 the status (program error number) of
the program specified in operand 2.
450
SYST (Get system status)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Variable
Optional Optional SYST Prohibited CP
number
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Store the system status (top-priority system error number) in the variable specified
in operand 1.
Axis errors
Other errors
* An axis error that generates during operation with a program command will be
registered both as a program error and an axis error.
451
GARM (Dedicated SCARA command/Get current arm system)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Variable
Optional Optional GARM Prohibited CP
number
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
5. SEL Commands
QCT SXD
SAXD
(PCX/PG
X only)
[Function] Acquire the current arm system and set one of the following values corresponding
to this arm system in the variable specified in operand 1:
Arm system indeterminable = 0
Right arm system = 1
Left arm system = -1
(Note 1) The arm system effective immediately after the command execution is set. It is
not that the arm system is always monitored.
(Note 3) When GRP Command is undeclared, or GRP 11111111 (1st to 8th axes effective)
is declared, the current arm system of the SCARA axes (1st to 4th axes) is set.
When an acquirement of the current arm system for the SCARA axes (5th to 8th
axes) is required, make only the 5th to 8th axes valid in GRP Command and
execute GARM Command.
452
[17] Zone
Applicable models
XSEL-JX/KX ×
5. SEL Commands
Other than XSEL-JX/KX
[Function] Wait for the zone status of all axes (AND) specified by the axis pattern in operand
2 to become ON (inside zone) with respect to the zone specified in operand 1.
(Note 1) The zone status of axes not yet completing home return will remain OFF (outside
zone).
(Note 2) A maximum of four areas can be set as zones for each axis (“Axis-specific
parameter No. 86 to 97”).
(Note 3) Zone output can be specified using “Axis-specific parameter No. 88, 91, 94 and
97” irrespective of this command.
(Note 4) The zone signal is a dedicated command for linear axes. If a SCARA axis is
specified for this command, “Error No. B80: Specification-prohibited axis error”
occurs.
Axis 1 Axis 2
“Axis-specific parameter No. 86, Zone 1 max.” 300000 200000
(Value is set in units of 0.001mm)
“Axis-specific parameter No. 87, Zone 1 min.” 150000 100000
(Value is set in units of 0.001mm)
Axis 2 The program will proceed to the next step if both axes
1 and 2 are inside the shaded area.
Axis 1
453
WZNO (Dedicated linear axis command/Wait for zone ON based on OR
gate)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Optional Optional WZNO Zone number Axis pattern CP
Applicable models
XSEL-JX/KX ×
Other than XSEL-JX/KX
5. SEL Commands
[Function] Wait for the zone status of any of the axes (OR) specified by the axis pattern in
operand 2 to become ON (inside zone) with respect to the zone specified in
operand 1.
(Note 1) The zone status of axes not yet completing home return will remain OFF (outside
zone).
(Note 2) A maximum of four areas can be set as zones for each axis (“Axis-specific
parameter No. 86 to 97”).
(Note 3) Zone output can be specified using “Axis-specific parameter No. 88, 91, 94 and
97” irrespective of this command.
(Note 4) The zone signal is a dedicated command for linear axes. If a SCARA axis is
specified for this command, “Error No. B80: Specification-prohibited axis error”
occurs.
Axis 1 Axis 2
“Axis-specific parameter No. 86, Zone 1 max.” 300000 200000
(Value is set in units of 0.001mm)
“Axis-specific parameter No. 87, Zone 1 min.” 150000 100000
(Value is set in units of 0.001mm)
Axis 2
The program will proceed to the next step if both axes
1 and 2 are inside the shaded area.
Axis 1
454
WZFA (Dedicated linear axis command/Wait for zone OFF based on
AND gate)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Optional Optional WZFA Zone number Axis pattern CP
Applicable models
XSEL-JX/KX ×
Other than XSEL-JX/KX
5. SEL Commands
[Function] Wait for the zone status of all axes (AND) specified by the axis pattern in operand
2 to become OFF (outside zone) with respect to the zone specified in operand 1.
(Note 1) The zone status of axes not yet completing home return will remain OFF (outside
zone).
(Note 2) A maximum of four areas can be set as zones for each axis (“Axis-specific
parameter No. 86 to 97”).
(Note 3) Zone output can be specified using “Axis-specific parameter No. 88, 91, 94 and
97” irrespective of this command.
(Note 4) The zone signal is a dedicated command for linear axes. If a SCARA axis is
specified for this command, “Error No. B80: Specification-prohibited axis error”
occurs.
Axis 1 Axis 2
“Axis-specific parameter No. 86, Zone 1 max.” 300000 200000
(Value is set in units of 0.001mm)
“Axis-specific parameter No. 87, Zone 1 min.” 150000 100000
(Value is set in units of 0.001mm)
Axis 1
455
WZFO (Dedicated linear axis command/Wait for zone OFF based on OR
gate)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Optional Optional WZFO Zone number Axis pattern CP
Applicable models
XSEL-JX/KX ×
Other than XSEL-JX/KX
5. SEL Commands
[Function] Wait for the zone status of any of the axes (OR) specified by the axis pattern in
operand 2 to become OFF (outside zone) with respect to the zone specified in
operand 1.
(Note 1) The zone status of axes not yet completing home return will remain OFF (outside
zone).
(Note 2) A maximum of four areas can be set as zones for each axis (“Axis-specific
parameter No. 86 to 97”).
(Note 3) Zone output can be specified using “Axis-specific parameter No. 88, 91, 94 and
97” irrespective of this command.
(Note 4) The zone signal is a dedicated command for linear axes. If a SCARA axis is
specified for this command, “Error No. B80: Specification-prohibited axis error”
occurs.
Axis 1 Axis 2
“Axis-specific parameter No. 86, Zone 1 max.” 300000 200000
(Value is set in units of 0.001mm)
“Axis-specific parameter No. 87, Zone 1 min.” 150000 100000
(Value is set in units of 0.001mm)
The program will proceed to the next step if
Axis 2 both axes 1 and 2 are inside the shaded
Axis 1
456
[18] Communication
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Example 1] SCHA 10
OPEN 1
Specify 10 (= LF) as the end character.
Open channel 1.
457
CLOS (Close channel)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Channel
Optional Optional CLOS Prohibited CP
number
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Example 1] CLOS 1
Close channel 1.
LET 1 2
CLOS *1
Assign 2 to variable 1.
Close the content of variable 1 (channel 2).
458
READ (Read)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Channel Column
Optional Optional READ number number
CC
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Read a character string from the channel specified in operand 1 to the column specified in
operand 2.
Read will end when the character specified by a SCHA command is received.
Either a local or global column may be specified.
A return code will be stored in a local variable (variable 99 under the factory setting)
immediately after this command is executed.
Whether or not the command has been executed successfully can be checked based on
this return code. Define appropriate processing to handle situations where the command
execution failed due to an error.
Setting “0” in operand 2 will specify a dummy read (receive buffer cleared and receive
disabled) (the return code will indicate that the command was successfully executed). The
versions of tools in which 0 can be entered in operand 2 are specified below. With tools of
these versions, 0 can be specified indirectly if it cannot be entered directly from the tool:
PC software Ver.1.1.1.0 or later
Teaching pendant TB-02 (D): First edition or later, TB-01 (D): First edition or later,
SEL-T (D): First edition or later, IA-T-X (D): Ver.1.06 or later
459
(Note 1) A READ command must be executed before the other side sends the end
character.
(Note 2) Dummy read (operand 2: 0) cannot be specified for channel No. 31 to 34
(Ethernet option).
SCHA 10
OPEN 1
READ 1 2
Other side
CLOS 1
460
TMRD (Set READ timeout value)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Optional Optional TMRD Timer period Prohibited CP
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
5. SEL Commands
SAXD
TT:,
TTA:
(Note) TMRD is set to “0” in the default condition before TMRD setting is performed.
461
[Example] SCHA 10 Set LF (=10) as the end character.
TMRD 30 Set the READ timeout value to 30sec.
OPEN 1 Open channel 1.
READ 1 2 Read the character string from channel 1 to
column 2 until LF is read.
TRAN 1 99 Assign the return code to variable 1.
CLOS 1 Close the channel.
SLCT The processing flow branches out in accordance
with each return code.
(Note) Using a GOTO command to branch out of
an SLCT-EDSL syntax or to other branch
processing within the syntax is prohibited.
WHEQ 1 0 If the content of variable 1 is “0” (Completed
: successfully), (1) will be executed. In (1), define
5. SEL Commands
462
TMRW (Set READ/WRIT timeout value)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Read timer (Write timer
Optional Optional TMRW CP
setting setting)
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
5. SEL Commands
RAXD/ SSEL
QCT SXD
SAXD
TT:,
TTA:
463
[Example] SCHA 10 Set LF (=10) as the end character.
TMRW 30 Set the READ timeout value to 30sec.
OPEN 1 Open channel 1.
READ 1 2 Read the character string from channel 1 to
column 2 until LF is read.
TRAN 1 99 Assign the return code to variable 1.
CLOS 1 Close the channel.
Read completes successfully within 30sec Variable No. 1 = 0
Timeout occurs Variable No. 1 = 1
* The return code of READ command may not be limited to 0 or 1. The variable to
store the return code can be set in “Other parameter No. 24”. Refer to the
explanation of READ command for details.
For the time period specified in operand 2, set the timeout value to be applied
when a WRIT command is executed (maximum wait time for completion of send).
(Maximum wait time for end based on flow control)
5. SEL Commands
The write timer period is valid only for standard SIO (channels 1 and 2 supporting
flow control).
For the time period specified in operand 2, set the timeout value to be applied
when a WRIT command is executed (maximum wait time for completion of send).
(Maximum wait time for end based on flow control) (Arbitrary)
The write timer setting is available only on standard SIO (flow control support
channels 1 and 2).
This command is recognized as a TMRD on XSEL-JX/KX controllers, and as
TMRW on XSEL-PX/QX controllers. If a program created for an XSEL-JX/KX
controller is transferred to an XSEL-PX/QX controller, the PC software
automatically converts “TMRD” to “TMRW” before the file is transferred. This
command is recognized as a TMRD on XSEL-JX/KX controllers, and as TMRW on
XSEL-PX/QX controllers. If a program created for an XSEL-JX/KX controller is
transferred to an XSEL-PX/QX controller, the PC software automatically converts
“TMRD” to “TMRW” before the file is transferred.
464
WRIT (Write)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD,A,O,AB,OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Channel Column
Optional Optional WRIT CC(Note 1)
number number
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Write the character string in the column specified in operand 2 to the channel
specified in operand 1.
The operation will end when the character specified by a SCHA command is
written.
Either a local or global column can be specified.
With a standard SIO (channel 1 or 2), WRIT is supported by (can be sent in)
a task other than the one that opened the channel, as long as the channel is
currently open. Accordingly, by sending WRIT in other task after executing
READ in a task that opened the channel, a response can be received from
the other side without delay after sending from XSEL.
465
SCHA (Set end character)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Character
Optional Optional SCHA Prohibited CP
code
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
466
z IPCN (Connected Destination IP address / Port Number Setting) [Ethrnet]
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
Integer
Channel
Optional Optional IPCN variable CP
number
number
Applicable models
All models [Refer to Section 5.1 for details of models]
{
5. SEL Commands
[Function] It is a command used in the non-procedure communication in Ethernet.
The storage area for the connected destination IP address and port number in the
free-for-user TCP/IP channel should be set established. The connected
destination information stored in the five integer variables in a row starting from
an integer variable number indicated in Operation 2 should be set as the
connected destination of the free-for-user TCP/IP channel number indicated in
Operation 1.
Make sure that this command is executed before OPEN Command.
variable
number
n ····Connected Destination IP Address (H) Stored Variable Number
n+1 ····Connected Destination IP Address (MH) Stored Variable Number
n+2 ····Connected Destination IP Address (ML) Stored Variable Number
n+3 ····Connected Destination IP Address (L) Stored Variable Number
n+4 ····Connected Destination Port Number Stored Variable Number
(Note 1) The channel numbers available to indicate in Operation 1 in the Ethernet option
should be from 31 to 34.
(Note 2) If this command gets executed during open, it should be set as the command for
the next open.
467
[19] String Operation
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Copy the character string in the column specified in operand 2 to the column
specified in operand 1.
Copy will be performed for the length set by a SLEN command.
If a character literal is specified in operand 2, copy will be performed for the entire
length of the literal.
468
SCMP (Compare character strings)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Column Column number,
Optional Optional SCMP EQ
number character literal
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Compare the column specified in operand 1 with the column specified in operand
2.
Comparison will be performed for the length set by a SLEN command.
If a character literal is specified in operand 2, comparison will be performed for
the entire length of the literal.
469
SGET (Get character)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Variable Column number,
Optional Optional SGET CP
number character literal
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Assign one character from the column specified in operand 2 to the variable
specified in operand 1.
If a character-string literal is specified in operand 2, the first character will be
assigned.
470
SPUT (Set character)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Column
Optional Optional SPUT Data CP
number
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Set the data specified in operand 2 in the column specified in operand 1.
471
STR (Convert character string; decimal)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Column
Optional Optional STR Data CC
number
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Copy to the column specified in operand 1 a decimal character string converted
from the data specified in operand 2.
The data will be adjusted to the length set by a SLEN command.
If the data exceeds the specified length, it will be cut off at the length set by a
SLEN command.
If the entire data has been converted within the length set by a SLEN command,
the output will turn ON.
(Note) If the data specified in operand 2 is a 10 digit integer including eight or more valid
digits, conversion of the values in the eighth and subsequent digits will not be
guaranteed (the values through the seventh digits will be converted properly.)
[Example] SLEN 5.3 Set a length consisting of five integer digits and
three decimal digits.
STR 1 123 The following values will be set in columns 1 to 9:
1 2 3 4 5 6 7 8 9
1 2 3 . 0 0 0
10 11 12 13 14 15
8 7 . 6 5 4
472
STRH (Convert character string; hexadecimal)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Column
Optional Optional STRH Data CC
number
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Copy to the column specified in operand 1 a hexadecimal character string
converted from the data specified in operand 2.
Only the integer part will be adjusted to the length set by a SLEN command.
If the data exceeds the specified length, it will be cut off at the length set by a
SLEN command.
If the entire data has been converted within the length set by a SLEN command,
the output will turn ON.
(Note) If the data specified in operand 2 is a negative value, 8 columns will be required
to covert the entire data.
1 2 3 4 5
F F
10 11
D B
473
VAL (Convert character string data; decimal)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Variable Column number,
Optional Optional VAL CC
number character literal
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Convert the decimal data in the column specified in operand 2 to a binary and
assign the result to the variable specified in operand 1.
Conversion will be performed for the length set by a SLEN command.
If a character-string literal is specified in operand 2, conversion will be performed
for the entire length of the literal.
474
VALH (Convert character string data; hexadecimal)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Variable Column number,
Optional Optional VALH CC
number character literal
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Convert the hexadecimal data in the column specified in operand 2 to a binary
and assign the result to the variable specified in operand 1.
Conversion will be performed for the length set by a SLEN command.
Only the integer part will be converted, with the decimal part being ignored.
If a character-string literal is specified in operand 2, conversion will be performed
for the entire length of the literal.
475
SLEN (Set length)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Character
Optional Optional SLEN Prohibited CP
string length
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
476
[20] Arch-Motion
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
Perform arch motion from the current point and move to the specified points.
Move to the points specified in operand 1, via arch motion.
Movements in directions other than the arch-motion Z-axis direction will begin after rising
from the current point to the start-point arch trigger. After the Z point specified in operand 2
(as the highest point) is passed and movements in directions other than the arch-motion
Z-axis direction are complete, the axes will come down to the end-point arch trigger and
reach the specified point.
Palletizing arch triggers must be set using an ATRG command.
(Note 1) If the arch motion setting that SCARA axis and linear drive axis exist together is
established, 421 “SCARA/Linear Drive Axes Double Indication Error” will occur.
Also, if the arch motion setting that SCARA axes for two units exist together is
established, B80 “Indication Prohibited Axis Error” will occur.
Establish the arch motion setting with a consideration to have the operation axes
all the same SCARA axes or all linear drive axes.
(Note 2) The arch motion operation of SCARA axis is PTP operation and the linear drive
axis is CP operation.
Highest point of arch motion
* Position No. 12 *
477
* When the operation is resumed after a pause, depending on the position where the
operation is resumed the locus may follow the lines (dotted lines) indicated by asterisks in
the diagram for the composite section from ascent to horizontal movement or from
horizontal movement to descent. Be careful not to cause interference.
The arch-motion Z-axis coordinate of the end point will become the arch-motion Z-axis
component of the point data specified in operand 1, if any, plus the arch-motion Z-axis
offset. If there is no arch-motion Z component, the arch-motion Z-axis coordinate of the end
point will become the arch-motion Z-axis coordinate of the start point plus the arch-motion
Z-axis offset. (Normally the offset is added to all arch-motion positions, such as the arch
triggers and Z point.)
An error will generate if the start-point arch trigger is set below the start point or the
end-point arch trigger is set below the end point. (Note: Up/down has nothing to do with +/-
on the coordinate system.)
The arch-motion Z-axis up direction refers to the direction toward the Z point from the start
5. SEL Commands
point (the down direction refers to the opposite direction), and has nothing to do with the
size of coordinate value. Therefore, be sure to confirm the actual operating direction when
using this command.
The arch-motion Z-axis will come down after a rise-process command value is output.
Therefore, one of the following operations will be performed depending on how the
arch-trigger point and Z point are set.
If the resulting operation is undesirable, change the arch trigger and/or Z point to improve
the efficiency of movement.
Z point
As for the arch-trigger end position data, movement also starts/ends above the applicable
arch trigger for any effective axis, other than the arch motion Z-axis, if data of such axis is
included in the position data.
If the end position data includes R-axis data, movement of the R-axis starts/ends above the
applicable arch trigger.
If a composite arch trigger motion is set, a given effective axis, other than the arch motion
Z-axis, also moves if data of such axis is included in the end point data. In this case,
movement of the axis also starts/ends above the applicable arch trigger.
478
ACHZ (Declare arch-motion Z-axis)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Axis
Optional Optional ACHZ Prohibited CP
number
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
Specify the axis number representing the arch-motion Z direction.
The axis number specified in operand 1 will be set as the axis number representing the
arch-motion Z direction.
If the output field is specified, the output will turn ON after this command is executed.
[Example] ACHZ 3
(Note 1) The arch motion Z-axis is available for indication only on the work coordinate
system Z-axis (Axis No. 3 or Axis No. 7).
(Note 2) When Coordinate System Definition 1 Control (All Axes Parameter No. 55) is set
to 1 valid, and constructing axes (coordinate system definition unit axes) is
selected in All Individual Parameter No. 56 (Coordinate System Definition 1
Constructed Axes Setting) in MSEL-PC/PG and TTA, R-axis of the coordinate
system definition unit cannot be indicated for the arch motion Z-axis. Also, X and
Y-axes of the coordinate system definition unit can be indicated only when the
offset of R-axis of the work coordinate system is set to 0.
479
ATRG (Set arch triggers)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Position Position
Optional Optional ATRG CP
number number
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
ATRG 13 11
480
AEXT (Set composite arch motion)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
(Position
Optional Optional AEXT Prohibited CP
number)
Applicable models
ASEL/PSEL/SSEL ×
Other than ASEL/PSEL/SSEL
5. SEL Commands
Set a composite arch motion. Set coordinate values other than the arch motion Z-axis at the
end position of arch motion.
Use the position number specified in operand 1 for setting composite motion.
With SCARA robots, the R-axis becomes a composite arch motion axis.
When the arch motion is executed, the end coordinate of the composite axis corresponds to
effective axis data, other than that of the arch motion Z-axis, included in the arch-motion end
point data.
If nothing is specified in operand 1, the position number already declared for setting composite
motion becomes invalid. If the output is specified, it turns ON after this command has been
executed.
(Note 1) Setting of the arch motion composition axes cannot be established for linear drive
axes in PX/QX.
481
OFAZ (Set arch-motion Z-axis offset)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Optional Optional OFAZ Offset value Prohibited CP
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
482
[21] Palletizing Definition
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
483
EDPA (Declare end of palletizing setting)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Prohibited Prohibited EDPA Prohibited Prohibited CP
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
484
PAPI (Set palletizing counts)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Optional Optional PAPI Count Count CP
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
Set counts in the palletizing-axis directions.
The count specified in operand 1 will apply to the preferential-axis (PX-axis) direction, while
the count specified in operand 2 will apply to the PY-axis direction.
If this command is executed before BGPA is declared (= while palletizing setting is not
enabled), an error will generate.
If the output field is specified, the output will turn ON after this command is executed.
485
PAPN (Set palletizing pattern)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Pattern
Optional Optional PAPN Prohibited CP
number
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
Pattern 1 Pattern 2
486
PASE (Declare palletizing axes)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Axis Axis
Optional Optional PASE CP
number number
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
Set the two axes to be used in palletizing (PX and PY-axes).
The axis specified in operand 1 will be set as the preferential axis (PX-axis).
The axis specified in operand 2 will be set as the PY-axis.
This command is used in conjunction with PAPT and PAST.
It cannot be used together with a 3-point teaching (PAPS) command. Whichever is set later will
be given priority.
If this command is executed before BGPA is declared (= while palletizing setting is not
enabled), an error will generate.
If the output field is specified, the output will turn ON after this command is executed.
If the arch motion setting that SCARA axis and linear drive axis exist together is established,
421 “SCARA/Linear Drive Axes Double Indication Error” will occur.
Also, if the arch motion setting that SCARA axes for two units exist together is established,
B80 “Indication Prohibited Axis Error” will occur.
Establish the arch motion setting with a consideration to have the operation axes all the same
SCARA axes or all linear drive axes.
487
PAPT (Set palletizing pitches)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Optional Optional PAPT Pitch Pitch CP
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
488
PAST (Set palletizing reference point)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
(Position
Optional Optional PAST Prohibited CP
number)
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
Set the reference point for PX-axis (priority axis), PY-axis and PZ-axis (when palletizing
Z-axis declaration is effective) to be used in palletizing calculation.
If a value is set in operand 1, that position number specified in operand 1 will be used to store
the reference point data.
If no value is set in operand 1, the position-number setting for storing reference point data will
become invalid.
This command is used in conjunction with PASE and PAPT.
If this command is not set, the reference point is defined as X = 0, Y = 0.
Palletizing positions are calculated as points on the palletizing plane constituted by the
reference point, PX-axis and PY-axis.
Accordingly, position data of the reference point must include valid coordinate components for
PX-axis, PY-axis and PZ-axis (when palletizing Z-axis declaration is effective). If these
coordinate components are invalid, an error occurs during palletizing position coordinate
calculation for PAPG (Get palletizing calculation data) or other palletizing movement
command. Coordinate components of other axes are ignored during palletizing position
coordinate calculation.
An error occurs if this command is executed when BGPA is not yet declared (palletizing setting is
not permitted).
If the output is specified, it turns ON after this command has been executed.
If the arch motion setting that SCARA axis and linear drive axis exist together is established,
421 “SCARA/Linear Drive Axes Double Indication Error” will occur.
Also, if the arch motion setting that SCARA axes for two units exist together is established,
B80 “Indication Prohibited Axis Error” will occur.
Establish the arch motion setting with a consideration to have the operation axes all the same
SCARA axes or all linear drive axes.
(Note 1) In the case of SCARA robots, executing a palletizing movement command while
the work coordinate system selection number is set to 0 (base coordinate
system) and this command is not yet set generates an error because the
palletizing start position is (0, 0) and thus movement is disabled.
(Note 2) In the case of SCARA robots, the R-axis should be excluded from the effective
axes, if already set in the position data, with a GRP command.
(This is not required if the R-axis field is blank.)
Set the R-axis data at the palletizing position using a PEXT command.
489
PAPS (Set palletizing points) For 3-point or 4-point teaching
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
(Palletizing
Position
Optional Optional PAPS position CP
number setting type)
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
(Note 1) If the arch motion setting that SCARA axis and linear drive axis exist together is
established, 421 “SCARA/Linear Drive Axes Double Indication Error” will occur.
Also, if the arch motion setting that SCARA axes for two units exist together is
established, B80 “Indication Prohibited Axis Error” will occur.
Establish the arch motion setting with a consideration to have the operation axes
all the same SCARA axes or all linear drive axes.
In operand 2, specify the applicable palletizing position setting type.
[Palletizing position setting type]
If operand 2 is “0” or blank, 3-point teaching will be specified.
As shown in Fig. 1 (a), palletizing positions will be set on the quadrilateral pallet plane determined
by the three points including the start point, end point in the PX-axis direction and end point in the
PY-axis direction.
If operand 2 is “2,” 4-point teaching will be specified.
As shown in Fig. 1 (b), palletizing positions will be set on the quadrilateral pallet plane determined
by the four points including the start point, end point in the PX-axis direction, end point in the
PY-axis direction, and end point. Note, however, that whether the shape is planar or not varies
depending on the end point data.
Fig. 1 shows two different arrangements of palletizing positions.
End point
490
(Note) Since ASEL, PSEL and SSEL controllers are 2-axis controllers, setting 2 in
operand 2 results in the planar type, just like 1 is set.
If palletizing positions are set by 4-point teaching, it is recommended that the non-planar type
be specified as long as all four points are known to be on the plane and the palletizing requires
precision.
5. SEL Commands
Palletizing positions are placed on the quadrilateral pallet surface determined by these
four points.
i+2 axis
End point
Start point
i-axis
Fig. 2-(a)
Take note, however, that the moving direction of the end point varies if the three points other
than the end point meet the conditions specified in Table 1. This is when the plane
determined by the three points other than the end point is vertical to the ground. In this case,
moving the end points in parallel with PZ direction (vertical direction) does not find a point of
intersection with this plane.
491
End point Move in parallel
i+2 axis in i-axis direction.
End point in PX-axis direction End point when the planar type is specified
i+1 axis
i-axis
5. SEL Commands
Fig. 2-(b)
The point data for i-axis component matches among the three points other than the end point:
i+1 axis
If the PZ-axis component is i+2 axis, then the remaining two axes are the
Start point i-axis and i+1 axis, of which the i-axis has the smaller axis number.
Accordingly, the end point moves in parallel in the i-axis direction
and palletizing positions are placed on the plane determined by the
three points excluding the end point.
i-axis
Fig. 2-(c)
The point data other than PZ-axis component matches between two of the three points other than
the end point:
(In the figure above, the point data other than PZ-axis component matches between the start point
and end point in PY-axis direction.)
If the valid axis pattern does not match the point data for 3-point teaching or 4-point
teaching, an error “CB0, Mismatched valid axes for palletizing 3-point teaching data” will
generate. If a PAPS command is executed after specifying the applicable axes using a GRP
command, only the point data corresponding to the specified axes, among all axes whose
point data is valid, will be used as palletizing point data. Executing a GRP command
thereafter with a different setting will have no effect.
If the PZ-axis has been declared, there must be two effective axes other than the PZ-axis. If
the PZ-axis is not yet declared, there must be two or three effective axes. If there are not
enough effective axes, a “CAE: Insufficient effective axes for palletizing point data by 3-point
teaching” occurs. If there are too many effective axes, on the other hand, a “CAF: Excessive
effective axes for palletizing point data by 3-point teaching” occurs. If the planar type is
specified and PZ-axis is not yet declared, set two effective axes. If the number of effective
axes is other than 2, a “CB4: Arch motion Z-axis non-declaration error” occurs.
This command cannot be used with a PASE (set palletizing axes) command. Whichever was
set later will be given priority. (A single PAPS command can substitute a set of PASE, PAPT
and PAST commands.)
If this command is executed before BGPA is declared (= while palletizing setting is not
enabled), an error, “CB5, BGPA not declared at palletizing setting” will generate.
If the output field is specified, the output will turn ON after this command is executed.
492
PSLI (Set zigzag)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Offset
Optional Optional PSLI (Count) CP
amount
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
Set a zigzag palletizing.
The value specified in operand 1 will be set as the offset amount for even-numbered rows.
The count specified in operand 2 will be set as the count for even-numbered rows.
If operand 2 is not specified, the count for even-numbered rows will become the same as the
count for odd-numbered rows.
If palletizing is set with PAPS (Set palletizing points) based on 3-point teaching, the PX and
PY-axes need not be parallel with the corresponding axes on the work coordinate system. In
this case, the offset direction is parallel with the PX-axis. If the offset value is positive, the
measure in the direction of the PX-axis end point defines the offset. If the offset value is
negative, the measure in the direction of the reference point defines the offset.
An error occurs if this command is executed when BGPA is not yet declared (palletizing setting
is not permitted).
If the output is specified, it turns ON after this command has been executed
493
PCHZ (Declare palletizing Z-axis): Only when there are 3 or more axes
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
(Axis
Optional Optional PCHZ Prohibited CP
number)
Applicable models
ASEL/PSEL/SSEL ×
Other than ASEL/PSEL/SSEL
5. SEL Commands
(Note 1) Only Z-axis (either Axis No. 3 or Axis No. 7) in the work coordinate system is
available to indicate for the palletizing Z-axis of the SCARA axes. Setting of the
palletize Z-axis cannot be established for linear drive axes in PX/QX.
(Note 2) When Coordinate System Definition 1 Control (All Axes Parameter No. 55) is set
to 1 valid, and constructing axes (coordinate system definition unit axes) is
selected in All Individual Parameter No. 56 (Coordinate System Definition 1
Constructed Axes Setting) in MSEL-PC/PG and TTA, R-axis of the coordinate
system definition unit cannot be indicated for the arch motion Z-axis. Also, X and
Y-axes of the coordinate system definition unit can be indicated only when the
offset of R-axis of the work coordinate system is set to 0.
[Example] PCHZ 3
494
PTRG (Set palletizing arch triggers)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Position Position
Optional Optional PTRG CP
number number
Applicable models
ASEL/PSEL/SSEL ×
Other than ASEL/PSEL/SSEL
5. SEL Commands
Set arch triggers for arch motion to a palletizing point.
(This command is valid when a PACH command is executed.)
Set as the palletizing start-point arch trigger the palletizing Z-axis (PZ-axis) position data
corresponding to the point data specified in operand 1, and set as the palletizing end-point
arch trigger the PZ-axis position data corresponding to the point data specified in operand 2.
PTRG 11 13
Among the point data, data of the PZ-axis specified by a PCHZ command must be effective.
Set the arch motion operation through palletizing points in such a way that when the axis rises
from the start point, it starts parallel movement after reaching the start-point arch trigger,
whereas, when descending, the axis completes parallel movement and then reaches the
end-point arch trigger.
An error occurs if this command is executed when BGPA is not yet declared (palletizing setting is
not permitted).
If the output is specified, it turns ON after this command has been executed.
(Note 1) Setting of the palletize arch trigger cannot be established for linear drive axes in
PX/QX.
495
PEXT (Set composite palletizing)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
(Position
Optional Optional PEXT Prohibited CP
number)
Applicable models
ASEL/PSEL/SSEL ×
Other than ASEL/PSEL/SSEL
5. SEL Commands
(Note 1) The palletizing composition axes setting cannot be made to the linear drive axis
for PX/QX.
496
OFPZ (Set palletizing Z-axis offset)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Optional Optional OFPZ Offset value Prohibited CP
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
Set the offset in palletizing Z-axis direction.
Set the value specified in operand 1 as the offset in PZ-axis/palletizing Z-axis direction.
The setting unit of offset is mm. The effective resolution of the set value is 0.001mm.
A negative value can also be set for the offset within the range of operation.
This offset is effective only on the end point of PACH (Arch motion to palletizing point)
operation.
An error occurs if this command is executed when BGPA is not yet declared (palletizing setting is
not permitted).
If the output is specified, it turns ON after this command has been executed.
(Note) Setting of the palletize Z-axis offset cannot be established for linear drive axes in
PX/QX.
497
[22] Palletizing Calculation
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
Assign the palletizing position number for the palletizing number specified in operand 1 to the
variable specified in operand 2.
If the output field is specified, the output will turn ON after this command is executed.
498
PINC (Increment palletizing position number by 1)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Palletizing
Optional Optional PINC Prohibited CC
number
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
Increment by 1 the palletizing position number for the palletizing number specified in operand 1.
If the incremented value is considered normal as a palletizing position number calculated
under the current palletizing setting, the value will be updated. If not, the value will not be
updated.
If the output field is specified, the output will turn ON when the value was successfully
incremented, and turn OFF if the increment failed.
499
PDEC (Decrement palletizing position number by 1)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Palletizing
Optional Optional PDEC Prohibited CC
number
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
Decrement by 1 the palletizing position number for the palletizing number specified in operand 1.
If the decremented value is considered normal as a palletizing position calculated under the
current palletizing setting, the value will be updated. If not, the value will not be updated.
If the output field is specified, the output will turn ON when the value was successfully
decremented, and turn OFF if the decrement failed.
500
PSET (Set palletizing position number directly)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Palletizing
Optional Optional PSET Data CC
number
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
Set the value specified in operand 2 as the palletizing position number for the palletizing
number specified in operand 1.
If the specified value is considered normal as a palletizing position calculated under the
current palletizing setting, the value will be set. If not, the value will not be set.
If the output field is specified, the output will turn ON when the palletizing position number was
successfully updated, and turn OFF if the update failed.
501
PARG (Get palletizing angle)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Palletizing Axis
Optional Optional PARG CP
number number
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
Definitions related to the angle direction (sign) can be changed in Other Parameter No. 47
“Other Setting Bit Pattern 2” setting for MSEL-PC/PG and TTA.
(MSEL-PC/PG, TTA main application V2.00 or later)
[Refer to the instruction manuals of MSEL-PC/PG and TTA Instruction Manual for details]
502
PAPG (Get palletizing calculation data)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Palletizing Position
Optional Optional PARG CP
number number
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
Store the position coordinate data of the palletizing point corresponding to the palletizing number
specified in operand 1, under the position number specified in operand 2.
503
[23] Palletizing Movement
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
On controllers other than ASEL, PSEL and SSEL, movement does not occur in directions
other than PX/PY-axis directions if the PX/PY-axis coordinates of palletizing points alone are
effective (such as when the PZ-axis (palletizing Z axis) is not specified). If the PZ-axis
coordinates of palletizing points are also effective, movement occurs in PZ-axis direction.
If a position number is specified in operand 2, however, the palletizing calculation result of
Z-direction position is ignored and the axis moves to the height corresponding to the specified
position number.
If data of any axis other than the Z-axis specified by palletizing is set under the position
number specified in operand 2, such data is ignored. An error handling occurs if no PZ-axis
data is available.
If composite palletizing is set, any axis whose data is available, other than the PX-axis and
PY-axis (and PZ-axis), also operates.
If operand 2 is specified, the palletizing Z-axis must be declared (PCHZ) in the palletizing
setting.
An error occurs if the palletizing Z-axis is not declared.
504
PMVL (Move to palletizing points via interpolation)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Palletizing (Position
Optional Optional PMVL PE
number number)
Applicable models
XSEL-JX/KX and MSEL-PCX/PGX ×
Other than XSEL-JX/KX and MSEL-PCX/PGX
5. SEL Commands
Move to the calculated palletizing points via interpolation.
The axes will move to the palletizing points specified in operand 1, via interpolation.
Executing this command will not increment the palletizing position number by 1.
(Note 1) “Error No. B80 Indication Prohibited Axis Error” will be issued if the palletizing
setting to operate the SCARA axes is indicated.
For the palletizing setting at PMVL movement, establish the setting to make the
all of the operating axes the liner axes.
505
PACH (Arch motion to palletizing point)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Palletizing Position
Optional Optional PACH PE
number number
Applicable models
ASEL/PSEL/SSEL ×
Other than ASEL/PSEL/SSEL
5. SEL Commands
Perform arch motion from the current point to move to the palletizing points.
Move via arch motion to the palletizing point specified in operand 1.
Rise from the current point to palletizing start-point arch trigger and then start moving in
PX/PY-axis directions. Pass the top point which is the Z point specified in operand 2,
complete the movement in PX/PY-axis directions, and then reach the calculated palletizing
point by passing near the palletizing end-point arch trigger.
Palletizing arch triggers must be set for the PTRG command.
* When the operation is paused and then resumed, the rise operation → horizontal operation
composite part and horizontal operation → rise operation composite part follow the paths
denoted by * (dotted lines) in the figure depending on the position of resumption. Exercise
caution to prevent contact.
(Note 1) When a palletizing setting with the SCARA axes and the liner axes existing
together is indicated, “Error No. 421 SCARA and Liner Axes Simultaneous
Indication Error” will occur. Also, when a palletizing setting with two units of
SCARA axes existing together is indicated, “Error No. B80 Indication Prohibited
Axis Error” will occur. Establish the setting to make all the operating axes the
same SCARA axes or the linear axes for the palletizing setting at the palletizing
point arch motion movement.
(Note 2) The palletize point arch motion operation of SCARA axis is PTP operation and the
linear drive axis is CP operation.
506
(Note 3) The palletize point arch motion operation cannot be performed for linear drive
axes in PX/QX.
The PZ-axis coordinate of the end point corresponds to the PZ-axis component of the
position coordinate of the palletizing point, if any, plus the palletizing Z-axis offset. If the PZ
component is not available, then the PZ-axis coordinate of the start point, plus the palletizing
Z-axis offset, is used. (Normally the offset is added to all applicable positions such as arch
trigger and Z points.)
An error occurs if the palletizing start-point arch trigger is set below the start point, or
palletizing end-point arch trigger is set below the end point. (Note: “Above” and “below” have
nothing to do with the positive and negative directions of coordinates.)
The PZ-axis up direction refers to the direction of moving from the start point to Z point (or
opposite direction in the case of down direction) and has nothing to do with the magnitude
correlation of coordinate values. Accordingly, always check the actual operating directions
5. SEL Commands
when this command is used.
PZ-axis down operation is performed after an up process command value has been output.
Accordingly, the following operations may take place depending on how the palletizing arch
trigger and Z points are set.
Z point
In these cases, change the palletizing arch triggers and PZ point to increase the efficiency of
operation.
If composite palletizing is set (PEXT), any axis whose data is available, other than the PX,
PY and PZ-axes, also operates. However, the composite axis starts/ends its operation at a
position above the applicable arch trigger. If the R-axis is set with a PEXT command, the
R-axis starts/ends its operation above the applicable arch trigger.
Executing this command does not increment the palletizing position by 1.
507
[24] Building of Pseudo-Ladder Task
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Specify “1” (User HIGH) if you wish the target task to be processed before other
tasks.
This command can also be used with non-ladder tasks.
Task level change (0: User NORMAL, 1: User HIGH) is not a required component,
but specifying User HIGH will require a TSLP command explained below.
(Without TSLP, tasks of the User NORMAL level will not be processed.)
508
TPCD (Specify processing to be performed when input condition is not
specified)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Prohibited Prohibited TPCD 0 or 1 Prohibited CP
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Specify the processing to be performed when input condition is not specified.
(0: Execute, 1: Follow the input condition in the last executed step)
In a ladder task, always input “1” (Follow the input condition in the last executed
step) in operand 1.
In a non-ladder task, always input “0” (Execute). (The default value is “0”.)
509
TSLP (Task sleep)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Prohibited Prohibited TCLP Time Prohibited CP
Applicable models
All models [Refer to Section 5.1 for details of models]
5. SEL Commands
[Function] Set the time during which the applicable task will sleep, in order to distribute the
processing time to other tasks.
If the task level is set to User HIGH, this command must always be specified.
The applicable task will sleep during the set time.
The time in operand 1 is set in msec.
An appropriate time setting must be examined on the actual system. (Normally
approx. 1 to 3 is set.)
(If the ladder statement becomes long, state this command multiple times
between steps, as necessary.)
This command can also be used with non-ladder tasks.
510
[25] Extended Command
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
5. SEL Commands
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
SAXD
{
{
(TTA only
× { { { × { { { { (V1.18
V1.22
or later)
or later)
[Function] Store the motor current value (percentage of the rated current) corresponding to
the “axis number” specified in operand 2, in variable 99.
Note: • When comparing with “Constant (Non-Pressing) Torque Limit (Upper)” set in
Extension Command Code 250, have 5% or more of a margin.
511
ECMD2 (Get home sensor status)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Optional Optional ECMD 2 Axis number CC
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
5. SEL Commands
SAXD
[Function] Reflect in the output the status of the home sensor corresponding to the “axis
number” specified in operand 2.
Note: The acquired home sensor status is not the electrical level of H/L, but the
operating/non-operating status determined by taking into consideration the
setting of axis-specific parameter No. 14, “Home sensor input polarity”.
If 0 (Not used) is set in axis-specific parameter No. 14, “Home sensor input
polarity”, the sensor status (output) is deemed indeterminable and use of the
sensor is prohibited.
The specified output port/flag is operated only when this command has been
executed. Accordingly, this command must be executed repeatedly if you want
to constantly reflect the sensor status in the output port/flag.
512
ECMD3 (Get overrun sensor status)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Optional Optional ECMD 3 Axis number CC
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
5. SEL Commands
SAXD
[Function] Reflect in the output the status of the overrun sensor corresponding to the “axis
number” specified in operand 2.
Note: The acquired overrun sensor status is not the electrical level of H/L, but the
operating/non-operating status determined by taking into consideration the
setting of axis-specific parameter No. 15, “Overrun sensor input polarity”.
If 0 (Not used) is set in axis-specific parameter No. 15, “Overrun sensor input
polarity”, the sensor status (output) is deemed indeterminable and use of the
sensor is prohibited.
The specified output port/flag is operated only when this command has been
executed. Accordingly, this command must be executed repeatedly if you want
to constantly reflect the sensor status in the output port/flag.
513
ECMD4 (Get creep sensor status)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Optional Optional ECMD 4 Axis number CC
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
SAXD
5. SEL Commands
[Function] Reflect in the output the status of the creep sensor corresponding to the “axis
number” specified in operand 2.
Note: The acquired creep sensor status is not the electrical level of H/L, but the
operating/non-operating status determined by taking into consideration the
setting of axis-specific parameter No. 16, “Creep sensor input polarity”.
If 0 (Not used) is set in axis-specific parameter No. 16, “Creep sensor input
polarity”, the sensor status (output) is deemed indeterminable and use of the
sensor is prohibited.
The specified output port/flag is operated only when this command has been
executed. Accordingly, this command must be executed repeatedly if you want
to constantly reflect the sensor status in the output port/flag.
514
ECMD5 (Get axis operation status)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Optional Optional ECMD 5 Axis number CC
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
5. SEL Commands
SAXD
[Function] Store the status of the axis specified in operand 2, in variable 99.
The axis status is indicated by the ON/OFF level of each bit, as shown below.
Accordingly, the obtained value must be converted to a binary value for
interpretation.
Variable 99
7 6 5 4 3 2 1 0
(Note) If an invalid axis number is specified in operand 2, “CC4, SEL data error” will
generate.
Binary notation
Variable 99
0 0 0 1 1 1 0 0
515
ECMD6 (Current position acquirement on each axis system (1 axis
direct)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Integer
Optional Optional ECMD 6 Variable CC
number
Applicable models
XSEL
XSEL XSEL
5. SEL Commands
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
SAXD
(V1.20 or (TTA only)
later)
[Function] By using data stored in the four integer variables in a row from the integer
variable number indicated in Operation 2, the current position expressed in each
axis coordinate system of the indicated axis numbers gets read out to the variable
indicated in the current position storage variable number.
(Note 2) The units in the result of the readout of the current position for each axis system
are as shown below.
SCARA 1st, 2nd and 4th Axes (5th, 6th, 8th axis) : deg. (degrees)
SCARA 3rd Axis (7th axis) : mm
[Example] LET 200 4 Set the 4th axis (R-axis) to Variable No. 200
LET 201 300 Set Current Position Storage Variable No. (300) to
Variable No. 201
LET 202 0 Set 0 to Variable No. 202
LET 203 0 Set 0 to Variable No. 203
ECMD 6 200 The current position of each coordinate system on
R-axis is read out to Variable No. 300.
516
ECMD7 (Get total movement count)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Axis
Optional Optional ECMD 7 CC
number
Applicable models
TTA (Main application V2.08 or later)
MSEL (Main application V2.08 or later)
5. SEL Commands
[Function] The total movement count (times) of “Axis number” indicated in operand 2 gets
stored in the variable 99.
The total movement count available to obtain by this command is from 0 to
2147483647 times.
What can be obtained by this command is the total movement count in the
maintenance information.
[Example] ECMD 7 1 The total movement count of the first axis gets
stored in the variable 99.
In the case shown in the figure below, 592 will be stored in the variable 99.
Variable 99 592
517
ECMD8 (Get total mileage)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Axis
Optional Optional ECMD 8 CC
number
Applicable models
TTA (Main application V2.08 or later)
MSEL (Main application V2.08 or later)
5. SEL Commands
[Function] The total mileage (unit in m if linear drive and in 1000deg if rotary drive) of “Axis
number” indicated in operand 2 gets stored in the variable 99.
What can be obtained by this command is the total mileage in the maintenance
information.
The total mileage available to obtain by this command is from 0 to
2147483647m.
[Example] ECMD 8 1 The total mileage of the first axis gets stored in the
variable 99.
In the case shown in the figure below, 215 will be stored in the variable 99.
Variable 99 215
518
ECMD9 (Get position deviation)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Axis
Optional Optional ECMD 9 CC
number
Applicable models
TTA (Main application V2.10 or later)
MSEL (Main application V2.10 or later)
5. SEL Commands
[Function] The position deviation (encoder pulse unit) of “Axis number” indicated in operand
2 gets stored in the variable 99.
[Example] ECMD 9 1 The position deviation of the first axis gets stored in
the variable 99.
519
z ECMD10 (Acquirement of Overload Level)
Extension Command, declaration Output
Input condition
condition Command, operation type
(I/O, flag) Operand 1 Operand 2
(LD, A, O, AB, OB) declaration (Output, flag)
Axis
Optional Optional ECMD 10 CC
number
Applicable models
[Function] The overload level (unit in %) of “Axis Number” indicated in Operation 2 should
5. SEL Commands
520
z ECMD11 (Acquirement of Encoder Overheated Level)
Extension Command, declaration Output
Input condition
condition Command, operation type
(I/O, flag) Operand 1 Operand 2
(LD, A, O, AB, OB) declaration (Output, flag)
Axis
Optional Optional ECMD 11 CC
number
Applicable models
[Function] The encoder overheated level (unit in %) of “Axis Number” indicated in Operation
5. SEL Commands
2 should be stored in Variable 99.
“5C7: Encoder Overheated Error” will be generated if the encoder overheated
level exceeds 100%. In order to reduce the encoder overheated level, it is
effective to decrease the acceleration setting or increase the rate of pause.
(Note) If this command gets executed to an axis with an encoder not equipped with a
thermo sensor, 0 should be stored to Variable 99.
521
ECMD20 (Get parameter value)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Variable
Optional Optional ECMD 20 CC
number
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
5. SEL Commands
QCT SXD
SAXD
[Function] Store the value of the specified parameter in variable 99, using the data stored in
the three consecutive variables starting from the one corresponding to the
variable number specified in operand 2.
The contents and ranges for the variable data settings are as shown below. Setting
outside the specified range will generate “CC4 SEL data error”.
When Operand 2 = n
Setting value and range for each variable
Variable Description of
No. setting Common to
I/O Axis-specific Driver Encoder I/O device Other
all axes
Parameter
n 0 1 2 3 4 5 7
type
1 to 8* 1 to 8* 1 to 8*
Device (up to (up to (up to
n+1 number/axis 0 0 number of number of number of 0 to 9 0
number connected connected connected
axes) axes) axes)
Parameter
n+2 1 to 999 1 to 400 1 to 250 1 to 112 1 to 30 1 to 112 1 to 200
number
Specify an integer variable in operand 2 (At this time, make sure that three
variables can be ensured.). If a variable of non-integer type is specified, “C3C,
Variable number error” will generate.
(Note) Setting of Parameter Type = 10 enables to acquire parameters for the pulse I/O
board. [See the next page.]
522
ECMD20 (Get parameter value (Extension Motion Control Board
Parameters)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Variable
Optional Optional ECMD 20 CC
number
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
5. SEL Commands
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
SAXD
[Function] Store the value of the specified parameter in variable 99, using the data stored in
the five consecutive variables starting from the one corresponding to the variable
number specified in Operand 2.
The contents and ranges for the variable data settings are as shown below. Setting
outside the specified range will generate “C44 SEL data error”.
When Parameter Type = 10 (Pulse I/O board: Feature dedicated for XSEL ,
(XSEL-RA/SA excluded) is selected, Parameter Detail Type (n + 3) and Channel
Number (n + 4) are required of following.
When Operand 2 =n
Variable
Description of setting Setting value and range for each variable
No.
n Parameter type 10: Pulse I/O board
n+1 Device number 0 to 1
n+2 Parameter number 1 to 100
0 : Common
n+3 Parameter detail type 1 : Input Channel
2 : Output Channel
Specify an integer variable in operand 2. At this time, make sure to secure five
(for XSEL) consecutive variables. C3C will be generated when a variable other
than integer variables is indicated.
[Example] LET 1250 10 Variable No. 1250 = Parameter type (Pulse I/O board)
LET 1251 1 Variable No. 1251 = Device number
LET 1252 2 Variable No. 1252 = Parameter number (No. 2)
LET 1253 2 Variable No. 1252 = Parameter Detail Type (Output
Channel)
LET 1253 5 Variable No. 1252 = Channel number (Output
channel 5)
ECMD 20 1250 Extended command 20 (Use variable No. 1250
through 1252)
Data for the value set in No. 2 (Pulse output mode)
in the pulse I/O board parameter output channel 5 is
stored to Variable 99.
523
z ECMD250 (Set torque limit/torque limit over detection time)
Extension Command, declaration
Input condition Output
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Optional Optional ECMD 250 Axis pattern CC
Applicable models
XSEL XSEL ASEL
XSEL XSEL XSEL XSEL
-P/Q/ -RX/SX/ PSEL TT/TTA MSEL
-J/K -R/S -JX/KX -PX/QX
PCT/QCT RXD/SXD SSEL
×
SSEL {
5. SEL Commands
× { { × { { × Δ(Note1)
(V0.52
or later)
Note 1 Appliance to High-Resolution
Applicable if main application V2.08 or later and driver V1.0 or later
[Function] Set the steady-state (non-push) torque limit (upper limit)/steady-state (non-push)
torque limit over detection time. Use the data stored in three successive integer
variables, starting from the integer variable number specified in operand 2, to
temporarily change the applicable parameters (including internal parameters).
Operand 2 = n
Variable No. n ----- Target axis pattern (decimal entry)
* Example of decimal entry: 1 = Axis 1 only
2 = Axis 2 only
3 = Axes 1 and 2
7 = Axes 1, 2 and 3
15 = Axes 1, 2, 3 and 4
Variable No. n+1 = Set value of steady-state (non-push) torque limit (upper limit)
(1% or more of the rating to the value set in driver card
parameter No. 40, “Maximum torque limit (%) Except, individual
upper limit for each axis for MSEL”)
* If the set value is greater than the upper limit specific to each
axis, the upper limit specific to the axis is set.
Variable No. n+2 = Set value of steady-state (non-push) torque limit over detection
time
(0 to 20000msec)
* Set 1 or greater if you want to use this command to “detect a
contact/heavy load” or move an axis.
* If 0 is set, the detection time becomes invalid (infinite). This
setting is used mainly to “limit the torque of the supporting
axis (horizontal only) in fitting application”. If 0 (infinite) is set,
the “steady-state (non-push) torque limit (upper limit)” is
limited to a maximum of 70% to prevent overheating.
Variable No. n+3 = 0 is set. (Reserved. * May be made accessible in the future.)
Variable No. n+4 = 0 is set. (Reserved. * May be made accessible in the future.)
If a command specifying the “steady-state (non-push) torque
limit (upper limit)” has remained effective for the “steady-state
(non-push) torque limit over detection time” or longer in steady
state (not pushing), appropriate processing is performed based
on the parameter below. Note that processing based on the
following parameter is not performed if the “steady-state
(non-push) torque limit over detection time” is set to 0 (infinite):
All-axis parameter No. 19, “Type of processing upon
steady-state (non-push) torque limit over (priority on overload
and other driver errors)”
0: Operation-cancellation level error (Recommended)
(Error No. 420: Steady-state (non-push) torque limit over error)
1: Operation cancellation (SEL command output = OFF)
524
[Example 1] LET 290 3 Set the target axis pattern (axes 1 and 2) in integer
variable 290.
LET 291 80 Set the steady-state torque limit in integer variable
291.
LET 292 1000 Set the steady-state torque limit over detection time
in integer variable 292.
ECMD 250 290 Read the values of three successive variables,
starting from variable 290.
Set axes 1 and 2.
Steady-state torque limit = 80%, steady-state
torque limit over detection time = 10000msec
MOVP 2 Move to position No. 2 under the condition set by
ECMD250.
* To return to a normal state:
[Example 2] LET 290 3 Set the target axis pattern (axes 1 and 2) in integer
5. SEL Commands
variable 290.
LET 291 1000 Set the steady-state torque limit in integer variable
291 (specification of the upper limit specific to each
axis).
LET 292 20000 Clear the steady-state torque limit over detection
time in integer variable 292. (Clear 20000.)
STOP *290 Clear the low-torque axis deviation counter.
ECMD 250 290 Read the values of three successive variables,
starting from variable 290.
Steady-state torque limit = Upper limit specific to
each axis (maximum torque return)
Steady-state torque limit over detection time
(20000msec)
MOVP 2 Move to position 2 at the steady-state torque.
(Note 1) If the torque is set low, dropping (vertical axis, etc.) and overshooting occurs. If
the torque is lowered during high-speed operation, overshooting occurs due to
insufficient torque.
(Note 2) If the torque is lowered during high-speed operation, normal deceleration cannot
be performed due to insufficient torque and overshooting occurs as a result,
creating a dangerous situation.
(Note 3) If positioning operation is performed at low torque, the axis may remain stopped
near the positioning target due to insufficient torque.
When moving an axis, be sure to set the “steady-state (non-push) torque limit
over detection time” to 1msec or longer to detect a steady-state (non-push)
torque limit over event (timeout).
* If the “steady-state (non-push) torque limit over detection time” is set to 0 to
“limit the torque of the supporting axis (horizontal only) in fitting application”,
positioning operation to the coordinate of the torque-limited axis is performed
when returning after the fitting operation, if the position data for return operation
after the fitting operation (via a PUSH command, etc.) includes the coordinate of
the supporting axis (torque-limited axis) in fitting application.
As a result, the axis may remain stopped near the target position due to
insufficient torque. For the position data used in the return operation after the
fitting operation, set only the coordinate of the fitting operation axis (axis used
by a PUSH command, etc.).
(Note 4) If the torque is set extremely low, servo ON axes may move at very slow speed
due to an analog offset error, etc.
(Note 5) Even when the load is normal, the torque becomes slightly higher during
acceleration/deceleration. Determine appropriate settings (steady-state torque
limit and steady-state torque limit over detection time) to prevent false detection
of steady-state torque limit over events.
525
(Note 6) “Error No. C6B: Deviation overflow error” or “Error No. CA5: Stop deviation
overflow error” may be detected before “Error No. 420: Steady-state (non-push)
torque limit over error”. This is normal.
(Note 7) If the torque is changed to a high level from a low level at which axis movement
can no longer be guaranteed, be sure to issue a STOP command to low-torque
axes and clear the deviation counter before increasing the torque (from a low
level). If the torque setting is changed from low to high when deviations are still
accumulated, the axes may move without their speed being limited and thus a
dangerous situation may occur.
(Note 8) To return to the normal condition (maximum torque), expressly specify 1000% for
the “steady-state (non-push) torque limit (upper limit)” and 20000msec for the
“steady-state (non-push) torque limit over detection time”.
* If a value greater than the upper limit specific to each axis is set for the
5. SEL Commands
“steady-state (non-push) torque limit (upper limit)” of that axis, the upper limit
specific to the axis (approx. 100 to 400%) is set.
(Note 9) The following values are used upon power ON reset, software reset and start of
home return:
Steady-state (non-push) torque limit (upper limit) = Driver card parameter No. 40,
“Maximum toque limit (%) Except, individual upper limit for each axis for MSEL”
Steady-state (non-push) torque limit over detection time = 20000msec
(Note 10) If the “steady-state (non-push) torque limit (upper limit)” and “steady-state
(non-push) torque limit over detection time” are changed, the new settings will
remain effective even after the SEL program ends.
When building a system using this extended command, therefore, expressly set
the “steady-state (non-push) torque limit (upper limit)” and “steady-state
(non-push) torque limit over detection time” in all SEL programs, before any
operation is started in each program, using this extended command.
If you assume that the “steady-state (non-push) torque limit (upper limit)” and
“steady-state (non-push) torque limit over detection time” will be reset after the
end of operation in other programs, unexpected settings of “steady-state
(non-push) torque limit (upper limit)” and “steady-state (non-push) torque limit
over detection time” may be applied should the program abort due to an error,
etc., in which case unforeseen problems may result.
(Note 11) This extended command does not rewrite the value of driver card parameter No.
40, “maximum torque limit” (except, individual upper limit for each axis for MSEL)
itself (main CPU flash memory) (in non-volatile memory).
(Note 12) The motion taken when the controller is not applicable is as stated below.
Conditon Action
When main application part is in a “B16: SEL Operand Indication Error”
version not applicable should occur
When built-in PC board is not “C7A: Servo Unsupported Feature
applicable Error” should occur
When driver is in a version not “B25: Driver Unsupported Feature
applicable Error” should occur
526
ECMD280/290 (Conversion from each axis coordinates to work
coordinates in wrist unit equipped robot)
Extension Command, declaration Output
Input condition
condition Command, operation type
(I/O, flag) Operand 1 Operand 2
(LD, A, O, AB, OB) declaration (Output, flag)
Integer
Optional Optional ECMD 280/290 variable CC
number
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/ TT/
5. SEL Commands
SAX/ PSEL MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/ TTA
RAXD/ SSEL
QCT SXD
SAXD
[Function] The position in each axis coordinate system in a robot equipped with a wrist unit
should be converted into the position in the work coordinate system.
527
ECMD281/291 (Conversion from work coordinates to each axis
coordinates in wrist unit equipped robot)
Extension Command, declaration Output
Input condition
condition Command, operation type
(I/O, flag) Operand 1 Operand 2
(LD, A, O, AB, OB) declaration (Output, flag)
Integer
Optional Optional ECMD 281/291 variable CC
number
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/ TT/
SAX/ PSEL MSEL
5. SEL Commands
[Function] The position in work coordinate system in a robot equipped with a wrist unit
should be converted into the position in the each axis coordinate system.
(Note 1) Indicate the form automatic select when it is not necessary to specify the form for
the form to be converted. In this, the form to have the R-axis angle (absolute value)
minimum will be selected, which enables to have the movement time short.
(Note 2) When the form automatic select is indicated, and if the R-axis is an absolute value at
the same angle, NON FLIP will be selected.
528
* Work Coordinate Offset
For TTA and MSEL, set the work coordinate offset amount in the work coordinate system number
and execute SLWK Command, and the position will be at the point that is offset by the amount
set in the work coordinate system number.
In the same manner, if the offset amount is set in the position of the work coordinate offset
storage top position data number and the work coordinate offset storage top position data
number is indicated, the position after offset will be figured out.
[Refer to 1.4.5 (2) Positioning on Work Coordinate System]
5. SEL Commands
top position data number and the tool coordinate offset storage top position data number is
indicated, the position after offset will be figured out.
[Refer to 1.4.5 (2) Positioning using Tool Coordinate System Offset]
529
ECMD282/292 (Conversion from tool coordinates to work coordinates in
wrist unit equipped robot)
Extension Command, declaration Output
Input condition
condition Command, operation type
(I/O, flag) Operand 1 Operand 2
(LD, A, O, AB, OB) declaration (Output, flag)
Integer
Optional Optional ECMD 282/292 variable CC
number
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/ TT/
SAX/ PSEL MSEL
5. SEL Commands
[Function] The position in the tool coordinate system on a robot equipped with a wrist unit
(relative position from the tool tip) should be converted into the position in the
work coordinate system.
530
* Tool Coordinate Offset
For TTA and MSEL, set the tool coordinate offset amount in the tool coordinate system number
and execute SLTL Command, and the position will be at the point that is offset by the amount set
in the tool coordinate system number.
In the same manner, if the offset amount is set in the position of the tool coordinate offset storage
top position data number and the tool coordinate offset storage top position data number is
indicated, the position after offset will be figured out.
[Refer to 1.4.5 (2) Positioning using Tool Coordinate System Offset]
5. SEL Commands
531
ECMD300 (User system error output)
Extension Command, declaration Output
Input condition
condition Command, operation type
(I/O, flag) Operand 1 Operand 2
(LD, A, O, AB, OB) declaration (Output, flag)
Integer
Optional Optional ECMD 300 variable CC
number
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/ TT/
SAX/ PSEL MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/ TTA
RAXD/ SSEL
5. SEL Commands
QCT SXD
SAXD
[Function] If a system error (such as communication error to another controller and timeout)
is detected, a user system error (Error No. A00 (message level) or No. C00
(operation cancel level)) can be caused by executing this command. Also, in
case that program stop is required by detecting a system error, the program can
be stopped by executing this command.
Set the error information to the integral numbers from No. n+1 to No. n+4 set in
operand 2 and execute this command, and the information can be displayed in
Info. 1 to Info. 4 in the error list. The output part should turn ON if executed in
normal condition when Output Error Level = 0 (message level) and be alway OFF
when Output Error Level = 1 (operation cancel level).
532
[26] RC gateway function commands
5. SEL Commands
number number
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
SAXD
533
RPPT (Write RC-axis position data)
*1 439 RC Position Data Use Method Error when
a command was executed
RC position-data XSEL Can be used
use mode RC Cannot be used*1
Extension Command, declaration Output
Input condition
condition Command, operation type
(I/O, flag) Operand 1 Operand 2
(LD, A, O, AB, OB) declaration (Output, flag)
E N, Cnd Cmnd Operand 1 Operand 2 Pst
RC-axis Position
Optional Optional RPPT CP
number number
5. SEL Commands
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
SAXD
[Function] Write the value of variable 199 to the position corresponding to the specified
position data [mm].
534
RPCR (Clear RC-axis position data)
*1 439 RC Position Data Use Method Error when
a command was executed
RC position-data XSEL Can be used
use mode RC Cannot be used*1
Extension Command, declaration Output
Input condition
condition Command, operation type
(I/O, flag) Operand 1 Operand 2
(LD, A, O, AB, OB) declaration (Output, flag)
E N, Cnd Cmnd Operand 1 Operand 2 Pst
RC-axis Variable
Optional Optional RPCR CP
number number
5. SEL Commands
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
SAXD
[Function] Clear position data in the range specified by variable No. n and variable No. n+1.
After the data is cleared, the fields become blank.
535
RPCP (Copy RC-axis position data)
*1 439 RC Position Data Use Method Error when
a command was executed
RC position-data XSEL Can be used
use mode RC Cannot be used*1
Extension Command, declaration Output
Input condition
condition Command, operation type
(I/O, flag) Operand 1 Operand 2
(LD, A, O, AB, OB) declaration (Output, flag)
E N, Cnd Cmnd Operand 1 Operand 2 Pst
RC-axis Variable
Optional Optional RPCP CP
number number
5. SEL Commands
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
SAXD
[Function] Copy the position data specified by variable No. n and variable No. n+1.
536
RPRD (Read current RC-axis position)
*1 439 RC Position Data Use Method Error when
a command was executed
RC position-data XSEL Can be used
use mode RC Cannot be used*1
Extension Command, declaration Output
Input condition
condition Command, operation type
(I/O, flag) Operand 1 Operand 2
(LD, A, O, AB, OB) declaration (Output, flag)
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Position
Optional Optional RPRD Prohibited CP
number
5. SEL Commands
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
SAXD
[Function] Read into a position number the current position of each axis specified by an
RAXS command.
Important note: Before executing this command, set an axis pattern using an RAXS command.
If not, a “(43B) RC-axis pattern not-set error” occurs.
537
RPRQ (Read current RC-axis position (single-axis direct))
Applicable models
5. SEL Commands
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
SAXD
[Function] Read the current position of the RC-axis into the variable specified in operand 2.
The current position can be acquired faster than when a RPRD command is
used.
[Example] RPRQ 2 100 Read the current position of axis 2 into variable No.
100.
538
RPVL (Write RC-axis speed data)
*1 439 RC Position Data Use Method Error when
a command was executed
RC position-data XSEL Can be used
use mode RC Cannot be used*1
Extension Command, declaration Output
Input condition
condition Command, operation type
(I/O, flag) Operand 1 Operand 2
(LD, A, O, AB, OB) declaration (Output, flag)
E N, Cnd Cmnd Operand 1 Operand 2 Pst
RC-axis Position
Optional Optional RPVL CP
number number
5. SEL Commands
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
SAXD
[Function] Write the value of variable 199 to the speed [mm/s] corresponding to the position
data specified in operand 2.
539
RPAD (Write RC-axis acceleration/deceleration data)
*1 439 RC Position Data Use Method Error when
a command was executed
RC position-data XSEL Can be used
use mode RC Cannot be used*1
Extension Command, declaration Output
Input condition
condition Command, operation type
(I/O, flag) Operand 1 Operand 2
(LD, A, O, AB, OB) declaration (Output, flag)
E N, Cnd Cmnd Operand 1 Operand 2 Pst
RC-axis Position
Optional Optional RPAD CP
number number
5. SEL Commands
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
SAXD
[Function] Write the value of variable 199 to the acceleration/specification [G] corresponding
to the position data specified in operand 2.
540
RPIP (Write RC-axis in-position width data)
*1 439 RC Position Data Use Method Error when
a command was executed
RC position-data XSEL Can be used
use mode RC Cannot be used*1
Extension Command, declaration Output
Input condition
condition Command, operation type
(I/O, flag) Operand 1 Operand 2
(LD, A, O, AB, OB) declaration (Output, flag)
E N, Cnd Cmnd Operand 1 Operand 2 Pst
RC-axis Position
Optional Optional RPIP CP
number number
5. SEL Commands
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
SAXD
[Function] Write the value of variable 199 to the in-position width [mm] corresponding to the
position data specified in operand 2.
541
RPTQ (Write RC-axis current-limiting value data for push-motion
operation)
*1 439 RC Position Data Use Method Error when
a command was executed
RC position-data XSEL Can be used
use mode RC Cannot be used*1
Extension Command, declaration Output
Input condition
condition Command, operation type
(I/O, flag) Operand 1 Operand 2
(LD, A, O, AB, OB) declaration (Output, flag)
E N, Cnd Cmnd Operand 1 Operand 2 Pst
RC-axis Position
Optional Optional RPTQ CP
number number
5. SEL Commands
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
SAXD
[Function] Write the value of variable 199 to the current-limiting value for push-motion
operation [%] corresponding to the position data specified in operand 2.
Variable 199 50
542
RGVL (Read RC-axis speed data)
*1 439 RC Position Data Use Method Error when
a command was executed
RC position-data XSEL Can be used
use mode RC Cannot be used*1
Extension Command, declaration Output
Input condition
condition Command, operation type
(I/O, flag) Operand 1 Operand 2
(LD, A, O, AB, OB) declaration (Output, flag)
E N, Cnd Cmnd Operand 1 Operand 2 Pst
RC-axis Position
Optional Optional RGVL CP
number number
5. SEL Commands
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
SAXD
[Function] Read into variable 199 the speed [mm/s] corresponding to the position data
specified in operand 2.
[Example] RGVL 2 1 Read into variable 199 the speed specified under
RC position No. 1 of axis 2.
543
RGAD (Read RC-axis acceleration/deceleration data)
*1 439 RC Position Data Use Method Error when
a command was executed
RC position-data XSEL Can be used
use mode RC Cannot be used*1
Extension Command, declaration Output
Input condition
condition Command, operation type
(I/O, flag) Operand 1 Operand 2
(LD, A, O, AB, OB) declaration (Output, flag)
E N, Cnd Cmnd Operand 1 Operand 2 Pst
RC-axis Position
Optional Optional RGAD CP
number number
5. SEL Commands
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
SAXD
[Function] Read into variable 199 the acceleration/deceleration [G] corresponding to the
position data specified in operand 2.
544
RGIP (Read RC-axis in-position width data)
*1 439 RC Position Data Use Method Error when
a command was executed
RC position-data XSEL Can be used
use mode RC Cannot be used*1
Extension Command, declaration Output
Input condition
condition Command, operation type
(I/O, flag) Operand 1 Operand 2
(LD, A, O, AB, OB) declaration (Output, flag)
E N, Cnd Cmnd Operand 1 Operand 2 Pst
RC-axis Position
Optional Optional RGIP CP
number number
5. SEL Commands
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
SAXD
[Function] Read into variable 199 the in-position width [mm] corresponding to the position
data specified in operand 2.
545
RGTQ (Read RC-axis current-limiting value data for push-motion
operation)
*1 439 RC Position Data Use Method Error when
a command was executed
RC position-data XSEL Can be used
use mode RC Cannot be used*1
Extension Command, declaration Output
Input condition
condition Command, operation type
(I/O, flag) Operand 1 Operand 2
(LD, A, O, AB, OB) declaration (Output, flag)
E N, Cnd Cmnd Operand 1 Operand 2 Pst
RC-axis Position
Optional Optional RGTQ CP
number number
5. SEL Commands
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
SAXD
[Function] Read into variable 199 the current-limiting value for push-motion operation [%]
corresponding to the position data specified in operand 2.
Variable 199 30
546
RAXS (Set RC-axis pattern)
Applicable models
5. SEL Commands
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
SAXD
[Function] Set an axis pattern covering axes 8 to 15 in operand 1, and axis pattern covering
axes 0 to 7 in operand 2.
The axes set by the axis pattern are operated simultaneously.
Operand 1 Operand 2
Axis 8 Axis 0
・ ・
・ ・
・ ・
Axis 15 Axis 7
Always set an axis pattern if the commands listed below are used.
(Set 1 for the axis numbers used, and 0 for the axis number not used.)
If an axis pattern is not set, a “(43B) RC-axis pattern not-set error” occurs:
RPRD : Read current RC-axis position
RSON : Turn ON RC-axis servo
RSOF : Turn OFF RC-axis servo
RHOM : Return RC-axis to home
RMVP : Move RC-axis by position specification
RMPI : Move RC-axis incrementally by position specification
RSTP : Decelerate RC-axis to stop
547
RSON (Turn ON RC-axis servo)
Applicable models
XSEL
XSEL XSEL
5. SEL Commands
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
SAXD
Important note: Before executing this command, set an axis pattern using an RAXS command.
If not, a “(43B) RC-axis pattern not-set error” occurs.
[Example] RAXS 0 1100 Set an axis pattern that uses axes 2 and 3.
548
RSOF (Turn OFF RC-axis servo)
Applicable models
XSEL
5. SEL Commands
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
SAXD
[Function] Turn OFF the servo of each RC-axis specified by an RAXS command.
Important note: Before executing this command, set an axis pattern using an RAXS command.
If not, a “(43B) RC-axis pattern not-set error” occurs.
549
RHOM (Return RC-axis to home)
Applicable models
XSEL
XSEL XSEL
5. SEL Commands
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
SAXD
550
RMVP (Move RC-axis by position specification)
Applicable models
5. SEL Commands
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
SAXD
[Function] Move each RC-axis specified by an RAXS command to the position number in operand 1.
The output turns OFF when the axis movement is started, and turns ON when completed.
Caution: The specific operation varies between the XSEL position-data use mode and RC
position-data use mode.
1) XSEL position-data use mode
Move via PTP to the position corresponding to the position number in operand 1.
2) RC position-data use mode
The specific operation varies depending on the position data in the RC
controller.
Position data item in RC
No.
Push-motion Incremental Description of operation
Move via PTP to the position corresponding to the
1 0 0
position number in operand 1.
Move incrementally (via PTP) by the travel
2 0 1
corresponding to the position number in operand 1.
Move to the position corresponding to the position
number in operand 1 and then perform push-motion
3 Other than 0 0 operation.
The output turns OFF if any one axis has been
pushed missed the load.
Move to the position corresponding to the position
number in operand 1 and then perform push-motion
4 Other than 0 1 operation.
The output turns OFF if any one axis has been
pushed and missed the load.
Important note: Before executing this command, set an axis pattern using an RAXS command.
If not, a “(43B) RC-axis pattern not-set error” occurs.
551
RMPI (Move RC-axis incrementally by position specification)
*1 439 RC Position Data Use Method Error when
a command was executed
RC position-data XSEL Can be used
use mode RC Cannot be used*1
Extension Command, declaration Output
Input condition
condition Command, operation type
(I/O, flag) Operand 1 Operand 2
(LD, A, O, AB, OB) declaration (Output, flag)
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Position
Optional Optional RMPI Prohibited PE
number
5. SEL Commands
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
SAXD
[Function] Move each RC-axis specified by an RAXS command by the travel corresponding
to the position data number in operand 1.
The output turns OFF when the axis movement is started, and turns ON when
completed.
Important note: Before executing this command, set an axis pattern using an RAXS command.
If not, a “(43B) RC-axis pattern not-set error” occurs.
(Note 1) 405 RC Gateway Communication Type Error will occur in Fieldbus Type.
552
RMVD (Move RC-axis absolutely by direct numerical specification of
position)
*1 439 RC Position Data Use Method Error when
a command was executed
RC position-data XSEL Can be used
use mode RC Cannot be used*1
Extension Command, declaration Output
Input condition
condition Command, operation type
(I/O, flag) Operand 1 Operand 2
(LD, A, O, AB, OB) declaration (Output, flag)
E N, Cnd Cmnd Operand 1 Operand 2 Pst
RC-axis Variable
Optional Optional RMVD PE
number number
5. SEL Commands
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
SAXD
[Function] Perform absolute position movement using the values in variable No. n to
variable No. n+3.
The output turns OFF when the axis movement is started, and turns ON when
completed.
553
RMDI (Move RC-axis incrementally by direct numerical specification of
position)
*1 439 RC Position Data Use Method Error when
a command was executed
RC position-data XSEL Can be used
use mode RC Cannot be used*1
Extension Command, declaration Output
Input condition
condition Command, operation type
(I/O, flag) Operand 1 Operand 2
(LD, A, O, AB, OB) declaration (Output, flag)
E N, Cnd Cmnd Operand 1 Operand 2 Pst
RC-axis Variable
Optional Optional RMDI PE
number number
5. SEL Commands
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
SAXD
[Function] Perform incremental position movement using the values in variable No. n to
variable No. n+3.
The output turns OFF when the axis movement is started, and turns ON when
completed.
554
RPUS (Move RC-axis via push motion)
*1 439 RC Position Data Use Method Error when
a command was executed
RC position-data XSEL Can be used
use mode RC Cannot be used*1
Extension Command, declaration Output
Input condition
condition Command, operation type
(I/O, flag) Operand 1 Operand 2
(LD, A, O, AB, OB) declaration (Output, flag)
E N, Cnd Cmnd Operand 1 Operand 2 Pst
RC-axis Position
Optional Optional RPUS PE
number number
5. SEL Commands
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
SAXD
[Function] The axis moves to the target position corresponding to the position number in
operand 2, and then push the load over the in-position width specified by the
position data.
The push force is set by the current-limiting value for push-motion operation
among the position data.
The output turns ON when a push action is confirmed, and turns OFF if a miss is
detected.
[Operand 1 setting type]
Caution: If a positive sign is appended to positioning width data, the load is pushed in the
direction of increasing coordinates from the start point of the RPUS command
toward the target position.
If a negative sign is appended, the load is pushed in the direction of decreasing
coordinates. (The operation is different from when a PUSH command is used.)
Applicable models
XSEL
XSEL XSEL
5. SEL Commands
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
SAXD
Notice : Before executing this command, set an axis pattern using an RAXS command.
If not, a “(43B) RC-axis pattern not-set error” occurs.
556
RCST (Read RC-axis status)
Applicable models
5. SEL Commands
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
SAXD
[Function] Read the RC-axis status into the variable number in operand 1.
Read the completed position number into variable n+1. (Refer to “Note 2”.)
Notice 1: The specific status varies between the XSEL position-data use mode and RC
position-data use mode.
557
RC-axis status bit structure
XSEL position-data use mode RC position-data use mode
Bit
Name Explanation Name Explanation
27-31 – Reserved – Reserved
RC-axis alarm RC-axis alarm
(Error detected by the XSEL) (Error detected by the XSEL)
* When ALM turns ON, ALMX * When ALM turns ON, ALMX
26 ALMX also turns ON. However, ALM ALMX also turns ON. However, ALM
may not turn ON even if ALMS may not turn ON even if ALMS
turns ON depending on the turns ON depending on the
error. error.
25 USE RC-axis in use USE RC-axis in use
24 LNK RC-axis linked LNK RC-axis linked
5. SEL Commands
Notice 2: Completed position numbers are set only in the RC position-data use mode.
In the XSEL position-data use mode, this bit is always set to 0.
[Example] RCST 200 10 Acquire the status of RC-axis 10 into variable 200.
558
[27] Extension Motion Control Function
Applicable models
XSEL
XSEL XSEL
5. SEL Commands
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
SAXD
Caution
The counter clear cannot be performed when the pulse I/O board axis is in synchronizing
operation with the specified channel used as the master axis.
[Example 1] XCRP 0 It clears the counter for the pulse input channel
No. 0.
559
XGTP (Acquire the current value for extension motion control pulse input
counter)
Extension Command, declaration Output
Input condition
condition Command, operation type
(I/O, flag) Operand 1 Operand 2
(LD, A, O, AB, OB) declaration (Output, flag)
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Pulse input
Optional Optional XGTP Prohibited CP
channel number
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
5. SEL Commands
[Function] It reads the current value for the pulse input channel counter specified in
Operand 1 into Variable 99.
Caution
The pulse I/O board input channel is a signed 32-bit counter.
560
XPGT (Read extension motion control axis position data)
Extension Command, declaration Output
Input condition
condition Command, operation type
(I/O, flag) Operand 1 Operand 2
(LD, A, O, AB, OB) declaration (Output, flag)
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Position
Optional Optional XPGT Axis number CC
number
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
5. SEL Commands
RAXD/ SSEL
QCT SXD
SAXD
[Function] It reads the position data location [mm] specified in Operand 2 on the Extension
motion control axis specified in Operand 1 into Variable 199 (minimum effective
digit number = 3).
[Example 1] XPGT 2 3 It reads the position set in Position No. 3 of the 2nd
axis into Variable 199.
Caution
If ineffective position data is specified in Operand 2, Variable 199 becomes non-operated and the
output section is turned OFF.
561
XPPT (Write extension motion control axis position data)
Extension Command, declaration Output
Input condition
condition Command, operation type
(I/O, flag) Operand 1 Operand 2
(LD, A, O, AB, OB) declaration (Output, flag)
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Position
Optional Optional XPPT Axis number CP
number
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
5. SEL Commands
QCT SXD
SAXD
[Function] It reads the position data location [mm] specified in Operand 2 on the Extension
motion control axis specified in Operand 1 into Variable 199 (minimum effective
digit number = 3).
562
XPCR (Erase extension motion control axis position data)
Extension Command, declaration Output
Input condition
condition Command, operation type
(I/O, flag) Operand 1 Operand 2
(LD, A, O, AB, OB) declaration (Output, flag)
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Variable
Optional Optional XPCR Axis number CP
number
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
5. SEL Commands
RAXD/ SSEL
QCT SXD
SAXD
[Function] It erases the Extension motion control axis position data specified in Operand 1
by using the two variables in a row from Variable No. n specified in Operand 2.
The erased data becomes a blank.
563
XPCP (Copy extension motion control axis position data)
Extension Command, declaration Output
Input condition
condition Command, operation type
(I/O, flag) Operand 1 Operand 2
(LD, A, O, AB, OB) declaration (Output, flag)
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Variable
Optional Optional XPCP Axis number CP
number
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
5. SEL Commands
QCT SXD
SAXD
[Function] It copies the Extension motion control axis position data specified in Operand 1
by using the two variables in a row from Variable No. n specified in Operand 2.
564
XPRD (Read extension motion control axis current command position)
Extension Command, declaration Output
Input condition
condition Command, operation type
(I/O, flag) Operand 1 Operand 2
(LD, A, O, AB, OB) declaration (Output, flag)
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Optional Optional XPRD Positio number Prohibited CP
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
5. SEL Commands
RAXD/ SSEL
QCT SXD
SAXD
[Function] It reads the current order position of the Extension motion control axis specified
by XAXS Command into the position number specified in Operand 1.
Caution
Make sure to set the axis pattern by XAXS or XA16 Command before executing this command.
If the setting is not established, Error No. 445 “Extension motion control board axis pattern not
set error” (XSEL-P/Q/PCT/QCT/R/S), No. 4B3 “Extension motion control axis pattern not set
error” (XSEL-RA/SA/RAX/SAX/RAXD/SAXD).
he position acquired in this command is the current order position from the pulse I/O board.
Make sure to perform a home-return operation before executing this command.
(XSEL-P/Q/PCT/QCT/R/S)
[Example 1] XAXS 0 111 Set an pattern that uses axes 0,1 and 2.
XPRD 100 It reads the current order position of 0 to 2 axes into
Position No. 100.
[Example 2] XAXS 0 111 Set an pattern that uses axes 0,1 and 2.
LET 1 100 Assign 100 to variable 1.
XPRD *1 It reads the current order position of 0 to 2 axes
into the position in Content No. 100 of Variable 1.
565
XPRQ (Read extension motion control axis current command position
(single-axis direct))
Extension Command, declaration Output
Input condition
condition Command, operation type
(I/O, flag) Operand 1 Operand 2
(LD, A, O, AB, OB) declaration (Output, flag)
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Variable
Optional Optional XPRQ Axis number CP
number
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
5. SEL Commands
[Function] It reads the current order position of the Extension motion control axis specified
in Operand 1 into variable specified in Operand 2 (minimum effective digit
number = 3). It enables a faster acquirement of the current order position than
using XPRD Command.
Caution
The position acquired in this command is the current order position from the pulse I/O board. Make
sure to perform a home-return operation before executing this command.
(XSEL-P/Q/PCT/QCT/R/S)
[Example] XPRQ 2 100 It reads the current order position of the 2nd axis
into Variable No. 100.
566
XPVL (Write extension motion control axis speed data)
Extension Command, declaration Output
Input condition
condition Command, operation type
(I/O, flag) Operand 1 Operand 2
(LD,A,O,AB,OB) declaration (Output, flag)
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Position
Optional Optional XPVL Axis number CP
number
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
5. SEL Commands
RAXD/ SSEL
QCT SXD
SAXD
[Function] It writes the value in Variable 199 to the position data speed [mm/s] specified in
Operand 2 on the Extension motion control axis specified in Operand 1
(minimum effective digit number = 2).
567
XPAC (Write extension motion control axis acceleration data)
Extension Command, declaration Output
Input condition
condition Command, operation type
(I/O, flag) Operand 1 Operand 2
(LD, A, O, AB, OB) declaration (Output, flag)
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Position
Optional Optional XPAC Axis number CP
number
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
5. SEL Commands
QCT SXD
SAXD
[Function] It writes the value in Variable 199 to the position data acceleration [G] specified in
Operand 2 on the Extension motion control axis specified in Operand 1
(minimum effective digit number = 2).
568
XPDC (Write extension motion control axis deceleration data)
Extension Command, declaration Output
Input condition
condition Command, operation type
(I/O, flag) Operand 1 Operand 2
(LD, A, O, AB, OB) declaration (Output, flag)
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Position
Optional Optional XPDC Axis number CP
number
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
5. SEL Commands
RAXD/ SSEL
QCT SXD
SAXD
[Function] It writes the value in Variable 199 to the position data deceleration [G] specified
in Operand 2 on the Extension motion control axis specified in Operand 1
(minimum effective digit number = 2).
569
XPIP (Write extension motion control axis positioning complete width
data)
Extension Command, declaration Output
Input condition
condition Command, operation type
(I/O, flag) Operand 1 Operand 2
(LD, A, O, AB, OB) declaration (Output, flag)
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Position
Optional Optional XPIP Axis number CP
number
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
5. SEL Commands
[Function] It writes the value in Variable 199 to the position data positioning complete width
[mm] specified in Operand 2 on the Extension motion control axis specified in
Operand 1 (minimum effective digit number = 3).
570
XGVL (Read extension motion control axis speed data)
Extension Command, declaration Output
Input condition
condition Command, operation type
(I/O, flag) Operand 1 Operand 2
(LD, A, O, AB, OB) declaration (Output, flag)
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Position
Optional Optional XGVL Axis number CP
number
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
5. SEL Commands
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
SAXD
[Function] It reads the position data speed [mm/s] specified in Operand 2 on the Extension
motion control axis specified in Operand 1 into Variable 199 (minimum effective
digit number = 2).
[Example] XGVL 2 3 It reads the speed in Position No. 3 on the 2nd axis
into Variable 199.
571
XGAC (Read extension motion control axis acceleration data)
Extension Command, declaration Output
Input condition
condition Command, operation type
(I/O, flag) Operand 1 Operand 2
(LD, A, O, AB, OB) declaration (Output, flag)
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Position
Optional Optional XGAC Axis number CP
number
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
5. SEL Commands
QCT SXD
SAXD
[Function] It reads the position data acceleration [G] specified in Operand 2 on the
Extension motion control axis specified in Operand 1 into Variable 199 (minimum
effective digit number = 2).
572
XGDC (Read extension motion control axis deceleration data)
Extension Command, declaration Output
Input condition
condition Command, operation type
(I/O, flag) Operand 1 Operand 2
(LD, A, O, AB, OB) declaration (Output, flag)
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Position
Optional Optional XGDC Axis number CP
number
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
5. SEL Commands
RAXD/ SSEL
QCT SXD
SAXD
[Function] It reads the position data deceleration [G] specified in Operand 2 on the
Extension motion control axis specified in Operand 1 into Variable 199 (minimum
effective digit number = 2).
573
XGIP (Read extension motion control axis positioning complete width
data)
Extension Command, declaration Output
Input condition
condition Command, operation type
(I/O, flag) Operand 1 Operand 2
(LD, A, O, AB, OB) declaration (Output, flag)
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Position
Optional Optional XGIP Axis number CP
number
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
5. SEL Commands
[Function] It reads the position data positioning complete width [mm] specified in Operand 2
on the Extension motion control axis specified in Operand 1 into Variable 199
(minimum effective digit number = 3).
574
XAXS (Extension motion control axis pattern setting (0 to 15 axis))
Extension Command, declaration Output
Input condition
condition Command, operation type
(I/O, flag) Operand 1 Operand 2
(LD, A, O, AB, OB) declaration (Output, flag)
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Axis pattern, Axis pattern,
Optional Optional XAXS CP
upper lower
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
5. SEL Commands
RAXD/ SSEL
QCT SXD
SAXD
[Function] It performs a setting for the axis patterns of axes 8 to 15 on the Extension motion
control axis in Operand 1 and the axis patterns of axes 0 to 7 in Operand 2.
Operand 1 Operand 2
Axis 8 Axis 0
: :
Axis 15 Axis 7
After the program execution is started, make sure to set the axis patterns using
this command before the following commands are executed.
If the axis pattern setting command XAXS is not conducted, No. 445 “Extension
motion control board axis pattern not set error” (XSEL-P/Q/PCT/QCT/R/S), Error
No. 4B3 “Extension motion control board axis pattern not set error”
(XSEL-RA/SA/RAX/SAX/RAXD/SAXD) would occur.
XPRD : Read extension motion control board axis current command position
XSON : Servo ON of extension motion control board axis
XSOF : Servo OFF of extension motion control board axis
XHOM : Home return of extension motion control board axis
XMVP : Move extension motion control board axis to indicated position
XMPI : Perform extension motion control board axis position relative movement
XMVL : Move extension motion control board axis for position indicated
interpolation
XMLI : Move extension motion control board axis for position relative
interpolation
XSTP : Cancel operation of extension motion control board axis
575
XA16 (Extension motion control axis pattern setting (16 to 31 axis))
Extension Command, declaration Output
Input condition
condition Command, operation type
(I/O, flag) Operand 1 Operand 2
(LD, A, O, AB, OB) declaration (Output, flag)
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Axis pattern, Axis pattern,
Optional Optional XA16 CP
upper lower
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
5. SEL Commands
QCT SXD
SAXD
[Function] It performs a setting for the axis patterns of axes 24 to 31 on the Extension
motion control axis in Operand 1 and the axis patterns of axes 16 to 23 in
Operand 2.
Operand 1 Operand 2
Axis 24 Axis 16
: :
Axis 31 Axis 23
After the program execution is started, make sure to set the axis patterns using
this command before the following commands are executed.
If the axis pattern setting command XAXS, XA16 is not conducted, Error No. 445
“Extension motion control axis pattern not set error” would occur.
[Example] XA16 1010101 10101010 Set an axis pattern consisting of axes 17, 19,
21, 23, 24, 26, 28 and 30.
XSON It turns the servo ON for axes 17, 19, 21, 23,
24, 26, 28 and 30.
XMVP 20 It moves the axes 17, 19, 21, 23, 24, 26, 28 and
30.
576
XSON (Extension motion control axis servo ON)
Extension Command, declaration Output
Input condition
condition Command, operation type
(I/O, flag) Operand 1 Operand 2
(LD, A, O, AB, OB) declaration (Output, flag)
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Optional Optional XSON Prohibited Prohibited PE
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
5. SEL Commands
RAXD/ SSEL
QCT SXD
SAXD
[Function] It turns the servo ON for the Extension motion control axis specified by XAXS
Command.
Caution
Make sure to set the axis pattern by XAXS Command before this command is executed. If the
setting is not established, Error No. 445 “Extension motion control board axis pattern not set error”
(XSEL-P/Q/PCT/QCT/R/S), No. 4B3 “Extension motion control axis pattern not set error”
(XSEL-RA/SA/RAX/SAX/RAXD/SAXD) would occur.
[Example] XAXS 01 100 Set an axis pattern that uses axes 2 and 3.
XSON Turn ON the servos of the specified axes.
577
XSOF (Extension motion control axis servo OFF)
Extension Command, declaration Output
Input condition
condition Command, operation type
(I/O, flag) Operand 1 Operand 2
(LD, A, O, AB, OB) declaration (Output, flag)
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Optional Optional XSOF Prohibited Prohibited PE
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
5. SEL Commands
QCT SXD
SAXD
[Function] It turns the servo OFF for the Extension motion control axis specified by XAXS
Command.
Caution
Make sure to set the axis pattern by XAXS Command before this command is executed. If the
setting is not established, Error No. 445 “Extension motion control board axis pattern not set error”
(XSEL-P/Q/PCT/QCT/R/S), No. 4B3 “Extension motion control axis pattern not set error”
(XSEL-RA/SA/RAX/SAX/RAXD/SAXD) would occur.
[Example] XAXS 0 1100 Set an axis pattern that uses axes 2 and 3.
XSOF Turn OFF the servos of the specified axes.
578
XHOM (Extension motion control axis home return)
Extension Command, declaration Output
Input condition
condition Command, operation type
(I/O, flag) Operand 1 Operand 2
(LD, A, O, AB, OB) declaration (Output, flag)
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Optional Optional XHOM Prohibited Prohibited PE
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
5. SEL Commands
RAXD/ SSEL
QCT SXD
SAXD
[Function] It turns the home return for the Extension motion control axis specified by XAXS
Command.
The servo of the axis to be returned home turns ON automatically.
Caution
Make sure to set the axis pattern by XAXS or XA16 Command before this command is
executed. If the setting is not established, Error No. 445 “Extension motion control board axis
pattern not set error” (XSEL-P/Q/PCT/QCT/R/S), No. 4B3 “Extension motion control axis pattern
not set error” (XSEL-RA/SA/RAX/SAX/RAXD/SAXD) would occur.
The servo would turn OFF if the operation is either paused or stopped to cancel during the
home-return operation of the pulse I/O axis. When resuming the operation after a pause, confirm
the servo is ON and then make sure to start with a home-return operation.
When the axis to be object is a slave axis of the absolute encoder, execute this command and
some controllers will conduct the absolute reset.
When it is required to have a move to the home position (when home position confirmation is not
necessary), make a move to the home position using XMVP Command instead of XHOM
Command.
[Example] XAXS 0 1100 Set an axis pattern that uses axes 2 and 3.
XHOM Home Return the servos of the specified axes.
579
XMVP (Move extension motion control axis to indicated position)
Extension Command, declaration Output
Input condition
condition Command, operation type
(I/O, flag) Operand 1 Operand 2
(LD, A, O, AB, OB) declaration (Output, flag)
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Position
Optional Optional XMVP Prohibited PE
number
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
5. SEL Commands
QCT SXD
SAXD
[Function] It moves the Extension motion control axis specified by XAXS or XA16
Command by PTP operation to the position number specified in Operand 1.
Caution
Make sure to set the axis pattern by XAXS or XA16 Command before this command is
executed. If the setting is not established, Error No. 445 “Extension motion control board axis
pattern not set error” (XSEL-P/Q/PCT/QCT/R/S), No. 4B3 “Extension motion control axis pattern
not set error” (XSEL-RA/SA/RAX/SAX/RAXD/SAXD) would occur.
In the case of XSEL-P/Q/PCT/QCT/R/S, is able to specify another axis that is connected to a
different extension motion control board at the same time. However, since the system is
controlled by each board, the operation cannot be synchronized.
580
XMPI (Perform extension motion control axis position relative
movement)
Extension Command, declaration Output
Input condition
condition Command, operation type
(I/O, flag) Operand 1 Operand 2
(LD, A, O, AB, OB) declaration (Output, flag)
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Position
Optional Optional XMPI Prohibited PE
number
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
5. SEL Commands
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
SAXD
[Function] It moves the Extension motion control axis specified by XAXS Command by PTP
operation with the position number in Operand 1 taken as the amount of
movement.
Caution
Make sure to set the axis pattern by XAXS or XA16 Command before this command is
executed. If the setting is not established, Error No. 445 “Extension motion control board axis
pattern not set error” (XSEL-P/Q/PCT/QCT/R/S), No. 4B3 “Extension motion control axis pattern
not set error” (XSEL-RA/SA/RAX/SAX/RAXD/SAXD) would occur.
In the case of XSEL-P/Q/PCT/QCT/R/S, is able to specify another axis that is connected to a
different extension motion control board at the same time. However, since the system is
controlled by each board, the operation cannot be synchronized.
581
XMVL (Move extension motion control axis for position indicated
interpolation)
Extension Command, declaration Output
Input condition
condition Command, operation type
(I/O, flag) Operand 1 Operand 2
(LD, A, O, AB, OB) declaration (Output, flag)
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Position
Optional Optional XMVL Prohibited PE
number
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
5. SEL Commands
[Function] It moves the Extension motion control axis specified by XAXS Command by
direct interpolation movement to the position number specified in Operand 1.
(Note 1) Make sure to set the axis pattern by XAXS or XA16 Command before this
command is executed. If the setting is not established, Error No. 445 “Extension
motion control board axis pattern not set error” (XSEL-P/Q/PCT/QCT/R/S), No.
4B3 “Extension motion control board axis pattern not set error” (XSEL-
RA/SA/RAX/SAX/RAXD/SAXD) would occur.
(Note 2) If another axis connected to a different pulse I/O board is specified, Error No.
C30 “Axis pattern error” would occur. (XSEL-P/Q/PCT/QCT/R/S)
582
XMLI (Move extension motion control axis for position relative
interpolation)
Extension Command, declaration Output
Input condition
condition Command, operation type
(I/O, flag) Operand 1 Operand 2
(LD, A, O, AB, OB) declaration (Output, flag)
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Position
Optional Optional XMLI Prohibited PE
number
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
5. SEL Commands
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
SAXD
[Function] It moves the Extension motion control axis specified by XAXS Command by
direct interpolation movement with the position number in Operand 1 taken as
the amount of movement.
(Note 1) Make sure to set the axis pattern by XAXS or XA16 Command before this
command is executed. If the setting is not established, Error No. 445 “Extension
motion control board axis pattern not set error” (XSEL-P/Q/PCT/QCT/R/S), No.
4B3 “Extension motion control axis pattern not set error”
(XSEL-RA/SA/RAX/SAX/RAXD/SAXD) would occur.
(Note 2) If another axis connected to a different pulse I/O board is specified, Error No.
C30 “Axis pattern error” would occur. (XSEL-P/Q/PCT/QCT/R/S)
583
XMVD (Move extension motion control axis to directly indicated absolute
position)
Extension Command, declaration Output
Input condition
condition Command, operation type
(I/O, flag) Operand 1 Operand 2
(LD, A, O, AB, OB) declaration (Output, flag)
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Variable
Optional Optional XMVD Axis number PE
number
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
5. SEL Commands
[Function] It moves the Extension motion control axis specified in Operand 1 by absolute
position movement to the values specified in the five variables in a row from
Variable No. n in Operand 2.
Variable
Description of setting Effective Digits
No.
n Target position [mm] 3 digits minimum
n+1 Speed [mm/s] 2 digits minimum
n+2 Acceleration [G] 2 digits minimum
n+3 Deceleration [G] 2 digits minimum
n+4 Positioning complete width [mm] 3 digits minimum
584
XMDI (Move extension motion control axis to directly indicated relative
position)
Extension Command, declaration Output
Input condition
condition Command, operation type
(I/O, flag) Operand 1 Operand 2
(LD, A, O, AB, OB) declaration (Output, flag)
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Variable
Optional Optional XMDI Axis number PE
number
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
5. SEL Commands
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
SAXD
[Function] It moves the Extension motion control axis specified in Operand 1 by relative
position movement to the values specified in the five variables in a row from
Variable No. n in Operand 2.
Variable
Description of setting Effective Digits
No.
n Travel [mm] 3 digits minimum
n+1 Speed [mm/s] 2 digits minimum
n+2 Acceleration [G] 2 digits minimum
n+3 Deceleration [G] 2 digits minimum
n+4 Positioning complete width [mm] 3 digits minimum
585
XPTH (Extension motion control axis path operation)
Extension Command, declaration Output
Input condition
condition Command, operation type
(I/O, flag) Operand 1 Operand 2
(LD, A, O, AB, OB) declaration (Output, flag)
Start position End position
Optional Optional XPTH PE
number number
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
SAXD
5. SEL Commands
[Function] Move continuously from the position specified in operand 1 to the position
specified in operand 2 (CP Movement). The output type in the output field can be
set using an actuator-declaration command POTP. If invalid data is set for any
position number between the start and end position numbers, that position
number will be skipped during continuous movement.
Start position
Position origin
End position
(Note 1) Set axis patterns using the XAXS or XA16 command before executing this
command. If the command has not been executed, error No. 4B3 “No extension
motion control board axe pattern setting error” occurs.
(Note 2) This command requires indication of the velocity, acceleration and deceleration in
VAL, VLMX, ACC, DCL commands before execution. If those commands have
not been executed, an error occurs.
(Note 3) Multi-dimensional movement can be performed using this command. In this case,
input in operand 1 the point number of the next target, instead of the predicted
current position upon execution of the applicable command.
(Inputting a position number corresponding to the predicted current position will
trigger movement to the same position during continuous movement, thereby
causing the speed to drop.)
(Note 4) Input this command straight after program steps in a row, and the actuator is able
to make a smooth operation without any stop between steps when a program is
executed. However, in case there is any step with an input condition being
indicated, the actuator will pause at the step before that.
(Note 5) When POTP = 0, the operation timing of the output part during the continuous
operation should be when getting close to the final movement position of each
command, and when POTP = 1, it should be when getting close to each position.
As for the final movement position of the continuous movement final command, it
turns ON when the operation is completed. However, in case there is the
positioning complete band established at the final movement position of the
continuous movement final command, it will not turn ON.
(Note 6) Positioning complete band is valid only for the final movement position. Also, it is
valid only for the final movement position of the continuous movement final
command while in continuous operation.
586
(Note 7) It is possible to move through discontinuous positions or move continuously by
passing the same position. As shown in the example, specify the number
corresponding to the discontinuous position for both the start position number
and end position number. In the example, this position is No. 6.
[Example 1] XPTH 100 120 Move continuously from position No. 100 to 120.
5. SEL Commands
587
XJ (Perform extension motion control axis jog operation)
Extension Command, declaration Output
Input condition
condition Command, operation type
(I/O, flag) Operand 1 Operand 2
(LD, A, O, AB, OB) declaration (Output, flag)
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Input, output,
Optional Optional XJ□□ Prohibited PE
flag number
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
5. SEL Commands
QCT SXD
SAXD
[Function] It moves the Extension motion control shaft specified by XAXS Command in back
and forth while the flag on the input port or output port specified in Operand 1 is
turning ON and OFF.
(Note 1) Make sure to set the axis pattern by XAXS Command before this command is
executed. If the setting is not established, Error No. 445 “Extension motion
control board axis pattern not set error” (XSEL-P/Q/PCT/QCT/R/S), No. 4B3
“Extension motion control axis pattern not set error”
(XSEL-RA/SA/RAX/SAX/RAXD/SAXD) would occur.
(Note 2) It is effective also to the axis that the home-return operation is incomplete.
However, the upper limit for the speed is that set in pulse I/O board command
parameter No. 4 “Maximum JOG speed at home return incomplete”. In such a
condition, exercise precaution not to crash into the work or stroke end since the
coordinate values become meaningless.
(Note 3) In the case of XSEL-P/Q, this command is valid on Main CPU Application
Section Ver.1.02 or later. (It is available from the first for XSEL-R/S,
XSEL-RA/SA/RAX/SAX/RAXD/SAXD.) And a PC software Ver.7.6.5.0 or later
which is applicable for this command is also required.
588
XPED (Waiting for extension motion control axis to finish positioning
operation of axis used by self-program)
Extension Command, declaration Output
Input condition
condition Command, operation type
(I/O, flag) Operand 1 Operand 2
(LD, A, O, AB, OB) declaration (Output, flag)
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Optional Optional XPED Prohibited Prohibited PE
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
5. SEL Commands
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
SAXD
[Function] It waits for the positioning operation of the Extension motion control axis used in
the program its own. By this command, it is possible to wait for the completion of
the positioning operation (XMVP, XMPI, XMVL, XMLI, XMVD and XMDI) when
the positioning complete width is valid. The output becomes ON when the
operation is completed in normal condition. The command would not react after
an execution of any operation command other than positioning operation.
(Output section is OFF.)
For an operation that the positioning complete band is valid, recovery from the
operation command is performed once the actuator reaches in front of the
positioning complete band at the current position (or current position command
when the pulse input and output boards are mounted
(XSEL-P/Q/PCT/QCT/R/S)). (Output section is OFF.) It is possible to confirm the
positioning is complete by executing this command after the command recovery.
Also, the driven axis is usually occupied by the executed program after the
operation command recovery. By executing this command, the axis gets
released, thus the axis becomes available for a use by other programs.
589
XSTP (Cancel operation of extension motion control axis)
Extension Command, declaration Output
Input condition
condition Command, operation type
(I/O, flag) Operand 1 Operand 2
(LD, A, O, AB, OB) declaration (Output, flag)
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Optional Optional XSTP Prohibited Prohibited PE
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
5. SEL Commands
QCT SXD
SAXD
[Function] It decelerates and stops the Extension motion control axis specified by XAXS
Command. It is valid for the Extension motion control axis command other than
XSOF command.
(Note 1) Make sure to set the axis pattern by XAXS Command before this command is
executed. If the setting is not established, Error No. 445 “Extension motion
control board axis pattern not set error” (XSEL-P/Q/PCT/QCT/R/S), No. 4B3
“Extension motion control board axis pattern not set error” (XSEL-
RA/SA/RAX/SAX/RAXD/SAXD) would occur.
590
XWIP (Waiting for extension motion control axis positioning complete
signal to be turned ON)
Extension Command, declaration Output
Input condition
condition Command, operation type
(I/O, flag) Operand 1 Operand 2
(LD, A, O, AB, OB) declaration (Output, flag)
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Optional Optional XWIP Prohibited Prohibited CP
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
5. SEL Commands
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
SAXD
[Function] It waits till the positioning complete signal of the Extension motion control shaft
specified by XAXS Command turns ON. This enables to wait for the completion
of the positioning operation of the slave shaft (= slave shaft positioning complete
signal ON) while in synchronizing process by executing this command to the
synchronizing slave shaft after the synchronizing master shaft operation
command is complete (*). The positioning complete signal for the slave shaft
turns ON when position deviation ≤ positioning complete width. The status would
not become waiting unless the pulse order is output from the master shaft side to
the slave side.
* The pulse order of the slave shaft is completed by the completion of the
master shaft operation command.
(Note 1) Make sure to set the axis pattern by XAXS Command before this command is
executed. If the setting is not established, Error No. 445 “Extension motion
control board axis pattern not set error” (XSEL-P/Q/PCT/QCT/R/S), No. 4B3
“Extension motion control axis pattern not set error”
(XSEL-RA/SA/RAX/SAX/RAXD/SAXD) would occur.
(Note 2) If the positioning complete signal does not turn ON even after the time set in the
Extension motion control output channel parameter No. 33 “Positioning complete
confirmation time” of the specified axis is passed, Error No. 454 “Extension
motion control board axis positioning complete timeout error”
(XSEL-P/Q/PCT/QCT/R/S), No. 4C3 “Extension motion control axis positioning
complete timeout error” (XSEL-RA/SA/RAX/SAX/RAXD/SAXD) would occur.
In the case of pulse input board (XSEL-P/Q/R/S), please check the positioning
complete signal cable is broken.
(Note 3) In the case of XSEL-P/Q, this command is valid on Main CPU Application
Section Ver.1.02 or later. (It is available from the first for XSEL-R/S,
XSEL-RA/SA/RAX/SAX/RAXD/SAXD.) And a PC software Ver.7.6.5.0 or later
which is applicable for this command is also required.
591
[Example] XCAS 0 10 It starts to synchronize the electronic cam on axis 0. (*1)
XCAS 1 20 It starts to synchronize the electronic cam on axis 1. (*2)
MOVP 5 It moves the 1st axis of the main CPU control axes to
Position No. 5.
MOVP 6 It moves the 1st axis of the main CPU control axes to
Position No. 6.
XAXS 0 11 Set an axis pattern that uses axes 0 and 1.
XWIP It waits till the positioning complete signal of axes 0 and
1 to turn ON. (Axes 0 and 1 continue the synchronizing
process.)
MOVP 7 It moves the 1st axis of the main CPU control axe to
Position No. 7.
* It is assumed the setting that the 1st axis of the main CPU control axes is
set to Variables No. 10 to 19 as the electronic cam synchronizing process
5. SEL Commands
is established.
* It is assumed the setting that the 1st axis of the main CPU control axes is
set to Variables No. 20 to 29 as the electronic cam synchronizing process
is established.
592
XCAS ((Start synchronizing extension motion control axis electronic cam
(indicating main axis)) extension motion control) (1/2)
Extension Command, declaration Output
Input condition
condition Command, operation type
(I/O, flag) Operand 1 Operand 2
(LD, A, O, AB, OB) declaration (Output, flag)
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Slave shaft Variable
Optional Optional XCAS PE
number number
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
5. SEL Commands
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
SAXD
[Function] It starts the synchronizing process with the axis specified in Operand 1 as the
slave shaft extension motion control axis the electronic cam table. The
synchronizing electronic cam operation settings such as the master shaft on the
electronic cam table are to be specified in ten variables in a row from Variable
No. n in Operand 2. The output section turns ON when the synchronizing
process is started.
593
Variable
Data name Description
No.
Stroke Master
type shaft type Setting Content
(n+4) (n+1)
Master shaft stroke length storage position number
0 * Indicate the standard motion control master
shaft number (from 0 to Max. position No.)
Master shaft 0 Master shaft stroke length storage position number
stroke length / * Indicate the extension motion control axis
stroke end 1
master shaft number (from 0 to Max. position
n+5 position No.)
(Storage Master shaft stroke end position storage position
position number
5. SEL Commands
number) 0
* Indicate the standard motion control master
shaft number (from 0 to Max. position No.)
1 Master shaft stroke end position storage position
number
1 * Indicate the extension motion control master
shaft position number (from 0 to Max. position
No.)
Slave stroke
Indicate the pulse I/O board control slave shaft position number
n+6 length storage
(from 0 to Max. position No.)
position number
Master shaft Master shaft type
Setting Content
synchronizing (n+1)
start position Master shaft synchronizing start position storage
(Storage position position number
0
number) * Indicate the standard motion control master
* Effective only shaft number (from 0 to Max. position No.)
when “Master Master shaft synchronizing start position storage
n+7
shaft reaches position number
specified 1 * Indicate the extension motion control master
synchronizing shaft position number (from 0 to Max. position
start position” No.)
is selected for
Master shaft synchronizing start position (pulse
synchronizing 2
unit)
type
n+8 Reserved Make sure to set 0
n+9 Reserved Make sure to set 0
594
Synchronizing Type (Variable No.n)
Set Description
value Synchronizing start type Synchronizing process repeat type
0 Immediately Operate for 1 cycle
1 Immediately Repeated operation
Master shaft reaches specified synchronizing
2 Operate for 1 cycle
start position
Master shaft reaches specified synchronizing
3 Repeated operation
start position
Position of Slave Axis Electronic Cam Table No. (n+3) Position of Slave Axis Electronic Cam Table No. (n+3)
5. SEL Commands
Stroke Length Stroke Length
of Slave Axis of Slave Axis
Position of Position of
(n+6) (n+6)
Master Axis Master Axis
The master axis stroke length/stroke end position and master axis synchronization start position
shall be set to position data of the master axis if the master axis is a position data. The slave
axis stroke length is set in slave axis position data.
If master axis stroke end position is specified for the stroke type, the master axis stroke length
(single cycle) of electronic CAM tables becomes [master axis stroke end position –
synchronization start master axis position]. The relationship of the master axis position with
electronic CAM table phases is as follows: phase 0 corresponds to synchronization start master
axis position, and the positive phase direction is the direction to move from synchronization start
master axis position toward master axis stroke end position.
If master axis stroke length is specified for the stroke type, the relationship of the master axis
position with electronic CAM table phases is as follows: phase 0 corresponds to synchronization
start master axis position, and the positive phase direction corresponds to master axis
coordinate positive move direction when the stroke length has a positive coordinate value and
the minus phase direction corresponds to master axis coordinate positive move direction when
the stroke length has a negative coordinate value.
595
Caution
(1) If there are any errors in synchronous electronic CAM movement settings, which are
specified in variables of operand 2, error No. 4B4 “Extension motion control board
synchronous electronic CAM movement setting error” occurs. Info.2 of the error list
indicates the variable number of the invalid setting (hexadecimal display).
When Error Occurred Variable = “Master Axis No.” Stored Variable (n+2);
Specified master axis number is invalid or invalid.
Specified master axis is a synchronized-controlled slave axis or ZR unit axis.
The specified master axis and slave axis are the same axis.
When Error Occurred Variable = “Stroke Length / Stroke End Position Stored Position
No.” Stored Variable (n+5);
5. SEL Commands
(2) If the master axis type of synchronous electronic CAM movement settings is specified to
be main CPU control axis, the BASE command settings become valid for the master axis
number. Moreover, the GRP command settings are invalid for position data storing stroke
length and stroke end position.
(3) If slave axes started synchronization while the master axis is moving, excessive speed
and/or acceleration and deceleration may occur, leading to an error. Lower the speed
and/or acceleration of the master axis when the slave axis synchronization movement is
started.
(4) Excessive speed and/or acceleration/deceleration may occur during movement according
to the electric CAM table, leading to an error. In this case, change the speed,
acceleration/deceleration, and electronic CAM tables of the master axis to set speed and
acceleration/deceleration permitted to the axis.
(5) The right to use slave axes that started synchronization is owned exclusively by the slave
axis movement program that executed the XCAS command until the XSYE command
(stopping synchronous movement) is executed or the program is finished. For this reason,
if the axes are used by other programs, error No. C66 “Duplication error” occurs.
Moreover, error No. C66 occurs even if a movement command is executed on axes that
finished synchronous movement, even in the same program. Execute the XSYE
command in order to perform the next movement after synchronous movement.
596
(6) If the master axis is a controlled to short cut to rotation move axis, the shortcut turn control
valid axis passes the position of 0deg (360deg), the command position (and current
position) will switch between 0deg and 360deg. In case the master axis of the
synchronizing operation makes such operation, it is necessary to set master axis stroke
and the profile of the cam table so the displacement matches at the position of 0deg and
360deg.
Explaining in the example of the figure below, the slave axes will operate with no problem
even when the master axis passes 0deg (360deg) as the displacement matches at 0deg
and 360deg in the case of (1). In the case of (2), the displacement fluctuates suddenly
when the master axis passes the position of 0deg (360deg) as the displacement is not
matched, and Error No. 4B9 “Synchronizing Command Acceleration/Deceleration Excess
Error”, Error No. 4B8 “Synchronizing Command Velocity Excess Error” or sudden move
could be caused.
5. SEL Commands
597
Program Example
[Example] This program example immediately starts synchronization to the main axis of the
standard motion control axis. It is executed repeatedly until the main axis reaches
the stroke end. A program is required for each slave axis.
LET 206 0 It sets the slave stroke length storage position No. = 0 to
Variable No. 206.
LET 207 0 It sets 0 to Variable No. 207 (Unused data)
LET 208 0 It sets 0 to Variable No. 208 (Reserved area)
LET 209 0 It sets 0 to Variable No. 209 (Reserved area)
th
XAXS 0 1 It specifies the pulse I/O board 0 axis.
th
XSON It turns the pulse I/O board 0 axis servo ON.
XHOM It returns the pulse I/O board 0th axis to home return.
XCAS 0 200 It starts the synchronizing electronic cam operation for the
pulse I/O board 0th axis with the synchronizing electronic cam
operation settings specified in Variables No. 200 to 209.
TAG 1
MOVP 2 It moves the XSEL control master axis to Position No. 2.
MOVP 1 It moves the XSEL control master axis to Position No. 1
GOTO 1
598
XCAS (Start synchronizing extension motion control board axis
electronic cam (indicating main axis) electronic CAM control) (2/2)
Extension Command, declaration Output
Input condition
condition Command, operation type
(I/O, flag) Operand 1 Operand 2
(LD, A, O, AB, OB) declaration (Output, flag)
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Slave shaft Variable
Optional Optional XCAS PE
number number
Applicable models
XSEL
5. SEL Commands
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
SAXD
[Function] It starts the synchronizing process with the axis specified in Operand 1 as the
slave shaft following the electronic cam table. The synchronizing electronic cam
operation settings such as the master shaft on the electronic cam table are to be
specified in ten variables in a row from Variable No. n in Operand 2. The output
section turns ON when the synchronizing process is started.
599
Variable
Data name Description
No.
Stroke Master
type shaft type
Master shaft stroke length storage position number
0 * Indicate the main CPU control master shaft
number (from 0 to Max. position No.)
Master shaft stroke length storage position number
0
* Indicate the pulse I/O board control master
Master shaft 1
shaft position number (from 0 to Max. position
stroke length /
No.)
stroke end
2 Master shaft stroke length (pulse unit)
n+5 position
(Storage Master shaft stroke end position storage position
position number
0
5. SEL Commands
600
If the master axis is a main CPU control axis or pulse I/O board control axis, set the master
stroke length/stroke end position and master shaft synchronizing start position to the master
shaft position data. If the master shaft is the pulse input channel, set it directly to the variable for
operation settings. Set the slave shaft stroke length to the slave shaft position data.
If Stroke Type = Indicate master stroke end position, the master stroke length (1 cycle) on the
electronic cam table is [Master shaft stroke end position-Synchronizing start master shaft
position]. The relation between the master shaft position and the electronic cam table phase is
that the synchronizing start master shaft position is the phase 0, and the direction from the
synchronizing start master shaft position to the master shaft stroke end position is the phase
positive direction.
If Stroke Type = Indicate master shaft stroke length, the relation between the master shaft
position and the electronic cam table is that the synchronizing start master shaft position is the
phase 0, and if the stroke length is a positive value, the positive direction on the master axis
coordinate is the phase positive direction and, if the stroke length is a negative value, the
5. SEL Commands
positive direction on the master shaft coordinate is the phase negative direction.
Caution
If there is a mistake in the synchronizing electronic cam operation settings specified in the
variables in Operand 2, Error No. 455 “Extension motion control board synchronizing electronic
cam operation setting error” would occur. The variable numbers with an error setting will be
shown on the error list in Info. 2 (in hexadecimal numbers).
Variable with an error occurred: Master axis number (Stored variable)
The specified master shaft number is inappropriate or invalid
The specified master shaft is a synchronized slave shaft or ZR unit shaft
(if the master shaft is a main CPU control shaft)
The specified master shaft is the shaft specified as the slave
(if the master shaft is a pulse I/O board control shaft)
The specified master shaft is on a different pulse I/O board or channel from that the slave
shaft is on (if the master shaft is a pulse I/O board control shaft or a pulse input channel)
Variable with an error occurred: stroke length/stroke end position storage position number
The specified position number is inappropriate or position data is invalid
If the master shaft type for the synchronizing electronic cam operation settings is the main CPU
control shaft, BASE Command settings would be effective to the master shaft number. Also,
GRP Command settings are invalid to the position data to store the stroke length and stroke
end position.
If the robot is equipped with multiple pulse I/O board, the electronic cam table which is stored
to the board that the slave shaft is connected to would be used.
If the slave shaft starts to move for a synchronizing process during the master shaft is in move,
the speed and acceleration/deceleration may get too high and may cause an error. Lower the
settings for the speed and acceleration of the master shaft during the slave synchronizing
movement starts.
During a movement following the electronic cam table, the speed and acceleration/deceleration
may get too high and may cause an error. Change the settings for the speed,
acceleration/deceleration and electronic cam table so they are set to the allowable speed and
acceleration/deceleration for the shaft.
601
Caution
Once the slave shaft starts synchronizing, it will be occupied by the program until XSYE
Command (to cancel synchronizing) is executed or the slave shaft operation program that
XCAS Command is executed is finished.
Therefore Error No. 449 “Extension motion control board shaft duplication use error” would
occur if the shaft is used by another program. Also, even in the same program, Error No. 449
would occur if an operation command is executed to the shaft that the synchronizing process is
already completed. Execute XSYE Command if a next operation is required after the
synchronizing process is finished.
For XSEL-R/S, the number of the main CPU control axes that can be the master axis for the
synchronizing operation of such as the electronic cam is six axes at the maximum.
The axes that can be the master axis can be selected in I/O Parameter No. 529 “Extension
Motion Control Board Synchronizing Main CPU Control Master Select Axis Pattern” (dynamic
5. SEL Commands
change not available). Please refer to the parameter list in XSEL-R/S Instruction Manual for the
details of the parameter.
When indicating an axis that is not selected as the main axis select in I/O Parameter No. 529
as the main axis in XCAS Command, Error No. 455 “Extension Motion Control Board
Synchronizing Electronic Cam Operation Setting Error” will occur.
If the master shaft is the main CPU control axis with the rotation axis close control, set the
master shaft stroke type in the synchronizing electronic cam operation settings to the stroke
length setting. If the setting is specified to the stroke end position, it may not perform a
synchronizing process that is expected.
[Example] For the synchronizing process in range of master shaft position = 10 to 350
Variance
Slave shaft stroke
(1 cycle)
If the stroke end position = 350 assuming the master shaft stroke type = stroke end position,
the figure will be as shown below:
602
Program Example
LET 200 1 It sets the synchronizing type = 1 (Immediate start, Repeat
operation) to Variable No. 200.
LET 201 0 It sets the master shaft type = 0 (Main CPU control shaft) to
Variable No. 201.
LET 202 1 It sets the master shaft No. = 1 to Variable No. 202.
LET 203 0 It sets the electronic cam table No. = 1 to Variable No. 203.
LET 204 1 It sets the stroke type = 1 (Master stroke end position
specification) to Variable No. 204.
LET 205 2 It sets the master shaft stroke end position storage position
No. = 2 to Variable No. 205.
LET 206 0 It sets the slave stroke length storage position No. = 0 to
Variable No. 206.
LET 207 0 It sets 0 to Variable No. 207 (Unused data)
5. SEL Commands
LET 208 0 It sets 0 to Variable No. 208 (Reserved area)
LET 209 0 It sets 0 to Variable No. 209 (Reserved area)
th
XAXS 0 1 It specifies the pulse I/O board 0 axis.
th
XSON It turns the pulse I/O board 0 axis servo ON.
XHOM It returns the pulse I/O board 0th axis to home return.
XCAS 0 200 It starts the synchronizing electronic cam operation for the
pulse I/O board 0th axis with the synchronizing electronic cam
operation settings specified in Variables No. 200 to 209.
TAG 1
MOVP 2 It moves the XSEL control master axis to Position No. 2.
MOVP 1 It moves the XSEL control master axis to Position No. 1
GOTO 1
603
XCTM (Extension motion control Single Electronic Cam (Time
Specification) Movement)
Extension Command, declaration Output
Input condition
condition Command, operation type
(I/O, flag) Operand 1 Operand 2
(LD, A, O, AB, OB) declaration (Output, flag)
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Slave shaft Variable
Optional Optional XCTM PE
number number
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
5. SEL Commands
[Function] It performs a movement following the electronic cam table having the time axis of
the shaft specified in Operand 1 as the master shaft. Single electronic cam
operation settings such as the movement time and the electronic cam table
number, etc., are to be specified in five variables in a row from Variable No. n in
Operand 2. The output turns OFF at the same time the command is started and
turns ON when the movement is complete.
Set the slave shaft stroke length to the slave shaft position data.
When the slave shaft stroke length is a positive value, the movement is made to
the coordinate positive direction. When the slave shaft stroke length is a negative
value, the movement is made to the coordinate positive direction.
604
Caution
If there is a mistake in the single electronic cam operation settings specified in the variables in
Operand 2, Error No. 456 “Extension motion control board single electronic cam operation
settings error” (XSEL-P/Q/PCT/QCT/R/S), Error No. 4B6 “Extension shaft operation settings
error”(XSEL-RA/SA) would occur. The variable numbers with an error setting will be shown on
the error list in Info. 2 (XSEL-P/Q/PCT/QCT/R/S) or Info. 1
(XSEL-RA/SA/RAX/SAX/RAXD/SAXD) (in hexadecimal numbers).
Variable with an error occurred: Slave stroke length storage position number (Stored
variable)
Specified position number is inappropriate or the position data is inefficient.
If the robot is equipped with multiple pulse I/O board, the electronic cam table which is stored
5. SEL Commands
to the board that the slave shaft is connected to would be used.
During a movement following the electronic cam table, the speed and acceleration/deceleration
may get too high and may cause an error. Change the settings for the moving time and
electronic cam table so they are set to the allowable speed and acceleration/deceleration for
the shaft.
Program Example
LET 200 0 It sets the electronic cam table No. = 0 to Variable No. 200.
LET 201 1000 It sets the movement time 1000ms to Variable 201.
LET 202 0 It sets the slave stroke length storage position No. = 0 to
Variable No. 202.
XCTM 0 200 It starts the single electronic cam operation for the pulse I/O
board 0th axis with the single electronic cam operation settings
specified in Variables No. 200 to 204.
605
XSFS (Extension Motion Montrol control Electronic Shaft Synchronizing Start)
Extension Command, declaration Output
Input condition
condition Command, operation type
(I/O, flag) Operand 1 Operand 2
(LD, A, O, AB, OB) declaration (Output, flag)
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Slave shaft Variable
Optional Optional XSFS PE
number number
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
5. SEL Commands
QCT SXD
SAXD
[Function] It starts the synchronizing operation of the shaft specified in Operand 1 as the slave
shaft following the master shaft. The electronic shaft operation settings such as the
master shaft are to be specified in the four variables in a row from Variable No. n in
Operand 2. The output section turns ON with the synchronizing start.
Operand 2 : Single Electronic Shaft Operation Settings
Variable
Data Description
number
Master shaft type 0 : Standard motion control axis
(Main CPU control shaft)
n 1 : Extension motion control axis
2 : Pulse input channel (Applicable of pulse input
channels is, XSEL-P/Q/PCT/QCT/R/S)
Master shaft number * Axes 1 to 6 (XSEL-P/Q), 1 to 8 axis (XSEL-R/S,
XSEL-RA/SA) when standard motion control axis
(Main CPU control shaft), axes 0 to 15 when
n+1
extension motion control axis, channels 0 to 3
when pulse input channel (Applicable of pulse
input channels is, (XSEL-P/Q/PCT/QCT/R/S)
Gear ratio numerator -10000 to -1, 1 to 10000 (XSEL-P/Q/PCT/QCT/R/S)
n+2 -999999 to -1, 1 to 999999 (XSEL-RA/SA),
-99999999 to -1,1 to 99999999
Gear ratio denominator 1 to 10000 (XSEL-P/Q/PCT/QCT/R/S)
n+3
1 to 99999999 (XSEL-RA/SA)
The synchronizing process continues until:
XSYE Command (to cancel synchronizing process) is executed,
an operation cancel is executed to the slave shaft
(XSTP Command, CANC Command),
Synchronizing Process Repeat Type is set to 1 cycle and the master shaft
reaches to the stroke end, or the slave shaft operation program that XSFS
Command is executed is over.
If the gear ratio is set to a negative value, the slave shaft operates in a reverse
direction against the master shaft.
606
Caution
(1) If there is a mistake in the single electronic cam operation settings specified in the variables
in Operand 2, Error No. 456 “Extension motion control board single electronic cam operation
settings error” (XSEL-P/Q/PCT/QCT/R/S), Error No. 4B6 “Extension shaft operation settings
error”(XSEL-RA/SA) would occur. The variable numbers with an error setting will be shown
on the error list in Info. 2 (XSEL-P/Q/PCT/QCT/R/S) or Info. 1
(XSEL-RA/SA/RAX/SAX/RAXD/SAXD) (in hexadecimal numbers).
Variable with an error occurred : Master shaft number
The specified master shaft number is inappropriate or invalid
The specified master shaft is a synchronized slave shaft or ZR unit shaft (if the master
shaft is a XSEL control shaft)
The specified master shaft is the shaft specified as the slave (if the master shaft is a
pulse I/O control shaft)
5. SEL Commands
The specified master shaft is on a different pulse I/O or channel from that the slave
shaft is on (if the master shaft is a pulse I/O control shaft or a pulse input channel)
(2) If the master shaft type in the electronic shaft operation settings is the standard motion control
axis (main CPU control shaft), BASE Command would be effective to the master shaft
number. (XSEL-P/Q/PCT/QCT/R/S)
(3) If the master shaft is the pulse input channel, the slave shaft operates with a condition taking
1 input pulse from the pulse input channel as 0.001mm. (XSEL-P/Q/PCT/QCT/R/S)
(4) If the slave shaft starts to move for a synchronizing process during the master shaft is in
move, the speed and acceleration/deceleration may get too high and may cause an error.
Lower the settings for the speed and acceleration of the master shaft during the slave
synchronizing movement starts.
(5) During a master shaft, the speed and acceleration/deceleration may get too high and may
cause an error. Change the settings for the speed, acceleration/deceleration and gear ratio so
they are set to the allowable speed and acceleration/deceleration for the shaft.
(6) Once the slave shaft starts synchronizing, it will be occupied by the program until XSYE
Command (to cancel synchronizing) is executed or the slave shaft operation program that
XSFS Command is executed is finished.
Therefore Error No. 449 “Extension motion control board shaft duplication use error”
(XSEL-P/Q-PCT/QCT/R/S), Error No. C66 “Shaft duplication use error” (XSEL-RA/SA) would
occur if the shaft is used by another program. Also, even in the same program, Error No. 449
would occur if an operation command is executed to the shaft that the synchronizing process
is already completed. Execute XSYE Command if a next operation is required after the
synchronizing process is finished.
(7) For XSEL-R/S, the number of the main CPU control axes that can be the master axis for the
synchronizing operation of such as the electronic cam is six axes at the maximum.
The axes that can be the master axis can be selected in I/O Parameter No. 529 “Extension
Motion Control Board Synchronizing Main CPU Control Master Select Axis Pattern” (dynamic
change not available). Please refer to the parameter list in XSEL-R/S Instruction Manual for
the details of the parameter.
When indicating an axis that is not selected as the main axis select in I/O Parameter No. 529
as the main axis in XCAS Command, Error No. 457 “Extension Motion Control Board
Electronic Cam Operation Setting Error” will occur.
607
[Example] LET 200 0 It sets the master shaft type = 0 (Main CPU control
shaft) to Variable No. 200.
LET 201 1 It sets the master shaft No. = 1 to Variable No. 201.
LET 202 1 It sets the gear ratio numerator = 1 to Variable No.
202.
LET 203 50 It sets the gear ratio denominator = 1 to Variable
No. 203.
TAG 1
5. SEL Commands
608
XSYE (Extension motion control synchronizing process complete)
Extension Command, declaration Output
Input condition
condition Command, operation type
(I/O, flag) Operand 1 Operand 2
(LD, A, O, AB, OB) declaration (Output, flag)
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Slave shaft (Complete
Optional Optional XSYE PE
number type)
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
5. SEL Commands
RAXD/ SSEL
QCT SXD
SAXD
[Function] It finishes the synchronizing process of the slave shaft specified in Operand 1. This
command is effective to the slave shaft that is in the synchronizing process with the
synchronizing electronic cam (master shaft specified) started by the same program
or that in electronic shaft synchronizing process (XSFS Command). If another shaft
is specified, Error No. 444 “Extension motion control board axis number error”
(XSEL-P/Q-PCT/QCT/R/S), No. C2F “Axis number error” (XSEL-RA/SA) would
occur.
It is able to specify the complete type in Operand 2. If 0 is select or no selection is
done, the synchronizing process would be cancelled. If 1 is selected, it waits for the
synchronizing process to finish. It is applicable in a case to wait for the slave shaft
to finish its synchronizing process with “Synchronizing type = operate for 1 cycle” in
XCAS Command or to wait till the synchronizing process to be cancelled by XSTP
Command from another program.
The output section turns ON when 1 is selected for the complete type and the slave
shaft finishes 1 cycle of operation with the synchronizing type = “Operate for 1
cycle”.
Operand 2 : Complete Type
= 0 or no selection: Synchronizing process to be cancelled
= 1: Wait for synchronizing process to finish
Caution
In the case “Synchronizing process to be cancelled” is chosen for the complete type, the
command would only finishes the synchronizing process and would not confirm the slave shaft
positioning completion (Slave Driver positioning complete signal). If waiting for the positioning to
complete is desired, wait till the positioning complete signal input port turns ON directly by
WTON Command after XSYE Command execution.
By executing this command the occupation of the shaft is released. Thus, the slave shaft being
in the synchronizing process can be used for other programs.
609
Program Example
LET 200 1 It sets the synchronizing type = 1 (Immediate start, operate for
1 cycle) to Variable No. 200.
LET 201 0 It sets the master shaft type = 0 (Main CPU control shaft) to
Variable No. 201.
LET 202 1 It sets the master shaft No. = 1 to Variable No. 202.
LET 203 0 It sets the electronic cam table No. = 1 to Variable No. 203.
LET 204 1 It sets the stroke type = 1 (Master stroke end position
specification) to Variable No. 24.
LET 205 2 It sets the master shaft stroke end position storage position
No. = 2 to Variable No. 205.
LET 206 0 It sets the slave stroke length storage position No. = 0 to
Variable No. 206.
LET 207 0 It sets 0 to Variable No. 207 (Unused data)
LET 208 0 It sets 0 to Variable No. 208 (Reserved area)
5. SEL Commands
610
XAST (Acquire extension motion control axis status)
Extension Command, declaration Output
Input condition
condition Command, operation type
(I/O, flag) Operand 1 Operand 2
(LD, A, O, AB, OB) declaration (Output, flag)
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Variable
Optional Optional XAST Axis number CP
number
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
5. SEL Commands
RAXD/ SSEL
QCT SXD
SAXD
[Function] It reads the axis status specified in Operand 2 into the variable in Operand 1.
611
Bit structure of axis status (XSEL-RA/SA/RAX/SAX/RAXD/SAXD)
Valid (o), Invalid (x)
Bit Description Standard
Slave driver
driver
27-31 Reserved - -
26 Axis alarm (error detected by X-SEL) (* 1) ○ ○
25 Axes being used ○ ○
24 Reserved - -
16-23 Reserved - -
15 Operation Mode Status (0=AUTO/1=MANU) ○ ×
14 Overload Warning ○ ×
13 Zone 2 ○ ×
12 Zone 1 ○ ×
5. SEL Commands
11 Reserved - -
10 Reserved - -
9 Safety speed valid status (X-SEL safety status valid) ○ ○
8 Battery Voltage Drop (* 2) ○ ×
7 Reserved - -
6 Reserved - -
5 Reserved - -
4 Servo On status ○ ○
3 Reserved - -
2 Home return completion ○ ○
1 Position complete (* 3) ○ ○
Operation Unable Alarm Occurred
0 ○ ○
(At slave driver control: error on slave controller)
*1 : “Axis Alarms” includes the state of “Operation Unable Alarm Occurred” (error on slave controller) as well
as those errors detected in the XSEL.
*2 : It depends on the connected slave if this status becomes valid or not. If it is necessary to use, refer to the
MECHATROLINK-III instruction manual of the RC controller to be used, and check if it is supported.
*3 : The bit turns on when the operation command to the XSEL controller is finished and the positioning
complete status on the slave controller has turned on.
612
[Example] XAST 200 10 Acquire the status of Axis No. 10 to Variable 200.
Assuming 8212 (decimal number) was in Variable 200 after this command was executed;
(Bits) 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0 0 1 0 0 0 0 0 0 0 0 1 0 1 0 0
and the status of home-return complete (bit 2), servo-on (bit 4) and zone 2 (bit 13) should
be on.
[Reference] It can be confirmed that the indicated bit is on by using AND Command.
5. SEL Commands
AND 200 16 900 It should be the logical conjunction of Variable 200
and 16 (*decimal number).
Flag 900 will turn ON when the result of logical
conjunction is 0.
16 (decimal number) = 10000 (binary number) By executing the step described above,
• When Bit 4 is ON : Flag 900 turns OFF
• When Bit 4 is OFF : Flag 900 turns ON
against the value of Variable 200.
613
XACH (Extension motion control axis arch motion)
Extension Command, declaration Output
Input condition
condition Command, operation type
(I/O, flag) Operand 1 Operand 2
(LD, A, O, AB, OB) declaration (Output, flag)
Position Position
Optional Optional XACH PE
number number
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
SAXD
5. SEL Commands
[Function] Arch Motion gets performed from the current position to the target position.
Movement will be made with arch motion (CP Movement) to the position
indicated in Operand 1.
Movements in directions other than the arch-motion Z-axis direction will begin
after rising from the current position to the start-point arch trigger. With Z-axis
position in the position indicated in Operand 2 as the highest point, after all the
movement except for the direction of the arch motion Z-axis is finished, the
actuator passes near the end point arch trigger and reaches the indicated
position.
The setting of the arch motion Z-axis by XACZ command and the arch trigger
by XATG command are necessary.
(Note 1) Set axis patterns using the XAXS or XA16 command before executing this
command. If the command has not been executed, error No. 4B3 “No extension
motion control board axe pattern setting error” occurs. The arch motion Z-axis
and arch motion composited axes (when arch motion composition is activated)
should be included in the indicated axis patterns. Error No. CB4 “Palletized
Z-Axis Non-Declaration Error” will occur if there is no arch motion Z-axis included
in the axis patterns.
(Note 2) This command requires indication of the velocity, acceleration and deceleration in
VAL, VLMX, ACC, DCL commands before execution. If those commands have
not been executed, an error occurs.
(Note 3) The positioning complete band is valid only for the arch motion Z-axis in the
position indicated in Operand 1. It should be defined as positioning complete
when the actuator goes down along the Z-axis to the target position and reaches
the indicated positioning complete band.
(Note 4) It should be CP operation.
614
[Example 1] XACZ 3
XATG 13 11
XACH 10 12
5. SEL Commands
any, plus the arch-motion Z-axis offset. If there is no arch-motion Z component,
the arch-motion Z-axis coordinate of the end point will become the arch-motion
Z-axis coordinate of the start point plus the arch-motion Z-axis offset.
An error will generate if the start-point arch trigger is set below the start point
or the end-point arch trigger is set below the end point. (Note: Up/down has
nothing to do with +/- on the coordinate system.)
The arch-motion Z-axis up direction refers to the direction toward the Z point
from the start point (the down direction refers to the opposite direction), and
has nothing to do with the size of coordinate value. Therefore, be sure to
confirm the actual operating direction when using this command.
The arch-motion Z-axis will come down after a rise-process command value is
output. Therefore, one of the following operations will be performed depending
on how the arch-trigger point and Z point are set.
If the resulting operation is undesirable, change the arch trigger and/or Z point
to improve the efficiency of movement.
Z point
Start Point of
Arch Trigger
Start Point of
Arch Trigger
As for the end position data, movement also starts/ends above the applicable
arch trigger for any effective axis, other than the arch motion Z-axis, if data of
such axis is included in the position data.
If there is an arch motion composition setting, and if there is valid axis data
except for the end point data and the arch motion Z-axis, this axis will also
make operation. In this case, movement of the axis also starts/ends above the
applicable arch trigger.
615
XACZ (Extension motion control axis arch motion Z-axis declaration)
Extension Command, declaration Output
Input condition
condition Command, operation type
(I/O, flag) Operand 1 Operand 2
(LD, A, O, AB, OB) declaration (Output, flag)
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
SAXD
5. SEL Commands
[Function] Indicate the axis number in the arch motion Z-axis when operation is made with
XACH command. The axis number specified in operand 1 will be set as the axis
number representing the arch-motion Z direction. If the output field is specified, the
output will turn ON after this command is executed.
[Example] XACZ 3
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
SAXD
[Function] Establish the arch motion composition setting when operation is made with
XACH command. In this setting, the axis to be moved at the same time as the
horizontal operation should be added. Use the position number specified in
operand 1 for setting composite motion. While the arch motion is executed, valid
axes in the arch motion end position data and the valid axes except for the arch
motion Z-axis in the position data indicated by this command will move as the
composited axes to the end point coordinate indicated in the position data.
If nothing is specified in operand 1, the position number already declared for
setting composite motion becomes invalid.
616
XATG (Extension motion control axis arch trigger setting)
Extension Command, declaration Output
Input condition
condition Command, operation type
(I/O, flag) Operand 1 Operand 2
(LD, A, O, AB, OB) declaration (Output, flag)
Position Position
Optional Optional XATG CP
number number
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
SAXD
5. SEL Commands
[Function] Establish the arch trigger setting when operation is made with XACH command.
Set the arch-motion Z-axis position data in the position data specified in operand
1 as the start-point arch trigger, and set the arch-motion Z-axis position data in
the position data specified in operand 2 as the end-point arch trigger.
For an arch-motion operation, set it so that a horizontal movement will begin
when the start-point arch trigger is reached during ascent from the start point,
and that the end-point arch trigger will be reached after a horizontal movement is
completed during descent. If the output field is specified, the output will turn ON
after this command is executed.
[Example] XATG 13 11
617
XOAZ (Extension motion control axis arch motion Z-axis offset setting)
Extension Command, declaration Output
Input condition
condition Command, operation type
(I/O, flag) Operand 1 Operand 2
(LD, A, O, AB, OB) declaration (Output, flag)
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
SAXD
5. SEL Commands
[Function] The offset in the arch motion Z-axis direction when operation is made with XACH
command is to be set. The value specified in operand 1 will be set as the offset in
the arch-motion Z-axis direction. The offset amount is set in mm and the effective
resolution is 0.001mm. A negative value can also be specified as the offset, as
long as the operation range will not be exceeded. It is the offset valid only to the
end point of XACH command. If the output field is specified, the output will turn
ON after this command is executed.
618
[28] Conveyor Tracking Related Commands
5. SEL Commands
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
SAXD
Caution : TRMD and TRAC Commands are available only when they are in the same
program (task).
Dedicated application software is required when using the conveyor tracking
function. Please contact us for the details.
619
TRAC (Tracking operation setting & datum point position information
obtainment in work)
Extension Command, declaration
Input condition Outpu
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Operand 1 = 0
Prohibited
0 (Operation OFF)
Operand 1 = 1
or
Optional Optional TRAC 1 (Operation
Position number CC
to save the
(Standby) ON)
work position
information
5. SEL Commands
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
SAXD
620
Return Code in TRAC Command (Variable 99 (Local Space))
* When Operand 1 = 0 (Tracking Operation OFF), the return code cannot be
returned. (Variable 99 not operated)
0: Tracking operation start & datum point position information obtaining
succeeded
1. Datum point in work position information obtaining timeout
Timeout value should be indicated in Operand 2 of TRMD Command as
described previously.
2. Datum point in work position information obtaining timer cancel (Timer cancel
by TIMC Command)
3. Reached the maximum work position for tracking operation start (Work
reached a position that cannot be tracked)
Even thought the datum point position information in work can be obtained, the
5. SEL Commands
data is no more meaningful, thus ensure not to do the positioning with that
position information. The work attribute (it is for the future expansion, currently
fixed value = no attribute identification) isaved to the local variable indicated in
“All-Axes Parameter No. 93 Tracking Work Attribute Saved Local Variable
Number”.
4. Tracking operation stop
When the work reaches the position to finish the tracking operation, tracking
reversed operation workposition, or an error is occurred, the tracking operation
gets cancelled (stopped).
5. Tracking Mode Cancelled
Work detection is set to invalid by Tracking Mode OFF Command or an error
and all the existed work information is deleted.
621
Caution
1) TRMD and TRAC Commands are available only when they are in the same program (task).
2) Execute the Tracking Operation ON Command on the position where there is no interference
to the surroundings with the tracking operation, movement to the point above the datum point
in the working range after the tracking, or the combination of both operations.
3) Ensure to use MOVL Command for the movement on the axis during the conveyor tracking
operation. If the position data (Datum point position information in Work) is “obtained in
normal condition”, perform a positioning quickly with “MOVL” to the point around the position
(around the point above the datum point in the work) considering “the target values for the
axes that the data is not obtained for, such as Z-axis (height)”. The obtained position data is
effective only in “the tracking operation that time” and becomes ineffective after “the tracking
operation that time” is complete.
For SCARA Robot, the robot arm getting close to the area around the peculiar point as the
5. SEL Commands
result of conveyor tracking may cause an abnormal acceleration and it is very risky. In the
case this abnormal acceleration around the peculiar point is occurred, the arm deceleration
angle after the error detection also becomes larger. Do not locate interfering object in the
surroundings. The following errors will be detected if the abnormal acceleration around the
peculiar point:
Error No. B74 CP Operation Limited Area Invasion Error
Error No. B91 Main Excess Speed Necessity Error
Error No. D09 Driver Excess Speed Error
To avoid this phenomenon, the work tracking limit can be set in “All-Axes No.75 Tracking
Operation Complete Work Position”, however, since it all depends on the work position,
there is still a risk that the robot arm reaches the peculiar position unless it is quickly moved
to the position (Datum Point in Work) obtained in normal condition by Tracking Operation ON
Command.
It is also an effective way for the debug test operation when turning the system on to
detect in the simple interference check zone before invasion to the peculiar point on the
exist side if the operation is under a comparatively low conveyor speed.
If reaching to the axis soft limit or interference range due to the positional correlation of
“minimum work position for tracking operation start” and “point above datum point for
work”, have an appropriate treatment on the sequence to avoid it such as by setting the
different start time for the positioning to the point above the work datum point with a
timer, etc.
4) Since the right for the servo use is occupied by the TRAC Command execution task during
Tracking Operation ON Command, the tracking related servo axis cannot be used from other
tasks. (For SCARA Robot, 4 axes are occupied for the purposes of the posture control and
other related.)
5) For SCARA Robot, it is operated on the work coordinate system of when the conveyor
tracking operation is started during the conveyor tracking operation.
6) Conveyor tracking operation does not stop at the break points of SEL program.
The break point only pauses the next program step execution.
7) PUSH Command cannot be used during the conveyor tracking operation.
622
[29] Vision System I/F Related Command
Applicable models
XSEL
XSEL XSEL
5. SEL Commands
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
SAXD
TT:,
TTA: (PC/PG
only)
[Function] Select whether using Vision System I/F in this command (GTVD Command).
623
(Note 1) SLVS and GTVD Commands can be executed only on the same program (task).
(Note 3) When the Vision System I/F is used with Ethernet, message communication
attribute is fixed to client.
[Example 1]
SLVS 1 Select Vision System I/F Usage
(GTVD Command Timeout Value = None)
5. SEL Commands
624
GTVD (Vision system I/F image-capture data acquirement)
Extension Command, declaration
Input condition Outpu
condition Command,
(I/O, flag) Operand 1 Operand 2 (Output, flag)
(LD, A, O, AB, OB) declaration
E N, Cnd Cmnd Operand 1 Operand 2 Pst
Capturing trigger
Optional Optional GTVD Variable number CC
classification
Applicable models
XSEL
XSEL XSEL
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/
5. SEL Commands
SSEL
QCT SXD
SAXD
TT:,
TTA: (PC/PG
only)
[Function] This outputs the image-capture command to the Vision System I/F selected by
SLVS Command and stores the received image data to the variables and
specification data. With one time of execution of this command, one image data
can be obtained.
625
*3 The variable set to this data number should be as shown below in response to the
indication of Variable No. n+4.
Variable No. n+4 = 0: Top position No.
1st to 12nd…Center of Work Piece Gravity Posiiton 1 to 12
1: Top work coordinate system No.
No. 1 to 12 …1 to 12 sets of center of work piece gravity offset
(Note) In either case, confirm 12 sets of data from the top data number are kept
unused in a row.
*4 Supported only by TTA or MSEL-PC/PG Application V2.00 and later
2 : GTVD Timer cancelled (condition that the waiting status is cancelled by TIMC
Command)
3 : Vision System Unset Detection (SLVS Command not executed, etc.))
4 : Work Detection Cancel Status Detection (errors, etc.)
(Note 1) SLVS and GTVD Commands can be executed only on the same program (task).
(Note 2) Receivable communication formats can be switched in I/O Parameter No. 352,
Bits 0 to 7.
(Note 3) The system is capable to obtain the work data (coordinates and attributes) of 12
work pieces in 1 shot of image capturing.
Error No. 417 is issued when 13 or more work pieces are detected in 1 shot, and
“4: Work Detection Cancel Status Detection (error, etc.)” is set to the return code.
(Note 4) Error No. 416 (Received Message Error) is issued when there is an error in the
received message during SLVS Command execution.
Check the communication format selection parameter (I/O Parameter No. 352 or
Bits 0 to 7) settings and the output communication format on Vision System side.
(Note 5) There will be no change in the variables for work attribute storage and the
position data when the quantity of detected work piece in the received image
data is 0.
(Note 6) It is prohibited to capture an image during the movement of the robot if the
camera is mounted on the robot.
Make sure to capture an image in the stop condition.
An accurate work data cannot be acquired if a capturing is conducted during the
robot movement.
(Note 7) When the position data is indicated for the data classification for captured data
storage, the coordinate system definition unit axes position data should be
converted into the position on the work coordinate system selected while this
command is being executed.
(Note 8) When the work coordinate system offset data is indicated for the data
classification for captured data storage, “Error No. B73 Coordinate System Data
Change Forbidden during Servo Use Error” will occur if a subjected axis is in
operation while this command is being executed.
(Note 9) When the work coordinate system offset data is indicated for the data
classification for captured data storage, the result is set to the offset data of X, Y
and R-axes of the coordinate system definition unit related to X, Y and R-axes of
the vision system in “All Axes Parameter No. 121 Vision System I/F 1 Coordinate
Axes Definition”.
626
[30] Anti-Vibration Control Related Command
Applicable models
XSEL
XSEL XSEL
5. SEL Commands
-RAX/ ASEL
XSEL -P/Q/ XSEL XSEL XSEL XSEL -RX/SX/
SAX/ PSEL TT/TTA MSEL
-J/K PCT/ -R/S -RA/SA -JX/KX -PX/QX RXD/
RAXD/ SSEL
QCT SXD
SAXD
(Linear (Linear
drive drive
axis axis
only) only)
[Function] It declares what, in the specific frequency patterns registered to the parameters,
is to be used for the anti-vibration control for the axis pattern set in Operand 1.
Operand 1 : Axis pattern selection
Indicate the axis that the anti-vibration control parameter set
selection is conducted as “1” and the one not to be conducted as “0”.
Operand 2 : Parameter set number
Select if use/not to use the anti-vibration control and which specific
frequency pattern (parameter set) is to be used.
0 : Standard Position Control (Anti-vibration control is not done)
1 : Vibration Control Parameter Set 1 (Each Axis Parameter No.151 to 154)
2 : Vibration Control Parameter Set 2 (Each Axis Parameter No.156 to 159)
3 : Vibration Control Parameter Set 3 (Each Axis Parameter No.161 to 164)
Except for 0 to 3 : Standard Position Control (Anti-vibration control is
not done)
Standard
Position Control
Vibration
Parameter Set 1
Vibration
Parameter Set 3
Standard
Position Control
627
5.4 Key Characteristics of Actuator Control Commands and Points to Note
5.4.1 Continuous Movement Commands
[PATH, CIR, ARC, PSPL, CIR2, ARC2, ARCD, ARCC, CIRS, ARCS and CNTP]
1) By running a program with continuous movement commands input in a series of continuous
program
steps, you can allow the actuators to perform operations continuously without stopping between
steps.
PATH 1 5
ARC2 6 7
5. SEL Commands
PATH 8 12
2) Continuous movement will not be achieved if an input condition is specified for any continuous
movement command.
PATH 1 5
20 ARC2 6 7
PATH 8 12
Stops momentarily.
3) The output field of each command will turn ON as the end position of that command approaches.
Only with the last command in a series of continuous movement commands, the output will turn
ON upon completion of operation (if there is no input condition).
(Position 1)
628
[Example 1] (POTP = 1) Output Timing
POTP 1 308 Turn ON as P1 approaches.
: 309 Turn ON as P2 approaches.
310 Turn ON as P3 approaches.
: 311 Turn ON as P11 approaches.
PATH 1 3 308 312 Turn ON as P21 approaches.
ARC2 10 11 311 313 Turn ON as P22 approaches.
PATH 21 23 312 314 Turn ON when P23 operation is complete.
5. SEL Commands
[Example 3] If an input condition is specified, the output will turn ON upon completion of operation
inthe step before the one in which the input condition is specified.
Output Timing
POTP 1 308 Turn ON as P1 approaches.
: 309 Turn ON as P2 approaches.
310 Turn ON when P3 operation is complete.
: 311 Turn ON as P11 approaches.
PATH 1 3 308 312 Turn ON as P21 approaches.
20 ARC2 10 11 311 313 Turn ON as P22 approaches.
PATH 21 23 312 314 Turn ON when P23 operation is complete.
: Actuator operation
PATH 1 5 308
ARC 6 7 311 Step displayed on the PC software or
PATH 8 12 312 teaching pendant
BTON 310
:
629
5) Do not allow the output fields to duplicate in the continuous operation section executed by
continuous movement commands.
Duplicating output fields in the continuous operation section will not achieve the expected result.
The output field will turn OFF at the start of processing of each command.
The final output status of duplicate 305 through 308 is indeterminable, because it is affected by the
5. SEL Commands
6) The actuator can be moved continuously along a series of continuous positions including one
discontinuous position. Specify the position number corresponding to the discontinuous position
as both the start position number and end position number of a PATH command. Position No. 6
is the discontinuous point to be passed in this example.
The actuator will move continuously along the path of position Nos. 1→2→3→4→6→9→10.
PATH 1 4
PATH 6 6 Discontinuous position
PATH 9 10
630
5.4.2 PATH/PSPL Commands
When executing a PATH or PSPL command, pay attention to the locus because it will change if the
acceleration/deceleration is different between points.
The locus can be fine-tuned by changing the acceleration/deceleration, but different
acceleration/deceleration settings between points will prevent smooth transition of speeds when
moving from one position to another.
If there is a large difference in deceleration/acceleration between points and the positioning
distance is small, the speed may drop. Exercise caution.
5. SEL Commands
command.
A small division angle may cause the speed to drop.
CIR2, ARC2, ARCD and ARCC commands actually perform arc interpolation.
CIR CIR2
The speed and acceleration will take valid values based on the following priorities:
Priority Speed Acceleration (deceleration)
Setting in the position data Setting in the position data specified in operand 1
1
specified in operand 1
2 Setting by VEL command Setting by ACC (DCL) command
Default acceleration in all-axis parameter No. 11
3
Default deceleration in all-axis parameter No. 12
631
5.5 Position Output Operation Features
Applicable Controllers : TTA, MSEL, XSEL-RA/SA/RAX/SAX/RAXD/SAXD
delivery.
5.5.1 Outline
There was POTP Command (PATH Output Type Setting) in SEL Command as the feature to output
with a position in operation by a command such as PATH Command. This is a feature to output the
on-signal while incrementing the output port indicated at the output part every time the actuator
approaches each position in continuous movement during PATH and PSPL movements. Therefore,
it always conducts on operation to different outputs.
On the other hand, the position output operation feature enables on and off operations to the same
outputs (control outputs of external devices) as it controls external devices such as a dispenser
and torque driver during the axis operation.
The output operation setting should be conducted at each position in the position data.
The set output operation is conducted when the movement command of the position that the output
operation is set is executed.
There are six types output operation as;
• To turn the indicated output port or flag ON after movement
• To turn the indicated output port or flag OFF after movement
• To turn the indicated output port or flag ON after passed the indicated distance
• To turn the indicated output port or flag OFF after passed the indicated distance
• To turn the indicated output port or flag ON at the position where the actuator is moved for the
indicated ratio minute to the whole movement amount from the movement start position
• To turn the indicated output port or flag OFF at the position where the actuator is moved for the
indicated ratio minute to the whole movement amount from the movement start position.
For TTA and MSEL this feature is not activated at delivery. Activate it by conducting 5.5.2 How to
Valid Position Output Operation Function.
This feature is already valid at delivery for XSEL-RA/SA/RAX/SAX/RAXD/SAXD. It is not
available to make it invalid.
632
5.5.2 How to Valid Position Output Operation Function (TTA, MSEL)
If the output operation data valid/invalid setting is changed, it is necessary to initialize the position
data as a change is made to the position data construction. Follow the procedures below to switch
the output operation data valid/invalid.
2) Change Bit 4-7: Position Output Operation Data Valid Select in All Axes Parameter No. 54 “All
Axes Setting Bit Pattern 3” (0: Invalid, 1: Valid)
3) Write the parameters to the flash ROM, and conduct the software reset.
5. SEL Commands
* Error No. 6BD “Position Data Construction Change Error” will occur after rebooting.
4) Initialize the position data and clear up all the position data.
Conduct “Controller” → “Memory Initialization” → “Position” in the main menu.
5) Write the position data to the flash ROM, and conduct the software reset.
6) As all the position data are cleared, transfer the position data saved in 1) as necessary to the
controller and write in the flash ROM.
The procedures above are necessary also when the setting of valid/invalid for the position output
operation data is changed by transferring and writing the parameter files. It is not necessary to
have the procedures above when all the backup files are to be transferred to the controller as the
tool automatically initializes the position data.
633
5.5.3 How to Valid Position Data Output Operation Setting
There are 4 items, OutFn, OutNo., OutPara1 and OutPara2, as the items to set the output
operation.
OutFn
Set the output functio.
Set a value applicable for the output function of 1 to 6.
5. SEL Commands
OutNo.
Set the output port and flag subject to operation.
OutPara1
Set the parameters defined for each output function.
OutPara2
If the output pulse timer time is set, one-shot pulse output is made.
634
5.5.4 Valid SEL Language Commands for Output Operation of Position Data and
Common Notes for Caution
The commands shown in the table below are the valid commands.
Output
PC / TP
Function Output Function Name Valid SEL Commands
Display
Code
0 - Invalid -
5. SEL Commands
Turns on after passing
3 OND
indicated distance
Turns off after passing
4 OFFD
indicated distance MOVL / MVLI / TMLI / PATH / CIR2 / ARC2 /
Turns on after passing ARCD / ARCC / ARCH
5 ONR
indicated ratio
Turns off after passing
6 OFFR
indicated ratio
635
5.5.5 Explanation of Each Output Function
Below explains each output function.
Output PC / Operation
Output Function Function Function
Function TP Output Port
Name Parameter 1 Parameter 2
Code Display Flag
Turns on after
1 ON
Moving Output Port Output delay timer Output pulse timer
Turns off after Flag No. time time
2 OFF
Moving
5. SEL Commands
[Function] The indicated output ports and flags are turned on/off after moving to the applicable
position. The timing of the output operation is as stated in the table below for each
classification of the movement. Indicate each of the output delay timer time and output
pulse timer time of the function parameter, and one-shot pulse is output. (No indication
when 0)
No Indication for
Passed Time
Function Parameter 1, 2
(Last Position)
Output Operation (N-1)
It shows below the time chart of on and off signals when Function Parameter 1 and Function
636
Parameter 2 are indicated and not indicated in the case that PATH Operation in Position No. 10 to
No. 13 below is conducted as an example.
ON
OFF
5. SEL Commands
No.10 No.11 No.12 No.13
Turns ON at As there is no setting conducted It turns OFF
approach of output function to No. 11 and when operation
No. 12, the signal status would is completed.
not change. It is kept ON.
ON
OFF
637
[2] Turns ON/OFF After Passing Indicated Distance
Output PC / Operation
Output Function Function Function
Function TP Output Port
Name Parameter 1 Parameter 2
Code Display Flag
Turns on after
3 OND passing indicated
distance Output Port Output Operation Output pulse timer
Turns off after Flag No. indicated distance time
4 OFFD passing indicated
distance
[Function] The indicated output ports and flags are turned on/off at the position forwarded for the
distance from the movement start position to the indicated in Function Parameter 1
5. SEL Commands
during movement to the applicable position. Indicate the output pulse timer times of
Function Parameter 2, and one-shot pulse is output. (No indication when 0)
This output function is valid for MOVL, MVLI, TMLI, PATH, CIR2, ARC2, ARCD, ARCC
and ARCH Commends. Error No. B97 “Position Output Operation Data Indication Error”
will occur if indicated to other commands.
* Even though the output timing of signal ON and OFF differs from that of ON/OFF
after movement, the way of ON-OFF operation is the same. Refer to [1] ON /OFF
after Movement for the way of ON /OFF operation.
Target Position
(Note 1) This function cannot be indicated when the tool coordinate system offset is set for X-axis
or Y-axis in the movement of 3-Axes Type SCARA. (Error No. B97 “Position Output
Operation Data Indication Error”)
(Note 2) For a position in the continuous movement such as PATH and arc movement, output
operation position will be indicated with the distance with the position in front as the
starting point.
Target Position
638
If the output operation indication distance is indicating the duplicating point of the movement to the
position in front and the movement to the applicable position (as shown in the figure below), the
output operation position will be the position that the movement to the position in front completes.
Starting Point
5. SEL Commands
Target Position
Also, if the output operation indication distance is indicating the duplicating point of the movement
to the position in front and the movement to the next position (as shown in the figure below), the
output operation position will be the position that the movement to the next position starts.
Target Position
(Note 3) In the arc movement, the output operation position will be indicated in a distance to the
arc track on the inside command. As the actual track may become inside for some
velocity settings, adjustment of the indicated distance may be necessary.
Output
Operation
Position
639
(Note 4) In the arch motion movement by ARCH Command, output operation position will be
indicated with the distance with the arch motion Z-axis downward movement position as
the starting point. Just as PATH, if the output operation indication distance is indicating the
duplicating point of the horizontal movement and the Z-axis downward movement, the
output operation position will be the position that the horizontal movement completes.
Starting Point
(Note 5) Variance in the output operation timing may become extremely large when an indication is
conducted to move in a very small distance to Arm 1, Arm 2 of IXP PowerCon SCARA or
an axis with small resolutions compared to other axes. Revise the movement position in
such a case.
(Example) When moving PowerCon SCARA Robot from the current position (-50.000,
300.000, 110.000, 0.000) to the target position (-49.900, 299.800, 109.000,
180.000);
→Change the target position to (-, -, -, 180.000) (no indication to 1st to 3rd arms
(not to move))
(Note 6) The relation between the distance of the output operation indication and the output
position is determined by the movement amount of each axis. When movement is made
with the linear movement axes of three axes or less, the output operation indication
distance can be a distance in the actual space, but when movement is made with the
linear movement axes and rotary movement axes mixed together (for such a reason as to
avoid interference), or when four or more linear movement axes are to move, the output
operation indication distance cannot be in the actual space as shown in the example
below. In such a case, it is easier to establish the setting with using the output function
indicating in rate.
Example) The position to conduct the output operation with indication of 150 for output operation
indication distance is as shown below when X-axis and Y-axis that move linearly and
R-axis that moves rotationally makes the linear interpolation movement from (0, 0, 0)
to (100, 200, 90).
100
X-axis : 150 × = 62.230
1002+2002+902
200
Y-axis : 150 × = 124.461
100 +2002+902
2
90
R-axis : 150 × = 56.007
100 +2002+902
2
640
[3] Turns ON/OFF After Passing Indicated Ratio
Output PC / Operation
Output Function Function Function
Function TP Output Port
Name Parameter 1 Parameter 2
Code Display Flag
Turns on after
5 ONR passing indicated
ratio Output Port Output Operation Output pulse timer
Turns off after Flag No. indicated ratio time
6 OFFR passing indicated
ratio
[Function] The indicated output ports and flags are turned on/off at the position forwarded for the
distance from the movement start position to the indicated in Function Parameter 1
5. SEL Commands
during movement to the applicable position. Indicate the output pulse timer times of
Function Parameter 2, and one-shot pulse is output. (No indication when 0)
This output function is valid for MOVL, MVLI, TMLI, PATH, CIR2, ARC2, ARCD, ARCC
and ARCH Commends. Error No. B97 “Position Output Operation Data Indication Error”
will occur if indicated to other commands.
* Even though the output timing of signal ON and OFF differs from that of ON/OFF
after movement, the way of ON-OFF operation is the same. Refer to [1] ON /OFF
after Movement for the way of ON /OFF operation.
Target Position
(Note 1) This function cannot be indicated when the tool coordinate system offset is set for X-axis
or Y-axis in the movement of 3-Axes Type SCARA. (Error No. B97 “Position Output
Operation Data Indication Error”)
641
(Note 2) For a position in the continuous movement such as PATH and arc movement, output
operation position will be indicated with the ratio with the position in front as the starting
point.
Target Position
5. SEL Commands
If the output operation indication ratio is indicating the duplicating point of the movement to the
position in front and the movement to the applicable position (as shown in the figure below), the
output operation position will be the position that the movement to the position in front completes.
Starting Point
Target Position
Also, if the output operation indication ratio is indicating the duplicating point of the movement to
the position in front and the movement to the next position (as shown in the figure below), the
output operation position will be the position that the movement to the next position starts.
Target Position
642
(Note 3) In the arc movement, the output operation position will be indicated in a ratio to the arc
track on the inside command. As the actual track may become inside for some velocity
settings, adjustment of the indicated ratio may be necessary.
Output
Operation
Position
5. SEL Commands
Track on Inside Command
(Note 4) In the arch motion movement by ARCH Command, output operation position will be
indicated with the distance with the arch motion Z-axis downward movement position as
the starting point. Just as PATH, if the output operation indication ratio is indicating the
duplicating point of the horizontal movement and the Z-axis downward movement, the
output operation position will be the position that the horizontal movement completes.
Starting Point
(Note 5) Variance in the output operation timing may become extremely large when an indication is
conducted to move in a very small distance to Arm 1, Arm 2 of IXP PowerCon SCARA or
an axis with small resolutions compared to other axes. Revise the movement position in
such a case.
(Example) When moving IXP PowerCon SCARA Robot from the current position (-50.000,
300.000, 110.000, 0.000) to the target position (-49.900, 299.800, 109.000,
180.000);
→Change the target position to (-, -, -, 180.000) (no indication to 1st to 3rd arms
(not to move))
643
5.5.6 Common Notes for Caution
Stated below are the caution notes in common for each output function.
The position data setting indicated in Operation 1 is to be valid for the output operation of the arc
movement commands (CIR, ARC, CIR2, ARC2, CIRS, ARCS, ARCD and ARCC) and the arch
motion command (ARCH). In these commands, only one output operation is valid in one motion.
In case of a command to set the position data also to Operation 2, the output operation data gets
ignored.
In the output operation for PATH and PSPL Commands, settings in all the position data from the
start position in Operation 1 to the end position in Operation 2 are valid.
The output operation by the position output operation data and the output operation by the output
5. SEL Commands
portion in SEL Command are processed individually. Therefore, indicating both in one command
is also available.
16 units are available at maximum at the same time in total for all the programs for the output
delay timers in the position output operation and the shot pulse timers in Output 1. Error No. B04
“Simultaneous Excess Use in 1-Shot Pulse Output Error” occurs when timers more than that are
used.
At the end of the program (including when cancelling an error), the output delay timers of the
position output operation and the shot pulse timers for Output 1 executed in the applicable
program are inactivated, and the output operation after that will all be cancelled.
At the pause of the program, the output delay timers and Output 1 shot pulse timers will not be
paused. Therefore, pay attention as the output operation will be conducted after the time of the
timer has been passed even in a pause.
In case that, before completing the delay and one-shot pulse output to the position output “A”, a
certain position output, the position output “B” is conducted from the same program to the same
output port and flag numbers, the output operation of A will be overwritten by the output operation
of B.
Example)
Prg 1 : • • •
MOVP 1 ON 316 2.000 0.000 • • (1)
MOVP 2 OFF 316 0.500 0.000 • • (2)
・・・
⇒ If Step (2) is finished before passing 2.000 sec. after Step (1) is finished, the
position output in Step (1) will be cancelled and Output Port No. 316 will not turn
on.
The actual output timing of the position output operation has tolerance of 3 to 4msec.
644
5.5.7 Other Caution Notes
• The position output operation feature will not respond when moving an actuator by operating such
as Button in the position data edit window in the PC software.
• Make sure to always use tools applicable to the feature when using the position output operation
feature. In case a tool not applicable for the feature is connected and the position data is edited,
the output operation data will be deleted.
5. SEL Commands
645
5. SEL Commands
646
6. Program Examples
6.1 Operation by Jog Command Doll-Picking Game Machine
(1) Overview of the system
This system is a doll-picking game machine consisting of axis-1 and axis-2 actuators.
Pushbutton switches corresponding to the two axes are provided on an external operation
switch box, and these switches are used to move the actuators to a desired position to grab
and pick up dolls inside the case.
Axis 1
Axis 2
6. Program Examples
Hand
Load
Hand control unit
Axis-1 movement
pushbutton switch Axis-2 movement pushbutton switch
647
(2) Explanation of the operation
How this system operates is explained.
The above operation will be repeated. The operation position, external I/O assignments and
operation flow chart of this operation are shown below:
6. Program Examples
Y
Axis 1 operates in forward
direction
Arbitrary distance
Axis 1 N
switch OFF
Arbitrary
Y
distance
Axis 1 stops
Axis
2 Axis 2 N
switch ON
Y
Axis 2 operates in forward
direction
I/O Assignments
Axis 2 N
Category I/O No. Signal name Specification switch OFF
Axis-1 movement Y
16 Pushbutton switch
command Axis 2 stops
Axis-2 movement
Input 17 Pushbutton switch
command Hand-control-unit start
XSEL
command ON
Hand operation External control
18
completion unit
N
Hand start Complete
Output 309 24V DC
command Y
* Flag is not used. Hand-control-unit start
command OFF
648
(3) XSEL Controller application program
6. Program Examples
8 BTON 309
control unit turns ON.
Wait for external control unit to
9 WTON 18
complete operation.
Start command for external
10 BTOF 309
control unit turns OFF.
Axes 1 and 2 move backward
11 JBWF 11 18
while 18 is ON.
12 GOTO 1 Jump to TAG1.
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
649
6.2 Operation by Point Movement Command Riveting System
(1) Overview of the system
This system is a riveting system consisting of an XY-table operated by axis-1 and axis-2
actuators and a riveter. By setting a work on the XY-table at the operation home and turning
ON the start switch, rivets will be driven at the three points specified on the work.
Riveter
Axis 2 Work
XY-table
6. Program Examples
Axis 1
650
(2) Explanation of the operation
How this system operates is explained.
The above operation will be repeated. The operation position, external I/O assignments and
operation flow chart of this operation are shown below:
6. Program Examples
XY-table
Start
N
Start
Y
P3 P2
Move to riveting position
Riveting command ON
Riveter position
Riveting N
complete
N
completion Operation
complete
Riveting
Output 309 24V DC Y
command
* Flag is used from 600.
651
(3) XSEL Controller application program
Step E N Cnd Cmnd Operand 1 Operand 2 Pst Comment
XY-table returns to home (servo
1 HOME 11
ON).
2 VEL 400 Set speed to 400mm/s.
3 TAG 1
Move to position No. 1 (home of
4 MOVL 1
work).
5 LET 1 2 Set 2 in work counter.
6 BTOF 600 Clear completion flag.
7 WTON 16 Wait for start command.
8 TAG 2
9 MOVL *1 Move to work counter position.
10 BTON 309 Riveting command turns ON.
11 WTON 17 Wait for riveting to complete.
6. Program Examples
652
6.3 Palletizing Operation Palletizing System
(1) Overview of the system
This system is a palletizing system consisting of axis-1 and axis-2 actuators and a Z-axis air
cylinder. It clamps a work at the work feed point and transfers it onto a pallet, and repeats this
operation in a sequence.
(Operation is implemented by an offset command without using a palletizing function.)
Axis 2
Air cylinder
Axis 1
6. Program Examples
Air chuck
Pallet
Operation box
653
(2) Explanation of the operation
How this system operates is explained.
The above operation will be repeated. The operation position, external I/O assignments and
operation flow chart of this operation are shown below:
Axis
Clear variable Cylinder down
1
Move to position No. 18
Lower limit N
P1 Y
Wait for
input of 18 Reverse chuck output
Axis 2 Y (0.5s)
Call chuck subroutine
Cylinder up
17 Proximity SW Variable
lower limit 300 = 80 N
Pushbutton
18 Start Y
XSEL
switch
Clear variable 300
309 Z-axis cylinder SV 24V DC
Output
654
(3) XSEL Controller application program
6. Program Examples
13 MOVL 17 Move to position No. 17.
14 EXSR 1 Call chuck subroutine (chuck).
Offset axis 1 by value in variable
15 OFST 1 *300
300.
Offset axis 2 by value in variable
16 OFST 10 *301
301.
Move to position No. 1 + offset
17 MOVL 1
value.
18 EXSR 1 Call chuck subroutine (unchuck).
19 ADD 300 20 Add 20 to variable 300.
Turn ON flag 600 if variable 300
20 CPEQ 300 80 600
= 80.
21 N 600 GOTO 2 Jump to TAG2 if flag 600 is OFF.
22 LET 300 0 Clear variable 300.
23 ADD 301 30 Add 30 to variable 301.
Turn ON flag 601 if variable 301
24 CPEQ 301 120 601
= 120.
25 N 601 GOTO 2 Jump to TAG2 if flag 601 is OFF.
26 BTON 311 Output 311 turns ON.
27 GOTO 1 Jump to TAG1.
28 BGSR 1 Start chuck subroutine.
29 BTON 309 Z-axis cylinder down
30 WTON 17 Wait for lower-limit input.
31 BTNT 310 Reverse air-chuck output.
32 TIMW 0.5 Timer: 0.5 second
33 BTOF 309 Z-axis cylinder up
34 WTON 16 Wait for upper-limit input.
35 EDSR End of chuck subroutine
36
37
38
39
655
6.4 Screw-Tightening Machine
(1) Overview of the system
This system consists of axis-1 and axis-2 actuators, Z-axis cylinder, screw-tightening device
and parts feeder, and tightens the screws fed by the parts feeder at the specified positions on
the work.
Axis 2
Screw tightening
start Z-axis cylinder
Screw-tightening device
Parts feeder
Axis 1
6. Program Examples
Work
Operation box
(2) Equipment
Screw-tightening machine (for Z-axis)
Actuators (for axes 1 and 2) IAI’s 60W servo motor/actuator with 300mm stroke 2
Controller IAI’s XSEL controller
(2) The parts feeder operates in parallel with the above operation.
1) The parts feeder starts when screws are short. Axis 1
2) The parts feeder stops when the screws are fully loaded.
656
[Hardware]
1) I/O assignment
I/O connector (50 pins)
Pin No. Category Port No. Function Cable color
General-purpose: NC /
1 – Brown-1
Compact: +24V input
2 000 Program start Red-1
3 001 General-purpose input Orange-1
4 002 General-purpose input Yellow-1
5 003 General-purpose input Green-1
6 004 General-purpose input Blue-1
7 005 General-purpose input Purple-1
8 006 General-purpose input Gray-1
9 007 Program specification (PRG No.1) White-1
10 008 Program specification (PRG No.2) Black-1
11 009 Program specification (PRG No.4) Brown-2
12 010 Program specification (PRG No.8) Red-2
6. Program Examples
13 011 Program specification (PRG No.10) Orange-2
14 012 Program specification (PRG No.20) Yellow-2
15 013 Program specification (PRG No.40) Green-2
16 014 General-purpose input Blue-2
Input
17 015 General-purpose input Purple-2
18 016 Screw tightening start Gray-2
19 017 Screw tightening end White-2
20 018 Z-axis air cylinder top Black-2
21 019 Parts-feeder all screws tightened Brown-3
22 020 Screw tightening complete Red-3
23 021 General-purpose input Orange-3
24 022 General-purpose input Yellow-3
25 023 General-purpose input Green-3
26 024 General-purpose input Blue-3
27 025 General-purpose input Purple-3
28 026 General-purpose input Gray-3
29 027 General-purpose input White-3
30 028 General-purpose input Black-3
31 029 General-purpose input Brown-4
32 030 General-purpose input Red-4
33 031 General-purpose input Orange-4
34 300 Alarm output Yellow-4
35 301 Ready output Green-4
36 302 Emergency stop output Blue-4
37 303 General-purpose output Purple-4
38 304 General-purpose output Gray-4
39 305 General-purpose output White-4
40 306 General-purpose output Black-4
41 307 General-purpose output Brown-5
42 Output 308 General-purpose output Red-5
43 309 Z-axis air cylinder down Orange-5
44 310 Screw tightening start Yellow-5
45 311 Parts feeder start Green-5
46 312 General-purpose output Blue-5
47 313 General-purpose output Purple-5
48 314 General-purpose output Gray-5
49 315 General-purpose output White-5
General-purpose: NC /
50 – Black-5
Compact: 0V
657
2) Layout drawing
Digital switch
11 009 Program specification (PRG No.4)
12 010 Program specification (PRG No.8)
13 011 Program specification (PRG No.10)
6. Program Examples
658
[Software]
1) Control flow chart
Main program:
Sub program:
Screw-tightening
machine Parts feeder
Program 1 Program 2
Screws short
Start program 2
Parts feeder ON
Align home
6. Program Examples
Screws fully loaded
Start screw tightening (pushbutton)
5 seconds on timer
Z-axis air cylinder down
Screw tightening
complete
6 screws
tightened?
Screw tightening
complete?
Stop program 2
End
659
2) Main program
Screw-tightening program No. 1
Application program
Extension Input Output
Command
condition condition condition
Comment Comment
Output
AND, OR I/O, flag Command Operand 1 Operand 2
port, flag
1 EXPG 2 Start program 2.
2 HOME 11 Align home.
3 VEL 100 Speed: 100mm/sec
4 ACC 0.3 Acceleration: 0.3G
5 TAG 1 Jump destination at restart
6 WTON 16 Screw-tightening start pushbutton
7 LET 1 1 Set screw counter.
Jump destination after tightening
8 TAG 2
one screw
9 MOVL *1 Move.
6. Program Examples
Position program
No. X Y
1 30 30
2 60 30
3 90 30
4 30 60
5 60 60
6 90 60
3) Sub program
Parts feeder program No. 2
Application program
Extension Input Output
Command
condition condition condition
Comment Comment
Output
AND, OR I/O, flag Command Operand 1 Operand 2
port, flag
1 TAG 1 Jump destination for repeating
2 WTOF 19 Screws short.
3 BTON 311 Start parts feeder.
4 WTON 19 Screws fully loaded.
5 BTOF 311 Stop parts feeder.
6 TIMW 5 5 seconds on restart timer
7 GOTO 1 Repeat.
660
7. Appendix Appendix
7. Appendix
7 BEL ETB ' 7 G W g w
8 BS CAN ( 8 H X h x
9 HT EM ) 9 I Y i y
A LF/NL SUB * : J Z j z
B VT ESC + ; K [ k {
C FF FS , < L l |
D CR GS - = M ] m }
E SO RS . > N ^ n ~
F SI US / ? O _ o DEL
661
7. Appendix
662
Change History
Revision Date Description of Revision
2011.12 Edition 2B
Note corrected etc.
Change History
2012.04 Third edition
Note added for PCT/QCT Types for CT4 Actuator and explanation changed for
related command (SCRV)
2015.09 Edition 8C
Pages 164 Correction of the explanation for palletizing calculation
Pages 299, 300 Correction of the SCRV Command of TT, TTA and MSEL
663
Revision Date Description of Revision
664
Manual No.: ME0224-10K (September 2017)
Head Office: 577-1 Obane Shimizu-KU Shizuoka City Shizuoka 424-0103, Japan
TEL +81-54-364-5105 FAX +81-54-364-2589
website: www.iai-robot.co.jp/
SHANGHAI JIAHUA BUSINESS CENTER A8-303, 808, Hongqiao Rd. Shanghai 200030, China
TEL 021-6448-4753 FAX 021-6448-3992
website: www.iai-robot.com
825, PhairojKijja Tower 12th Floor, Bangna-Trad RD., Bangna, Bangna, Bangkok 10260, Thailand
TEL +66-2-361-4458 FAX +66-2-361-4456
The information contained in this document is subject to change without notice for purposes of
product improvement.
Copyright © 2017. Sep. IAI Corporation. All rights reserved.
17.09.000