SV43 Programming Manual
SV43 Programming Manual
-Q172CPU
-Q173CPU
-Q172CPUN
-Q173CPUN
SAFETY PRECAUTIONS
(Read these precautions before using.)
When using this equipment, thoroughly read this manual and the associated manuals introduced in this
manual. Also pay careful attention to safety and handle the module properly.
These precautions apply only to this equipment. Refer to the Q173CPU(N)/Q172CPU(N) Users manual
for a description of the Motion controller safety precautions.
These SAFETY PRECAUTIONS classify the safety precautions into two categories: "DANGER" and
"CAUTION".
Store this manual in a safe place so that you can take it out and read it whenever necessary. Always
forward it to the end user.
A-1
For Safe Operations
1. Prevention of electric shocks
! DANGER
Never open the front case or terminal covers while the power is ON or the unit is running, as this
may lead to electric shocks.
Never run the unit with the front case or terminal cover removed. The high voltage terminal and
charged sections will be exposed and may lead to electric shocks.
Never open the front case or terminal cover at times other than wiring work or periodic
inspections even if the power is OFF. The insides of the Motion controller and servo amplifier are
charged and may lead to electric shocks.
When performing wiring work or inspections, turn the power OFF, wait at least ten minutes, and
then check the voltage with a tester, etc.. Failing to do so may lead to electric shocks.
Be sure to ground the Motion controller, servo amplifier and servomotor. (Ground resistance :
100 or less) Do not ground commonly with other devices.
The wiring work and inspections must be done by a qualified technician.
Wire the units after installing the Motion controller, servo amplifier and servomotor. Failing to do
so may lead to electric shocks or damage.
Never operate the switches with wet hands, as this may lead to electric shocks.
Do not damage, apply excessive stress, place heavy things on or sandwich the cables, as this
may lead to electric shocks.
Do not touch the Motion controller, servo amplifier or servomotor terminal blocks while the power
is ON, as this may lead to electric shocks.
Do not touch the built-in power supply, built-in grounding or signal wires of the Motion controller
and servo amplifier, as this may lead to electric shocks.
A-2
3. For injury prevention
! CAUTION
Do not apply a voltage other than that specified in the instruction manual on any terminal.
Doing so may lead to destruction or damage.
Do not mistake the terminal connections, as this may lead to destruction or damage.
Do not mistake the polarity ( + / - ), as this may lead to destruction or damage.
Do not touch the servo amplifier's heat radiating fins, regenerative resistor and servomotor, etc.,
while the power is ON and for a short time after the power is turned OFF. In this timing, these
parts become very hot and may lead to burns.
Always turn the power OFF before touching the servomotor shaft or coupled machines, as these
parts may lead to injuries.
Do not go near the machine during test operations or during operations such as teaching.
Doing so may lead to injuries.
4. Various precautions
Strictly observe the following precautions.
Mistaken handling of the unit may lead to faults, injuries or electric shocks.
(1) System structure
! CAUTION
Always install a leakage breaker on the Motion controller and servo amplifier power source.
If installation of an electromagnetic contactor for power shut off during an error, etc., is specified in
the instruction manual for the servo amplifier, etc., always install the electromagnetic contactor.
Install the emergency stop circuit externally so that the operation can be stopped immediately and
the power shut off.
Use the Motion controller, servo amplifier, servomotor and regenerative resistor with the combi-
nations listed in the instruction manual. Other combinations may lead to fire or faults.
If safety standards (ex., robot safety rules, etc.,) apply to the system using the Motion controller,
servo amplifier and servomotor, make sure that the safety standards are satisfied.
Construct a safety circuit externally of the Motion controller or servo amplifier if the abnormal
operation of the Motion controller or servo amplifier differ from the safety directive operation in the
system.
In systems where coasting of the servomotor will be a problem during the forced stop, emergency
stop, servo OFF or power supply OFF, use dynamic brakes.
Make sure that the system considers the coasting amount even when using dynamic brakes.
In systems where perpendicular shaft dropping may be a problem during the forced stop,
emergency stop, servo OFF or power supply OFF, use both dynamic brakes and electromagnetic
brakes.
The dynamic brakes must be used only on errors that cause the forced stop, emergency stop, or
servo OFF. These brakes must not be used for normal braking.
A-3
! CAUTION
The brakes (electromagnetic brakes) assembled into the servomotor are for holding applications,
and must not be used for normal braking.
The system must have a mechanical allowance so that the machine itself can stop even if the
stroke limits switch is passed through at the max. speed.
Use wires and cables that have a wire diameter, heat resistance and bending resistance
compatible with the system.
Use wires and cables within the length of the range described in the instruction manual.
The ratings and characteristics of the parts (other than Motion controller, servo amplifier and
servomotor) used in a system must be compatible with the Motion controller, servo amplifier and
servomotor.
Install a cover on the shaft so that the rotary parts of the servomotor are not touched during
operation.
There may be some cases where holding by the electromagnetic brakes is not possible due to the
life or mechanical structure (when the ball screw and servomotor are connected with a timing belt,
etc.). Install a stopping device to ensure safety on the machine side.
A-4
! CAUTION
Set the sequence function program capacity setting, device capacity, latch validity range, I/O
assignment setting, and validity of continuous operation during error detection to values that are
compatible with the system application. The protective functions may not function if the settings
are incorrect.
Some devices used in the program have fixed applications, so use these with the conditions
specified in the instruction manual.
The input devices and data registers assigned to the link will hold the data previous to when
communication is terminated by an error, etc. Thus, an error correspondence interlock program
specified in the instruction manual must be used.
Use the interlock program specified in the special function module's instruction manual for the
program corresponding to the special function module.
A-5
! CAUTION
Securely fix the Motion controller and servo amplifier to the machine according to the instruction
manual. If the fixing is insufficient, these may come off during operation.
Always install the servomotor with reduction gears in the designated direction. Failing to do so
may lead to oil leaks.
Store and use the unit in the following environmental conditions.
Conditions
Environment
Motion controller/Servo amplifier Servomotor
Ambient 0°C to +40°C (With no freezing)
According to each instruction manual.
temperature (32°F to +104°F)
80% RH or less
Ambient humidity According to each instruction manual.
(With no dew condensation)
Storage -20°C to +65°C
According to each instruction manual.
temperature (-4°F to +149°F)
Indoors (where not subject to direct sunlight).
Atmosphere
No corrosive gases, flammable gases, oil mist or dust must exist
Altitude 1000m (3280.84ft.) or less above sea level
Vibration According to each instruction manual
When coupling with the synchronization encoder or servomotor shaft end, do not apply impact
such as by hitting with a hammer. Doing so may lead to detector damage.
Do not apply a load larger than the tolerable load onto the servomotor shaft. Doing so may lead
to shaft breakage.
When not using the module for a long time, disconnect the power line from the Motion controller
or servo amplifier.
Place the Motion controller and servo amplifier in static electricity preventing vinyl bags and store.
When storing for a long time, please contact with our sales representative.
A-6
(4) Wiring
! CAUTION
Correctly and securely wire the wires. Reconfirm the connections for mistakes and the terminal
screws for tightness after wiring. Failing to do so may lead to run away of the
servomotor.
After wiring, install the protective covers such as the terminal covers to the original positions.
Do not install a phase advancing capacitor, surge absorber or radio noise filter (option FR-BIF)
on the output side of the servo amplifier.
Correctly connect the output side (terminals U, V, W). Incorrect connections will lead the
servomotor to operate abnormally.
Do not connect a commercial power supply to the servomotor, as this may lead to trouble.
Do not mistake the direction of the surge absorbing diode
installed on the DC relay for the control signal output of brake Servo amplifier
signals, etc. Incorrect installation may lead to signals not being VIN
(24VDC)
output when trouble occurs or the protective functions not
functioning. Control output
RA
Do not connect or disconnect the connection cables between signal
each unit, the encoder cable or PLC expansion cable while the
power is ON.
Securely tighten the cable connector fixing screws and fixing mechanisms. Insufficient fixing may
lead to the cables combing off during operation.
Do not bundle the power line or cables.
A-7
(6) Usage methods
! CAUTION
Immediately turn OFF the power if smoke, abnormal sounds or odors are emitted from the Motion
controller, servo amplifier or servomotor.
Always execute a test operation before starting actual operations after the program or
parameters have been changed or after maintenance and inspection.
The units must be disassembled and repaired by a qualified technician.
Do not make any modifications to the unit.
Keep the effect or electromagnetic obstacles to a minimum by installing a noise filter or by using
wire shields, etc. Electromagnetic obstacles may affect the electronic devices used near the
Motion controller or servo amplifier.
When using the CE Mark-compliant equipment, refer to the "EMC Installation Guidelines" (data
number IB(NA)-67339) for the Motion controllers and refer to the corresponding EMC guideline
information for the servo amplifiers, inverters and other equipment.
Use the units with the following conditions.
Conditions
Item
Q61P-A1 Q61P-A2 Q62P Q63P Q64P
+10% +10% +10% +30% +10%
100 to 120VAC 200 to 240VAC 100 to 240VAC 24VDC 100 to 120VAC /
-15% -15% -15% -35% -15%
+10%
Input power 200 to 240VAC -15%
(85 to 132VAC) (170 to 264VAC) (85 to 264VAC) (15.6 to 31.2VDC) (85 to 132VAC/
170 to 264VAC)
Input frequency 50/60Hz ±5%
Tolerable
momentary 20ms or less
power failure
Servomotor
RA1 EMG
Electro-
magnetic 24VDC
brakes
A-8
! CAUTION
If an error occurs, remove the cause, secure the safety and then resume operation after alarm
release.
The unit may suddenly resume operation after a power failure is restored, so do not go near the
machine. (Design the machine so that personal safety can be ensured even if the machine
restarts suddenly.)
A-9
(9) About processing of waste
When you discard Motion controller, servo amplifier, a battery (primary battery) and other option articles,
please follow the law of each country (area).
! CAUTION
This product is not designed or manufactured to be used in equipment or systems in situations
that can affect or endanger human life.
When considering this product for operation in special applications such as machinery or systems
used in passenger transportation, medical, aerospace, atomic power, electric power, or
submarine repeating applications, please contact your nearest Mitsubishi sales representative.
Although this product was manufactured under conditions of strict quality control, you are strongly
advised to install safety devices to forestall serious accidents when it is used in facilities where a
breakdown in the product is likely to cause a serious accident.
A - 10
REVISIONS
The manual number is given on the bottom left of the back cover.
Print Date Manual Number Revision
Jan., 2004 IB(NA)-0300070-A First edition
May., 2006 IB(NA)-0300070-B [Additional correction/partial correction]
Safety precautions, Warranty, Model code change (1CT784 1XB784),
etc.
This manual confers no industrial property rights or any rights of any other kind, nor does it confer any patent
licenses. Mitsubishi Electric Corporation cannot be held responsible for any problems involving industrial property
rights which may occur as a result of using the contents noted in this manual.
CONTENTS
1. OVERVIEW 1- 1 to 1-54
1.1 Overview................................................................................................................................................... 1- 1
1.2 Features ................................................................................................................................................... 1- 3
1.2.1 Features of Motion CPU ................................................................................................................... 1- 3
1.2.2 Positioning control by the Motion CPU............................................................................................. 1- 5
1.2.3 Basic specifications of Q173CPU(N)/Q172CPU(N) ........................................................................ 1-13
1.2.4 Differences between Q173CPU(N)/Q172CPU(N) and A173UHCPU/A172SHCPUN................... 1-16
1.2.5 Precautions at the program appropriation (Motion CPU A series Q173CPU(N)/Q172CPU(N))
....................................................................................................................................................... 1-18
1.3 Hardware Configuration........................................................................................................................... 1-20
1.3.1 Motion system configuration ............................................................................................................. 1-20
1.3.2 Q173CPU(N) System overall configuration...................................................................................... 1-23
1.3.3 Q172CPU(N) System overall configuration...................................................................................... 1-25
1.3.4 Software packages............................................................................................................................ 1-27
1.3.5 Restrictions on motion systems ........................................................................................................ 1-30
1.4 Multiple CPU System ............................................................................................................................... 1-31
1.4.1 Overview............................................................................................................................................ 1-31
1.4.2 Installation of PLC CPU and Motion CPU ........................................................................................ 1-32
1.4.3 Precautions for using Q series I/O modules and intelligent function modules................................ 1-33
1.4.4 Modules subject to installation restrictions ....................................................................................... 1-34
1.4.5 Processing time of the Multiple CPU system ................................................................................... 1-35
1.4.6 How to reset the Multiple CPU system............................................................................................. 1-36
1.4.7 Processing at a CPU DOWN error occurrence by a PLC CPU or Q173CPU(N)/Q172CPU(N).... 1-37
1.5 System Settings ....................................................................................................................................... 1-40
1.5.1 System data settings......................................................................................................................... 1-40
1.5.2 Common system parameters ........................................................................................................... 1-41
1.5.3 Individual parameters........................................................................................................................ 1-47
1.6 Assignment of I/O No............................................................................................................................... 1-51
1.6.1 I/O No. for I/O modules and intelligent function modules ................................................................ 1-51
1.6.2 I/O No. of PLC CPU and Q173CPU(N)/Q172CPU(N)..................................................................... 1-53
1.6.3 Setting I/O No.................................................................................................................................... 1-54
A - 12
3. COMMUNICATION BETWEEN THE PLC CPU AND THE MOTION CPU IN THE MULTIPLE CPU
SYSTEM 3- 1 to 3-22
A - 14
7.11.4 Setting range of instruction symbols list ......................................................................................... 7-41
7.11.5 Positioning control unit for 1 axis .................................................................................................... 7-43
7.11.6 Control units for interpolation control.............................................................................................. 7-44
7.11.7 Control in the control unit "degree"................................................................................................. 7-46
7.12 About Coordinate Systems.................................................................................................................... 7-48
7.13 G-code.................................................................................................................................................... 7-49
7.13.1 G00 Point-to-point positioning at the high-speed feed rate .......................................................... 7-52
7.13.2 G01 Constant-speed positioning at the speed specified in F....................................................... 7-54
7.13.3 G02 Circular interpolation CW (Central coordinates-specified) .................................................. 7-56
7.13.4 G03 Circular interpolation CCW (Central coordinates-specified)................................................. 7-59
7.13.5 G02 Circular interpolation CW (Radius-specified) ........................................................................ 7-62
7.13.6 G03 Circular interpolation CCW (Radius-specified) ..................................................................... 7-64
7.13.7 G04 Dwell....................................................................................................................................... 7-66
7.13.8 G09 Exact stop check .................................................................................................................... 7-68
7.13.9 G12 Helical interpolation CW (Helical central coordinates-specified).......................................... 7-70
7.13.10 G13 Helical interpolation CCW (Helical central coordinates-specified) ..................................... 7-73
7.13.11 G12 Helical interpolation CW (Helical radius-specified) ............................................................. 7-75
7.13.12 G13 Helical interpolation CCW (Helical radius-specified) .......................................................... 7-77
7.13.13 G23 Cancel, cancel start invalid .................................................................................................. 7-79
7.13.14 G24 Cancel, cancel start ............................................................................................................. 7-80
7.13.15 G25 High-speed oscillation.......................................................................................................... 7-83
7.13.16 G26 High-speed oscillation stop.................................................................................................. 7-85
7.13.17 G28 Home position return............................................................................................................ 7-86
7.13.18 G30 Second home position return............................................................................................... 7-88
7.13.19 G32 Skip....................................................................................................................................... 7-90
7.13.20 G43 Tool length offset (+) ............................................................................................................ 7-94
7.13.21 G44 Tool length offset (-)............................................................................................................. 7-96
7.13.22 G49 Tool length offset cancel...................................................................................................... 7-98
7.13.23 G53 Mechanical coordinate system selection ............................................................................ 7-99
7.13.24 G54 to G59 Work coordinate system selection ........................................................................ 7-101
7.13.25 G61 Exact stop check mode...................................................................................................... 7-104
7.13.26 G64 Cutting mode ...................................................................................................................... 7-106
7.13.27 G90 Absolute value command .................................................................................................. 7-108
7.13.28 G91 Incremental value command ............................................................................................. 7-110
7.13.29 G92 Coordinates system setting ............................................................................................... 7-112
7.13.30 G98, G99 Preread disable/enable............................................................................................. 7-114
7.13.31 G100, G101 Time-fixed acceleration/deceleration, acceleration-fixed acceleration/deceleration
switching command..................................................................................................................... 7-116
7.14 M-Code................................................................................................................................................. 7-120
7.15 Special M-Code.................................................................................................................................... 7-121
7.15.1 M00 Program stop....................................................................................................................... 7-122
7.15.2 M01 Optional program stop ........................................................................................................ 7-123
7.15.3 M02 Program end ........................................................................................................................ 7-124
7.15.4 M30 Program end........................................................................................................................ 7-125
7.15.5 M98, M99 Subprogram call, subprogram end ........................................................................... 7-126
7.15.6 M100 Preread disable ................................................................................................................. 7-128
7.16 Miscellaneous ...................................................................................................................................... 7-129
7.16.1 Program control function (IF, GOTO statement) ........................................................................ 7-130
7.16.2 Program control function (IF, THEN, ELSE, END statements) ................................................. 7-132
A - 15
7.16.3 Program control function (WHILE, DO, END statements)......................................................... 7-134
7.16.4 Four fundamental operators, assignment operator (+, -, *, /, MOD, =)..................................... 7-136
7.16.5 Trigonometric functions (SIN, COS, TAN, ASIN, ACOS, ATAN).............................................. 7-138
7.16.6 Real number to BIN value conversion (INT)...............................................................................7-139
7.16.7 BIN value to real number conversion (FLT)................................................................................ 7-140
7.16.8 32-bit real number and 64-bit real number data conversion (DFLT, SFLT) ............................... 7-141
7.16.9 Functions (SQRT, ABS, BIN, BCD, LN, EXP, RND, FIX, FUP)................................................ 7-142
7.16.10 Logical operators (AND, OR, XOR, NOT, <<, >>) ................................................................... 7-143
7.16.11 Move block wait functions (WAITON, WAITOFF)..................................................................... 7-145
7.16.12 Block wait functions (EXEON, EXEOFF) .................................................................................. 7-147
7.16.13 Bit set and reset for word devices (BSET, BRST)..................................................................... 7-150
7.16.14 Parameter block change (PB) ................................................................................................... 7-151
7.16.15 Torque limit value change (TL).................................................................................................. 7-153
7.16.16 Home position return (CHGA) .................................................................................................... 7-155
7.16.17 Speed change (CHGV)............................................................................................................... 7-156
7.16.18 Torque limit value change (CHGT)............................................................................................. 7-157
7.16.19 Bit device set, reset functions (SET, RST) ............................................................................... 7-158
7.16.20 Bit device operation on condition (IF, THEN, SET/RST/OUT) ................................................. 7-159
7.16.21 Program start (CALL).................................................................................................................. 7-161
7.16.22 Program call 1 (GOSUB)............................................................................................................ 7-163
7.16.23 Program call 2 (GOSUBE) ......................................................................................................... 7-164
7.16.24 Control program end (CLEAR)................................................................................................... 7-167
7.16.25 Time to wait (TIME)..................................................................................................................... 7-169
7.16.26 Block transfers (BMOV : 16-bit unit) .......................................................................................... 7-170
7.16.27 Block transfer (BDMOV : 32-bit unit)......................................................................................... 7-172
7.16.28 Identical data block transfers (FMOV) ....................................................................................... 7-174
7.16.29 Write device data to shared CPU memory (MULTW) ............................................................... 7-176
7.16.30 Read device data from shared CPU memory of the other CPU (MULTR)............................... 7-178
7.16.31 Write words data to intelligent function module/special function module (TO)......................... 7-180
7.16.32 Read words data from intelligent function module/special function module (FROM) .............. 7-182
7.16.33 Conditional branch using bit device (ON, OFF) ....................................................................... 7-184
A - 16
8.5.9 Home position return by the dog cradle type ................................................................................... 8-35
8.5.10 Home position return by the stopper type 1 ................................................................................... 8-39
8.5.11 Home position return by the stopper type 2 ................................................................................... 8-41
8.5.12 Home position return by the limit switch combined type................................................................ 8-43
8.5.13 Home position return retry function ................................................................................................ 8-45
8.5.14 Home position shift function............................................................................................................ 8-49
8.5.15 Condition selection of home position set........................................................................................ 8-53
8.5.16 Execution of home position return................................................................................................. 8-55
8.6 Speed Change (CHGV instruction) ......................................................................................................... 8-56
8.7 JOG Operation ......................................................................................................................................... 8-60
8.7.1 JOG operation data........................................................................................................................... 8-60
8.7.2 Individual start ................................................................................................................................... 8-61
8.7.3 Simultaneous start............................................................................................................................. 8-66
8.8 Manual Pulse Generator Operation......................................................................................................... 8-69
8.9 Override Ratio Setting Function .............................................................................................................. 8-75
8.10 FIN signal wait function.......................................................................................................................... 8-77
8.11 Single Block Operation .......................................................................................................................... 8-81
8.12 High-Speed Reading of Specified Data ................................................................................................ 8-86
8.13 Control Program Stop Function from The PLC CPU............................................................................ 8-87
9. USER FILES 9- 1 to 9- 2
9.1 Projects..................................................................................................................................................... 9- 1
9.2 User File List ............................................................................................................................................ 9- 2
A - 17
13. SERVO PARAMETER READING FUNCTION 13- 1 to 13- 2
A - 18
About Manuals
Related Manuals
A - 19
(2) PLC
Manual Number
Manual Name
(Model Code)
QCPU User's Manual (Hardware Design, Maintenance and Inspection)
This manual explains the specifications of the QCPU modules, power supply modules, base modules, SH-080483ENG
extension cables, memory card battery and others. (13JR73)
(Optional)
A - 20
1 OVERVIEW
1. OVERVIEW
1.1 Overview 1
This programming manual describes the Multiple CPU system of the operating system
software packages "SW5RN-SV43Q " for Motion CPU
module(Q173CPU(N)/Q172CPU(N)).
In this manual, the following abbreviations are used.
Generic term/Abbreviation Description
Q173CPU(N)/Q172CPU(N) or
Q173CPUN/Q172CPUN/Q173CPU/Q172CPU Motion CPU module
Motion CPU (module)
Motion CPU (A series) A273UHCPU/A173UHCPU/A172SHCPU Motion CPU module
Q172LX Servo external signals interface module/
Q172LX/Q172EX/Q173PX (Note-1)
Q172EX(-S1/-S2/-S3) Serial absolute synchronous encoder interface module /
or Motion module
Q173PX(-S1) Manual pulse generator interface module
MR-H-BN Servo amplifier model MR-H BN
MR-J2 -B Servo amplifier model MR-J2S- B/MR-J2M-B/MR-J2- B/MR-J2-03B5
General name for "Servo amplifier model MR-H BN/MR-J2S- B/MR-J2M-B/
AMP or Servo amplifier
MR-J2- B/MR-J2-03B5, Vector inverter FREQROL-V500 series"
QCPU, PLC CPU or
Qn(H)CPU
PLC CPU module
Multiple CPU system or
Abbreviation for "Multiple PLC system of the Q series"
Motion system
Abbreviation for "CPU No.n (n= 1 to 4) of the CPU module for the Multiple CPU
CPUn
system"
Programming software package General name for "MT Developer" and "GX Developer"
Operating system software General name for "SW RN-SV Q "
SV43 Operating system software for machine tool peripheral use: SW5RN-SV43Q
MT Developer Abbreviation for Integrated start-up support software package "MT Developer"
Abbreviation for MELSEC PLC programming software package "GX Developer
GX Developer
(Version 6 or later)"
Manual pulse generator
Abbreviation for "Manual pulse generator (MR-HDP01)"
or MR-HDP01
Serial absolute synchronous encoder
Abbreviation for "Serial absolute synchronous encoder (MR-HENC/Q170ENC)"
or MR-HENC/Q170ENC
(Note-2)
SSCNET High speed serial communication between Motion controller and servo amplifier
General name for "System using the servomotor and servo amplifier for absolute
Absolute position system
position"
Cooling fan unit Cooling fan unit (Q170FAN)
Dividing unit Dividing unit (Q173DV)
Battery unit Battery unit (Q170BAT)
A0BD-PCF A10BD-PCF/A30BD-PCF SSC I/F board
SSC I/F communication cable Abbreviation for "Cable for SSC I/F board/card"
Abbreviation for MELSECNET/H module/Ethernet module/CC-Link module/
Intelligent function module
Serial communication module
1-1
1 OVERVIEW
REMARK
For information about the each module, design method for program and parameter,
refer to the following manuals relevant to each module.
Item Reference Manual
Motion CPU module/Motion unit Q173CPU(N)/Q172CPU(N) User’s Manual
PLC CPU, peripheral devices for PLC program design, I/O
Manual relevant to each module
modules and intelligent function module
Operation method for MT Developer Help of each software
! CAUTION
When designing the system, provide external protective and safety circuits to ensure safety in
the event of trouble with the Motion controller.
There are electronic components which are susceptible to the effects of static electricity
mounted on the printed circuit board. When handling printed circuit boards with bare hands you
must ground your body or the work bench.
Do not touch current-carrying or electric parts of the equipment with bare hands.
Make parameter settings within the ranges stated in this manual.
Use the program instructions that are used in programs in accordance with the conditions
stipulated in this manual.
Some devices for use in programs have fixed applications: they must be used in accordance
with the conditions stipulated in this manual.
1-2
1 OVERVIEW
1.2 Features
The Motion CPU and Multiple CPU system have the following features.
(b) The Motion CPU and PLC CPU are selected flexibly, and the Multiple CPU
system up to 4 CPU modules can be realized.
The Motion CPU module for the number of axis to be used can be selected.
Q173CPU(N) : Up to 32 axes
Q172CPU(N) : Up to 8 axes
The PLC CPU module for the program capacity to be used can be selected.
(One or more PLC CPU is necessary with the Multiple CPU system.)
Q00CPU :8k steps
Q01CPU :14k steps
Q02CPU, Q02HCPU : 28k steps
Q06HCPU : 60k steps
Q12HCPU : 124k steps
Q25HCPU : 252k steps
(c) The device data of other CPU can be used as the device data of self CPU
because the Multiple CPU automatic refresh may do automatically data
giving and receiving between each CPU of the Multiple CPU system.
(d) The device data access of the Motion CPU and the Motion program start
can be executed from PLC CPU by the Motion dedicated PLC instruction.
(b) High speed PLC control is possible by the Q series PLC CPU.
(For LD instruction)
Q02HCPU, Q06HCPU, Q12HCPU, Q25HCPU : 0.034[µs]
Q02CPU : 0.079[µs]
Q00CPU : 0.16[µs]
Q01CPU : 0.10[µs]
1-3
1 OVERVIEW
(3) Connection between the Motion controller and servo amplifier with
high speed serial communication by SSCNET
High speed serial communication by SSCNET connect between the Motion
controller and servo amplifier, and batch control the charge of servo parameter,
servo monitor and test operation, etc.
It is also realized reduce the number of wires.
(4) The operating system software package for your application needs.
By installing the operating system software for applications in the internal flash
memory of the Motin CPU, the Motion controller switable for the machine can be
realized.
And, it also can correspond with the function improvement of the software
package.
1-4
1 OVERVIEW
(3) Manual pulse generator operation by the positioning dedicated device of Motion
CPU.
(4) Speed change and torque limit value change during positioning control by the
Motion dedicated PLC instruction (S(P).CHGV, S(P).CHGT instruction) or the
CHGV, CHGT, TL instruction in the Motion program.
1-5
1 OVERVIEW
PLC CPU
(1) Create the Motion programs and positioning control parameters using a peripheral
device.
(2) Perform the positioning start using the PLC program (S(P).SVST instruction) of
PLC CPU.
(a) Motion program No. is specified with the S(P).SVST instruction.
1) Motion program No. can be set either directly or indirectly.
2) Start axis No. can be set only directly.
(3) Perform the specified positioning control using the specified with the Motion
program.
1-6
1 OVERVIEW
Motion CPU
Home position return data Data required for the home position return
Limit switch output data ON/OFF pattern data required for the limit
switch output function
REMARK
(Note-1) : The following peripheral devices started by the SW6RN-GSV43P can be
used.
• The personal computer by which WindowsNT 4.0/Windows 98/ R R
1-7
1 OVERVIEW
Motion program ..... Create and correct using a peripheral device (Note-1)
(2) Set the JOG speed to the JOG speed setting register for each axis using the
Motion program.
(3) Perform the JOG operation while the JOG start command signal is ON in the
Motion program.
1-8
1 OVERVIEW
Servo amplifier
Servomotor
REMARK
(Note-1) : The following peripheral devices started by the SW6RN-GSV43P can be
used.
• The personal computer by which WindowsNT 4.0/Windows 98/ R R
1-9
1 OVERVIEW
When the positioning control is executed by the manual pulse generator connected to
the Q173PX, manual pulse generator operation must be enabled using the Motion
program.
An overview of manual pulse generator operation is shown below.
(Note) : Turn off the axis 1 and axis 2 manual pulse generator enable flag for
safety not to continue the manual pulse generator operation at the
manual pulse generator operation end.
(2) Set the used manual pulse generator, operated axis No. and magnification for 1
pulse input using the Motion program.
(3) Turn the manual pulse generator enable flag ON using the Motion program
................................................ Manual pulse generator operation enabled
(5) Turn the manual pulse generator enable flag OFF using the Motion program
................................................ Manual pulse generator operation completion
1 - 10
1 OVERVIEW
Home position return data Data required for the home position return
Servomotor
REMARK
(Note-1) : The following peripheral devices started by the SW6RN-GSV43P can be
used.
• The personal computer by which WindowsNT 4.0/Windows 98/ R R
1 - 11
1 OVERVIEW
1 - 12
1 OVERVIEW
Control
Speed Speed setting range
unit
command
mm 0.01 to 6000000.00 (mm/min)
(Command
inch 0.001 to 600000.000 (inch/min)
unit)
degree 0.001 to 2147483.647 (degree/min)
(Note-1)
Acceleration-fixed Time-fixed acceleration/deceleration
acceleration/deceleration method method
Acceleration/ Automatic
Acceleration/deceleration time :
deceleration trapezoidal Acceleration time : 1 to 65535 ms
1 to 5000 ms
control Deceleration time : 1 to 65535 ms
(Only constant speed control)
1 - 13
1 OVERVIEW
(Note-2) : Use the Dividing unit(Q173DV) or dividing cable(Q173J2B CBL M/Q173HB CBL M).
1 - 14
1 OVERVIEW
1 - 15
1 OVERVIEW
Programming tool IBM PC/AT PC9800 series, IBM PC/AT, A30TU, A31TU
Peripheral devices I/F USB/RS-232/SSCNET RS-422/SSCNET
Proximity dog type (2 types), Count type (3 types),
Data set type (2 types), Dog cradle type,
Stopper type (2 types), Proximity dog type, count type,
Home position return function
Limit switch combined type data set type 1
(Home position return retry function provided,
Home position shift function provided)
Manual pulse generator operation Possible to connect
Possible to connect 3 modules
function 1 module
Output point : 32 points, Output point : 8 points/axis,
Limit switch output function
Watch data : motion control data/word device ON/OFF setting points : 10 points/axis
Number of SSCNET I/F
(Included SSCNET interface 1CH to 5CH (Note-1) 2CH 4CH 2CH
the parsonal computer)
Up to 64 slots
Number of motion slots 8 slots 2 slots
(Up to 7 extension bases of the Q series)
Q172LX : 4 modules Q172LX : 1 module
Number of Motion related modules A172SENC : 4 modules A172SENC : 1 module
Q173PX : 1 module Q173PX : 1 module
Number of I/O (X/Y) points 8192 points 2048 points
Number of real I/O (PX/PY) points Total 256 points
1 - 16
1 OVERVIEW
1 - 17
1 OVERVIEW
Precautions when appropriating the Motion program created by the Motion CPU A series to
Q173CPU(N)/Q172CPU(N) are shown below.
(1) Multiple CPU system control
The PLC CPU and Motion CPU is the same module in the Motion controller A
series, however, the Multiple CPU system which controls a sequence control by
the PLC CPU and a motion control by the Motion CPU module is used in
Q173CPU(N)/Q172CPU(N).
(b) Although the axis data (fixed-parameters, home position return data, JOG
operation data or servo parameters) and parameter blocks can be
appropriated, be careful that the following contents are changed.
1) The electronic gear setting : 16 bit 32 bit (increase) (No unit
magnification setting)
2) The home position return for proximity dog type 2, count type 2, count
type 3, data set type 2, dog cradle type, stopper type and limit switch
combined type are added.
However, the setting files created by the Motion CPU (A series) cannot be
appropriated.
1 - 18
1 OVERVIEW
(b) Axis designation program (G-code which controls the axis is used.)
Although the Motion program created by the Motion CPU (A series) can be used
as the axis designation program of the above (b), the setting files cannot be used
unchanged.
• The procedure of appropriating a program are shown below.
1) Open the Motion program file (svgcode.bin) created by Motion CPU (A
series) using a text editor.
2) Copy the appropriation parts and paste it using a program editing of
SW6RN-GSV43P.
(6) Others
(a) PLC ready flag (M2000)
The PLC ready flag (M2000) turned on/off using the PLC CPU in the Motion
CPU (A series) turns on/off by interlock of STOP/RUN switch. (The control
using a PLC CPU is possible in the parameter setting.)
1 - 19
1 OVERVIEW
The outline of the equipment configuration, configuration with peripheral devices, and
system configuration in the Q173CPU(N)/Q172CPU(N) system is described below.
(1) Equipment configuration in Q173CPU(N) system
Extension of the Q series module
(Note-2)
Motion module CPU base unit Extension cable Q6 B extension base unit
(Q172LX, Q172EX, Q173PX) (Q33B, Q35B, Q38B, Q312B) (QC B) (Q63B, Q65B, Q68B, Q612B)
(Note-1)
MITSUBISHI
1 - 20
1 OVERVIEW
Motion module CPU base unit Extension cable Q6 B extension base unit
(Q172LX, Q172EX, Q173PX) (Q33B, Q35B, Q38B, Q312B) (QC B) (Q63B, Q65B, Q68B, Q612B)
BAT MITSUBISHI
LITHIUM BATTERY
CPU
Q17BAT
PASSED
DATE
MITSUBISHI
It is possible to select the best according to the system.
1 - 21
1 OVERVIEW
MITSUBISHI
SSCNET
CARD
A30CD-PCF
Personal computer
(Note) : For information about GPP functions of PLC CPU, refer to the operating
manual of PLC. Also, refer to the help of each software for information about
operation of each programming software package.
1 - 22
1 OVERVIEW
interface module
interface module
interface module
Servo external
Manual pulse
Synchronous
generator
encoder
signals
CPU base
unit PLC CPU/
(Q3 B) Motion CPU
Analogue input/output
Extension
cable
module
1 - 23
1 OVERVIEW
CAUTION
Construct a safety circuit externally of the Motion controller or servo amplifier if the abnormal
operation of the Motion controller or servo amplifier differ from the safety directive operation in
the system.
The ratings and characteristics of the parts (other than Motion controller, servo amplifier and
servomotor) used in a system must be compatible with the Motion controller, servo amplifier
and servomotor.
Set the parameter values to those that are compatible with the Motion controller, servo
amplifier, servomotor and regenerative resistor model and the system application. The
protective functions may not function if the settings are incorrect.
1 - 24
1 OVERVIEW
interface module
interface module
interface module
Servo external
Manual pulse
Synchronous
generator
encoder
signals
CPU base
unit PLC CPU/
(Q3 B) Motion CPU
Analogue input/output
Battery unit
(Q170BAT)
MITSUBISHI
Input/output (Up to 256 points)
LITHIUM BATTERY
d1 d2 d3 d8
SSC I/F Card/Board SSCNET SYSTEM1
(A30CD-PCF/A 0BD-PCF)
M M M M
Panel Personal Computer E E E E
(WinNT/Win98/Win2000/WinXP)
Computer link SSC
MR-H BN/MR-J2S- B/MR-J2M-B/MR-J2- B/
MR-J2-03B5 model Servo amplifier,
Extension base unit Vector inverter(FR-V500), Up to 8 axes
(Q6 B)
Power supply
Extension
cable
module
1 - 25
1 OVERVIEW
CAUTION
Construct a safety circuit externally of the Motion controller or servo amplifier if the abnormal
operation of the Motion controller or servo amplifier differ from the safety directive operation in
the system.
The ratings and characteristics of the parts (other than Motion controller, servo amplifier and
servomotor) used in a system must be compatible with the Motion controller, servo amplifier
and servomotor.
Set the parameter values to those that are compatible with the Motion controller, servo
amplifier, servomotor and regenerative resistor model and the system application. The
protective functions may not function if the settings are incorrect.
1 - 26
1 OVERVIEW
1 - 27
1 OVERVIEW
POINT
(1) When the operation of Windows is not unclear in the operation of this software,
refer to the manual of Windows or guide-book from the other supplier.
(2) The screen might not be correctly displayed depending on the system font size
of WindowsNT 4.0/Windows 98/Windows 2000/Windows XP.
R R R R
1)
2) 3)
T 4) 5) 1) OS software TYPE
MITSUBISHI ELECTRIC CORPORATION ALL 2) Software version
RIGHTS RESERVED
3) OS software version
4) Serial number
5) Number of FD
Example) When using the Q173CPU(N), SV43 and version A.
1) SW5RN-SV43QA
2) BCD-B14W276
3) A
S V 4 3 Q A V E R . 0 0 A
A : Q173CPU(N) OS version
C : Q172CPU(N)
1 - 28
1 OVERVIEW
(4) Restrictions of the function and PLC CPU by the Motion CPU and
software version.
The function and PLC CPU which can be used has restrictions by version of the
Motion CPU module, operating system software and programming software.
The combination of each version and a function is shown blow.
Operating CPU module version
Programming
system Section
Function software
software Q173CPU Q173CPUN Q172CPU Q172CPUN No.
version
version
Chapter
ROM operation B C M — N —
10
ROM operation (For additional parameter
B C T M U M —
(Home position return parameter, etc.))
Vector inverter connectable B B — — — — —
Basic model QCPU (Function version "B")
B — — — — — —
(Q00CPU, Q01CPU)
Section
Home position return functions added D B — — — —
8.5
— : There is no restriction by the version.
GX Developer SW D5C-GPPW-E
(Note) : =used "6" or later.
1 - 29
1 OVERVIEW
(1) It is not allowed to use the Motion CPU as the control CPU of a module installed
on the QA1S6B extension base unit. PLC CPU must be used as the control
CPU.
(2) The connector for installation of memory card on the Motion CPU module is for
future function expansion.
(3) Motion CPU module cannot be used as standalone module. It must always be
used in combination with the PLC CPU module (version that supports Multiple
CPU systems). Moreover, it must be installed on the right side of PLC CPU
module. PLC CPU module cannot be installed in a position to the right of Motion
CPU module.
(4) Personal computer CPU unit must be installed on the right side of Motion CPU
module. Motion CPU cannot be installed in a position to the right of personal
computer CPU.
(5) Make sure to use the PLC CPU module in the "Q mode".
(6) Motion CPU module cannot be set as the control CPU of intelligent function
module or Graphic Operation Terminal (GOT).
(7) SSCNET cable which connects the Motion CPU and servo amplifier, which
connects the Motion CPU are pulled from the bottom part of unit. Make sure to
secure sufficient space for pulling out the cable when designing the control panel.
(8) Motion CPU module is one module element of Q series Multiple CPU system. It
must be set the parameters of Q series Multiple CPU system for each PLC CPU.
Motion CPU module must also be set to support the Multiple CPU system in the
system settings.
(9) Make sure to use the Motion CPU as the control CPU of motion modules
dedicated for Motion CPU (e.g., Q172LX, Q173PX). They will not operate
correctly if PLC CPU is set and installed as the control CPU by mistake. Motion
CPU is treated as a 32-point intelligent module by PLC CPU of other CPU.
It cannot be accessed from other CPU.
(10) When a Multiple CPU system is configured, make sure to configure the modules
so that the total current consumption of individual modules on the CPU base
does not exceed the 5 VDC output capacity of power supply module.
1 - 30
1 OVERVIEW
1.4.1 Overview
(b) You can increase the number of control axes by using a multiple Motion
CPUs. It is possible to control up to 96 axes by using three Q173CPU(N)s.
(c) You can reduce the PLC scan time of the overall system by using a multiple
PLC CPUs and distributing the PLC control load among them.
(b) You can access the device data and start the Motion program from the PLC
CPU to the Motion CPU by Motion dedicated PLC instruction.
1 - 31
1 OVERVIEW
Up to a total 4 PLC CPUs and Motion CPUs can be installed in the CPU base unit, in
the four slots starting from the CPU slot (the slot located to the immediate right of the
power supply module) to slot 2 in series.
There must be no non-installation slot left between a PLC CPU and a Motion CPU, or
between Motion CPUs.
When two or more Motion CPUs are installed, they are installed together in the slots
provided to the right of one or more PLC CPUs. (PLC CPU cannot be installed to the
right of a Motion CPU.)
CPU 0 1 2
Power supply
Motion CPU
PLC CPU
I/O, etc.
2 I/O, etc.
CPU 0 1 2 CPU 0 1 2
Power supply
Power supply
Motion CPU
Motion CPU
Motion CPU
PLC CPU
PLC CPU
PLC CPU
I/O, etc.
I/O, etc.
CPU 0 1 2 CPU 0 1 2
Power supply
Power supply
Motion CPU
Motion CPU
Motion CPU
PLC CPU
PLC CPU
PLC CPU
PLC CPU
PLC CPU
4
CPU 0 1 2
Power supply
Motion CPU
Motion CPU
Motion CPU
PLC CPU
1 - 32
1 OVERVIEW
1.4.3 Precautions for using Q series I/O modules and intelligent function modules
(b) The intelligent function modules support the Multiple CPU system only when
their function version is "B" or later. These modules cannot be controlled by
the Motion CPU, so be sure to use the PLC CPU as a control CPU.
(c) All motion modules (Q172LX, Q173PX) support the Multiple CPU system.
These modules cannot be controlled by the PLC CPU, so be sure to use the
Motion CPU as a control CPU.
(b) Access range from a non-control CPU for the modules controlled by the
Motion CPU are shown below.
I/O setting from outside the group
Access target (setting from the PLC CPU)
Not received Received
Input (X)
Output (Y)
Read
Buffer memory
Write
REMARK
• The function version of an intelligent function module can be checked on the rated
plate of the intelligent function module or in the GX Developer's system monitor
product information list.
• Refer to the "Q173CPU(N)/Q172CPU(N) User's Manual" for the model name
which can be controlled by Motion CPU.
1 - 33
1 OVERVIEW
(1) Modules subject to installation restrictions in the Motion CPU are shown below.
Use within the limitations listed below.
Model Maximum installable modules per CPU
Description
name Q173CPU(N) Q172CPU(N)
Servo external signals
Q172LX 4 modules 1 module
interface module
Manual pulse generator 1 module 1 module
Q173PX
interface module (Manual pulse generator only use) (Manual pulse generator only use)
Input module QX
Output module QY
QH
Input/output composite module Total 256 points
QX Y
Analogue input module Q6 AD
Analogue output module Q6 DA
(2) Modules controlled by a Motion CPU cannot be installed in the extension base
unit QA1S6 B. Install them in the CPU base unit Q3 B or extension base unit
Q6 B.
(3) A total of eight base units including one CPU base unit and seven extension base
units can be used. However, the usable slots (number of modules) are limited to
64 per system including vacant slots. If a module is installed in slot 65 or
subsequent slot, an error (SP. UNIT LAY ERROR) will be occur. Make sure all
modules are installed in slots 1 to 64. (Even when the total number of slots
provided by the CPU base unit and extension base units exceeds 65 (such as
when six 12-slot base units are used), an error does not occur as long as the
modules are installed within slots 1 to 64.)
1 - 34
1 OVERVIEW
(3) When shortening the processing time of the Multiple CPU system
The processing time of the Multiple CPU system can be shortened in the
following methods:
• Install all modules with many access points such as MELSECNET/10(H) and
CC-Link refreshes together in the CPU base unit.
• Control all modules with many access points such as MELSECNET/10(H) and
CC-Link refreshes using only one PLC CPU so that they are not accessed by
two or more CPUs simultaneously.
• Reduce the number of refresh points of MELSECNET/10(H), CC-Link, etc.
• Reduce the number of automatic refresh points of the PLC CPUs/Motion
CPUs.
1 - 35
1 OVERVIEW
With the Multiple CPU system, resetting the PLC CPU of CPU No.1 resets the entire
system.
When the PLC CPU of CPU No.1 is reset, the CPUs, I/O modules and intelligent
function modules of all CPUs will be reset.
To recover any of the CPUs in the Multiple CPU system that generated a CPU stop
error, reset the PLC CPU of CPU No.1 or restart the power (i.e., turning the power ON,
OFF and then ON).
(If the PLC CPUs or Motion CPUs of CPU No.2 to 4 generated a CPU stop error, they
cannot be recovered by resetting the corresponding CPU.)
0 1 2 3 4 5 6 7
Power supply
No.2
No.3
No.4
CPU
CPU
CPU
CPU
POINT
(1) In a Multiple CPU system, the PLC CPUs/Motion CPUs of CPU No.2, 3 or 4
cannot be reset individually.
When a PLC CPU or Motion CPU of CPU No.2, 3 or 4 is reset while the
Multiple CPU system is operating, the other CPUs generate a MULTI CPU
DOWN error (error code: 7000) and the entire system stops.
Note that depending on the timing at which the PLC CPU or Motion CPU of
CPU No.2, 3 or 4 is reset, the PLC CPU of a the other CPU may stop due to
an error other than MULTI CPU DOWN.
(2) Resetting CPU No.2, 3 or 4 generates a MULTI CPU DOWN error regardless
of the operation mode set in the Multiple CPU Settings tab. (Stop/continue all
CPUs upon error in CPU No.2, 3 or 4.) (Refer to section 1.4.7 for the setting of
operation mode in Multiple CPU Settings.)
1 - 36
1 OVERVIEW
In the Multiple CPU system, the system operates differently when CPU No.1 a CPU
DOWN error as compared with when CPU No.2 to 4 did.
1 - 37
1 OVERVIEW
(a) When a CPU DOWN error occurs in the CPU of the CPU in a checked "Stop
all CPUs upon error in CPU No. n" item, all PLC CPU/Q173CPU(N)/
Q172CPU(N) of the other CPUs will generate a MULTI CPU DOWN error
(error code: 7000) and the Multiple CPU system will stop. (Note-1)
(b) When a CPU DOWN error occurs in the CPU of the PLC in an unchecked
"Stop all CPUs upon error in CPU No. n" item, all CPUs of the other CPUs
will generate a MULTI CPU ERROR (error code: 7020) and continue their
operation.
POINT
(Note-1) : When a CPU DOWN error occurs, the CPU detecting the error will generate a
MULTI CPU DOWN error.
Therefore, the system may enter a MULTI CPU DOWN mode after detecting the
CPU DOWN error in the CPU generating a MULTI CPU DOWN error, instead of
the error in the CPU that generated the CPU DOWN error in the first place.
In this case, the common error-data area may store a CPU number different
from one corresponding to the CPU that generated the CPU DOWN error first.
When recovering the system, remove the cause of the error present in the CPU
not stopped by a MULTI CPU DOWN error.
In the screen below, the cause of the error present in CPU No.2, which does not
have a MULTI CPU DOWN error, should be removed.
1 - 38
1 OVERVIEW
1 - 39
1 OVERVIEW
1 - 40
1 OVERVIEW
Parameter write
Power supply
1 - 41
1 OVERVIEW
Type of parameter
Verification item Remark
Name in Motion CPU Name in PLC CPU
Number of Multiple CPUs Number of CPU modules
Operation mode when a CPU
Operation mode
Multiple CPU settings stop error occurred
Number of automatic refresh
Automatic refresh setting
points
• Only the module numbers
set in System Settings on
Motion slot settings Control CPU Control CPU No.
the Motion CPU side are
I/O assignment verified.
Total number of bases • Not verified if base settings
Basic
Base settings Base No. are omitted on the PLC CPU
settings Base
Number of base slots side.
1 - 42
1 OVERVIEW
Number of automatic
refresh points
1 - 43
1 OVERVIEW
1 - 44
1 OVERVIEW
1 - 45
1 OVERVIEW
POINT
GOT is recognized as an intelligent function modules "16 points 10 slots" on the
base (number of extension bases and slot No. are set in the GOT parameter.) for
bus connection with GOT.
Set the one extension base (16 points 10 slots) for connection with GOT, then
set "10 slots" as number of extension bases for connection with GOT in the system
setting (base setting).
<Example>
When the "2nd stage" of extension base is set as connection with GOT.
(Set "10" slot as "2nd stage" of extension base in the base setting.)
If the bus connection with GOT is executed without above settings in the
base setting of system setting, "SP.UNIT LAY ERROR" (error code: 2124)
will occur.
1 - 46
1 OVERVIEW
3) If the duration of motion operation has exceeded the operation cycle, the
operation cycle over flag (M2054) turns ON. Even when "Automatic
setting" is selected, the duration of motion operation may exceed the
operation cycle depending on the control conditions. The actual duration
of motion operation (unit:μs) is stored in the D9188 and the current
setting of operation cycle (unit:μs) is stored in the D9197. Monitor these
special registers and adjust the set value of operation cycle so that the
actual duration of motion operation will not exceed the set operation
cycle. (A WDT or other error may occur in the Motion CPU.)
6) The vector inverter does not support an operation cycle of 0.8[ms] and
1.7[ms]. If the FR-V500 is set in the System Setting, 3.5[ms] is used as
the actual operation cycle even when 0.8[ms] or 1.7[ms] is set.
1 - 47
1 OVERVIEW
1 - 48
1 OVERVIEW
1 - 49
1 OVERVIEW
1 - 50
1 OVERVIEW
I/O No. used in the Multiple CPU system include those used by the Motion CPU to
communicate with I/O modules/intelligent function modules and those used in the
communication between the PLC CPU and the Motion CPU. The following explains
each I/O No. and assignment of I/O No..
1.6.1 I/O No. for I/O modules and intelligent function modules
In the Multiple CPU system, the "0H" position (slot) of I/O No. which seen from the PLC
CPU is different from the position in the case of a standalone CPU. However, I/O No. of
the control module may be assigned independently for each CPU in the Motion CPU.
(b) I/O modules and intelligent function modules are installed in slots available
to the right of those occupied by the PLC CPU/Motion CPU.
(c) I/O No. of the control module may be assigned independently for each CPU
in the Motion CPU. I/O No. of the PLC CPU control modules are assigned
sequentially toward the right, starting from "0H" being the I/O module or
intelligent function module installed to the immediate right of the slots
occupied by the PLC CPU/Motion CPU.
1 - 51
1 OVERVIEW
0 1 2 3 4 5
Q02H Q173 QX41 QY41 QX41 QY41
Power supply
CPU CPU
(N) PX0 to PX1F PY20 to PY3F X40 to X5F Y60 to Y7F
O
module
U
T
(3) Setting of the Motion CPU control modules by the PLC CPU
Follow the table below when the Motion CPU control modules are set in I/O
Assignment Settings of the PLC CPU. (The PLC CPU handles the Q172LX and
Q173PX as intelligent function modules having 32 occupied points.) Type and
number of points may be left unset.
POINT
(1) Set the I/O device of the Motion CPU within the range from PX/PY000 to
PX/PYFFF. Set the number of real I/O points within 256 points. (I/O No. may
not be consecutive.)
(2) As for the Motion CPU, the Q172LX and Q173PX are not included in the
number of real I/O points.
1 - 52
1 OVERVIEW
In the Multiple CPU system, I/O No. is assigned to the PLC CPU/Motion CPU to
enable communication between the PLC CPU and Motion CPU using the following
instructions:
• Multiple CPU dedicated instructions
• Motion CPU dedicated instructions
• Multiple CPU communication dedicated instructions
The I/O No. of the PLC CPU/Motion CPU are fixed based on the installed slots and
cannot be changed.
The table below lists the I/O No. of the PLC CPU/Motion CPU installed in the CPU
base unit of the Multiple CPU system.
The I/O No. of the PLC CPU/Motion CPU are used in the following cases:
• When writing data to the shared CPU memory of the self CPU using the S. TO
instruction.
• When reading data from the shared CPU memory of the other CPU using the FROM
instruction.
• When reading data from the shared CPU memory of the other CPU using an
intelligent function module device (U \G )
• When reading device data directly from the Motion CPU from the PLC CPU using
the "S(P). DDRD" instruction.
• When writing device data directly to the Motion CPU from the PLC CPU using the
"S(P).DDWR" instruction.
REMARK
• Refer to Chapter "3. COMMUNICATION BETWEEN THE PLC CPU AND THE
MOTION CPU IN THE MULTIPLE CPU SYSTEM" for communication between
the PLC CPU and the Motion CPU.
1 - 53
1 OVERVIEW
The procedure for the I/O No. setting of the Motion CPU in system settings of SW6RN-
GSV43P is shown below. In the Motion CPU, by setting a module used in each CPU
base or extension base slot in system settings, the control CPU of the applicable slot is
assigned as the self CPU. Input modules, output modules and composite I/O modules
require an I/O No. to be set.
Refer to the help of SW6RN-GSV43P for the detailed operating procedure on the
system settings screen.
<System Settings>
6) Click [OK].
POINT
I/O No.s cannot be assigned automatically, unlike a PLC CPU for which I/O No. are
assigned automatically if such setting is omitted in the Motion CPU. In the Motion
CPU, be sure to set the first I/O No. in System Settings for each module used.
1 - 54
2 STARTING UP THE MULTIPLE CPU SYSTEM
This section describes a standard procedure to start up the Multiple CPU system.
Device application and assignment • Refer to Section 3.1 for automatic refresh
function of device data.
Secure the refresh points continuously
for automatic refresh of device data.
Parameters, etc. create • Create the parameters for CPU No. 1 to 4 and
Create the parameter setting such as PLC programs.
Multiple CPU setting and control CPU • Refer to the "QCPU User's Manual" (Function
setting, and the PLC programs. Explanation/Program Fundamentals)" for PLC
settings.
PLC CPU
1)
2-1
2 STARTING UP THE MULTIPLE CPU SYSTEM
1)
System settings and program ,etc. create • Refer to Section 1.5 for system settings.
Create the system settings, servo data • Refer to this programming Manual for details of
Motion CPU
and Motion program. program.
Actual operation
Actual
Check in the operation
automatic operation.
(Note) : Installation of the operating system software is required to the Motion CPU module before start of
the Multiple CPU system.
Refer to Chapter 5 of the "Q173CPU(N)/Q172CPU(N) User's Manual" for installation of the Motion
CPU operating system software.
2-2
3 COMMUNICATION BETWEEN THE PLC CPU AND THE MOTION CPU IN
THE MULTIPLE CPU SYSTEM
The following tasks can be performed between the PLC CPU and the Motion CPU in
the Multiple CPU system.
• Data transfer between CPUs by the automatic refresh function of the shared CPU
memory
• Control instruction from the PLC CPU to Motion CPU by the Motion dedicated
Instructions
• Reading/writing device data from the PLC CPU to Motion CPU by the dedicated
instruction 3
3.1 Automatic Refresh Function of The Shared CPU Memory
Automatic refresh area 3) Reading via main cycle Automatic refresh area
processing of CPU No.2
User-defined area User-defined area
3-1
3 COMMUNICATION BETWEEN THE PLC CPU AND THE MOTION CPU IN
THE MULTIPLE CPU SYSTEM
By the above operations, the data written to B0 to B1F in CPU No.1 can be
read as B0 to B1F of CPU No.2, while the data written to B20 to B3F in CPU
No.2 can be read as B20 to B3F of CPU No.1. B0 to B1F of CPU No.1 can
be read or written freely using CPU No.1, but B20 to B3F correspond to the
refresh area for the data of CPU No.2 and can only be read, not written, by
CPU No.1. Similarly, B20 to B3F of CPU No.2 can be read or written freely
using CPU No.2, but B0 to B1F correspond to the refresh area for the data
of CPU No.1 and thus can only be read, not written, by CPU No.2.
(c) To execute the automatic refresh function, for the Motion CPU the number of
transmitting points for the CPU and the devices whose data is stored
(devices to which the automatic refresh function is executed) must be set in
Multiple CPU Settings of System Settings. For the PLC CPU, the applicable
parameters must be set identically in Multiple CPU Settings of PC
parameters.
Item Description
Y, M, B (Set the first device No. as a multiple of 16 in
Bit
Type of refresh device modules of 32 bits.)
Word D, W, # (Set in modules of 2 words.)
Number of refresh device range settings 4 ranges (Bit and word may be mixed.)
Number of refresh words per CPU A maximum of 8k words
Number of transmitting words per CPU A maximum of 2k words (Set in units of 2 words.)
CAUTION
If necessary, perform interlocking during the execution of the automatic refresh function using
other CPU DOWN detection signals M9244 to M9247.
3-2
3 COMMUNICATION BETWEEN THE PLC CPU AND THE MOTION CPU IN
THE MULTIPLE CPU SYSTEM
(b) Setting number selection/send range (refresh range) for each CPU
1) The refresh setting of four ranges can be set by setting selection.
For example, ON/OFF data may be refreshed using bit-device setting,
while other data may be refreshed using word device setting.
2) The number of points in the shared CPU memory set in units of 2 points
(2 words) is set in the send range for each CPU. (2 points if word device
is specified for the CPU-side device, or 32 points if bit device is
specified.)
Data of the CPUs for which "0" is set as the number of points
representing the send range of the CPU will not be refreshed.
Assume that 32 points (B0 to B1F) of CPU No.1 and 32 points (B20 to
B3F) of CPU No.2 are to be refreshed. Since one point in the shared
CPU memory corresponds to 16 bit-device points, the number of
transmitting points becomes 2 for CPU No.1 and also 2 for CPU No.2.
3) The maximum number of transmitting points combining all four ranges is
2k words per CPU (PLC CPU or Motion CPU) or 8k points (8k words) for
all CPUs.
• Data in CPU No.3 and 4 is not refreshed since the number of points is set to 0.
3-3
3 COMMUNICATION BETWEEN THE PLC CPU AND THE MOTION CPU IN
THE MULTIPLE CPU SYSTEM
• Last address of
CPU-side device
5) Set the same number of transmitting points for all CPUs in the Multiple
CPU system.
If any of the CPUs has a different number of transmitting points, a
PARAMETER ERROR will be occurred.
3-5
3 COMMUNICATION BETWEEN THE PLC CPU AND THE MOTION CPU IN
THE MULTIPLE CPU SYSTEM
3-6
3 COMMUNICATION BETWEEN THE PLC CPU AND THE MOTION CPU IN
THE MULTIPLE CPU SYSTEM
3) The block diagram below illustrates the automatic refresh operation over
four ranges of setting 1: link relay (B), setting 2: link register (W), setting
3: data register (D), and setting 4: internal relay (M).
CPU No.1
Shared CPU memory Device Shared CPU memory
of other CPU Setting 1
B0 CPU No.1 Write during END processing CPU No.1
to transmitting data transmitting data
Read via END processing (No.1) (No.1)
CPU No.2
of CPU No.1 CPU No.2 CPU No.1
CPU No.2 receiving data (No.1)
transmitting data (No.1) transmitting data
ng
CPU No.3 ssi (No.2)
CPU No.2 ce
transmitting data (No.2)
receiving data (No.1) pro CPU No.1
Maximum ND
2k words
CPU No.4 gE transmitting data Maximum
CPU No.2 receiving data (No.1) u rin 2k words
transmitting data (No.3) it ed (No.3)
Setting 2 Wr
CPU No.2 CPU No.1
g
W0
in
transmitting data (No.4) CPU No.1 transmitting data
ss
transmitting data
ce
(No.4)
o
(No.2)
pr
CPU No.3
D
EN
CPU No.2
CPU No.3 User-defined area
g
receiving data (No.2)
rin
transmitting data (No.1)
du
CPU No.3
e
CPU No.3
ing
rit
receiving data (No.2)
W
transmitting data (No.2)
ss
Maximum
CPU No.4
ce
2k words CPU No.3
pro
receiving data (No.2)
transmitting data (No.3) Maximum
D
Setting 3
EN
CPU No.3 8k words
D0 CPU No.1
g
transmitting data (No.4)
rin
transmitting data
du
(No.3)
ite
CPU No.4
Wr
CPU No.2
CPU No.4 receiving data (No.3)
transmitting data (No.1)
CPU No.3
CPU No.4 receiving data (No.3)
Maximum transmitting data (No.2)
CPU No.4
2k words CPU No.4 receiving data (No.3)
transmitting data (No.3)
Setting 4
CPU No.4 M0
M0 CPU No.1
transmitting data (No.4) transmitting data
(No.4)
CPU No.2
receiving data (No.4)
CPU No.3
receiving data (No.4)
CPU No.4
receiving data (No.4)
3-7
3 COMMUNICATION BETWEEN THE PLC CPU AND THE MOTION CPU IN
THE MULTIPLE CPU SYSTEM
2) The number of points in the shared CPU memory set in units of 2 points
(2 words) is set in the send range for each CPU. (2 points if word device
is specified for the CPU-side device, or 32 points if bit device is
specified.)
Data of the CPUs for which "0" is set as the number of points
representing the send range for the CPU will not be refreshed.
4) If "*" is set as the first device setting column A of each automatic refresh
setting, the first device for every CPU can be arbitrarily set up by the
user in the column of B.
3-8
3 COMMUNICATION BETWEEN THE PLC CPU AND THE MOTION CPU IN
THE MULTIPLE CPU SYSTEM
6) Set the same number of transmitting points for all CPUs in the Multiple
CPU system.
If any of the CPUs has a different number of transmitting points, a
PARAMETER ERROR will be occurred.
3-9
3 COMMUNICATION BETWEEN THE PLC CPU AND THE MOTION CPU IN
THE MULTIPLE CPU SYSTEM
3 - 10
3 COMMUNICATION BETWEEN THE PLC CPU AND THE MOTION CPU IN
THE MULTIPLE CPU SYSTEM
[Dummy setting]
Usually, the automatic refresh setting is executed between PLC CPU and Motion
CPU for the instructions to each Motion CPU and the monitor of a state by the
PLC CPU at the time of operation. However, the automatic refresh is not
necessary between each Motion CPU. In this case, because it is made not to
execute the automatic refresh setting between the Motion CPU using a dummy
setting, it is not necessary to use the user device for the automatic refresh vainly,
and a main cycle can also be shortened.
Example of the automatic refresh setting using the "Dummy setting" is as follows.
<Example>
Motion CPU No.2
Read data of
CPU No.3
Read data of
Motion CPU No.4 CPU No.3
• The device of CPU No.2 and No.4 are not refreshed by the CPU No.3.
• The device of CPU No.4 is not refreshed by the CPU No.2. • The device of CPU No.2 is not refreshed by the CPU No.4.
Although the example of a setting is the case of the automatic refresh setting 1,
the automatic refresh setting 2 - 4 can be also set similarly.
3 - 11
3 COMMUNICATION BETWEEN THE PLC CPU AND THE MOTION CPU IN
THE MULTIPLE CPU SYSTEM
• Overall configuration
Table of the internal relays Table of the Data registers
Device No. Application Device No. Application
M0 D0
User device Axis monitor device
to (2000 points) to (20 points 32 axes)
to User device
(3472 points)
M8191 D8191
3 - 12
3 COMMUNICATION BETWEEN THE PLC CPU AND THE MOTION CPU IN
THE MULTIPLE CPU SYSTEM
D1632 D1632
D8191 D8191
CPU CPU share memory G Dev. starting M0 CPU CPU share memory G Dev. starting *
Point Start End Start End Point Start End Start End
CPU CPU share memory G Dev. starting D0 CPU CPU share memory G Dev. starting *
Point Start End Start End Point Start End Start End
3 - 13
3 COMMUNICATION BETWEEN THE PLC CPU AND THE MOTION CPU IN
THE MULTIPLE CPU SYSTEM
CPU CPU share memory G Dev. starting M0 CPU CPU share memory G Dev. starting *
Point Start End Start End Point Start End Start End
CPU CPU share memory G Dev. starting D0 CPU CPU share memory G Dev. starting *
Point Start End Start End Point Start End Start End
POINT
Although it has set up so that 32 axes may be assigned in the above assignment
example, reduce the number of assignment automatic refresh points a part for the
number of axes to be used.
3 - 14
3 COMMUNICATION BETWEEN THE PLC CPU AND THE MOTION CPU IN
THE MULTIPLE CPU SYSTEM
D8191
CPU No.2 (Motion CPU)
Data registers
D0 Monitor device
(640 points)
D758
D8191
Data registers
D0 Monitor device
(640 points)
D758
D8191
3 - 15
3 COMMUNICATION BETWEEN THE PLC CPU AND THE MOTION CPU IN
THE MULTIPLE CPU SYSTEM
CPU CPU share memory G Dev. starting M0 CPU CPU share memory G Dev. starting *
Point Start End Start End Point Start End Start End
CPU CPU share memory G Dev. Starting D0 CPU CPU share memory G Dev. starting *
Point Start End Start End Point Start End Start End
CPU CPU share memory G Dev. Starting M1824 CPU CPU share memory G Dev. starting *
Point Start End Start End Point Start End Start End
CPU CPU share memory G Dev. starting D758 CPU CPU share memory G Dev. starting *
Point Start End Start End Point Start End Start End
3 - 16
3 COMMUNICATION BETWEEN THE PLC CPU AND THE MOTION CPU IN
THE MULTIPLE CPU SYSTEM
No.1 48 * *
No.2 66 * *
No.3 0
No.4
(Note): A dummy setting (*) is made so that an excessive device may not be
refreshed in the Motion CPU No.2.
No.1 118 * *
No.2 640 * *
No.3 0
No.4
(Note): A dummy setting (*) is made so that an excessive device may not be
refreshed in the Motion CPU No.2.
3 - 17
3 COMMUNICATION BETWEEN THE PLC CPU AND THE MOTION CPU IN
THE MULTIPLE CPU SYSTEM
POINT
In the case of the combination "PLC CPU (1 module) + Motion CPU (3 modules)"
with SV43, make all the devices of all the CPUs refresh as mentioned above
because the setting that Read/Write is made of the PLC CPU can not be executed.
3 - 18
3 COMMUNICATION BETWEEN THE PLC CPU AND THE MOTION CPU IN
THE MULTIPLE CPU SYSTEM
Shared CPU memory is used to transfer data between the CPUs in the Multiple CPU
system and has a capacity of 4096 words from 0H to FFFH.
Shared CPU memory has four areas: "self CPU operation data area", "system area",
"automatic refresh area" and "user-defined area".
When the automatic refresh function of shared CPU memory is set, the area
corresponding to the number of automatic refresh points starting from 800H is used as
the automatic refresh area.
The user-defined area begins from the address immediately next to the last address of
the automatic refresh area.
If the number of automatic refresh points is 18 (12H points), the area from 800H to
811H becomes the automatic refresh area and the area after 812H becomes the user-
defined area.
The diagram below shows the structure of shared CPU memory and accessibility from
a PLC program.
to
User-defined area Allowed Not allowed Not allowed Allowed
FFFH
REMARK
(Note-1) : Use the S. TO instruction to write to the user-defined area of the self CPU
in the PLC CPU.
Use the MULTW instruction to write to the user-defined area of the self
CPU in the Motion CPU.
(Note-2) : Use the FROM instruction/intelligent function module device (U \G ) to
read the shared memory of the Motion CPU from the PLC CPU.
Use the MULTR instruction to read the shared memory of other CPU in
the Motion CPU.
3 - 19
3 COMMUNICATION BETWEEN THE PLC CPU AND THE MOTION CPU IN
THE MULTIPLE CPU SYSTEM
Table 3.1 Table of Contents Stored in the Self CPU Operation Data Area
Shared
Corresponding
memory Name Description Detailed explanation (Note)
special resister
address
This area is used to check whether data is stored or not in the
Data available/not "Data available/not self CPU operation data area (1H to 1FH) of the self CPU.
0H —
available available" flag • 0: Data is not stored in the self CPU operation data area.
• 1: Data is stored in the self CPU operation data area.
The error number of an error generated during diagnosis is
1H Diagnosis error Diagnosis error number D9008
stored as a BIN code.
The year and month when the error number was stored in
2H address 1H of shared CPU memory is stored in 2-digit BCD D9010
code.
The date and hour when the error number was stored in
Diagnosis-error Diagnosis-error
3H address 1H of shared CPU memory is stored in 2-digit BCD D9011
occurrence time occurrence time
code.
The minutes and seconds when the error number was stored in
4H address 1H of shared CPU memory is stored in 2-digit BCD D9012
code.
Category codes indicating the nature of the stored common
5H Error-data category code Error-data category code D9013
error data and individual error data are stored.
Common data corresponding to the error number of an error
6H Error data Error data D9014
generated during diagnosis is stored.
7H to 1CH Not used — Not used —
1DH Switch status CPU switch status The switch status of the CPU is stored. D9200
1EH LED status CPU-LED status The bit pattern of the CPU LED is stored D9201
1FH CPU operation status CPU operation status The operation status of the CPU is stored. D9015
(Note) : Refer to the corresponding special register for details.
(b) The self CPU operation data area is refreshed every time the applicable
register has been changed.
However, the refresh timing may be delayed by up to the main cycle time.
(It updates using idle time during motion control. The maximum main cycle
time: several milliseconds to several hundred milliseconds).
(c) The data of the self CPU operation data area can be read from the PLC
CPU of the other CPU by the FROM instruction.
However, since there is a delay in data update, use the data that has been
read as an object for monitoring only.
(d) Self CPU operation data area used by Motion dedicated PLC instruction
(30H to 33H)
The complete status of the to self CPU high speed interrupt accept flag from
CPUn is stored in the following address.
Table 3.2 Table of Self CPU Operation Data Area used by the Motion Dedicated PLC
Instruction
Shared
memory Name Description
address
30H(48) To self CPU high speed interrupt accept flag from CPU1 This area is used to check whether to self CPU high speed interrupt accept flag
31H(49) To self CPU high speed interrupt accept flag from CPU2 from CPUn can be accepted or not.
32H(50) To self CPU high speed interrupt accept flag from CPU3 0: To self CPU high speed interrupt accept flag from CPUn accept usable.
33H(51) To self CPU high speed interrupt accept flag from CPU4 1: To self CPU high speed interrupt accept flag from CPUn accept disable.
3 - 20
3 COMMUNICATION BETWEEN THE PLC CPU AND THE MOTION CPU IN
THE MULTIPLE CPU SYSTEM
Table 3.3 Table of System Area used by Motion Dedicated PLC Instruction
Shared
memory Name Description
address
The start accept flag is stored by the 1 to 32 axis, each bit.
(As for a bit's actually being set Q173CPU(N) : J1 to J32/
204H(516) Start accept flag (Axis1 to 16)
Q172CPU(N) : J1 to J8.)
OFF : Start accept flag usable
ON : Start accept flag disable
b15 b1 b0
3 - 21
3 COMMUNICATION BETWEEN THE PLC CPU AND THE MOTION CPU IN
THE MULTIPLE CPU SYSTEM
3 - 22
4 MOTION DEDICATED PLC INSTRUCTION
(1) The Motion dedicated PLC instruction which can be executed toward the Motion
CPU which installed a SV43 operating system software is shown below.
Instruction Description
S(P).SFCS Start request of the specified Motion program (Control program)
S(P).SVST Start request of the specified Motion program (Axis designation program)
S(P).CHGA Home position return request of the specified axis
S(P).CHGV Speed change request of the specified axis
S(P).CHGT Torque control value change request of the specified axis
S(P).DDWR Write from the PLC CPU to the Motion CPU
S(P).DDRD Read from the devices of the Motion CPU 4
(Note) : As for the details of each instruction, it explains after the next section.
(1) To self CPU high speed interrupt accept flag from CPUn.
Common precautions of the Motion dedicated PLC instruction as shown below.
(a) To self CPU high speed interrupt accept flag from CPUn is shown in the
following table.
To self CPU high speed interrupt accept flag from CPUn is "No operation"
even if the instruction is executed when it is cannot be accepted.
When the Motion dedicated PLC instruction is accepted in the Motion CPU,
to self CPU high speed interrupt accept flag from CPUn of the self CPU
(Motion CPU) shared CPU memory cannot be accepted and
processing toward the instruction for requirement.
When processing is completed and it becomes the condition that it has an
instruction accepted, to self CPU high speed interrupt accept flag from
CPUn can be accepted.
4-1
4 MOTION DEDICATED PLC INSTRUCTION
Shared CPU
memory address Example of the reading
Description
( ) is decimal (When target is the CPU No.2)
address
The lowest rank bit (30H(48)) toward executing instruction
30H(48) U3E1/G48.0
from CPU No.1.
The lowest rank bit (31H(49)) toward executing instruction
31H(49) U3E1/G49.0
from CPU No.2.
The lowest rank bit (32H(50)) toward executing instruction
32H(50) U3E1/G50.0
from CPU No.3.
The lowest rank bit (33H(51)) toward executing instruction
33H(51) U3E1/G51.0
from CPU No.4.
(a) "To self CPU high speed interrupt accept flag from CPUn" turn ON/OFF at
the executing instruction, when the Multiple CPU dedicated instructions are
executed to the same CPU from one PLC CPU.
Therefore, when each instruction is executed only once at approval the
executing condition, it is necessary to take an interlock by internal relay
(M10) and so on besides "To self CPU high speed interrupt accept flag from
CPUn".
(c) Local devices and file registers as program are written to device by END
processing. Do not use the devices below.
Each instruction complete device
D1 of S(P).DDRD instruction (The first device of the self CPU which
stored the reading data.)
4-2
4 MOTION DEDICATED PLC INSTRUCTION
(d) Use a flag in the shared CPU memory which correspond with each
instruction not to execute multiple instructions to the same shaft of the
Motion CPU of same CPU No. for the interlock condition.
(Program example 1)
(e) S(P).SFCS/S(P).SVST/S(P).CHGA/S(P).CHGVS(P).CHGT/S(P).DDWR/
S(P).DDRD instructions cannot be executed simultaneously. Therefore, it is
necessary to take an interlock by to self CPU high speed interrupt accept
flag from CPUn.
One PLC CPU can be executed max.32 Motion dedicated PLC instructions
simultaneously using to self CPU high speed interrupt accept flag from
CPUn.
If 33 instructions or more are executed, the PLC CPU returns the
OPERATION ERROR[4107].
(f) When multiple Motion dedicated PLC instructions are directly executed
because one contact-point turns on, an instruction may not be executed.
In this case, create a program with reference to program example.
(Program example 2)
RST M0
RST M6
4-3
4 MOTION DEDICATED PLC INSTRUCTION
Program which executes directly multiple Motion dedicated PLC instructions because
one contact-point turns on.
M1001
SET M21
SET M23
SET M25
SET M27
RST M1001
To self CPU high
speed interrupt Start accept
accept flag from flag of the Axis 1
CPU1 (CPU No.2)
M21 U3E1\G48.0 U3E1\G516.0
SP.SVST H3E1 "J1" K104 M30 D20
RST M23
To self CPU high
Start accept
speed interrupt
flag of the Axis 4
accept flag from
(CPU No.2)
CPU1
U3E1\G516.3
M25 U3E1\G48.0
SP.SVST H3E1 "J4" K106 M34 D24
RST M25
To self CPU high
speed interrupt Start accept
accept flag from flag of the Axis 5
CPU1 (CPU No.2)
M27 U3E1\G48.0 U3E1\G516.4
SP.SVST H3E1 "J5" K107 M36 D26
RST M27
4-4
4 MOTION DEDICATED PLC INSTRUCTION
POINT
Access from the PLC CPU is processed before the communication processing of
the Motion CPU. Therefore, if the Motion dedicated PLC instruction is frequently
performed from the PLC CPU, the scan time of the PLC CPU is not only prolonged,
but delay will arise in the communication processing of the Motion CPU.
Perform execution of the Motion dedicated PLC instruction from the PLC CPU by
S(P).DDWR/S(P).DDRD/S(P).CHGV instruction etc. only at the time of necessity.
4-5
4 MOTION DEDICATED PLC INSTRUCTION
4-6
4 MOTION DEDICATED PLC INSTRUCTION
(4) Self CPU operation data area used by Motion dedicated instruction (30H to 33H)
The complete status of the to self CPU high speed interrupt accept flag from
CPUn is stored in the following address.
Shared
CPU
Name Description
memory
address
To self CPU high speed interrupt
30H(48)
accept flag from CPU1
To self CPU high speed interrupt This area is used to check whether to self CPU high speed interrupt accept
31H(49)
accept flag from CPU2 flag from CPUn can be accepted or not.
To self CPU high speed interrupt 0: To self CPU high speed interrupt accept flag from CPUn accept usable.
32H(50)
accept flag from CPU3 1: To self CPU high speed interrupt accept flag from CPUn accept disable.
To self CPU high speed interrupt
33H(51)
accept flag from CPU4
4-7
4 MOTION DEDICATED PLC INSTRUCTION
4.2 Motion program (Control program) Start Request from The PLC CPU to The Motion
CPU:S(P).SFCS (PLC instruction: S(P).SFCS )
• Motion program (Control program) start request instruction from the PLC CPU to the
Motion CPU (S(P).SFCS)
Usable devices
Setting data
(n1)
(n2)
(D1)
(D2)
: Usable : Usable partly
(Note) : Setting data (n1) to (D2) : Index qualification possible
[Setting data]
Setting data Description Data type
(First I/O No. of the target CPU)/16
(Note-1) 16-bit
(n1) Value to specify actually is the following.
binary
CPU No.2 : 3E1H, CPU No.3 : 3E2H, CPU No.4 : 3E3H
16-bit
(n2) Motion program (Control program) No. to start.
binary
Complete devices
(D1+0) : Device which make turn on for one scan at start accept completion of
instruction.
(D1) Bit
(D1+1) : Device which make turn on for one scan at start accept abnormal
completion of instruction.
("D1+0" also turns on at the abnormal completion.)
16-bit
(D2) Device to store the complete status.
binary
(Note-1) : Motion CPU cannot used CPU No.1 in the Multiple CPU configuration.
4-8
4 MOTION DEDICATED PLC INSTRUCTION
Set the control program No. to start in (n2). Usable range is shown below.
(1) The control program No. is set
The specified control program No. is started.
In this case, control program is executed from the first block.
[Description]
(1) This instruction is dedicated instruction toward the Motion CPU in the Multiple
CPU system. Errors occurs when it was executed toward the CPU except the
Motion CPU.
(2) Request to start the Motion program (Control program) specified with (n2).
(3) S(P).SFCS/S(P).SVST/S(P).CHGA/S(P).CHGV/S(P).CHGT/S(P).DDRD/
S(P).DDWR cannot be executed simultaneously toward the CPU executing
S(P).SFCS instruction.
When the Motion dedicated PLC instruction is started continuously, it is necessary
to execute the next instruction after the complete device of executing instruction
turns on.
4-9
4 MOTION DEDICATED PLC INSTRUCTION
S(P).SFCS execution
ON
4 - 10
4 MOTION DEDICATED PLC INSTRUCTION
[Errors]
The abnormal completion in the case shown below, and the error code is stored in the
device specified with the complete status storing device (D2).
Complete status (Note) Corrective
Error factor
(Error code)(H) action
The specified device cannot be used ih the Motion CPU. Or,
4C00
it is outside the device range.
The instruction for the Multiple CPU system which did not be
4C01 correspond with operating system software of the Motion
CPU was executed.
The Motion program (Control program) No. to start is outside
the following range.
Confirm a
• The control program is set
program, and
1 to1024
4C02 correct it to a
• Indirect setting by data register
correct PLC
10000 to 18191
program.
• Indirect setting by motion register
20000 to 28191
There are 33 or more instruction requests to the Motion CPU
from the PLC CPU in S(P).SFCS/S(P).SVST and
4C08
S(P).CHGA sum table simultaneously, and the Motion CPU
cannot process them.
4C09 CPU No. of the instruction cause is injustice.
(Note) : 0000H(Normal)
The error flag (SM0) is turned on an operation error in the case shown below, and an
error code is stored in SD0.
(Note) Corrective
Error code Error factor
action
The CPU No. to be set by "(First I/O NO. of the target
2110
CPU)/16" is specified.
The self CPU by "(First I/O No. of the target CPU)/16" is
2114
specified. Confirm a
The CPU except the Motion CPU by "(First I/O No. of the program, and
2117
target CPU)/16" is specified. correct it to a
4002 Specified instruction is wrong. correct PLC
The instruction is composed of devices except usable program.
4004
devices.
Since 0 to 3DFH, 3E4H is specified by "(First I/O No. of the
4100
target CPU)/16" is specified.
(Note) : 0000H(Normal)
4 - 11
4 MOTION DEDICATED PLC INSTRUCTION
[Program example]
(1) This program starts the Motion program (Control program) No.10 of the Motion CPU No.4.
X0
SP.SFCS H3E3 K10 M0 D0
M0 M1
Normal complete program
M1
Abnormal complete program
(2) This program starts the Motion program (Control program) No.30 and sequence No.200
of the Motion CPU No.4 by indirect setting.
M0 M1
Normal complete program
M1
Abnormal complete program
4 - 12
4 MOTION DEDICATED PLC INSTRUCTION
4.3 Motion Program (Axis designation program) Start Request from The PLC CPU to The
Motion CPU:S(P).SVST (PLC instruction: S(P).SVST )
• Motion program (Axis designation program) start request instruction from the PLC
CPU to the Motion CPU (S(P).SVST)
Usable devices
Setting data
(S2)
(D1)
(D2)
: Usable : Usable partly
(Note) : Setting data except (S1) : Index qualification possible
[Setting data]
Setting data Description Data type
(First I/O No. of the target CPU)/16
(Note-1) 16-bit
(n1) Value to specify actually is the following.
binary
CPU No.2 : 3E1H, CPU No.3 : 3E2H, CPU No.4 : 3E3H
(Note-2)
Axis No.("Jn") to start. Character
(S1)
Q173CPU(N) : J1 to J32/Q172CPU(N) : J1 to J8 sequence
16-bit
(S2) Motion program (Axis designation program) No. to start.
binary
Complete devices
(D1+0) : Device which make turn on for one scan at start accept completion of
instruction.
(D1) Bit
(D1+1) : Device which make turn on for one scan at start accept abnormal
completion of instruction.
("D1+0" also turns on at the abnormal completion.)
16-bit
(D2) Device to store the complete status.
binary
(Note-1) : Motion CPU cannot used CPU No.1 in the Multiple CPU configuration.
(Note-2) : "n" shows the numerical value correspond to axis No..
Q173CPU(N) : Axis No.1 to No.32 (n=1 to 32) / Q172CPU(N) : Axis No.1 to No.8 (n=1 to 8)
4 - 13
4 MOTION DEDICATED PLC INSTRUCTION
[Description]
(1) This instruction is dedicated instruction toward the Motion CPU in the Multiple
CPU system. Errors occurs when it was executed toward the CPU except the
Motion CPU.
(2) Request to start the Motion program (Axis designation program) specified with
(S2).
(3) S(P).SFCS/S(P).SVST/S(P).CHGA/S(P).CHGV/S(P).CHGT/S(P).DDRD/
S(P).DDWR cannot be executed simultaneously toward the CPU executing
S(P).SFCS instruction.
When the Motion dedicated PLC instruction is started continuously, It is necessary
to take an inter-lock by the to self CPU high speed interrupt accept flag from
CPUn.
(4) It is necessary to take an inter-lock by the start accept flag of the shared CPU
memory so that multiple instructions may not be executed toward the same axis of
the same Motion CPU No..
[Operation]
PLC program END END END END t
S(P).SVST execution
ON
(1) The start accept status of each axis can be confirmed with the start accept flag in
the shared CPU memory of target CPU.
4 - 14
4 MOTION DEDICATED PLC INSTRUCTION
[Setting range]
(1) Setting of the starting axis
The starting axis set as (S1) sets J + Axis No. in a character sequence " ".
Up to 8 axes can be set. If multiple axes are set, it sets without dividing in a
space etc,.
The axis No. set in the system setting (Refer to Section 6.1) is used as the axis
No. to start.
And, the axis No. to start does not need to be a order.
4 - 15
4 MOTION DEDICATED PLC INSTRUCTION
(b) The sequence No. (N****) / parameter block No. in the control program is set
It can be started in the middle of program.
1) Indirect setting by data register
D((S2) – 10000) : The axis designation program No. stored in
the data register (Motion CPU side) is started.
D((S2) – 10000 + 1) : The sequence No. stored in the data register
(Motion CPU side) is started.
D((S2) – 10000 + 2) : The parameter block No. stored in the data
register (Motion CPU side) is started.
4 - 16
4 MOTION DEDICATED PLC INSTRUCTION
[Errors]
The abnormal completion in the case shown below, and the error code is stored in the
device specified with the complete status storing device (D2).
Complete status (Note)
Error factor Corrective action
(Error code)(H)
The specified device cannot be used in the Motion
4C00
CPU. Or, it is outside the device range.
The instruction for the Multiple CPU system which did
4C01 not be correspond with operating system software of
the Motion CPU was executed.
The Motion program (Axis designation program) No. to
start is outside the following range.
• The control program is set
1 to 1024 Confirm a program,
4C03 and correct it to a
• Indirect setting by data register
10000 to 18191 correct PLC
• Indirect setting by motion register program.
20000 to 28191
4C04 Axis No. set by SVST instruction is injustice.
There are 33 or more instruction requests to the
Motion CPU from the PLC CPU in S(P).SFCS,
4C08
S(P).SVST and S(P).CHGA sum table simultaneously,
and the Motion CPU cannot process them.
(Note) : 0000H(Normal)
The error flag (SM0) is turned on an operation error in the case shown below, and an
error code is stored in SD0.
(Note)
Error code Error factor Corrective action
(Note) : 0000H(Normal)
4 - 17
4 MOTION DEDICATED PLC INSTRUCTION
[Program example]
(1) Program which requests to start the Motion program (Axis designation program) No.10
toward axis No.1 and No.2 of the Motion CPU No.4. from the PLC CPU No.1.
RST M100
M0 M1
Normal complete program
M1
Abnormal complete program
(2) Program which requests to start the Motion program (Axis designation program) No.20,
sequence No. 100 and parameter block No.30 toward axis No.1 and No.2 of the Motion
CPU No.4 by indirect setting from the PLC CPU No.1.
Sequence program (PLC CPU side)
To self CPU Start accept flag Start accept flag
high speed of the axis No.1 of the axis No.2
interrupt accept (CPU No.4) (CPU No.4)
flag from CPU U3E3 U3E3
U3E3 \G516.0 \G516.1
\G48.0
M100
SP.SVST H3E3 "J1J2" K12000 M0 D0
RST M100
M0 M1
Normal complete program
M1
Abnormal complete program
4 - 18
4 MOTION DEDICATED PLC INSTRUCTION
4.4 Home position return instruction from The PLC CPU to The Motion CPU:
S(P).CHGA (PLC instruction: S(P).CHGA )
• Home position return instruction from the PLC CPU to the Motion CPU (S(P).CHGA)
Usable devices
Setting data
(S2)
(D1)
(D2)
: Usable : Usable partly
(Note) : Setting data except (S1) : Index qualification possible
[Setting data]
Setting data Description Data type
(First I/O No. of the target CPU)/16
(Note-1) 16-bit
(n1) Value to specify actually is the following.
binary
CPU No.2 : 3E1H, CPU No.3 : 3E2H, CPU No.4 : 3E3H
(Note-2)
Axis No. ("Jn") to execute the home position return. Character
(S1)
Q173CPU(N) : J1 to J32/Q172CPU(N) : J1 to J8 sequence
32-bit
(S2) Dummy (Set the any of constant etc.)
binary
Complete devices
(D1+0) : Device which make turn on for one scan at start accept completion of
instruction.
(D1) Bit
(D1+1) : Device which make turn on for one scan at start accept abnormal
completion of instruction.
("D1+0" also turns on at the abnormal completion.)
16-bit
(D2) Device to store the complete status.
binary
(Note-1) : Motion CPU cannot used CPU No.1 in the Multiple CPU configuration.
(Note-2) : "n" shows the numerical value which correspond to axis No..
Q173CPU(N) : Axis No.1 to No.32 (n=1 to 32) / Q172CPU(N) : Axis No.1 to No.8 (n=1 to 8)
4 - 19
4 MOTION DEDICATED PLC INSTRUCTION
[Description]
(1) This instruction is dedicated instruction toward the Motion CPU in the Multiple
CPU system. Errors occurs when it was executed toward the CPU except the
Motion CPU.
(2) Execute the home position return of axis (stopped axis) No. specified with (S1) .
(3) S(P).SFCS/S(P).SVST/S(P).CHGA/S(P).CHGV/S(P).CHGT/S(P).DDRD/
S(P).DDWR cannot be executed simultaneously toward the CPU executing
S(P).CHGA instruction.
When the Motion dedicated PLC instruction is started continuously, It is necessary
to take an inter-lock by the to self CPU high speed interrupt accept flag from
CPUn.
(4) It is necessary to take an inter-lock by the start accept flag of the shared CPU
memory so that multiple instructions may not be executed toward the same axis of
the same Motion CPU No..
[Operation]
S(P).CHGA execution
ON
ON
Instruction start OFF
accept complete device
(D1+0)
ON : Abnormal completion only
State display device (D1+1)
at the instruction start OFF
accept completion
Instruction accept 1 scan
completion at the
Motion CPU side
(1) The start accept status of each axis can be confirmed with the start accept flag in
the shared CPU memory of target CPU.
4 - 20
4 MOTION DEDICATED PLC INSTRUCTION
[Setting range]
(1) Setting of axis to execute the home position return.
The starting axis set as (S1) sets J + Axis No. in a character sequence " ".
4 - 21
4 MOTION DEDICATED PLC INSTRUCTION
[Errors]
The abnormal completion in the case shown below, and the error code is stored in the
device specified with the complete status storing device (D2).
Complete status (Note)
Error factor Corrective action
(Error code)(H)
The specified device cannot be used in the Motion
4C00
CPU. Or, it is outside the device range.
The instruction for the Multiple CPU system which did
4C01 not be correspond with operating system software of
Confirm a program,
the Motion CPU was executed.
and correct it to a
4C05 Axis No. set by CHGA instruction is injustice.
correct PLC
There are 33 or more instruction requests to the
program.
Motion CPU from the PLC CPU in S(P).SFCS,
4C08
S(P).SVST and S(P).CHGA sum table simultaneously,
and the Motion CPU cannot process them.
4C09 CPU No. of the instruction cause is injustice.
(Note) : 0000H(Normal)
The error flag (SM0) is turned on an operation error in the case shown below, and an
error code is stored in SD0.
(Note)
Error code Error factor Corrective action
(Note) : 0000H(Normal)
4 - 22
4 MOTION DEDICATED PLC INSTRUCTION
[Program example]
Program which execute the home position return of the axis No.1 of the Motion CPU
(CPU No.4) from PLC CPU (CPU No.1).
RST M100
M0 M1
Normal complete program
M1
Abnormal complete program
4 - 23
4 MOTION DEDICATED PLC INSTRUCTION
4.5 Speed Change Instruction from The PLC CPU to The Motion CPU:
S(P).CHGV (PLC instruction: S(P).CHGV )
(S2)
(D1)
(D2)
: Usable : Usable partly
(Note) : Setting data except (S1) : Index qualification possible
[Setting data]
Setting data Description Data type
(First I/O No. of the target CPU)/16
(Note-1) 16-bit
(n1) Value to specify actually is the following.
binary
CPU No.2 : 3E1H, CPU No.3 : 3E2H, CPU No.4 : 3E3H
(Note-2)
Axis No.("Jn") to execute the speed change. Character
(S1)
Q173CPU(N) : J1 to J32/Q172CPU(N) : J1 to J8 sequence
32-bit
(S2) Setting of the current value to change.
binary
Complete devices
(D1+0) : Device which make turn on for one scan at start accept completion of
instruction.
(D1) Bit
(D1+1) : Device which make turn on for one scan at start accept abnormal
completion of instruction.
("D1+0" also turns on at the abnormal completion.)
16-bit
(D2) Device to store the complete status.
binary
(Note-1) : Motion CPU cannot used CPU No.1 in the Multiple CPU configuration.
(Note-2) : "n" shows the numerical value which correspond to axis No..
Q173CPU(N) : Axis No.1 to No.32 (n=1 to 32) / Q172CPU(N) : Axis No.1 to No.8 (n=1 to 8)
4 - 24
4 MOTION DEDICATED PLC INSTRUCTION
[Description]
(1) This instruction is dedicated instruction toward the Motion CPU in the Multiple CPU
system. Errors occurs when it was executed toward the CPU except the Motion
CPU.
(2) The speed change is executed of the axis specified with (S1) during positioning or
JOG operating.
(3) S(P).SFCS/S(P).SVST/S(P).CHGA/S(P).CHGV/S(P).CHGT/S(P).DDRD/
S(P).DDWR cannot be executed simultaneously toward the CPU executing
S(P).CHGV instruction.
When the Motion dedicated PLC instruction is started continuously, It is necessary
to take an inter-lock by the to self CPU high speed interrupt accept flag from
CPUn.
(4) It is necessary to take an inter-lock by the speed changing flag of the shared CPU
memory so that multiple instructions may not be executed toward the same axis of
the same Motion CPU No..
[Operation]
PLC program END END END END t
S(P).CHGV execution
ON
ON
Instruction start OFF
accept complete device
(D1+0)
ON : Abnormal completion only
State display device (D1+1)
at the instruction start OFF
accept completion
Instruction accept 1 scan
completion at the
Motion CPU side
4 - 25
4 MOTION DEDICATED PLC INSTRUCTION
[Setting range]
(1) Setting of axis to execute the speed change.
The axis to execute the speed change set as (S1) sets J + axis No. in a character
sequence " ".
(S1) usable range
Q173CPU(N) 1 to 32
Q172CPU(N) 1 to 8
4 - 26
4 MOTION DEDICATED PLC INSTRUCTION
[Errors]
The abnormal completion in the case shown below, and the error code is stored in the
device specified with the complete status storing device (D2).
Complete status (Note)
Error factor Corrective action
(Error code)(H)
The specified device cannot be used in the Motion
4C00
CPU. Or, it is outside the device range.
Confirm a program,
The instruction for the Multiple CPU system which did
not be correspond with operating system software of and correct it to a
4C01
the Motion CPU was executed. correct PLC
4C06 Axis No. set by CHGV instruction is injustice. program.
4C09 CPU No. of the instruction cause is injustice.
(Note) : 0000H(Normal)
The error flag (SM0) is turned on an operation error in the case shown below, and an
error code is stored in SD0.
(Note)
Error code Error factor Corrective action
(Note) : 0000H(Normal)
In this following case, the minor error (control change error) occurs, speed change is
not execute. At this time, the error detection flag (M2047 + 20n) of Motion CPU turns
on, an error code is stored in the minor error code area of the applicable axis.
When the axis specified with (S1) is executing the home position return at the
speed change.
When the axis specified with (S1) is executing the deceleration at the speed
change.
When the speed specified with (S2) is outside the range of 0 to speed limit
value.
4 - 27
4 MOTION DEDICATED PLC INSTRUCTION
When a speed change is made to a negative speed by the CHGV instruction, the travel
direction can be changed to the direction opposite to the intended positioning direction.
Operation for each instruction is as follows.
G-code Instruction Operation
G00
G28 (High-speed home position return)
G30 The axis is reversed in travel direction, returns to the positioning start
G53 point at the specified speed, and stops (stands by) there.
G02
G03
G01 The axis is reversed in travel direction, returns to the preceding point at
G32 the specified speed, and stops (waits) there.
G25 Minor error (Error code: 310) (Note) occurs.
G28 (Proximity dog, count, data set, Speed change cannot be
dog cradle, stopper and limit switch made. Minor error (Error code: 301) (Note) occurs.
combined type home position return)
Speed change to negative
speed is not made.
JOG operation Minor error (Error code: 305) (Note) occurs.
Speed is controlled at speed
limit value.
(Note) : Minor error (Error code: 301) : Speed change was made during home position return.
Minor error (Error code: 305) : Preset speed is outside the range of 0 to speed limit value.
Minor error (Error code: 310) : Speed change was made during high-speed oscillation.
[Description]
(1) When a speed change is made to negative speed, speed is controlled as listed
above according to the G-code in execution.
(2) The backing command speed is the absolute value of the new speed. If it exceeds
the speed limit value, a minor error (Error code: 305) occurs and the speed is
controlled at the speed limit value.
4 - 28
4 MOTION DEDICATED PLC INSTRUCTION
(d) When a negative speed change is executed again after negative speed
completion, CHGV instruction is ignored.
(4) When the complete round is set in G02, G03, do not execute the negative speed
change by CHGV instruction.
4 - 29
4 MOTION DEDICATED PLC INSTRUCTION
[ Motion program ]
Locus
O10;
Y-axis
G90;
N1 G01 X10000. Y0 F1000. ; N3
N2 Y10000. ;
N3 X10000. ; P2 P3
M02;
%
N2
Negative speed change
N1 P1
Starting point X-axis
Combined speed
Waiting at P1
Return operation to point P1
Command in-position
(OFF)
Speed change "0"
accepting flag
(3) A speed change to negative speed is ignored if it is made during stop by the
waiting for FIN using the M-code FIN signal waiting function in the constant-speed
control.
4 - 30
4 MOTION DEDICATED PLC INSTRUCTION
(4) In the above example, the axis returns to P2 even if the axis passes through P2
during a speed change made to negative speed immediately before P2.
Y-axis
P2 P3
[Program example]
Program which changes the positioning speed of the axis No.1 of the Motion CPU
(CPU No.4) from PLC CPU (CPU No.1) to 1000.
RST M100
M0 M1
Normal complete program
M1
Abnormal complete program
4 - 31
4 MOTION DEDICATED PLC INSTRUCTION
4.6 Torque Limit Value Change Request Instruction from The PLC CPU to The Motion CPU:
S(P).CHGT (PLC instruction: S(P) .CHGT )
• Torque limit value change request instruction from the PLC CPU to the Motion CPU
(S(P).CHGT)
Usable devices
Setting data
(S2)
(D1)
(D2)
: Usable : Usable partly
(Note) : Setting data except (S1) : Index qualification possible
[Setting data]
Setting data Description Data type
(First I/O No. of the target CPU)/16
(Note-1) 16-bit
(n1) Value to specify actually is the following.
binary
CPU No.2 : 3E1H, CPU No.3 : 3E2H, CPU No.4 : 3E3H
(Note-2)
Axis No.("Jn") to execute the torque limit value change. Character
(S1)
Q173CPU(N) : J1 to J32/Q172CPU(N) : J1 to J8 sequence
16-bit
(S2) Setting of the torque limit value change to change.
binary
Complete devices
(D1+0) : Device which make turn on for one scan at start accept completion of
instruction.
(D1) Bit
(D1+1) : Device which make turn on for one scan at start accept abnormal
completion of instruction.
("D1+0" also turns on at the abnormal completion.)
16-bit
(D2) Device to store the complete status.
binary
(Note-1) : Motion CPU cannot used CPU No.1 in the Multiple CPU configuration.
(Note-2) : "n" shows the numerical value which correspond to axis No..
Q173CPU(N) : Axis No.1 to No.32 (n=1 to 32) / Q172CPU(N) : Axis No.1 to No.8 (n=1 to 8)
4 - 32
4 MOTION DEDICATED PLC INSTRUCTION
[Description]
(1) This instruction is dedicated instruction toward the Motion CPU in the Multiple
CPU system. Errors occurs when it was executed toward the CPU except the
Motion CPU.
(2) The torque limit value of the axis specified with (S1) is changed to the value of
(S2) regardless of the state of during operating or stopping.
(3) S(P).SFCS/S(P).SVST/S(P).CHGA/S(P).CHGV/S(P).CHGT/S(P).DDRD/
S(P).DDWR cannot be executed simultaneously toward the CPU executing
S(P).CHGT instruction.
When the Motion dedicated PLC instruction is started continuously, It is necessary
to take an inter-lock by the to self CPU high speed interrupt accept flag from
CPUn.
[Operation]
PLC program END END END END t
S(P).CHGT execution
ON
ON
Instruction start accept OFF
complete device (D1+0)
[Setting range]
(1) Setting of the axis to execute the torque limit value change.
The axis to execute the torque limit change set as (S1) sets J + axis No. in a
character sequence " ".
(S1) usable range
Q173CPU(N) 1 to 32
Q172CPU(N) 1 to 8
[Errors]
The abnormal completion in the case shown below, and the error code is stored in the
device specified with the complete status storing device (D2).
Complete status (Note)
Error factor Corrective action
(Error code)(H)
The specified device cannot be used in the Motion
4C00
CPU. Or, it is outside the device range.
Confirm a program,
The instruction for the Multiple CPU system which did
not be correspond with operating system software of and correct it to a
4C01
the Motion CPU was executed. correct PLC
4C07 Axis No. set by CHGT instruction is injustice. program.
4C09 CPU No. of the instruction cause is injustice.
(Note) : 0000H(Normal)
The error flag (SM0) is turned on an operation error in the case shown below, and an
error code is stored in SD0.
(Note)
Error code Error factor Corrective action
(Note) : 0000H(Normal)
[Program example]
Program which changes the torque limit value of the axis No.1 of the Motion CPU
(CPU No.4) from PLC CPU (CPU No.1) to 10[%].
To self CPU
high speed
interrupt accept
flag from CPU
U3E3
\G48.0
M100
SP.CHGT H3E3 "J1" K10 M0 D0
RST M100
M0 M1
Normal complete program
M1
Abnormal complete program
4 - 34
4 MOTION DEDICATED PLC INSTRUCTION
4.7 Write from The PLC CPU to The Motion CPU: S(P).DDWR (PLC instruction:
S(P) .DDWR )
• Write instruction from the PLC CPU to the Motion CPU (S(P).DDWR)
Usable devices
Setting data
(S2)
(D1)
(D2)
: Usable : Usable partly
(Note) : Setting data (n1) to (D2) : Index qualification possible
[Data to be set]
Set data Description Data type
(First I/O No. of the target CPU)/16
(Note-1) 16-bit
(n1) Value to specify actually is the following.
binary
CPU No.1 : 3E0H, CPU No.2 : 3E1H, CPU No.3 : 3E2H, CPU No.4 : 3E3H
(S1) First device of the self CPU in which control data is stored.
16-bit
(S2) First device of the self CPU in which writing data is stored.
binary
(D1) First device of the target Motion CPU which stores the writing data.
(D2) Bit device which make turn on for one scan at completion of instruction. Bit
(Note-1) : Motion CPU cannot used CPU No.1 at the Multiple CPU configuration.
[Control data]
Setting
Device Item Setting data Set by
range
The condition result at the completion of the
instruction is stored.
S1+0 Complete status — System
0 : No error (Normal completion)
Except 0 : Error code
Number of writing
S1+1 Set the number of writing data 1 to 16 User
data
4 - 35
4 MOTION DEDICATED PLC INSTRUCTION
[Controls]
(1) This instruction is dedicated instruction toward the Motion CPU in the Multiple
CPU system. Errors occurs when it was executed toward the CPU except the
Motion CPU.
A part for the number of writing data of the control data specified with (S1) of data
since the device specified with (S2) of the self CPU are stored to since the word
device specified with (D1) of the target CPU (n1) in the Multiple CPU system.
(2) Figure specification of the bit device is possible for (S2) and (D1). However, figure
specification is 4 figures and a start bit device number is only the multiple of 16. It
becomes INSTRCT CODE ERROR [4004] when other values are specified.
(3) If the target CPU is not instruction acceptable condition, even if the S(P).DDWR
instruction is executed, it may not be processed. In this case, it is necessary to
execute the S(P).DDWR instruction again.
(S(P).SFCS/S(P).SVST/S(P).CHGA/S(P).CHGV/S(P).CHGT/S(P).DDRD/
S(P).DDWR cannot be executed simultaneously toward the CPU executing
S(P).DDWR instruction.). It can be confirmed by data in the shared CPU memory
of the target CPU (Motion CPU) whether the instruction is acceptable or not.
When the Motion dedicated PLC instruction is started continuously, it is must be
design to execute next instruction after executing instruction complete device on.
(4) The target CPU device range check is not executed with self CPU at the
S(P).DDWR instruction execution, but it checks by the target CPU side, and it
becomes abnormal completion at the device range over.
(6) SM390 turns on when the target CPU specified with (n1) complete to accept.
SM390 turns off when the target CPU specified with (n1) cannot be write correctly
by the reset status or error factor (5000 to 5999).
4 - 36
4 MOTION DEDICATED PLC INSTRUCTION
ON : Abnormal completion
State display device at the first
S(P).DDWR instruction OFF
completion OFF : Normal completion
ON
S(P).DDWR instruction
(Second) OFF
ON
Second S(P).DDWR instruction
complete device OFF
ON : Abnormal completion
State display device at the second OFF
S(P).DDWR instruction
completion OFF : Normal completion
(Note) : 0000H(Normal)
4 - 37
4 MOTION DEDICATED PLC INSTRUCTION
The error flag (SM0) is turned on an operation error in the case shown below, and an
error code is stored in SD0.
Confirm a program,
4002 Specified instruction is wrong.
and correct it to a
The instruction is composed of devices except usable correct PLC
4004 program.
devices.
[Program example]
<Example 1> <Example 2>
Program which stores 10 points worth of the data from D0 of the self Program which stores 10 points worth of the data from D0 of the
CPU (CPU No.1) since D100 of CPU No.2., when X0 is turned on. self CPU (CPU No.1) since D100 of CPU No.2. during turn on X0.
SM400 SM400
MOV K10 D51 MOV K10 D51
X0 X0 M10
SP.DDWR H3E1 D50 D0 D100 M10 SP.DDWR H3E1 D50 D0 D100 M10
M10 M11
Normal complete processing SET M0
M11 M0 M10
Abnormal complete processing RST M0
M10 M11
Normal complete processing
M11
Abnormal complete processing
4 - 38
4 MOTION DEDICATED PLC INSTRUCTION
4.8 Read from The Devices of The Motion CPU: S(P).DDRD (PLC instruction: S(P).DDRD )
(S2)
(D1)
(D2)
: Usable : Usable partly
(Note) : Setting data (n1) to (D2) : Index qualification possible
[Setting data]
Set data Description Data type
(First I/O No. of the target CPU)/16
(Note-1)
(n1) Value to specify actually is the following.
CPU No.1 : 3E0H, CPU No.2 : 3E1H, CPU No.3 : 3E2H, CPU No.4 : 3E3H 16-bit
(S1) First device of the self CPU in which control data is stored. binary
(S2) First device of the target CPU in which reading data is stored.
(D1) First device of the self CPU which stores the reading data.
(D2) Bit device which make turn on for one scan at completion of instruction. Bit
(Note-1) : Motion CPU cannot used CPU No.1 in the Multiple CPU configuration.
[Control data]
Setting
Device Item Setting data Set by
range
The condition result at the completion of the
instruction is stored.
S1+0 Complete status — System
0 : Not error (Normal completion)
Except 0 : Error code
Number of reading
S1+1 Set the number of reading data. 1 to 16 User
data
4 - 39
4 MOTION DEDICATED PLC INSTRUCTION
[Control]
(1) This instruction is dedicated instruction toward the Motion CPU in the Multiple
CPU system. Errors occurs when it was executed toward the CPU except the
Motion CPU.
A part for the number of reading data of the control data specified with (S1) of
data since the device specified with (S2) in the target CPU (n1) is stored to since
the word device specified with (D1) of the self CPU in the Multiple CPU system.
(2) Figure specification of the bit device is possible for (S2) and (D1). However, figure
specification is 4 figures and a start bit device number is only the multiple of 16. It
becomes INSTRCT CODE ERROR [4004] when other values are specified.
(3) If the target CPU is not instruction acceptable condition, even if the S(P).DDWR
instruction is executed, it may not be processed. In this case, it is necessary to
execute the S(P).DDWR instruction again.
(S(P).SFCS/S(P).SVST/S(P).CHGA/S(P).CHGV/S(P).CHGT/S(P).DDRD/
S(P).DDWR cannot be executed simultaneously toward the CPU executing
S(P).DDWR instruction.). It can be confirmed by data in the shared CPU memory
of the target CPU (Motion CPU) whether the instruction is acceptable or not.
When the Motion dedicated PLC instruction is started continuously, it is must be
design to execute next instruction after executing instruction complete device on.
(4) The target CPU device range check is not executed with self CPU at the
S(P).DDRD instruction execution, but it checks by the target CPU side, and it
becomes abnormal completion at the device range over.
(6) SM390 turns on when the target CPU specified with (n1) complete to accept.
SM390 turns off when the target CPU specified with (n1) cannot be write correctly
by the reset status or error factor (5000 to 5999).
4 - 40
4 MOTION DEDICATED PLC INSTRUCTION
ON : Abnormal completion
State display device at the first
S(P).DDRD instruction OFF
completion OFF : Normal completion
ON
S(P).DDRD instruction
(Second) OFF
ON
Second S(P).DDRD instruction
complete device OFF
ON : Abnormal completion
State display device at the second OFF
S(P).DDRD instruction
completion OFF : Normal completion
[Errors]
The abnormal completion in the case shown below, and the error code is stored in the
control data (S1+ 0 : Complete status).
(Note)
Complete status
Error factor Corrective action
(Error code)(H)
The specified device cannot be used in the Motion
4C00
CPU. Or, it is outside the device range.
Confirm a
There are 33 or more instruction requests to the Motion program, and
CPU from the PLC CPU in S(P).DDRD and correct it to a
4C08
S(P).DDWR sum table simultaneously, and the Motion correct PLC
CPU cannot process them. program.
4C09 CPU No. of the instruction cause is injustice.
(Note) : 0000H(Normal)
4 - 41
4 MOTION DEDICATED PLC INSTRUCTION
The error flag (SM0) is turned on an operation error in the case shown below, and an
error code is stored in SD0.
Confirm a program,
4002 Specified instruction is wrong.
and correct it to a
The instruction is composed of devices except usable correct PLC
4004 program.
devices.
[Program example]
<Example 1> <Example 2>
Program which stores 10 points worth of the data from D0 of the CPU Program stores 10 points worth of the data from D0 of the CPU No.2
since D100 of self CPU (CPU No.1), when X0 is turned on. since D100 of self CPU (CPU No.1) during turn on X0.
SM400 SM400
MOV K10 D51 MOV K10 D51
X0 X0 M10
SP.DDRD H3E1 D50 D0 D100 M0 SP.DDRD H3E1 D50 D0 D100 M10
M0 M1
Normal complete processing SET M0
M1 M0 M10
Abnormal complete processing RST M0
M10 M11
Normal complete processing
M11
Abnormal complete processing
4 - 42
5 POSITIONING DEDICATED SIGNALS
The internal signals of the Motion CPU and the external signals to the Motion CPU
are used as positioning signals.
SSCNET
PLC bus
Servo amplifier
Sensor, solenoid, etc. PLC intelligent function Motion control dedicated I/F
(DI/O) module (A/D, D/A, etc.) (DOG signal, manual M M Servomotor
pulse generator)
Note) : Device memory data : 1) = 2)
5-1
5 POSITIONING DEDICATED SIGNALS
0.88[ms] / 1 to 4 axes
Operation cycle 1.77[ms] / 5 to 12 axes 0.88[ms] / 1 to 4 axes
(Default) 3.55[ms] / 13 to 24 axes 1.77[ms] / 5 to 8 axes
7.11[ms] / 25 to 32 axes
M2000 Common device (Status) M4000 Axis I/O signal (Axis status 2)
to (320 points) to (10 points 32 axes )
M2320 Special relay allocated device (Status) M4320 Unusable
to (80 points) to (80 points)
M2400 M4400 Axis I/O siganal
Axis status
(Axis command signal 2)
to (20 points 32 axes) to
(10 points 32 axes)
M3040 M4720
Unusable User device
to to
(32 points) (3472 points)
M8191
M3072 Common device (Command signal)
to (64 points)
POINT
• Total number of user device points
5632points
5-2
5 POSITIONING DEDICATED SIGNALS
5-3
5 POSITIONING DEDICATED SIGNALS
5-4
5 POSITIONING DEDICATED SIGNALS
5-5
5 POSITIONING DEDICATED SIGNALS
(Note-1): M4408 (single block mode signal) and M4409 (single block start signal) are used in the single block operation.
M4418 (axis interlock valid/invalid) is used in the axis interlock (forward)/(reverse).
(Note-2): The range of axis No.1 to 8 is valid in the Q172CPU(N).
(Note-3): Device area of 9 axes or more is unusable in the Q172CPU(N).
5-6
5 POSITIONING DEDICATED SIGNALS
Command Status
M2054 Operation cycle over flag Operation cycle
M2000 PLC ready flag Main cycle signal M3072 signal
(Note-1) M2055
M2001 Axis 1 M2056
M2002 Axis 2 M2057 Unusable
— — — —
M2003 Axis 3 M2058 (6 points)
M2004 Axis 4 M2059
M2005 Axis 5 M2060
M2006 Axis 6 M2061 Axis 1
M2007 Axis 7 M2062 Axis 2
M2008 Axis 8 M2063 Axis 3
M2009 Axis 9 M2064 Axis 4
M2010 Axis 10 M2065 Axis 5
M2011 Axis 11 M2066 Axis 6
M2012 Axis 12 M2067 Axis 7
M2013 Axis 13 M2068 Axis 8
M2014 Axis 14 M2069 Axis 9
M2015 Axis 15 Status M2070 Axis 10
M2016 Axis 16 signal M2071 Axis 11
Start accept flag Operation cycle
M2017 Axis 17 (Note-1), M2072 Axis 12
M2018 Axis 18 (Note-2) M2073 Axis 13
M2019 Axis 19 M2074 Axis 14
M2020 Axis 20 M2075 Axis 15
Status
M2021 Axis 21 M2076 Axis 16
Speed changing flag Operation cycle signal
M2022 Axis 22 M2077 Axis 17
(Note-2)
M2023 Axis 23 M2078 Axis 18
M2024 Axis 24 M2079 Axis 19
M2025 Axis 25 M2080 Axis 20
M2026 Axis 26 M2081 Axis 21
M2027 Axis 27 M2082 Axis 22
M2028 Axis 28 M2083 Axis 23
M2029 Axis 29 M2084 Axis 24
M2030 Axis 30 M2085 Axis 25
M2031 Axis 31 M2086 Axis 26
M2032 Axis 32 M2087 Axis 27
M2033 Unusable — — — — M2088 Axis 28
Personal computer link Status M2089 Axis 29
M2034 Operation cycle
communication error flag signal M2090 Axis 30
M2035 M2091 Axis 31
M2036 M2092 Axis 32
M2037 Unusable M2093
— — — —
M2038 (6 points) M2094
M2039 M2095
M2040 M2096
Status M2097
M2041 System setting error flag Operation cycle
signal M2098
Command M2099
M2042 All axes servo ON command Operation cycle Signal M3074 M2100
(Note-1) M2101
M2043 M2102
M2044 Unusable M2103
— — — —
M2045 (4 points) M2104
M2046 M2105 Unusable
— — — —
Status M2106 (26 points)
M2047 Motion slot fault detection flag Operation cycle
signal M2107
Command M2108
JOG operation simultaneous
M2048 Main cycle signal M3076 M2109
start command
(Note-1) M2110
M2049 All axes servo ON accept flag Status M2111
Operation cycle
M2050 Start buffer full signal M2112
Manual pulse generator 1 M2113
M2051 M3077
enable flag M2114
Command
Manual pulse generator 2 M2115
M2052 Main cycle signal M3078
enable flag M2116
(Note-1)
Manual pulse generator 3 M2117
M2053 M3079
enable flag M2118
5-7
5 POSITIONING DEDICATED SIGNALS
M2119 M2180
M2120 M2181
M2121 M2182
M2122 M2183
Unusable
M2123 — — — — M2184
(9 points)
M2124 M2185
M2125 M2186
M2126 M2187
M2127 M2188
M2128 Axis 1 M2189
M2129 Axis 2 M2190
M2130 Axis 3 M2191
M2131 Axis 4 M2192
M2132 Axis 5 M2193
M2133 Axis 6 M2194
M2134 Axis 7 M2195
M2135 Axis 8 M2196
M2136 Axis 9 M2197
M2137 Axis 10 M2198
M2138 Axis 11 M2199
M2139 Axis 12 M2200
M2140 Axis 13 M2201
M2141 Axis 14 M2202
M2142 Axis 15 M2203
Status
M2143 Axis 16 Automatic M2204
Operation cycle signal
M2144 Axis 17 deceleration flag M2205
(Note-2)
M2145 Axis 18 M2206
M2146 Axis 19 M2207
M2147 Axis 20 M2208
— — — —
M2148 Axis 21 M2209 Unusable
M2149 Axis 22 M2210 (60 points)
M2150 Axis 23 M2211
M2151 Axis 24 M2212
M2152 Axis 25 M2213
M2153 Axis 26 M2214
M2154 Axis 27 M2215
M2155 Axis 28 M2216
M2156 Axis 29 M2217
M2157 Axis 30 M2218
M2158 Axis 31 M2219
M2159 Axis 32 M2220
M2160 M2221
M2161 M2222
M2162 M2223
M2163 M2224
M2164 M2225
M2165 M2226
M2166 M2227
M2167 M2228
M2168 M2229
M2169 Unusable M2230
— — — —
M2170 (20 points) M2231
M2171 M2232
M2172 M2233
M2173 M2234
M2174 M2235
M2175 M2236
M2176 M2237
M2177 M2238
M2178 M2239
M2179
5-8
5 POSITIONING DEDICATED SIGNALS
5-9
5 POSITIONING DEDICATED SIGNALS
CAUTION
The data executed later becomes effective when the same device is executed in the Motion
program and PLC program.
5 - 10
5 POSITIONING DEDICATED SIGNALS
Operation
M2332 External forced stop input flag M9076
cycle
Manual pulse generator axis setting
M2333 M9077
error flag
Error Status signal
M2334 TEST mode request error flag occurrence M9078
M2349
to Unusable — — — —
M2399
5 - 11
5 POSITIONING DEDICATED SIGNALS
Command
M3072 PLC ready flag Main cycle M2000
signal
M3073 Unusable — — — —
Operation
M3074 All axes servo ON command cycle M2042
M3080
to Unusable — — — —
M3135
(Note-1) : The device of a remarks column turns ON by OFF to ON of the above device, and the device of a remarks column turns
OFF by ON to OFF of the above device. The state of a device is not in agreement when the device of a remarks column
is turned on directly. In addition, when the request from a data register and the request from the above device are
performed simultaneously, the request from the above device becomes effective.
(Note-2) : It can also be ordered the device of a remark column.
M3140
to Unusable — — — —
M3199
(Note-1) : The device of a remarks column turns ON by OFF to ON of the above device, and the device of a remarks column turns
OFF by ON to OFF of the above device. The state of a device is not in agreement when the device of a remarks column
is turned on directly.
(Note-2) : It can also be ordered the device of a remark column.
5 - 12
5 POSITIONING DEDICATED SIGNALS
(b) This signal turns off at turning the complete signal OFF command
(M3204+20n) off to on or positioning completion.
When the complete signal OFF command (M3204+20n) turns off to on.
V
Dwell time
Positioning completion
t
5 - 13
5 POSITIONING DEDICATED SIGNALS
REMARK
(Note-1): In the above descriptions, "n" in"M3204+20n", etc. indicates a value
corresponding to axis No. such as the following tables.
Axis No. n Axis No. n Axis No. n Axis No. n
1 0 9 8 17 16 25 24
2 1 10 9 18 17 26 25
3 2 11 10 19 18 27 26
4 3 12 11 20 19 28 27
5 4 13 12 21 20 29 28
6 5 14 13 22 21 30 29
7 6 15 14 23 22 31 30
8 7 16 15 24 23 32 31
5 - 14
5 POSITIONING DEDICATED SIGNALS
(b) This signal turns off at turning the complete signal OFF command
(M3204+20n) off to on or positioning start completion.
Dwell
5 - 15
5 POSITIONING DEDICATED SIGNALS
In-position range
Motion program (Axis
designation program) start
POINT
• If in-position range is longer than the deceleration distance, refer to the following
case.
In-position
range(Note)
5 - 16
5 POSITIONING DEDICATED SIGNALS
Command
in-position range
Motion program (Axis
designation program) start
5 - 17
5 POSITIONING DEDICATED SIGNALS
POINTS
Example 1, 2 are shown below about in-position signal and command in-position
signal of the interpolation axis.
[Example1]
PLC program Start accept flag
To self CPU Start accept flag of the axis No.2 Start accept flag
high sped of the axis No.1 (CPU No.2) of the axis No.3
interrupt accept (CPU No.2) U3D1\G516.1
Start (CPU No.2)
flag from CPU U3E1\G516.0 U3E1\G516.2
command U3E1\G48.0
SP.SVST H3E1 "J1J2J3" K100 D0
Motion program
O100;
G91;
G00 X100. Y100.;
M02;
%
Operation timing
Command in-position range
Axis X,Y speed
(Z-axis does not travel)
In-position range
G0 travel block
Motion program (Axis
designation program) start
(1) The in-position signal turns ON by reaching the in-position range of servo
parameter after deceleration start.
Since the Z-axis is stopped in this case, it always turns on immediately after
deceleration start.
Even if the only 2 axes (X,Y) is commanded in the G00 command of Motion
program, when the 3 axes is started by SVST instruction in the PLC program,
the in-position signal turns ON after deceleration start in the Z-axis as X,Y-axis.
(2) The command in-position signal turns ON when the difference between the
command position of Motion program and the absolute position of machine
value is less than the command in-position range set in the fixed parameter.
Since the command of Z-axis is not described in this program, the command in-
position check is not executed during travel of Z-axis and it remains OFF from
start to stop of travel.
5 - 18
5 POSITIONING DEDICATED SIGNALS
POINTS
[Example2]
PLC program Start accept flag
To self CPU of the axis No.2
Start accept flag Start accept flag
high sped (CPU No.2)
of the axis No.1 of the axis No.3
interrupt accept U3D1\G516.1
Start (CPU No.2) (CPU No.2)
flag from CPU
command U3E1\G48.0 U3E1\G516.0 U3E1\G516.2
SP.SVST H3E1 "J1J2J3" K100 D0
Motion program
O100;
G91;
G00 X100. Y100. Z0;
Add the travel value
M02; "0" of Z-axis in the
% Motion program.
Operation timing
Axis X,Y speed Command in-position range
(Z-axis does not travel) In-position range
G0 travel block
Motion program (Axis
designation program) start
(2) The command in-position check of Z-axis is also executed during axis travel by
addition of the travel value "0" of Z-axis in the Motion program. Therefore, the
command in-position signal of Z-axis turns OFF moment at the travel start,
however it is immediately judged as within the range, and turns ON by
processing of command-in-position check.
5 - 19
5 POSITIONING DEDICATED SIGNALS
(b) This signal turns off when the error reset command (M3207+20n) turns on.
Error detection
ON
REMARK
(Note-1): Refer to APPENDIX 2.2 for the error codes with detection of minor errors.
(Note-2): Refer to APPENDIX 2.3 for the error codes with detection of major errors.
5 - 20
5 POSITIONING DEDICATED SIGNALS
(b) This signal turns off when the servo error reset command (M3208+20n)
turns on or the servo power supply turns on again.
Servo error detection
ON
REMARK
(Note-1): Refer to APPENDIX 2.4 for the error codes on errors detected at the servo
amplifier side.
CAUTION
When using the absolute position system function, on starting up, and when the Motion
controller or absolute value motor has been replaced, always perform a home position return.
In the case of the absolute position system, use the PLC program to check the home position
return request before performing the positioning operation.
Failure to observe this could lead to an accident such as a collision.
5 - 21
5 POSITIONING DEDICATED SIGNALS
(b) This signal turns off at the positioning start, JOG operation start and manual
pulse generator operation start.
(c) If the home position return of proximity dog, count, dog cradle, stopper or
limit switch cpmbined type is executed using the CHGA instruction during
this signal on, the "continuous home position return start error (minor error:
115)" occurs and it cannot be start the home position return.
(b) The state for the upper stroke limit switch input (FLS) when the FLS signal
is ON/OFF is shown below.
FLS signal : ON FLS signal : OFF
Q172LX Q172LX
FLS FLS
FLS FLS
COM COM
(b) The state of the lower stroke limit switch input (RLS) when the RLS signal is
ON/OFF is shown below.
RLS signal : ON RLS signal : OFF
Q172LX Q172LX
RLS RLS
RLS RLS
COM COM
5 - 22
5 POSITIONING DEDICATED SIGNALS
(b) The state of the stop signal input (STOP) of the Q172LX when the STOP
signal input is ON/OFF is shown below.
STOP signal : ON STOP signal : OFF
Q172LX Q172LX
STOP STOP
STOP STOP
COM COM
(b) "Normally open contact input" and "Normally closed contact input" of the
system setting can be selected.
COM COM
Communication is normal
AMP AMP
M M
POINT
When the part of multiple servo amplifiers connected to the SSCNET becomes a
servo error, only an applicable axis becomes the servo OFF state.
5 - 23
5 POSITIONING DEDICATED SIGNALS
(b) If the G-code and M-code are described in the same block, the M-code
outputting signal turns on at the start of G-code processing.
(d) For M00, M01, M02, M30, M98, M99 and M100, the M-code outputting
signal does not turn on.(Internal processing only)
Command in-position
range setting value
M-code(D13+20n) M10
ON
M-code outputting signal OFF OFF
(M2419+20n) ON
FIN signal(M3219+20n)
Command in-position(M2403+20n)
5 - 24
5 POSITIONING DEDICATED SIGNALS
Stop
t
Deceleration stop processing
(b) The program is ended by the stop command at the automatic start by the
SVST instruction. (The Motion program is stopped if any of the stop
commands for the axis No. specified with the SVST instruction turns on.)
(c) The re-start command (M4404+10n) is valid only after the temporary stop
command (M4400+10n).
(d) The details of stop processing when the stop command turns on are shown
below.
Positioning control The axis decelerates to a stop in the The stop command is ignored and
during the Motion deceleration time set in the parameter deceleration stop processing is continued.
(Note-1) (Note-1)
program start block or Motion program.
JOG operation
Manual pulse An immediate stop is executed without
generator operation deceleration processing.
(1) The axis decelerates to a stop in the deceleration time set in the parameter
block.
Home position return (2) A "stop error during home position return" occurs and the error code [202] is
stored in the minor error storage register for each axis.
(Note-1) : The deceleration time under G00, G01, G02, G03, G12, G13 or G32 including M-code is
equivalent to the acceleration time set in the parameter block.
POINT
If it is made to stop by turning on the stop command (M3200+20n) during a home
position return, execute the home position return again.
If the stop command is turned on after the proximity dog ON in the proximity dog
type, execute the home position return after move to before the proximity dog ON
by the JOG operation or positioning.
5 - 25
5 POSITIONING DEDICATED SIGNALS
Stop
t
Rapid stop processing
(b) The program is ended by the rapid stop command at the automatic start by
the SVST instruction.
(The Motion program is stopped if any of the rapid stop commands for the
axis No. specified with the SVST instruction turns on.)
(c) The re-start command (M4404+10n) is valid only after the temporary stop
command (M4400+10n).
(d) The details of stop processing when the rapid stop command turns on are
shown below.
Processing at the turning rapid stop command on
Control details
during execution During control During deceleration stop processing
Position control The axis decelerates to a deceleration Deceleration processing is canceled and
during the Motion time set in the parameter block or rapid stop processing executed instead.
(Note-1)
program start Motion program.
JOG operation
Manual pulse An immediate stop is executed without
generator operation deceleration processing.
(1) The axis decelerates to a stop in the rapid stop deceleration time set in the
parameter block.
Home position return
(2) A "stop error during home position return" occurs and the error code [203] is
stored in the minor error storage register for each axis.
(Note-1) : The rapid stop deceleration time under G00, G01, G02, G03, G12, G13 or G32 including M-
code is equivalent to the acceleration time set in the parameter block.
POINT
If it is made to stop by turning on the rapid stop command (M3201+20n) during a
home position return, execute the home position return again.
If the rapid stop command turned on after the proximity dog ON in the proximity dog
type, execute the home position return after move to before the proximity dog ON
by the JOG operation or positioning.
5 - 26
5 POSITIONING DEDICATED SIGNALS
(b) JOG operation to the address decrease direction is executed while reverse
rotation JOG start command (M3203+20n) is turinig on.
When M3203+20n is turned off, a deceleration stop is executed in the
deceleration time set in the parameter block.
POINT
Take an interlock so that the forward rotation JOG start command (M3202+20n)
and reverse rotation JOG start command (M3203+20n) may not turn on
simultaneously.
t
ON
Positioning start complete OFF
signal(M2400+20n)
ON
Positioning complete
OFF
signal (M2401+20n)
ON
Complete signal OFF OFF
command (M3204+20n)
POINT
Do not turn the complete signal OFF command on with a PLS instruction.
If it is turned on with a PLS instruction, it cannot be turned off the positioning start
complete signal (M2400+20n) and the positioning complete signal (M2401+20n).
5 - 27
5 POSITIONING DEDICATED SIGNALS
ON
(b) If an error reset is executed during the temporary stop (M4003+10n) by the
temporary stop command (M4400+10n) at the automatic start or if an error
reset is executed during a block stop by M00/M01, the Motion program
operation state is reset.
The SVST instruction must be executed in the next strat. (Re-start is not
possible.)
(c) When the error reset command is turned on at the automatic start
(M4002+10n: ON), the above reset processing is executed after the stop
processing by temporaty stop command (M4400+10n).
5 - 28
5 POSITIONING DEDICATED SIGNALS
ON
(b) If an error reset is executed during the temporary stop (M4003+10n) by the
temporary stop command (M4400+10n) at the automatic start or if an error
reset is executed during a block stop by M00/M01, the Motion program
operation state is reset.
The SVST instruction must be executed in the next strat. (Re-start is not
possible.)
(c) When the error reset command is turned on at the automatic start
(M4002+10n: ON), the above reset processing is executed after the stop
processing by temporaty stop command (M4400+10n).
REMARK
Refer to APPENDIX 2 for details on the minor error code, major error code and
servo error code storage registers.
5 - 29
5 POSITIONING DEDICATED SIGNALS
POINTS
(1) When it stops an axis with the external stop input after it starts by turning on
the external stop input disable at start command (M3209+20n), switch the
external stop input from OFF ON (if external stop input is turning on at the
starting, switch it from ON OFF ON).
(2) External STOP input causes a block stop at the automatic start (M4002+10n:
ON).
CAUTION
Turn the power supply of the servo amplifier side off before touching a servomotor, such as
machine adjustment.
5 - 30
5 POSITIONING DEDICATED SIGNALS
Command in-position
range setting value
Command in-position
(M2403+20n)
5 - 31
5 POSITIONING DEDICATED SIGNALS
REMARK
(Note-1): "n" indicates a value corresponding to axis No. such as the following
tables.
Axis No. n Axis No. n Axis No. n Axis No. n
1 0 9 8 17 16 25 24
2 1 10 9 18 17 26 25
3 2 11 10 19 18 27 26
4 3 12 11 20 19 28 27
5 4 13 12 21 20 29 28
6 5 14 13 22 21 30 29
7 6 15 14 23 22 31 30
8 7 16 15 24 23 32 31
5 - 32
5 POSITIONING DEDICATED SIGNALS
(b) A single block is executed when the single block processing signal is ON.
When the single block processing is OFF, make an SVST start or turn
single block start from OFF to ON to perform continuous operation.
5 - 33
5 POSITIONING DEDICATED SIGNALS
5 - 34
5 POSITIONING DEDICATED SIGNALS
(c) Note the following instructions among the positioning start instructions.
1) A program is stopped by the temporary stop command at the proximity
dog, count, data set, dog cradle, stopper or limit switch combined type
home position return by G28. After that, re-start (M4404+10n) is invalid.
Start the Motion program with the SVST instruction to execute G28
again.
POINT
The temporary stop command is ignored at the home position return by JOG
operation, manual pulse generator operation or CHGA instruction.
5 - 35
5 POSITIONING DEDICATED SIGNALS
5 - 36
5 POSITIONING DEDICATED SIGNALS
5 - 37
5 POSITIONING DEDICATED SIGNALS
G90G00X100. X200.
100 200
Single block command (M4403+10n)
5 - 38
5 POSITIONING DEDICATED SIGNALS
REMARK
(Note-1) : Positioning is controlled at the override ratio of 100[%] at the G25 (high-
speed oscillation), G28 (proximity dog, count, data set, dog cradle,
stopper or limit switch combined type home position return) in the Motion
program or the home position returun by JOG operation, manual pulse
generator or CHGA instruction, etc. (The override ratio is made invalid.)
5 - 39
5 POSITIONING DEDICATED SIGNALS
(c) The interlock is invalid at the "home position return" and "hige speed
oscillate".
(e) If the axis interlock of travel direction turns on with at least one axis,during
interpolation control, a deceleration stop is executed in all interpolation
axes.
(f) When the travel of axis stops by the axis interlock, a minor error "axis
interlock" (error code: 292) will occur.
In this case, since the program is not ended, the start accept flag (M2001 to
M2032) of applicable axis does not turn off.
Therefore, when the Motion program is started by the specification of
applicable axis, a minor error "the start accept flag (M2001 to M2032) for
applicable axis is ON." (error code: 101) will occur.
(g) When the axis interlock signal turns on at a Motion program start, after the
servomotor travels minutely, a minor error "axis interlock" (error code: 292)
will occur and a deceleration stop is made. (The servomotor does not travel
during JOG operation or manual pulse operation, and a minor error" axis
interlock" (error code: 292) will occur.)
5 - 40
5 POSITIONING DEDICATED SIGNALS
t
Motion program (Axis ON
designation program) start OFF
ON
Start accept flag (M2001+n) OFF Temporary stop
Axis interlock (forward) ON
(M4406+10n) OFF
Axis interlock (reverse) ON Temporary stop
(M4407+10n) OFF
5 - 41
5 POSITIONING DEDICATED SIGNALS
POINTS
[The reasons for the servomotor travels minutely when the axis interlock signal turns
on at a Motion program start.]
Since the travel direction is judged at the positioning control in the Motion CPU,
only the first interpolation processing is executed. Therefore, the servomotor travels
minutely. This travel value is different in the acceleration-fixed
acceleration/decerelation (G101) and time-fixed acceleration/decerelation (G100).
(1) Acceleration-fixed acceleration/decerelation (G101)
• The travel value of operation cycle (a part for 1 time of the beginning) is the
slash portion of the following figure.
V
Interpolation processing
Travel value
t
Operation cycle
[Command speed 50m/min, Operation cycle 3.5ms]
Travel value for error detection = 50 0.0035/2/60
= 0.001mm
Travel value
t t
Operation cycle
5 - 42
5 POSITIONING DEDICATED SIGNALS
(b) The single block processing (M4009) turns on by turning on the single block
mode.
(b) The single brock start is made valid by turning it from OFF to ON. However,
the single block start during axis travel is not accepeted.
(c) When the single block processing signal (M4409) and the single block mode
signal (M4408) are ON, making a single block start continues single block
operation.
(d) When the single block processing signal (M4409) is ON and the single
block mode signal (M4408) is OFF, making a single block start stops single
block operation and starts continuous operation. At this time, the single
block processing signal (M4409) turns off.
t
Motion program (Axis ON
designation program) start OFF
ON
Start accept flag (M2001+n)
OFF Temporary stop Temporary stop
Axis interlock (forward) ON
(M4406+10n) OFF
Axis interlock valid/invalid ON ON
(M4418) OFF
5 - 43
5 POSITIONING DEDICATED SIGNALS
POINTS
(1) Internal relays for positioning control are not latched even within the latch range.
In this manual, in order to indicate that internal relays for positioning control are
not latched, the expression used in this text is "M2000 to M2319".
(2) The range devices allocated as internal relays for positioning control cannot be
used by the user even if their applications have not been set.
(b) The setting data such as the fixed parameters, servo parameters and limit
switch output data can be changed using a peripheral device when M2000
is OFF only.
The above data using a peripheral device cannot be written when the
M2000 is ON.
(c) The following processings are performed when the M2000 turns OFF to
ON.
1) Processing details
• Transfer the servo parameters to the servo amplifier.
• Clear the M-code storage area of all axes.
• Turn the PCPU READY complete flag (M9074) on.
• Execute the Motion program (Control program) of automatic start from
the first.
2) If there is a starting axis, an error occurs, and the processing in above (c)
1) is not executed.
5 - 44
5 POSITIONING DEDICATED SIGNALS
3) The processing in above (c) 1) is not executed during the test mode.
It is executed when the test mode is cancelled and M2000 is ON.
Deceleration stop
Positioning start
ON
(d) The following processings are performed when the M2000 turns ON to
OFF.
1) Processing details
• Turn the PCPU READY complete flag (M9074) off.
• Deceleration stop of the starting axis.
• Stop to execute the Motion program.
• Turn all points of the real output PY off.
5 - 45
5 POSITIONING DEDICATED SIGNALS
(b) The ON/OFF processing of the start accept flag is shown below.
1) The start accept flag corresponding to an axis specified with the Motion
dedicated PLC instruction (S(P).SVST) turns on and it turns off at the
positioning completion. This flag also turns off when it is made to
stopping on the way.
(When it is made to stop on the way by the speed change to speed "0",
this flag remain on.)
Dwell time
t t
Motion program (Axis Positioning Motion program (Axis Positioning Positioning
start stop
designation program) completion designation program) completion
start start
ON ON
Start accept flag Start accept flag
(M2001 + n) OFF (M2001 + n) OFF
2) This flag turns on at the positioning control by turning on the JOG start
command (M3202+20n or M3203+20n), and turns off at the positioning
stop by turning off the JOG start command.
3) This flag turns on during the manual pulse generator enable (M2051 to
M2053: ON), and turns off at the manual pulse generator disable
(M2051 to M2053: OFF).
CAUTION
Do not turn the start accept flags ON/OFF in the user side.
• If the start accept flag is turned off using the Motion program or peripheral devices while this
flag is on, no error will occur but the positioning operation will not be reliable. Depending on the
type of machine, it might operate in an unanticipated operation.
• If the start accept flag is turned on using the Motion program or peripheral devices while this
flag is off, no error will occur but the "start accept on error" will occur at the next starting and
cannot be started.
5 - 46
5 POSITIONING DEDICATED SIGNALS
(c) When M2000 is OFF, the start accept flag turns on by the Motion dedicated
PLC instruction (S(P).SVST), and the start accept flag turns off by turning
the M2000 ON.
ON
PLC ready flag (M2000)
OFF
(b) When M2041 is on, positioning cannot be started. Remove an error factor,
and turn the power supply on again or reset the Multiple CPU system.
REMARK
Even if the module which is not set as the system setting with the peripheral device
is installed in the slot, it is not set as the object of an adjustment check. And, the
module which is not set as the system setting cannot be used in the Motion CPU.
5 - 47
5 POSITIONING DEDICATED SIGNALS
ON
(Note): Refer to "5.1.1 Axis statuses "Servo ready signal"" for details.
POINT
When M2042 turns on, it is not turned off even if the CPU is set in the STOP state.
(6) Motion slot fault detection flag (M2047) ....................... Status signal
This flag is used as judgement which modules installed in the motion slot of the
CPU base unit is "normal" or "abnormal".
• ON .......... Installing module is abnormal
• OFF .......... Installing module is normal
The module information at the power supply on and after the power supply
injection are always checked, and errors are detected.
(a) Perform the disposal (stop the starting axis, servo OFF, etc.) of error
detection using the Motion program.
(b) When M2048 turns off, the axis during operation decelerates to a stop.
5 - 48
5 POSITIONING DEDICATED SIGNALS
(8) All axes servo ON accept flag (M2049) .................... Status signal
This flag turns on when the Motion CPU accepts the all axes servo ON
command (M2042).
Since the servo ready state of each axis is not checked, confirm it in the servo
ready signal (M2415+20n).
ON
(Note): Refer to "5.1.1 Axis statuses "Servo ready signal"" for details.
REMARK
(Note): Refer to the "Q173CPU(N)/Q172CPU(N) User's Manual" for P1 to P3
connector of the Q173PX.
[Error measures]
• Change the operation cycle into a large value in the system setting.
5 - 49
5 POSITIONING DEDICATED SIGNALS
ON
t
Speed change completion
5 - 50
5 POSITIONING DEDICATED SIGNALS
ON
Automatic
(Note)
deceleration flag OFF
5 - 51
5 POSITIONING DEDICATED SIGNALS
Positioning
complete signal
5 - 52
5 POSITIONING DEDICATED SIGNALS
REMARK
(1) Even if it has stopped, when the start accept flag (M2001 to M2032) is ON state,
the state where the request of speed change "0" is accepted is indicated.
Confirm by this speed change "0" accepting flag.
(2) During interpolation, the flags corresponding to the interpolation axes are set.
(3) In any of the following cases, the speed change "0" request is invalid.
• After deceleration by the JOG signal off
• During manual pulse generator operation
• After positioning automatic deceleration start
• After deceleration due to stop cause
(4) The temporary stop is executed during travel or dwell (G04) execution, the
speed change "0" accepting flag turns on.
(5) Speed change "0" accepting flag turns on in the following cases.
• The temporary stop command (M4400+10n) is input during travel to the
specified block by pre-read enable (G99) or execution of dwell (G04).
• Travel to the specified block by pre-read enable (G99) or execution of dwell
(G04) is executed after the temporary stop command (M4400+10n) input.
5 - 53
5 POSITIONING DEDICATED SIGNALS
(a) The flag turns off if a speed change request occurs during deceleration to a
stop due to speed change "0".
(b) The flag turns off if a stop cause occurs after speed change "0" accept.
Stop cause
(c) The speed change "0" accepting flag does not turn on if a speed change "0"
occurs after an automatic deceleration start.
5 - 54
5 POSITIONING DEDICATED SIGNALS
D640
Control change register
to (2 points 32 axes)
D704
Common device (Command signal)
to (54 points)
D758
Common device (Monitor)
to (42 points)
D1690
User device
to
(6502 points)
D8191
POINT
• Total number of user device points
6520points
5 - 55
5 POSITIONING DEDICATED SIGNALS
5 - 56
5 POSITIONING DEDICATED SIGNALS
6 D650, D651
7 D652, D653
8 D654, D655
9 D656, D657
10 D658, D659
11 D660, D661
12 D662, D663
13 D664, D665
14 D666, D667
15 D668, D669
16 D670, D671
17 D672, D673
18 D674, D675
19 D676, D677
20 D678, D679
21 D680, D681
22 D682, D683
23 D684, D685
24 D686, D687
25 D688, D689
26 D690, D691
27 D692, D693
28 D694, D695
29 D696, D697
30 D698, D699
31 D700, D701
32 D702, D703
(Note-1): The range of axis No.1 to 8 is valid in the Q172CPU(N).
(Note-2): Device area of 9 axes or more is unusable in the Q172CPU(N).
5 - 57
5 POSITIONING DEDICATED SIGNALS
5 - 58
5 POSITIONING DEDICATED SIGNALS
5 - 59
5 POSITIONING DEDICATED SIGNALS
5 - 60
5 POSITIONING DEDICATED SIGNALS
(7) Tool length offset data setting register list (Higher rank, lower rank)
Device No. Signal name
5 - 61
5 POSITIONING DEDICATED SIGNALS
5 - 62
5 POSITIONING DEDICATED SIGNALS
The monitoring data area is used by the Motion CPU to store data such as the
machine value during positioning control, the real machine value and the number of
droop pulses in the deviation counter.
It can be used to check the positioning control state using the Motion program.
The user cannot write data to the monitoring data area (except the travel value
change register).
(b) The "machine value" is equal to the "real machine value" in the stopped
state. (Some real machine values are changed by the servo lock force at a
motor stop.
(4) Minor error code storage register (D6+20n) ............. Monitor device
(a) This register stores the corresponding error code (Refer to APPENDIX 2.2)
at the minor error occurrence. If another minor error occurs after error code
storing, the previous error code is overwritten by the new error code.
(b) Minor error codes can be cleared by an error reset command (M3207+20n).
(5) Major error code storage register (D7+20n) ............. Monitor device
(a) This register stores the corresponding error code (Refer to APPENDIX 2.3)
at the major error occurrence. If another major error occurs after error code
storing, the previous error code is overwritten by the new error code.
(b) Major error codes can be cleared by an error reset command (M3207+20n).
5 - 63
5 POSITIONING DEDICATED SIGNALS
(6) Servo error code storage register (D8+20n) …......... Monitor device
(a) This register stores the corresponding error code (Refer to APPENDIX 2.4)
at the servo error occurrence. If another servo error occurs after error code
storing, the previous error code is overwritten by the new error code.
(b) Servo error codes can be cleared by an error reset command (M3208+20n).
(c) When either of the following is being executed using a peripheral device in
the test mode, FFFD is stored in this register.
• Home position return.
5 - 64
5 POSITIONING DEDICATED SIGNALS
(b) The preceding value remains until the M-code is executed next.
(11) Torque limit value storage register (D14+20n) ...... Monitor device
This register stores the torque limit value imposed on the servo amplifier.
The default value 300[%] is stored at the power supply of servo amplifier ON.
POINT
When the vector inverter is used, set the switable torque limit value for each vector
inverter in the following methods.
• Set the parameter block using the Motion program by making the torque limit
value of parameter block into a switable setting value.
• Execute the torque limit value change request instruction (CHGT, TL) using the
Motion program.
• Execute the torque limit value change request instruction (S(P).CHGT) using the
PLC program of PLC CPU.
5 - 65
5 POSITIONING DEDICATED SIGNALS
(c) The JOG speed is the value stored in the JOG speed setting registers when
the JOG start signal turns off to on.
Even if data is changed during JOG operation, JOG speed cannot be
changed.
5 - 66
5 POSITIONING DEDICATED SIGNALS
At the 10000000 position of the machine value, the current value is "0".
(b) The current value is shift depending on the work coordinate system
selection (G54 to G59) and G92 (coordinate system setting).
When "G90 G00 X0. ; " (G54 selected) and "G92 X500." are executed in
the above state, the current value is as follows.
The 0 position of the current value is re-set to 500. , which results in the
current value of 5000000.
5 - 67
5 POSITIONING DEDICATED SIGNALS
(c) This number changes to "0" using the Motion dedicated PLC instruction
(S(P).SVST) at the Motion program start.
5 - 68
5 POSITIONING DEDICATED SIGNALS
(c) This number changes to "0" using the Motion dedicated instruction
(S(P).SVST) at the Motion program start.
(c) This number changes to "0" using the Motion dedicated instruction
(S(P).SVST) at the Motion program start.
20 is stored in D849.
Applicable registers
Higher rank Lower rank
Offset value D811+20n D810+20n
(b) The contents of the data registers (D1650 to D1689 : offset value)
corresponding to the setting tool length offset data No. is stored in the tool
length offset area at the tool length offset (G43, G44) command.
D1650,D1651=50000(H1=5.0000mm)
Execute "G43 X50. H1 ;".
5 - 70
5 POSITIONING DEDICATED SIGNALS
(c) This number changes to "0" using the Motion dedicated PLC instruction
(S(P).SFCS) at the Motion program start.
Name Contents
0 : End
Execute status storoge register
1 : Executing
When the control program is ended normally or by error, the stored monitor
information is not cleared, "0" is stored in the execute status storage register.
After that, the monitor information is not cleared until the new control program is
started and the monitor area is assigned.
5 - 71
5 POSITIONING DEDICATED SIGNALS
(6) CLEAR request status storage register (D1445) ... Monitor device
(a) When the control program specified in the CLEAR request control program
No. setting register (D707) is cleared normally, "1" is set.
(b) If an error occurs in CLEAR of the clear control program specified in the
CLEAR request control program No. setting register (D707).
1) A minor error "the program number ended by CLEAR is outside the
range of 1 to 1024". (Error code: 619)
2) A minor error "the program number ended by CLEAR is nor registered.
Or, the axis designation program is cleared". (Error code: 620)
(c) "0" is set in the CLEAR request control program No. setting register (D707),
"0" is also set in the CLEAR request status storage register.
5 - 72
5 POSITIONING DEDICATED SIGNALS
(b) The actual feed rate is the result of multiplying the command speed in the
Motion program by the override ratio.
5 - 73
5 POSITIONING DEDICATED SIGNALS
(b) The tool length offset data No. can be set within the range of H1 to H20.
Tool length offset data setting registers are shown below.
Applicable registers
Tool length offset data No.
Higher rank Lower rank
H1 D1651 D1650
H2 D1653 D1652
H3 D1655 D1654
H4 D1657 D1656
H5 D1659 D1658
H6 D1661 D1660
H7 D1663 D1662
H8 D1665 D1664
H9 D1667 D1666
H10 D1669 D1668
H11 D1671 D1670
H12 D1673 D1672
H13 D1675 D1674
H14 D1677 D1676
H15 D1679 D1678
H16 D1681 D1680
H17 D1683 D1682
H18 D1685 D1684
H19 D1687 D1686
H20 D1689 D1688
(c) The setting ranges of the tool length offset data are shown below.
Unit mm degree
Item Setting range Unit Setting range Unit
Tool compensation amount -999.9999 to -359.99999 to
mm degree
(H1 to H20) 999.9999 359.99999
(d) Refer to Section 7.13.20 and 7.13.21 for details of the tool length offset.
5 - 74
5 POSITIONING DEDICATED SIGNALS
(c) When CLEAR instruction or equivalent is executed for one program, "1 to
1024" of control program 0 No. is set.
(d) When CLEAR instruction or equivalent is executed for all control programs,
"65535" is set in the setting register.
D710 Axis 16 Axis 15 Axis 14 Axis 13 Axis 12 Axis 11 Axis 10 Axis 9 Axis 8 Axis 7 Axis 6 Axis 5 Axis 4 Axis 3 Axis 2 Axis 1 Forward
rotation
JOG
D711 Axis 32 Axis 31 Axis 30 Axis 29 Axis 28 Axis 27 Axis 26 Axis 25 Axis 24 Axis 23 Axis 22 Axis 21 Axis 20 Axis 19 Axis 18 Axis 17
D712 Axis 16 Axis 15 Axis 14 Axis 13 Axis 12 Axis 11 Axis 10 Axis 9 Axis 8 Axis 7 Axis 6 Axis 5 Axis 4 Axis 3 Axis 2 Axis 1
Reverse
rotation
JOG
D713 Axis 32 Axis 31 Axis 30 Axis 29 Axis 28 Axis 27 Axis 26 Axis 25 Axis 24 Axis 23 Axis 22 Axis 21 Axis 20 Axis 19 Axis 18 Axis 17
(Note-1) : Make JOG operation simultaneous start axis setting with 1/0.
1 : Simultaneous start execution
0 : Simultaneous start not execution
(Note-2) : The range of axis No.1 to 8 is valid in the Q172CPU(N).
(b) Refer to Section 8.7.3 for details of the JOG operation simultaneous start.
5 - 75
5 POSITIONING DEDICATED SIGNALS
(3) Manual pulse generator axis No. setting registers (D714 to D719)
....…….. Command device
(a) These registers stores the axis No. controlled with the manual pulse
generator.
P1
D715 Axis 32 Axis 31 Axis 30 Axis 29 Axis 28 Axis 27 Axis 26 Axis 25 Axis 24 Axis 23 Axis 22 Axis 21 Axis 20 Axis 19 Axis 18 Axis 17
D716 Axis 16 Axis 15 Axis 14 Axis 13 Axis 12 Axis 11 Axis 10 Axis 9 Axis 8 Axis 7 Axis 6 Axis 5 Axis 4 Axis 3 Axis 2 Axis 1
P2
D717 Axis 32 Axis 31 Axis 30 Axis 29 Axis 28 Axis 27 Axis 26 Axis 25 Axis 24 Axis 23 Axis 22 Axis 21 Axis 20 Axis 19 Axis 18 Axis 17
D718 Axis 16 Axis 15 Axis 14 Axis 13 Axis 12 Axis 11 Axis 10 Axis 9 Axis 8 Axis 7 Axis 6 Axis 5 Axis 4 Axis 3 Axis 2 Axis 1
P3
D719 Axis 32 Axis 31 Axis 30 Axis 29 Axis 28 Axis 27 Axis 26 Axis 25 Axis 24 Axis 23 Axis 22 Axis 21 Axis 20 Axis 19 Axis 18 Axis 17
(Note-1) : Make the axis No. controlled with the manual pulse generator setting with 1/0.
1 : Specified axis
0 : Unspecified axis
(Note-2) : The range of axis No.1 to 8 is valid in the Q172CPU(N).
(b) Refer to Section 8.8 for details of the manual pulse generator operation.
(b) Refer to Section 8.8 for details of the manual pulse generator operation.
5 - 76
5 POSITIONING DEDICATED SIGNALS
(b) When the smoothing magnification is set, the smoothing time constant is as
indicated by the following expression.
Smoothing time constant (t) = (smoothing magnification + 1) 56.8 [ms]
(c) Operation
Manual pulse
generator input
ON
Manual pulse generator OFF
enable flag (M2051)
V V1
t t t t
REMARK
(1) The travel value per pulse of the manual pulse generator is shown below.
• Setting unit mm :0.0001[mm]
inch :0.00001[inch]
degree :0.00001[degree]
5 - 77
5 POSITIONING DEDICATED SIGNALS
5 - 78
5 POSITIONING DEDICATED SIGNALS
There are motion registers (#0 to #8191) in the Motion CPU. #8000 to #8063 are used
as SV43 dedicated device and #8064 to #8191 are used as the servo monitor device.
Axis
Device No. Signal name
No.
1 #8064 to #8067
2 #8068 to #8071 (Note-1)
Signal name Signal description Refresh cycle Signal direction
3 #8072 to #8075
4 #8076 to #8079 0 : Unused 4 : MR-J2S-B
5 #8080 to #8083 1 : MR-H-BN 5 : MR-J2-M When the servo amplifier
+0 Servo amplifier type
6 #8084 to #8087 2 : MR-J-B 6 : MR-J2-03B5 power-on
7 #8088 to #8091 3 : MR-J2-B 65 : FR-V500 Monitor device
8 #8092 to #8095 +1 Motor current -5000 to 5000 ( 0.1[%] )
9 #8096 to #8099 +2 3.55[ms]
Motor speed -50000 to 50000 ( 0.1[r/min] )
10 #8100 to #8103 +3
11 #8104 to #8107 (Note-1) : The value that the lowest servo monitor device No. was added "+0, +1 ···" on each axis is shown.
12 #8108 to #8111
13 #8112 to #8115
14 #8116 to #8119
15 #8120 to #8123
16 #8124 to #8127
17 #8128 to #8131
18 #8132 to #8135
19 #8136 to #8139
20 #8140 to #8143
21 #8144 to #8147
22 #8148 to #8151
23 #8152 to #8155
24 #8156 to #8159
25 #8160 to #8163
26 #8164 to #8167
27 #8168 to #8171
28 #8172 to #8175
29 #8176 to #8179
30 #8180 to #8183
31 #8184 to #8187
32 #8188 to #8191
5 - 79
5 POSITIONING DEDICATED SIGNALS
There are 256 special relay points of M9000 to M9255 in the Motion CPU.
Of these, 7 points of the M9073 to M9079 are used for the positioning control, and
their applications are indicated in Table 5.2. (Refer to APPENDIX 3.4 "Special Relays"
for the applications of the special relays except for M9073 to M9079.)
(b) This flag turns off when the PLC ready flag (M2000) turns off.
PCPU READY
complete flag
(M9074) The servo parameters are
written to the servo amplifiers
and the M-codes are cleared.
5 - 80
5 POSITIONING DEDICATED SIGNALS
(b) If the test mode request is executed in the test mode request from the
peripheral device, the TEST mode request error flag (M9078) turns on.
(4) External forced stop input flag (M9076) ....…………… Status signal
This flag checks the external forced stop input signal ON/OFF.
• OFF ........ During the external forced stop input on
• ON ........ During the external forced stop input off
POINTS
(1) If the forced stop signal is input during positioning, the machine value is
advanced within the rapid stop deceleration time (Note) set in the parameter
block. At the same time, the servo OFF state is established because the all
axes servo ON command (M2042) turns off.
When the rapid stop deceleration time (Note) has elapsed after input of the forced
stop signal, the machine value returns to the value at the point when the
emergency stop was initiated.
(2) If the forced stop is reset before the emergency stop deceleration time has
elapsed, a servo error occurs.
(Note) : It is not the rapid stop deceleration time but acceleration time at the G100
execution (fixed acceleration/deceleration time).
(b) When M9077 turns on, the error contents are stored in the manual pulse
generator axis setting error information (D9185 to D9187).
(6) TEST mode request error flag (M9078) ..........………. Status signal
(a) This flag turns on when the test mode is not executed in the test mode
request using a peripheral device.
(b) When M9078 turns on, the error contents are stored in the test mode
request error information (D9182, D9183).
5 - 81
5 POSITIONING DEDICATED SIGNALS
(7) Motion program setting error flag (M9079) ...........…... Status signal
This flag is used as judgement of normal or abnormal for the Motion program
positioning data.
• OFF ...... Normal
• ON ...... Abnormal
5 - 82
5 POSITIONING DEDICATED SIGNALS
There are 256 special register points of D9000 to D9255 in the Motion CPU.
Of these, 22 points of the D9180 to D9201 are used for the positioning control.
The special registers used for positioning are shown below. (Refer to APPENDIX 3.5
"Special Registers" for the applications of special registers except for D9180 to
D9201.)
D9183 Axis 32 Axis 31 Axis 30 Axis 29 Axis 28 Axis 27 Axis 26 Axis 25 Axis 24 Axis 23 Axis 22 Axis 21 Axis 20 Axis 19 Axis 18 Axis 17
5 - 83
5 POSITIONING DEDICATED SIGNALS
(2) Motion CPU WDT error cause (D9184) ………........ Monitor device
This register is used as judgement of the error contents in the Motion CPU.
Operation when error
Error code Error cause Action to take
occurs
1 S/W falut 1 • Reset with the reset key.
Operation cycle time over • If the error reoccurs after resetting,
2 change the operation cycle into a large
value in the system setting.
Q bus WDT error • Reset with the reset key.
• If the error reoccurs after resetting, the
3 relevant module or the relevant slot
(base unit) is probably faulty: replace
the module/base unit.
4 WDT error • Reset with the reset key.
Information processor H/W error • If the error reoccurs after resetting,
30 explain the error symptom and get
advice from our sales representatives.
Q bus H/W fault • Reset with the reset key.
201 • If the error reoccurs after resetting, the
relevant module or the relevant slot
Error contents (base unit) is probably faulty: replace
201 to 215 01 : Q bus error 1
02 : Q bus error 2 the module/base unit.
04 : Q bus error 4
08 : Q bus error 8
Error code = Total of the error contents + 200 All axes stop immediately,
after which operation
Servo amplifier (MR-B) interface H/W fault cannot be started.
250
During ROM operation, the system setting data, • Write the system setting data,
302 programs and parameters written to internal FLASH programs and parameters to the
ROM are fault. internal FLASH ROM.
5 - 84
5 POSITIONING DEDICATED SIGNALS
D9186 Axis 16 Axis 15 Axis 14 Axis 13 Axis 12 Axis 11 Axis 10 Axis 9 Axis 8 Axis 7 Axis 6 Axis 5 Axis 4 Axis 3 Axis 2 Axis 1
D9187 Axis 32 Axis 31 Axis 30 Axis 29 Axis 28 Axis 27 Axis 26 Axis 25 Axis 24 Axis 23 Axis 22 Axis 21 Axis 20 Axis 19 Axis 18 Axis 17
(b) If an error occurs in another Motion program when error program No. has
been stored, the program No. of the new error is stored.
5 - 85
5 POSITIONING DEDICATED SIGNALS
D9192 Axis 32 Axis 31 Axis 30 Axis 29 Axis 28 Axis 27 Axis 26 Axis 25 Axis 24 Axis 23 Axis 22 Axis 21 Axis 20 Axis 19 Axis 18 Axis 17
00: No error
01: Receiving timing error
02: CRC error
03: Communication response code error
D9196
04: Received frame error
05: Communication task start error
(Each error code is reset to "00" when normal
communication is restarted.)
5 - 86
5 POSITIONING DEDICATED SIGNALS
b8 to b12 corresponds to
SW1 to SW5 of the
system setting switch.
(b13 to b15 : Not used)
0 : OFF
1 : ON
RUN
ERROR
M.RUN
BAT.ALARM
BOOT
Not used
MODE
0 : OFF
(Note) : Indicate the following setting. 1 : Green
0 : OFF 2 : Orange
1 : ON
2 : Flicker
5 - 87
5 POSITIONING DEDICATED SIGNALS
MEMO
5 - 88
6 PARAMETERS FOR POSITIONING CONTROL
In the Multiple CPU system, the common system parameters and individual
parameters are set for each CPU and written to each CPU.
(1) The base settings, Multiple CPU settings and Motion slot settings are set in the
common system parameter setting.
(2) The basic system settings, self CPU installation position setting, servo
amplifier/motor setting, high-speed read setting and battery setting are set in the
individual parameter setting.
(3) The data setting and correction can be performed in dialog form using a
peripheral device.
(Refer to the "1.5 System Settings" for details of the setting contents.)
6-1
6 PARAMETERS FOR POSITIONING CONTROL
(1) The fixed parameters are set for each axis and their data is fixed based on the
mechanical system, etc.
6-2
6 PARAMETERS FOR POSITIONING CONTROL
The "Electronic gear function" adjusts the pulse calculated and output by the parameter
set in the Q173CPU(N)/Q172CPU(N) and the real travel value of machine.
It is defined by the "Number of pulses per rotation" and "Travel value per revolution".
POINTS
(1) The mechanical system error of the command travel value and real travel value
is rectified by adjustment the "electronic gear".
(2) The value of less than 1 pulse that cannot be execute a pulse output when the
machine travels is incremented in the Q173CPU(N)/Q172CPU(N), and a total
incremented pulse output is performed when the total incremented value
becomes more than 1 pulse.
(3) The total incremented value of less than 1 pulse that cannot be execute a pulse
output is cleared and it is referred to as "0" at the home position return
completion, current value change completion and start. (When the total
incremented value is cleared, the error occurs to the feed machine value only a
part to have been cleared.)
Q173CPU(N)/Q172CPU(N)
Feedback pulse
6-3
6 PARAMETERS FOR POSITIONING CONTROL
Electronic AP . . . . . (1)
=
gear AL
(There is a range which can be set in the numerical value set as AP/AL, so it is
necessary to make the setting range of AP/AL the value calculated from the
above expression (reduced) of relations.)
Machine
Motor
First, find how many millimeters the load (machine) will travel (AL)
when the servomotor runs for one rotation (AP).
AP 131072 [PLS]
=
AL 20 [mm]
The travel value per motor rotation in this example is 0.00015 [mm].
For example, when ordering the travel value of 19 [mm], it becomes
124518.4 [PLS] and the fraction of 0.4 [PLS]. At this time, the Motion
CPU orders the travel value of 124518 [PLS] to the servomotor and the
fraction is memorized in the Motion CPU.
Positioning is performed by seasoning the travel value with this fraction at
the next positioning.
6-4
6 PARAMETERS FOR POSITIONING CONTROL
(1) Backlash compensation amount can be set within the following range.
(Refer to Section "8.2 Backlash Compensation Function" for details.)
Backlash compensation amount
0 (=A) 65535[PLS]
Travel value per rotation
(2) The servo error may occur depending on the type of the servo amplifier
(servomotor) or operation cycle even if the backlash compensation amount which
fulfill the above condition. Set the backlash compensation amount within the
following range in order for servo error may not occur.
The upper/lower limit value for the travel range of the mechanical system is set.
Fig. 6.3 Travel range at the upper/lower stroke limit value setting
6-5
6 PARAMETERS FOR POSITIONING CONTROL
POINTS
(1) Besides setting the upper/lower stroke limit value in the fixed parameters, the
stroke limit range can also be set by using the external limit signals (FLS, RLS).
(2) Positioning from outside the stroke limit range cannot be executed. After
returning the axis to within the stroke limit range by the JOG operation or
manual pulse generator operation, execute the positioning control.
The command in-position is the difference between the positioning address (command
position) and current value.
Once the value for the command in-position has been set, the command in-position
signal (M2403 + 20n) turns on when the difference between the command position and
the current value enters the set range [(command position - current value) (command
in-position range)].
The command in-position range check is executed continuously during position control.
V Command in-position
Position setting value
control
start
Command in-position ON
(M2403+20n)
OFF
6-6
6 PARAMETERS FOR POSITIONING CONTROL
The high-speed feed rate is the positioning speed used to perform positioning with G00
or to make a home position return with G28, and this data is needed to execute G00 or
G28.
When executing interpolation control with G00, change the speed of each axis based
on the axis whose time to reach the target position is the longer, and find the
combined-speed.
The high-speed feed rate setting example for interpolation control with G00.
[Example] Interpolation control from the current position (X=0, Y=0) to the target
position (X=200, Y=100)
High-speed feed rate X-axis 20[mm/min]
Y-axis 1[mm/min]
Y
G00 X200.Y100.;(Interpolation control execution)
100.mm (Target position)
Find the combined travel value
High-speed
feed rate
2002 + 1002 223.6067 [mm] 1 mm/min
X
0 200.mm
(Current position) High-speed feed rate
20 mm/min
After the above program execution, the reaching time of each axis is as follows.
X-axis: 200.[mm]/20[mm/min] = 10[min]
Y-axis: 100.[mm]/1[mm/min] = 100[min]
Since the reaching time of the Y-axis is longer, use the Y-axis as the reference axis
for the feed rate and find the combined-speed.
POINTS
(1) The high-speed feed rate of each axis is clamped at the speed limit value of
parameter block. The clamped value is also used to determine the axis whose
time to reach the target position is the longest.
(2) In the above calculation, the travel value and feed rate used are calculated
without units. Care must be taken when their units differ.
(Example)
• Travel value
10000 for the travel of 1 [mm], 100000 for 1 [inch], 100000 for 1 [degree]
• Feed rate
100 for the feed rate of 1 [mm/min], 1000 for 1 [inch/min], 1000 for 1
[degree/min]
6-7
6 PARAMETERS FOR POSITIONING CONTROL
(1) The servo parameters control the data fixed by the specifications of the servo
amplifier and servomotor controlled in the parameter set for each axis and the
control of the servomotor.
(2) The servo parameters/vector inverter parameters are set by peripheral device.
CAUTION
After setting the servo parameters/vector inverter parameters using a peripheral device,
execute a "RELATIVE CHECK" and execute the positioning control in the "NO ERROR" state.
If there is an error, check the relevant points indicated in this manual and reset it.
Refer to the help of each software for details of "RELATIVE CHECK".
6-8
6 PARAMETERS FOR POSITIONING CONTROL
POINTS
(1) When the items marked " " in the above table has changed, make the Multiple
CPU system reset or PLC ready flag (M2000) OFF to ON. And, once turn OFF
the servo amplifier power supply, then turn ON it again.
(2) When the MR-J2M-B is used, set the "MR-J2S-B" in the system setting.
The setting range of the servo parameter is the same as the MR-J2S-B.
6-9
6 PARAMETERS FOR POSITIONING CONTROL
6 - 10
6 PARAMETERS FOR POSITIONING CONTROL
6 - 11
6 PARAMETERS FOR POSITIONING CONTROL
6 - 12
6 PARAMETERS FOR POSITIONING CONTROL
0: Invalid
Adaptive vibration
1: Valid (Machine resonance frequency is
suppression
always detected and the filter is
control 2
• Select the low pass filter and the generated in response to resonance to
20(Note-1) (Adaptive
adaptive vibration suppression suppress machine vibration.)
vibration
control. 2: Held (The characteristics of the filter
suppression
generated so far are held, and detection
control selection)
of machine resonance is stopped.)
Adaptive vibration
suppression
control 2
0: Normal
21(Note-1) (Adaptive
1: Large sensitivity
vibration
suppression
control sensitivity)
(Note-1) : Only MR-J2S-B is set with the expansion parameter 2.
6 - 13
6 PARAMETERS FOR POSITIONING CONTROL
6 - 14
6 PARAMETERS FOR POSITIONING CONTROL
POINT
(1) The "setting range" for position control gain 1 and 2, speed control gain 1 and 2
and speed integral compensation can be set using a peripheral device, but if a
setting outside the "valid range" is set, the following servo errors will occur when
the power supply of the Multiple CPU system turn on, the CPU is reset and the
PLC ready flag (M2000) turns off to on.
Servo error
Error contents Processing
code
2613 Initial parameter error (Position control gain 1) Correct the applicable
2614 Initial parameter error (Speed control gain 1) parameter within the "valid
2615 Initial parameter error (Position control gain 2) range", turn the M2000 off to
2616 Initial parameter error (Speed control gain 2) on, or reset.
2617 Initial parameter error (Speed integral compensation)
6 - 15
6 PARAMETERS FOR POSITIONING CONTROL
(b) If this gain is too high, it could cause overshoot and the value must therefore
be adjusted so that it will not cause overshoot or undershoot.
Time
Undershoot
(b) This gain is calculated and set with the load inertia ratio and the speed
control gain 2.
Speed control gain 2 1
Position control gain 2 = ×
1 + Load inertia ratio 10
POINTS
(1) If the position control gain 1 is too low, the number of droop pulses will increase
and a servo error (excessive error) will occur at high-speed operation.
(2) The position control gain 1 setting can be checked using a peripheral device.
(Refer to the help for each software for the checking method of the position
control gain 1 using a peripheral device.)
6 - 16
6 PARAMETERS FOR POSITIONING CONTROL
POINTS
(1) When the setting for speed control gain 1 is too high, the overshoot becomes
greater and vibration (abnormal motor noise) occurs on stopping.
(2) The speed control gain 1 setting can be checked using a peripheral device.
(Refer to the help of each software for the monitoring method of the speed
control gain1 using a peripheral device.)
(1) This parameter is used to increase frequency response in speed control and
improve transient characteristics.
(3) A guide to setting the speed integral compensation is shown in Table 6.6 below.
6 - 17
6 PARAMETERS FOR POSITIONING CONTROL
(2) If an in-position value is set, the in-position signal (M2402 + 20n) turns on when
the difference between the position command and position feedback from the
servomotor becomes within the setting range.
Amount of droop
In-position ON
(M2402+20n)
OFF
(1) This parameter sets the load inertia moment ratio for the servomotor.
The load inertia moment ratio is calculated using the following equation:
Load inertia moment
Load inertia moment ratio =
Motor inertia moment
(2) The result of automatic tuning is automatically set at the automatic tuning setting.
By detecting the current and speed at the start, the load inertia moment is automatically
calculated, and the most suitable gain is automatically set.
6 - 18
6 PARAMETERS FOR POSITIONING CONTROL
Response settings
1 : Low-speed response
2:
3: Normal machine
Standard mode
(All servo amplifiers valid)
4:
5 : High-speed response
8 : Low-speed response
9:
A: Machines with high friction
High frictional load mode
(MR -H BN only valid)
B:
C : High-speed response
(2) Increase the response setting step by step starting from the low-speed response
setting, observing the vibration and stop stabilization of the motor and machine
immediately before stopping as you do so. If the machine resonates, decrease the
set value.
If the load inertia is 5 times the motor inertia, make the set value 1 or more.
(3) The following figure shows the change in motor response in accordance with servo
response setting.
Motor speed
Response setting
Command value 5 4 3 2 1
Time
Change in motor response based on the response setting
(At the positioning control)
(4) Change the servo responsiveness setting while the motor is stop.
6 - 19
6 PARAMETERS FOR POSITIONING CONTROL
This parameter sets the delay time between the electromagnetic brake operation and
base disconnection.
This parameter is set to output the operation status of the servo amplifier in real time as
analog data.
The operation status can be checked by analog output.
There are two monitor items to be set according with the servo amplifier to be used.
0 0
Encoder type
0 : 2-wire type
1 : 4-wire type
POINT
Optional function 1 (carrier frequency selection)
When low-noise is set, the continuous output capacity of the motor is reduced.
6 - 20
6 PARAMETERS FOR POSITIONING CONTROL
6 - 21
6 PARAMETERS FOR POSITIONING CONTROL
POINT
Optional function 2 (no-motor operation selection)
No-motor operation differs from operation in which an actual motor is run in that, in
response to signals input in no-motor operation, motor operation is simulated and
output signals and status display data are created under the condition that the load
torque zero and moment of load inertia are the same as the motor's moment of
inertia. Accordingly, the acceleration/deceleration time and effective torque or the
peak load display value and the regenerative load ratio is always "0", which is not
the case when the real motor is operated.
This parameter sets the offset value for the monitor items set at the monitor outputs 1
and 2 setting.
This parameter outputs the data state at an alarm occurrence from the servo amplifier
in analog form.
(1) Sampling time selection
Set the intervals in which the data state at an alarm occurrence is recorded in the
servo amplifier.
Sampling time
0 : 1.77[ms]
1 : 3.55[ms]
2 : 7.11[ms]
3 : 14.22[ms]
4 : 28.44[ms]
6 - 22
6 PARAMETERS FOR POSITIONING CONTROL
This parameter sets the speed at which the motor speed is judged as "0".
This parameter sets the range in which the alarm for excessive droop pulses is output.
This parameter sets the position droop value (Number of pulses) which PI control is
switched to PID control during position control.
The setting becomes valid when switching in accordance with the droop during position
control is made valid using the setting for PI-PID control switching by optional function
5.
This parameter is used to expand the torque control range up to the speed control
value at the torque control. (MR-H BN only)
If a large value is set, the speed limit value may be exceeded and the motor may
rotate.
This parameter sets the speed differential compensation value of the real speed loop.
In PI (proportional integration) control, if the value for speed differential compensation
is set at 1000, the range for normal P (proportional) control is valid; if it is set to a value
less than 1000, the range for P (proportional) control is expanded.
6 - 23
6 PARAMETERS FOR POSITIONING CONTROL
6 - 24
6 PARAMETERS FOR POSITIONING CONTROL
(1) The parameter blocks serve to make setting changes easy by allowing data such
as the acceleration/deceleration control to be set for each positioning processing.
6 - 25
6 PARAMETERS FOR POSITIONING CONTROL
POINTS
(1) Parameter blocks are specified in the home position return data, JOG operation
data or Motion program.
(2) Speed limit value is within the feed speed setting range of feed speed (F) set in
the Motion program.
6 - 26
6 PARAMETERS FOR POSITIONING CONTROL
POINTS
The data set in the parameter block is used in the positioning control, home position return
and JOG operation.
(1) The parameter block No. used in the positioning control is set indirectly in the following
case.
(a) Start by the SVST instruction from the PLC (Refer to Section 4.3)
(b) Start by the CALL, GOSUB/GOSUBE instruction from the Motion program
(Refer to Section 7.16.21, 7.16.22 and 7.16.23)
And the parameter block can be changed by the PB instruction in the Motion program.
Refer to Section 7.16.14 for details.
(2) The parameter block No. used in the home position return or JOG operation is set at
the setting of the "home position return data" or " JOG operation data" using a
peripheral device. (Refer to Section "8.5.1 Home position return data", "8.7.1 JOG
operation data" for details.)
[Home position return data, Jog operation data setting screen]
6 - 27
6 PARAMETERS FOR POSITIONING CONTROL
6.4.1 Relationships between the speed limit value, acceleration time, deceleration time and
rapid stop deceleration time
6 - 28
6 PARAMETERS FOR POSITIONING CONTROL
(a) G01, G02, G03, G12, G13 or G32 during G101 execution
(b) G00 (without M-code), G28 (high-speed home position return), G30, G53 or
G00 including M-code during G101 execution
Time
Fig. 6.4 Relationships between the speed limit value, acceleration time,
deceleration time and rapid stop deceleration time
6 - 29
6 PARAMETERS FOR POSITIONING CONTROL
S-curve ratio can be set as the acceleration and deceleration processing method for S-
pattern processing.
Setting range of the S-curve ratio is 0 to 100[%].
If it is set outside the range, an error occurs at the start and control is executed with the
S-curve ratio set as 100[%].
Errors are set in the error item information area (D9190).
Setting of the S-curve ratio enables acceleration/deceleration processing to be
executed gently.
The graph for S-pattern processing is a sine curve as shown below.
V
Positioning speed
Sine curve
t
0
Acceleration Deceleration Time
time time
As shown below, the S-curve ratio setting serves to select the part of the sine curve to
be used as the acceleration/deceleration curve.
V
A A
B Positioning speed B
B/2 B/2
B/A=1.0
t
S-curve ratio is 100[%]
Positioning speed
Sine curve
B B/A=0.7
A
S-curve ratio = B/A 100%
t
S-curve ratio is 70[%]
(Note) : When the G00, G01, G02, G03, G12, G13 or G32 including M-code is used,
S-curve ratio is ignored and control is executed as always 0[%].
6 - 30
6 PARAMETERS FOR POSITIONING CONTROL
The locus of the arc calculated from the start point address and central point address
may not coincide with the set end point address for the central-specified control.
The allowable error range for circular interpolation sets the allowable range for the error
between the locus of the arc determined by calculation and the end point address.
If the error is within the allowable range, circular interpolation to the set end point
address is executed while also executing error compensation by means of spiral
interpolation.
If it exceeds the setting range, an error occurs at the start and positioning does not
start. Such an error are set the applicable axis or minor error code area.
Error
6 - 31
6 PARAMETERS FOR POSITIONING CONTROL
(1) The work coordinate data is used to set the work coordinates and six different
work coordinates can be set (G54 to G59) for every axis. (Refer to Section 7.12 for
details.)
(2) The position is set with the offset from the mechanical coordinate system home
position for the work coordinate system. The offset setting value is the distance
from the mechanical coordinate system home position (0).
(3) The work coordinate data is set using the peripheral devices.
(4) The work coordinate data to be set are shown in Table 6.9.
(5) When a home position return is made based on the home position return setting
data, the mechanical coordinate system and work coordinate system are as
shown below.
[Example] The X-axis home position address of home position return data is set
to 200.00[mm] and the X-axis: G54 of the work coordinate data is set
to 300.00[mm] to make a home position return.
G54=300.00 [mm]
6 - 32
7 MOTION PROGRAMS FOR POSITIONING CONTROL
Motion program in the EIA language format is used as a programming language in the
Motion controller (SV43).
A Motion program is used to specify the positioning control type and positioning data
required to execute the positioning control in the Motion CPU.
This chapter describes the Motion program composition and setting method of the
Motion program.
This section describes the format and composition of the Motion program.
A Motion program is called a word address format (word), and it is combination of a
single alphabet (address) and numbers.
<Word composition>
X 1) 2) 3) · · · · · · · · 9)
Word 7
(Note): The first alphabet of word is called an address and defines the meaning
of subsequent numeric information.
7-1
7 MOTION PROGRAMS FOR POSITIONING CONTROL
(2) Block
A block is a collection of several words. It includes information necessary to
perform a single specific operation of a machine and acts as a complete
command on a block basis.
A block is ended by the EOB (End of Block) code to indicate separation.
<Block composition>
1) 2) 3) 4) 5) 6)
N100 G01 X250. Y-123.4 F1500. ;
Block
(Note) : There are following two methods in the coordinate position data.
Absolute value command ········· G90: Method to travel the specified
coordinate position regardless of
the current position.
Incremental value command ···· G91: Method to command the next
target position based on the
current position.
7-2
7 MOTION PROGRAMS FOR POSITIONING CONTROL
POINT
Up to 1024 Motion programs are stored in a memory in Motion controller (SV43).
These Motion programs are managed in a Motion program No.
7-3
7 MOTION PROGRAMS FOR POSITIONING CONTROL
(1) Refer to Section 7.3 to 7.5 for details of the instruction which can be described in
each program.
(2) The total number of the control programs and axis designation programs is 1024.
(3) The method to start and end of the control program differs from the axis
designation program. Refer to Section 7.6 for details.
(4) The Motion program during execution cannot be re-written. Confirm that the PLC
ready flag (M2000) is OFF, and write the Motion program.
7-4
7 MOTION PROGRAMS FOR POSITIONING CONTROL
G-code List
Axis
Control
Type Instruction (Group) Description designation Remark
program
program
(Note)
G00 Point-to-point positioning at the high-speed feed-rate
G01 Constant-speed positioning at the speed specified in F
01
G02 Circular interpolation (CW)
G03 Circular interpolation (CCW)
G04 00 Dwell
G09 00 Exact stop check
G12 Helical interpolation (CW)
01
G13 Helical interpolation (CCW)
(Note)
G23 Cancel, cancel/start invalid
02
G24 Cancel, cancel/start
G25 00 High-speed oscillation
G26 00 High-speed oscillation stop
G28 00 Home position return
G30 00 Second home position return
G32 00 Skip
G43 Tool length offset (+)
G-code G44 08 Tool length offset (-)
(Note)
G49 Tool length offset cancel
G53 00 Mechanical coordinate system selection
(Note)
G54 ,
G55, G56,
12 Work coordinate system selection
G57, G58,
G59
G61 Exact stop check mode
(Note) 13
G64 Cutting mode
(Note)
G90 Absolute value command
03
G91 Incremental value command
G92 00 Coordinate system setting
G98 Pre-read disable
(Note) 21
G99 Pre-read enable
(Note)
G100 Time-fixed acceleration/deceleration switching command
20 Acceleration-fixed acceleration/deceleration switching
G101
command
(Note) : Indicates the G-code selected at the power-on.
7-5
7 MOTION PROGRAMS FOR POSITIONING CONTROL
Class Description
Once any G-code is commanded, it is valid until another G-code in the same
group is commanded.
Initial status (at the power-on) is as follows.
Group 01 ·········· G00 Point-to-point positioning at the high-speed feed rate
Group 02 ·········· G23 Cancel, cancel/start invalid
Modal G-codes
Group 03 ·········· G90 Absolute value command
(Groups 01, 02, 03, 08, 12, 13, 20, 21)
Group 08 ·········· G49 Tool length offset cancel
Group 12 ·········· G54 Word coordinate system 1 selection
Group 13 ·········· G64 Cutting mode
Group 20 ·········· G100 Time-fixed acceleration/deceleration switching command
Group 21 ·········· G99 Pre-read enable
Unmodal G-codes
Valid only for the block in which any G-code has been commanded.
(Group 00)
7-6
7 MOTION PROGRAMS FOR POSITIONING CONTROL
M-code List
Axis
Control
Type Instruction Description designation Remark
program
program
M00 Program stop
M01 Optional program stop
M02 Program end
Special M-code
M30 Program end
M98, M99 Subprogram call, end
M100 Preread disable
General M-code Other M-codes
The special M-codes are not output to the device (M-code outputting signal :
M2419+20n).
Use the GOSUB/GOSUBE instruction for the subprogram call in the control program.
A general M-code cannot be used in the control program. Use the EXEON/EXEOFF
for the signal wait from external source.
(Because there is no axis designation in the control program, it is not made to
correspond to the FIN signal which is the signal of every axis.)
7-7
7 MOTION PROGRAMS FOR POSITIONING CONTROL
(Note-3)
CLEAR Control program end
(Note-4)
TIME Time to wait
BMOV Block move (16 bit unit)
Others
BDMOV Block move (32 bit unit)
FMOV Identical data block move (16 bit unit)
7-8
7 MOTION PROGRAMS FOR POSITIONING CONTROL
7-9
7 MOTION PROGRAMS FOR POSITIONING CONTROL
7 - 10
7 MOTION PROGRAMS FOR POSITIONING CONTROL
M02; O21;
End
%
M02;
% Return
GOSUB P11;
O11; O22;
M02; O23;
Return
%
M02;
% Return
G0 X10.Y10.; G0 X30.Y30.;
G1 X20.Y20.F100; G1 X40.Y40.F100;
M98 P24; ;
G0 V10.Z10.; G0 V30.Z30.;
G1 V20.Z20.F100; G1 V40.Z40.F100;
M98 P25;
Control program
Call
Start
Axis designation
program
7 - 11
7 MOTION PROGRAMS FOR POSITIONING CONTROL
7.7 Number of Maximum Nesting for Program Call and Multi Startable Program
(3) The program started by the CALL in the control program operates as a
program different from starting source, so there are no restrictions for
nesting of the starting source and program started.
(4) The number of maximum multi startable programs of the control program is
16.
However, when it was called by the GOSUB/GOSUBE, the number of multi
executed programs is counted as 2 programs in the call source program and
program called.
(5) The number of maximum multi startable programs of the axis designation
program is 32.
However, when it was called by the M98, the number of multi executed
programs is counted as 1 program in the call source program and program
called.
(6) Number of maximum nesting for the both of GOSUB/GOSUBE and M98 is 8
levels.
Maximum nesting is 16 levels in the following combinations.
7 - 12
7 MOTION PROGRAMS FOR POSITIONING CONTROL
7 - 13
7 MOTION PROGRAMS FOR POSITIONING CONTROL
(2) In one block, one G-code can be selected from each modal group. Up to two G-
codes can be commanded. Refer to following table for G-code combinations,.
(b) When the G90 is specified as the first G-code, G00, G01, G02, G03, G12 or
G13 can be specified as the second code.
G90 G61; and G90 G64; result in a format error.
(c) Specify the G23, G24, G25, G26, G32, G98, G99, G100 or G101
individually.
7 - 14
7 MOTION PROGRAMS FOR POSITIONING CONTROL
IMPORTANT
The Motion program which an axis overlapped cannot be started simultaneously.
If it is executed, we cannot guarantee their operations.
(3) The M-codes except the M00, M01, M02, M30, M98, M99 and M100 can be
specified in the same block with another command. However, if they are specified
together in the same block with the travel command (G00 to G03, G32), the M
function is executed by the start of the travel command (G00 to G03, G32).
(4) If the multiple M-codes except the M00, M01, M02, M30, M98, M99 and M100 are
specified in one block, only the last one is valid.
(5) When the auxiliary function (M) is set in continuous G01 blocks .
If an auxiliary function (M) is set at any point in continuous G01 blocks, operation
is performed in either of the following two ways.
O0100;
1) G90 G01 X100. F1000. ; Constant-speed positioning of X
2) X200. M10; Constant-speed positioning of X, M-code
3) X300. ; Constant-speed positioning of X
M-code 10
M-code outputting ON
(M2419+20n) OFF
FIN signal ON
(M3219+20n) OFF
When the FIN signal (M3219+20n) is not turned from OFF to ON to OFF
during positioning in block 2), a decelerates stop is made once in the block
of M-code.
7 - 15
7 MOTION PROGRAMS FOR POSITIONING CONTROL
100. 200.
M-code 10
M-code outputting ON
(M2419+20n) OFF
FIN signal ON
(M3219+20n) OFF
When the FIN signal (M3219+20n) is turned from OFF to ON to OFF during
positioning in block 2), the axis performs constant-speed operation without
decelerating stop in the block of M-code.
(6) The M-codes except the M00, M01, M02, M30, M98, M99 and M100 are output to
the M-code storage registers (D13+20n) of all axes specified at the program start.
However, the M-code storage register is not output to the axis in execution of
high-speed oscillation. Also, if the FIN signal (M3219+20n) is set to the axis in
execution of high-speed oscillation is invalid.
(Program No. 1 is started with X (axis 1) and Y (axis 2) specified
"SVST J1J2 K1" )
O0001;
N1 G25 X START90. STRK10. F30; X-axis high-speed oscillation start
N2 G00 Y10. M77; PTP positioning of Y-axis
N3 G26 X; X-axis high-speed oscillation stop
M02;
%
G26 X;
X-axis G25
7 - 16
7 MOTION PROGRAMS FOR POSITIONING CONTROL
X-axis
100. 200.
V
Y-axis
100. 200.
• Both the acceleration and deceleration times are equal to the acceleration time
of parameter block.
• When the M-code is commanded in G00, the acceleration and deceleration
times are also equal to the acceleration time of parameter block as in G01.
(Example : G00 X M;)
• In G02, G03 and G32, the acceleration and deceleration times are also equal to
the acceleration time of parameter block as in G01.
(b) If the axis not specified in the axis number setting of the SVST instruction in
the program waiting to be started is described in the Motion program, it stops
because a minor error (error code : 594) at the positioning processing of the
applicable axis in the program.
7 - 17
7 MOTION PROGRAMS FOR POSITIONING CONTROL
O0001;
N1 G25 X START90. STRK10. F30; X-axis high-speed oscillation start
N2 G25 Y START90. STRK20. F10; Y-axis high-speed oscillation start
N3 Be careful to program N3 after.
•
•
•
(a) The G-code instructions except G26 (high-speed oscillation stop) and G04
(dwell) should not be executed.
(b) The M-codes except M00, M01, M02, M30, M98 and M99 should not be
executed.
7 - 18
7 MOTION PROGRAMS FOR POSITIONING CONTROL
Instruction symbols and characters used in Motion programs are shown below.
7 - 20
7 MOTION PROGRAMS FOR POSITIONING CONTROL
7 - 21
7 MOTION PROGRAMS FOR POSITIONING CONTROL
7 - 22
7 MOTION PROGRAMS FOR POSITIONING CONTROL
This section describes the setting method for command data (addresses, speeds,
operational expressions) used in the Motion programs.
There are following two setting method for command data.
• Direct setting (using numerical values entering)
.......................................................... Refer to Section 7.11.1.
• Indirect setting (using variable : # or device : #W )
.......................................................... Refer to Section 7.11.2.
"Direct setting" and "indirect setting" can be used together in one Motion program.
Direct setting is a way to set each positioning data using a numerical value, and these
data are fixed data. Data setting and correction can be made using the peripheral
device only.
O0200;
N99 G90 G00 X100. Y110.; Numerical setting for positioning data
G01 X200.Y202.F204.;
G91 G00 Z300.;
M02;
%
7 - 23
7 MOTION PROGRAMS FOR POSITIONING CONTROL
7 - 24
7 MOTION PROGRAMS FOR POSITIONING CONTROL
POINT
(1) The data register is shown as "#D" or "#" in the Motion program.
Describe it as "#@" to indicate a motion register.
(2) The mark of the I/O modules is X and Y in the Motion program regardless of
installation/non-installation. Do not use PX and PY.
31 15 0
The 16-bit integer type is converted to 64-bit double precision real number.
15 0
Higher rank bit is handled as a sign bit.
16 bit to 64 bit 63 51 0
Bits 0 to 51: Significant digit part
Bits 52 to 62: Exponent part
Bit 63: Sign part
15 0
Higher rank bit is handled as a sign bit.
The 32-bit integer type is converted to 64-bit double precision real number.
31 0
Higher rank bit is handled as a sign bit.
32 bit to 64 bit 63 51 0
Bits 0 to 51: Significant digit part
The 64-bit double precision real number is converted to 16-bit integer type.
Note that any value other than -32768 to 32767 results in an error. (Error : 531)
63 51 0
Bits 0 to 51: Significant digit part
64 bit to 16 bit Bits 52 to 62: Exponent part Fractional portion is dropped.
Bit 63: Sign part Any value other than -32768 to 32767
results in an error. (Error 531)
15 0
Higher rank bit is handled as a sign bit.
7 - 25
7 MOTION PROGRAMS FOR POSITIONING CONTROL
The 64-bit double precision real number is converted to 32-bit integer type.
Note that any value other than -2147483648 to 2147483647 results in an error.
(Error : 531)
63 51 0
Bits 0 to 51: Significant digit part
64 bit to 32 bit
Bits 52 to 62: Exponent part Fractional portion is dropped.
Bit 63: Sign part Any value other than -2147483648 to
2147483647 results in an error. (Error 531)
31 0
Higher rank bit is handled as a sign bit.
7 - 26
7 MOTION PROGRAMS FOR POSITIONING CONTROL
The data format of a 64-bit double precision real number conforms to the
binary floating-point type double precision (64 bits) of IEEE Standard.
63 51 31 Bit 0
Bits 0 to 51: Significant digit part
[Example]
#@10:F=#@20:L/#@22:L;
The division result of 32-bit integers, [#@21, #@20] and [#@23,
#@22], is stored to a 64-bit real number, [#@13, #@12, #@11,
#@10].
#@10:F=#@20:L;
A 32-bit integer, [#@21, #@20], is expanded in sign to a 64-bit
real number, [#@13, #@12, #@11, #@10].
#@40:L=#@30:F;
A 64-bit integer, [#@33, #@32, #@31, #@30], is expanded in
sign to a 32-bit integer, [#@41, #@40].
<Restrictions>
64-bit double precision real numbers cannot be used in the function INT
and FTL.
7 - 27
7 MOTION PROGRAMS FOR POSITIONING CONTROL
[Example]
<Command address 1>
G91;
#@10:L=1.;
G0 X#@10:L ; The travel value of X is any of the following values.
mm inch degree
1 mm 0.1 inch 0.1 degree
7 - 28
7 MOTION PROGRAMS FOR POSITIONING CONTROL
POINT
For two-word setting, set an even-numbered device.
7 - 29
7 MOTION PROGRAMS FOR POSITIONING CONTROL
POINTS
(1) The Motion program No. (O) cannot be set indirectly.
(2) When the Motion program is executed in the Motion CPU, the data of specified
devices (2-word or 4-word) are input in the variable setting or device setting
using word devices.
Take an interlocks with the start accept flag (M2001 to M2032) not to change
until the specified axes accept a start for the device data specified for indirect
setting.
When performing positioning control, execute the start request of Motion
program after setting the data to indirect setting devices. If the data is changed
before the acceptance of start, positioning control may not be executed with
normal values.
(3) Set a variable latch using the peripheral devices.
(4) Variable setting "# " is the same in value as device setting "#D "
which uses data registers.
Example) #2000=1;
#D2000=2; The value of #2000 is also 2.
Therefore, the motion device is described as "#@".
7 - 30
7 MOTION PROGRAMS FOR POSITIONING CONTROL
7 - 31
7 MOTION PROGRAMS FOR POSITIONING CONTROL
7 - 32
7 MOTION PROGRAMS FOR POSITIONING CONTROL
• For MOD
No. Operation result Data 1 Data 2
#n (16 bit)
28
16-bit data is converted into 32-bit data.
#nL, #n:L (32 bit)
29
#n (16 bit) No conversion
16-bit data is converted into 32-bit #nF, #n: F (64 bit)
data. 64-bit data is converted into 32-bit data.
30 Fractional portion is dropped during conversion.
Error occurs if conversion result exceeds 32-bit range.
(Error : 531)
#n (16 bit)
31
16-bit data is converted into 32-bit data.
#nF, #n:F (64 bit)
#nL, #n:L (32 bit)
32 (64 bit)
No conversion
Internal operation #nL, #n:L (32 bit)
#nF, #n:F (64 bit)
result (32 bit) is No conversion
64-bit data is converted into 32-bit data.
converted into 64-
33 Fractional portion is dropped during conversion.
bit data.
Error occurs if conversion result exceeds 32-bit range.
(Error : 531)
#n (16 bit)
34 #nF, #n:F (64 bit)
16-bit data is converted into 32-bit data.
64-bit data is converted into 32-bit
#nL, #n:L (32 bit)
35 data.
No conversion
Fractional portion is dropped
#nF, #n:F (64 bit)
during conversion.
64-bit data is converted into 32-bit data.
Error occurs if conversion result
36 Fractional portion is dropped during conversion.
exceeds 32-bit range.
Error occurs if conversion result exceeds 32-bit range.
(Error : 531)
(Error : 531)
n : Indicates variable number or device number
7 - 33
7 MOTION PROGRAMS FOR POSITIONING CONTROL
(2) Logical operations (AND, OR, XOR, NOT), shift operators (<<, >>)
• For AND, OR, XOR, <<, >>
The data type combinations and conversion methods for logical operations
(AND, OR, XOR) and shift operators (<<, >>) are shown below.
Operation result = [Data 1] operator [Data 2]
Operator indicates AND, OR, XOR, << or >>
For logical and shift operations, operation including the 64-bit floating-point type
cannot be performed. (Error "560 : format error")
No. Operation result Data 1 Data 2 Remarks
#n (16 bit)
1
No conversion
#nL, #n:L (32 bit)
#n (16 bit) 32-bit data is converted into 16-bit data.
2
No conversion Error occurs if conversion result exceeds 16-bit range.
(Error : 531)
#nF, #n:F (64 bit)
3 Operation disabled
Operation cannot be performed.
#n (16 bit)
4
#nL, #n:L (32 bit) No conversion
#n (16 bit) 32-bit data is converted into 16-bit #nL, #n:L (32 bit)
No conversion data. 32-bit data is converted into 16-bit data.
5
Error occurs if conversion result Error occurs if conversion result exceeds 16-bit range.
exceeds 16-bit range. (Error : 531)
(Error : 531) #nF, #n:F (64 bit)
6 Operation disabled
Operation cannot be performed.
#n (16 bit)
7 Operation disabled
Operation cannot be performed.
#nF, #n:F (64 bit) #nL, #n:L (32 bit)
8 Operation disabled
Operation cannot be performed. Operation cannot be performed.
#nF, #n:F (64 bit)
9 Operation disabled
Operation cannot be performed.
#n (16 bit)
10
16-bit data is converted into 32-bit data.
#n (16 bit)
#nL, #n:L (32 bit)
11 16-bit data is converted into 32-bit
No conversion
data.
#nF, #n:F (64 bit)
12 Operation disabled
Operation cannot be performed.
#n (16 bit)
13
16-bit data is converted into 32-bit data.
#nL, #n:L (32 bit)
#nL, #n:L (32 bit) #nL, #n:L (32 bit)
14 (32 bit)
No conversion No conversion
No conversion
#nF, #n: F (64 bit)
15 Operation disabled
Operation cannot be performed.
#n (16 bit)
16 Operation disabled
Operation cannot be performed.
#nF, #n:F (64 bit) #nL, #n:L (32 bit)
17 Operation disabled
Operation cannot be performed. Operation cannot be performed.
#nF, #n:F (64 bit)
18 Operation disabled
Operation cannot be performed.
n : Indicates variable number or device number
7 - 34
7 MOTION PROGRAMS FOR POSITIONING CONTROL
• For NOT
The following table indicates the data type combinations and conversion methods
for NOT.
Operation result = operator [Data 1]
Operator denotes NOT.
For logical and shift operations, operation including the 64-bit floating-point type
cannot be performed. (Error "560 : format error")
No. Operation result Data 1 Remarks
#n (16 bit)
1
No conversion
#nL, #n:L (32 bit)
#n (16 bit)
2 32-bit data is converted into 16-bit data.
No conversion
Error occurs if conversion result exceeds 16-bit range. (Error : 531)
#nF, #n:F (64 bit)
3 Operation disabled
Operation cannot be performed.
#n (16 bit)
4
16-bit data is converted into 32-bit data.
#nL, #n:L (32 bit)
#nL, #n:L (32 bit)
5 (32 bit)
No conversion
No conversion
#nF, #n:F (64 bit)
6 Operation disabled
Operation cannot be performed.
n : Indicates variable number or device number
7 - 35
7 MOTION PROGRAMS FOR POSITIONING CONTROL
7 - 36
7 MOTION PROGRAMS FOR POSITIONING CONTROL
7 - 37
7 MOTION PROGRAMS FOR POSITIONING CONTROL
7 - 38
7 MOTION PROGRAMS FOR POSITIONING CONTROL
• For ABS
No. Operation result Data 1
#n (16 bit)
1
No conversion
#n (16 bit) #nL, #n:L (32 bit)
2
No conversion 32-bit data is converted into 16-bit data.
#nF, #n:F (64 bit)
3
64-bit data is converted into 16-bit data.
#n (16 bit)
4
16-bit data is converted into 32-bit data.
#nL, #n:L (32 bit) #nL, #n:L (32 bit)
5
No conversion No conversion
#nF, #n:F (64 bit)
6
64-bit data is converted into 32-bit data.
#n (16 bit)
7
16-bit data is converted into 64-bit data.
#nF, #n:F (64 bit) #nL, #n:L (32 bit)
8
No conversion 32-bit data is converted into 64-bit data.
#nF, #n:F (64 bit)
9
No conversion
n : Indicates variable number or device number
7 - 39
7 MOTION PROGRAMS FOR POSITIONING CONTROL
7 - 40
7 MOTION PROGRAMS FOR POSITIONING CONTROL
Setting range of instruction symbols used in the Motion programs are shown below.
7 - 41
7 MOTION PROGRAMS FOR POSITIONING CONTROL
7 - 42
7 MOTION PROGRAMS FOR POSITIONING CONTROL
REMARK
(1) Command unit
A decimal point can be entered in the Motion program input information which
defines the command address or speed, etc.
[Example] 123456.7890
A decimal point may also be omitted.
When a decimal point is omitted, a command address is represented in
0.0001[mm], 0.00001[inch] or 0.00001[degree] increments, for example.
<For command address> <For feed speed (F)>
. .
[Example] 10. ······ 10mm [Example] 10. ······ 10mm/min
10 ······· 0.001mm (unit: mm) 10 ······· 0.1mm/min (unit: mm)
Any value may be specified up to 10 digits. (Decimal point not included) Specifying
more than 10 digits will result in an error.
The numbers of significant decimal places are listed below. Digits after the
significant decimal places are ignored. Note that specifying 10 or more digits will
result in an error.
Unit
mm inch degree
Command
Command address 4 5 5
Command speed 2 3 3
For one axis, positioning control is executed in the control unit specified in the fixed
parameter.
(The control unit specified in the parameter block is ignored.)
7 - 43
7 MOTION PROGRAMS FOR POSITIONING CONTROL
(1) The interpolation control units specified with the parameter block and the control
units of the fixed parameter are checked.
If the interpolation control units specified with the parameter block differ from the
control units of the each axis fixed parameter for the interpolation control, it shown
below.
Interpolation control units in the parameter block
Starting method
mm inch degree
There are axes whose Control starts by the
Condition for There are axes whose control unit set in control unit set in the interpolation control unit of
normal start the fixed parameter is [mm] /[inch]. fixed parameter is parameter block.
[degree].
• If the control units of axes to be
interpolation-controlled are the
same, control starts in the
preset control unit.
Condition for unit • If the control units of axes to be
Control units of the fixed parameter for all axes differ from the
mismatch error interpolation-controlled are
interpolation control units specified with parameter block.
(error code : 40) different, control starts in the
unit of highest priority as
indicated below.
Priority degree>inch>mm
(2) The combinations of each axis control units for interpolation control are shown in
the table below.
mm inch degree
mm 1) 2) 2)
inch 2) 1) 2)
degree 2) 2) 1)
1) : Same unit 2) : Unit mismatch
7 - 44
7 MOTION PROGRAMS FOR POSITIONING CONTROL
POINT
When a "degree" is used as the control unit of one axis, a "degree" should also be
used with the other axis.
7 - 45
7 MOTION PROGRAMS FOR POSITIONING CONTROL
If the control units are "degree", the following items differ from other control units.
0 0 0
315.00000 Clockwise
Area A
90.00000
Area B
POINTS
(1) Circular interpolation including the axis which set the stroke limit as invalid
cannot be executed.
(2) When the upper/lower limit value of the axis which set the stroke limit as valid
are changed, perform the home position return after that.
(3) When the stroke limit is set as valid in the incremental data system, perform
the home position return after power supply on.
7 - 46
7 MOTION PROGRAMS FOR POSITIONING CONTROL
POINTS
(1) The positioning direction of absolute data method is set a clockwise/counter
clockwise direction by the setting method of stroke limit range, positioning in the
shortest direction may not be possible.
Example
Travel from the current value 0° to 315.00000° must be clockwise positioning if
the lower stroke limit value is set to 0°and the upper stroke limit value is set to
345.00000°.
345.00000 0
315.00000
Clockwise positioning
POINT
Positioning of 360° or more can be executed in the incremental data method.
7 - 47
7 MOTION PROGRAMS FOR POSITIONING CONTROL
Y Y : Reference point
: Mechanical
Y coordinate point
: Work coordinate point
X
Work coordinate system 2
Reference point X
Work coordinate system 1
X
Basic mechanical coordinate system
[Drilling machine]
Motor
Work coordinate system 2
Work coordinate system 1
Basic mechanical
coordinate system
Motor
Motor
7 - 48
7 MOTION PROGRAMS FOR POSITIONING CONTROL
7.13 G-code
3)
4)
5)
6)
7 - 49
7 MOTION PROGRAMS FOR POSITIONING CONTROL
Amplitude (STRK)
(Note-3)
Axis command
Remarks
Feed (F)
M-code
G-code
(I J)
PB
O
H
P
L
(Note-1)
G00 Only G-codes of G04, G43, G44 and G49 are available.
(Note-1)
G01 Only G-codes of G04, G43, G44 and G49 are available.
Only G-codes of G04 is available.
G02 Central point command and axis command may be specified up to
2 axes.
Only G-codes of G04 is available.
G02 Radius command and axis command may be specified up to 2
axes.
Only G-codes of G04 is available.
G03 Central point command and axis command may be specified up to
2 axes.
Only G-codes of G04 is available.
G03 Radius command and axis command may be specified up to 2
axes.
G04 Dwell
Only G-codes of G01, G02, G03, G12 and G13 are available.
G09 (Note-1)
G44
7 - 50
7 MOTION PROGRAMS FOR POSITIONING CONTROL
Amplitude (STRK)
Remarks
(Note-3)
Axis command
Feed (F)
M-code
G-code
PB
O
H
P
L
Only G-codes of G00, G01, G02, G03, G12, G13 and G92 are
G55 (Note-1)
available.
Only G-codes of G00, G01, G02, G03, G12, G13 and G92 are
G56 (Note-1)
available.
Only G-codes of G00, G01, G02, G03, G12, G13 and G92 are
G57 (Note-1)
available.
Only G-codes of G00, G01, G02, G03, G12, G13 and G92 are
G58 (Note-1)
available.
Only G-codes of G00, G01, G02, G03, G12, G13 and G92 are
G59 (Note-1)
available.
Only G-codes of G00, G01, G02, G03, G12 and G13 are
G61 (Note-1)
available.
Only G-codes of G00, G01, G02, G03, G12 and G13 are
G64 (Note-1)
available.
Only G-codes of G00, G01, G02, G03, G12 and G13 are
G90 (Note-1)
available.
Only G-codes of G00, G01, G02, G03, G12 and G13 are
G91 (Note-1)
available.
Only G-codes of G00, G01, G02, G03, G12 and G13 are
G92 (Note-1)
available.
G98
G99
G100
G101
: Must be specified : May be specified Blank : Must not be specified
For G43, G44, G49, G54 to G59, G90 and G91, use the currently selected modal group 01 to set the specifiable arguments.
(Note-1) : The G-code may be set in the first parameter only.
(Note-2) : The axis commands are X, Y, Z, U, V, W, A, B, CX, CY, CZ, CU, CV, CW, CA, CB, DX, DY, DZ, DU, DV, DW, DA, DB, EX, EY, EZ, EU, EV, EW, EA
and EB.
(Note-3) : The M-codes are except M00, M01, M02, M30, M98, M99 and M100.
7 - 51
7 MOTION PROGRAMS FOR POSITIONING CONTROL
Code G00
Point-to-point positioning at The positions of the specified axes are executed. (PTP)
Function
the high-speed feed rate
G 00 X x Y y Z z ;
Format Positioning address
Axis name
[Explanation]
(1) The linearly positioning of the specified axes from the current value to specified
coordinate position at the fixed speed for all axes.
(2) Since this command is a modal instruction, it is valid until another G-code in the
same modal group is used. Therefore, when the next command is the same G-
code, it is possible by specifying only the axis name. (G00, G01, G02, G03, G12
and G13 are contained in a modal group (01).)
(4) The positioning speed is the high-speed feed rate of each axis or less.
t
Acceleration time Deceleration time Acceleration time Deceleration time
(6) The positioning data can be set by direct setting (numerical value) or indirect
setting (variable : # ).
[Related Parameters]
High-speed feed rate: The maximum feed rate of each axis is set.
(Refer to Section 6.2.5 for the high-speed feed rate setting of the
fixed parameter.)
The positioning is executed in the shortest path which connects
the start and end point at the execution of G00.
The positioning speed is the high-speed feed rate of each axis
or less.
[Program Example]
Program to execute positioning of A, B, C, D and E points. (Absolute value command)
1) G00 X100. Y100. ; (A point positioning)
2) X200. ; (B point positioning) Travel with G00
3) Y200. ; (C point positioning)
4) G01 Y300. F100. ; (D point positioning)
Travel with G01
5) X300. ; (E point positioning)
Y
D 5) E
300
4)
200 C
3)
A 2)
100 B
1)
X
100 200 300 (Unit: mm)
REMARK
(1) To execute the feed rate of G00, the axis whose time to reach the target
position is the longest in the travel/high-speed feed rate (fixed parameter) of the
each axes is used as the reference axis, and interpolation is made in the
reference axis speed interpolation mode phase or the like. (Refer to Section
6.2.5.)
(2) The high-speed feed rate of each axis is clamped at the speed limit value if it is
larger than the speed limit value of the parameter block. The calculation of the
reference axis is also made using the clamped value.
7 - 53
7 MOTION PROGRAMS FOR POSITIONING CONTROL
Code G01 Linear interpolation is executed from the current position to the
Constant-speed specified end point at the specified feed rate. (Constant-speed)
Function positioning at the speed The feed rate is specified at the linear speed (combined-speed) to the
specified in F advance direction.
G0 1 X x Y y Z z F f ;
Feed rate
Format Feed rate command
Positioning address
Axis name
[Explanation]
(1) Since this command is a modal instruction, it is valid until another G-code in the
same group is used. Therefore, when the next command is G01, if the feed rate
is not changed, it is possible by specifying only the axis name.
(2) The command unit of feed rate is specified in the interpolation control unit of
parameter block.
(3) The maximum command value of feed rate is the speed limit value set in the
parameter block.
(4) If the F command is not set in the first G01 command, a program error will (error
code : 501) occur.
X-axis
t
(6) The positioning data can be set by direct setting (numerical value) or indirect
setting (variable : # ).
7 - 54
7 MOTION PROGRAMS FOR POSITIONING CONTROL
(8) If the G02 or G03 command is executed during the G01 command (Constant-
speed positioning), a deceleration stop is not made.
[Example] G01 X100. Y100. Z100. ;
Constant-speed control is
G02 X0. Y0. I0. J50. F500. ;
executed in this area.
G03 X0. Y0. I0. J50. F500. ;
G01 X100. ;
X-axis
100 200
Y-axis
200
(Note) : 1) Both the acceleration and deceleration times are the acceleration time
of the parameter block.
2) When a M-code is commanded, G00 executes the acceleration/
deceleration in the same way as G01 at the acceleration time of the
parameter block.
[Related Parameters]
Speed limit value : The maximum feed rate of each axis is set.
(Refer to Section 6.4.1 for the speed limit value of the parameter
block.)
[Program Example]
Program to execute positioning of A, B, C, D and E points. (Absolute value command)
1) G01 X100. Y100. F100. ; (A point positioning)
2) X200. ; (B point positioning) Travel with G01
3) Y200. ; (C point positioning) (Travel at feed rate
4) G00 Y300. ; (D point positioning) of 100[mm/min])
5) X300. ; (E point positioning)
Travel with G00
Y
D 5) E
300
4)
200 C
3)
A 2)
100 B
1)
X
100 200 300 (Unit: mm)
7 - 55
7 MOTION PROGRAMS FOR POSITIONING CONTROL
Code G02
The axes travel from the current position (start point) to the specified
Circular interpolation (CW)
coordinate position (end point) with a circular arc (CW).
Function Circular arc central
The travel speed is the specified feed rate.
coordinates-specified
G0 2 X x Y y I i J j F f ;
Feed rate
Format Feed rate command
Circular arc center coordinates 1, 2
End point X, Y coordinates
[Explanation]
(1) The incremental values (always use incremental values) from the current position
(start point) is used to command the circular arc center coordinates.
For G02 (CW), give the end point coordinates of the circular arc with the address
(must be specified for 2 axes) and specify the central coordinates of circular arc
with I and J.
The central coordinates 1, 2 are I and J in order of lower axis No.s.
When X=Axis 1, Y=Axis 2, I=1(X), J=2(Y)
When X=Axis 2, Y=Axis 1, I=1(Y), J=2(X)
(2) Always specify the end point coordinates for 2 axes as they cannot be omitted.
G02 (CW) : Clockwise
Y X Z
X Z Y
X-axis=Lower axis Z-axis=Lower axis Y-axis=Lower axis
(3) If the end point is in the same position as the start point, the circular arc is 360°
(complete round).
7 - 56
7 MOTION PROGRAMS FOR POSITIONING CONTROL
(6) When the circular arc central coordinates and radius are specified simultaneously
for G02 (CW), the central coordinates-specified circular interpolation has priority.
(7) The positioning data can be set by direct setting (numerical value) or indirect
setting (variable : # ).
[Related Parameters]
Speed limit value : The maximum feed rate of each axis is set.
(Refer to Section 6.4.1 for the speed limit value of the
parameter block.)
Circular interpolation arc error : The permissible circular arc error range is set.
(Refer to Section 6.4.3 for the allowable error range for
circular interpolation of the parameter block.)
[Program Example]
(1) The program which performs circular interpolation from the current position to
draw a half circle.
Feed rate 50
500[mm/min]
X
Start point
(Unit: mm)
(2) The program which performs circular interpolation from the current value to draw a
complete round.
G02 X0. Y0. I0. J50. F500. ; (Command for the complete round)
Y
Feed rate 50
500[mm/min]
X
Start/end point
(Unit: mm)
7 - 57
7 MOTION PROGRAMS FOR POSITIONING CONTROL
REMARK
(1) The end point and circular arc central coordinates cannot be omitted.
Always specify them for two axes.
(2) Circular interpolation includes the [degree] axis whose stroke limit is set to be
invalid cannot be executed.
(3) Circular interpolation cannot be executed the combination of [mm] and [degree]
or [inch] and [degree].
7 - 58
7 MOTION PROGRAMS FOR POSITIONING CONTROL
Code G03
The axes travel from the current position (start point) to the specified
Circular interpolation (CCW)
coordinate position (end point) with a circular arc (CCW).
Function Circular arc central
The travel speed is the specified feed rate.
coordinates-specified
G03 X x Y y I i J j F f ;
Feed rate
Format Feed rate command
Circular arc center coordinates 1, 2
End point X, Y coordinates
[Explanation]
(1) The incremental values (always use incremental values) from the current position
(start point) is used to command the circular arc center coordinates.
For G03 (CCW), give the end point coordinates of the circular arc with the address
(must be specified for 2 axes) and specify the central coordinates of circular arc
with I and J.
The central coordinates 1, 2 are I and J in order of lower axis No.s.
When X=Axis 1, Y=Axis 2, I=1(X), J=2(Y)
When X=Axis 2, Y=Axis 1, I=1(Y), J=2(X)
(2) Always specify the end point coordinates for 2 axes as they cannot be omitted.
G03 (CCW) : Counterclockwise
Y X Z
X Z Y
X-axis=Lower axis Z-axis=Lower axis Y-axis=Lower axis
(3) If the end point is in the same position as the start point, the circular arc is 360°
(complete round).
7 - 59
7 MOTION PROGRAMS FOR POSITIONING CONTROL
(6) When the circular arc central coordinates and radius are specified simultaneously
for G03 (CCW), the radius-specified circular interpolation has priority.
(7) The positioning data can be set by direct setting (numerical value) or indirect
setting (variable : # ).
[Related Parameters]
Speed limit value : The maximum feed rate of each axis is set.
(Refer to Section 6.4.1 for the speed limit value of the
parameter block.)
Circular interpolation arc error : The allowable error range for circular interpolation is
set.
(Refer to Section 6.4.3 for the allowable error range for
circular interpolation of the parameter block.)
[Program Example]
(1) The program which performs circular interpolation from the current position to
draw a half circle.
50 Feed rate
500[mm/min]
X
Start point
(Unit: mm)
(2) The program which performs circular interpolation from the current value to draw a
complete round.
G03 X0. Y0. I0. J50. F500. ; (Command for the complete round)
Y
50 Feed rate
500[mm/min]
X
Start/end point
(Unit: mm)
7 - 60
7 MOTION PROGRAMS FOR POSITIONING CONTROL
REMARK
(1) The end point and circular arc central coordinates cannot be omitted.
Always specify them for two axes.
(2) Circular interpolation includes the [degree] axis whose stroke limit is set to be
invalid cannot be executed.
(3) Circular interpolation in the unit combination of [mm] and [degree] or [inch] and
[degree] cannot be executed.
7 - 61
7 MOTION PROGRAMS FOR POSITIONING CONTROL
Code G02 The axes travel from the current position (start point) to the specified
Circular interpolation (CW) coordinate position (end point) with a circular arc of the specified radius
Function Radius-specified circular (CW).
interpolation The travel speed is the specified feed rate.
G02 X x Y y R r F f ;
Feed rate
Format Feed rate command
Circular arc radius
End point X, Y coordinates
[Explanation]
(1) A circular arc of more than 180° is drawn at a negative circular arc radius (R)
value, or a circular arc of 180° or less is drawn at a positive R value.
Always use an incremental value to command the R value.
End point
Start point
An error will occur if "the distance between start and end points" - radius 2>
"circular arc error".
(2) If a complete round command (the start point is the same as the end point) is
specified in R-specified circular interpolation, an error (error code : 108) will occur
and no operation is performed. Therefore, specify the circular arc central
coordinates-specified for the complete round command.
(4) When the circular arc central coordinates and radius are specified simultaneously
for G02 (CW), the radius-specified circular interpolation has priority.
(5) The positioning data can be set by direct setting (numerical value) or indirect
setting (variable : # ).
7 - 62
7 MOTION PROGRAMS FOR POSITIONING CONTROL
[Related Parameters]
Speed limit value : The maximum feed rate of each axis is set.
(Refer to Section 6.4.1 for the speed limit value of the
parameter block.)
Circular interpolation arc error : The allowable error range for circular interpolation is
set.
(Refer to Section 6.4.3 for the allowable error range for
circular interpolation of the parameter block.)
[Program Example]
(1) The program which draws a circular arc of more than 180° at a negative circular
arc radius (R) value.
X
Start 50
point (Unit: mm)
(2) The program which draws a circular arc of 180° or less at a positive circular arc
radius (R) value.
Feed rate
500[mm/min]
X
Start 50
(Unit: mm)
point
REMARK
(1) The end point coordinates and circular arc radius cannot be omitted.
Always specify the end point coordinates and circular arc radius.
(2) Circular interpolation includes the [degree] axis whose stroke limit is set to be
invalid cannot be executed.
(3) Circular interpolation in the unit combination of [mm] and [degree] or [inch] and
[degree] cannot be executed.
7 - 63
7 MOTION PROGRAMS FOR POSITIONING CONTROL
Code G03 The axes travel from the current position (start point) to the specified
Circular interpolation (CCW) coordinate position (end point) with a circular arc of the specified radius
Function Radius specified circular (CCW).
interpolation The travel speed is the specified feed rate.
G03 X x Y y R r F f ;
Feed rate
Format Feed rate command
Circular arc radius
End point X, Y coordinates
[Explanation]
(1) A circular arc of more than 180° is drawn at a negative circular arc radius (R)
value, or a circular arc of 180° or less is drawn at a positive R value.
Always use an incremental value to command the R value.
Start point
End point
An error will occur if "the distance between start and end points" - radius 2>
"circular arc error".
(2) If a complete round command (the start point is the same as the end point) is
specified in R-specified circular interpolation, an error (error code : 108) will occur
and no operation is performed. Therefore, specify the circular arc central
coordinates for the complete round command.
(4) When the circular arc central coordinates and radius are specified simultaneously
for G03 (CCW), the radius-specified circular interpolation has priority.
(5) The positioning data can be set by direct setting (numerical value) or indirect
setting (variable : # ).
7 - 64
7 MOTION PROGRAMS FOR POSITIONING CONTROL
[Related Parameters]
Speed limit value : The maximum feed rate of each axis is set.
(Refer to Section 6.4.1 for the speed limit value of the
parameter block.)
Circular interpolation arc error : The allowable error range for circular interpolation is
set.
(Refer to Section 6.4.3 for the allowable error range for
circular interpolation of the parameter block.)
[Program Example]
(1) The program which draws a circular arc of more than 180° at a negative circular
arc radius (R) value.
X
-50 Start point
(Unit: mm)
(2) The program which draws a circular arc of 180° or less at a positive circular arc
radius (R) value.
Feed rate
500[mm/min]
X
-50 Start point
(Unit: mm)
REMARK
(1) The end point coordinates and circular arc radius cannot be omitted.
Always specify the end point coordinates and circular arc radius.
(2) Circular interpolation includes the [degree] axis whose stroke limit is set to be
invalid cannot be executed.
(3) Circular interpolation in the unit combination of [mm] and [degree] or [inch] and
[degree] cannot be executed.
7 - 65
7 MOTION PROGRAMS FOR POSITIONING CONTROL
Code G04
Execution of next block is waited for the specified period of time.
Function Dwell
G04 P p ;
Format
Dwell time (1 to 65535)
[Explanation]
(1) The time from after deceleration stop of the preceding travel command until the
next block start is specified.
(3) The dwell time is specified within the range of 1 to 65535 in increments of
0.001[s].
Therefore, setting of G04 P1000 indicates a wait time of 1[s].
V
Dwell time
[Example] G04 P1000
1000 0.001=1[s]
(4) The dwell time can be set by direct setting (numerical value) or indirect setting
(variable : # ).
(5) When specifying dwell in the same block as the travel block, describe dwell after
the travel command.
Also, describe the dwell time (P) after G04.
[Example]
G00 X100 Y100 G04 P2000;
Dwell command
Travel command
(G00, G01, G02, G03, G12 or G13 can be specified.)
Next block
Dwell time
Travel command
7 - 66
7 MOTION PROGRAMS FOR POSITIONING CONTROL
[Program Example]
The program in which dwell time is placed between positioning operation instructions.
1) G01 X100. F10. ; (Positioning)
2) G04 P2000 ; (Dwell time set to 2[s])
3) G01 X200. ; (Positioning)
V
1) 3)
X-axis
t
Dwell time
2000 0.001=2[s]
The X-axis is positioned to "100.", stops there for 2[s], and starts positioning operation
to "200." again.
REMARK
(1) A decimal point cannot be specified for the dwell time.
(2) When an operation cycle (refer to Section 1.2.3) is 0.88[ms], the longest of
dwell time is 58.253[s]. (Even if P58254 to P65535 is specified, it is clamped by
58.253[s].)
7 - 67
7 MOTION PROGRAMS FOR POSITIONING CONTROL
Code G09
The axes travel in the specified block point-to-point positioning.
Function Exact stop check
G 0 9 G 01 X x F f ;
Format
May be used only in the G01, G02, G03, G12 or G13 program
[Explanation]
(1) This command is used with the interpolation command. Executing this command
travels point-to-point positioning in only the specified block.
The interpolation command codes usable with this command are G01, G02, G03,
G12 and G13 only.
(2) In this system, the next block is executed after making a deceleration stop in the
specified coordinate position.
(3) Not being a modal instruction, this command is valid for the specified block only.
X-axis
X-axis
t
(4) The positioning data can be set by direct setting (numerical value) or indirect
setting (variable : # ).
7 - 68
7 MOTION PROGRAMS FOR POSITIONING CONTROL
[Program Example]
The program which uses the exact stop check for positioning.
1) G09 G01 X100. F500. ; (Positioning by an exact stop check)
2) X200. ; (Positioning)
3) X300. ; (Positioning)
4) G09 G01 X400. ; (Positioning by an exact stop check)
X-axis 1) 2) 3) 4)
t
7 - 69
7 MOTION PROGRAMS FOR POSITIONING CONTROL
Code G12 The linear interpolation to other linear axis is executed performing 2
axes circular interpolation from the current position (start point) to
Helical interpolation (CW) circular end address or linear axis end point address, and the helical
Function Helical central coordinates- interpolation (CW) is executed so that it may become a spiral course.
specified The travel speed is the specified combined-speed for 2 axes circular
interpolation axis.
G1 2 X x Y y Z z I i J j P p F f ;
Feed rate
Feed rate command
Number of pitches (0 to 999)
Format Pitch command
Circular arc central coordinates 1, 2
(Relative address)
Linear axis end point Z coordinates
Circular interpolation axis end point
X, Y coordinates
[Explanation]
(1) The linear interpolation to other linear axis is executed performing 2 axes circular
interpolation from the current value (start point) to circular interpolation axis end
point address (X,Y) or linear axis end point address (Z), and the helical
interpolation is executed so that it may become a spiral course.
(2) Always use the incremental values (relative address) from the current position
(start point) to command the circular arc central coordinates.
An absolute values or incremental values of the circular interpolation axis end
point (X,Y) and linear axis end point (Z) depends in the modal status (G90/G91)
when executing the Motion program.
(3) Always specify the end point coordinates for 3 axes as they cannot be omitted.
(4) Only the number of times specified by the number of pitches around on the
specified circle, and it is executed positioning to end point at the specified circular
interpolation.
(6) The central coordinates 1, 2 are I and J in order of lower axis No.s by system
setting.
[Example] When X=Axis 1, Y=Axis 2, I=1(X), J=2(Y)
When X=Axis 2, Y=Axis 1, I=1(Y), J=2(X)
7 - 70
7 MOTION PROGRAMS FOR POSITIONING CONTROL
(7) The travel speed is the specified combined-speed for 2 axes circular interpolation
axis.
(9) The positioning data can be set by direct setting (numerical value) or indirect
setting (variable : # ).
(10) If start point = end point, number of pitches = 1 and travel value of linear axis = 0,
at the only central coordinates-specified helical interpolation, complete round can
be drawn.
[Related Parameters]
Speed limit value : The maximum feed rate of each axis is set.
(Refer to Section 6.4.1 for the speed limit value of the parameter
block.)
[Program Example]
G90 G00 X0. Y0. ;
G12 X100. Y100. Z100. I50. J50. P2 F1000. ;
REMARK
(1) The end point coordinates and circular arc central coordinates cannot be
omitted.
Always specify the end point coordinates for 3 axes and the circular arc central
coordinates for 2 axes.
(2) Circular interpolation includes the [degree] axis whose stroke limit is set to be
invalid cannot be executed.
(3) Circular interpolation axis in the unit combination of [mm] and [degree] or [inch]
and [degree] cannot be executed.
There is no restriction of the unit of the linear axis.
(5) The error allowable range for circular interpolation cannot be setting.
(Invalid the error allowable range for circular interpolation of the parameter
blocks. Therefore, the spiral interpolation cannot be executed in the error
allowable range for circular interpolation.)
7 - 71
7 MOTION PROGRAMS FOR POSITIONING CONTROL
The example of the direction of the nozzle of controlling the normal for circular arc
curve.
Y Start point
Nozzle
150.0
180
100.0
R=50
R=100
50.0
0.0 90 270
X
150.0 100.0 50.0 100.0 150.0
100.0
0
150.0
Z-axis (Rotation angle)
X, Y-axis
The program to start as the upper figure from start point and witch keeps a nozzle at
right angles toward the contour of line and that it goes around the contour and witch
is returned to start point. It is the following program when a helical interpolation
function is used.
[Program Example]
G90 G00 X0. Y150. Z0. ; Travel to start point
G01 X50. F1000. ;
G12 X150. Y50. Z90. I0. J-100. P0 ;
G01 Y-50. ;
G12 X50. Y-150. Z180. I-100. J0. P0 ;
G01 X-50. ;
G12 X-150. Y-50. Z270. I0. J100. P0 ;
G01 Y50. ;
G12 X-50. Y150. Z0. I100. J0. P0 ;
G01 X0 ;
M02 ;
%
7 - 72
7 MOTION PROGRAMS FOR POSITIONING CONTROL
Code G13 The linear interpolation to other linear axis is executed performing 2
axes circular interpolation from the current position (start point) to
circular interpolation axis end point address or linear axis end point
Helical interpolation (CCW)
address, and the helical interpolation (CCW) is executed so that it may
Function Helical central coordinates-
become a spiral course.
specified
The travel speed is the specified combined-speed for 2 axes circular
interpolation axis.
G1 3 X x Y y Z z I i J j P p F f ;
Feed rate
Feed rate command
Number of pitches (0 to 999)
Format Pitch command
Circular arc central coordinates 1, 2
(Relative address)
Linear axis end point Z coordinates
Circular interpolation axis end point
X, Y coordinates
[Explanation]
(1) The linear interpolation to other linear axis is executed performing 2 axes circular
interpolation from the current position (start point) to circular interpolation axis end
point address (X,Y) or linear axis end point address (Z), and the helical
interpolation control is executed so that it may become a spiral course.
(2) Always use the incremental values (relative address) from the current position
(start point) to command the circular arc central coordinates.
An absolute values or incremental values of the circular interpolation axis end
point (X,Y) and linear axis end point (Z) depends in the modal status (G90/G91)
when executing the Motion program.
(3) Always specify the end point coordinates for 3 axes as they cannot be omitted.
(4) Only the number of times specified by the number of pitches around on the
specified circle, and it is executed positioning to end point at the specified circular
interpolation.
(6) The central coordinates 1, 2 are I and J in order of lower axis No.s by system
setting.
[Example] When X=Axis 1, Y=Axis 2, I=1(X), J=2(Y)
When X=Axis 2, Y=Axis 1, I=1(Y), J=2(X)
7 - 73
7 MOTION PROGRAMS FOR POSITIONING CONTROL
(7) The travel speed is the specified combined-speed for 2 axes circular interpolation
axis.
(9) The positioning data can be set by direct setting (numerical value) or indirect
setting (variable : # ).
(10) If start point = end point, number of pitches = 1 and travel value of linear axis = 0,
at the only central coordinates-specified helical interpolation, complete round can
be drawn.
[Related Parameters]
Speed limit value : The maximum feed rate of each axis is set.
(Refer to Section 6.4.1 for the speed limit value of the parameter
block.)
[Program Example]
G90 G00 X0. Y0. ;
G13 X100. Y100. Z100. I50. J50. P2 F1000. ;
REMARK
(1) The end point coordinates and circular arc central coordinates cannot be
omitted.
Always specify the end point coordinates for 3 axes and the circular arc central
coordinates for 2 axes.
(2) Circular interpolation includes the [degree] axis whose stroke limit is set to be
invalid cannot be executed.
(3) Circular interpolation axis in the unit combination of [mm] and [degree] or [inch]
and [degree] cannot be executed.
There is no restriction of the unit of the linear axis.
(5) The error allowable range for circular interpolation cannot be setting.
(Invalid the error allowable range for circular interpolation of the parameter
blocks. Therefore, the spiral interpolation cannot be executed in the error
allowable range for circular interpolation.)
7 - 74
7 MOTION PROGRAMS FOR POSITIONING CONTROL
Code G12 The linear interpolation to other linear axis is executed performing 2
axes circular interpolation from the current position (start point) to
circular interpolation axis end point address or linear axis end point
Helical interpolation (CW)
address, and the helical interpolation (CW) is executed so that it may
Function Radius-specified helical
become a spiral course.
interpolation
The travel speed is the specified combined-speed for 2 axes circular
interpolation axis.
G1 2 X x Y y Z z R r P p F f ;
Feed rate
Feed rate command
Number of pitches (0 to 999)
Format
Pitch command
Circular arc radius
Linear axis end point Z coordinates
Circular interpolation axis end point
X, Y coordinates
[Explanation]
(1) The linear interpolation to other linear axis is executed performing 2 axes circular
interpolation from the current position (start point) to circular interpolation axis end
point address (X,Y) or linear axis end point address (Z), and the helical
interpolation is executed so that it may become a spiral course.
An absolute values or incremental values of the circular interpolation axis end
point (X,Y) and linear axis end point (Z) depends in the modal status (G90/G91)
when executing the Motion program.
(2) Only the number of times specified by the number of pitches around on the
specified circle, and it is executed positioning to end point at the specified circular
interpolation.
(3) The radius-specified circle specifies circular interpolation method connected start
point and end point at the seeing on the plane for which performs circular
interpolation.
(4) A less than half-circle circular arc command is given at a positive R (circular arc
radius) value, or a more than half-circle circular arc command is given at a
negative R value. Always use an incremental value to command the R value.
(5) The travel speed is the specified combined-speed for 2 axes circular interpolation
axis.
(6) If a complete round command (the start point is the same as the end point) is
specified in R-specified helical interpolation, a minor error will (error code : 108)
occur and no operation is performed. Therefore, specify the helical circular arc
central coordinates for the complete round command.
7 - 75
7 MOTION PROGRAMS FOR POSITIONING CONTROL
(8) The positioning data can be set by direct setting (numerical value) or indirect
setting (variable : # ).
(9) If start point = end point, number of pitches = 1 and travel value of linear axis = 0,
at the only center coordinates-specified helical interpolation, complete round can
be drawn.
[Related Parameters]
Speed limit value : The maximum feed rate of each axis is set.
(Refer to Section 6.4.1 for the speed limit value of the parameter
block.)
[Program Example]
G90 G00 X0. Y0. ;
G12 X100. Y100. Z100. R50. P2 F1000. ;
REMARK
(1) The end point coordinates and circular radius cannot be omitted.
Always specify the end point coordinates for 3 axes and the circular radius.
(2) Circular interpolation includes the [degree] axis whose stroke limit is set to be
invalid cannot be executed.
(3) Circular interpolation axis in the unit combination of [mm] and [degree] or [inch]
and [degree] cannot be executed.
There is no restriction of the unit of the linear axis.
(5) The allowable error range for circular interpolation cannot be setting.
(Invalid the allowable error range for circular interpolation of the parameter
blocks. Therefore, the spiral interpolation cannot be executed in the allowable
error range for circular interpolation.)
7 - 76
7 MOTION PROGRAMS FOR POSITIONING CONTROL
Code G13 The linear interpolation to other linear axis is executed performing 2
axes circular interpolation from the current position (start point) to
circular interpolation axis end point address or linear axis end point
Helical interpolation (CCW)
address, and the helical interpolation (CW) is executed so that it may
Function Radius-specified helical
become a spiral course.
interpolation
The travel speed is the specified combined-speed for 2 axes circular
interpolation axis.
G1 3 X x Y y Z z R r P p F f ;
Feed rate
Feed rate command
Number of pitches (0 to 999)
Format
Pitch command
Circular arc radius
Linear axis end point Z coordinates
Circular interpolation axis end point
X, Y coordinates
[Explanation]
(1) The linear interpolation to other linear axis is executed performing 2 axes circular
interpolation from the current position (start point) to circular interpolation axis end
point address (X,Y) or linear axis end point address (Z), and the helical
interpolation is executed so that it may become a spiral course.
An absolute values or incremental values of the circular interpolation axis end
point (X,Y) and linear axis end point (Z) depends in the modal status (G90/G91)
when executing the Motion program.
(2) Only the number of times specified by the number of pitches around on the
specified circle, and it is executed positioning to end point at the specified circular
interpolation.
(3) The radius-specified circle specifies circular interpolation method connected start
point and end point at the seeing on the plane for which performs circular
interpolation.
(4) A less than half-circle circular arc command is given at a positive R (circular arc
radius) value, or a more than half-circle circular arc command is given at a
negative R value. Always use an incremental value to command the R value.
(5) The travel speed is the specified combined-speed for 2 axes circular interpolation
axis.
7 - 77
7 MOTION PROGRAMS FOR POSITIONING CONTROL
(6) If a complete round command (the starting point is the same as the end point) is
specified in R-specified helical interpolation, a minor error will (error code : 108)
occur and no operation is performed. Therefore, specify the helical circular arc
central coordinates for the complete round command.
(7) When this command is executed continuously, the feed rate is not increased or
decreased at the start or end point of a block since the status is not the exact stop
check mode.
(8) The positioning data can be set by direct setting (numerical value) or indirect
setting (variable : # ).
(9) If start point = end point, number of pitches = 1 and travel value of linear axis = 0,
at the only central coordinates-specified helical interpolation, complete round can
be drawn.
[Related Parameters]
Speed limit value : The maximum feed rate of each axis is set.
(Refer to Section 6.4.1 for the speed limit value of the parameter
block.)
[Program Example]
G90 G00 X0. Y0. ;
G13 X100. Y100. Z100. R50. P2 F1000. ;
REMARK
(1) The end point coordinates and circular radius cannot be omitted.
Always specify the end point coordinates for 3 axes and the circular radius.
(2) Circular interpolation includes the [degree] axis whose stroke limit is set to be
invalid cannot be executed.
(3) Circular interpolation axis in the unit combination of [mm] and [degree] or [inch]
and [degree] cannot be executed.
There is no restriction of the unit of the linear axis.
(5) The error allowable range for circular interpolation cannot be setting.
(Invalid the error allowable range for circular interpolation of the parameter
blocks. Therefore, the spiral interpolation cannot be executed in the error
allowable range for circular interpolation.)
7 - 78
7 MOTION PROGRAMS FOR POSITIONING CONTROL
Code G23 G24 (cancel function, cancel start function) which has already been
made valid is invalidated.
Function Cancel, cancel start invalid
Valid until G24 (cancel function, cancel start function) is executed.
Format G 23 ;
[Explanation]
(1) This command makes invalid the cancel or cancel start function which has already
been made valid.
(2) This function is also made valid for the high-speed oscillation axis.
N1 G24 CAN #X100 ;
N2 G01 X200. F200. ; Cancel function is valid for N2 and N3.
N3 G25 Y START90. STRK1. F10 ;
N4 G23 ; Cancel function is invalid
(Cancel function is invalid for the high-
speed oscillation axis.)
[Program Example]
The program which makes the cancel start function valid/invalid during execution of
"O0010" program.
O0010
G24 CAN #X100 P100 PB1 ; Execution of cancel start function
G90 G01 X200. F1000. ;
G23 ; Cancel start function invalid
7 - 79
7 MOTION PROGRAMS FOR POSITIONING CONTROL
Code G24 The executing program is cancel and the specified start program
automatically starts.
Function Cancel, cancel start This function is valid until cancel or cancel start function invalid (G23) is
executed.
G 2 4 CAN #X x P n PBn ;
Parameter block No.
(Indirect setting is possible)
Format Start program No.
(Indirect setting is possible)
Cancel device
(X, Y, M, B, F)
Cancel designation
[Explanation]
(1) If the cancel device signal is turned ON during execution of this command, a
deceleration stop is made and the executing program is cancel (cancel function).
When the start program No. "Pn" has been set, after a deceleration stop by
turning ON the cancel signal, the specified program automatically starts (cancel
start function).
(2) This command cannot be used with the home position return (G28) instruction.
(3) In a waiting status for a restart (single block, M00, M01) during macro processing,
this command is made valid after completion of processing.
(4) If the cancel device turns ON during travel block switching, a cancel start is made
valid at the next travel block processing when there are no operating axes (no
high-speed oscillation axes).
(5) The device "X, Y, M, B and F" can be used for cancel. By assigning the input
signal for high-speed read function to the cancel device, response is made faster
than the input from the PLC CPU.
(6) The setting range of program No. "Pn" for a start is 1 to 1024.
(7) The parameter block of start program can be set with "PBn". The setting range of
parameter block No. "PBn" is 1 to 64. If the parameter block No. "PBn" is omitted
or it is set the outside of setting range, parameter block No. 1 is fixed.
(8) The program No. "Pn" and parameter block No. "PBn" set for a start can be set by
indirect setting with a variable, D, W, or # (2-word data).
7 - 80
7 MOTION PROGRAMS FOR POSITIONING CONTROL
(9) When G24 exists at any point between continuous constant-speed positioning
blocks, a deceleration stop is made once.
N1 G24 CAN #X100 ;
Cancel function for N1 is valid
N2 G01 X200. F2000. ;
until G24 or G23 is specified.
N3 X300. Y200. ;
N4 G24 CAN #X101 ; Cancel function for N1 is invalid and a
deceleration stop is made.
N5 G01 X50. Y50 F1000. ; Cancel function for N4 is valid until G24 or
G23 is specified.
(10) When G24 is executed after high-speed oscillation (G25), the high-speed
oscillation axis also stops.
N1 G25 X START90. STRK1. F10 ;
N2 G24 CAN #X100 P100 ; Cancel function for N2 is valid between
N3 G01 Y100. Z100. F1000. ; N3 and N5. Note that the high-speed
N4 G26 X ; oscillation axis also stops if cancel is
N5 G01 X0. Y0. Z0. F1000. ; made invalid in this area.
N6 G23 ;
(11) If the start program No. "Pn" is omitted (cancel function), the running program
ends when the cancel device turns ON.
(12) When setting the start axes in the SVST instruction, also include the axis No. to
be executed in the start program. Making a start turns ON the start acceptance
flag of the set axis. The start acceptance flag turns OFF once at a cancel time,
but it turns ON again when the axis is started in the original program at a start
program run.
7 - 81
7 MOTION PROGRAMS FOR POSITIONING CONTROL
[Program Example]
The program which cancels program operation during execution of "O0010" program
and starts "O0100" program. (Command unit is [mm].)
O0010 ;
1) G24 CAN #X100 P100 PB1 ; Execution of cancel start function
2) G90 G01 X200. F1000. ; Cancel device X100 turns ON midway.
After deceleration stop, O0100 starts.
O0100 ;
3) G90 G01 X50. F600. ; X-axis travels to 50[mm] position at
600[mm/min].
V
[mm/min]
1000.
-600.
Program O00010 Program O0100
ON
Device
OFF
X100
ON
OFF
M2001
7 - 82
7 MOTION PROGRAMS FOR POSITIONING CONTROL
Code G25
The specified axis oscillates in a Sine curve.
Function High-speed oscillation
G 2 5 X START s STRK a F f ;
Frequency
(Indirect setting is possible)
Frequency designation
(Indirect setting is possible)
Format
Amplitude (Indirect setting is possible)
Amplitude designation
Starting angle (Indirect setting is possible)
Starting angle designation
Axis name
[Explanation]
(1) The specified axis oscillates in a Sine curve.
360[degree]
Amplitude 0
Starting angle
(2) This command is valid for the specified block only (modal group (00)).
(3) After a start, operation continues until G26 high-speed oscillation stop is executed
or the stop command is input.
7 - 83
7 MOTION PROGRAMS FOR POSITIONING CONTROL
[Program Example]
The program in which the X-axis oscillates in the Sine curve of 10[mm] amplitude, 90
[degree] starting angle and 30[CPM] frequency.
(Command unit is [mm].)
G25 X START 90. STRK 10. F30 ;
(Note) : The starting angle (START) is valid to the first decimal place.
[Example] (1) START 90. .............. Means 90.0[degree].
(2) START 90 .............. Means 9.0[degree].
(3) In START #2010
#2010 = 900 ............... Means 90.0[degree].
#2010 = 1 ................... Means 0.1 [degree].
7 - 84
7 MOTION PROGRAMS FOR POSITIONING CONTROL
Code G26
The high-speed oscillation of the axis which is performing high-speed
High-speed oscillation stop
Function oscillation is stopped.
function
G 2 6 X;
Format
Axis name
[Explanation]
(1) Stops the high-speed oscillation of the axis which is performing high-speed
oscillation.
[Program Example]
N01 G91 G01 X10. Y10. F100. ;
N02 G25 X START 0. STRK 10. F100 ;
N03 G01 Y10. ;
N04 G26 X ;
N05 G01 X10. Y10. ;
M02 ;
V
Y-axis
t
G01 G01 G01
X-axis
t
G26
If the start command of the X-axis (high-speed oscillation start axis) is described in the
N03 block, a minor error (error code : 581) is displayed when this block is executed,
and this program is suspended.
7 - 85
7 MOTION PROGRAMS FOR POSITIONING CONTROL
Code G28 When the home position return request is ON, the mid point
designation is ignored and a proximity dog, count, data set, dog
cradle, stopper or limit switch combined type home position return.
Function Home position return When the home position return request is OFF, the axis returns from
the current position to the home position through the specified mid
point at high-speed feed rate.
G28 X x Y y Z z ;
Format
Mid point coordinates
[Explanation]
(1) When the home position return request is ON, this command ignores a mid point
and returns the specified axis to the home position. When the home position
return request signal (M2409+20n) is OFF, this command positions the axis from
the current position to the home position through the specified mid point at high-
speed feed rate.
Mid point
(2) The home position return method is determined by the home position return data
at the home position return request ON.
(3) Be sure to set the axis which executes the home position return. The home
position return is not executed without setting.
(5) The mid point data setting can be made by direct setting (numerical value) or
indirect setting (variable : # ).
(6) The tool length offset and virtual mechanical coordinates (Refer to Section
7.13.29.) of the axis which executed the home position are cancel.
Mid point designation depends on the position command system (G90, G91)
currently selected.
7 - 86
7 MOTION PROGRAMS FOR POSITIONING CONTROL
(7) When the control unit is [degree], operation from the mid point to the home
position differs between the absolute value command (G90) and incremental
value command (G91).
The axis travels in the nearest path under the absolute value command (G90), or
in the direction specified in the home position return direction parameter under the
incremental value command (G91).
(8) The following parameter blocks are used at the home position return (G28).
(a) Home position return request ON ….. Parameter block specified with home
position return parameter.
(b) Home position return request OFF …. Parameter block at the axis specified
program start.
[Related Parameters]
Home position address : The current value of the home position is set.
(Refer to Section 8.5.1 Home position return data.)
High-speed feed rate : The high-speed feed rate of each axis is set.
(Refer to Section 6.2.5 High-speed feed rate setting.)
[Program Example]
The program which executes the home position return from the current position
through the A point (mid point).
G90 ;
G28 X200. Y200. ; (Home position return)
REMARK
When the G28 is commanded, a home position return is made at the high-speed
feed rate.
7 - 87
7 MOTION PROGRAMS FOR POSITIONING CONTROL
Code G30 The axis returns from the current position to the second home position
Function Second home position return through the specified mid point at the high-speed feed rate.
G30 X x Y y Z z ;
Format
Mid point coordinates
[Explanation]
(1) This command positions the specified axis from the current position to the second
home position through the specified mid point at the rapid feed rate.
Mid point
(2) Be sure to set the axis which executes the second home position return. The
second home position return is not executed without setting.
(4) The mid point data setting can be made by direct setting (numerical value) or
indirect setting (variable : # ).
(5) The tool length offset and virtual mechanical coordinates (Refer to Section
7.13.29) of the axis which executed the second home position are cancel.
Mid point designation depends on the position command system (G90, G91)
currently selected.
(6) When the control unit is [degree], operation from the mid point to the second home
position differs between the absolute value command (G90) and incremental
value command (G91).
The axis travels in the nearest path under the absolute value command (G90), or
in the direction specified in the home position return direction parameter under the
incremental value command (G91).
[Related Parameters]
Second home position address : The current value of the second home position is set.
(Refer to Section 8.5.1 Home position return data.)
High-speed feed rate : The high-speed feed rate of each axis is set.
(Refer to Section 6.2.5 High-speed feed rate setting.)
7 - 88
7 MOTION PROGRAMS FOR POSITIONING CONTROL
[Program Example]
The program which executes the second home position return from the current position
through the A point (mid point).
G90 ;
G30 X200. Y200. ; (Second home position return)
A point (mid point coordinates X200, Y200)
REMARK
When the G30 command is given, a second home position return is executed at
high-speed feed rate.
7 - 89
7 MOTION PROGRAMS FOR POSITIONING CONTROL
Code G32 The axis travels at the specified feed rate, the remaining command is
suspended at the input of an external signal, and the next block is
Function Skip executed.
Dwell is skipped for the dwell command.
[Explanation]
(1) When the skip signal is entered during execution of G32, the remaining command
of that block is suspended and the next block is executed. Dwell may also be
skipped by giving the dwell command (P) in the G32 block without specifying the
axis.
(2) A format error occurs if the axis command or M-code and the dwell command are
described simultaneously.
(5) The skip function makes a skip at the skip signal ON.
(6) This command is valid for the specified block only (modal group (00)). The
interpolation type of this command is the constant-speed positioning command.
(7) When the skip signal is not input until the end point of this command block, the
block completes at the end point.
(8) For dwell/skip, the block completes on completion of the dwell processing.
7 - 90
7 MOTION PROGRAMS FOR POSITIONING CONTROL
(9) The absolute circular interpolation or the absolute helical interpolation of the next
block cannot be executed.
(11) The coasting value A between skip signal detection and a stop is represented
by the following expression.
F tc1
A [mm] = ( t1 + +Tr )
60 2
F : Command speed [mm/min]
t1 : Signal input delay time = Operation cycle + Detection delay time [s]
tc1 : Acceleration/deceleration time [s]
Tr : Position loop time constant [s]
(Reciprocal number of position control gain 1 value set in servo parameter.
When position control gain 1 = 25, Tr = 1/25 = 0.04 [s])
(12) Under the following conditions, G32 makes deceleration stop once, then
proceeds to the next block.
(a) When the point-to-point positioning command (G00, G25, G28, G30 or the
like) is executed after the G32 block
N10 G32 X100. F1000. SKIP #X10 ;
Deceleration stop is
N20 G00 X200. ;
made before this block.
N30 G32 X300. F1000. SKIP #X11 ;
(b) High-speed oscillation stop (G26) is executed after the G32 block
N10 G25 Y START 90. STRK 1. F400. ;
N20 G32 X100. F1000. SKIP #X10 ;
Deceleration stop is
N30 G26 Y ;
made before this block.
G32 X200. F1000. SKIP #X11 ;
(c) When the absolute value command (G90) or incremental value command
(G91) is executed after the G32 block
N10 G90 ;
N20 G32 X100. F1000. SKIP #X10 ;
N30 G91 ; Deceleration stop is
N40 G32 X200. Y200. F1000. SKIP #X11 ; made before this block.
(d) When the block immediately after G32 is in the constant-speed positioning
command but its command axes do not include the specified axis of the G32
block
N10 G32 X100. F1000. SKIP #X10 ;
Deceleration stop is
N20 G32 Y100. Z100. F1000. SKIP #X11 ;
made before this block.
7 - 91
7 MOTION PROGRAMS FOR POSITIONING CONTROL
[Program Example]
(1) The program designed to make multiple skips under the control of external skip
signals specified from the program midway through positioning.
(Under incremental value command)
• G91 ;
• G32 X100. F2000 SKIP #X180 ; Turns ON the X180 signal midway.
• G32 X100. F1000 SKIP #X181 ; Turns ON the X181 signal midway.
• G32 X200. F1500 SKIP #X182 ; Turns ON the X182 signal midway.
V
X-axis
t
0
X180
X181
X182
7 - 92
7 MOTION PROGRAMS FOR POSITIONING CONTROL
CAUTION
The following operation assumes that a skip (G32) is specified during constant-speed control
(G01) and the [degree] axis without a stroke range is included.
When an absolute value command exists after a skip under this condition, the last positioning
point and the travel distance in the whole program are the same independently of whether a skip
is executed or not. This is indicated by the following example.
(1) When the skip instruction is an incremental value command and subsequent instructions are
also incremental value commands
<Program example>
G91 ; <Motion without a skip>
G32 X180. SKIP#X100 F10. ; 0 180 0 270 (degree)
G01 X180. ;
G01 X270. ; <Motion with a skip>
(When a skip is made at 100 ( degree))
0 100 280 190 (degree)
(2) When the skip instruction is an absolute value command and subsequent instructions are
also absolute value commands
<Program example>
<Motion without a skip>
G90 ;
0 180 350 170(degree)
G32 X180. SKIP#X100 F10. ;
G01 X350. ;
<Motion with a skip>
G01 X170. ;
(When a skip is made at 100(degree))
0 100 350 170(degree)
7 - 93
7 MOTION PROGRAMS FOR POSITIONING CONTROL
Code G43 The axis travels with the preset offset value added to the travel
command.
By setting a difference between the tool length value and actual tool
Function Tool length offset (+)
length as the offset value, a program can be created without being
aware of the tool length.
G43 X x H h ;
Format Offset data number
Positioning address
Axis name
[Explanation]
(1) By executing this command, the axis travels to the position which results from
adding the offset value set in the tool length offset data setting registers to the
end position of the travel command.
(2) In the following cases, the tool length offset command is cancel.
(3) This command can be set to one axis only. If two or more axes are commanded
simultaneously, it is valid for the last specified axis.
(4) As this command is a modal instruction, the offset value is retained until the offset
value is cancel (G49).
(5) Tool length offset can be made to only one axis simultaneously. (Both G43 and
G44)
•
•
•
G43 X100. H1 ;
G43 Y100. H2 ; Cannot be used this way.
[Related Parameters]
Tool length offset value : Set in the tool length offset data setting registers.
(Refer to Section 5.2.6.)
7 - 94
7 MOTION PROGRAMS FOR POSITIONING CONTROL
[Program Example]
The program for which executes the positioning added the offset value to the command
position. (For absolute value command)
(Data of the tool length offset data setting registers are as follows :
H1 = 5[mm] (D1650, 1651 = 50000), H2 = 10[mm] (D1652, 1653 = 100000))
7 - 95
7 MOTION PROGRAMS FOR POSITIONING CONTROL
Code G44 The axis travels with the preset offset value subtracted from the travel
command.
By setting a difference between the tool length value and actual tool
Function Tool length offset (-)
length as the offset value, a program can be created without being
aware of the tool length.
G44 X x H h ;
Format Offset data number
Positioning address
Axis name
[Explanation]
(1) By executing this command, the axis travels to the position which results from
subtracting the offset value set in the tool length offset data setting registers from
the end position of the travel command.
(2) In the following cases, the tool length offset command is cancel.
(3) This command can be set to one axis only. If two or more axes are commanded
simultaneously, it is valid for the last specified axis.
(4) As this command is a modal instruction, the offset value is retained until the offset
value is cancel (G49).
(5) Tool length offset may be made to only one axis simultaneously. (Both G43 and
G44)
•
•
•
G44 X100. H1 ;
G44 Y100. H2 ; Cannot be used this way.
[Related Parameters]
Tool length offset value : Set in the tool length offset data setting registers.
(Refer to Section 5.2.6.)
7 - 96
7 MOTION PROGRAMS FOR POSITIONING CONTROL
[Program Example]
The program for which executes the positioning subtracted the offset value from the
command position. (For absolute value command)
(Data of the tool length offset data setting registers are as follows :
H1 = 5[mm] (D1650, 1651 = 50000), H2 = 10[mm] (D1652, 1653 = 100000))
7 - 97
7 MOTION PROGRAMS FOR POSITIONING CONTROL
Code G49
The preset tool length offset value (G43, G44) is cancel.
Function Tool length offset cancel
G49 X x ;
Format Positioning address
Axis name
[Explanation]
(1) This command cancels the preset tool length offset value (G43, G44) and
performs the specified positioning.
(2) Be sure to set the positioning address for tool length offset cancel.
[Related Parameters]
Power-on mode : At power-on, the tool length offset cancel mode is established.
[Program Example]
The program designed to cancel the offset value and perform the specified positioning
after positioning has been executed by tool length offset. (For absolute value
command) (Data of the tool length offset data setting registers are as follows :
H1 = 5[mm] (D1650, 1651 = 50000), H2 = 10[mm] (D1652, 1653 = 100000))
7 - 98
7 MOTION PROGRAMS FOR POSITIONING CONTROL
Code G53
The axis travels to the command position of basic mechanical
Mechanical coordinate
Function coordinate system at the high speed feed rate.
system selection
G53 X x Y y Z z ;
Format
Coordinates in basic mechanical
coordinate system
[Explanation]
(1) The basic mechanical coordinate system represents the position determined for a
specific machine (e.g. tool changing position, stroke end position).
It is automatically set relative to the predetermined reference point after a home
position return is executed by the CHGA instruction at power-on.
(2) Not being a modal instruction, the specified block only is valid.
(3) When G53 and G28 are specified in the same block, the latter command is valid.
G53 G28 ⋅⋅⋅⋅⋅⋅⋅ ; G28 is valid (home position return command)
G28 G53 ⋅⋅⋅⋅⋅⋅⋅ ; G53 is valid (mechanical coordinate system selection
command)
(4) When G53 and G30 are specified in the same block, the latter command is valid.
G53 G30 ⋅⋅⋅⋅⋅⋅⋅ ; G30 is valid (second home position return command)
G30 G53 ⋅⋅⋅⋅⋅⋅⋅ ; G53 is valid (mechanical coordinate system selection
command)
7 - 99
7 MOTION PROGRAMS FOR POSITIONING CONTROL
(7) Under the incremental value command (G91), the axes travel at the incremental
value of the mechanical coordinate system, and under the absolute value
command (G90), the axes travel at the absolute value of the mechanical
coordinate system.
[Example]
G91 ; (Incremental value command) G90 ; (Absolute value command)
G53 X10. Y10. ; G53 X10. Y10. ;
Y Y
(30, 30)
30 30
10 10
(10, 10)
X X
10 20 30 10 20 30
Basic mechanical coordinates Basic mechanical coordinates
(8) Positioning data can be set by direct setting (numerical value) or indirect setting
(variable : # ).
[Program Example]
The program designed to position the axes to the specified position in the work
coordinate system after positioning them to the specified position in the basic
mechanical coordinate system in the absolute value mode.
1) G90 ; (Absolute value command)
2) G53 X10. Y10. ; (Axes travel to X10. Y10. in the basic mechanical
coordinates)
3) G01 X10. Y10. F20. ; (Axes travel to X10. Y10. in the work coordinates)
Y Y
Current position
10
2)
X
10
3) Work coordinates
10
X
10 Basic mechanical coordinates
(Unit: mm)
REMARK
Travel by G53 is processed by G00. (The modal group (01) is not changed.)
7 - 100
7 MOTION PROGRAMS FOR POSITIONING CONTROL
G 54 X x Y y Z z ;
Format to Positioning located in specified
G 59 work coordinates system
[Explanation]
(1) Work coordinate systems 1 to 6 are coordinates systems specified in the
parameters or work coordinates system setting.
The offset value in the work coordinates system is set using the distance from the
basic mechanical coordinates system origin (0).
(3) As the work coordinates systems 1 to 6 is modal instruction, it is valid until the
next work coordinate system 1 to 6 selection is commanded.
(4) If G92 is commanded in any of the G54 to G59 modes, a new work coordinates
system can be set.
If G92 is commanded, all work coordinates systems (1 to 6) travel in parallel.
(5) Positioning data can be set by direct setting (numerical value) and indirect setting
(variable : # ).
7 - 101
7 MOTION PROGRAMS FOR POSITIONING CONTROL
[Related Parameters]
Work coordinates system offset value : Specify the offset in the work coordinates
system using the distance from the basic
mechanical coordinates. (Refer to Section 6.5
for the work coordinate data.)
Up to six work coordinates systems can be set.
(Work coordinates systems 1 to 6)
[Program Example]
<Work coordinates system selection>
The program for which executes the positioning to the specified position in the work
coordinates system 1.
(The offset of the work coordinates system 1 is X500, Y500)
1) G90 ; (Absolute value command)
2) G28 X0. Y0. ; (Home position return)
3) G53 X0. Y0. ; (Axes travel to the basic mechanical coordinates
home position)
4) G54 X500. Y500. ; (Axes travel to the specified position in the work
coordinates system 1)
5) G91 G01 X500. F10. ; (Incremental value command positioning)
Y Y
5)
1000 500
4)
2)
500 X
500 1000 Work coordinates system 1
3)
X
500 1000 1500 Basic mechanical coordinates
(Unit: mm)
7 - 102
7 MOTION PROGRAMS FOR POSITIONING CONTROL
1000
X-200
7 - 103
7 MOTION PROGRAMS FOR POSITIONING CONTROL
Code G61
It travels in the point-to-point positioning (PTP).
Function Exact stop check mode
Format G 61 ;
[Explanation]
(1) This command is used with the interpolation command. Executing this command
travels in the point-to-point positioning.
The interpolation command codes usable with this command are G01, G02, G03,
G12 and G13 only.
(2) In this system, the next block is executed after deceleration stop for every
specified coordinates.
(3) As this command is modal command, it is valid until the cutting mode (G64) is
commanded.
X-axis
t
X-axis
t
7 - 104
7 MOTION PROGRAMS FOR POSITIONING CONTROL
[Program Example]
The program for which executes the positioning in the exact stop check mode.
1) G61 G01 X100. F500. ; (Positioning in the exact stop check mode)
2) X200. ; (Positioning in the exact stop check mode)
3) X300. ; (Positioning in the exact stop check mode)
X-axis 1) 2) 3)
t
REMARK
Only the high-speed feed rate may be the specified speed in G00. To specify the
speed every time point-to-point positioning is executed, you can use G61 and G01.
7 - 105
7 MOTION PROGRAMS FOR POSITIONING CONTROL
Code G64 The next block continuously executes without deceleration stop
Function Cutting mode between cutting feed blocks.
Format G 64 ;
[Explanation]
(1) This command is used to execute the positioning to the specified coordinates
position approximately. It operates continuously without deceleration stop for every
specified coordinates as the exact stop check mode.
Use this command to make a smooth connection with the interpolation command
(G01, G02, G03, G12, G13).
(3) As this command is modal instruction, it is valid until the exact stop check mode
(G61) is commanded.
X-axis
X-axis
7 - 106
7 MOTION PROGRAMS FOR POSITIONING CONTROL
[Program Example]
The program for which executes the positioning in the cutting mode.
1) G64 G01 X100. F500. ; (Positioning in the cutting mode)
2) X200. ; (Positioning in the cutting mode)
3) X300. ; (Positioning in the cutting mode)
V
X-axis 1) 2) 3)
t
7 - 107
7 MOTION PROGRAMS FOR POSITIONING CONTROL
Code G90
The coordinates command is set as an absolute value command.
Function Absolute value command
G90 X x Y y Z z ;
Format
Locating position
[Explanation]
(1) In the absolute value command mode, the axes travel to the specified coordinates
position regardless of the current position. The positioning command set after
execution of this command operates with the absolute value from the home
position coordinates.
(2) As this command is modal instruction, it is valid until the incremental value
command mode (G91) is commanded.
(3) The absolute value command mode is selected at a Motion program start.
[Example] G90 X100. Y100. ;
Y Y
(100, 100)
100 (100, 100) 100
50 50
Current position (50, 50)
Current position (80, 20)
X X
50 100 50 100
Current position coordinates of X50, Y50 Current position coordinates of X80, Y20
(Unit: mm)
(4) Positioning data can be set by direct setting (numerical value) and indirect setting
(variable : # ).
7 - 108
7 MOTION PROGRAMS FOR POSITIONING CONTROL
[Program Example]
Example of comparison between the absolute value command and incremental value
command
X
(Unit: mm)
7 - 109
7 MOTION PROGRAMS FOR POSITIONING CONTROL
Code G91
The coordinates command is set as an incremental value command.
Function Incremental value command
G 91 X x Y y Z z ;
Format
Locating position
[Explanation]
(1) In the incremental value command mode, the axes travel the distance of the
specified relative value from the start point (0) of the current position.
The positioning command set after execution of this command operates with the
incremental value from the current position.
(2) As this command is modal instruction, it is valid until the absolute value command
mode (G90) is commanded.
(3) The absolute value command mode is selected at a Motion program start.
[Example] G91 X100. Y100. ;
Y Y
100 100
50 50
Current position (50, 50)
Current position (80, 20)
X X
50 100 150 50 100 150 200
Current position coordinates of X50, Y50 Current position coordinates of X80, Y20
(Unit: mm)
(4) Positioning data can be set by direct setting (numerical value) and indirect setting
(variable : # ).
7 - 110
7 MOTION PROGRAMS FOR POSITIONING CONTROL
[Program Example]
Example of comparison between the incremental value command and absolute value
command
X
(Unit: mm)
7 - 111
7 MOTION PROGRAMS FOR POSITIONING CONTROL
G92 X x Y y Z z ;
Format
Setting coordinate value
(Set the offset from the current position)
[Explanation]
(1) The current position in the work coordinate system is changed to the specified
coordinates value, a new work coordinates is set. The work coordinates system is
set in the specified position (offset from the current position).
By making coordinates system setting, the virtual mechanical coordinates is set
and the work coordinate systems 1 to 6 travel in parallel.
X
New work coordinates
X
Work coordinates Old work coordinates
X
Virtual mechanical
X coordinates
Mechanical coordinates Mechanical coordinates
(2) Positioning data can be set by direct setting (numerical value) and indirect setting
(variable : # ).
POINT
If the current value is changed in G92, the current value data restored after a power
failure is based on the status prior to execution of G92.
7 - 112
7 MOTION PROGRAMS FOR POSITIONING CONTROL
[Program Example]
The program for which set the work coordinate system to the specified position.
X
20
New work coordinates
X
Work coordinates Old work coordinates
X
Virtual mechanical
coordinates
X
Mechanical coordinates Mechanical coordinates
(Unit: mm)
7 - 113
7 MOTION PROGRAMS FOR POSITIONING CONTROL
G 98 ;
Format
G 99 ;
[Explanation]
(1) The preread disable mode after that when G98 is executed.
As this command is a modal instruction, it is valid until the preread enable (G99)
being commanded.
(2) The preread enable mode after that when G99 is executed.
As this command is a modal instruction, it is valid until the preread disable (G98)
being commanded.
[Program Example]
G90 ; G90 ;
G98 ; G99 ;
N10 G01 X10. F10. ; Even if # 100 N10 G01 X10. F10. ;
N15 IF [#100 EQ150] GOTO30 ; changes in the N20 IF [#100 EQ150] GOTO30 ;
N20 G01 X20. ; preread disable N20 G01 X20. ;
mode while
N30 G01 X30. ; executing this line, it N30 G01 X30. ;
is reflected below
IF.
t t
7 - 114
7 MOTION PROGRAMS FOR POSITIONING CONTROL
REMARK
(1) Preread is disabled until G99 is executed after it blocks it modal G98, and being
specified only though preread is stopped in the block that M100 (preread dis-
able) was not modal, and specified once.
7 - 115
7 MOTION PROGRAMS FOR POSITIONING CONTROL
G10 0 ;
Format
G10 1 ;
[Explanation]
(1) The acceleration/deceleration method of the travel command G01, G02, G03,
G12, G13, G32 or G00 (with M-code) is switched to time-fixed
acceleration/deceleration or acceleration-fixed acceleration/deceleration.
(3) Use G100 to select the time-fixed acceleration/deceleration. The G100 status is
selected at a start.
(7) When G100 is changed to G101 or G101 to G100, a deceleration stop is made
once.
7 - 116
7 MOTION PROGRAMS FOR POSITIONING CONTROL
[Program Example]
The program designed to make the acceleration-fixed acceleration/deceleration mode
of the acceleration/deceleration system valid, then invalid midway through the program.
(Command unit : [mm])
O10 ;
G91 ;
N1 G28 X0. Y0. ;
Time-fixed acceleration/deceleration(Operation is
N2 G01 X100. F1000. ;
performed in G100 at a start)
N3 Y100. ; Deceleration stop after execution
N4 G101 ;
N5 X100. ; Acceleration-fixed acceleration/deceleration
N6 Y100. ; Deceleration stop after execution
N7 G100 ;
N8 X100. ; Time-fixed acceleration/deceleration
N9 Y100. ;
M02 ;
%
7 - 117
7 MOTION PROGRAMS FOR POSITIONING CONTROL
REMARK
About locus of G100/G101
Locus commanded from the Motion controller is different by setting of the
G100/G101.
(1) Locus of G100
Time-fixed acceleration/deceleration method is used to enable the smooth
operation between positioning points for CP operation. In the case of a
continuous point of G01 (CP Linear interpolation), it passes roundly inside in a
point during positioning. And in the case of G02/G03 (Circular interpolation), the
locus is inside further than a circular arc set in a program. The degree which
become inside further than a positioning point changes by the
acceleration/deceleration time or speed.
This is indicated by the following example.
Example
(1) Linear interpolation
The direction changes to 90° in a point during positioning. The acceleration of X-axis starts near the
positioning point with deceleration of Y-axis, it becomes to a rounded locus. X-axis operates with
constant-speed after Y-axis stops, and the positioning is executed to the next point.
Y-axis
O100;
G100; Positioning point
G91 G01 X0.Y100.F100.;
1) Acceleration of X-axis
X100.; 3) Deceleration stop in Y-axis
starts with deceleration
M02; of Y-axis.
% 2) Smooth operation without
passing the positioning
X-axis point set in a program
Time-fixed acceleration/
deceleration method
3)
Y-axis
1)
X-axis 2)
Time-constant
O110;
Circular locus set in a
G100;
program
G90 G02 X0.Y0.I0.J50.F500.;
M02; Locus after process of
% time-fixed acceleration/
deceleration.
The locus is inside further
than a circular arc set in
a program.
7 - 118
7 MOTION PROGRAMS FOR POSITIONING CONTROL
O200; Y-axis
Acceleration-fixed X-axis
acceleration/deceleration
method
Y-axis
1)
X-axis
O210;
G101; Correct locus control on
G90 G02 X0.Y0.I0.J50.F500.; circular arc set in a program
M02;
%
7 - 119
7 MOTION PROGRAMS FOR POSITIONING CONTROL
7.14 M-Code
(1) M-codes
When a Motion program is executed, the 4-digit code data following M is output to
the data register (D) in the M command block.
The processing of the next block is not executed until the FIN signal (M3219+20n)
is input.
(Refer to Section 8.10 for relationships between the M-codes and FIN signal.).
<Command format>
M
Setting range : 0 to 9999
Numeral (except M00, M01, M02, M30, M98, M99 and M100)
The M-codes usable are 9993 types since M00, M01, M02, M30, M98, M99 and
M100 are fixed in functions and they are special M-codes.
(Refer to Section 7.15 for the Special M-Code.)
7 - 120
7 MOTION PROGRAMS FOR POSITIONING CONTROL
The arguments of the special M-codes are shown in Table 7.4 below.
7 - 121
7 MOTION PROGRAMS FOR POSITIONING CONTROL
Code M00
Execution of program is stopped.
Function Program stop
Format M0 0 ;
[Explanation]
Executing this command stops the program without execution of the next block.
By turning ON the re-start command (M4404+10n) after a stop, execution resumes
from the next block.
[Program Example]
The program for which makes the program stop during positioning operation and
restarts positioning.
1) G01 X100. F10. ; (Positioning)
2) M00 ; (Program stop) Re-start command (M4404+10n) ON
3) G01 X200. ; (Re-start command resumes positioning)
V
7 - 122
7 MOTION PROGRAMS FOR POSITIONING CONTROL
Code M01 When the optional program stop is ON, executing M01 stops an
Function Optional program stop execution of program.
Format M0 1 ;
[Explanation]
When the optional program stop command (M4401+10n) is ON, executing this
command stops the program without execution of the next block.
By turning ON the restart signal command (M4404+10n) after a stop, execution
resumes from the next block.
When the optional program stop command (M4401+10n) is OFF, the next block is
executed without a program stop.
[Program Example]
The program which uses the optional program stop (M01).
1) G01 X100. F10. ; (Positioning)
2) M01 ; (Optional program stop)
3) G01 X200. ; (Positioning)
REMARK
M01 performs the same operation as "M00" when the optional program stop
command (M4401+10n) is ON.
7 - 123
7 MOTION PROGRAMS FOR POSITIONING CONTROL
Code M02
Program is ended.
Function Program end
Format M0 2 ;
[Explanation]
Executing this command ends an execution of program.
This command is required at the end of a program.
[Program Example]
The program which ends a program after positioning control.
G90 ; (Absolute value command)
G01 X100. Y200. F100. ; (Positioning)
X200. Y300. ; (Positioning)
G00 X0. Y0. ; (Positioning)
M02 ; (Program end) ..... Also be enabled by M30.
%
REMARK
M02 and M30 have the same function.
7 - 124
7 MOTION PROGRAMS FOR POSITIONING CONTROL
Code M30
Program is ended.
Function Program end
Format M3 0 ;
[Explanation]
Executing this command ends an execution of program.
This command is required at the end of a program.
[Program Example]
The program which is ends a program after positioning control.
G90 ; (Absolute value command)
G01 X100. Y200. F100. ; (Positioning)
X200. Y300. ; (Positioning)
G00 X0. Y0. ; (Positioning)
M30 ; (Program end) ..... Also be enabled by M02.
%
REMARK
M30 and M02 have the same function.
7 - 125
7 MOTION PROGRAMS FOR POSITIONING CONTROL
M 98 P p H h L l ;
Subprogram repetition count (1 to 9999)
Format Subprogram call sequence No. (1 to 9999)
Subprogram call program No. (1 to 512)
M99 ;
[Explanation]
(1) The program of the same pattern can be registered as a single subprogram and
called as required from the main program.
(2) A subprogram can be called from another subprogram. This is called subprogram
nesting. Subprograms may be called (nested) to the depth of eight levels.
Main program Subprogram Subprogram Subprogram Subprogram
(3) When a subprogram ends by error, a main program also ends in the subroutine
call by M98/M99 for the axis designation program.
7 - 126
7 MOTION PROGRAMS FOR POSITIONING CONTROL
[Program Example]
The program designed to run the specified subprogram twice repeatedly, return to the
main program, and complete operation.
Main program Subprogram
O0110 ; O0120 ;
...
...
M98 P120 H20 L2 ; N20 ;
...
... ...
M02 ;
% M99 ;
%
2)
Main program Subprogram Subprogram
O0200 ; O0201 ; O0202 ;
N010 M98 P202 ; ..................... 1) N200 G91 ; N300 G91 ;
N020 G90 ; N210 G01 X100. Y100. F2000. ; 4) G61 ;
3)
G61 ; X200. ; N310 G02 X50. Y50. I0. J50. F500. ;
N030 G01 X50. Y50. F800. ; Y200.; N320 G01 X100. Y100. F1500. ;
X60. ; N220 G01 Y300. F1500. ; N330 G90 ;
N040 G00 X10. ; X300. ; M99 ; ................... 2), 5), 8)
G01 Y100. F600. ; N230 G02 X50. Y50. I0. J50. F800. ; %
N050 M98 P201 ; ..................... 3) N240 G01 X100. Y500. F2000. ;
N060 G0 X30. Y20. ; N250 M98 P202 ; ..................... 4)
X20. ; 6) M99 ; .............................. 6) 5)
N070 M98 P202 ; ..................... 7) %
N080 G91 G01 X100. F700. ;
X20. ;
Y30. ;
M02 ;
%
7)
8)
7 - 127
7 MOTION PROGRAMS FOR POSITIONING CONTROL
Code M100
Preread is not executed on the G-code (Motion program).
Function Preread disable
Format M1 0 0 ;
[Explanation]
Executing this command does not execute preread on the G-code (Motion programs).
After completion of motion up to the preceding block, the next block is processed.
[Program Example]
N10 G01 X10. F10. ; Since M100 exists in the next block, a
M100 ; change in #2000 during execution of the
IF [#2000 EQ150] GOTO20 ; command on this line is reflected on the
IF statement below.
N15 G01 Y10. ;
N20 G01 X0. Y0. ;
X-axis
X-axis
t t
V V
Y-axis Y-axis
t t
(Note) (Note)
(Note) : When M100 is executed, constant-speed positioning does not continue from
N10 to N15 or from N10 to N20 and a deceleration stop is made once after
execution of N10.
7 - 128
7 MOTION PROGRAMS FOR POSITIONING CONTROL
7.16 Miscellaneous
The settable arguments in the first character are shown in Table 7.5 below.
7 - 129
7 MOTION PROGRAMS FOR POSITIONING CONTROL
I F [expression] G O T O n ;
Format
Sequence No.
[Explanation]
(1) If the specified expression is true (1) (condition is satisfied), execution jumps to the
sequence No. specified in GOTO.
If the expression is false (0), the next line is executed.
Code Meaning
EQ Equal to (=)
NE Not equal to (!=)
GT Greater than (>)
LT Less than (<)
GE Greater than or equal to (>=)
LE Less than or equal to (<=)
(4) The line number specified in GOTO must exist in the same program. If it does not
exist, an error (error code : 541) occurs.
(5) If only GOTOn is specified, execution jumps to the specified sequence No.
unconditionally.
(6) The GOTO statement cannot cause execution to go into or come out of the THEN
and ELSE statements.
It is similar for the DO statement.
7 - 130
7 MOTION PROGRAMS FOR POSITIONING CONTROL
[Program Example]
The program for which jumps the specified sequence No. if the condition is satisfied.
O00201 ;
N200 G91 ;
N210 G01 X100. Y100. F2000. ;
X200. ;
Y200. ;
IF [#@100] GOTO230 ; (If #@100 is true, execution jumps to N230.)
Jump to N220 G01 Y300. F1500. ;
N230 X300. ;
N230 G02 X50. Y50. I0. J50. F800. ;
N240 G01 X100. Y500. F2000. ;
IF [#@110 EQ 180] GOTO260 ; (If #@110 is 180, execution jumps to N260.)
Jump to N250 G00 X10. ;
N260 Y100. ;
N260 G28 X0. Y0. ;
M02 ;
%
REMARK
Only one comparison instruction may be used in one block.
7 - 131
7 MOTION PROGRAMS FOR POSITIONING CONTROL
I F [expression ] T H E N m ;
IF identification number
(1 to 32)
Block U group
Format
E L S Em;
Block U group
ENDm ;
[Explanation]
(1) If the specified expression is true (1) (condition is satisfied), the THEN statement
(block group up to ELSE) is executed. If it is false (0) (condition is not satisfied),
the ELSE statement (block group up to END) is executed.
IF [#@100 EQ1] THEN1 ;
If #@100 is 1, the block group described here is executed.
ELSE1 ;
If #@100 is not 1, the block group described here is executed.
END1 ;
(2) When ELSE is omitted, the block group up to END is executed only if the
conditional expression is true.
IF [#@100 EQ1] THEN1 ;
If #@100 is 1, the block group described here is executed.
END1 ;
(3) The multiprogramming depth is up to three levels including that of the WHILE
statement.
IF [ ] THEN1 ;
IF [ ] THEN2 ;
IF [ ] THEN3 ;
END3 ;
END2 ;
END1 ;
(4) The GOTO statement cannot cause execution to go into or come out of the THEN
and ELSE statements.
7 - 132
7 MOTION PROGRAMS FOR POSITIONING CONTROL
[Program Example]
O0001 ;
N1 G91 ;
N2 G01 X100. Y100. F2000 ;
N3 X200. ;
N4 Y200. ;
N5 IF [#@100 EQ0] THEN1 ; When #@100=0, THEN1 to END1 are executed.
N6 G01 Y300. F1500 ;
N7 X300. ;
N8 END1 ;
N9 G02 X50. Y50. I0. J50. F800 ;
N10 G01 X100. Y500. F2000 ;
N11 IF [#@110] THEN2 ; When #@110 is true, THEN2 to ELSE2 are executed.
N12 G00 X10. ;
N13 Y100. ;
N14 ELSE2 ; When #@110 is false, ELSE2 to END2 are executed.
N15 G28 X0. Y0. ;
N16 END2 ;
N17 M02 ;
%
(Note) : Note that if the sequence No. (N ) is omitted in the above program, the
block No. changes as indicated below.
Program Execution block No. (A) Execution block No. (B) Execution block No. (C) Execution block No. (D)
O1 ; 0 0 0 0
G91 ; 1 1 1 1
G01 X100. Y100. F2000 ; 2 2 2 2
X200. ; 3 3 3 3
Y200. ; 4 4 4 4
IF [#@100 EQ0] THEN1 ; 5 5 5 5
G01 Y300. F1500 ; 6 — 6 —
X300. ; 7 — 7 —
END1 ; 8 — 8 —
G02 X50. Y50. I0. J50. F800 ; 9 6 9 6
G01 X100. Y500. F2000 ; 10 7 10 7
IF [#@110] THEN2 ; 11 8 11 8
G00 X10. ; 12 9 — —
Y100. ; 13 10 — —
ELSE2 ; 14 11 — —
G28 X0. Y0. ; — — 12 9
END2 ; — — 13 10
M02 ; 15 12 14 11
% — — — —
(A) indicates that #@100 = 0 and #@110 is true. (B) indicates that #@100 0 and #@110 is true.
(C) indicates that #@100 = 0 and #@110 is false. (D) indicates that #@100 0 and #@110 is false.
7 - 133
7 MOTION PROGRAMS FOR POSITIONING CONTROL
W H I LE [ conditional expression ] D O m ;
Format WHILE identification number
(1 to 32)
ENDm ;
[Explanation]
(1) While the [conditional expression] holds, blocks between the next block and
ENDm block are executed repeatedly, and when it does not hold, execution shifts
to the block next to ENDm.
(2) WHILE [conditional expression] DOm and ENDm are used in pairs.
The range of identification No. m is 1 to 32.
END3 ;
:
END2 ;
:
END1 ;
7 - 134
7 MOTION PROGRAMS FOR POSITIONING CONTROL
(4) The GOTO statement cannot cause execution to go into or come out of the DO
statement.
[Program Example]
The program for which jumps to the specified line if the condition is satisfied.
O0110 ;
N1 #@0=0 ;
N2 G91 G00 X25. Y50. ;
N3 WHILE [#@0 LT3] D01 ;
N4 G03 X0. Y0. I25. J0. F100. ; (Note-1)
N5 #@0=#@0+1 ; ................. (Note-2)
N6 END1 ;
N7 G28 X0. Y0. ;
N8 M02 ;
%
Y
50
25
X
0 25 50 75
(Note) : Note that if the sequence No. (N ) is omitted in the above program,
the block No. changes as indicated below.
7 - 135
7 MOTION PROGRAMS FOR POSITIONING CONTROL
Code +, -, *, /, MOD, =
Addition (+), subtraction (-), multiplication (*), division (/),
Four fundamental operators,
Function remainder (MOD) and assignment (=) are executed.
assignment operator
n 1 Operator n2 ;
Format Numerical value or variable
Operator (+, -, *, /, MOD,=)
Numerical value or variable
[Explanation]
(1) Calculation of the specified operator is performed.
(2) The priority of operations is in order of function, multiplication type operation and
addition type operation.
#@100 = #@110 + #@120 * SIN [#@130] ;
1) Function
2) Multiplication type operation
3) Addition type operation
(3) The area of operation where you want to give priority can be enclosed in [ ].
[ ] can be five levels deep including [ ] of a function. An operational expression
may be described in up to 72 characters. (Up to the maximum number of
characters in one block)
#@100 = SQRT [ [ [#@110 - #@120] * SIN [#@130] + #@140] * #@150] ;
First level Second level Third
level
(4) For +, -, * and /, the operation result type is used for operation. Operation data 1, 2
are converted into the operation result type. The operation result can be the 16-,
32- or 64-bit type.
Operation result = operation data 1 operator operation data 2
Operation result
is stored Operation is performed after conversion of operation data
1, 2 into operation result type.
7 - 136
7 MOTION PROGRAMS FOR POSITIONING CONTROL
(5) For MOD, the 16- or 32-bit type is used for operation. If operation data 1, 2 are the
64-bit type, they are converted into the 32-bit type.
The operation result can be the 16-, 32- or 64-bit type, but if the operation result is
the 64-bit type, the result of operation performed with the 32-bit type is converted
into the 64-bit type and the result of conversion is stored.
Operation result = operation data 1 operator operation data 2
Operation result
is stored Operation is performed after conversion of operation data
Note that if operation
result is 64-bit type, 1, 2 into operation result type.
32-bit type is converted Note that if operation result is 64-bit type, 32-bit type is
into 64-bit type.
used to perform operation.
(6) The following operational expressions will result in a "Format error" (error code :
560).
#@10 = ##@20 ; Possible if #@10 = #[#@20] ;
#@10 = #@20 + - #@30 ; Possible if #@10 = #@20 + [- #@30] ;
(7) If there is no operation result (if operation exists in the operation result, or for
conditional expression such as the IF statement), the 32-bit type is used to
perform operation.
[Program Example]
The program for which execute the positioning based on the result of the specified
operation.
O0200 ;
#@40L = 1000000 ;
#@60L = 767 ;
#@80L = 10000 ;
#@30L = [#@40L + 50000] * 2 ;
#@50L = #@60L MOD 256 ;
#@70L = #@80L * 2 ;
N060 G00 X#@30L Y#@50L ;
X20. ;
N080 G91 G01 X100. F#@70L ;
X20. ;
Y30. ;
M02 ;
%
7 - 137
7 MOTION PROGRAMS FOR POSITIONING CONTROL
f u n c t io n [ n ] ;
Format Numerical value (can be specified indirectly)
Trigonometric function
(SIN, COS, TAN, ASIN, ACOS, ATAN)
[Explanation]
(1) The operation of the specified trigonometric function is performed.
(2) The operation result is a 32-bit integer (BIN value) including four decimal places.
(3) When the argument of the trigonometric function has no decimal point, the
operation result is similarly a BIN value including four decimal places.
[Program Example]
#2010 : L = SIN [60.] ; #2010 : L = 8660
#2016 : L = SIN [600000] ; #2016 : L = 8660
#2020 : L = COS [45.] ; #2020 : L = 7071
#2026 : L = COS [450000] ; #2026 : L = 7071
#2030 : L = TAN [30.] ; #2030 : L = 5773
#2036 : L = TAN [300000] ; #2036 : L = 5773
#2040 : L = ASIN [0.8660] ; #2040 : L = 599970
#2046 : L = ASIN [8660] ; #2046 : L = 599970
#2050 : L = ACOS [0.7071] ; #2050 : L = 450005
#2056 : L = ACOS [7071] ; #2056 : L = 450005
#2060 : L = ATAN [1.] ; #2060 : L = 450000
#2066 : L = ATAN [10000] ; #2066 : L = 450000
7 - 138
7 MOTION PROGRAMS FOR POSITIONING CONTROL
Code INT
Floating-point type real
A floating-point type real number is converted into a 32-bit integer (BIN
number processing
Function value) including four decimal places.
instruction
Real number to BIN value
INT [ n ] ;
Format Indirect setting only
Real number to 32-bit integer
(BIN value) conversion command
[Explanation]
(1) A floating-point type real number is converted into a 32-bit integer (BIN value)
including four decimal places.
(2) A floating-point type real number is processed as single precision (32-bit) in the
binary floating-point format of the IEEE Standard.
Sign part ...................... 1 bit
Exponent part .............. 8 bits
Significant digit part...... 23 bits
31 22 15 Bit 0
Bits 0 to 22 : Significant digit part
(3) The following values can be handled as floating-point type real numbers.
-1.0 2128 < value -1.0 2 -126 , 0, 1.0 2 –126 value < 1.0 2128
[Program Example]
#2002 : L = 10000 ;
#2004 : L = FLT [#2002 : L] ; #2004 : L = (461C4000) 16
(D2004, D2005 = (461C4000) 16)
#2006 : L = INT [#2004 : L] ; #2006 : L = 10000
7 - 139
7 MOTION PROGRAMS FOR POSITIONING CONTROL
Code FLT
Floating-point type real
number processing A 32-bit integer (BIN value) including four decimal places is converted
Function instruction into a floating-point type real number.
BIN value to real number
conversion
F LT [ n ] ;
Format Indirect setting only
32-bit integer (BIN value) to real
number conversion command
[Explanation]
(1) A 32-bit integer (BIN value) including four decimal places is converted into a
floating-point type real number.
(2) A floating-point type real number is processed as single precision (32-bit) in the
binary floating-point format of the IEEE Standard.
Sign part ...................... 1 bit
Exponent part .............. 8 bits
Significant digit part...... 23 bits
31 22 15 Bit 0
Bits 0 to 22 : Significant digit part
(3) The following values can be handled as floating-point type real numbers.
-1.0 2128 < value -1.0 2 -126 , 0, 1.0 2 –126 value < 1.0 2128
[Program Example]
#2002 : L = 10000 ;
#2004 : L = FLT [#2002 : L] ; #2004 : L = (461C4000) 16
(D2004, D2005 = (461C4000) 16)
#2006 : L = INT [#2004 : L] ; #2006 : L = 10000
7 - 140
7 MOTION PROGRAMS FOR POSITIONING CONTROL
7.16.8 32-bit real number and 64-bit real number data conversion (DFLT, SFLT)
Code DFLT, SFLT The DFLT instruction converts the data from 32-bit real number to 64-
bit real number.
32-bit real number and 64-bit
Function The SFLT instruction converts the data from 64-bit real number to 32-bit
real number data conversion
real number.
DFLT [ n ] ;
Indirect setting only
32bit real number 64bit real number data
conversion command
Format
SF L T [ n ] ;
Indirect setting only
64bit real number 32bit real number data
conversion command
[Explanation]
(1) DFLT : 32-bit real number data (a floating-point type) is converted 64-bit real
number data (a floating-point type).
(2) SFLT : 64-bit real number data (a floating-point type) is converted 32-bit real
number data (a floating-point type).
[Program Example]
#2004F = DFLT [#2002L] ;
#2010L = SFLT [#2012F] ;
REMARK
32-bit real number data is used in QCPU, and the data conversion between Motion
CPU and PLC CPU must use this instruction.
7 - 141
7 MOTION PROGRAMS FOR POSITIONING CONTROL
7.16.9 Functions (SQRT, ABS, BIN, BCD, LN, EXP, RND, FIX, FUP)
SQRT, ABS, BIN, BCD, Operations of SQRT (square root), ABS (absolute value), BIN (BCD to
Code LN, EXP, RND, FIX, BINARY conversion), BCD (BINARY to BCD conversion), LN (natural
FUP logarithm), EXP (base e exponent), RND (round off), FIX (round down)
Function Functions and FUP (round up) are executed.
f unc t i o n [ n ] ;
Format Numerical value (Indirect setting is possible)
Function
(SQRT, ABS, BIN, BCD, LN, EXP, RND, FIX, FUP)
[Explanation]
(1) Operation of the specified function is executed.
(2) Refer to Items (5), (6), (7) in Section 7.11.3 for the operation result.
[Program Example]
#2010L = SQRT [100] 10 enters [D2011, D2010].
#2020L = ABS [-25] 25 enters [D2021, D2020].
#2030L = BIN [100] 64 enters [D2031, D2030].
#2040L = BCD [100] 256 enters [D2041, D2040].
#2050L = LN [1000000] 13 enters [D2051, D2050].
#2060L = EXP [20] 485165195 enters [D2061, D2060].
#2070F = RND [14/3] 5 enters [D2073, D2072, D2071, D2070]
(64-bit floating-point type).
#2080F = FIX [14/3] 4 enters [D2083, D2082, D2081, D2080]
(64-bit floating-point type).
#2090F = FUP [14/3] 5 enters [D2093, D2092, D2091, D2090]
(64-bit floating-point type).
#2170F = RND [-14/3] -5 enters [D2173, D2172, D2171, D2170]
(64-bit floating-point type).
#2180F = FIX [-14/3] -5 enters [D2183, D2182, D2181, D2180]
(64-bit floating-point type).
#2190F = FUP [-14/3] -4 enters [D2193, D2192, D2191, D2190]
(64-bit floating-point type).
7 - 142
7 MOTION PROGRAMS FOR POSITIONING CONTROL
[Explanation]
(1) Operation of the specified logical operator is executed.
(2) Only the integer types (16-bit type, 32-bit type) may be used to perform logical
operation. Logical operation including the 64-bit floating-point type cannot be
performed. (error 560 : Format error)
The operation result can be 16- or 32-bit type, but it is converted into the operation
result type for operation.
(3) The area of operation where you want to give priority can be enclosed in [ ]. [ ]
can be five levels deep including [ ] of a function. An operational expression may
be described in up to 72 characters. (Up to the maximum number of characters in
one block)
<For AND, OR, XOR, <<, >> >
Operation result = operation data 1 operator operation data 2 ;
Operation result
is stored Operation is performed after conversion of operation data
1, 2 into operation result type.
Note that operation including 64-bit floating-point type cannot be performed.
<For NOT>
Operation result = NOT [operation data 1] ;
Each bit of operation data 1 is inverted and result
of inversion is stored into operation result.
(4) The logical operators can be used with the conditional expressions of the IF and
WHILE statements.
IF [ [ON #M1000] AND [OFF #M1100] ] GOTO1 ;
If M1000 is ON and M1100 is OFF, the N1 line is executed.
IF [ [#2100 AND #2200] EQ #2300] GOTO2 ;
If the result of operating AND #2100 and #2200 contents is equal to #2300, the
N2 line is executed.
7 - 143
7 MOTION PROGRAMS FOR POSITIONING CONTROL
[Program Example]
Operator Program example Operation
#2010L = 00000000 00000000 00000000 01100100
#2010L = 100 ;
AND 15 = 00000000 00000000 00000000 00001111
#2020L = #2010L AND 15 ;
#2020L = 00000000 00000000 00000000 00000100 = 4
#2010L = 00000000 00000000 00000000 01100100
#2010L = 100 ;
OR 14 = 00000000 00000000 00000000 00001110
#2020L = #2010L OR 14 ;
#2020L = 00000000 00000000 00000000 01101110 = 110
#2010L = 00000000 00000000 00000000 01100100
#2010L = 100 ;
XOR 14 = 00000000 00000000 00000000 00001110
#2020L = #2010L XOR 14 ;
#2020L = 00000000 00000000 00000000 01101010 = 106
#2010L = 90 ; #2010L = 00000000 00000000 00000000 01011010
NOT
#2020L = NOT [#2010L] ; #2020L = 11111111 11111111 11111111 10100101 = -91
#2010L = 20 ; #2010L = 00000000 00000000 00000000 00010100
<<
#2020L = #2010L << 2 ; #2020L = 00000000 00000000 00000000 01010000 = 80
#2010L = 80 ; #2010L = 00000000 00000000 00000000 01010000
>>
#2020L = #2010L >> 2 ; #2020L = 00000000 00000000 00000000 00010100 = 20
7 - 144
7 MOTION PROGRAMS FOR POSITIONING CONTROL
Code WAITON, WAITOFF The next travel block is executed at the completion of ON/OFF
Function Move block wait functions condition for the specified device.
W A I T O N #Xx ;
Device (X, Y, M, B, F)
Format
W A I TO F F #Xx ;
Device (X, Y, M, B, F)
[Explanation]
(1) Execution of the next travel block is waited until the completion of ON/OFF
condition for the specified device. However, the operation block is executed.
(2) The response time of WAITON/WAITOFF is the operation cycle time (approx. 0.88
[ms] for 4 or less axes).
(4) It takes about 7 to 64[ms] from when a program is started until the program is
actually run. Therefore, If WAITON/WAITOFF is used, the Motion program can be
started at high speed. By setting a wait for a shift to the next block with WAITON
or WAITOFF after a program start has been made by the start instruction of the
Motion program, prereading of the next block has been completed, and therefore,
the next block can be executed at high speed (approx. 3.5[ms] for 4 or less axes)
after the device condition has held, improving the variation or delay in a program
start.
[Example]
WAITON #X10 ; When X10 turns ON, N1 block is executed.
N1 G01 X100. Y200. F1000. ;
WAITOFF #X11 ; When X11 turns OFF, N2 block is executed.
N2 G01 X200. Y300. F500. ;
:
:
M02 ;
%
(5) WAITON/WAITOFF cannot be used with the home position return instruction.
7 - 145
7 MOTION PROGRAMS FOR POSITIONING CONTROL
[Program Example]
The program which executes the next block at the completion of condition.
1) 00001 WAITON #X10 ;
00002 N1 G01 X100. Y200. F1000. ;
2) 00003 WAITOFF #X11 ;
00004 N2 #2010 = 5 ;
00005 G00 X0. Y-10. ;
3) 00006 WAITON #X12 ;
00007 GOTO 10 ;
:
:
00015 N10 G00 X0. Y0. ;
:
:
00020 #2000 = 5 ;
4) 00021 WAITOFF #XFF ;
00022 IF [#2000 EQ 5] GOTO 20 ;
00023 N15 G01 X200. Y200. F2000. ;
:
:
00027 N20 G01 X100. Y100. F2000. ;
00028 M02 ;
00029 %
7 - 146
7 MOTION PROGRAMS FOR POSITIONING CONTROL
Code EXEON, EXEOFF The next block is executed at the completion of ON/OFF condition for
Function Block wait function the specified device.
E XEO N #Xx ;
Device (X, Y, M, B, F)
Format
EXEO F F #Xx ;
Device (X, Y, M, B, F)
[Explanation]
(1) Execution of the next block is waited until the completion of ON/OFF condition for
the specified device.
[Program Example]
(1) Control program
SET #M100 ;
RST #M101 ;
EXEON #M102 ; Preread is not executed in the control program.
#D2100=200 When the M102 is ON, the next block is executed.
CALL JXJY P100 ;
:
:
M02 ;
7 - 147
7 MOTION PROGRAMS FOR POSITIONING CONTROL
7 - 148
7 MOTION PROGRAMS FOR POSITIONING CONTROL
(Example1)
V
t
ON
M100 OFF
t
ON
M100 OFF
It stops temporary
regardless of G00, G01.
REMARK
Operation which combined EXEON and WAITON.
V
WAITON #M100 ;
EXEON #M101 ;
G01 X100. F100 ;
t
ON
M100 OFF
ON
M101 OFF
When the EXEON is wrote in the next block of WAITON (not travel value), priority is
given to waiting condition for EXEON regardless of WAITON state, in this case,
since an operation is complicated, it recommends not using it combining WAITON
and EXEON.
7 - 149
7 MOTION PROGRAMS FOR POSITIONING CONTROL
7.16.13 Bit set and reset for word devices (BSET, BRST)
B S ET D n ;
Set bit number (0 to15)
Word device which operates bit. (#D, #W, #@)
Format
B RST D n ;
Reset bit number (0 to15)
Word device which operates bit. (#D, #W, #@)
[Explanation]
(1) BSET sets the specifies bit in the word device.
[Program Example]
Set the 10th bit of D2000.
BSET #D2000 10 ;
7 - 150
7 MOTION PROGRAMS FOR POSITIONING CONTROL
Code PB
The parameter block of the specified No. is used.
Function Parameter block change
PB pb ;
Format
Parameter block No.
Parameter block change command
[Explanation]
(1) The numerical value following PB is used as a parameter block No..
(2) The parameter block value may also be specified indirectly by a variable, D, W or
# (2-word data).
(4) Once given, the parameter block change command is valid until the parameter
block change command is given again.
However, when a torque limit value change (TL) is executed, the specified torque
limit value is used.
(5) When a parameter block change (PB) is executed during a torque limit value
change (TL), the torque limit value in the new parameter block is used.
(7) The home position return (G28) uses the following parameters.
(a) Home position return request ON…………Parameter block is specified home
position return parameters.
(b) Home position return request OFF…..……Parameter block at the axis
designation program start.
(8) The parameter block change command cannot be described in the same block as
another command.
(9) If a cancel start is made during a parameter block change, the start program uses
the parameter block for execution of the start program.
7 - 151
7 MOTION PROGRAMS FOR POSITIONING CONTROL
[Program Example]
(1) When a parameter block change is executed during point-to-point positioning
N01 G00 X0. ; Uses the parameter block at a program start.
N02 G00 X100. ;
N03 PB3 ; Changes to parameter block 3.
N04 G00 X300. ;
V
t
PB at a program start is used. PB3 is used.
7 - 152
7 MOTION PROGRAMS FOR POSITIONING CONTROL
Code TL
The torque limit value is changed to the specified value.
Function Torque limit value change
TL t ;
Format Torque limit value
Torque limit value change command
[Explanation]
(1) The numerical value following TL is commanded as a torque limit value. The
torque limit value may also be specified indirectly by a variable, D, W or # (2-word
data).
(After the TL code, the torque limit value in the parameter block is not used.)
(3) Once given, the TL command is valid until the TL command is given again or the
parameter block or CHGT command is given. However, at a program start, the
torque limit value in the specified parameter block or the specified torque limit
value is used.
(4) At a home position return (G28), the torque limit value in the parameter block at a
program start is used.
(5) If a cancel start is made during a torque limit value change, the start program uses
the torque limit value in the parameter block for execution of a start program.
(6) If a torque limit value change (TL) is specified in G32 (skip) and the skip device is
already ON before execution of G32, the torque limit value change command (TL)
is also skipped and the torque limit value specified previously remains unchanged.
(7) The torque limit value change (TL) is valid for all axes specified in the start
instruction of the Motion program. However, if the torque limit value specified in the
torque limit value change (TL) for the axis whose torque limit value is specified in
the CHGT command is greater than the torque limit value in the CHGT command,
torque is clamped at the torque limit value of the CHGT command.
(8) The axis operating under the high-speed oscillation (G25) is not made valid. That
axis is made valid from the move command or M-code after the high-speed
oscillation stop (G26) is executed.
7 - 153
7 MOTION PROGRAMS FOR POSITIONING CONTROL
(9) If specified in a move block, the torque limit value (TL) is made valid from that
motion. When the torque limit value is independent (no block motion specified), it
is made valid for the next motion.
[Program Example]
(1) When torque limit value change is made
N01 G00 X0. ; Controls at the torque limit value in the parameter block
at a program start.
N02 G00 X100. TL100 ;
Controls at the torque limit value of 100[%].
N03 G00 X200. ;
N04 G00 X300. TL300 ; Controls at the torque limit value of 300[%].
V
t
Torque limit value
within PB at a Controlled at torque limit
program start Controlled at torque limit value of 100[%] value of 300[%]
7 - 154
7 MOTION PROGRAMS FOR POSITIONING CONTROL
Code CHGA
A home position return of the specified axis is executed.
Function Home position return
C HG A JX ;
Format The "J + Axis name" to return the home
position is set.
It is possible to specify it only by an axis.
[Explanation]
(1) The start accept flag (M2001 to M2032) of the specified axis is turned ON.
(2) The start accept flag is turned ON according to the home position return
parameters after a home position return.
(3) G28 executes a high-speed home position return when the home position return
request is OFF. However, the home position return is executed for CHGA by the
home position return method set by the home position return parameter.
CHGA instruction is executed an equal to S(P).CHGA instruction of "4 MOTION
DEDICATED PLC INSTRUCTION " in the Motion program.
7 - 155
7 MOTION PROGRAMS FOR POSITIONING CONTROL
Code CHGV
A speed change of the specified axis is executed.
Function Speed change
C HG V JX n ;
Speed change value (Indirect setting is possible)
Format
The "J + Axis name" to change the speed value
is set.
It is possible to specify it only by an axis.
[Explanation]
(1) The speed changing flag (M2061 to M2092) of the specified axis is turned ON.
(2) The speed changing flag is turned OFF after changing speed to "n".
(3) CHGV can be changed in the range of the speed limit value though override is a
speed change which specifies the ratio from 0 to 100[%].
CHGV instruction is executed an equal to S(P).CHGV instruction of "4 MOTION
DEDICATED PLC INSTRUCTION" in the Motion program.
REMARK
G90 ; G90 ;
G00 X0. ; G00 X0. ;
G00 X1000. ; G00 X1000. ;
CHGV JX 100. ; N1 ;
IF [ON #M2402] GOTO1 ;
CHGV JX 100. ;
When the block of CHGV is preread by programming the above left program, CHGV
is executed while executing the block (example : G00 block) before CHGV.
Make the program like a above right program to execute CHGV after the block of
"G00 X1000. ; " ends.
7 - 156
7 MOTION PROGRAMS FOR POSITIONING CONTROL
Code CHGT
A torque limit value change of the specified axis is executed.
Function Torque limit value change
C HG T JX n ;
Torque limit change value (Indirect setting is
Format possible) (1 to 500[%])
The "J + Axis name" to change the torque limit
value is set.
It is possible to specify it only by an axis.
[Explanation]
CHGT is an instruction which executes an equal to S(P).CHGT instruction of "4
MOTION DEDICATED PLC INSTRUCTION" in the Motion program.
REMARK
G90 ;
G00 X0. ;
TL50 ;
G00 X1000. ;
CHGT JX 50. ;
When the block of CHGT is preread by programming the above program, CHGT is
executed while executing the block (example : G00 block) before CHGT.
Torque limit value is changed after the movement of the pre-block completes a TL
instruction.
When a TL instruction was used, the timing of the torque limit value is clear with the
axis designation program.
7 - 157
7 MOTION PROGRAMS FOR POSITIONING CONTROL
SET #Yy ;
ON device (Y, M)
Device ON command
Format
RST #Yy ;
OFF device (Y, M)
Device OFF command
[Explanation]
(1) The specified device in the G-code program can be turned ON/OFF.
(2) Refer to Section 7.11.2 (2) for the usable device ranges.
[Program Example]
1) SET #M0 ; Turns ON device M0.
2) RST #M0 ; Turns OFF device M0.
3) SET #Y10 ; Turns ON device Y10.
7 - 158
7 MOTION PROGRAMS FOR POSITIONING CONTROL
[Explanation]
(1) When the condition consists, "IF [conditional expression] THEN SET" turns ON a
specified device.
(2) When the condition consists, "IF [conditional expression] THEN RST" turns OFF a
specified device.
(3) When a specified device is turned ON when the condition consists, and the
condition does not consist, "IF [conditional expression] THEN OUT" turns OFF a
specified device.
[Program Example]
(Instruction method which can (Instruction method in past Motion
be used by Q Motion CPU.) CPU. (Q Motion CPU possible))
IF [#100 EQ0] THEN SET #Y0 ; IF [#100 EQ0] THEN 1 ;
SET #Y0 ;
END1 ;
7 - 159
7 MOTION PROGRAMS FOR POSITIONING CONTROL
REMARK
(1) The mark of the I/O modules is X and Y in SV43 regardless of installation/non-
installation. PX and PY is not used in the Motion program.
(2) Writing in the device X is possible only for the range of the input modules non-
installation.
(3) The start accept flag (M2001 to M2032) must not use IF, THEN and SET/
RST/OUT.
(4) Do not write it in special relay (M9000 to M9255) excluding the user setting
device.
(Note) : The device range which can be used by "IF, THEN, SET/RST/OUT" and
"SET/RST" is the same.
7 - 160
7 MOTION PROGRAMS FOR POSITIONING CONTROL
C A L L JX JYJZJUJVJ WJAJB Pp ;
Motion program No. (1 to 1024)
Format (Indirect setting is possible)
J+starting axis name.
Eight or less can be specified.
[Explanation]
(1) Other control programs or axis designation programs are started from the control
program.
(2) Do not set the axis and parameter block No. to start the control programs.
(3) Set the axis name used by the axis designation program to start the axis
designation program.
(4) As for set program No."Pn" and parameter block No."PBn", indirect setting by #@
or D (word data) is also possible. In this case, sequence No. can be specified as
follows.
(6) When the program No. of axis designation program is specified directly, the
parameter block No. is started as the default value (PB1).
(7) After the control program and axis designation program are started, the next block
is executed without waiting the end of started program.
7 - 161
7 MOTION PROGRAMS FOR POSITIONING CONTROL
This program is executed in parallel the started The following next block of GOSUB is
program and following the next block of CALL. executed after waiting the end of called
program.
(GOSUBE also is same.)
7 - 162
7 MOTION PROGRAMS FOR POSITIONING CONTROL
[Explanation]
(1) Other control programs or axis designation programs are called from the control
program.
(2) Do not set the axis and parameter block No. to call the control program.
(3) Set the axis name used by the axis designation program to call the axis
designation program.
(5) As for set Motion program No."Pn" and parameter block No."PBn", indirect setting
by #@ or D (word data) is also possible. In this case, sequence No. can be
specified as follows.
(6) When the program No. of the axis designation program is specified directly, the
parameter block No. is called as the default value (PB1).
(7) After the control program and axis designation program are called, the next block
is executed after waiting the end of called program.
Refer to the explanation of "Program start" for the difference between the program start
and program call.
7 - 163
7 MOTION PROGRAMS FOR POSITIONING CONTROL
[Explanation]
(1) Other control programs or axis designation programs are called from the control
program.
(2) Do not set the axis and parameter block No. to call the control program.
(3) Set the axis name used by the axis designation program to call the axis
designation program.
(5) As for set Motion program No."Pn" and parameter block No."PBn", indirect setting
by #@ or D (word data) is also possible. In this case, sequence No. can be
specified as follows.
(5) When the program No. of the axis designation program is specified directly, the
parameter block No. is called as the default value (PB1)
(7) After the control program and axis designation program are called, the next block
is executed after waiting the end of called program.
(8) Call source program is ended at the error occurrence. After the control program
and the axis designation program are called, the next block is executed after
waiting the end of called program.
7 - 164
7 MOTION PROGRAMS FOR POSITIONING CONTROL
(9) The end of control program by CLEAR instruction in the control program or the
CLEAR request control program No. setting register (D707) are normal. Call
source program is not ended.
Refer to the explanation of "Program start" for the difference between the program start
and program call.
[Program Example]
(1) GOSUB+GOSUBE
GOSUB P110 ; GOSUBE JXJY P120 ; G01 X100. F1000. ; Error occurrence
If an error which program ends will occur in the program No.120, program
"O0110" ends but program "O0100" executes continuously.
(2) GOSUBE+GOSUB
GOSUBE P110 ; GOSUB JXJY P120 ; G01 X100. F1000. ; Error occurrence
If an error which program ends will occur in the program No.120, program
"O0100" and "O0110" execute continuously.
(3) GOSUBE+GOSUBE
GOSUBE P110 ; GOSUBE JXJY P120 ; G01 X100. F1000. ; Error occurrence
If an error which program ends will occur in the program No.120, program
"O0100" and "O0110" end.
7 - 165
7 MOTION PROGRAMS FOR POSITIONING CONTROL
REMARK
Error list which the main program ends by an error occurrence is shown below.
Error type Error code
Starting 100, 101, 103, 104, 106, 107, 108, 109, 110,
errors 115, 140, 142, 160, 161
Positioning
200, 201, 202, 203, 206,207, 208, 209, 211
control errors
500, 501, 502, 504, 510, 513, 525, 530, 531,
532, 533, 534, 535, 536, 537, 538, 541, 542,
Minor error
Motion 543, 544, 545, 546, 547, 555, 560, 562, 570,
program 571, 580, 581, 582, 584, 585, 586, 587, 591,
executing 592, 593, 594
errors 600, 610, 611, 612, 613, 614, 615, 617, 618,
Positioning error
619, 620, 630, 631, 632, 633, 634, 635, 636,
637, 650, 651, 652, 653
Starting
1000, 1001, 1002, 1003, 1004, 1005
errors
Major error
Positioning
1101, 1102, 1103, 1104, 1105
control errors
2010, 2012, 2013, 2014, 2015, 2016, 2021,
2024, 2025, 2030, 2031, 2032, 2033, 2034,
Servo amplifier error
2035, 2036, 2042, 2045, 2046, 2050, 2051,
2052, 2147
7 - 166
7 MOTION PROGRAMS FOR POSITIONING CONTROL
Code CLEAR
The specified control program is ended.
Function Control program end
C LE A R P p ;
Format Motion program No. (1 to 1024)
(Indirect setting is possible)
[Explanation]
(1) The CLEAR is ended if it is executing it specifying the number of the control
program from the control program.
(a) If the main program (O0100) ends regardless of the started program or
subprogram (O0200), the main program (O0100) ends and the subprogram
(O0200) does not end. (Figure A, B)
(b) When the started program is the control program, if the subprogram (O0200)
ends, the subprogram (O0200) ends and the main program (O0100) does
not end. (Figure B)
(c) When the started program is the axis designation program, turn the stop
command or rapid stop command of applicable axis ON to stop the
subprogram (O0200).
In this case, the subprogram (O0200) ends and the main program (O0100)
does not end. (Figure A)
7 - 167
7 MOTION PROGRAMS FOR POSITIONING CONTROL
(a) When the started program is a control program, if the main program (O0100)
is cleared, the both of the main program (O0100) and subprogram (O0200)
end. (Figure B)
(b) When the started program is a control program, if the subprogram (O0200) is
cleared, the execution ends and the control returns to the main program
(O0100). (Figure B)
(c) When the started program is a designation program, if the main program
(O0100) is cleared, only main program (O0100) ends and the subprogram
(O200) does not end. (Figure A)
(d) When the started program is a designation program, if the subprogram ends
by the stop command or rapid stop command, etc. of the applicable, the
control returns to the main program (O0100). (Figure A)
[Program Example]
The control program of Motion program No. 10 is ended.
CLEAR P10 ;
REMARK
Even if the control program is stopped with the CLEAR instruction, a signal during
the set keep a set.
7 - 168
7 MOTION PROGRAMS FOR POSITIONING CONTROL
Code TIME Time from the end of the block to the next block beginning is
Function Time to wait specified at waiting time.
T I ME P p ;
Format
Waiting time (1 to 65535)
[Explanation]
(1) Time from the end of the block to the next block beginning is specified at waiting
time.
(3) Waiting time can be set by direct setting (numerical value) and indirect setting
(constant : # ).
(5) The command unit is 0.001[s] (1[ms]). However, note that about dozens maximum
error (dispersion) will occur by the main cycle.
[Program Example]
M10 is turned ON for 100[ms].
SET #M10 ;
TIME P100 ;
RST #M10 ;
7 - 169
7 MOTION PROGRAMS FOR POSITIONING CONTROL
Code BMOV The data of n words from the specified device are batch-transferred to
Function Block transfers (16-bit unit) the specified transfer destination. (16-bit unit)
B MO V D S n ;
Number of transmission words
(Constant or indirect setting (1 to 65535))
Format First devices of transfer source data or absolute
address.
First devices of transfer destination data or
absolute address.
[Explanation]
(1) The contents for n words from device specified with (S) are batch-transferred to
the n words from device specified with (D). (Transferred with a word [16-bit] unit.)
(2) Data can be transferred if the word devices of the transfer source and destination
overlap. Data are transferred from devices, starting with the one at (S), for
transfer of data from devices of larger numbers to those of smaller numbers, or
starting with the one at (S)+(n-1) for transfer of data from devices of smaller
numbers to those of larger numbers.
(3) When the H+32-bit hexadecimal constant for (D) or (S) is specified, it is meant to
specify the absolute address of the Motion CPU. The absolute address specifies
the even number.
When the absolute address is specified, the content of the address is understood.
When a wrong operation is executed, operation which crashes the system, and is
abnormal might be executed.
[Program Example]
(1) Program which batch-transfers a contents for 5 words from D0 to all data for 5
words from #@10.
BMOV #@10 #D0 5
#@10 12 D0 12
Batch transfer
#@11 34 D1 34
(16-bit unit)
#@12 56 D2 56
#@13 78 D3 78
#@14 90 D4 90
7 - 170
7 MOTION PROGRAMS FOR POSITIONING CONTROL
(2) Program which batch-transfers a contents for 5 words from absolute address
(0x06000000) of Motion CPU to all data for 5 words from D2000.
BMOV #D2000 H06000000 5
D2000 12 0x06000000 12
D2001 34 Batch transfer 0x06000002 34
(16-bit unit)
D2002 56 0x06000004 56
D2003 78 0x06000006 78
D2004 90 0x06000008 90
7 - 171
7 MOTION PROGRAMS FOR POSITIONING CONTROL
Code BDMOV The data of n words from the specified word device are batch-
Function Block transfer (32-bit unit) transferred to the specified transfer destination. (32-bit unit)
BDMOV D S n ;
Number of transmission words
(Constant or indirect setting (1 to 65535))
Format
First devices of transfer source data or absolute
address.
First devices of transfer destination data or
absolute address.
[Explanation]
(1) The contents of n words from the word device specified with (S) are batch-
transferred, to the n words from the word device specified with (D). (Transferred
with 2-word [32-bit] unit.)
(2) Data can be transferred if the word devices of the transfer source and destination
overlap. Data are transferred from the devices, starting with the one at (S), for
transfer of data from devices of larger numbers to those of smaller numbers, or
starting with the one at (S)+(n-1) for transfer of data from devices of smaller
numbers to those of larger numbers.
(3) When the H+32-bit hexadecimal constant for (D) or (S) is specified, it is meant to
specify the absolute address of the Motion CPU.
The absolute address specifies the multiple of four.
7 - 172
7 MOTION PROGRAMS FOR POSITIONING CONTROL
[Program Example]
(1) Program which batch-transfers a contents for 4 words from D2000 to all data for
4 words from #@10.
#@10 12 D2000 12
#@11 34 Batch transfer D2001 34
(32-bit unit)
#@12 56 D2002 56
#@13 78 D2003 78
(2) Program which batch-transfers a contents for 4 words from absolute address
(0x06000000) of Motion CPU to all data for 4 words from D2000.
D2000 12 0x06000000 12
D2001 34 Batch transfer 0x06000002 34
(32-bit unit)
D2002 56 0x06000004 56
D2003 78 0x06000006 78
7 - 173
7 MOTION PROGRAMS FOR POSITIONING CONTROL
Code FMOV The data of n words from the specified device are batch-transferred to
Function Identical data block transfers the specified transfer destination. (a word [16-bit] unit)
F MOV D S n ;
Number of transmission words
(Constant or indirect setting (1 to 65535))
Format
Transfer source data
constant or indirect setting (0 to 65535)
First devices of transfer destination data or
absolute address.
[Explanation]
(1) The constant or contents for device specified with (S) are batch-transferred to the
n words from the device specified with (D). (Transferred with 1-word [16-bit] unit.)
(2) Data can be transferred if the word devices of the transfer source and destination
overlap.
(3) When the H+32-bit hexadecimal constant for (D) is specified, it is meant to specify
the absolute address of the Motion CPU. The absolute address specifies the even
number.
When the absolute address is specified, the content of the address is understood.
When a wrong operation is executed, operation which crashes the system, and is
abnormal might be executed.
(4) When a wrong operation is executed, operation which crashes the system, and is
abnormal might be executed.
(a) (S) is outside the range -32768 to 65535. (When constant specified)
(b) When (S) is outside the range of the device. (When indirectly specified device)
(c) When from (D) to (D)+(n-1) is outside the range of the device.
(d) (n) is outside the range 1 to 65535. (When constant specified)
(e) When (n) is outside the range of the device. (When indirectly specified device)
(f) When the absolute address is outside the range of RAM.
7 - 174
7 MOTION PROGRAMS FOR POSITIONING CONTROL
[Program Example]
(1) Program which batch-transfers a contents for from D0 to all data for 5 words
from #@10.
FMOV #@10 #D0 5
#@10 12 D0 12
#@11 12 Batch transfer
(16-bit unit)
#@12 12
#@13 12
#@14 12
7 - 175
7 MOTION PROGRAMS FOR POSITIONING CONTROL
Code MULTW A part for (n) words of data since the device specified with (S) of the
Write device data to shared self CPU module are written to since the shared CPU memory
Function
CPU memory address specified with (D) of the self CPU module.
MU L T W D S n D1 ;
Self CPU device is made to turn on the by
writing completion.
Format Number of words to be written. (1 to 256)
First device No. which writing data are stored.
The shared CPU memory address of self CPU of
the writing destination device. (800H to FFFH)
[Explanation]
(1) A part for (n) words of data since the device specified with (S) of the self CPU
module are written to since the shared CPU memory address specified with (D)
of the self CPU module. After writing completion of the device data, the complete
bit device specified with (D1) turns on.
Shared CPU memory Shared CPU memory address
Device memory of self CPU
(S) (D) 0H Self CPU operation This area
data area cannot be
200H used at
System area
user area.
Write the data 800H (Note)
of a part for Automatic refresh area
(n)words This area
can be
used at
User-defined area
user area.
0FFFH
(Note) : When automatic refresh is not set, it can be used as a user defined area.
And, when automatic refresh is set up, since the automatic refresh transmitting
range becomes a user defined area.
(4) The devices that may be set at (D), (S) (n) and (D1) are shown below.
Word devices (Note)
Setting Bit devices (Note) Constant
(16-bit integer type)
data (16-bit integer type)
D W #@ M B F X Y
(D) — — — — —
(S) — — — — — —
(n) — — — — —
(D1) — — — —
(Note) : The device No. cannot be specified indirectly.
7 - 176
7 MOTION PROGRAMS FOR POSITIONING CONTROL
(b) The shared CPU memory address (D) of self CPU of the writing destination
device is outside the range (800H to FFFH) of the shared CPU memory
address.
(c) The shared CPU memory address (D) of self CPU of the writing destination
device + number of words (n) to be written is outside the range (800H to
FFFH) of the shared CPU memory address.
(d) First device No. (S) which writing data are stored + number of words (n) to
be written is outside the device range.
[Program Example]
2-word from D0 is written in the shared CPU memory to since A00H.
RST #M0 ;
MULTW HA00 #D0 2 #M0 ;
7 - 177
7 MOTION PROGRAMS FOR POSITIONING CONTROL
7.16.30 Read device data from shared CPU memory of the other CPU (MULTR)
Code MULTR
A part for (n) words of data of the other CPU specified with (S1) are
Read device data from
read from the address specified with (S2) of the shared CPU memory,
Function shared CPU memory of the
and it is stored since the device specified with (D).
other CPU
M U L T R D S1 S2 n ;
Number of words to be read. (1 to 256)
The shared CPU memory first address of the data
Format which it will be read. (0H to FFFH)
First I/O No. of the PLC CPU/Motion CPU which it will be
read.(CPU No.1 : 3E0H, CPU No.2 : 3E1H, CPU No.3 :
3E2H, CPU No.4 : 3E3H)
First device No. which stores the reading data.
[Explanation]
(1) A part for (n) words of data of the other CPU specified with (S1) are read from the
address specified with (S2) of the shared CPU memory, and are stored since the
device specified with (D).
(Note) : When automatic refresh is not set, it can be used as a user defined area.
And, when automatic refresh is set up, since the automatic refresh transmitting
range becomes a user defined area.
(2) The devices that may be set at (D), (S1), (S2) and (n) are shown below.
Word devices (Note)
Setting Bit devices (Note) Constant
(16-bit integer type)
data (16-bit integer type)
D W #@ M B F X Y
(D) — — — — — —
(S1) — — — — —
(S2) — — — — —
(n) — — — — —
(Note) : The device No. cannot be specified indirectly.
7 - 178
7 MOTION PROGRAMS FOR POSITIONING CONTROL
(3) When data are read normally from the target CPU specified with (S1), the reading
complete flag M9216 to M9219 (CPU No.1:M9216, CPU No.2:M9217, CPU
No.3:M9218, CPU No.4:M9219) corresponding to the target CPU turns on. If data
cannot be read normally, the reading complete flag of the target CPU specified
with (S1) does not turn on.
(4) When multiple MULTR instructions are executed to the same CPU simultaneously,
the reading complete flag of target CPU number M9216 to M9219 turns on/off as a
result of MULTR that it is executed at the end.
(5) Reset the reading complete flag (M9216 to M9219) using the user program.
(b) The shared CPU memory first address (S2) of the data which it will be read
is outside the range (000H to FFFH) of the shared CPU memory address.
(c) The shared CPU memory first address (S2) of the data which it will be read +
number of words (n) to be read is outside the range (000H to FFFH) of the
shared CPU memory address.
(d) First device No. (D) which stores the reading data + number of words (n) to
be read is outside the device range.
[Program Example]
2-word is read to since #@0 from the shared CPU memory C00H of CPU No.1.
7 - 179
7 MOTION PROGRAMS FOR POSITIONING CONTROL
7.16.31 Write words data to intelligent function module/special function module (TO)
Code TO
A part for (n) words of data from device specified with (S) are written to
Write words data to
since address specified with (D2) of the buffer memory in the intelligent
intelligent function
Function function module/special function module controlled by the self CPU
module/special function
specified with (D1).
module
TO D1 D2 S n ;
Number of words to be written. (1 to 256)
First device No. which writing data are stored.
Format
First address of the buffer memory which writes
data.
First I/O No. of the intelligent function module/special
function module. (000H to FF0H)
[Explanation]
(1) A part for (n) words of data from device specified with (S) are written to since
address specified with (D2) of the buffer memory in the intelligent function
module/special function module controlled by the self CPU specified with (D1).
(D1) Intelligent function
module/special
function module
Device memory buffer memory
(S) (D2)
(2) First I/O No. of the module set by system setting is specified by (D1).
Power supply Q02H Q173 QX40 Q64AD Q64DA
module CPU CPU(N)
(D1) sets 20H by the system setting when a TO instruction is executed in the D/A
conversion module (Q64DA).
(3) The devices that may be set at (D1), (D2), (S) and (n) are shown below.
Word devices (Note)
Setting Bit devices (Note) Constant
(16-bit integer type)
data (16-bit integer type)
D W #@ M B F X Y
(D1) — — — — —
(D2) — — — — —
(S) — — — — — —
(n) — — — — —
(Note) : The device No. cannot be specified indirectly.
7 - 180
7 MOTION PROGRAMS FOR POSITIONING CONTROL
(4) The following analogue modules can be used as the control module of Motion
CPU.
• Q62DA
• Q64DA
• Q68DAV
• Q68DAI
• Q64AD
• Q68ADV
• Q68ADI
[Program Example]
2-word from #0 is written to since buffer memory address (0H) of the Intelligent function
module/special function module (First I/O No. : 010H).
T0 H010 H0 #0 2 ;
7 - 181
7 MOTION PROGRAMS FOR POSITIONING CONTROL
7.16.32 Read words data from intelligent function module/special function module (FROM)
Code FROM
A part for (n) words of data are read from the address specified with
Read words data from
(S2) of the buffer memory in the intelligent function module/special
intelligent function
Function function module controlled by the self CPU specified with (S1), and are
module/special function
stored since the device specified with (D).
module
FROM D S1 S2 n ;
Number of words to be read (1 to 256)
First address No. of the buffer memory which it will
Format be read.
First I/O No. of the intelligent function module/special
function module. (000H to FF0H)
First device No. which stores the reading data.
[Explanation]
(1) A part for (n) words of data are read from the address specified with (S2) of the
buffer memory in the intelligent function module/special function module controlled
by the self CPU specified with (S1), and are stored since the device specified with
(D).
(S1) Intelligent function
module/special
function module
Device memory buffer memory
(D) (S2)
(2) First I/O No. of the module set by system setting is specified by (D1).
Power supply Q02H Q173 QX40 Q64AD Q64DA
module CPU CPU(N)
(S1) sets 20H by the system setting when a FROM instruction is executed in the
D/A conversion module (Q64DA).
7 - 182
7 MOTION PROGRAMS FOR POSITIONING CONTROL
(3) The devices that may be set at (D), (S1), (S2) and (n) are shown below.
Word devices (Note)
Setting Bit devices (Note) Constant
(16-bit integer type)
data (16-bit integer type)
D W #@ M B F X Y
(D) — — — — — —
(S1) — — — — —
(S2) — — — — —
(n) — — — — —
(Note) : The device No. cannot be specified indirectly.
(4) The following analogue modules can be used as the control module of Motion
CPU.
• Q62DA
• Q64DA
• Q68DAV
• Q68DAI
• Q64AD
• Q68ADV
• Q68ADI
[Program Example]
A word is read from the buffer memory address 10H of the intelligent function
module/special function module (First I/O No. : 020H), and is stored in W0.
7 - 183
7 MOTION PROGRAMS FOR POSITIONING CONTROL
I F [ ON #M100 ] GOTO 1 ;
Format ON/OFF device (X, Y, M, B, F)
ON/OFF command (describe OFF for OFF)
*Conditional expression of IF THEN or WHILE can also be described similarly.
[Explanation]
(1) The ON/OFF status of the specified bit device is judged by the ON/OFF command
to see if it is true (1) or false (0).
By using this command in the conditional expression of IF or WHILE, a conditional
branch can be made with a bit device.
When used with a logical operator, this command enables a conditional branch
with multiple bit devices.
(2) [ ] of the conditional expression can be five levels deep including [ ] of a function.
An operational expression may be described in up to 72 characters in all. (Up to
the maximum number of characters in one block)
<When "ON" is specified>
IF [ON #M100] GOTO1 ;
When M100 is ON, the result is true (1) and a branch to N01 is taken.
When M100 is OFF, the result is false (0) and the next block is executed.
(3) The device that may be specified after the ON/OFF command is the bit device
only.
If a word device is specified, a "Format error" (error code : 560) occurs.
(4) The bit devices usable in the ON/OFF command are X, Y, M, B and F.
(5) The ON/OFF command is available for the conditional expressions of the program
control functions (IF GOTO, IF THEN, WHILE).
7 - 184
7 MOTION PROGRAMS FOR POSITIONING CONTROL
[Program Example]
(1) When M100 is ON, a branch to line N03 is taken.
N01 IF [ON #M100] GOTO3 ; Branches to line N03 if M100 is ON.
N02 G01 X100. F200. ; Executes the next line (N02) if M100 is OFF.
(2) Execution starts from the next line (THEN1 and later) if M200 is ON, or from ELSE1
if it is OFF.
N01 IF [ON #M200] THEN1 ;
N02 G01 X100. F200. ; Executed when M200 is ON.
N03 ELSE1 ;
N04 G00 X200. ; Executed when M200 is OFF.
N05 END1 ;
(3) While M300 is OFF, the blocks within WHILE (N02, N03, N04) are executed
repeatedly.
N01 WHILE [OFF #M300] D02 ; Executes blocks within WHILE while M300 is OFF.
N02 G91 G01 X10. F100. ;
N03 #2010 = #2010 + 1 ;
N04 END2 ; Executed when M300 turns ON.
N05 G90 G00 X0. ;
7 - 185
7 MOTION PROGRAMS FOR POSITIONING CONTROL
MEMO
7 - 186
8 AUXILIARY AND APPLIED FUNCTIONS
This function is used to output the ON/OFF signal corresponding to the data range of
the watch data set per output device.
Motion control data or optional word data can be used as watch data. (Refer to Section
"8.1.2 Limit Output Setting Data" for details.)
A maximum output device for 32 points can be set regardless of the number of axes.
8.1.1 Operations
(1) ON output to an output device is made while the watch data value is in the ON
output region set with (ON Value) and (OFF Value) in this function.
(a) (ON Value), (OFF Value) and watch data value are handled as signed data.
ON output region where an ON output is made to the output device is
governed by the magnitude relationship between (ON Value) and (OFF
Value) as indicated below.
Relationship between (ON Value) and
ON output region
(OFF Value)
(ON Value) < (OFF Value) (ON Value) <= (watch data value) < (OFF Value)
(ON Value) <= (watch data value)
(ON Value) > (OFF Value)
(Watch data value) < (OFF Value)
(ON Value) = (OFF Value) Output OFF in whole region
ON
Output device OFF OFF
OFF Value
ON region setting
ON Value
ON ON
Output device OFF
ON Value
ON region setting
OFF Value
(Watch data value) (OFF Value) (ON Value) (Watch data value)
8-1
8 AUXILIARY AND APPLIED FUNCTIONS
(b) The limit switch outputs are controlled based on thee each watch data during
the PCPU ready status (M9074: ON) by the PLC ready flag (M2000) from
OFF to ON.
When the PCPU ready flag (M9074) turns OFF by turning the PLC ready flag
(M2000) from ON to OFF, all points turn OFF. When (ON Value) and (OFF
Value) are specified with word devices, the word device contents are input to
the internal area when the PLC ready flag (M2000) turns from OFF to ON.
After that, the word device contents are input per motion operation cycle, and
limit switch outputs are controlled.
(c) Multiple outputs (Max.32 points) can be also set to one watch data. In each
setting, the output device may be the same.
If multiple ON region settings have been made to the same output device, the
logical add of the output results in the regions is output.
ON ON
Output device OFF OFF
OFF Value
ON region setting No.2
ON Value
OFF Value
ON region setting No.1 ON Value
(2) Output enable/disable bit can be set and executed enable/disable of the limit
switch outputs point-by-point.
Limit switch output control is executed when the output enable/disable bit is ON,
and the output is OFF when it is OFF.
If there is no setting, the outputs are always enabled.
(3) Forced output bit can be set and turned the forcibly output of the limit switch
outputs point-by-point ON.
The output is ON when the forced output bit is ON. Priority is given to control of
this setting over off (disable) of the "output enable/disable bit".
When there is no setting, no forced outputs are not always made.
8-2
8 AUXILIARY AND APPLIED FUNCTIONS
(4) When the multiple watch data, ON region, output enable/disable bit and forced
output bit are set to the same output device, the logical add of output results of the
settings is output.
M9074 ON
Output device
OFF Value
ON region setting
ON Value
Output device
Output control based on Output ON
Output OFF ON Value and OFF Value (Forced output) Output OFF
8-3
8 AUXILIARY AND APPLIED FUNCTIONS
8-4
8 AUXILIARY AND APPLIED FUNCTIONS
(b) As the watch data, motion control data or optional word device data can be
used.
1) Motion control data
Axis No. setting range
Item Unit Data type
Q173CPU(N) Q172CPU(N)
Machine value
Position command 32-bit
Real machine value
integer type
Deviation counter value PLS
Motor current 16-bit 1 to 32 1 to 8
0.1% (0.01V)
(Command output voltage : ACF) integer type
Motor speed 0.1r/min 32-bit
Current value Position command integer type
3) When the optional device data is set, the following data type is set as the
data type to be compared.
Data type Device No. setting range
16-bit integer type
32-bit integer type Set the device No. as an even No..
64-bit floating-point type
8-5
8 AUXILIARY AND APPLIED FUNCTIONS
(b) The following devices can be used as the ON Value and OFF Value of the
data range.
The data type of device/constant to be set is the same as the type of watch
data.
Item Device No. setting range
Data register D0 to D8191
Link register W0 to W1FFF
Motion register #0 to #8191
Constant Hn/Kn
8-6
8 AUXILIARY AND APPLIED FUNCTIONS
8-7
8 AUXILIARY AND APPLIED FUNCTIONS
This function compensates for the backlash amount in the machine system. When the
backlash compensation amount is set, extra feed pulses equivalent to the backlash
compensation amount set up whenever the travel direction is generated at the
positioning control, JOG operation or manual pulse generator operation.
Feed screw
Workpiece
8-8
8 AUXILIARY AND APPLIED FUNCTIONS
Home position return • The backlash compensation is executed after home position return
completion completion.
Absolute position system • Status stored at power off and applied to absolute position system.
POINTS
(1) The feed pulses of backlash compensation amount are added to the machine
value.
(2) When the backlash compensation amount is changed, the home position
return is required.
When the home position return is not executed, the original backlash
compensation amount is not changed.
8-9
8 AUXILIARY AND APPLIED FUNCTIONS
This function restricts the generating torque of the servomotor within the setting range.
If the torque required for control exceeds the torque limit value during positioning
control, it restricts with the setting torque limit value.
(c) S(P).CHGT instruction (Refer to Section 4.6) is used to change in the PLC
program.
[Control Details]
(1) Torque limit value at a Motion program start or JOG operation start is changed to
the value specified with parameter block.
(2) When the TL or PB instruction is used to change the torque limit value, the new
value is valid until the next TL or PB instruction is executed. However, it is
clamped at the torque limit value of CHGT/S(P).CHGT instruction.
[Program Example]
(1) It is supported that the torque limit value has been set to 300[%] for each axis by
the CHGT/S(P).CHGT instruction before a program start.
(2) 200[%] is set as the torque limit value of parameter block to execute a program.
8 - 10
8 AUXILIARY AND APPLIED FUNCTIONS
t
Sequence No. N1 N2 N3
CHGT Instruction
300(Note-2) 250
S(P). CHGT Instruction
300
X-axis Servo command 200 250
100
0
(Note-1) : Indicates the torque limit value change by a program or CHGT/S(P).CHGT instruction, and the
resultant command to servo amplifier. Unit is [%].
1) Torque limit value changed by CHGT/S(P).CHGT instruction. Given to the change target
axes.
2) The servo command indicates the torque limit value given actually to the servo amplifier.
(Note-2) : When the CHGT/S(P).CHGT instruction is not executed after power-on, the torque limit value
is 300[%].
(4) Explanation
(a) In comparison with the torque limit value of parameter block specified with
the S(P).SVST and the value specified with last CHGT/S(P).CHGT
instruction, the lower torque limit value at a program start is commanded. In
this case, the value is 200[%] every each axis.
(b) The torque limit value of TL instruction at N2 execution is 100[%] every each
axis.
(c) During N2 execution, the torque limit value is changed to 250[%] in the X-
axis and to 50[%] in the Y-axis by the CHGT/S(P).CHGT instruction.
8 - 11
8 AUXILIARY AND APPLIED FUNCTIONS
The positioning control for absolute position system can be performed using the
absolute-position-compatible servomotors and servo amplifiers.
If the machine position is set at the system starting, home position return is not
necessary because the absolute position is detected at the power on.
The machine position is set with the home position return using the Motion program or
a peripheral device.
The vector inverter does not support an absolute position.
(2) In the absolute positioning system, the absolute position may be lost as the
following cases:
Set the absolute position with a home position return.
(a) The battery unit is removed or replaced.
(b) The battery error of the servo amplifier occurs. (It is detected at the servo
amplifier power on).
(d) The cable between servo amplifier and encoder is removed, or the servo
amplifier or encoder is replaced.
CAUTION
After removing or replacing the battery unit, correctly install the new unit and set the absolute
position.
After a servo battery error occurs, eliminate the cause of the error and ensure operation is safe
before setting the absolute position.
After the mechanical system is disturbed by a shock, make the necessary checks and repairs,
and ensure operation is safe before setting the absolute position.
8 - 12
8 AUXILIARY AND APPLIED FUNCTIONS
POINTS
(1) The address setting range of absolute position system is −2147483648 to
2147483647.
It is not possible to restore position commands that exceed this limit, or current
values after a power interruption.
Correspond by the [degree] setting for an infinite feed operation.
(2) Even when the current value address is changed by a current value change
instruction, the restored data for the current value after a power interruption is
the value based on the status prior to execution of the current value change
instruction.
(3) When home position return has not been completed (home position return
request is ON), restoration of the current value after a power interruption is not
possible.
(3) The current value history can be monitored using of the "System setting mode-
allowable travel during power off" or "Monitor mode" using a peripheral device.
(Refer to the help of SW6RN-GSV43P "Allowable travel during power off" and
"Monitor mode".)
(a) Current value history monitor
Month/day/hour/minute
The time such as at the completion of home position return and servo
amplifier power supply ON/OFF is indicated.
In order to indicate the time correctly, turn on M9028 (Clock data read
request) in the Motion program after setting the clock data of special
register.
8 - 13
8 AUXILIARY AND APPLIED FUNCTIONS
(e) Alarms
When an error for current value restoration occurs at the servo amplifier
power on, an error code is indicated.
Refer to APPENDIX "2.1 Motion program setting errors" for details of
error contents.
8 - 14
8 AUXILIARY AND APPLIED FUNCTIONS
(1) Use the home position return at the power supply ON and other times where
confirmation of axis is at the machine home position is required.
(2) The following six methods for home position return are shown below.
• Proximity dog type
• Count type
• Data set type
• Dog cradle type
• Stopper type
• Limit switch combined type
(3) The home position return data must be set for each axis to execute the home
position return.
(4) Select the optimal home position return method for the system configuration and
applications with reference to the following.
Home position return methods Contents Applications
• Home position is zero point of • It is used in the system which can surely pass a zero point
servomotor. from the home position return start to proximity dog ON
Proximity dog type 1
• When the proximity dog is ON, it OFF.
cannot be started.
Proximity dog type
• Home position is zero point of • This method is valid when the stroke range is short and
servomotor. "proximity dog type 1" cannot be used.
Proximity dog type 2
• When the proximity dog is ON, it
can be started.
• Home position is zero point of • It is used in the system which can surely pass a zero point
Count type 1 servomotor. from the home position return start to point of travel
distance set as "travel value after proximity dog ON".
Count type • Zero point is not used in the home • This method is used when the proximity dog is near the
Count type 2
position return. stroke end and the stroke range is narrow.
• Home position is zero point of • This method is valid when the stroke range is short and
Count type 3
servomotor. "count type 1" cannot be used.
• Home position is command • External input signals such as dog signal are not set in
position of Motion CPU. this absolute position system.
Data set type 1
• This method is valid for the data set independent of a
Data set type
deviation counter value.
• Home position is real position of • External input signals such as dog signal are not set in
Data set type 2
servomotor. this absolute position system.
• Home position is zero point of • It is easy to set the position of proximity dog, because the
Dog cradle type servomotor immediately after the proximity dog is set near the position made to the home
proximity dog signal ON. position.
• Home position is position which • This method is valid to improve home position accuracy in
stopped the machine by the order to make the home position for the position which
Stopper type 1
stopper. stopped the machine by the stopper.
• Proximity dog is used.
Stopper type
• Home position is position which
stopped the machine by the
Stopper type 2
stopper.
• Proximity dog is not used.
• Home position is zero point of • It is used in the system that the proximity dog signal
servomotor. cannot be used and only external limit switch can be
Limit switch combined type
• Proximity dog is not used. used.
• External limit switch is surely used.
8 - 15
8 AUXILIARY AND APPLIED FUNCTIONS
8 - 16
8 AUXILIARY AND APPLIED FUNCTIONS
(b) After the proximity dog ON, the home position is the first zero-point after
travel by the setting travel value.
(c) Set the travel value after proximity dog ON more than the deceleration
distance from the home position return speed.
Example
The deceleration distance is calculated from the speed limit value, home position
return speed, creep speed and deceleration time as shown below.
[Home position return operation]
Speed limit value : VP=200kpps
VZ t
Real deceleration time : t=TB
VP
TB
Deceleration time : TB=300ms
= 75 . . . . . . Set 75 or more
POINT
A home position return must be made after the servomotor has been rotated more
than one revolution to pass the axis through the Z-phase (motor reference position
signal).
For a proximity dog type or count type home position return, the distance between
the point where the home position return program is started and the deceleration
stop point before re-travel must be such that the servomotor is rotated more than
one revolution to pass the axis through the Z-phase.
When a data set type home position return is made in an ABS (absolute position)
system, the servomotor must also have been rotated more than one revolution by
JOG operation or the like to pass the axis through the Z-phase.
(Note) : When "1 : No servomotor Z-phase pass after power ON" is selected at the
time of MR-J2S-B/MR-J2M-B use in the "condition selection of home
position set" of servo parameter (expansion parameter), even if it does not
pass zero point, the home position return can be executed and restrictions
are lost.
8 - 17
8 AUXILIARY AND APPLIED FUNCTIONS
(2) Home position return retry function/dwell time at the home position
return retry
(a) Valid/invalid of home position return retry is set.
(b) When the valid of home position return retry function is set, the time to stop
at return of travel direction is set with dwell time at the home position return
retry.
(c) Operation for the proximity dog type home position return by setting "valid"
for home position return retry function is shown below.
Acceleration time Deceleration time The temporary stop is made during time 1) It travels to preset
set in the "dwell time at the home direction of home
position return retry". position return.
2) If the external upper/lower
Home position limit switch turns OFF
return direction before the detection of
5) 1) 2)
proximity dog, a
6) deceleration stop is made.
3) After a deceleration stop,
the temporary stop is
Home made during time set in
position Home position the "dwell time at the
return start home position return retry"
4) and it travels to reverse
3) direction of home position
return with the home
External limit switch position return speed.
Proximity 4) A deceleration stop is
dog made by the proximity dog
Zero point OFF.
5) After a deceleration stop,
The temporary stop is made during time the temporary stop is
set in the "dwell time at the home made during time set in
position return retry". the "dwell time at the
home position return retry"
and it travels to direction
of home position return.
6) Home position return
ends.
(d) Possible/not possible of home position return retry function by the home
position return method is shown below.
Home position return Possible/not possible of home position
methods return retry function
Proximity dog type
Count type
Data set type
Dog cradle type
Stopper type
Limit switch combined type
: Possible, : Not possible
8 - 18
8 AUXILIARY AND APPLIED FUNCTIONS
(3) Home position shift amount/speed set at the home position shift
(a) The shift (travel) amount from position stopped by home position return is
set.
(b) If the home position shift amount is positive value, it shifts from detected zero
point signal to address increase direction. If it is negative value, it shifts from
detected zero point signal to address decrease direction.
(c) Operation speed which set the home position shift amount except "0" is set in
the speed set at the home position shift. Select one of the "home position
return speed" or "creep speed".
Zero point
Home position
Home position return re-travel value
return start Creep speed
Fig. 8.3 Home position shift amount/speed set at the home position shift
8 - 19
8 AUXILIARY AND APPLIED FUNCTIONS
(d) Valid/invalid of the setting value for home position shift amount by the home
position return method is shown below.
Home position return Valid/invalid of home position shift
methods amount
Proximity dog type
Count type
Data set type
Dog cradle type
Stopper type
Limit switch combined type
: Valid, : Invalid
POINT
(1) Home position shift function is used to rectify a home position stopped by the
home position return. When there are physical restrictions in the home position
by the relation of a proximity dog installation position, the home position is
rectified to the optimal position. Also, by using the home position shift function,
it is not necessary to care the zero point for an installation of servomotor.
(2) After proximity dog ON, if the travel value including home position shift amount
exceeds the range of "-2147483648 to 2147483647" [ 10-4mm, 10-5inch,
10-5degree], "travel value after proximity dog ON" of monitor register is not set
correctly.
(b) Valid/invalid of the torque limit value at the creep speed by the home
position return method is shown below.
Home position return Valid/invalid of torque limit value at
methods the creep speed
Proximity dog type
Count type
Data set type
Dog cradle type
Stopper type
Limit switch combined type
: Valid, : Invalid
8 - 20
8 AUXILIARY AND APPLIED FUNCTIONS
Stopper type 1
Stopper type 2
Count type 1
Count type 2
Count type 3
Home position return direction
Home position address
Second home position address
Home position return speed
Creep speed
Home position Travel value after proximity dog ON
return data Parameter block setting
Home position return retry function
Dwell time at the home position return retry
Home position shift amount
Speed set at the home position shift
Torque limit value at the creep speed
Interpolation control unit
Speed limit value
Acceleration time
Deceleration time
Parameter blocks Rapid stop deceleration time
S-curve ratio
Torque limit value
Deceleration processing at the stop time
Allowable error range for circular interpolation
: Must be set
: Must be not set
8 - 21
8 AUXILIARY AND APPLIED FUNCTIONS
[Control details]
(1) Proximity dog type 1
Zero point position after proximity dog ON to OFF is home position in this
method.
When it does not pass (zero pass signal: M2406+20n OFF) the zero point from
home position return start to deceleration stop by proximity dog ON to OFF, an
error will occur and home position return is not executed. However, when "1 : No
servomotor Z-phase pass after power ON" is selected at the time of MR-J2S-
B/MR-J2M-B use in the "condition selection of home position set" of servo
parameter (expansion parameter), if it does not pass zero point from home
position return start to deceleration stop by proximity dog ON to OFF, the home
position return can be executed.
Proximity dog
ON OFF
Zero point
The travel value in this range is stored
in the monitor register "travel value
after proximity dog ON".
Fig. 8.4 Home position return operation by the proximity dog type 1
8 - 22
8 AUXILIARY AND APPLIED FUNCTIONS
[Cautions]
(1) Keep the proximity dog ON during deceleration from the home position return
speed to the creep speed.
If the proximity dog turns OFF before deceleration to the creep speed, a
deceleration stop is made and the next zero point is set as the home position.
Proximity dog
ON OFF
Zero point
Zero point of this range does not become the home position.
The next zero point becomes the home position.
(2) The position executed deceleration stop by the proximity dog OFF is near zero
point, a home position discrepancy equivalent to one revolution of the servomotor
may occur. Adjust the position of proximity dog OFF, such that the home position
return re-travel value becomes half the travel value for one revolution of the
servomotor.
Proximity dog
ON OFF
Zero point
POINT
When the home position return retry function is not set in the following cases,
execute the home position return, after return the axis once to position before the
proximity dog ON by the JOG operation, etc.
Home position return cannot be executed without returning to position before the
proximity dog ON.
(1) Home position return with a position after the proximity dog ON to OFF.
(2) When the power supply turned OFF to ON after home position return end.
8 - 23
8 AUXILIARY AND APPLIED FUNCTIONS
(3) When it does not pass (zero pass signal: M2406+20n ON) the zero point from
home position return start to deceleration stop by proximity dog ON to OFF, a
minor error "ZCT not set" (error code: 120) will occur, a deceleration stop is made
and home position return does not end normally. When a distance between home
position return start position and home position is near and a zero point is not
passed, select the proximity dog type 2.
(4) If home position return is executed in the proximity dog ON, a major error
"proximity dog signal is turning ON at the home position return start" (error code:
1003) will occur, the home position return is not executed. Use the proximity dog
type 2 in this case.
(5) When home position return retry function is not set, if home position return is
executed again after home position return end, a minor error "home position return
completion signal is turning ON at the proximity dog type home position return
start" (error code: 115) will occur, the home position return is not executed.
(6) If in-position signal (M2402+20n) does not turn ON, home position return is not
ended.
8 - 24
8 AUXILIARY AND APPLIED FUNCTIONS
[Control details]
(1) Proximity dog type 2
Zero point position after proximity dog ON to OFF is home position in this
method.
When it passed (zero pass signal: M2406+20n ON) the zero point from home
position return start to deceleration stop by proximity dog ON to OFF, operation
for "proximity dog type 2" is the same as "proximity dog type 1". (Refer to Section
8.5.2)
When it does not pass (zero pass signal: M2406+20n OFF) the zero point from
home position return start to deceleration stop by proximity dog ON to OFF, it
moves to home position return direction after the servomotor is rotated one
revolution to reverse direction and it passed the zero point, and the first zero
point position is set as home position after proximity dog ON to OFF.
V
Home position Home position 1) It travels to preset direction of home position
return speed return direction return with the home position return speed.
5) 2) A deceleration is made to the creep speed by
the proximity dog ON, after that, it travels with
the creep speed. (If the proximity dog turns
OFF during a deceleration, a deceleration
1) Creep speed stop is made and the operation for 4) starts.)
2) 3) A deceleration stop is made by the proximity
dog OFF.
3)
4) After a deceleration stop, it travels for one
revolution of servomotor to reverse direction
Home position of home position return with the home
return start Home position position return speed.
5) It travels to direction of home position return
with the home position return speed, the
home position return ends with first zero point
4) after the proximity dog ON to OFF. (At this
time, a deceleration to the creep speed is not
Home position return speed made with the proximity dog OFF to ON . And
if the zero point is not passed because of
1 revolution droop pulses for processing of 4) and 5), a
Proximity dog minor error "ZCT not set" (error code: 120)
will occur, a deceleration stop is made and
Zero point the home position return does not end
normally. In this case, adjust a position of
Zero point no passing proximity dog OFF.)
Fig. 8.5 Home position return operation by the proximity dog type 2
(zero point no passing)
8 - 25
8 AUXILIARY AND APPLIED FUNCTIONS
[Cautions]
(1) A system which the servomotor can rotate one time or more is required.
(2) When a servomotor stops with specified condition enables and rotates to reserve
direction one time after proximity dog ON, make a system for which does not turn
OFF the external upper/lower stroke limit.
(3) Keep the proximity dog ON during deceleration from the home position return
speed to the creep speed.
If the proximity dog turns OFF before deceleration to the creep speed, a
deceleration stop is made and the next zero point is set as the home position.
(4) If home position return is executed in the proximity dog ON, it starts with the creep
speed.
(5) When home position return retry function is not set, if home position return is
executed again after home position return completion, a minor error "home
position return completion signal is turning ON at the proximity dog type home
position return start" (error code: 115) will occur, the home position return is not
executed.
(6) When "1 : No servomotor Z-phase pass after power ON" is selected at the time of
MR-J2S-B/MR-J2M-B use in the "condition selection of home position set" of
servo parameter (expansion parameter), even if it does not pass zero point at the
servo amplifier power ON, the zero pass signal (M2406+20n) turns ON. This
operation is the same as proximity dog type 1.
(7) If in-position signal (M2402+20n) does not turn ON, home position return is not
ended.
8 - 26
8 AUXILIARY AND APPLIED FUNCTIONS
[Control details]
(1) Count type 1
After the proximity dog ON, the zero point after the specified distance (travel
value after proximity dog ON) is home position in this method.
When the zero point is not passed (zero pass signal: M2406+20n OFF) until it
travels the distance set in the "travel value after proximity dog ON" from home
position return start, an error will occur and home position return is not executed.
However, when "1 : No servomotor Z-phase pass after power ON" is selected at
the time of MR-J2S-B/MR-J2M-B use in the "condition selection of home position
set" of servo parameter (expansion parameter), if the zero point is not passed
until it travels the distance set in the "travel value after proximity dog ON" from
home position return start, the home position return can be executed.
The travel value after proximity dog ON is set in the home position return data
(Refer to Section 8.5.1).
Home position return (Note) : After the proximity dog ON, positioning of the
direction "travel value after proximity dog ON" of the
V home position return data and the positioning
Home position Home position from the position to zero point.
return start return speed
The distance to the zero point is
Creep speed based on the servo data
Proximity dog
ON
Zero point
The travel value in this range is stored in the monitor
register "travel value after proximity dog ON".
"Travel value after
proximity dog ON"
of the home The travel value in this range is stored in the monitor
position return register "home position return re-travel value".
data.
8 - 27
8 AUXILIARY AND APPLIED FUNCTIONS
(1) Home position return and continuously start of home position return are also
possible in the proximity dog ON in the count type 1.
When the home position return or continuously start of home position return are
executed in the proximity dog ON, the home position return is executed after
return the axis once to position of the proximity dog OFF.
(2) When the zero point is not passed (zero pass signal: M2406+20n ON) until it
travels the distance set in the "travel value after proximity dog ON" from home
position return start, a minor error "ZCT not set" (error code: 120) will occur, a
deceleration stop is made and home position return does not end normally. When
a distance between home position return start position and home position is near
and a zero point is not passed, select the count type 3.
(3) When the "travel value after proximity dog ON" is less than the deceleration
distance from "home position return speed" to "creep speed", a minor error "an
overrun occurred because the setting travel value is less than the deceleration
distance at the proximity dog signal input during home position return of count
type" (error code: 209) will occur and deceleration stop is made.
(4) If in-position signal (M2402+20n) does not turn ON, home position return is not
ended.
8 - 28
8 AUXILIARY AND APPLIED FUNCTIONS
[Control details]
(1) Count type 2
After the proximity dog ON, the position which traveled the specified distance
(travel value after proximity dog ON) is home position in this method.
It is not related for zero point pass or not pass.
A count type 2 is effective method when a zero point signal cannot be taken.
(However, dispersions will occur to the stop position at the home position return
compared with the count type 1.)
The travel value after proximity dog ON is set in the home position return data
(Refer to Section 8.5.1).
Proximity dog
Home position
return start The travel value in this range is stored in the
monitor register "travel value after proximity
dog ON".
(Note): "Home position return re-travel value" = 0
8 - 29
8 AUXILIARY AND APPLIED FUNCTIONS
[Cautions]
(1) Home position return and continuously start of home position return are also
possible in the proximity dog ON in the count type 2.
When the home position return and continuously start of home position return are
executed in the proximity dog ON, the home position return is executed after return
the axis once to position of the proximity dog OFF.
(2) When the "travel value after proximity dog ON" is less than the deceleration
distance from "home position return speed" to "creep speed", a minor error "an
overrun occurred because the setting travel value is less than the deceleration
distance at the proximity dog signal input during home position return of count
type" (error code: 209) will occur and deceleration stop is made.
(4) If in-position signal (M2402+20n) does not turn ON, home position return is not
ended.
8 - 30
8 AUXILIARY AND APPLIED FUNCTIONS
[Control details]
(1) Count type 3
After the proximity dog ON, the zero point after the specified distance (travel
value after proximity dog ON) is home position in this method.
When the zero point is passed (zero pass signal: M2406+20n ON) during travel
of specified distance set in the "travel value after proximity dog ON" from the
home position return start, home position return operation is the same as "count
type 1". (Refer to Section 8.5.4)
When a zero point is not passed (zero pass signal: M2406+20n OFF) during
travel of specified distance set in the "travel value after proximity dog ON" from
the home position return start, it rotates one time to reverse direction and passes
the zero point, re-travels to home position return direction, and then the first zero
point after the specified distance (travel value after proximity dog ON) after
proximity dog ON is set as home position.
The travel value after proximity dog ON is set in the home position return data
(Refer to Section 8.5.1).
Fig. 8.8 Home position return operation by the count type 3 (zero point no passing)
8 - 31
8 AUXILIARY AND APPLIED FUNCTIONS
(2) After the proximity dog ON, when a servomotor rotates one time to reverse
direction after stop with travel value set in the "travel value after proximity dog
ON", make a system which does not turn OFF the external upper/lower stroke
limit.
(3) Home position return and continuously start of home position return are also
possible in the proximity dog ON in the count type 3.
When the home position return and continuously start of home position return are
executed in the proximity dog ON, the home position return is executed after
return the axis once to position of the proximity dog OFF.
(4) When the "travel value after proximity dog ON" is less than the deceleration
distance from "home position return speed" to "creep speed", a minor error "an
overrun occurred because the setting travel value is less than the deceleration
distance at the proximity dog signal input during home position return of count
type" (error code: 209) will occur and deceleration stop is made.
.
(5) When "1 : No servomotor Z-phase pass after power ON" is selected at the time of
MR-J2S-B/MR-J2M-B use in the "condition selection of home position set" of
servo parameter (expansion parameter), even if it does not pass zero point at the
servo amplifier power ON, the zero pass signal (M2406+20n) turns ON. This
operation is the same as count type 1.
(6) If in-position signal (M2402+20n) does not turn ON, home position return is not
ended.
8 - 32
8 AUXILIARY AND APPLIED FUNCTIONS
[Control details]
(1) Data set type 1
The proximity dog is not used in this method for the absolute position system.
Fig. 8.9 Home position return operation by the date set type 1
[Cautions]
(1) A zero point must be passed (zero pass signal: M2406+20n ON) between turning
ON the power supply and executing home position return.
If home position return is executed without passing a zero point once, "no zero
point passed error" occurs. If "no zero point passed error" occurred, perform the
home position return again, after reset the error and turn the servomotor at least
one revolution by the JOG operation.
The zero point passing can be confirmed with the zero pass signal (M2406+20n).
However, when "1 : No servomotor Z-phase pass after power ON" is selected at
the time of MR-J2S-B/MR-J2M-B use in the "condition selection of home position
set" of servo parameter (expansion parameter), even if it does not pass zero point
at the servo amplifier power ON, the home position return is possible because the
zero pass signal (M2406+20n) turns ON.
(2) Home position return is started by the data set type 1 when the absolute position
system does not support, it becomes same function as the current value change
command.
(3) The home position return data required for the data set type 1 are the home
position return direction and home position address.
(4) If in-position signal (M2402+20n) does not turn ON, home position return is not
ended.
8 - 33
8 AUXILIARY AND APPLIED FUNCTIONS
[Control details]
(1) Data set type 2
The proximity dog is not used in this method for the absolute position system.
Fig. 8.10 Home position return operation by the date set type 2
[Cautions]
(1) A zero point must be passed (zero pass signal: M2406+20n ON) between turning
ON the power supply and executing home position return.
If home position return is executed without passing a zero point once, "no zero
point passed error" occurs.
If "no zero point passed error" occurred, perform the home position return again,
after reset the error and turn the servomotor at least one revolution by the JOG
operation.
The zero point passing can be confirmed with the zero pass signal (M2406+20n).
However, when "1 : No servomotor Z-phase pass after power ON" is selected at
the time of MR-J2S-B/MR-J2M-B use in the "condition selection of home position
set" of servo parameter (expansion parameter), even if it does not pass zero point
at the servo amplifier power ON, the home position return is possible because the
zero pass signal (M2406+20n) turns ON.
(2) The home position return data required for the data set type 2 are the home
position return direction and home position address.
8 - 34
8 AUXILIARY AND APPLIED FUNCTIONS
[Control details]
(1) Dog cradle type
After deceleration stop by the proximity dog ON, if the zero point is passed after
traveling to reverse direction and turning the proximity dog OFF, the deceleration
stop is made. And it moves to direction of home position return again with creep
speed and the first zero point after proximity dog ON is home position in this
method.
3) 2)
Fig. 8.11 Home position return operation by the dog cradle type
8 - 35
8 AUXILIARY AND APPLIED FUNCTIONS
[Cautions]
(1) When home position return retry function is not set, if home position return is
executed again after home position return end, a minor error "home position return
completion signal is turning ON at the dog cradle type home position return start"
(error code: 115) will occur, the home position return is not executed.
(2) If the home position return is executed in the proximity dog, it travels to reverse
direction of home position return. If proximity dog turns OFF, a deceleration stop is
made, it travels to direction of home position return again with the creep speed
and the first zero point after proximity dog ON is home position.
Proximity dog
Zero point
8 - 36
8 AUXILIARY AND APPLIED FUNCTIONS
(3) When the proximity dog is set in the home position return direction, the proximity
dog is turned OFF during travel to reverse direction of home position return, and
the zero point is not passed, it continues to travel in the reverse direction of home
position return with home position return speed until the zero point is passed. The
zero point is passed again during deceleration by zero point pass, the home
position becomes this side compared with the case to pass zero point at the time
of the proximity dog OFF.
5)
Home position
return start Home position
4) 3)
Home position
return speed
Proximity dog
Zero point
8 - 37
8 AUXILIARY AND APPLIED FUNCTIONS
(4) When it starts in the proximity dog, the zero point is not passed at the time of the
proximity dog is turned OFF during travel to reverse direction of home position
return, it continues to travel with home position return speed until the zero point is
passed. The zero point is passed again during deceleration by zero point pass,
the home position becomes this side compared with the case to pass zero point at
the time of the proximity dog OFF.
Home position
2) 1)
Home position
Home position return start
return speed
Proximity dog
Zero point
8 - 38
8 AUXILIARY AND APPLIED FUNCTIONS
[Control details]
(1) Stopper type 1
Position of stopper is home position in this method.
It travels to the direction set in the "home position return direction" with the "home
position return speed", after a deceleration starts by proximity dog OFF to ON
and it presses against the stopper and makes to stop with the torque limit value
set in the "torque limit value at the creep speed" and "creep speed" of home
position return data. Real position of servomotor at the time of detection for
turning the torque limiting signal OFF to ON is home position.
Torque limit value after reaching creep speed is set in the "torque limit value at
the creep speed" of home position return data.
Stopper
Creep speed
t
Home position
return start Time which stops rotation of
servomotors forcibly by the
stopper
Proximity dog
ON
Torque limiting OFF
signal
(M2416+20n)
(Note): "Travel value after proximity dog ON" storage register becomes "0" at the
home position return start.
8 - 39
8 AUXILIARY AND APPLIED FUNCTIONS
[Cautions]
(1) A zero point does not must be passed (zero pass signal: M2406+20n ON)
between turning on the power supply and executing home position return.
(2) Home position return retry function cannot be used in the stopper type 1.
(3) Set the torque limit value after reaching the creep speed for system.
When the torque limit value is too large, servomotors or machines may be
damaged after pressing the stopper. Also, when the torque limit value is too small,
it becomes the torque limiting before pressing the stopper and ends the home
position return.
(4) If the home position return is executed again after home position return
completion, a minor error "home position return completion signal is turning ON at
the stopper type home position return start" (error code: 115) will occur, the home
position return is not executed.
(5) Home position return is started during the proximity dog ON, it is started from the
"creep speed".
8 - 40
8 AUXILIARY AND APPLIED FUNCTIONS
[Control details]
(1) Stopper type 2
Position of stopper is home position in this method.
It travels the direction set in the "home position return direction" with the "creep
speed", and it presses against the stopper and makes to stop with the "creep
speed". (The torque limit value is valid set in the "torque limit value at the creep
speed" of the home position return data from the home position return start.)
Real position of servomotor at the time of detection for turning the torque limiting
signal OFF to ON is home position.
Torque limit value after reaching creep speed is set in the "torque limit value at
the creep speed" of home position return data.
Home position
return start Time which stops rotation of servomotors
forcibly by the stopper
Torque limit Home position return data "torque limit value at the creep speed"
value
ON
Torque limiting OFF
signal
(M2416+20n)
(Note): "Travel value after proximity dog ON" storage register becomes "0" at the
home position return start.
8 - 41
8 AUXILIARY AND APPLIED FUNCTIONS
[Cautions]
(1) A zero point does not must be passed (zero pass signal: M2406+20n ON)
between turning on the power supply and executing home position return.
(2) Home position return retry function cannot be used in the stopper type 2.
(3) Set the torque limit value at the reaching creep speed for system.
When the torque limit value is too large, servomotors or machines may be
damaged after pressing the stopper. Also, when the torque limit value is too small,
it becomes the torque limiting before pressing the stopper and ends the home
position return.
(4) If the home position return is executed again after home position return
completion, a minor error "home position return completion signal is turning ON at
the stopper type home position return start" (error code: 115) will occur, the home
position return is not executed.
8 - 42
8 AUXILIARY AND APPLIED FUNCTIONS
[Control details]
(1) Limit switch combined type
The proximity dog is not used in this method. Home position return can be
executed by using the external upper/lower limit switch.
When the home position return is started, it travels to direction of home position
return with "home position return speed". Deceleration is made by turning the
limit switch of home position return direction ON to OFF, it travels to reverse
direction of home position return with creep speed, and the zero point just before
limit switch is home position.
Home position 3)
return start Home position
Creep speed
External limit switch
Fig. 8.14 Home position return operation by the limit switch combined type
8 - 43
8 AUXILIARY AND APPLIED FUNCTIONS
[Cautions]
(1) For the axis which executes the home position return by the limit switch combined
type, if the external input signal has not set in the system settings, a minor error
"the positioning control which use the external input signal was executed for the
axis which has not set the external input signal in the system settings" (error code:
142) will occur and home position return is not executed.
(2) When the limit switch reverse to home position return direction is turned ON to
OFF, deceleration stop is made, home position return is not completed and a
major error "external limit switch detection error" (error code: 1101, 1102) will
occur.
(3) Home position return retry function cannot be used in the limit switch combined
type.
(4) If the home position return is executed with the limit switch OFF, it is started to
reverse direction of home position return with creep speed.
(5) When it does not pass (zero pass signal: M2406+20n ON) the zero point from
home position return start to deceleration stop by limit switch OFF, a minor error
"ZCT not set" (error code:120) will occur, a deceleration stop is made and home
position return does not end normally. However, when "1 : No servomotor Z-phase
pass after power ON" is selected at the time of MR-J2S-B/MR-J2M-B use in the
"condition selection of home position set" of servo parameter (expansion
parameter), if the zero point is not passed until from home position return start to
deceleration stop by limit switch OFF, the home position return can be executed.
(6) Deceleration stop is executed after the limit switch OFF. Set the limit switch in
expectation of deceleration distance.
(7) If the in-position signal (M2402+20n) is turned ON, home position return is not
ended.
(8) When the width is in a zero point, the home position differs from the home position
return by the proximity dog type 1, proximity dog type 2, count type 1, count type 3
and dog cradle type.
8 - 44
8 AUXILIARY AND APPLIED FUNCTIONS
When a work has been exceeded home position during positioning control, etc., even if
it executes the home position return, depending on the position of work, a work may
not travel to home position direction. In this case, a work is normally travelled before
the proximity dog by the JOG operation, etc, and the home position return is started
again. However, by using the home position return retry function, even if a work is
where, the home position return can be executed.
Refer to Section 8.5.1(5) for home position return method by using the home position
return retry function.
[Data Setting]
When the "home position return retry function" is used, set the following "home position
return data" using a peripheral devices.
Set the "dwell time at the home position return retry" as required.
Set the parameters for every axis.
Dwell time at the home The stop time at the deceleration stop during 0 to 5000
0
position return retry the home position return retry is set [ms]
[Control details]
Operation for the home position return retry function is shown below.
(1) Home position return retry operation setting a work within the range of external
limit switch
Fig. 8.15 Operation for home position return retry (proximity dog type)
8 - 45
8 AUXILIARY AND APPLIED FUNCTIONS
(2) Home position return retry operation setting a work outside the range of external
limit switch
(a) When the direction of "work home position" and home position return is
same, normal home position return is operated.
Home position
return direction
Home position
return start
RLS FLS
Proximity dog Home
position
Zero
point
Travel range
(b) When the direction of "work home position" and home position return is
reverse, deceleration stop is made with the proximity dog OFF and home
position return is operated to preset direction of home position return.
Direction of "work home position" 1) It travels to preset reverse direction of home position
and home position return is reverse return with the home position return speed.
2) A deceleration stop is made by the proximity dog OFF.
3) After a deceleration stop, it travels to direction of home
position return, the home position return ends.
Home position
return direction
3) Home position
return start
Home
2) position
1)
RLS FLS
Proximity dog
Zero
point
Travel range
8 - 46
8 AUXILIARY AND APPLIED FUNCTIONS
5) 1)
6) 2)
Fig. 8.16 Dwell time setting at the home position return retry
[Cautions]
(1) Possible/not possible of home position return retry function by the home position
return method is shown below.
Possible/not possible of home position
Home position return methods
return retry function
Proximity dog type
Count type
Data set type
Dog cradle type
Stopper type
Limit switch combined type
: Possible, : Not possible
8 - 47
8 AUXILIARY AND APPLIED FUNCTIONS
(2) Make a system for which does not execute the servo amplifier power off or servo
OFF by the external upper/lower limit switch. Home position return retry cannot be
executed only in the state of servo ON.
(3) Deceleration is made by detection of the external limit switch and travel to reverse
direction of home position return is started. In this case, a major error "external
limit switch detection error" (error codes: 1001, 1002, 1101, 1102) will not occur.
(4) Do not use the home position return retry function for axis which use the servo
amplifier model MR-J2-B/MR-J2-03B5.
CAUTION
Be sure to set the external limit switch (FLS, RLS) in the upper/lower position of machines. If
the home position return retry function is used without external limit switch, servomotors
continue rotating.
8 - 48
8 AUXILIARY AND APPLIED FUNCTIONS
Normally, when the machine home position return is executed, a position of home
position is set by using the proximity dog or zero point signal. However, by using the
home position shift function, the position to which only the specified travel value was
travelled from the position which detected the zero point signal can be regarded as
home position.
Refer to Section 8.5.1(5) for home position return method by using the home position
shift function.
[Data Setting]
Set the following "home position return data" using a peripheral devices to use the
"home position shift function".
Set the parameters for every axis.
8 - 49
8 AUXILIARY AND APPLIED FUNCTIONS
[Control details]
(1) Home position shift operation
Operation for the home position shift function is shown below.
Home position
Home position
return start Home position Home position shift amount
return re-travel (Positive value)
value
Travel value after proximity dog ON
Proximity dog
Zero point
Zero point
8 - 50
8 AUXILIARY AND APPLIED FUNCTIONS
Zero point
Proximity dog
Zero point
Fig. 8.19 Operation for home position shift with the home position return
speed
8 - 51
8 AUXILIARY AND APPLIED FUNCTIONS
Home position
V return direction
Home position
return start
Fig. 8.20 Operation for home position shift with the creep speed
[Cautions]
(1) Valid/invalid of home position shift amount setting value by the home position
return method is shown below.
Home position return Valid/invalid of home position
methods shift amount
Proximity dog type
Count type
Data set type
Dog cradle type
Stopper type
Limit switch combined type
: Valid, : Invalid
(2) Axis monitor devices and axis statuses are set after completion of home position
shift.
(3) When the home position return by proximity dog type, set the travel value after
proximity dog ON and home position shift amount within the range of
"-2147483648 to 2147483647" [ 10-4 mm, 10-5 inch, 10-5 degree].
8 - 52
8 AUXILIARY AND APPLIED FUNCTIONS
A home position return must be made after the servomotor has been rotated more than
one revolution to pass the axis through the Z-phase (motor reference position signal)
and the zero pass signal (M2406+20n) has been turned ON.
When "1 : No servomotor Z-phase pass after power ON" is selected at the time of MR-
J2S-B/MR-J2M-B use in the "condition selection of home position set" of servo
parameter (expansion parameter), if it does not pass zero point with the motor rotation
after turning the servo amplifier power ON, the zero pass signal (M2406+20n) can be
turned ON.
[Data Setting]
Set the following "servo parameter" using a peripheral devices to select the "condition
selection of home position set".
Set the servo parameters for every axis.
Optional function 6
(Note-1) Set the condition
0: Servomotor Z-phase pass after power ON
(Condition selection of home 0
1: No servomotor Z-phase pass after power ON
selection of home position set
position set)
(Note-1): If "1: No servomotor Z-phase pass after power ON" is set, use the operating system software (SW5RN-
SV43Q (Ver.00D or later)).
However, when the data set type home position return is used, there is no restriction by the version of
operating system software.
[Cautions]
(1) Condition selection of home position set for servo parameters can be set when
using the MR-J2S-B/MR-J2M-B only. When "1 : No servomotor Z-phase pass after
power ON" is set as the above servo parameter, a restrictions such as "make the
home position return after the servomotor is rotated more than one revolution to
pass the axis through the Z-phase (motor reference position signal)" is lost.
(2) The servomotor must also have been rotated more than one revolution to pass the
axis through the Z-phase (motor reference position signal) for home position return
when using the servo amplifier except the MR-J2S-B/MR-J2M-B.
(3) When "1 : No servomotor Z-phase pass after power ON" is selected at the time of
MR-J2S-B/MR-J2M-B use in the "condition selection of home position set" of servo
parameter (expansion parameter), if it does not pass zero point at the servo
amplifier power ON, the zero pass signal (M2406+20n) turns ON.
(4) When the above parameter is changed, turn the servo amplifier power OFF to ON
after resetting or turning power OFF to ON of Multiple CPU system.
8 - 53
8 AUXILIARY AND APPLIED FUNCTIONS
CAUTION
Do not set the "1 : No servomotor Z-phase pass after power ON" for axis which executes the
home position return again after it continues traveling the same direction infinitely.
8 - 54
8 AUXILIARY AND APPLIED FUNCTIONS
[Control details]
(1) Home position return is executed by the home position return method specified
with the home position return data (Refer to Section 8.5.1).
Refer to the following sections for details of the home position return methods :
• Proximity dog type 1................... Section 8.5.2
• Proximity dog type 2................... Section 8.5.3
• Count type 1............................... Section 8.5.4
• Count type 2............................... Section 8.5.5
• Count type 3............................... Section 8.5.6
• Data set type 1............................ Section 8.5.7
• Data set type 2............................ Section 8.5.8
• Dog cradle type........................... Section 8.5.9
• Stopper type 1............................ Section 8.5.10
• Stopper type 2............................ Section 8.5.11
• Limit switch combined type........ Section 8.5.12
[Program]
A program which executes a home position return using the CHGA instruction is
shown below.
• Program example
Program which execute the home position return of the axis No.4 of the Motion CPU
(CPU No.2) from PLC CPU(CPU No.1).
RST M100
M0 M1
Normal complete program
M1
Abnormal complete program
[Cautions]
If the home position is not within the in-position range of servo parameter, it does not
mean having reached the home position data and the home position return does not
end in the proximity dog type, count type, data set type 1, dog cradle type, or limit
switch combined type home position return. In this case, adjusts the in-position range
of servo parameter or position control gain.
8 - 55
8 AUXILIARY AND APPLIED FUNCTIONS
(1) A speed of operating axis is forcibly changed to the speed specified with the
speed change registers.
(2) Refer to Section 4.5 for details of the S(P).CHGV instruction of PLC program.
Refer to Section 7.16.17 for details of the CHGV instruction of Motion program.
(3) A speed change should be set within the range of "-speed limit value to + speed
limit value". If it is outside the range, a minor error "305" will occur.
(6) A speed change during constant-speed control (when the axis travels through mid
points continuously during execution of G01, G02, G03, G12, G13 or G32) should
be set within the range of "-F command to +F command". If it is outside the range,
the speed is controlled by F command.
(7) The F command after a speed change during constant-speed control is made
valid within the range of the change speed or less.
(8) If a speed change is executed during positioning control for program operation, it
operates at the speed changed to the command of the next travel block.
It changes whether the speed change value is continued or the speed changes
command speed value in the program depending on the next type of travel block
mode as the table "command speed after execution of speed change" of next
page.
8 - 56
8 AUXILIARY AND APPLIED FUNCTIONS
(Note-1): A speed change is valid only at the execution of travel mode in the PTP or constant speed.
(Note-2): This mode is executed by G00, G28, G30 or G53. OSC mode is the travel mode executed by G25.
(Note-3): This mode is executed by G01, G2, G3, G12, G13 or G32. The independent M-code is also handled as the
constant speed mode.
(Note-4): When a special M-code (M00, M01, M02, M30, M98, M99, M100) is not executed during the constant speed
mode after speed change.
(Note-5): When a special M-code (M00, M01, M02, M30, M98, M99, M100) is executed during the constant speed mode
after speed change.
The decelerates stop is made at the execution of the special M-code.
(Note-6): PTP mode: High-speed feed rate. OSC mode: F (frequency) command. Constant speed mode: F (speed)
command.
Example (CHGV is executed during N1) Speed
010 ;
N1 G00 X100. ; Program command speed
N2 G00 X200. ; Speed change value
M02 ;
% CHGV Time
N1 N2
Block switching
(Note-7): F (speed) command. Note that it is clamped at the speed change value.
Example (CHGV is executed during N1) Speed
011 ;
N1 G01 X100. F1000. ; Program command speed
N2 G01 X200. F1000. ; Speed change value
M02 ;
% CHGV Time
N1 N2
Block switching
8 - 57
8 AUXILIARY AND APPLIED FUNCTIONS
[Data setting]
(1) The setting ranges to speed change registers are shown below.
Units mm inch degree
Item Setting range Units Setting range Units Setting range Units
-2 -3 -3
0 to 10 0 to 10 0 to 10
Speed change value
600000000 mm/min 600000000 inch/min 2147483.647 degree/min
POINT
When the speed is set in the PLC program, stores a value which is 100 times (unit:
mm)/1000 times (unit: inch, degree) the real speed in the speed change registers.
Example
To change the speed to 10000.00mm/min, stores "1000000" to the speed
change registers.
[Cautions]
A speed change is not executed with the following errors.
(It is checked at the execution of CHGV instruction.)
Error code Error factor Error Processing Corrective action
Home position return is Do not execute the speed
301 executed by the change during the home
• Error detection flag
specified axis. position return.
(M2407+20n) turns ON.
Do not execute the speed
Speed change • Error code 301, 304 is
change during the
error Deceleration was being stored in the minor error
deceleration by JOG
304 made by JOG operation code storage register of
operation signal
signal OFF. each axis.
(M3202+20n, M3203+20n)
OFF.
• Error detection flag
(M2407+20n) turns ON.
Speed is set outside Set the speed within the
• Error code 305 is stored in
305 the range of "0" to range of "0" to speed limit
the minor error code
speed limit value. value.
storage register of each
Data setting
axis.
error
Axis No. is set is except
for 1 to 32. • Error code is stored in the Confirm a program and
4C06H (Note)
complete status storage correct it to a correct PLC
(Complete status) Axis No. is set indirectly
device. program.
by index qualification.
8 - 58
8 AUXILIARY AND APPLIED FUNCTIONS
(1) If a speed change is executed, the setting speed is ignored in the following cases.
(An error will not occur.)
(a) During motion program execution
(b) During deceleration by the stop command
(c) During a stop
(d) During manual pulse generator operation
[Operation Timing]
The operation timing for a speed change is shown in Fig. 8.21.
V
Operation at the JOG operation by V1
V1
V2
V3
CHGV
[Program Example]
A program example for speed change is shown as the following conditions.
RST M100
M0 M1
Normal complete program
M1
Abnormal complete program
8 - 59
8 AUXILIARY AND APPLIED FUNCTIONS
POINT
Start to outside the range of stroke limit of fixed parameter cannot be executed.
However, JOG operation is possible in the direction from outside the stroke limit
range to back inside the stroke limit range.
Stroke limit lower Stroke limit upper
8 - 60
8 AUXILIARY AND APPLIED FUNCTIONS
[Control details]
(1) JOG operation continues at the JOG speed setting register value while the JOG
operation signal turns on, and a deceleration stop is made by the JOG operation
signal OFF.
Control of acceleration/deceleration is based on the data set in the JOG operation
data.
V
Acceleration based
JOG operation speed
on JOG operation
data Deceleration stop based
on JOG operation data
ON
JOG operation command OFF
(M3202+20n/M3203+20n)
JOG operation for axis for which JOG operation command is turning on is
executed.
8 - 61
8 AUXILIARY AND APPLIED FUNCTIONS
(2) The setting range for JOG speed setting registers are shown below.
Setting range
JOG operation JOG speed setting register
No. mm inch degree
(Note)
Most Setting Setting Setting
Forward JOG Reverse JOG Setting range Units Units Units
significant range range range
1 M3202 M3203 D641 D640
2 M3222 M3223 D643 D642
3 M3242 M3243 D645 D644
4 M3262 M3263 D647 D646
5 M3282 M3283 D649 D648
6 M3302 M3303 D651 D650
7 M3322 M3323 D653 D652
8 M3342 M3343 D655 D654
9 M3362 M3363 D657 D656
10 M3382 M3383 D659 D658
11 M3402 M3403 D661 D660
12 M3422 M3423 D663 D662
13 M3442 M3443 D665 D664
14 M3462 M3463 D667 D666
15 M3482 M3483 D669 D668
10-2 10-3 10-3
16 M3502 M3503 D671 D670 1 to 1 to 1 to
mm inch degree
17 M3522 M3523 D673 D672 600000000 600000000 2147483647
/min /min /min
18 M3542 M3543 D675 D674
19 M3562 M3563 D677 D676
20 M3582 M3583 D679 D678
21 M3602 M3603 D681 D680
22 M3622 M3623 D683 D682
23 M3642 M3643 D685 D684
24 M3662 M3663 D687 D686
25 M3682 M3683 D689 D688
26 M3702 M3703 D691 D690
27 M3722 M3723 D693 D692
28 M3742 M3743 D695 D694
29 M3762 M3763 D697 D696
30 M3782 M3783 D699 D698
31 M3802 M3803 D701 D700
32 M3822 M3823 D703 D702
(Note) : The range of axis No.1 to 8 is valid in the Q172CPU(N).
POINT
When the JOG operation speed is set in the PLC program or control program,
stores a value which is 100 times the real speed in units of [mm] or 1000 times the
speed in units of [inch] or [degree] in the JOG speed setting register.
Example
If JOG operation speed of 6000.00 [mm/min] is set, stores the value "600000"
in the JOG speed setting register.
8 - 62
8 AUXILIARY AND APPLIED FUNCTIONS
[Cautions]
(1) If the forward JOG start command (M3202+20n) and reverse JOG start command
(M3203+20n) turn on simultaneously for a single axis, the forward JOG operation
is executed.
When a deceleration stop is made by the forward JOG start command OFF, the
reverse JOG operation is not executed even if the reverse JOG start command is
ON. After that, when the reverse JOG start command turns off to on, the reverse
JOG operation is executed.
V
Forward JOG operation
ON Reverse JOG
Forward JOG OFF operation
start command
ON
Reverse JOG OFF
start command
JOG operation
ON
JOG operation OFF
command
8 - 63
8 AUXILIARY AND APPLIED FUNCTIONS
t
During test mode ON
(M9075) OFF
ON
JOG operation OFF
command
[Program Example]
Program for JOG operation is shown as the following conditions.
8 - 64
8 AUXILIARY AND APPLIED FUNCTIONS
END 3;
IF [[ON #X006] AND [OFF #M3222]] THEN 4;
SET #M3223;
Two axes reverse rotation command
ELSE 4;
SET/RST
RST #M3223;
END 4;
GOTO 20;
M02;
%
(Note) : Control program O0100 is started by automatically start, CALL, GOSUB,
GOSUBE or SFCS instruction of the PLC program.
8 - 65
8 AUXILIARY AND APPLIED FUNCTIONS
V Acceleration based on
JOG operation data JOG operation speed
Deceleration stop based
on JOG operation data
t
JOG operation based
on D710 to D713 data
D710 to D713
ON
M2048 OFF
(2) JOG operation axis is set in the JOG operation simultaneous start axis setting
register (D710 to D713).
D712 Axis 16 Axis 15 Axis 14 Axis 13 Axis 12 Axis 11 Axis 10 Axis 9 Axis 8 Axis 7 Axis 6 Axis 5 Axis 4 Axis 3 Axis 2 Axis 1
Reverse
rotation
D713 Axis 32 Axis 31 Axis 30 Axis 29 Axis 28 Axis 27 Axis 26 Axis 25 Axis 24 Axis 23 Axis 22 Axis 21 Axis 20 Axis 19 Axis 18 Axis 17
JOG
(Note-1) Set the JOG operation simultaneous start axis with 1/0.
1:Simultaneous start is executed
0:Simultaneous start is not executed
(Note-2) The range of axis No.1 to 8 is valid in the Q172CPU(N).
8 - 66
8 AUXILIARY AND APPLIED FUNCTIONS
(3) The setting range for JOG speed setting registers are shown below.
Setting range
JOG operation JOG speed setting register
No. mm inch degree
(Note) Setting Setting Setting
Forward JOG Reverse JOG Most significant Setting range Units Units Units
range range range
1 M3202 M3203 D641 D640
2 M3222 M3223 D643 D642
3 M3242 M3243 D645 D644
4 M3262 M3263 D647 D646
5 M3282 M3283 D649 D648
6 M3302 M3303 D651 D650
7 M3322 M3323 D653 D652
8 M3342 M3343 D655 D654
9 M3362 M3363 D657 D656
10 M3382 M3383 D659 D658
11 M3402 M3403 D661 D660
12 M3422 M3423 D663 D662
13 M3442 M3443 D665 D664
14 M3462 M3463 D667 D666
15 M3482 M3483 D669 D668
10-2 10-3 10-3
16 M3502 M3503 D671 D670 1 to 1 to 1 to
mm inch degree
17 M3522 M3523 D673 D672 600000000 600000000 2147483647
/min /min /min
18 M3542 M3543 D675 D674
19 M3562 M3563 D677 D676
20 M3582 M3583 D679 D678
21 M3602 M3603 D681 D680
22 M3622 M3623 D683 D682
23 M3642 M3643 D685 D684
24 M3662 M3663 D687 D686
25 M3682 M3683 D689 D688
26 M3702 M3703 D691 D690
27 M3722 M3723 D693 D692
28 M3742 M3743 D695 D694
29 M3762 M3763 D697 D696
30 M3782 M3783 D699 D698
31 M3802 M3803 D701 D700
32 M3822 M3823 D703 D702
(Note) : The range of axis No.1 to 8 is valid in the Q172CPU(N).
8 - 67
8 AUXILIARY AND APPLIED FUNCTIONS
[Program Example]
Program for simultaneous start of JOG operations are shown as the following
conditions.
8 - 68
8 AUXILIARY AND APPLIED FUNCTIONS
Positioning control based on the number of pulses inputted from the manual pulse
generator is executed.
Simultaneous operation for 1 to 3 axes is possible with one manual pulse generator,
the number of connectable modules are shown below.
POINT
• When two or more Q173PXs are installed, connect the manual pulse generator to
first (It counts from 0 slot of the CPU base) Q173PX.
(When the manual pulse generator is used, only first Q173PX is valid.)
[Control details]
(1) Positioning of the axis set in the manual pulse generator axis setting register
based on the pulse input from the manual pulse generator.
Manual pulse generator operation is only valid while the manual pulse generator
enable flag turn ON.
Manual pulse generator Manual pulse generator axis Manual pulse generator
connecting position No. setting register enable flag
P1 D714, D715 M2051
P2 D716, D717 M2052
P3 D718, D719 M2053
(2) The travel value and output speed for positioning control based on the pulse input
from manual pulse generator are shown below.
(a) Travel value
The travel value based on the pulse input from a manual pulse generator is
calculated using the following formula.
[Travel value] = [Travel value per pulse] [Number of input pulses] [Manual
pulse generator 1- pulse input magnification setting]
The travel value per pulse for manual pulse generator operation is shown
below.
Unit Travel value
mm 0.1 [µm]
inch 0.00001 [inch]
degree 0.00001 [degree]
If units is [mm], the command travel value for input of one pulse is :
(0.1 [µm]) (1 [PLS]) (Manual pulse generator 1-pulse input
magnification setting)
8 - 69
8 AUXILIARY AND APPLIED FUNCTIONS
8 - 70
8 AUXILIARY AND APPLIED FUNCTIONS
(5) The setting manual pulse generator 1-pulse input magnification checks the "1-
pulse input magnification setting registers of the manual pulse generator" of the
applicable axis at the turning manual pulse generator enable flag turns off to on.
If the value is outside of range, the manual pulse generator axis setting error
register (D9185 to D9187) and manual pulse generator axis setting error flag
(M9077) are set and a value of "1" is used for the magnification.
(a) Operation
V V1
t t t t
(b) When the smoothing magnification is set, the smoothing time constant is as
following formula.
Smoothing time constant (t) = (Smoothing magnification + 1) 56.8 [ms]
REMARK
The smoothing time constant is within the range of 56.8 to 3408[ms].
8 - 71
8 AUXILIARY AND APPLIED FUNCTIONS
(7) Errors details at the data setting for manual pulse generator operation are shown
below.
Error details Error processing
• Duplicated specified axis is ignored.
Axis set to manual pulse generator
• First setting manual pulse generator operation is
operation is specified.
executed.
• Manual pulse generator operation is executed
Axis setting is 4 axes or more according to valid for 3 axes from the lowest manual
pulse generator axis setting register.
All of bit is "0" for the effective axis No. • Manual pulse generator operation is not executed.
of manual pulse generator axis No.
setting register.
[Cautions]
(1) The start accept flag turns on for axis during manual pulse generator operation.
Positioning control or home position return cannot be started using the Motion
CPU or a peripheral device.
Turn off the manual pulse generator enable flag after the manual pulse generator
operation end.
(2) The torque limit value is fixed at 300[%] during manual pulse generator operation.
(3) If the manual pulse generator enable flag turns on for the starting axis by
positioning control or JOG operation, an error [214] is set to the applicable axis
and manual pulse generator input is not enabled. After the axis has been stopped,
the turning OFF to ON of the manual pulse generator enable flag becomes valid,
the start accept flag turns on by the manual pulse generator input enabled status,
and input from the manual pulse generator is input.
V Positioning control
Manual pulse generator operation
t
ON
(4) If the manual pulse generator enable flag of another manual pulse generator No.
turns on for axis during manual pulse generator operation, an error [214] is set to
the applicable axis and the input of that manual pulse generator is not enabled.
Turn the manual pulse generator enable flag on again after stopping the manual
pulse generator operation which had become input enable previously.
8 - 72
8 AUXILIARY AND APPLIED FUNCTIONS
(5) If the same manual pulse generator enable flag turns on again for axis during
smoothing deceleration after manual pulse generator enable flag turns off, an
error [214] is set and manual pulse generator input is not enabled. Turn the
manual pulse generator enable flag on after smoothing deceleration stop (after the
start accept flag OFF).
(6) If another axis is set and the same manual pulse generator enable flag turns on
again during smoothing deceleration after manual pulse generator enable flag
turns off, the manual pulse generator input is not enabled.
At this time, the manual pulse generator axis setting error bit of the manual pulse
generator axis setting error storage register (D9185 to D9187) turns on, and the
manual pulse generator axis setting error flag (M9077) turns on.
Include the start accept flag OFF for specified axis in interlocks as the conditions
which turn on the manual pulse generator enable flag.
Start
Turn the manual pulse . . . . . . . Using the PLC program or control program
generator enable flag OFF
End
8 - 73
8 AUXILIARY AND APPLIED FUNCTIONS
[Program Example]
Program executes manual pulse generator operation is shown as the following
conditions.
8 - 74
8 AUXILIARY AND APPLIED FUNCTIONS
The speed change can be executed by setting the override ratio to the command
speed of the Motion program in this function.
[Control details]
(1) The override ratio is set in the range of 0 to 100[%] in 1[%] units to the command
speed in the Motion program. The value obtained by multiplying the command
speed by the override value is the real feed speed.
[Data Setting]
(1) The speed change by the override ratio setting function is used the override ratio
setting register.
The override ratio setting register of each axis are shown below.
Axis Override Ratio Axis Override Ratio Axis Override Ratio Axis Override Ratio
No. Setting Register No. Setting Register No. Setting Register No. Setting Register
1 D1536 9 D1560 17 D1584 25 D1608
2 D1539 10 D1563 18 D1587 26 D1611
3 D1542 11 D1566 19 D1590 27 D1614
4 D1545 12 D1569 20 D1593 28 D1617
5 D1548 13 D1572 21 D1596 29 D1620
6 D1551 14 D1575 22 D1599 30 D1623
7 D1554 15 D1578 23 D1602 31 D1626
8 D1557 16 D1581 24 D1605 32 D1629
(2) The ratio is set to the override ratio setting register within the range of 0 to 100[%].
(3) When the override ratio enable/disable (M4405+10n) is ON, the content of
override ratio setting register is valid. When the M4405+10n is OFF, it is controlled
at the override ratio of 100[%].
[Cautions]
(1) When the SVST instruction is executed, the content of override ratio setting
register for the lowest starting axis valid.
[Example]
Axis 2, 3, 4 start instruction
SP.SVST H3E3 "J2J3J44" K100 M0 D0
• When the above SVST instruction is executed, the data of axis 2 is valid. (The
data of axis 3, 4 are invalid.)
8 - 75
8 AUXILIARY AND APPLIED FUNCTIONS
(2) When the speed is changed by the override ratio setting function,
acceleration/deceleration processing is executed according to the "acceleration
time" and "deceleration time" in the parameter block.
(3) The override ratio setting is valid for Motion program operation only. (Invalid for
JOG operation and so on.)
(4) The error contents for override ratio data setting are shown below.
Error code Error factor Error Processing Corrective action
At a start, the value set in the override ratio • Operation is performed at 100[%]. Sets the override
190
setting register is except 0 to 100[%]. (Operation is executed at ratio within the
During operation, the value set in the override command speed in the Motion range of 0 to 100
290
ratio setting register is except 0 to 100[%]. program.) [%].
[Operation Timing]
The speed change timing by override ratio setting function is shown in Fig. 8.22.
V
Operation performed at 75[%]
Command speed [%] in second block Operation performed at 50[%]
100 in third block
50
t
Override ratio
100 25 0 50 75 50
setting register
1st block start 1st block 1st block completion 2nd block 3rd block
Override ratio changed to 50[%] before a
start of third block.
8 - 76
8 AUXILIARY AND APPLIED FUNCTIONS
By selecting the FIN signal wait function and setting a M-code at each executing point,
a process end of each executing point is synchronized with the FIN signal, the FIN
signal turns ON to OFF and then the next positioning is executed.
Turn the FIN signal on/off using the Motion program or PLC program.
[Data Setting]
(1) The FIN signal and M-code outputting signal correspond to the following devices
of each axis.
Axis No.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Signal name
FIN signal M3219 M3239 M3259 M3279 M3299 M3319 M3339 M3359 M3379 M3399 M3419 M3439 M3459 M3479 M3499 M3519
M-code outputting signal M2419 M2439 M2459 M2479 M2499 M2519 M2539 M2559 M2579 M2599 M2619 M2639 M2659 M2679 M2699 M2719
Axis No.
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
Signal name
FIN signal M3539 M3559 M3579 M3599 M3619 M3639 M3659 M3679 M3699 M3719 M3739 M3759 M3779 M3799 M3819 M3839
M-code outputting signal M2739 M2759 M2779 M2799 M2819 M2839 M2859 M2879 M2899 M2919 M2939 M2959 M2979 M2999 M3019 M3039
[Program Example]
O0001 ;
01 ;
G01 X20. Y20. F100. M10 ; (Point1) Point
X30. Y25. M11 ; (Point2) 1 FIN waiting 2
X35. Y30. M12 ; (Point3)
X40. Y40. ; (Point4)
M-code 10 11
M02 ;
(D13+20n)
%
M-code outputting
(M2419+20n)
FIN signal
(M3219+20n) Explanatory
8 - 77
8 AUXILIARY AND APPLIED FUNCTIONS
[Cautions]
(1) When the stop command (external, M3200+20n, M3201+20n), cancel signal or
skip signal is input, the M-code outputting signal turns OFF.
(2) When M-code is set at the end point, positioning ends after the FIN signal has turn
OFF to ON to OFF.
(3) Transition of point for the FIN signal wait function is executed with the command
before acceleration/deceleration. (Refer to Fig in (6) (b).)
(4) M-code outputting signal is output to all interpolation axes at the interpolation
control. In this case, turn on the signal for one of the interpolation axes.
However, the FIN signal for the high-speed oscillation execution axis is ignored.
(5) When the FIN signal for any one of the interpolation axes is ON, the M-code
outputting signal is not output if the FIN wait function is executed.
Example: When the FIN waiting function for point 1 is executed while the second axis
turns on.
FIN wait
Point 1 2
M-code
10 11
(D13+20n)
M-code outputting
(M2419+20n)
8 - 78
8 AUXILIARY AND APPLIED FUNCTIONS
(6) The command in-position signal for FIN signal wait function is output as below.
(a) When the automatic deceleration is started by positioning to the executed
point (including the last point) during FIN signal wait.
If the difference between the positioning address (command position) of
executing point and the machine value reaches within the command in-
position range during FIN signal wait deceleration, the command in-position
signal (M2403+20n) turns on.
When the axis transits to the next point, the command in-position signal turns
off.
Automatic deceleration
Command in-position setting value
M-code
10 11
(D13+20n)
M-code outputting
(M2419+20n)
FIN signal
(M3219+20n)
Command in-position
(M2403+20n)
(b) When the axis transits to the next point without automatic deceleration by
positioning to the executing point during FIN signal wait.
If the axis transits to the next point without automatic deceleration, the
command in-position signal does not turn on.
M-code 10 11 12
(D13+20n)
M-code outputting
(M2419+20n)
FIN signal
(M3219+20n)
Command in-position
(M3203+20n)
8 - 79
8 AUXILIARY AND APPLIED FUNCTIONS
POINTS
(1) The fixed acceleration/deceleration time method is acceleration/deceleration processing that the
time which acceleration/deceleration takes is fixed, even if the command differs.
V
(a) The following processing and parameters are invalid in the fixed acceleration/deceleration
time method.
• Rapid stop acceleration/deceleration time in parameter block
• S-curve acceleration/deceleration
(b) The speed processing for each axis is as shown below in positioning operation (constant-
speed) as shown in the following figure.
Y V
Ay
Axis 2 Axis 1
Address Ax
X t
Axis 1 Ax Ax
V
Positioning operation
Axis 2
Address Ay
t
Ay
Constant-speed control processing
of each axis
(2) When the rapid stop command is executed by the setting "deceleration time < rapid stop
deceleration time" during constant-speed control, the point data currently executed in the middle
of deceleration, and the positioning may be completed suddenly as a speed "0".
In the case of, "deceleration time rapid stop deceleration time", the above operation is not
executed.
Travel value by the point data currently executed at the rapid stop command
(Up to 9 points) < Speed at rapid stop command input Rapid stop deceleration time/2
[Operation pattern]
ON
Start accept flag OFF
ON
Positioning complete OFF
signal ON
OFF
Rapid stop command
1) 2) 3) 4) 5) 6) 7) 8)
Combined-speed
Deceleration speed at
the normal stop
8 - 80
8 AUXILIARY AND APPLIED FUNCTIONS
This function is used to execute the program operation block-by-block and check the
operation of Motion program.
The single block is available in two modes: a mode where a single block is specified
before a program start, and a mode where a single block is executed at any point
during program execution.
The single block operation can be executed at any point during operation by turning
the single block mode signal (M4408) ON during continuous operation, and by turning
the single block start signal (M4409) from OFF to ON.
[Control details]
(1) Single block signal devices
The single block related signals are shown below.
Signal Name Device No. Signal direction
Single block processing M4009 Monitor device
Single block mode M4408
Command device
Single block start M4409
ON
OFF
Single block processing signal (M4009)
ON
Single block mode signal (M4408) OFF
ON
Single block start signal (M4409) OFF
These signals are valid for all program operations executed concurrently.
8 - 81
8 AUXILIARY AND APPLIED FUNCTIONS
8 - 82
8 AUXILIARY AND APPLIED FUNCTIONS
Continuous
operation from N3
8 - 83
8 AUXILIARY AND APPLIED FUNCTIONS
O0010 ;
N1 G01 X100. F100. ; (Single block processing signal is ON)
N2 #D0 = 0 ;
N3 #D2 = 1 ;
N4 #D3 = 2 ;
N5 #D4 = 3 ; (Pre-read complete block)
M02 ;
%
During N1 execution, the single block processing signal is turned ON. If the macro
instructions in up to N5 have been pre-read at this time, making a single block start
for one block changes the executed PLC No. from N1 to N5.
8 - 84
8 AUXILIARY AND APPLIED FUNCTIONS
[Cautions]
(1) Single block mode signal (M4408) and single block command (M4403+10n)
If the single block by single block mode signal (M4408) and the single block by
single block command (M4403+10n) are executed simultaneously, the operation
by the single block command (M4403+10n) is made invalid.
(2) Emergency stop, stop command, rapid stop command and error when single
block in progress signal (M4009) is ON
When the single block processing signal (M4009) is ON, it does not turn OFF if an
emergency stop, stop command or rapid stop command is executed, or an error
occurs.
The single block processing signal (M4009) turns OFF by turning OFF the single
block mode signal (M4408) and then turning the single block start signal (M4409)
from OFF to ON.
(3) Status at termination of one block execution when single block in progress is ON
If one block execution ends when the single block processing signal (M4009) is
ON, the automatic start signal (M4002+10n) does not turn OFF. At this time, the
command in-position signal (M2403+20n) turns ON.
8 - 85
8 AUXILIARY AND APPLIED FUNCTIONS
This function is used to store the specified positioning data in the specified device (D,
W). The signal from input module controlled in the Motion CPU is used as a trigger.
It can be set in the system setting of SW6RN-GSV43P.
Q173PX TREN 3
0.8[ms]
PLC input module (Note) PX device 8
(Note) : Only one PLC input module can be used.
8 - 86
8 AUXILIARY AND APPLIED FUNCTIONS
The No. of control program during execution is specified to end a program from the
PLC CPU. (This function is equivalent to a Motion program (CLEAR) for positioning
control.)
(1) The control program set as the CLEAR request control program No. setting
register (D707) is ended. The values except for "0" is set in D707, the CLEAR
processing is executed.
(2) When an equivalent for CLEAR instruction is executed toward the all control
programs during execution, "65535" is stored in the CLEAR request control
program No. setting register (D707).
(3) When the control program set as the CLEAR request control program No. setting
register (D707) is cleared normally, "1" is stored in the CLEAR request status
storage register (D1445).
(4) When an error will occur by clearing the control program set as the CLEAR
request control program No. setting register (D707), the following error codes are
stored.
(a) A minor error "the program number ended by CLEAR is outside the range of 1
to 1024". (Error code: 619)
(b) A minor error "the program number ended by CLEAR is nor registered. Or,
the axis designation program is cleared" (Error code: 620).
(5) When "0" is stored in the CLEAR request control program No. setting register
(D707), "1" is also stored in the CLEAR request status storage register (D1445).
[Operation Timing]
Operation timing for the CLEAR request status storage register by control program
stop function from the PLC CPU is shown in Fig. 8.23.
* : Error code
Fig. 8.23 Operation timing for the CLEAR request status storage register
8 - 87
8 AUXILIARY AND APPLIED FUNCTIONS
MEMO
8 - 88
9 USER FILES
9. USER FILES
POINT
(1) Set the "project name" on the project management screen.
(3) The "project path name" + "project name" are restricted to 230 characters in
length.
((Example) "C:\Usr\.........\project name\")
9-1
9 USER FILES
Sfc
( ) System setting data file svsystem.bin System setting data information file
(4)
High speed read setting file svlatch.bin High speed read setting information file
( )
(6) Motion parameter file motionpara.bin Motion parameter information file
(7) Backup data file svbackup2.bin Information file 2 for backup and load
( )
Motion registers (#0 to #8191) read file
Motion register file modevice.bin Only user device range (#0 to #7999) is written.
(8)
Device memory file devmen.bin Device (X, Y, M/L, B, F, D, W, Special relay,
Special register) except # read file
( )
(10) Q series PLC param.wpa Multiple CPU, I/O assignment data file
common parameter file
9-2
10 ROM OPERATION FUNCTION
This function is used to store beforehand the user programs and parameters in the
internal FLASH ROM memory built-in the Motion CPU module, and operate it based on
the data of internal FLASH ROM memory.
Refer to Section 1.3.4 for the correspondence version of the Motion CPU and the
software.
(1) Turn on or reset the power supply of Multiple CPU system in the "Mode operated
by RAM".
(2) Execute a trial run and adjustment by creating the system setting, programs and
parameters using SW6RN-GSV43P.
(3) Turn on or reset the power supply of Multiple CPU system in the "Installation
mode • mode written in ROM".
(4) Write the system setting, programs and parameters of SRAM built-in the Motion
CPU module to the internal FLASH ROM by performing the ROM writing request
using SW6RN-GSV43P.
(5) Start a normal operation by starting the Motion CPU in the "Mode operated by
ROM" after reading the system setting, programs and parameters written in the
internal FLASH ROM to the internal SRAM.
POINT
(1) Switch the operation mode using a DIP switches of Motion CPU module.
(2) Confirm the operation mode with "Mode LED" and "BOOT LED" of Motion
CPU module.
10
10 - 1
10 ROM OPERATION FUNCTION
Motion program
Personal computer
1) ROM writing request
MT Developer
Internal FLASH ROM memory
System setting data
Each parameter for servo control
Motion parameter
2) ROM
Motion program writing
Motion program
Motion program
10 - 2
10 ROM OPERATION FUNCTION
Q17 CPU(N)
MODE 1) MODE
RUN 10) RUN
ERR. 2) ERR.
M.RUN
BAT.
3) M.RUN
BAT.
BOOT 4) BOOT
5) ON SW
1
6) 2
3 9)
4
FRONT 5
SSCNET
STOP RUN
CN2
CN1
RESET L CLR
7)
PULL
8)
USB
RS-232
10 - 3
10 ROM OPERATION FUNCTION
RESET : Set the switch to the "RESET" position once to reset the hardware.
Applies a reset after an operation error and initialized the operation.
L.CLR : Clear the latch area all data which set with the parameters.
(LATCH CLEAR also clears data outside the latch area at this time.)
RESET/L.CLR switch (Note-1) • Latch clear operating method
8)
(Momentary switch) 1) Set the "RUN/STOP" switch to "STOP".
2) Move the "RESET/L.CLR" switch to "L.CLR" several times until the "M.RUN
LED" flickers.
("M.RUN LED" flickers : Latch clear completed. )
3) Move the "RESET/L.CLR" switch to "L.CLR" once more. ("M.RUN LED" turn off.)
Dip switch 1 Must not be used. (Shipped from the factory in OFF position)
ROM operating setting (Shipped from the factory in OFF position)
Dip switches Dip switch 2 SW2 SW3
ON SW OFF OFF Mode operated by RAM
1 ON OFF Must not be set
Dip switch 3 OFF ON Must not be set
2
9) ON ON Mode operated by ROM
3 Dip switch 4 Must not be used. (Shipped from the factory in OFF position)
4 Dip switch 5 ON : Installation mode • mode written in ROM
5 (Installation • OFF : Normal mode (Mode operated by RAM / Mode operated by ROM)
ROM writing Turn ON dip switch 5 when installed the operating system software into the Motion
switch) CPU module from the peripheral device. After completing the installation, move
to switch and re-start.
10) Memory card EJECT button Used to eject the memory card from the Motion CPU.
(Note-1) : It is not possible to reset the Multiple CPU system by each of the PLC CPU/Motion CPU No.2 to 4.
If it is reset, other CPU occurred to stop of the overall Multiple CPU system where "MULTI CPU DOWN" (Error code : 7000).
The overall Multiple CPU system reset is resetting the CPU No.1 of PLC CPU.
10 - 4
10 ROM OPERATION FUNCTION
10 - 5
10 ROM OPERATION FUNCTION
POINT
Even if a DIP switch setting is changed on the way after the power supply on,
"Operation mode" is not changed. Be sure to turn on or reset the power supply of
the Multiple CPU system to change a DIP switch setting.
10 - 6
10 ROM OPERATION FUNCTION
Personal computer
Internal FLASH ROM memory 1) ROM writing request
MT Developer
System setting data
Each parameter for control
Motion parameter
Motion program
2) ROM
writing
(Note-1) : "Registration code" is used to judge whether the programs and parameters written in the internal
FLASH ROM are normal or not.
POINT
(1) When the RAM is selected with "Communication" - "Transfer" menu of
SW6RN-GSV43P, the SRAM memory built-in Motion CPU module is targeted
at the "Installation mode • mode written in ROM" and "Mode operated by
ROM".
(2) The SRAM memory built-in Motion CPU module is targeted at the "Backup •
load" operation of SW6RN-GSV43P. Set the "Mode operated by ROM" after
"ROM writing" for the ROM operation after "Backup • load" at the CPU module
replacement.
(3) The internal FLASH ROM serves as a life in 100000 times writing. If it passes
over a life, "writing error" will occur. After that, replace a module for the ROM
operation.
10 - 7
10 ROM OPERATION FUNCTION
Installation mode
mode written in Set "normal mode" as a DIP switch 5,
ROM (Install the and set "Mode operated by RAM" as a DIP
operating system switch 2 and 3.
software.)
Mode operated NO
by RAM Check the operation
YES
Installation mode
mode written in
Set "normal mode" as a DIP switch 5, and
ROM set "Mode operated by ROM" as a DIP
(ROM writing.) switch 2 and 3.
Mode operated
by ROM
ROM operation start
(Note) : Do not execute the ROM writing for program and parameter while installing
the operating system software.
10 - 8
10 ROM OPERATION FUNCTION
10 - 9
10 ROM OPERATION FUNCTION
The operating procedure of ROM writing using the SW6RN-GSV43P is shown below.
System setting screen
Operating procedure
"When selecting the RAM." (Default screen at "Transfer" selecting.) 2) Click on "ROM" of "RAM/ROM" menu screen.
Write the programs and data in the RAM of Motion
CPU to the ROM.
(Note) : At "RAM" clicking on
Communication dialog is left screen (When
selecting the RAM).
RAM/ROM(M) Read, write and verify to the RAM of Motion
RAM(T) CPU.
ROM(R) Write the all data to Motion CPU after
clicking on "RAM" at the ROM writing.
"When selecting the ROM." (ROM writing window) 3) "RAM/ROM" communication dialog is left screen
(When selecting the ROM.).
POINT
Be sure to write the all data beforehand to the RAM of
Motion CPU at the ROM writing.
10 - 10
11 COMMUNICATIONS VIA NETWORK
The communication between the personal computer and the Motion CPU is possible 11
via Q series Network module (MELSECNET/10(H), Ethernet, CC-Link, RS-232 and
etc.) in the Motion CPU (Q173CPU(N)/Q172CPU(N)).
Refer to the following manuals for the specifications of each network modules of
MELSECNET/10(H), Ethernet, CC-Link and Serial communication, the handling
method.
11 - 1
11 COMMUNICATIONS VIA NETWORK
(2) Access range of the communications via network of the Motion CPU is an access
range equivalent to Qn(H)CPU. (Refer to Section "11.2 Access Range of The
Communications via Network".)
(3) By setting the routing parameter to the control CPU of the network module and the
CPU which connected the peripheral devices in the network by
MELSECNET/10(H) and Ethernet, it is possible to relay to 8 network points and
communicate.
(4) Because the Motion CPU cannot become the control CPU of the network module,
there is not setting item of the network module and network parameter.
However, when connecting with the CPU on the other network from the peripheral
device which connected the Motion CPU, it needs to the setting of the routing
parameter.
(5) It can operate by remote control the monitor or program editing of the Motion CPU
via the intranet using the Ethernet module.
Ethernet Ethernet
Intranet
11 - 2
11 COMMUNICATIONS VIA NETWORK
(1) It can access the other CPU via the network from the programming software (GX
Developer, SW6RN-GSV43P, etc.) of the personal computer connected with the
CPU or serial communication module in USB/RS-232.
(2) It can access the other CPU via the network from the programming software in the
personal computer by connecting the personal computer equipped with Ethernet
to MELSECNET/10(H) or Ethernet board to the Ethernet to MELSECNET/10(H) or
Ethernet.
(3) The access range of above (1) and (2) can be accessed to 8 network points by
setting the routing parameter to the control CPU of the network module and the
CPU which connected the personal computer.
11 - 3
11 COMMUNICATIONS VIA NETWORK
Qn(H) Q173 C24 MNET Qn(H) Q173 MNET Qn(H) Q173 MNET MNET
CPU CPU or CPU CPU or CPU CPU or or Network
(N) Ether (N) Ether (N) Ether Ether
No.2
Network No.3
Qn(H) Q173 MNET MNET Qn(H) Q173 MNET Qn(H) Q173 MNET MNET
CPU CPU or or CPU CPU or CPU CPU or or
(N) Ether Ether (N) Ether (N) Ether Ether
Network No.4
Network No.5
Qn(H) Q173 MNET MNET Qn(H) Q173 MNET Qn(H) Q173 MNET MNET
CPU CPU or or CPU CPU or CPU CPU or or Network
(N) Ether Ether (N) Ether (N) Ether Ether No.6
Network No.7
Qn(H) Q173 MNET MNET Qn(H) Q173 MNET Qn(H) Q173 MNET MNET
CPU CPU or or CPU CPU or CPU CPU or or
(N) Ether Ether (N) Ether (N) Ether Ether
Network No.8
Network No.9
Qn(H) Q173 MNET MNET Qn(H) Q173 MNET Qn(H) Q173 MNET MNET Network
CPU CPU or or CPU CPU or CPU CPU or or
(N) Ether Ether (N) Ether (N) Ether Ether
No.10
: Communication is possible
: Communication is possible(Setting of the routing parameter is necessary.)
: Communication is impossible
11 - 4
11 COMMUNICATIONS VIA NETWORK
(1) It can access the other CPU via the CC-link from the programming software (GX
Developer, SW6RN-GSV43P, etc.) of the personal computer connected with the
CPU or serial communication module in USB/RS-232.
(2) It can access the other CPU via the CC-Link from the programming software in the
personal computer by connecting the personal computer equipped with CC-Link
board to the CC-Link.
(3) The access range of above (1) is only the CPU on the CC-Link which a system
connects it to, and it can select a CC-Link network to connect by specifying the I/O
No. of the CC-Link module.
(4) The access range of above (2) is only the CPU of the connected the CC-Link.
Qn(H) Q173 C24 CC- Qn(H) Q173 CC- Qn(H) Q173 CC- CC-
CPU CPU Link CPU CPU Link CPU CPU Link Link Network
(N) (N) (N)
No.2
Network No.3
Qn(H) Q173 CC- Qn(H) Q173 CC- Qn(H) Q173 CC- CC-
CPU CPU Link CPU CPU Link CPU CPU Link Link
(N) (N) (N)
Qn(H) Q173 C24 CC- Qn(H) Q173 CC- Qn(H) Q173 CC- CC-
CPU CPU Link CPU CPU Link CPU CPU Link Link Network
(N) (N) (N)
No.2
Network No.3
Qn(H) Q173 CC- Qn(H) Q173 CC- Qn(H) Q173 CC- CC-
CPU CPU Link CPU CPU Link CPU CPU Link Link
(N) (N) (N)
: Communication is possible
: Communication is possible (Setting of the routing parameter is necessary.)
: Communication is impossible
11 - 5
11 COMMUNICATIONS VIA NETWORK
(1) It can access the other CPU via the RS-422/485 from the programming software
(GX Developer, SW6RN-GSV43P, etc.) of the personal computer connected with
the CPU or serial communication module in USB/RS-232.
(2) The access range of above (1) is only the CPU on the RS-422/485 which a
system connects it to, and it can select RS-422/485 network to connect by
specifying the I/O No. of the C24 module.
Qn(H) Q173 C24 C24 Qn(H) Q173 C24 Qn(H) Q173 C24 C24
CPU CPU CPU CPU CPU CPU
(N) (N) (N)
RS-422/485
Qn(H) Q173 C24 Qn(H) Q173 C24 Qn(H) Q173 C24 C24
CPU CPU CPU CPU CPU CPU
(N) (N) (N)
Qn(H) Q173 C24 C24 Qn(H) Q173 C24 Qn(H) Q173 C24 C24
CPU CPU CPU CPU CPU CPU
(N) (N) (N)
RS-422/485
Qn(H) Q173 C24 Qn(H) Q173 C24 Qn(H) Q173 C24 C24
CPU CPU CPU CPU CPU CPU
(N) (N) (N)
: Communication is possible
: Communication is possible(Setting of the routing parameter is necessary.)
: Communication is impossible
11 - 6
11 COMMUNICATIONS VIA NETWORK
: Usable : Unusable
(2) It can be accessed to 8 network points by setting the routing parameter in the
"Network".
(3) Because routing cannot access, it can access only the connected network. The
connected network can be selected by specifying the I/O No. of the module.
11 - 7
11 COMMUNICATIONS VIA NETWORK
Qn(H) Q173 C24 MNET Qn(H) Q173 MNET C24 Qn(H) Q173 MNET MNET
CPU CPU or CPU CPU or CPU CPU or or Network
(N) Ether (N) Ether (N) Ether Ether No.2
RS-422/485
Network No.3
Network No.4
Qn(H) Q173 C24 MNET Qn(H) Q173 MNET CC- CC- Qn(H) Q173 MNET MNET
CPU CPU or CPU CPU or Link Link CPU CPU or or
(N) Ether (N) Ether (N) Ether Ether
RS-422/485
RS-422/485 Network No.5
Qn(H) Q173 MNET Qn(H) Q173 CC- Qn(H) Q173 CC- MNET Qn(H) Q173 MNET
CPU CPU or CPU CPU Link CPU CPU Link or CPU CPU or
(N) Ether (N) (N) Ether (N) Ether
: Communication is possible
: Communication is possible(Setting of the routing parameter is necessary.)
: Communication is impossible
11 - 8
11 COMMUNICATIONS VIA NETWORK
RS-422/485
Qn(H) Q173 C24 CC- CC- Qn(H) Q173 CC- Qn(H) Q173 CC- MNET
CPU CPU Link Link CPU CPU Link CPU CPU Link or Network
(N) (N) (N) Ether No.1
RS-422/485
Network No.2
Qn(H) Q173 CC- MNET Qn(H) Q173 MNET MNET Qn(H) Q173 MNET
CPU CPU Link or CPU CPU or or CPU CPU or
(N) Ether (N) Ether Ether (N) Ether
Network No.3
RS-422/485
Qn(H) Q173 MNET C24 Qn(H) Q173 C24 Qn(H) Q173 C24
CPU CPU or CPU CPU CPU CPU
(N) Ether (N) (N)
RS-422/485
Qn(H) Q173 C24 CC- CC- Qn(H) Q173 CC- Qn(H) Q173 CC- MNET
CPU CPU Link Link CPU CPU Link CPU CPU Link or Network
(N) (N) (N) Ether No.1
RS-422/485
Network No.2
Qn(H) Q173 CC- Qn(H) Q173 MNET Qn(H) Q173 MNET MNET
CPU CPU Link CPU CPU or CPU CPU or or
(N) (N) Ether (N) Ether Ether
: Communication is possible
: Communication is possible (Setting of the routing parameter is necessary.)
: Communication is impossible
11 - 9
11 COMMUNICATIONS VIA NETWORK
MEMO
11 - 10
12 MONITOR FUNCTION OF THE MAIN CYCLE
(1) Information for main cycle of the Motion CPU processing (process cycle executed
at free time except for motion control) is stored to the special register.
(2) Since the automatic refresh of shared CPU memory and Motion program are
executed in the main cycle, make it reference for process time, etc. to program. 12
(3) There are following methods to shorten a main cycle.
(a) Lengthen an operation cycle setting.
(b) Reduce the number of Motion programs to execute simultaneously.
(c) Reduce the number of automatic refresh points of shared CPU memory.
(4) When a main cycle is lengthened (more than 1.6[s]), a WDT error may occur in
the Motion CPU.
Current scan time • Current scan time is stored in the unit 1[ms].
D9017 Scan time
(1ms units) • Setting range (0 to 65535[ms])
Maximum scan time • Maximum main cycle is stored in the unit 1[ms].
D9019 Maximum scan time
(1ms units) • Setting range (0 to 65535[ms])
12 - 1
12 MONITOR FUNCTION OF THE MAIN CYCLE
MEMO
12 - 2
13 SERVO PARAMETER READING FUNCTION
(1) When the servo parameters are changed, the Motion CPU will be automatically
read the servo parameters and reflected them to the servo parameter storage
area in the Motion CPU. Therefore, an operation to read servo parameters is
unnecessary in the following cases.
POINT
If the power supply of Motion CPU is turned off/reset or the power supply of servo 13
amplifier is turned off immediately after change, it may not be reflected.
(2) After executing the servo parameter reading function, when it needs to reflect the
servo parameters changed to the SW6RN-GSV43P, read the servo parameters
from the Motion CPU and save data.
(1) Set the axis No. of servo amplifier to read a parameter in the servo parameter
read request axis No. (D9104) and turn the servo parameter read request flag
(M9104) ON for reading of the servo parameter from servo amplifier.
(2) While the servo parameter reading flag (M9105) is turned ON, the servo
parameter read request flag does not become valid. Use this condition as an
interlocks.
(3) Reading of servo parameter from servo amplifier becomes valid at the turning
OFF to ON of the servo parameter read request flag.
(4) The servo parameter read request flag is not turned off automatically. Execute the
device OFF processing by the user side.
(5) After executing the read function of the servo parameter from servo amplifier,
when the servo parameter read request is executed toward the other axis, turn the
servo parameter read request flag (M9104) ON to OFF, set the correspondence
axis in the servo parameter read request axis No. (D9104) and turns the servo
parameter read request flag (M9104).
(6) After executing the read function of the servo parameter from servo amplifier,
when the servo parameter read request is executed toward the same axis again,
turn the servo parameter read request flag (M9104) ON to OFF and turn the servo
parameter read request flag (M9104) again OFF to ON.
(7) When the servo parameter read request flag (M9104) turns OFF to ON, if the
servo parameter read request axis is not used or the power is off, the reading of
the servo parameter from servo amplifier is not executed.
13 - 1
13 SERVO PARAMETER READING FUNCTION
(8) When the servo parameter read request axis No. (D9104) is outside of the setting
range, it becomes "No operation" even if the servo parameter read request flag
(M9104) turns OFF to ON.
(9) The list of the servo parameter read request device is shown below.
An operation procedure which the servo parameter read by the reading function
of the servo parameter is reflected on the SW6RN-GSV43P is shown below.
Operating procedure
END
13 - 2
APPENDICES
APPENDICES
This section explains about the self-diagnosis error code. A self-diagnosis error code is
stored in D9008.
And, it can be confirmed with device monitor of the PC diagnosis/SW6RN-GSV43P of
GX Developer.
Each digit is defined as the error code as follows.
Big classification
1 Internal hardware
2 Handling
Digit :
3 Parameter
APP.
Tens digit : Details code
Hundreds digit : 4 Program
The characteristic error of Motion CPU is 10000 (the error code which occurs except
for the PLC CPU).
APP - 1
APPENDICES
Table 1.1 Multiple CPU errors which occurs in the Motion CPU (1000 to 10000)
Occurs CPU LED status
Middle Error Error information Operating Diagnostic
Error messages Single Multiple
classification code Classification code RUN ERROR status of CPU timing
composition composition
1000
1001
1002
In the CPU,
At power supply
RAM error 1105 — OFF Flickers Stop
ON/at reset
(RAM ERROR)
Stop/Continue
FUSE BREAK OFF 1300 — — — OFF/ON Flickers/ON Always
(Note-7)
1600 ON OFF
Battery (BATTERY ERROR) Drive name Continue Always
BAT. ALM
1601
LED ON
2121
2124
Module No.
Handling the
intelligent Intelligent function At power supply
2125
module installation — OFF Flickers Stop
function ON/at reset
module/ error
Multiple CPU (SP. UNIT LAY
module ERROR)
2126 Module No. (Note-1)
(Note-1) : CPU No. is stored in slot No. of the common information classification.
(Note-2) : Base No. in "common information classification code" of "error information classification code" is 0 : CPU base, 1 to 7 : Number of extension bases.
(Note-3) : Because a stop error or CPU No. except CPU No. that it was reset becomes MULTI CPU DOWN simultaneously, a stop error or CPU No. except
CPU No. that it was reset may store in the classification of error information depending on timing.
(Note-4) : When an error occurs in the Motion CPU and so on except PLC CPU, if a PC diagnosis is made in the CPU except PLC CPU from GX Developer via
PLC CPU, the error code "10000" is indicated.
(Note-5) : A self-diagnosis error flag (M9008) and a diagnosis error flag (M9010) do not turn on at the error detection.
(Note-6) : MOTION RUN LED turns off at the stop error occurrence. (The condition of RUN LED does not change.).
(Note-7) : Operating status of CPU at the error occurrence can be set in the parameter. (LED display also changes continuously.).
APP - 2
APPENDICES
1000
1001
(1) Measure noise level.
1002
Run-away or failure of main CPU (2) Reset and establish the RUN status again. If the same error is
1003 (1) Malfunctioning due to noise or other reason displayed again, this suggests a CPU hardware error. Explain
1004 (2) Hardware fault the error symptom and get advice from our sales
1005 representative.
1006
1007
1008
1009
(1) Measure noise level.
(2) Reset and establish the RUN status again. If the same error is
1105 Shared CPU memory fault in the CPU displayed again, this suggests a CPU hardware error. Explain
the error symptom and get advice from our sales
representative.
Check ERR. LED of the output modules and replace the module
1300 There is an output module with a blown fuse.
whose LED is ON.
A momentary power interruption of the power supply occurred. Check the power supply.
1500 The power supply turned off.
1601 Battery voltage has dropped below stipulated level. Replace the battery.
2121 A CPU module is installed in a slot except CPU slot, 0 to 2 slot A CPU module is installed to a CPU slot or 0 to 2 slot.
(1) A module is installed in slot 65 or subsequent. (1) Remove a module of slot 65 or subsequent.
2124 (2) A module is installed in a base for which "None" is set in base (2) Remove a module of base for which "None" is set in base
settings. settings.
(1) A module which the PLC CPU cannot recognize has been (1) Install a usable module in the PLC CPU.
(2) The intelligent function module has hardware error. Explain
2125 installed. the error symptom and get advice from our sales
(2) There was no response from the intelligent function module. representative.
CPU module locations in the Multiple CPU system is either of the (1) There must be non-installation slots between the CPU
following. modules in the Multiple CPU system. (When the non-
installation slots are reserved, cancel the reservation.)
2126 (1) There are not-installation slots between the CPU modules. (2) Remove the modules except the PLC CPU installed between
(2) The modules except the PLC CPU are installed between the PLC the PLC CPU modules, and shift over to the slots with the
PLC CPU modules in the Multiple CPU system.
CPU modules.
APP - 3
APPENDICES
Table 1.1 Multiple CPU errors which occurs in the Motion CPU (1000 to 10000) (Continued)
Occurs CPU LED status
Middle Error Error information Operating Diagnostic
Error messages Single Multiple
classification code Classification code RUN ERROR status of CPU timing
composition composition
3001
At power
3010 —
PARAMETER supply ON/
Parameter File name OFF Flickers Stop
ERROR at reset/
3012 — at Stop Run
3013 —
Always
Module No.
7000 —
(Note-1) (Note-3)
Other issue
opportunity CPU
OFF Flickers Stop
weight occasion error.
(MULTI CPU DOWN) At power
7002 — supply ON/
Module No. at reset
(Note-1)
Multiple 7003 —
CPU
(Note-1) : CPU No. is stored in slot No. of the common information classification.
(Note-2) : Base No. in "common information classification code" of "error information classification code" is 0 : CPU base, 1 to 7 : Number of extension bases.
(Note-3) : Because a stop error or CPU No. except CPU No. that it was reset becomes MULTI CPU DOWN simultaneously, a stop error or CPU No. except
CPU No. that it was reset may store in the classification of error information depending on timing.
(Note-4) : When an error occurs in the Motion CPU and so on except PLC CPU, if a PC diagnosis is made in the CPU except PLC CPU from GX Developer via
PLC CPU, the error code "10000" is indicated.
(Note-5) : A self-diagnosis error flag (M9008) and a diagnosis error flag (M9010) do not turn on at the error detection.
(Note-6) : MOTION RUN LED turns off at the stop error occurrence. (The condition of RUN LED does not change.).
APP - 4
APPENDICES
7002
Reset and establish the RUN status again. If the same error is
At initial communication in a Multiple CPU system, no response is
displayed again, this suggests a CPU hardware error. Explain
given back from the target CPU of initial communication.
7003 the error symptom and get advice from our sales representative.
In a Multiple CPU system, a CPU fault occurred at the CPU where ”all
Read the individual information of the error at the peripheral
station stop by stop error of CPU was not selected” in the operation
7020 device, check the error of the CPU resulting in CPU fault, and
mode. (The error is detected at the PLC CPU of other than the CPU
remove the error.
No. where the CPU fault occurred.)
APP - 5
APPENDICES
The CPU can perform the release operation for errors only when the errors allow the
CPU to continue its operation.
To release the errors, follow the steps shown below.
(1) Eliminate the error cause.
(2) Store the error code to be released in the special register D9060.
(3) Turn the special relay M9060 off to on.
(4) The target error is released.
After the CPU is reset by the release of error, the special relays, special registers and
LEDs for the error are returned to the states under which the error occurred.
If the same error occurs again after the release of the error, it will be registered again.
APP - 6
APPENDICES
The Motion program setting errors and positioning errors are detected in the Motion
CPU side.
(b) The error detection signal of the erroneous axis turns on at the error
occurrence, and the error codes are stored in the minor error code, major
error code or servo error code storage register.
APP - 7
APPENDICES
(c) If another error occurs after an error code has been stored, the existing
error code is overwritten, deleting it.
However, the error history can be checked using a peripheral device
started with the SW6RN-GSV43P software.
(d) Error detection signals and error codes are held until the error code
reset command (M3207+20n) or servo error reset command
(M3208+20n) turns on.
POINTS
(1) Even if the servo error reset (M3208+20n) turns on at the servo error
occurrence, the same error code might be stored again.
(2) Reset the servo error after removing the error cause of the servo amplifier side
at the servo error occurrence.
APP - 8
APPENDICES
The error codes, error contents and corrective actions for Motion program setting
errors are shown in Table 2.2.
APP - 9
APPENDICES
These errors are detected in the PLC program or Motion program, and the error codes
of 1 to 999 are used.
Minor errors include the setting data errors, starting errors, positioning control errors,
speed change/torque control value change errors and Motion program execution
errors.
(1) Setting data errors (1 to 99)
These errors occur when the data set in the parameters for positioning control is
not correct.
The error codes, causes, processing and corrective actions are shown in Table
2.3.
APP - 10
APPENDICES
POINT
When the interpolation control unit of parameter block is different from the control
unit of the fixed parameters, an error code may not be stored with the combination
of units.
Refer to Section 7.11.6 for details.
APP - 11
APPENDICES
Error Error
Error cause Corrective action
Control program
code processing
(positioning)
OSC
JOG
The PLC ready flag (M2000) or PCPU ready flag • Set the Motion CPU to RUN.
100 (M9074) is OFF. • Turn the PLC ready flag
(M2000) on.
The start accept flag (M2001 to M2032) for • Take an interlock in the
applicable axis is ON. program not to start the
starting axis. (Use the start
101
accept flag OFF of the
applicable axis as the starting
condition).
The stop command (M3200+20n) for applicable • Turn the stop command
103
axis is ON. (M3200+20n) off and start.
The rapid stop command (M3201+20n) for • Turn the rapid stop command
104
applicable axis is ON. (M3201+20n) off and start.
The feed current value is outside the range of • Set within the stroke limit
Positioning
stroke limit at the start. range by the JOG operation.
105 control
(Note) • Set within the stroke limit
does not
range by the home position
start.
return or current value change.
106 Positioning is outside the range of the stroke limit. • Perform the positioning within
(Note)
the range of stroke limit.
The address that does not generate an arc is set at • Correct the addresses of the
the auxiliary point-specified circular interpolation or Motion program.
auxiliary point-specified helical interpolation.
107
(Relationship between the start point, auxiliary
point and end point.)
APP - 12
APPENDICES
Table 2.4 Positioning control start error (100 to 199) list (Continued)
Control mode
Axis designation program
code processing
(positioning)
OSC
JOG
The address that does not generate an arc is set at • Correct the addresses of the
the central point-specified circular interpolation or Motion program.
109 central point-specified helical interpolation.
(Relationship between the start point, central point
and end point.)
The difference between the end point address and
110
(Note) ideal end point is outside the allowable error range Positioning
for circular interpolation at the circular interpolation. control
The home position return complete signal does not • Do not start continuously for
(M2410+20n) turned on at the home position return start. the home position return.
of proximity dog, dog cradle and stopper type. Return to a point before the
115 proximity dog signal ON by
JOG operation or positioning
operation, etc., and perform
the home position return.
The setting JOG speed is "0". • Set the correct speed (within
The setting JOG speed exceeded the JOG speed Control the setting range).
116 limit value. with the
JOG speed
limit value.
Both of forward and reverse rotation were set at Only the • Set a correct data.
the simultaneous start for the JOG operation. applicable
axis set to
117
the forward
direction
starts.
ZCT not set Home • Execute the home position
The zero pass signal (M2406+20n) turned off at position return after the zero point
the re-travel at the home position return for return is passed.
120
proximity dog, count and limit switch combined not
type or start in the home position return for data set completed
type. correctly.
(Note): These errors are stored the error codes of the all applicable interpolation axes at the interpolation operation.
APP - 13
APPENDICES
Table 2.4 Positioning control start error (100 to 199) list (Continued)
Control mode
Axis designation program
code processing
(positioning)
OSC
JOG
The travel value of the reference axis is set at "0" • Do not set axis of travel value
140 in the linear interpolation for reference axis "0" as the reference axis.
specification.
The positioning control which use the external input • Set the external input signal in
142 signal was executed for the axis which has not set Positioning the system setting.
the external input signal in the system settings. control
The operating axis is specified in the SVST does not • Start after the operating signal
instruction. start. has turned OFF. Provide a
160
SVST instruction operating
interlock.
Program No. to be started is outside the range of 1 • Correct the start instruction.
161
to 1024.
The sequence No. specified in the SVST is outside Positioning • Set the sequence No. within
the range of 0 to 9999. control the range of 0 to 9999.
starts from
163 the
beginning
the
program.
At a start, the override ratio is outside the range of 0 Operation is • Set the override ratio within
190 to 100[%]. performed the range of 0 to 100[%].
at 100[%].
APP - 14
APPENDICES
Error Error
Error cause Corrective action
Control program
code processing
(positioning)
OSC
JOG
The PLC ready flag (M2000) turned off during the • Turn the PLC ready flag
200 control by the start request of Motion program. (M2000) on after all axes have
stopped.
The PLC ready flag (M2000) turned off during the Decelera- • Perform the home position
home position return. tion stop return again after turning the
Control PLC ready flag (M2000) on or
201
program turning the stop command
ends. (M3200+20n) or rapid stop
command (M3201+20n) off.
The stop command (M3200+20n) turned on during Return to a point before the
202
the home position return. proximity dog signal ON
The rapid stop command (M3201+20n) turned on using JOG operation or
during the home position return. positioning operation, and
203 Rapid stop perform the home position
return again in the
proximity dog type.
The PLC ready flag (M2000) turned off to on again • Turn the PLC ready flag
during deceleration by turning off the PLC ready (M2000) OFF to ON after all
flag (M2000). axes have stopped.
No
204 Turn the PLC ready flag
operation
(M2000) OFF to ON during
deceleration is "no
operation".
APP - 15
APPENDICES
code processing
(positioning)
OSC
JOG
All axes rapid stop ([Back Space] key input) is • Return to a point before the
executed using the test mode of a peripheral device proximity dog signal ON using
during the home position return. JOG operation or positioning
operation, and perform the
home position return again in
the proximity dog type.
• Return to a point before the
proximity dog signal ON using
JOG operation or positioning
206 Rapid stop
operation, and perform the
home position return again,
when the proximity dog signal
turns off in the count type.
Perform the home position
return operation again,
when the proximity dog
signal turns on in the count
type.
The feed current value exceeded the stroke limit • Correct the stroke limit range
range during the control. Only the axis exceed the or travel value setting so that
stroke limit range is stored at the circular/helical positioning address control is
207
interpolation. within the range of the stroke
All interpolation axes are stored in the linear limit.
interpolation.
The feed current value of another axis exceeded
the stroke limit value during the circular/helical
208 interpolation control or simultaneous manual pulse
Decelera-
generator operation. (For detection of other axis
tion stop
errors).
An overrun occurred because the travel value after • Set the speed setting so that
the dog ON is less than the deceleration distance overrun does not occur.
209
at the proximity dog signal input during home • Set the travel value so that
position return of count type. overrun does not occur.
During control, an overrun occurred because the
deceleration distance for the output speed is not
211
attained at the point where the final positioning
address was detected.
APP - 16
APPENDICES
code processing
(positioning)
OSC
JOG
The manual pulse generator was enabled during Manual • Execute the manual pulse
the start of the applicable axis, the manual pulse pulse generator operation after the
generator operation was executed. generator applicable axis stopped.
214 input is
ignored
until the
axis stops.
When the skip is executed in the constant-speed • Execute the absolute linear
control, the next interpolation instruction is an Immediate interpolation after a point which
230
absolute circular interpolation or absolute helical stop make a skip.
interpolation.
The override ratio is outside the range of 0 to 100[%] Operation is • Set the override ratio within
290 during the control. performed the range of 0 to 100[%].
at 100[%].
Axis interlock (M4406+10n/M4407+10n) turned on • Turn the axis interlock
during the control. Decelera- (M4406+10n/M4407+10n)
292
tion stop OFF in order to resume an
axis travel.
APP - 17
APPENDICES
Table 2.6 Speed change/torque limit value change error (300 to 399) list
Control mode
Axis designation program
Error Error
Error cause Corrective action
Control program
code processing
(positioning)
OSC
JOG
The speed was changed for the axis during home • Do not change speed during
301
position return. home position return.
The speed was changed after positioning automatic • Do not change speed after
303 deceleration start. Speed is automatic deceleration start
not for positioning control.
The speed was changed during deceleration by changed. • Do not change speed during
turning off the JOG start command signal deceleration by turning off the
304
(M3202+20n, M3203+20n). JOG start command signal
(M3202+20n, M3203+20n).
The speed after speed change is set outside the • Set the speed after speed
range of 0 to speed limit value. change within the range of 0
Control
to speed limit value.
with the
305 The absolute value of speed after speed change is • Set the absolute value of
speed limit
set outside the range of 0 to speed limit value. speed after speed change
value.
within the range of 0 to speed
limit value.
The speed was changed during high-speed • Do not change speed during
Speed is
oscillation. high-speed oscillation.
310 not
The speed change to "0" was requested during
changed.
high-speed oscillation.
The value outside the range of 1 to 500[%] was set • Set the change request within
311 Torque limit
in the torque limit value change request (CHGT). the range of 1 to 500[%].
value is not
The torque limit value change request (CHGT) was • Request the change for the
312 changed.
made for the axis that had not been started. starting axis.
APP - 18
APPENDICES
Error Error
Error cause Corrective action
Control program
code processing
(positioning)
OSC
JOG
APP - 19
APPENDICES
Table 2.7 Motion program running error (500 to 699) list (Continued)
Control mode
Axis designation program
code processing
(positioning)
OSC
JOG
APP - 20
APPENDICES
Table 2.7 Motion program running error (500 to 699) list (Continued)
Control mode
Axis designation program
code processing
(positioning)
OSC
JOG
Cancel start (G24) program No. error • Correct the Motion program
584
No..
High-speed oscillation (G25) amplitude range error • Correct the high-speed
oscillation (G25) amplitude
585
range.
APP - 21
APPENDICES
Table 2.7 Motion program running error (500 to 699) list (Continued)
Control mode
Axis designation program
code processing
(positioning)
OSC
JOG
The sequence No. started by CALL, Positioning • Correct the sequence No..
GOSUB/GOSUBE is outside the range of 1 to 9999. control
starts from
616 the
beginning
of the
program.
The program started by CALL, GOSUB/GOSUBE is • Correct the CALL,
617
already executed. (Double start error) GOSUB/GOSUBE instruction.
The depth of nest for control program started by • Set the depth of nest within 8
618
GOSUB/GOSUBE is 9 levels or more. levels.
The program number ended by CLEAR is outside • Correct the CLEAR instruction.
619
the range of 1 to 1024.
Program
The program number ended by CLEAR is not • Correct the CLEAR instruction.
ends.
620 registered. Or, the axis designation program is
cleared.
Number of axis designation program starts over • Set the simultaneous execute
error program up to 32 programs.
630
33 or more axis designation programs are started
simultaneously.
Number of control program starts over error • Set the simultaneous execute
631 17 or more control programs are started program up to 16 programs.
simultaneously.
BMOV, BDMOV, FMOV execution error • Correct the program to set the
The Motion CPU memory address set in the (D), (S) Motion CPU memory address
is outside the range of SRAM. with even number.
632 (S) to (S) + (n-1) is outside the device range. • Change (n) within the range of
(D) to (D) + (n-1) is outside the device range. device range for block
(n) is 0 or outside the setting range. transmitting range.
• Set (n) within the setting range.
TIME execution error Decelera- • Correct the device number of
The device number of indirect setting is not correct. tion stop, indirect setting.
633
The data is outside the range of 1 to 65535. control • Set the data within the range of
program 1 to 65535.
Axis designation program incorrect start ends • Set an axis.
634 The axis designation program is started without an
axis setting. (SFCS, CALL, GOSUB/GOSUBE)
Control program incorrect start • Do not set an axis.
635 The axis designation program is started with an axis
setting. (SVST, CALL, GOSUB/GOSUBE)
Incorrect access to PX, PY • Correct the program.
636 SET, RST or OUT is operated to the real I/O device
(PX, PY) in the Motion program.
Control program multiple start error • Correct the program.
637
The already started control program is started.
APP - 22
APPENDICES
Table 2.7 Motion program running error (500 to 699) list (Continued)
Control mode
Axis designation program
code processing
(positioning)
OSC
JOG
Write device data to shared CPU memory • Correct the program so that the
(MULTW) execution error number of words (n) to be written is
• Number of words (n) to be written is outside within the range of 1 to 256.
the range of 1 to 256. • Correct the program so that the shared
• The shared CPU memory address (D) of self CPU memory address (D) of self CPU
CPU of the writing destination device is of the writing destination is within the
outside the range (800H to FFFH) of the range of shared CPU memory address.
shared CPU memory address. • Correct the program so that the shared
• The shared CPU memory address (D) of self CPU memory address (D) of self CPU
650 CPU of the writing destination device + of the writing destination + number of
number of words (n) to be written is outside words (n) to be written is within the
the range (800H to FFFH) of the shared CPU range of shared CPU memory address.
memory address. • Correct the program so that first device
• First device No. (S) which writing data are No. (S) which writing data are stored +
stored + number of words (n) to be written is number of words (n) to be written is
outside the device range. within the device range.
• MULTW instruction was executed again • Execute MULTW instruction again after
before MULTW instruction is executed and the complete bit device of MULTW
complete bit device is turned on. instruction is turned on.
Read device data from shared CPU memory of • Correct the program so that the
the other CPU (MULTR) execution error Decelera- number of words (n) to be read is
• Number of words (n) to be read is outside the tion stop, within the range of 1 to 256.
range of 1 to 256. control • Correct the program so that the shared
• The shared CPU memory first address (S2) of program CPU memory first address (S2) of the
the data which it will be read is outside the ends data which it will be read is within the
range (000H to FFFH) of the shared CPU range of shared CPU memory address.
memory address. • Correct the program so that the shared
• The shared CPU memory first address (S2) of CPU memory first address (S2) of the
the data which it will be read + number of data which it will be read + number of
words (n) to be read is outside the range words (n) to be read is within the range
(000H to FFFH) of the shared CPU memory of shared CPU memory address.
address. • Correct the program so that first device
651 • First device No. (D) which stores the reading No. (D) which stores the reading data +
data + number of words (n) to be read is number of words (n) to be read is
outside the device range. within the device range.
• Except 3E0H/3E1H/3E2H/3E3H is set at (S1). • Correct the program so that
• The self CPU is specified with (S1). 3E0H/3E1H/3E2H/3E3H is set at (S1).
• The CPU which reads is resetting. • Correct the program so that the self
• The errors are detected in the CPU which CPU is not specified with (S1).
read. • Check that the reset flag (M9240 to
M9243) is OFF, then correct the
program to execute the MULTR
instruction.
• If the errors are detected in the CPU
which read, exchange the CPU.
APP - 23
APPENDICES
Table 2.7 Motion program running error (500 to 699) list (Continued)
Control mode
Axis designation program
code processing
(positioning)
OSC
JOG
APP - 24
APPENDICES
Error Error
Error cause Corrective action
Control program
code processing
(positioning)
OSC
JOG
• The motor type set in the "system settings" differs • Correct the motor type setting in
from the motor type installed at the turning on the the system settings.
900
servo amplifier. (Check when MR-J2S-B/MR-
Further
J2-B is used only.)
operation
• The motor travel value while the power is off • Check the position.
is possible.
exceeded the "System setting mode-allowable • Check the battery of encoder.
901
travel value during power off" set in the system
settings at the turning on of the servo amplifier.
APP - 25
APPENDICES
These errors occur by control command from the external input signal or Motion
program, and the error codes 1000 to 1999 are used.
Major errors include the positioning control start errors, positioning control errors,
absolute position system errors and system errors.
Error Error
Error cause Corrective action
Control program
code processing
(positioning)
OSC
JOG
• The external STOP signal of the applicable axis • Turn the STOP signal off.
1000
turned on.
• The external signal FLS (upper limit LS) turned off • Move in the reverse direction
at the forward direction (address increase by the JOG operation, etc.
1001
direction) start. and set within the external
limit range.
• The external signal RLS (lower limit LS) turned off • Move in the forward direction
at the reverse direction (address decrease by the JOG operation, etc.
1002
direction) start. and set within the external
limit range.
• The external DOG (proximity dog) signal turned • Perform the home position
on at the home position return start of the return after move to the
1003
proximity dog type. proximity dog ON by the JOG
Positioning
operation, etc.
control
• The applicable axis is not servo READY state. • Wait until the servo READY
does not
(M2415+20n: OFF). state (M2415+20n: ON).
start.
(1) The power supply of the servo amplifier is OFF.
(2) During initial processing after turning on the
1004 servo amplifier.
(3) The servo amplifier is not installed.
(4) A servo error is occurred.
(5) Cable fault.
(6) Servo OFF command (M3215+20n) is ON.
• The servo error detection signal of the applicable • Eliminate the servo error, reset
axis (M2408+20n) turned on. the servo error detection
signal (M2408+20n) by the
1005
servo error reset command
(M3208+20n), then start
operation.
APP - 26
APPENDICES
Error Error
Error cause Corrective action
Control program
code processing
(positioning)
OSC
JOG
• The external signal FLS (upper limit LS) turned off • Travel in the reverse direction
1101 during the forward direction (address increase by the JOG operation, etc. and
(Note) direction). set within the external limit
Decelera- range.
• The external signal RLS (lower limit LS) turned off tion stop by • Travel in the forward direction
1102 during the reverse direction (address decrease "Stop by the JOG operation, etc. and
(Note) direction). processing set within the external limit
on STOP range.
• The external STOP signal (stop signal) turned on input" of the • Perform the home position
during home position return of proximity dog type. parameter return after move to the
block. proximity dog ON by the JOG
1103
operation, etc. at the home
position return of the proximity
dog type.
• The servo error detection signal turned on during Immediate • Start after disposal at the servo
positioning control. stop error.
1104 without
decelera-
ting.
• The power supply of the servo amplifier turned off • Turn on the power supply of
Turn the
during positioning control. (Servo not installed the servo amplifier.
servo
status detection, cable fault, etc.) • Check the connecting cable to
1105 READY
• Home position return did not complete normally the servo amplifier.
(M2415+
without stop within the in-position range of home • Make the gain adjustment.
20n) OFF.
position at the home position return.
(Note) : This error is output with SV43 at the start.
APP - 27
APPENDICES
Error Error
Error cause Corrective action
Control program
code processing
(positioning)
OSC
JOG
• A sum check error occurred with the backup data • Check the battery and execute
in the controller at the turning on servo amplifier a home position return.
Home
power supply.
position
1201 • Home position return was not performed.
return
• CPU module battery error.
request ON
• Home position return started but did not complete
normally.
• A communication error between the servo Home • Check the motor and encoder
amplifier and encoder occurred at the turning on position cables and execute a home
servo amplifier power supply. return position return again.
1202 request
ON, servo
error [2016]
set.
• The amount of change of the encoder current • Check the motor and encoder
value became the following expression during cables.
operation: "Amount of change in encoder current
1203 value/3.5[ms] > 180° of motor revolution"
A continual check is performed (both of servo ON Home
and OFF states) after the servo amplifier power position
has been turned ON. return
• The following expression holds: "Encoder current request ON
value [PLS] feedback current value [PLS] (Note-1)
APP - 28
APPENDICES
Error Error
Error cause Corrective action
Control program
code processing
(positioning)
OSC
JOG
• Initial communication with the Multiple CPU Positioning • Replace the Motion CPU.
system did not complete normally. control
1310
• Motion CPU fault. does not
start.
APP - 29
APPENDICES
CAUTION
If a controller, servo amplifier or vector inverter self-diagnosis error occurs, check the points
stated in this manual and clear the error.
APP - 30
APPENDICES
• The servo amplifier axis No. installed • Set correctly so that the axis No.
2021 does not overlap.
(Note-1) Axis set error the same base unit for the servo
amplifier overlapped.
APP - 31
APPENDICES
APP - 32
APPENDICES
APP - 33
APPENDICES
APP - 34
APPENDICES
APP - 35
APPENDICES
APP - 36
APPENDICES
Servo • Alarm occurred in one or more axes of • Remove the alarm causes of all
2054
(Note-1) amplifier the servo amplifier installed to the base servo amplifiers where alarm has
alarm unit (MR-J2M-BU) for servo amplifier. occurred.
• Serial communication error occurred • Check for disconnection of the
RS232
between servo amplifier and cable.
2086 communicatio
communication device (parameter unit • Replace the communication
n error
or personal computer). devices.
Battery • The voltage of the battery installed in the • Replace the battery.
2102
warning servo amplifier has become low.
• The power supply voltage to the • Replace the battery.
Battery absolute position encoder become low. Any time during • Check the encoder cable for
2103 disconnection operation wire breakage.
Operation
warning • Replace the servomotor.
continues
• Replace the servo amplifier.
• An excessive regeneration error [2030] • Refer to the details on the
Excessive may be occurred (regeneration level of excessive regeneration error
2140 regeneration 85[%] of the maximum load capacity for [2030].
warning the regenerative resister has been
detected).
• An overload error [2050], [2051] is likely • Refer to the details on the
Overload
2141 to occur (85[%] of overload level has overload errors [2050], [2051].
warning
been detected).
• Absolute position encoder pulses faulty. Operation • Take noise suppression
Absolute
continues. measures.
position
2143 Home position • Replace the servomotor.
counter
return request • Execute the home position return
warning (Note-2)
ON after measures.
• Servo amplifiers are forced stop state. • Ensure safety and release the
Servo forced
2146 (Servo amplifier input signal EM1 is forced stop.
stop Immediate
OFF.)
stop
Emergency • An emergency stop (EMG) signal input • Ensure safety and release the
2147
stop from the Multiple CPU system. emergency stop.
• The servo ON (SON) signal turned on • Turn on the main circuit
Main circuit while the contactor turned off. Operation contactor or circuit power
2149
OFF warning • The main circuit bus voltage fell to 215 continues supply.
[V] or lower at 50 [r/min] or lower.
(Note-1) : MR-J2M-B only
(Note-2) : SW5RN-SV43Q (Ver.00D or later )
APP - 37
APPENDICES
APP - 38
APPENDICES
APP - 39
APPENDICES
APP - 40
APPENDICES
2637 • The parameter data was corrupted. • Explain the error symptom and
to get advice from our sales
2699 representative.
APP - 41
APPENDICES
APP - 42
APPENDICES
APP - 43
APPENDICES
APP - 44
APPENDICES
APP - 45
APPENDICES
APP - 46
APPENDICES
APP - 47
APPENDICES
APP - 48
APPENDICES
APP - 49
APPENDICES
Command Status
M2054 Operation cycle over flag Operation cycle
M2000 PLC ready flag Main cycle signal M3072 signal
(Note-1) M2055
M2001 Axis 1 M2056
M2002 Axis 2 M2057 Unusable
— — — —
M2003 Axis 3 M2058 (6 points)
M2004 Axis 4 M2059
M2005 Axis 5 M2060
M2006 Axis 6 M2061 Axis 1
M2007 Axis 7 M2062 Axis 2
M2008 Axis 8 M2063 Axis 3
M2009 Axis 9 M2064 Axis 4
M2010 Axis 10 M2065 Axis 5
M2011 Axis 11 M2066 Axis 6
M2012 Axis 12 M2067 Axis 7
M2013 Axis 13 M2068 Axis 8
M2014 Axis 14 M2069 Axis 9
M2015 Axis 15 Status M2070 Axis 10
M2016 Axis 16 signal M2071 Axis 11
Start accept flag Operation cycle
M2017 Axis 17 (Note-1), M2072 Axis 12
M2018 Axis 18 (Note-2) M2073 Axis 13
M2019 Axis 19 M2074 Axis 14
M2020 Axis 20 M2075 Axis 15
Status
M2021 Axis 21 M2076 Axis 16
Speed changing flag Operation cycle signal
M2022 Axis 22 M2077 Axis 17
(Note-2)
M2023 Axis 23 M2078 Axis 18
M2024 Axis 24 M2079 Axis 19
M2025 Axis 25 M2080 Axis 20
M2026 Axis 26 M2081 Axis 21
M2027 Axis 27 M2082 Axis 22
M2028 Axis 28 M2083 Axis 23
M2029 Axis 29 M2084 Axis 24
M2030 Axis 30 M2085 Axis 25
M2031 Axis 31 M2086 Axis 26
M2032 Axis 32 M2087 Axis 27
M2033 Unusable — — — — M2088 Axis 28
Personal computer link Status M2089 Axis 29
M2034 Operation cycle
communication error flag signal M2090 Axis 30
M2035 M2091 Axis 31
M2036 M2092 Axis 32
M2037 Unusable M2093
— — — —
M2038 (6 points) M2094
M2039 M2095
M2040 M2096
Status M2097
M2041 System setting error flag Operation cycle
signal M2098
Command M2099
M2042 All axes servo ON command Operation cycle Signal M3074 M2100
(Note-1) M2101
M2043 M2102
M2044 Unusable M2103
— — — —
M2045 (4 points) M2104
M2046 M2105 Unusable
— — — —
Status M2106 (26 points)
M2047 Motion slot fault detection flag Operation cycle
signal M2107
Command M2108
JOG operation simultaneous
M2048 Main cycle signal M3076 M2109
start command
(Note-1) M2110
M2049 All axes servo ON accept flag Status M2111
Operation cycle
M2050 Start buffer full signal M2112
Manual pulse generator 1 M2113
M2051 M3077
enable flag M2114
Command
Manual pulse generator 2 M2115
M2052 Main cycle signal M3078
enable flag M2116
(Note-1)
Manual pulse generator 3 M2117
M2053 M3079
enable flag M2118
APP - 50
APPENDICES
M2119 M2180
M2120 M2181
M2121 M2182
M2122 M2183
Unusable
M2123 — — — — M2184
(9 points)
M2124 M2185
M2125 M2186
M2126 M2187
M2127 M2188
M2128 Axis 1 M2189
M2129 Axis 2 M2190
M2130 Axis 3 M2191
M2131 Axis 4 M2192
M2132 Axis 5 M2193
M2133 Axis 6 M2194
M2134 Axis 7 M2195
M2135 Axis 8 M2196
M2136 Axis 9 M2197
M2137 Axis 10 M2198
M2138 Axis 11 M2199
M2139 Axis 12 M2200
M2140 Axis 13 M2201
M2141 Axis 14 M2202
M2142 Axis 15 M2203
Status
M2143 Axis 16 Automatically M2204
Operation cycle signal
M2144 Axis 17 deceleration flag M2205
(Note-2)
M2145 Axis 18 M2206
M2146 Axis 19 M2207
M2147 Axis 20 M2208
— — — —
M2148 Axis 21 M2209 Unusable
M2149 Axis 22 M2210 (60 Points)
M2150 Axis 23 M2211
M2151 Axis 24 M2212
M2152 Axis 25 M2213
M2153 Axis 26 M2214
M2154 Axis 27 M2215
M2155 Axis 28 M2216
M2156 Axis 29 M2217
M2157 Axis 30 M2218
M2158 Axis 31 M2219
M2159 Axis 32 M2220
M2160 M2221
M2161 M2222
M2162 M2223
M2163 M2224
M2164 M2225
M2165 M2226
M2166 M2227
M2167 M2228
M2168 M2229
M2169 Unusable M2230
— — — —
M2170 (20 points) M2231
M2171 M2232
M2172 M2233
M2173 M2234
M2174 M2235
M2175 M2236
M2176 M2237
M2177 M2238
M2178 M2239
M2179
APP - 51
APPENDICES
APP - 52
APPENDICES
CAUTION
The data executed later becomes valid when the same device is executed in the Motion program
and PLC program.
APP - 53
APPENDICES
Operation
M2332 External forced stop input flag M9076
cycle
Manual pulse generator axis setting
M2333 M9077
error flag
Error Status signal
M2334 TEST mode request error flag occurrence M9078
M2349
to Unusable — — — —
M2399
(Note) : The same status as a remark column is output.
APP - 54
APPENDICES
Command
M3072 PLC ready flag Main cycle M2000
signal
M3073 Unusable — — — —
Operation
M3074 All axes servo ON command cycle M2042
M3080
to Unusable — — — —
M3135
(Note-1) : The device of a remarks column turns ON by OFF to ON of the above device, and the device of a remarks column
turns OFF by ON to OFF of the above device. The state of a device is not in agreement when the device of a remarks
column is turned on directly. In addition, when the request from a data register and the request from the above device
are performed simultaneously, the request from the above device becomes effective.
(Note-2) : It can also be ordered the device of a remark column.
M3140
to Unusable — — — —
M3199
(Note-1) : The device of a remarks column turns ON by OFF to ON of the above device, and the device of a remarks column turns
OFF by ON to OFF of the above device. The state of a device is not in agreement when the device of a remarks
column is turned on directly.
(Note-2) : It can also be ordered the device of a remark column.
APP - 55
APPENDICES
APP - 56
APPENDICES
6 D650, D651
7 D652, D653
8 D654, D655
9 D656, D657
10 D658, D659
11 D660, D661
12 D662, D663
13 D664, D665
14 D666, D667
15 D668, D669
16 D670, D671
17 D672, D673
18 D674, D675
19 D676, D677
20 D678, D679
21 D680, D681
22 D682, D683
23 D684, D685
24 D686, D687
25 D688, D689
26 D690, D691
27 D692, D693
28 D694, D695
29 D696, D697
30 D698, D699
31 D700, D701
32 D702, D703
(Note-1) : The range of axis No.1 to 8 is valid in the Q172CPU(N).
(Note-2) : Device area of 9 axes or more is unusable in the Q172CPU(N).
APP - 57
APPENDICES
APP - 58
APPENDICES
(Note-1) : D1445 (CLEAR request status storage register) is used in the "control program stop function from the PLC CPU".
APP - 59
APPENDICES
APP - 60
APPENDICES
(6) Tool length offset data setting register list (Higher rank, lower rank)
Device No. Signal name
APP - 61
APPENDICES
APP - 62
APPENDICES
APP - 63
APPENDICES
Special relays are internal relays whose applications are fixed in the Motion CPU. For
this reason, they cannot be used in the same way as the normal internal relays by the
Motion programs.
However, they can be turned ON/OFF as needed in order to control the Motion CPU.
The headings in the table that follows have the following meanings.
Item Explanation
No. • Indicates the device No. of the special relay.
Name • Indicates the name of the special relay.
Meaning • Indicates the nature of the special relay.
Details • Indicates detailed information about the nature of the special relay.
• Indicates whether the relay is set by the system or user, and, if it is set by system, when
setting is performed.
<Set by>
S : Set by system (Motion CPU)
U : Set by user (Motion program or test operation using a peripheral device)
S/U : Set by both system (Motion CPU) and user
Set by <When set> Indicated only if setting is done by system (Motion CPU) .
(When set) Main process : Set during each main processing (free time processing of the CPU)
Initial process : Set only during initial processing (when power supply is turned ON, or
when executed the reset)
Status change : Set only when there is a change in status
Error : Set when error is occurred.
Request : Set only when there is a user request (Special relay, etc.)
Operation cycle : Set during each operation cycle of the Motion CPU.
APP - 64
APPENDICES
APP - 65
APPENDICES
APP - 66
APPENDICES
APP - 67
APPENDICES
Special registers are internal registers whose applications are fixed in the Motion CPU.
For this reason, it is not possible to use these registers in Motion programs in the same
way that normal registers are used.
However, data can be written as needed in order to control the Motion CPU.
Data stored in the special registers are stored as BIN values if no special designation
has been made to the contrary.
The headings in the table that follows have the following meanings.
Item Explanation
Number • Indicates the No. of the special register.
Name • Indicates the name of the special register.
Meaning • Indicates the nature of the special register.
Details • Indicates detailed information about the nature of the special register.
• Indicates whether the register is set by the system or user, and, if it is set by system,
when setting is performed.
<Set by>
S : Set by system (Motion CPU)
U : Set by user (Motion program or test operation using a peripheral device)
S/U : Set by both system (Motion CPU) and user
Set by <When set> Indicated only if setting is done by system (Motion CPU) .
(When set) Main process : Set during each main processing (free time processing of the CPU)
Initial process : Set only during initial processing (when power supply is turned ON, or
when executed the reset)
Status change : Set only when there is a change in status
Error : Set when error is occurred.
Request : Set only when there is a user request (Special relay, etc.)
Operation cycle : Set during each operation cycle of the Motion CPU.
APP - 68
APPENDICES
• The day when data on D9008 are updated, and the hour stored with a BCD
Diagnostic error Diagnostic error code two digits.
D9011 B15 to B8 B7 to B0 Example : 25st, 10 a.m
occurrence time occurrence time
Day(1 to 31) Hour(0 to 23) H2510
S (Occur an error)
• The minute when data on D9008 are updated, and the second stored with a
BCD code two digits.
D9012 B15 to B8 B7 to B0 Example : 35 min., 48 sec.
Minute(0 to 59) Second(0 to 59) H3548
New
• The classification code to judge the error information stored in the error (Note)
2) 1)
Operating state of Operating state of
D9015 1) Operating state of CPU 0 : RUN
CPU CPU
2 : STOP
S (Main processing)
2) STOP cause 0 : RUN/STOP switch
Note : Priority is earliest first 4 : Error
Year Month
(Note) : It adds newly at the Motion controller Q series.
APP - 69
APPENDICES
Day Hour
• Stores the minute and second in BCD.
Minute Second
• Stores the day of the week in BCD. S/U (Request)
B15 to B12 B11 to B8 B7 to B4 B3 to B0
Example :
Friday
H0005
Day of week
Clock data
D9028 Clock data 0 Sunday
(Day of week) "0" must be set here. 1 Monday
2 Tuesday
3 Wednesday
4 Thursday
5 Friday
6 Saturday
Error No. of
D9060 Error reset • Error No. of canceling error is stored. U
releasing an error
D9061 Multiple CPU No. Multiple CPU No. • CPU No. of the self CPU is stored. S (Initial processing) New
(Note)
Servo parameter • Axis No. of servo amplifier which begins to read servo parameter is setting.
Servo parameter
D9104 read request axis Q173CPU(N) : 1 to 32 (Axis1 to 32) U
read axis No.
No. Q172CPU(N) : 1 to 8 (Axis1 to 8)
It is operating in
requirement error • Each axis is stopping : 0/Operating : 1, information is stored as a bit data.
D9182 Test mode
occurrence of the D9182 : b0 to b15 (Axis 1 to Axis 16)
D9183 request error
test mode, axis D9183 : b0 to b15 (Axis 17 to Axis 32)
information
The following error codes are stored in D9184.
1 : S/W fault 1
2 : Operation cycle over
3 : Q bus WDT error
4 : WDT error
30 : Information processor H/W error
Motion CPU Error meaning of
D9184 201 to 215 : Q bus H/W fault
WDT error cause WDT error occurs
250 to 253 : Servo amplifier interface H/W fault
300 : S/W fault3
301 : 15 CPSTART instructions of 8 or more points were started S (Occur an error)
simultaneously.
302 : During ROM operation, system setting data, program and
parameter written to internal FLASH ROM are fault.
• Contents of the manual pulse generator axis setting error is stored when the
manual pulse generator axis setting error flag (M9077) turn on.
(Normal : 0/Setting error : 1)
D9185 : The manual pulse generator axis setting error is stored in b0 to b2
Manual pulse
D9185 Manual pulse (P1 to P3).
generator axis
D9186 generator axis The smoothing magnification setting is stored in b3 to b5 (P1 to
setting error
D9187 setting error P3).
information
D9186 : One pulse input magnification setting error is stored in b0 to b15
(axis 1 to axis 16).
D9187 : One pulse input magnification setting error is stored in b0 to b15
(axis 17 to axis 32).
(Note) : It adds newly at the Motion controller Q series.
APP - 70
APPENDICES
3) No used. 2) 1)
• Information concerning which of the following states the LEDs on the CPU
are in is stored in the following bit patterns.
• 0 is off, 1 is on, and 2 is flicker
B15 B12 B11 B8 B7 B4 B3 B0
8) 7) 6) 5) 4) 3) 2) 1)
D9201 State of LED State of CPU-LED 1) : RUN 5) : BOOT S (Change status)
2) : ERROR 6) : No used
3) : M.RUN 7) : No used
4) : BAT.ALARM 8) : MODE
Bit patterns for MODE
0 : OFF 1 : Green
2 : Orange
(Note) : It adds newly at the Motion controller Q series.
APP - 71
WARRANTY
Please confirm the following product warranty details before using this product.
Since the above services are limited to Japan, diagnosis of failures, etc. are not performed abroad.
If you desire the after service abroad, please register with Mitsubishi. For details, consult us in advance.
4. Delivery Term
In regard to the standard product, Mitsubishi shall deliver the standard product without application settings or
adjustments to the customer and Mitsubishi is not liable for on site adjustment or test run of the product.
HEAD OFFICE : TOKYO BUILDING, 2-7-3 MARUNOUCHI, CHIYODA-KU, TOKYO 100-8310, JAPAN
NAGOYA WORKS : 1-14 , YADA-MINAMI 5-CHOME , HIGASHI-KU, NAGOYA , JAPAN
When exported from Japan, this manual does not require application to the
Ministry of Economy, Trade and Industry for service transaction permission.