Motion Controller (SV43) Programming Manual
Motion Controller (SV43) Programming Manual
(SV43)
Programming Manual
MOTION CONTROLLER (SV43) Programming Manuai,
MITSUBISHI
ELECTRIC
INTORODUCTION
Thank you for purchasing the Mitsubishi Motion Controller/Personal Machine Controller. This instruction
manual describes the handling and precautions of this unit. Incorrect handing will lead to unforeseen events,
so we ask that you please read this manual thoroughly and use the unit correctly.
Please make sure that this manual is delivered to the final user of the unit and that it is stored for future
reference.
Note that some items described as cautions may lead to major results depending on the
situation. In any case, important information that must be observed is described.
−I−
For Safe Operation
! WARNING
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 control unit 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.
Always ground the control unit, servo amplifier and servomotor with Class 3 grounding. 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 control unit, 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 control unit, servo amplifier or servomotor terminal blocks while the power
is ON, as this may lead to electric shocks.
Do not touch the internal power supply, internal grounding or signal wires of the control unit
and servo amplifier, as this may lead to electric shocks.
! CAUTION
Install the control unit, servo amplifier, servomotor and regenerative resistor on inflammable
material. Direct installation on flammable material or near flammable material may lead to
fires.
If a fault occurs in the control unit or servo amplifier, shut the power OFF at the servo
amplifier's power source. If a large current continues to flow, fires may occur.
When using a regenerative resistor, shut the power OFF with an error signal. The regenera-
tive resistor may abnormally overheat due to a fault in the regenerative transistor, etc., and
may lead to fires.
Always take heat measures such as flame proofing for the inside of the control panel where
the servo amplifier or regenerative resistor is installed and for the wires used. Failing to do
so may lead to fires.
− II −
3. For injury prevention
! CAUTION
Do not apply a voltage other than that specified in A172SHCPUN/A171SHCPUN user's manual,
A273UHCPU user’s manual, A173UHCPU(S1) user’s manual or the instruction manual for the
product you are using 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.
The servo amplifier's heat radiating fins, regenerative resistor and servo amplifier, etc., will
be hot while the power is ON and for a short time after the power is turned OFF. Do not
touch these parts as doing so 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.
! CAUTION
Always install a leakage breaker on the control unit and servo amplifier power source.
If installation of a magnetic contactor for power shut off during an error, etc., is specified in
the instruction manual for the servo amplifier, etc., always install the magnetic contactor.
Install an external emergency stop circuit so that the operation can be stopped immediately
and the power shut off.
Use the control unit, servo amplifier, servomotor and regenerative resistor with the combi-
nations listed in A172SHCPUN/A171SHCPUN user’s manual or the instruction manual for
the product you are using. Other combinations may lead to fires or faults.
If safety standards (ex., robot safety rules, etc.,) apply to the system using the control unit,
servo amplifier and servomotor, make sure that the safety standards are satisfied.
If the operation during a control unit or servo amplifier error and the safety direction
operation of the control unit differ, construct a countermeasure circuit externally of the
control unit and servo amplifier.
In systems where coasting of the servomotor will be a problem during emergency stop,
servo OFF or when the power is shut 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 emergency stop,
servo OFF or when the power is shut OFF, use both dynamic brakes and magnetic brakes.
The dynamic brakes must be used only during emergency stop and errors where servo OFF
occurs. These brakes must not be used for normal braking.
The brakes (magnetic brakes) assembled into the servomotor are for holding applications,
and must not be used for normal braking.
Construct the system so that there is a mechanical allowance allowing stopping even if the
stroke end limit switch is passed through at the max. speed.
− III −
! CAUTION
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 A172SHCPUN/
A171SHCPUN user’s manual or the instruction manual for the product you are using.
The ratings and characteristics of the system parts (other than control unit, servo amplifier,
servomotor) must be compatible with the control unit, 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 magnetic 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.
! CAUTION
Set the parameter values to those that are compatible with the control unit, servo amplifier,
servomotor and regenerative resistor model and the system application. The protective
functions may not function if the settings are incorrect.
The regenerative resistor model and capacity parameters must be set to values that
conform to the operation mode, servo amplifier and servo power unit. The protective
functions may not function if the settings are incorrect.
Set the mechanical brake output and dynamic brake output validity parameters to values
that are compatible with the system application. The protective functions may not function if
the settings are incorrect.
Set the stroke limit input validity parameter to a value that is compatible with the system
application. The protective functions may not function if the setting is incorrect.
Set the servomotor encoder type (increment, absolute position type, etc.) parameter to a
value that is compatible with the system application. The protective functions may not
function if the setting is incorrect.
Set the servomotor capacity and type (standard, low-inertia, flat, etc.) parameter to values
that are compatible with the system application. The protective functions may not function if
the settings are incorrect.
Set the servo amplifier capacity and type parameters to values that are compatible with the
system application. The protective functions may not function if the settings are incorrect.
Use the program commands for the program with the conditions specified in the instruction
manual.
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 unit's instruction manual for the
program corresponding to the special function unit.
− IV −
(3) Transportation and installation
! CAUTION
Transport the product with the correct method according to the weight.
Use the servomotor suspension bolts only for the transportation of the servomotor. Do not
transport the servomotor with machine installed on it.
Do not stack products past the limit.
When transporting the control unit or servo amplifier, never hold the connected wires or
cables.
When transporting the servomotor, never hold the cables, shaft or detector.
When transporting the control unit or servo amplifier, never hold the front case as it may fall
off.
When transporting, installing or removing the control unit or servo amplifier, never hold the
edges.
Install the unit according to A172SHCPUN/A171SHCPUN user's manual, A273UHCPU user’s
manual, A173UHCPU(S1) user’s manual or the instruction manual for the product you are using
in a place where the weight can be withstood.
Do not get on or place heavy objects on the product.
Always observe the installation direction.
Keep the designated clearance between the control unit or servo amplifier and control panel
inner surface or the control unit and servo amplifier, control unit or servo amplifier and other
devices.
Do not install or operate control units, servo amplifiers or servomotors that are damaged or
that have missing parts.
Do not block the intake/outtake ports of the servomotor with cooling fan.
Do not allow conductive matter such as screw or cutting chips or combustible matter such
as oil enter the control unit, servo amplifier or servomotor.
The control unit, servo amplifier and servomotor are precision machines, so do not drop or
apply strong impacts on them.
Securely fix the control unit and servo amplifier to the machine according to
A172SHCPUN/A171SHCPUN/A273UHCPU/A173UHCPU(S1) user’s manual or the
instruction manual for the product you are using. 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
Control unit/servo amplifier Servomotor
Ambient 0°C to +55°C 0°C to +40°C
temperature (With no freezing) (With no freezing)
According to each instruction 80%RH or less
Ambient humidity
manual. (With no dew condensation)
Storage According to each instruction
−20°C to +65°C
temperature manual.
Indoors (where not subject to direct sunlight).
Atmosphere
No corrosive gases, flammable gases, oil mist or dust must exist.
Altitude 1000m or less above sea level.
Vibration According to each instruction manual.
−V−
! CAUTION
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 unit for a long time, disconnect the power line from the control unit or
servo amplifier.
Place the control unit and servo amplifier in static electricity preventing vinyl bags and store.
When storing for a long time, contact the Service Center or Service Station.
(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 Servo amplifier
installed on the DC relay for the control signal output of VIN
brake signals, etc. Incorrect installation may lead to signals (24VDC)
not being output when trouble occurs or the protective
functions not functioning. Control output
Do not connect or disconnect the connection cables signal RA
between each unit, the encoder cable or sequence ex-
pansion 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.
! CAUTION
Confirm and adjust the program and each parameter before operation. Unpredictable
movements may occur depending on the machine.
Extreme adjustments and changes may lead to unstable operation, so never make them.
When using the absolute position system function, on starting up, and when the controller or
absolute value motor has been replaced, always perform a home position return.
− VI −
(6) Usage methods
! CAUTION
Immediately turn OFF the power if smoke, abnormal sounds or odors are emitted from the
control unit, 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 magnetic obstacles to a minimum by installing a noise filter or by using
wire shields, etc. Magnetic obstacles may affect the electronic devices used near the control
unit or servo amplifier.
When using the CE mark-compatible equipment, refer to "EMC Installation Guidelines" (data
number IB(NA)-*****-*) for the motion controller and to the corresponding EMC guideline data for
the servo amplifier, inverter and other equipment.
Use the units with the following conditions.
Item Conditions
According to A172SHCPUN/A171SHCPUN/
Input power A273UHCPU/A173UHCPU(S1) user’s
manual.
According to A172SHCPUN/A171SHCPUN/
Input frequency A273UHCPU/A173UHCPU(S1) user’s
manual.
According to A172SHCPUN/A171SHCPUN/
Tolerable momentary
A273UHCPU/A173UHCPU(S1) user’s
power failure
manual.
! CAUTION
If an error occurs in the self diagnosis of the control unit or servo amplifier, confirm the
check details according to the instruction manual, and restore the operation.
If a dangerous state is predicted in case of a power failure or product failure, use a
servomotor with magnetic brakes or install a brake mechanism externally.
Use a double circuit construction so that the
magnetic brake operation circuit can be Shut off with the
operated by emergency stop signals set Shut off servo ON signal OFF, emergency stop
externally. alarm, magnetic brake signal. signal (EMG).
If an error occurs, remove the cause, secure Servo motor RA1 EMG
the safety and then resume operation.
The unit may suddenly resume operation Magnetic
24VDC
after a power failure is restored, so do not go brakes
near the machine. (Design the machine so
that personal safety can be ensured even if
the machine restarts suddenly.)
− VII −
(8) Maintenance, inspection and part replacement
! CAUTION
Perform the daily and periodic inspections according to the instruction manual.
Perform maintenance and inspection after backing up the program and parameters for the
control unit and servo amplifier.
Do not place fingers or hands in the clearance when opening or closing any opening.
Periodically replace consumable parts such as batteries according to A172SHCPUN/
A171SHCPUN user's manual, A273UHCPU user’s manual, A173UHCPU(S1) user’s manual or
the instruction manual for the product you are using.
! CAUTION
Do not touch the lead sections such as ICs or the connector contacts.
Do not place the control unit or servo amplifier on metal that may cause a power leakage or
wood, plastic or vinyl that may cause static electricity buildup.
Do not perform a megger test (insulation resistance measurement) during inspection.
When replacing the control unit or servo amplifier, always set the new unit settings correctly.
When the controller or absolute value motor has been replaced, carry out a home position
return operation using one of the following methods, otherwise position displacement could
occur.
1) After writing the servo data to the PC using peripheral device software, switch on the
power again, then perform a home position return operation.
2) Using the backup function of the peripheral device software, load the data backed up
before replacement.
After maintenance and inspections are completed, confirm that the position detection of the
absolute position detector function is correct.
Do not short circuit, charge, overheat, incinerate or disassemble the batteries.
The electrolytic capacitor will generate gas during a fault, so do not place your face near the
control unit or servo amplifier.
The electrolytic capacitor and fan will deteriorate. Periodically change these to prevent
secondary damage from faults. Replacements can be made by the Service Center or
Service Station.
(9) Disposal
! CAUTION
Dispose of this unit as general industrial waste.
Do not disassemble the control unit, servo amplifier or servomotor parts.
Dispose of the battery according to local laws and regulations.
− VIII −
(10) General cautions
! CAUTION
All drawings provided in the instruction manual show the state with the covers and safety
partitions removed to explain detailed sections. When operating the product, always return
the covers and partitions to the designated positions, and operate according to the
instruction manual.
− IX −
Revisions
*The manual number is given on the bottom left of the back cover.
Print Date *Manual Number Revision
Feb., 2000 IB(NA)-0300014-A First edition
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.
−I−
4.3 Servo Parameters ............................................................................................................................ 4- 9
4.3.1 MR- -B servo parameters..................................................................................................... 4-10
4.3.2 Position control gain 1, 2 .......................................................................................................... 4-15
4.3.3 Speed control gain 1, 2............................................................................................................. 4-16
4.3.4 Speed integral compensation ................................................................................................... 4-17
4.3.5 In-position range....................................................................................................................... 4-17
4.3.6 Feed forward gain..................................................................................................................... 4-17
4.3.7 Load inertia ratio....................................................................................................................... 4-18
4.3.8 Automatic tuning....................................................................................................................... 4-18
4.3.9 Servo responsiveness setting................................................................................................... 4-19
4.3.10 Notch filter .............................................................................................................................. 4-20
4.3.11 Electromagnetic brake sequence ........................................................................................... 4-20
4.3.12 Monitor output mode............................................................................................................... 4-20
4.3.13 Optional function 1.................................................................................................................. 4-20
4.3.14 Optional function 2.................................................................................................................. 4-21
4.3.15 Monitor output 1, 2 offset........................................................................................................ 4-22
4.3.16 Pre-alarm data selection......................................................................................................... 4-23
4.3.17 Zero speed ............................................................................................................................. 4-23
4.3.18 Excessive error alarm level .................................................................................................... 4-23
4.3.19 Optional function 5.................................................................................................................. 4-23
4.3.20 PI-PID switching position droop.............................................................................................. 4-24
4.3.21 Torque control compensation factor....................................................................................... 4-24
4.3.22 Speed differential compensation ............................................................................................ 4-24
4.4 Home Position Return Data ............................................................................................................ 4-25
4.5 JOG Operation Data ....................................................................................................................... 4-27
4.6 Parameter Block.............................................................................................................................. 4-28
4.6.1 Relationships among the speed limit value, acceleration time,
deceleration time, and rapid stop deceleration time ............................................................... 4-31
4.6.2 S curve ratio ............................................................................................................................. 4-33
4.6.3 Allowable error range for circular interpolation ......................................................................... 4-34
4.7 Work Coordinate Data .................................................................................................................... 4-35
− II −
5.7 SFC Programs ................................................................................................................................ 5-22
5.7.1 Starting and stopping SFC programs ....................................................................................... 5-22
5.7.2 Motion program start request ................................................................................................... 5-23
− III −
6.9 M Code............................................................................................................................................ 6-92
6.10 Special M Code ............................................................................................................................. 6-92
6.10.1 M00 Program stop .................................................................................................................. 6-93
6.10.2 M01 Optional program stop .................................................................................................... 6-95
6.10.3 M02 Program end................................................................................................................... 6-97
6.10.4 M30 Program end................................................................................................................... 6-99
6.10.5 M98, M99 Subprogram call, subprogram end ...................................................................... 6-101
6.10.6 M100 Preread inhibit ............................................................................................................. 6-103
6.11 Miscellaneous.............................................................................................................................. 6-105
6.11.1 Program control function (IF, GOTO statement) .................................................................. 6-106
6.11.2 Program control function (IF, THEN, ELSE, END statements) ............................................ 6-108
6.11.3 WHILE DO statement........................................................................................................... 6-110
6.11.4 Four fundamental operators, assignment operator (+, -, *, /, MOD, =) ................................ 6-112
6.11.5 Trigonometric functions (SIN, COS, TAN, ASIN, ACOS, ATAN) ......................................... 6-114
6.11.6 Real number to BIN value conversion (INT)......................................................................... 6-116
6.11.7 BIN value to real number conversion (FLT) ......................................................................... 6-118
6.11.8 Functions (SQRT, ABS, BIN, BCD, LN, EXP, RND, FIX, FUP) ........................................... 6-120
6.11.9 Logical operators (AND, OR, XOR, NOT, <<, >>)................................................................ 6-122
6.11.10 Move block wait functions (WAITON, WAITOFF) .............................................................. 6-124
6.11.11 Parameter block change (PB) ............................................................................................ 6-126
6.11.12 Torque limit value change (TL)............................................................................................ 6-128
6.11.13 Bit device set, reset functions (SET, RST) ......................................................................... 6-130
6.11.14 Conditional branch using bit device (ON, OFF).................................................................. 6-132
− IV −
APPENDICES ......................................................................................................................APP- 1 to APP-79
−V−
1. GENERAL DESCRIPTION
1. GENERAL DESCRIPTION
This manual describes the positioning control parameters, positioning-dedicated
devices, positioning methods and other information required to execute positioning
control with the motion controller (SV43). The motion controller (SV43) uses the
NC language (EIA) (hereafter referred to as the "motion program") as a
programming language.
The motion controller (SV43) can exercise the following positioning control.
Number of Axes Controlled in
Applicable CPU
Positioning Control
A172SHCPUN 8
A171SHCPUN 4
A273UHCPU (32 axis feature) 32
A173UHCPU(S1) 32
In this manual, the above CPUs are collectively referred to as the "servo system
CPUs".
The following software packages are used to make system settings, and to set,
test and monitor the servo parameters and motion programs.
• SW2SRX-GSV43P software package
....................... Abbreviated to "GSV43P"
• SW2NX-GSV43P software package
! 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−1
1. GENERAL DESCRIPTION
Positioning signals are always indicated in the following order: signal for
A172SHCPUN signal for A171SHCPUN signal for A273UHCPU (32 axes
feature) signal for A173UHCPU(S1). If only one positioning signal is indicated,
this means that the signal is used in common by every CPUs.
The explanatory text is written with reference to the A172SHCPU: if you are not
using an A172SHCPUN, the positioning signals should be read as the positioning
signals for the CPU you are using.
(For the positioning signals used with each CPU, refer to Appendix 6.)
A172SHCPUN/A171SHCPUN
A273UHCPU (32 axis feature) /A173UHCPU(S1)
3. POSITIONING SIGNALS
(1) The error reset command is used to clear the minor error code or major error
code storage area of an axis for which the error detection signal has come ON
(M1607+20n), and to reset the error detection signal (M1607+20n).
ON
Error detection (M1607+20n)
OFF
ON
Error reset (M1807+20n) OFF
(2) The motion program running status is reset if the error is reset during a
temporary stop (M1403+10n) made by the stop command (M1800+20n) during
an automatic start or if the error is reset during a block stop made by M00/M01.
DSFRP/SVST instruction
Temporary stop instruction
(M1500+10n)
ON
Error reset (M1807+20n) OFF
(3) When the error reset command is switched on during automatic operation
(M1402+10n ON), the above reset processing is performed after stop processing
is executed under the temporary stop command (M1500+10n).
3 - 19
1−2
1. GENERAL DESCRIPTION
module
Battery
M M M M
E E E E
MR-H-B/MR-J2-B/MR-J-B
servo amplifiers Max. 8 axes
NOTES
(1) When using the PC extension base and bus connection type GOT,
choose the A168B as the PC extension base.
When not using the PC extension base, the bus connection type GOT
can be connected directly to the PC extension base connector of the
main base unit.
(2) Use motion slots to mount PC A1S I/O modules if necessary.
(3) When the power supply to the servo system CPU is switched ON and
OFF, erroneous process outputs may temporarily be made due to the
delay between the servo system CPU power supply and the external
power supply for processing (especially DC), and the difference in startup
times.
For example, if the power supply to the servo system CPU comes ON
after the external power supply for processing comes ON at a DC output
module, the DC output module may temporarily give erroneous outputs
when the power to the servo system CPU comes ON. Accordingly a
circuit that ensures that the power supply to the servo system CPU
comes ON first should be constructed.
1−3
1. GENERAL DESCRIPTION
M M M M
E E E E
MR-H-B/MR-J2-B/MR-J-B
Servo amplifiers MAX.4 axes
NOTES
(1) When using the PC extension base and bus connection type GOT,
choose the A168B as the PC extension base.
When not using the PC extension base, the bus connection type GOT
can be connected directly to the PC extension base connector of the
main base unit.
(2) Use motion slots to mount PC A1S I/O modules if necessary.
(3) Though A172SENC has external input signals for 8 axes, make settings
for the first 4 axes (PXO to PXOF).
(4) When the power supply to the servo system CPU is switched ON and
OFF, erroneous process outputs may temporarily be made due to the
delay between the servo system CPU power supply and the external
power supply for processing (especially DC), and the difference in startup
times.
For example, if the power supply to the servo system CPU comes ON
after the external power supply for processing comes ON at a DC output
module, the DC output module may temporarily give erroneous outputs
when the power to the servo system CPU comes ON. Accordingly a
circuit that ensures that the power supply to the servo system CPU
comes ON first should be constructed.
1−4
1. GENERAL DESCRIPTION
The system configuration example of the motion controller (SV43) is shown below.
Dynamic brake
Servo external
signal module
<Main base unit> Servo
CPU module
A278B/A275B AC motor drive power Set the line information (wiring information) of:
module supply
module
Servo power supply module (A230P),
(ADU) module
module
Regenerative brake resistor AC motor drive module,
Battery unit MR-JBAT A278LX (brake output) and
0 0 0 0 0 0 MR-RB064
(ADU(ABS)) 4,8,8 n MR-RB10
A240DY
A62P A273UHCPU A278 A240 A221 A211 A222AM-20 A230P
in "System settings".
LX DY AM-20 AM-20 MR-RB30
MR-RB50
1
2 A300RU-50
3 EMG 3-phase power supply
BRAKE 4 200V
Brake output
EMG DB OUTDB IN+ External input signals (5 points)
Emergency DB COMDB IN-
FLS Upper LS
stop
RLS Lower LS
100/200VAC 8
M M M MR-HCBL M STOP Stop signal
E E E DOG Near-zero point dog MELSECNET(II)
MR-HSCBL M
CHANGE Speed position change MELSECNET/B
Motion network cable Up to 16 axes MELSECNET/10
M M
(between CPU and (Up to 32 axes including those PC extension base
E E
separated amplifier) of separated amplifiers) (A68B/A65B/A62B)
Network module
MR-J2HBUS M-A
d1 d2 d8
Termination 1
0 1 7
connector
MR-TM/MR-A-TM
M M MR-HCBL M M
E E MR-HSCBL M E
MR-JCCBL M
MR-JHSCBL M
HA-*H series motor
HC-MF series motor
HA-FF series motor
HA-SF series motor
SSCNET2
M M M Battery unit
<Motion extension base> d1 d2 d8 E E E
Needed when using MR-J-B(ABS)
Pulse generator/synchronous
A268B/A255B 0 1 7
Needed for each network
Limit switch output module
encoder interface module
SSCNET4
M M M
E E E d1 d2 d8
0 1 7
control module
Man-machine
MR-JBAT
M M M
E E E
Motion network cable
1 1 1 1 1 (between separated amplifier)
A62P A271 A273 AY42 A278 A221 A211 A230P MR-HBUS M
Limit output Servo power supply module line number
DVP EX LX AM AM MR-J2HBUS M-A
64 points MR-J2HBUS M
Motion module
PC I/O modules
1−5
1. GENERAL DESCRIPTION
generator/synchronous
PC input module
external signal
Manual pulse
input module
PC I/O module
encoder
module
A173UHCPU A172S A172S A1S A1S A1S
ENC ENC Y42 Y41 6 P
100/200VAC
Main base unit PC extension base: A1S6 B/A168B
(A178B-S2) 1 extension base can be increased *1.
M M M M M M M M
E E E E E E E E
SSCNET2
SSCNET3
SSCNET4
M M M M M M M M
E E E E E E E E
NOTES
When the power supply to the servo system CPU is switched ON and OFF,
erroneous process outputs may temporarily be made due to the delay
between the servo system CPU power supply and the external power supply
for processing (especially DC), and the difference in startup times.
For example, if the power supply to the servo system CPU comes on after the
external power supply for processing comes on at a DC output module, the
DC output module may temporarily give erroneous outputs when the power to
the servo system CPU comes on. Accordingly a circuit that ensures that the
power supply to the servo system CPU comes on first should be constructed.
1−6
1. GENERAL DESCRIPTION
The following table summarizes the notes on system configuration, system setup
items, and relative checks that differ from those of the A171SCPU.
Number of
Product Module Relative
Available System Setup Item Notes and Remarks
Name Name Check
Modules
1. MR-J2-B allows the use of the following • Connect the servo
motors with high-resolution encoders. amplifier to the
• HC-MF***W1 (32768PLS) 'SSCNET1'
• HA-FF***W1 (32768PLS) interface.
• HC-SF**2W2 (131072PLS) • The setting range
2. [Allowable travel value during power-off] changes for high-
MR-J2-B • Max. 8 axes for When ABS motor is used, set the resolution encoder
Separated A172SHCPUN allowable travel value during servo support.
MR-H-B
amplifier • Max. 4 axes for amplifier power-off by rpm (rotations per
MR-J-B A171SHCPUN minute).
This setting value is used for checking
when the servo amplifier is switched ON.
Setting range Default value
1−7
1. GENERAL DESCRIPTION
POINT
1. When using the existing A171SCPU user program and parameters,
perform the following procedure:
(1) Start the peripheral S/W package by A172SHCPUN or A171SHCPUN,
then read the sequence file and servo file created for A171SCPU via
the File Read function.
(3) Select “YES” and the existing settings will be replaced with those for
the startup CPU module.
Select “NO” and the existing A171SCPU settings will remain in effect.
(4) Utilization of motion program
(a) The handling of the variable type changes.
When a variable has no representation of the type, it is handled as
a 32-bit integer type in the A171SCPU.
A variable is handled as a 16-bit integer type in the
A172SHCPUN/ A171SHCPUN.
"L" or ":L" is added when a variable is handled as a 32-bit integer
type in the A172SHCPUN/A171SHCPUN.
Example:
1) For A171SCPU
#0 ..... [D1,D0] 32-bit integer type
2) For A172SHCPUN/A171SHCPUN
#0 ..... [D0] 16-bit integer type
When handled as 32-bit integer type
#0:L ..... [D1,D0]
For more information, refer to "6.6 Method for Setting the
Positioning Data".
(b) Add a return code to the last line of a program.
The GSV43P edit screen changes.
Before utilizing the program created on SW2SRX-GSV43 Ver.
F/SW2NX-GSV43P Ver. B or earlier, add a return code to the last
line of the program.
After utilization, make an error check for each program number.
The program may not be displayed properly in the presence of an
error.
* Other than system setup data and motion program data can be used
without change.
1−8
1. GENERAL DESCRIPTION
A servo system CPU can execute positioning control and sequence control for 8
axes (when using A172SHCPUN), 4 axes (when using A171SHCPUN) or 32 axes
(when using A273UHCPU (32 axis feature) or A173UHCPU) by means of a multi-
axis positioning control CPU (hereafter called the "PCPU") and a sequence control
CPU (hereafter called the "SCPU").
Sequence control capabilities are equivalent to those of the A2SHCPU's I/O and
memory enhanced version (when using A172SHCPUN), to those of the A2SHCPU
(when using A171SHCPUN), or to those of the A3U (when using A273UHCPU or
A173UHCPU).
1−9
1. GENERAL DESCRIPTION
The servo system CPU executes positioning control in accordance with the motion
programs designated by the sequence program of the SCPU.
An overview of the method used for positioning control is presented below.
SCPU Control
M2001
DSFRP D1 K15
(1) Motion programs and positioning control parameters are set using a peripheral
device.
1 − 10
1. GENERAL DESCRIPTION
PCPU Control
Limit switch output data ON/OFF pattern data required to execute the
limit switch output function
Work coordinate setting Data used to set the work coordinate system
REMARK
*1: Any of the following peripheral devices, running the GSV43P software, can
be used.
• An IBM PC/AT or 100% compatible machine in which PC-DOS 5.0 or a
later version has been installed (hereafter called an “IBM PC”)
1 − 11
1. GENERAL DESCRIPTION
The servo system CPU can be used to perform JOG operation on a designated
axis in accordance with a sequence program.
An overview of JOG operation is presented below.
SCPU Control
M2001
DMOVP K1000 D964 JOG speed setting
SET M10
Setting of "JOG speed setting Request for
Forward JOG execution command completed flag" execution of JOG
M10 M1803 Switches the forward JOG operation
M1802 execution command (M1802)
ON/OFF
Reverse JOG execution
command (for interlock)
In the sequence program, after setting the JOG speed, turn the
JOG operation execution flag (M1802/M1803) ON.
(2) Using the sequence program, set the JOG speed in the JOG operation speed
setting register for each axis.
(3) JOG operation is executed while the JOG operation execution flag is kept ON
by the sequence program.
1 − 12
1. GENERAL DESCRIPTION
PCPU Control
Positioning control
parameters Set and changed using a peripheral
device *1
System settings System data such as axis allocations
Work coordinate setting Data used to set the work coordinate system
Servo motor
REMARK
*1: Any of the following peripheral devices, running the GSV43P software, can
be used.
• IBM PC
1 − 13
1. GENERAL DESCRIPTION
SCPU Control
Sequence program
(1) Set the manual pulse generator used, operated axis number, and magnification
for 1 pulse input by using the sequence program.
(2) Turn the manual pulse generator operation enable flag ON by using the
sequence program.
........................................... manual pulse generator operation enabled
(4) Turn the manual pulse generator operation enable flag OFF by using the
sequence program.
....................................... manual pulse generator operation completed
1 − 14
1. GENERAL DESCRIPTION
Servo
PCPU
amplifier
Servo motor
Manual pulse
generator
1 − 15
1. GENERAL DESCRIPTION
1 − 16
1. GENERAL DESCRIPTION
1 − 17
2. PERFORMANCE SPECIFICATIONS
2. PERFORMANCE SPECIFICATIONS
Table 2.1.1 and 2.1.2 give the performance specifications of the SCPU.
2−1
2. PERFORMANCE SPECIFICATIONS
(*1) Range of positioning dedicated devices differs depending on the OS. For details, see Chapter 3.
(*2) The expansion comments are not stored in the internal memory of the CPU.
2−2
2. PERFORMANCE SPECIFICATIONS
2−3
2. PERFORMANCE SPECIFICATIONS
(*1) Range of positioning dedicated devices differs depending on the OS. For details, see Chapter 3.
(*2) The expansion comments are not stored in the internal memory of the CPU.
(*3) The year data read by the clock element is only the lower two digits of the year.
When used in sequence control, the year data must be compensated for by the sequence program in some applications of using the data.
2−4
2. PERFORMANCE SPECIFICATIONS
Table 2.2.1 and 2.2.2 give the performance specifications of the PCPU.
(*1)
Automatic
trapezoidal Acceleration-fixed acceleration/deceleration Time-fixed acceleration/deceleration
Acceleration/ acceleration/ Acceleration time: 1 to 65535ms Acceleration/deceleration time: 1 to 5000ms
deceleration deceleration Deceleration time: 1 to 65535ms (Only constant speed control is possible.)
control
S curve
acceleration/ S curve ratio setting: 0 to 100%
deceleration
Backlash
(0 to 65535) × position command unit (units converted to pulses: 0 to 65535 pulses)
Compensation compensation
Electronic gear Compensation function for error in actual travel value with respect to command value
When an absolute position system is not used : Selection of near-zero point dog type or count
type
Home position return function
When an absolute position system is used : Selection of data set type, near-zero point dog
type or count type
JOG operation function Provided
2−5
2. PERFORMANCE SPECIFICATIONS
(*1) Acceleration-fixed acceleration/deceleration and time-fixed acceleration/deceleration are switched over as indicated below.
Acceleration-fixed Time-fixed
acceleration/deceleration acceleration/deceleration
During G100 During G100
G00 (without M code G00 (with M code designation)
designation)
G28 G01
G30 G02
G53 G03
G32
All move commands during
-
G101
2−6
2. PERFORMANCE SPECIFICATIONS
(*1)
Automatic
trapezoidal Acceleration-fixed acceleration/deceleration Time-fixed acceleration/deceleration
Acceleration/ acceleration/ Acceleration time: 1 to 65535ms Acceleration/deceleration time: 1 to 5000ms
deceleration deceleration Deceleration time: 1 to 65535ms (Only constant speed control is possible.)
control
S curve
acceleration/ S curve ratio setting: 0 to 100%
deceleration
Backlash
(0 to 65535) × position command unit (units converted to pulses: 0 to 65535 pulses)
Compensation compensation
Electronic gear Compensation function for error in actual travel value with respect to command value
When an absolute position system is not used : Selection of near-zero point dog type or count
type
Home position return function
When an absolute position system is used : Selection of data set type, near-zero point dog
type or count type
JOG operation function Provided
2−7
2. PERFORMANCE SPECIFICATIONS
(*1) Acceleration-fixed acceleration/deceleration and time-fixed acceleration/deceleration are switched over as indicated below.
Acceleration-fixed Time-fixed
acceleration/deceleration acceleration/deceleration
During G100 During G100
G00 (without M code G00 (with M code designation)
designation)
G28 G01
G30 G02
G53 G03
G32
All move commands during
-
G101
2−8
2. PERFORMANCE SPECIFICATIONS
2.3 The Differences between A172SHCPUN/A171SHCPUN and A171S(S3) and the Differences between
A273UHCPU (32 axis feature) and A173UHCPU(S1)
" ×
(32768PLS/131072PLS)
2−9
2. PERFORMANCE SPECIFICATIONS
pulse generator
High-speed read (TREN input) 3 points 1 point
External input clutch 12 points 4 points
• MR-J2- B/MR-H B(N)/
• MR-J2- B/MR-H B(N)/
Usable servo amplifier MR-J B
MR-J B
• ADU (AC motor drive module)
Motion extension base Within 4 extension bases None
A173UHCPU
256 lines of resolution × 256 pcs. (set ...... 256 lines of resolution × 64 pcs.
Cam data
by memory cassette) A173UHCPU-S1
...... 256 lines of resolution × 256 pcs.
1 key switch
Sequence control
2 − 10
3. POSITIONING SIGNALS
3. POSITIONING SIGNALS
The internal signals of the servo system CPU and the external signals sent to the
servo system CPU are used as positioning signals.
SP.D, SP.M, X*1 *1: SP.D, SP.M and X are signals that notify the
SCPU of the PCPU control status.
Y *2 *2: Y are signals that notify the PCPU of position
SCPU D *3 PCPU control commands from the SCPU.
*3: D are registers that notify the PCPU of control
*4
M commands from the SCPU and the SCPU of
control status information from the PCPU.
*4: M are flags that notify the PCPU of control
commands from the SCPU and the SCPU
of control status information from the PCPU.
POINT
When the monitor data (machine values, actual present values, deviation counter, etc.) stored in the
data registers (D) are used for magnitude comparison or four function arithmetic, they must be
transferred to another device memory once and then processed.
For transfer, refer to "Appendix-4.5".
3−1
3. POSITIONING SIGNALS
3−2
3. POSITIONING SIGNALS
POINTS
• Total Number of User Device Points
A273UHCPU
A172SHCPUN 1400 points
(32 axis feature) 5632 points
A171SHCPUN 1400 points A173UHCPU(S1)
(1) Internal relays for positioning control are not latched even inside 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 "M1400 to
M1999".
(2) Internal relays for positioning control are monitored from peripheral
devices as shown below.
(a) When peripheral devices are started with GSV43P, positioning
control internal relays within a latch range are indicated by L1400 to
L1999.
3−3
3. POSITIONING SIGNALS
• Axis status
Axis A172SHCPUN A171SHCPUN
Signal Name
No. Device Number Device Number
M1600 M1600
1 to to Fetch Signal
M1619 M1619 Signal Name Refresh Cycle
Cycle Direction
M1620 M1620 0 Positioning start completed
2 to to 1 Positioning completed
M1639 M1639 2 In-position
M1640 M1640 3 Command in-position 3.5ms
3 to to 4 Unusable
M1659 M1659 5 Unusable
M1660 M1660 6 Zero pass
4 to to 7 Error detection Immediately
M1679 M1679 8 Servo error detection 3.5ms
SCPU
M1680 9 Home position return request 10ms
←
5 to 10 Home position return completed 3.5ms PCPU
M1699 11 External signal FLS
M1700 12 External signal RLS
10ms
6 to 13 External signal STOP
M1719 14 External signal DOG/CHANGE
M1720 15 Servo ON/OFF
3.5ms
7 to 16 Torque control in progress
M1739 17 (External signal DOG/CHANGE) 10ms
M1740 18 Unusable
8 to 19 M code output in progress 3.5ms
M1759
3−4
3. POSITIONING SIGNALS
• Axis status
A273UHCPU
Axis No.
3−5
3. POSITIONING SIGNALS
3−6
3. POSITIONING SIGNALS
3−7
3. POSITIONING SIGNALS
3−8
3. POSITIONING SIGNALS
3−9
3. POSITIONING SIGNALS
* The entry "END" in the Refresh Cycle column indicates 80ms or a longer sequence program scan time.
3 − 10
3. POSITIONING SIGNALS
3 − 11
3. POSITIONING SIGNALS
− − −
M2199 Unusable M2279
M2200 (80 points) M2280
M2201 M2281
M2202 M2282
M2203 M2283
M2204 M2284
M2205 M2285
M2206 M2286
M2207 M2287
M2208 M2288
M2209 M2289
M2210 M2290
M2211 M2291
M2212 M2292
M2213 M2293
M2214 M2294
− − −
M2215 M2295 Unusable
M2216 M2296 (48 points)
M2217 M2297
M2218 M2298
M2219 M2299
M2220 M2300
M2221 M2301
M2222 M2302
M2223 M2303
M2224 M2304
M2225 M2305
M2226 M2306
M2227 M2307
M2228 M2308
M2229 M2309
M2230 M2310
M2231 M2311
M2232 M2312
M2233 M2313
M2234 M2314
M2235 M2315
M2236 M2316
M2237 M2317
M2238 M2318
M2239 M2319
* The entry "END" in the Refresh Cycle column indicates 50ms or a longer sequence program scan time.
3 − 12
3. POSITIONING SIGNALS
100 200
SVST instruction
ON
Start acceptance (M2001+n)
Automatically operating ON
(M1402+10n) OFF
ON
Temporarily stopping
OFF
(M1403+10n) ON
Temporary stop command
OFF
(M1500+10n) ON
Restart (M1504+10n) OFF
3 − 13
3. POSITIONING SIGNALS
100 200
SVST instruction
ON
Start acceptance (M2001+n) *1 OFF
ON
Automatically operating *2
OFF
(M1402+10n)
ON
Temporarily stopping *2 OFF
(M1403+10n) ON
Temporary stop command *2 OFF
(M1500+10n) ON
Restart (M1504+10n) *2 OFF
REMARKS
*1: n in M2001+n indicates the value corresponding to the axis number.
*2: n indicates the value corresponding to the axis number as listed below.
<A172SHCPUN> <A171SHCPUN> <A273UHCPU (32 axis feature) / A173UHCPU>
Axis Axis Axis Axis Axis Axis
n n n n n n
No. No. No. No. No. No.
1 0 1 0 1 0 9 8 17 16 25 24
2 1 2 1 2 1 10 9 18 17 26 25
3 2 3 2 3 2 11 10 19 18 27 26
4 3 4 3 4 3 12 11 20 19 28 27
5 4 5 4 13 12 21 20 29 28
6 5 6 5 14 13 22 21 30 29
7 6 7 6 15 14 23 22 31 30
8 7 8 7 16 15 24 23 32 31
3 − 14
3. POSITIONING SIGNALS
3 − 15
3. POSITIONING SIGNALS
DSFRP/SVST instruction
ON
Start reception flag (M2001+n) *1 OFF
ON
Positioning start completed OFF
signal (M1600+20n) *2 ON
End signal OFF command OFF
(M1804+20n) *2
DSFRP/SVST instruction
ON
*1
Start reception flag (M2001+n) OFF
ON
Positioning start completed OFF
signal (M1600+20n) *2
REMARKS
*1: n in M2001+n indicates the value corresponding to the axis number.
*2: n indicates the value corresponding to the axis number as listed below.
<A172SHCPUN> <A171SHCPUN> <A273UHCPU (32 axis feature) / A173UHCPU>
Axis Axis Axis Axis Axis Axis
n n n n n n
No. No. No. No. No. No.
1 0 1 0 1 0 9 8 17 16 25 24
2 1 2 1 2 1 10 9 18 17 26 25
3 2 3 2 3 2 11 10 19 18 27 26
4 3 4 3 4 3 12 11 20 19 28 27
5 4 5 4 13 12 21 20 29 28
6 5 6 5 14 13 22 21 30 29
7 6 7 6 15 14 23 22 31 30
8 7 8 7 16 15 24 23 32 31
3 − 16
3. POSITIONING SIGNALS
Dwell
SVST instruction
ON
Start acceptance (M2001+n) *1 OFF
*2 ON
Automatically operating OFF
(M1402+10n) ON ON
Positioning completed *2 OFF
(M1601+20n) ON
Completion signal OFF instruction OFF
(M1804+20n) *2
REMARKS
*1: n in M2001+n indicates the value corresponding to the axis number.
*2: n indicates the value corresponding to the axis number as listed below.
<A172SHCPUN> <A171SHCPUN> <A273UHCPU (32 axis feature) / A173UHCPU>
Axis Axis Axis Axis Axis Axis
n n n n n n
No. No. No. No. No. No.
1 0 1 0 1 0 9 8 17 16 25 24
2 1 2 1 2 1 10 9 18 17 26 25
3 2 3 2 3 2 11 10 19 18 27 26
4 3 4 3 4 3 12 11 20 19 28 27
5 4 5 4 13 12 21 20 29 28
6 5 6 5 14 13 22 21 30 29
7 6 7 6 15 14 23 22 31 30
8 7 8 7 16 15 24 23 32 31
3 − 17
3. POSITIONING SIGNALS
In-position range
SVST instruction
3 − 18
3. POSITIONING SIGNALS
Command in-position
range
SVST instruction
ON
Error reset signal
(M1807+20n) OFF
REMARKS
*1: For details on the error codes when minor errors occur, see Appendix
2.2.
*2: For details on the error codes when major errors occur, see Appendix
2.3.
3 − 19
3. POSITIONING SIGNALS
(b) The servo error detection signal goes OFF when the servo error reset
signal (M1808+20n/M3208+20n) comes ON, or when the servo power
supply is switched back on.
ON
Servo error reset OFF
signal (M1808+20n) OFF
REMARK
*1: For details on the error codes of errors detected at the servo amplifier
side, see Appendix 2.4.
3 − 20
3. POSITIONING SIGNALS
COM COM
COM COM
COM COM
3 − 21
3. POSITIONING SIGNALS
(b) Independently of whether the "Leading edge valid" or "Trailing edge valid"
setting has been made in the system settings, the DOG/CHANGE signal
turns ON and the near-zero point dog or CHANGE signal turns OFF when
the near-zero point dog or CHANGE signal turns ON.
(c) When the "Leading edge valid" setting is made in the system settings, a
near-zero point dog or CHANGE input is provided when the near-zero
point dog or CHANGE signal turns ON. When the "Trailing edge valid"
setting is made, a near-zero point dog or CHANGE input is provided when
the near-zero point dog or CHANGE signal turns OFF.
POINT
When an axis driven by an MR- -B becomes subject to a servo error, the
affected axis only goes into the servo OFF status.
3 − 22
3. POSITIONING SIGNALS
(b) The following diagrams show the positions of the speed select switch
(CHANGE) when the CHANGE signal is ON and OFF.
CHANGE signal: ON CHANGE signal: OFF
A172SENC, A171SENC or A278LX A172SENC, A171SENC or A278LX
CHANGE CHANGE
CHANGE CHANGE
COM COM
100 200
SVST instruction
Command in-position
(M1603+20n)
3 − 23
3. POSITIONING SIGNALS
DSFRP/SVST instruction
(c) Among the positioning start instructions, the following instructions must be
noted.
1) A dog, count or data setting type home position return under G28 is
stopped and ended by the temporary stop command. After that, restart
(M1504+10n) is invalid.
When you want to execute G28 again, start the motion program using
the SVST instruction.
2) The axis executing G25 (high-speed oscillation) ignores the temporary
stop.
POINT
(1) During a home position return made by JOG operation, manual pulse
generator, DSFLP/CHGA instruction or the like, the temporary stop
command is ignored.
3 − 24
3. POSITIONING SIGNALS
100 200
DSFRP/SVST instruction
100 200
DSFRP/SVST instruction
3 − 25
3. POSITIONING SIGNALS
100
DSFRP/SVST instruction
100 200
DSFRP/SVST instruction
3 − 26
3. POSITIONING SIGNALS
3 − 27
3. POSITIONING SIGNALS
DSFRP/SVST instruction
REMARK
*1: Under G25 (high-speed oscillation) or G28 (dog, count, data setting) in the
motion program or during a home position return made by JOG operation,
manual pulse generator, DSFLP/CHGA instruction or the like, positioning
is controlled at the override ratio of 100%. (The override ratio is made
invalid.)
3 − 28
3. POSITIONING SIGNALS
ON
Stop command
OFF
(M1800+20n)
Stop command for
V designated axis
Stop
Deceleration processing
3 − 29
3. POSITIONING SIGNALS
POINT
If a home position return being made is stopped by turning ON the stop
command (M1800+20n/M3200+20n), make a home position return again.
If the stop command is turned ON after the near-zero point dog has turned
ON in the near-zero point dog type home position return, make a home
position return after performing JOG operation, positioning or the like to move
the axis to a position before the near-zero point dog is turned ON.
ON
Rapid stop
OFF
command
(M1801+20n) Rapid stop command
V for designated axis
Control when rapid
stop command is OFF
Set speed
Stop
(Note 1) The deceleration-to-rapid-stop time under G00 including M code, G01, G02, G03 or G32 is
equivalent to the acceleration time set in the parameter block.
3 − 30
3. POSITIONING SIGNALS
POINT
If a home position return being made is stopped by turning ON the rapid stop
command (M1801+20n/M3201+20n), make a home position return again.
If the rapid stop command is turned ON after the near-zero point dog has
turned ON in the near-zero point dog type home position return, make a home
position return after performing JOG operation, positioning or the like to move
the axis to a position before the near-zero point dog is turned ON.
POINT
Establish an interlock in the sequence program to make it impossible for the
forward JOG start command (M1802+20n/M3202+20n) and the reverse JOG
start command (M1803+20n/M3203+20n) to be ON at the same time.
Positioning start t
ON
completed signal
OFF
(M1600+20n)
ON
Positioning completed signal
OFF
(M1601+20n)
ON
End signal OFF command
OFF
(M1804+20n)
POINT
Do not turn the end signal OFF command ON with a PLS command.
If it is turned ON with a PLS command, it will not be possible to turn OFF the
positioning start completed signal (M1600+20n/M2400+20n) or the positioning
completed signal (M1601+20n/M2401+20n).
3 − 31
3. POSITIONING SIGNALS
ON
Error detection (M1607+20n) OFF
ON
Error reset (M1807+20n) OFF
(c) When the error reset command is turned ON during automatic operation
(M1402+10n/M4002+10n ON), the above reset processing is performed
after the stop processing is carried out under the temporary stop command
(M1500+10n/M4400+10n).
3 − 32
3. POSITIONING SIGNALS
ON
Servo error detection signal
(M1608+20n) OFF
ON
Servo error reset command
(M1808+20n) OFF
(c) When the error reset command is turned ON during automatic operation
(M1402+10n/M4002+10n ON), the above reset processing is performed
after the stop processing is carried out under the temporary stop command
(M1500+10n/M4400+10n).
POINT
*: Do not turn the error reset command (M1807+20n/M3207+20n) or servo
error reset command (M1808+20n/M3208+20n) ON with a PLS
command.
If a PLS command is used, it will not be possible to reset the error or
servo error.
REMARK
For details on minor error code, major error code, and servo error code
storage areas, see Appendix 2.
3 − 33
3. POSITIONING SIGNALS
POINTS
(1) To stop an axis by external STOP input after it has been started with the
M1809+20n/M3209+20n command ON, switch the STOP input from OFF
to ON
(if STOP input is ON when the axis is started, switch it from ON to OFF to
ON).
(2) External STOP input causes a block stop during automatic operation
(M1402+10n/M4002+10n ON).
CAUTION
Turn the power supply at the servo side OFF before turning a servomotor by hand.
100 200
DSFRP/SVST instruction
Command in-positiion
(1603+20n)
3 − 34
3. POSITIONING SIGNALS
POINTS
(1) Internal relays for positioning control are not latched even inside 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
M2047".
(2) The range of devices allocated as internal relays for positioning control
cannot be used by the user even if their applications have not been set.
V
Positioning start Deceleration to stop
ON
PC READY flag
(M2000) OFF
ON
PCPU READY
completed flag OFF
(M9074) The PCPU READY-completed
flag (M9074) does not come ON
because deceleration is in progress.
Servo parameters set in the servo
amplifiers, M code cleared.
3 − 35
3. POSITIONING SIGNALS
POINT
The PC READY flag (M2000) goes OFF when the servo system CPU is in the
STOP status. When the RUN status is re-established, the status is the same
as before the STOP was executed.
ON
OFF
M2000
Switch from RUN to STOP Switch from STOP to RUN
(b) The start accept flag ON/OFF processing takes the following form.
1) The start accept flag for the designated axis comes ON in response to a
DSFRP/SVST instruction, and goes OFF on completion of positioning.
The start accept flag will also go OFF if positioning is stopped part way
through.
(However, if positioning is stopped part way through by a speed change
to speed 0, the start accept flag will remain ON.)
V V
Dwell time
t t
Positioning Positioning Stopped part
DSFRP/SVST DSFRP/SVST
completion start way through
instruction instruction
ON ON
Start accept flag Start accept flag
(M2001+n) OFF (M2001+n)
OFF
Positioning completed Positioning
completed OFF
(M1601+20n)
ON (M1601+20n) ON
Positioning start
OFF Positioning start OFF
completed
(M1600+20n) completed
(M1600+20n)
3 − 36
3. POSITIONING SIGNALS
ON
PC READY (M2000) OFF
DSFRP/SVST instruction
ON
Start accept flag OFF
CAUTION
REMARK
A numerical value corresponding to an axis number is entered for "n".
<A172SHCPUN> <A171SHCPUN> <A273UHCPU (32 axes feature) / A173UHCPU>
Axis Axis Axis Axis Axis Axis
n n n n n n
No. No. No. No. No. No.
1 0 1 0 1 0 9 8 17 16 25 24
2 1 2 1 2 1 10 9 18 17 26 25
3 2 3 2 3 2 11 10 19 18 27 26
4 3 4 3 4 3 12 11 20 19 28 27
5 4 5 4 13 12 21 20 29 28
6 5 6 5 14 13 22 21 30 29
7 6 7 6 15 14 23 22 31 30
8 7 8 7 16 15 24 23 32 31
3 − 37
3. POSITIONING SIGNALS
ON
All axes servo start
OFF
accept flag (M2009)
ON
All axes servo start OFF
command (M2042)
ON
Servo ON OFF
REMARK
*: For details on the P1 connector of the A273EX/A172SENC/A171SENC,
refer to the (A172SHCPUN/A171SHCPUN/A273UHCPU/A173UHCPU(S1))
Motion Controller User's Manual.
(6) Start buffer full (M2020/M2050) ............... Signal sent from PCPU to SCPU
(a) This signal comes ON when 16 or more requests have been issued
simultaneously to the PCPU by means of position start (DSFRP/SVST)
instructions and/or control change (DSFLP) instructions in the sequence
program.
(b) Reset M2020/M2050 by using the sequence program.
3 − 38
3. POSITIONING SIGNALS
ON
Speed change OFF
command Delay due to sequence program
DSFLP instruction
ON
Speed change flag OFF
13 to 16ms
Speed change
Speed after
Set speed
speed change
t
Speed change completed
(8) System setting error flag (M2041)................. Signal sent from PCPU to SCPU
When the power is switched ON, or when the servo system CPU is reset, the
system setting data set with a peripheral device is input, and a check is
performed to determine if the set data matches the module mounting status (of
the main base unit and extension base units).
• ON .......................... Error
• OFF ........................ Normal
(a) When an error occurs, the ERROR LED at the front of the CPU comes ON.
Also, the error log can be known from the peripheral devices started by
GSV43P.
(b) When M2041 is ON, positioning cannot be started. You must eliminate the
cause of the error and switch the power back ON, or reset the servo system
CPU.
REMARK
Even if a module is loaded at a slot set as "NO USE"
in the system setting data set with a peripheral device, that slot will be
regarded as not used.
3 − 39
3. POSITIONING SIGNALS
(9) All axes servo start command (M2042) ............. Signal from SCPU to PCPU
The all axes servo start command is used to enable servo operation.
(a) Servo operation enabled⋅ ⋅ ⋅ ⋅ ⋅ ⋅ M2042 is turned ON while the servo OFF
signal (M1815+20n) is OFF and there is no
servo error.
(b) Servo operation disable⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅• M2042 is OFF
• The servo OFF signal (M1815+20n) is
ON
• Servo error
ON
All axes servo start command (M2042) OFF
ON
All axes servo start accept command
(M2009) OFF
Servo ON
POINT
M2042 has been turned ON, it will not go OFF even if the CPU is set in the
STOP status.
(b) Use the sequence program to perform appropriate processing (e.g. stop
the operating axis or switch servo OFF) at detection of a fault.
3 − 40
3. POSITIONING SIGNALS
POINT
• Total number of user device points
A273UHCPU
A172SHCPUN 800 points
(32 axis feature) 6502 points
A171SHCPUN 800 points A173UHCPU (S1)
3 − 41
3. POSITIONING SIGNALS
* The entry "END" in the Refresh Cycle column indicates 80ms or a longer sequence program scan time.
3 − 42
3. POSITIONING SIGNALS
*"END" in Refresh Cycle indicates a longer one of "50ms" and "sequence program scan time".
3 − 43
3. POSITIONING SIGNALS
*"END" in Refresh Cycle indicates a longer one of "50ms" and "sequence program scan time".
3 − 44
3. POSITIONING SIGNALS
3 − 45
3. POSITIONING SIGNALS
3 − 46
3. POSITIONING SIGNALS
3 − 47
3. POSITIONING SIGNALS
3 − 48
3. POSITIONING SIGNALS
3 − 49
3. POSITIONING SIGNALS
(1) Monitor data areas (D600 to D759, D800 to D959, D800 to D1439, D0 to D639)
.........................................................................................Data from PCPU to SCPU
The monitor data areas are used by the PCPU to store data such as the
present value, actual machine value and deviation counter's droop pulse value
during positioning control.
They can be used to check the positioning control status in the sequence
program.
The user cannot write data into the monitor data areas.
For the delay time from when a positioning device (input, internal relay, special
relay) turns ON/OFF until data is stored into the monitor data area, refer to
Appendix 6 Processing Time List.
(a) Present value..........................................................Data from PCPU to SCPU
1) This register stores the address in the work coordinate system (G54 to
G59) specified in the motion program.
This value is stored on the assumption that 0.0001mm is equal to 1.
(1mm = 10000)
The following assumes that the setting from the peripheral device is
G54=1000.
Machine value 10000000 0
The 0 position of the present value is re-set to 500., which results in the
present value of 5000000.
3 − 50
3. POSITIONING SIGNALS
(b) Execution sequence No. (main) storage register ...Data from PCPU to SCPU
This register stores the N No. (sequence No.) of the main sequence being
executed.
This number changes to zero at a motion program start.
The following data are the changes of the execution motion program No.,
execution sequence No. and execution block No.
Program Execution motion program No. Execution sequence No. Execution block No.
0001; 1 0 0
G00 X100.; 1 0 1
X200.; 1 0 2
N100 Y100.; 1 100 0
Z100.; 1 100 1
X300.; 1 100 2
N200 G01 X350. F100.; 1 200 0
Y200. Z200; 1 200 1
M10; 1 200 2
M02; 1 200 3
% 1 200 3
(c) Execution block No. (main) storage register...........Data from PCPU to SCPU
This register stores the block No. being executed.
This number changes to zero when the motion program is started by the
DSFRP/SVST instruction.
This number changes to zero when the sequence No. (N****) described in
the motion program is executed, and is incremented every time a single
block is executed. (Be careful when executing the IF-THEN-ELSE-END or
WHILE-DO instruction. For details, refer to Sections 6.11.2 and 6.11.3.)
(d) Execution program No. (sub) storage register .......Data from PCPU to SCPU
1) This register stores the 0 No. of the subprogram started by "M98"
(subprogram call).
2) When a subprogram is called from a subprogram, this number changes
to the 0 No. of the subprogram called.
When the subprogram is ended by "M99", this number changes to the 0
No. of the subprogram which called.
3) This number changes to 0 when the motion program is started by the
DSFRP/SVST instruction.
(e) Execution sequence No. (sub) storage register .....Data from PCPU to SCPU
1) This register stores the 0 No. of the subprogram started by "M98"
(subprogram call).
2) When a subprogram is called from a subprogram, this number changes
to the 0 No. of the subprogram called.
When the subprogram is ended by "M99", this number changes to the 0
No. of the subprogram which called.
3) This number changes to 0 when the motion program is started by the
DSFRP/SVST instruction.
(f) Execution block No. (sub) storage register .............Data from PCPU to SCPU
1) This register stores the block No. of the subprogram started by "M98"
(subprogram call).
2) When a subprogram is called from a subprogram, this number changes
to the block No. of the subprogram called.
When the subprogram is ended by "M99", this number changes to the
block No. of the subprogram which called.
3) This number changes to 0 when the motion program is started by the
DSFRP/SVST instruction.
3 − 51
3. POSITIONING SIGNALS
3 − 52
3. POSITIONING SIGNALS
3 − 53
3. POSITIONING SIGNALS
(t) Torque limit value storage register ..........................Data from PCPU to SCPU
This register stores the torque limit value commanded to the servo.
300% is stored at power-on of the servo or on the leading edge of PC ready
(M2000).
(u) STOP input-time actual machine value storage register
................................................................................Data from PCPU to SCPU
This area stores the actual machine value at input of the external "STOP"
signal.
3 − 54
3. POSITIONING SIGNALS
(1) Control changing data storage areas (D500 to D559, D960 to D1007, D1440 to
D1631, D640 to D703) ................................................Data from SCPU to PCPU
The control changing data storage areas are used to store the override ratio
setting data, speed change data and JOG operation speed data.
(a) Override ratio setting register
1) This register is used to set the override ratio of 0 to 100% in 1%
increments to the command speed in the motion program.
2) The actual feed rate is the result of multiplying the command speed in the
motion program by the override ratio of 0 to 100% in 1% increments.
3) Refer to Section 7.10 for details of override ratio setting.
(b) Speed change register
1) When the speed of the operating axis is changed, this register stores a
new speed.
2) The ranges of setting made to the speed change register are indicated
below.
Unit mm inch degree
Item Setting range Unit Setting range Unit Setting range Unit
×10 mm/min ×10 inch/min ×10 degree/min
-2 -3 -3
New speed value 0 to 600000000 0 to 600000000 0 to 2147483647
3) The JOG speed is the value stored in the JOG speed setting register on
the leading edge (OFF to ON) of the JOG start signal.
The JOG speed cannot be changed if the data is changed during JOG
operation.
4) Refer to Section 7.8 for details of JOG operation.
3 − 55
3. POSITIONING SIGNALS
(1) Tool length offset data setting registers (D560 to D599/D1650 to D1689)
.....................................................................................Data from SCPU to PCPU
(a) These registers are used to set the tool length offset values.
(b) The tool length offset data No. can be set within the range H1 to H20.
Tool length offset data setting registers
Corresponding Registers Corresponding Registers
Tool Length Offset Data
A172SHCPUN/A171SHCPUN A273UHCPU (32 axis feature) / A173UHCPU (S1)
No.
Upper Lower Upper Lower
H1 D561 D560 D1651 D1650
H2 D563 D562 D1653 D1652
H3 D565 D564 D1655 D1654
H4 D567 D566 D1657 D1656
H5 D569 D568 D1659 D1658
H6 D571 D570 D1661 D1660
H7 D573 D572 D1663 D1662
H8 D575 D574 D1665 D1664
H9 D577 D576 D1667 D1666
H10 D579 D578 D1669 D1668
H11 D581 D580 D1671 D1670
H12 D583 D582 D1673 D1672
H13 D585 D584 D1675 D1674
H14 D587 D586 D1677 D1676
H15 D589 D588 D1679 D1678
H16 D591 D590 D1681 D1680
H17 D593 D592 D1683 D1682
H18 D595 D594 D1685 D1684
H19 D597 D596 D1687 D1686
H20 D599 D598 D1689 D1688
(c) The setting ranges of the tool length offset data are indicated below.
Unit mm degree
Item Setting range Unit Setting range Unit
Tool -999.9999 -359.99999
compensation to mm to degree
(H1 to H20) 999.9999 359.99999
(d) Refer to Sections 6.8.16 and 6.8.17 for the tool length offset details.
3 − 56
3. POSITIONING SIGNALS
3.2.4.1 A172SHCPUN/A171SHCPUN
(1) Limit switch output disable setting register (D1008 to D1011) .......... Data from
SCPU to PCPU
(a) This is a register for disabling the external output of limit switch output in 1
point units. If a bit is set to "1", the output of the corresponding limit switch is
disabled, then the external output goes OFF.
<A172SHCPUN>
D1009 LY1F LY1E LY1D LY1C LY1B LY1A LY19 LY18 LY17 LY16 LY15 LY14 LY13 LY12 LY11 LY10
D1010 LY2F LY2E LY2D LY2C LY2B LY2A LY29 LY28 LY27 LY26 LY25 LY24 LY23 LY22 LY21 LY20
D1011 LY3F LY3E LY3D LY3C LY3B LY3A LY39 LY38 LY37 LY36 LY35 LY34 LY33 LY32 LY31 LY30
<A171SHCPUN>
D1009 LY1F LY1E LY1D LY1C LY1B LY1A LY19 LY18 LY17 LY16 LY15 LY14 LY13 LY12 LY11 LY10
3 − 57
3. POSITIONING SIGNALS
(2) Registers for setting axis numbers controlled by manual pulse generators
(D1012) ......Data from SCPU to PCPU
(a) These registers store the axis numbers controlled by manual pulse
generators.
(b) For details on manual pulse generator operation, see Section 7.9.
(3) JOG operation simultaneous start axis setting register (D1015) .......Data from
SCPU to PCPU
(a) This register is used to set the axis numbers of axes on which JOG
operation is to be executed, and the direction of motion.
<A172SHCPUN>
Axes started in reverse JOG operation Axes started in forward JOG operation
*The possible settings for each axis moved in a simultaneous start JOG operation are "1" to "0".
1: Simultaneous start executed
0: Simultaneous start not executed
<A171SHCPUN>
Axes started in reverse JOG operation Axes started in forward JOG operation
*The possible settings for each axis moved in a simultaneous start JOG operation are "1" to "0".
1: Simultaneous start executed
0: Simultaneous start not executed
(b) For details on simultaneous starting in JOG operation, see Section 7.8.2.
3 − 58
3. POSITIONING SIGNALS
(4) 1 pulse input magnification setting registers for manual pulse generators
(D1016 to D1023).........................................................Data from SCPU to PCPU
(a) This register is used to set the magnification (from 1 to 100) per pulse for
the number of input pulses from a manual pulse generator in manual pulse
generator operation.
<A172SHCPUN>
1-pulse Input Magnification Corresponding Axis Setting Range
Setting Register No.
D1016 Axis 1
D1017 Axis 2
D1018 Axis 3
D1019 Axis 4
1 to 100
D1020 Axis 5
D1021 Axis 6
D1022 Axis 7
D1023 Axis 8
<A171SHCPUN>
1-pulse Input Magnification Corresponding Axis Setting Range
Setting Register No.
D1016 Axis 1
D1017 Axis 2
1 to 100
D1018 Axis 3
D1019 Axis 4
(b) For details on manual pulse generator operation, see Section 7.9.
3 − 59
3. POSITIONING SIGNALS
(1) Jog operation simultaneous start axis setting registers (D710 to D713)
.....................................................................................Data from SCPU to PCPU
(a) These registers are used to set the axis numbers and directions of the axes
which are simultaneously started for JOG operation.
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
*The possible settings for each axis moved in a simultaneous start JOG operation are "1" to "0".
1: Simultaneous start executed
0: Simultaneous start not executed
(b) Refer to Section 7.19.3 for details of simultaneous start of JOG operation.
(2) Manual pulse generator-controlled axis No. setting registers (D714 to D719)
.....................................................................................Data from SCPU to PCPU
(a) These registers are used to store the axis numbers controlled by the manual
pulse generators.
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
*The possible settings for each axis moved in a simultaneous start JOG operation are "1" to "0".
1: Simultaneous start executed
0: Simultaneous start not executed
(b) Refer to Section 7.20 for details of manual pulse generator operation.
3 − 60
3. POSITIONING SIGNALS
(3) 1 pulse input magnification setting registers for manual pulse generators (D720
to D751) .......................................................................Data from SCPU to PCPU
(a) This register is used to set the magnification (from 1 to 100) per pulse for
the number of input pulses from a manual pulse generator in manual pulse
generator operation.
1-pulse Input 1-pulse Input
Corresponding Axis Corresponding Axis
Magnification Setting Setting Range Magnification Setting Setting Range
No. No.
Register Register
D720 Axis 1 D736 Axis 17
D721 Axis 2 D737 Axis 18
D722 Axis 3 D738 Axis 19
D723 Axis 4 D739 Axis 20
D724 Axis 5 D740 Axis 21
D725 Axis 6 D741 Axis 22
D726 Axis 7 D742 Axis 23
D727 Axis 8 D743 Axis 24
1 to 100 1 to 100
D728 Axis 9 D744 Axis 24
D729 Axis 10 D745 Axis 26
D730 Axis 11 D746 Axis 27
D731 Axis 12 D747 Axis 28
D732 Axis 13 D748 Axis 29
D733 Axis 14 D749 Axis 30
D734 Axis 15 D750 Axis 31
D735 Axis 16 D751 Axis 32
(b) For details on manual pulse generator operation, see Section 7.9.
(4) Manual pulse generator smoothing magnification setting area (D752 to D754)
.....................................................................................Data from SCPU to PCPU
(a) These devices are used to set the smoothing time constants of the manual
pulse generators.
Manual Pulse Generator Smoothing
Setting Range
Magnification Setting Register
Manual pulse generator 1 (P1): D752
Manual pulse generator 2 (P2): D753 0 to 59
Manual pulse generator 3 (P3): D754
ON
Manual pulse generator enable flag
(M2051) OFF
V
V1
t t t t
Output speed (V1) = (number of input pulses/ms) (manual pulse generator 1-pulse input magnification setting)
Travel (L) = (travel per pulse) (number of input pulses) (manual pulse generator 1-pulse input magnification setting)
REMARKS
1) The travel per pulse of the manual pulse generator is as follows.
Setting unit mm :0.1 m
inch :0.00001inch
degree :0.00001degree
PULSE :1pulse
2) The smoothing time constant is 56.8ms to 3408ms.
3 − 61
3. POSITIONING SIGNALS
D761 LY1F LY1E LY1D LY1C LY1B LY1A LY19 LY18 LY17 LY16 LY15 LY14 LY13 LY12 LY11 LY10
D762 LY2F LY2E LY2D LY2C LY2B LY2A LY29 LY28 LY27 LY26 LY25 LY24 LY23 LY22 LY21 LY20
D763 LY3F LY3E LY3D LY3C LY3B LY3A LY39 LY38 LY37 LY36 LY35 LY34 LY33 LY32 LY31 LY30
D764 LY4F LY4E LY4D LY4C LY4B LY4A LY49 LY48 LY47 LY46 LY45 LY44 LY43 LY42 LY41 LY40
D765 LY5F LY5E LY5D LY5C LY5B LY5A LY59 LY58 LY57 LY56 LY55 LY54 LY53 LY52 LY51 LY50
D766 LY6F LY6E LY6D LY6C LY6B LY6A LY69 LY68 LY67 LY66 LY65 LY64 LY63 LY62 LY61 LY60
D767 LY7F LY7E LY7D LY7C LY7B LY7A LY79 LY78 LY77 LY76 LY75 LY74 LY73 LY72 LY71 LY70
D768 LY8F LY8E LY8D LY8C LY8B LY8A LY89 LY88 LY87 LY86 LY85 LY84 LY83 LY82 LY81 LY80
D769 LY9F LY9E LY9D LY9C LY9B LY9A LY99 LY98 LY97 LY96 LY95 LY94 LY93 LY92 LY91 LY90
D770 LYAF LYAE LYAD LYAC LYAB LYAA LYA9 LYA8 LYA7 LYA6 LYA5 LYA4 LYA3 LYA2 LYA1 LYA0
D771 LYBF LYBE LYBD LYBC LYBB LYBA LYB9 LYB8 LYB7 LYB6 LYB5 LYB4 LYB3 LYB2 LYB1 LYB0
D772 LYCF LYCE LYCD LYCC LYCB LYCA LYC9 LYC8 LYC7 LYC6 LYC5 LYC4 LYC3 LYC2 LYC1 LYC0
D773 LYDF LYDE LYDD LYDC LYDB LYDA LYD9 LYD8 LYD7 LYD6 LYD5 LYD4 LYD3 LYD2 LYD1 LYD0
D774 LYEF LYEE LYED LYEC LYEB LYEA LYE9 LYE8 LYE7 LYE6 LYE5 LYE4 LYE3 LYE2 LYE1 LYE0
D775 LYFF LYFE LYFD LYFC LYFB LYFA LYF9 LYF8 LYF7 LYF6 LYF5 LYF4 LYF3 LYF2 LYF1 LYF0
3 − 62
3. POSITIONING SIGNALS
Axis 2 Axis 1
D777 LY1F LY1E LY1D LY1C LY1B LY1A LY19 LY18 LY17 LY16 LY15 LY14 LY13 LY12 LY11 LY10
Axis 4 Axis 3
D778 LY2F LY2E LY2D LY2C LY2B LY2A LY29 LY28 LY27 LY26 LY25 LY24 LY23 LY22 LY21 LY20
Axis 6 Axis 5
D779 LY3F LY3E LY3D LY3C LY3B LY3A LY39 LY38 LY37 LY36 LY35 LY34 LY33 LY32 LY31 LY30
Axis 8 Axis 7
D780 LY4F LY4E LY4D LY4C LY4B LY4A LY49 LY48 LY47 LY46 LY45 LY44 LY43 LY42 LY41 LY40
Axis 10 Axis 9
D781 LY5F LY5E LY5D LY5C LY5B LY5A LY59 LY58 LY57 LY56 LY55 LY54 LY53 LY52 LY51 LY50
Axis 12 Axis 11
D782 LY6F LY6E LY6D LY6C LY6B LY6A LY69 LY68 LY67 LY66 LY65 LY64 LY63 LY62 LY61 LY60
Axis 14 Axis 13
D783 LY7F LY7E LY7D LY7C LY7B LY7A LY79 LY78 LY77 LY76 LY75 LY74 LY73 LY72 LY71 LY70
Axis 16 Axis 15
D784 LY8F LY8E LY8D LY8C LY8B LY8A LY89 LY88 LY87 LY86 LY85 LY84 LY83 LY82 LY81 LY80
Axis 18 Axis 17
D785 LY9F LY9E LY9D LY9C LY9B LY9A LY99 LY98 LY97 LY96 LY95 LY94 LY93 LY92 LY91 LY90
Axis 20 Axis 19
D786 LYAF LYAE LYAD LYAC LYAB LYAA LYA9 LYA8 LYA7 LYA6 LYA5 LYA4 LYA3 LYA2 LYA1 LYA0
Axis 22 Axis 21
D787 LYBF LYBE LYBD LYBC LYBB LYBA LYB9 LYB8 LYB7 LYB6 LYB5 LYB4 LYB3 LYB2 LYB1 LYB0
Axis 24 Axis 23
D788 LYCF LYCE LYCD LYCC LYCB LYCA LYC9 LYC8 LYC7 LYC6 LYC5 LYC4 LYC3 LYC2 LYC1 LYC0
Axis 26 Axis 25
D789 LYDF LYDE LYDD LYDC LYDB LYDA LYD9 LYD8 LYD7 LYD6 LYD5 LYD4 LYD3 LYD2 LYD1 LYD0
Axis 28 Axis 27
D790 LYEF LYEE LYED LYEC LYEB LYEA LYE9 LYE8 LYE7 LYE6 LYE5 LYE4 LYE3 LYE2 LYE1 LYE0
Axis 30 Axis 29
D791 LYFF LYFE LYFD LYFC LYFB LYFA LYF9 LYF8 LYF7 LYF6 LYF5 LYF4 LYF3 LYF2 LYF1 LYF0
Axis 32 Axis 31
"1" or "0" is set at each bit of D776 to D791.
ON 1
OFF 0
REMARK
LY in LY of D776 to D791 indicates limit switch output.
3 − 63
3. POSITIONING SIGNALS
(7) Servo amplifier type (D792 to D799) ........................... Data from PCPU to SCPU
The servo amplifier types set in system settings are stored when the servo
system CPU control power supply (A6 P) is switched on or reset.
3 − 64
3. POSITIONING SIGNALS
The servo system CPU has 256 special relay points from M9000 to M9255.
Of there, the 7 points from M9073 to M9079 are used for positioning control, and
their applications are indicated in Table 3.1.
*"END" in Refresh Cycle indicates a longer one of "80ms" and "sequence program scan time".
(1) PCPU WDT error flag (M9073).....................Signal sent from PCPU to SCPU
This flag comes ON when a "watchdog timer error" is detected by the PCPU's
self-diagnosis function.
When the PCPU detects a WDT error, it executes an immediate stop without
deceleration on the driven axis.
When the WDT error flag has come ON, reset the servo system CPU with the
key switch.
If M9073 remains ON after resetting, there is a fault at the PCPU side.
The error cause is stored in the PCPU error cause storage area (D9184) (see
Section 3.4 (2)).
(2) PCPU REDAY-completed flag (M9074)...... Signal sent from PCPU to SCPU
This flag is used to determine whether the PCPU is normal or abnormal from
the sequence program.
(a) When the PC READY flag (M2000) turns from OFF to ON, the fixed
parameters, servo parameters, limit switch output data, etc., are checked,
and if no error is detected the PCPU READY-completed flag comes ON.
The servo parameters are written to the servo amplifiers and the M codes
are cleared.
(b) When the PC READY flag (M2000) goes OFF, the PCPU READY-
completed flag also goes OFF
PC READY
(M2000) t
PCPU READY
completed flag Writing of servo parameters to
(M9074) servo amplifiers
Clearance of M codes
3 − 65
3. POSITIONING SIGNALS
(4) External emergency stop input flag (M9076) Signal from PCPU to SCPU
This flag is used to check the ON or OFF status of external emergency stop
signal input at the EMG terminal.
• OFF ...... External emergency stop input is ON
• ON........ External emergency stop input is OFF
(5) Manual pulse generator axis setting error flag (M9077) ....... Signal sent from
PCPU to SCPU
(a) This flag is used to determine whether the setting in the manual pulse
generator axis setting register (D1012/D714 to D719) is normal or
abnormal.
• OFF ....... When D1012/D714 to D719 is normal
• ON ......... When D1012/D714 to D719 is abnormal
(b) When M9077 comes ON, the error contents are stored in the manual pulse
generator axis setting error register (D9187).
3 − 66
3. POSITIONING SIGNALS
(6) Test mode request error flag (M9078) ......Signal sent from PCPU to SCPU
(a) This flag comes ON if the test mode is not established when a test mode
request is sent from a peripheral device
(b) When M9078 comes ON, the error contents are stored in the test mode
request error register (D9188/D9182, D9183).
POINTS
(1) When an emergency stop signal (EMG) is input during positioning, the
feed present value is advanced within the rapid stop deceleration time set
in the parameter block. At the same time, the servo OFF status is
established because the all axes servo start command (M2042) goes
OFF. When the rapid stop deceleration time has elapsed after input of
the emergency stop signal, the feed present value returns to the value at
the point when the emergency stop was initiated.
(2) If the emergency stop is reset before the emergency stop deceleration
time has elapsed, a servo error occurs.
(3) If you do not want to establish the servo ON status immediately after an
emergency stop has been reset, include the following section in the
sequence program.
All axes servo start command
execution signal
PLS M0
M0
SET M2042
(7) Motion program setting error flag (M9079) ...Signal from PCPU to SCPU
This flag is used to determine whether the positioning data of the motion
program designated by a DSFRP/SVST instruction is normal or abnormal.
• OFF ...... Normal
• ON........ Abnormal
3 − 67
3. POSITIONING SIGNALS
3.4.1 A172SHCPUN/A171SHCPUN
A servo system CPU has 256 special register points from D9000 to D9255.
Of these, the 20 points from D9180 to D9199 are used for positioning control.
The special registers used for positioning are shown in the table below (for the
applications of special registers other than D9180 to D9199, see Appendix 3.2.)
CPUN/
A171SH
Signal Name Refresh Cycle Fetch Cycle Signal Direction
CPUN
Device
Number
D9180
D9181
Limit switch output status 3.5ms
D9182
D9183
At PCPU WDT error
D9184 PCPU WDT error cause
occurrence
D9185
Servo amplifier type Power ON SCPU←PCPU
D9186
Manual pulse generator axis setting Manual pulse generator
D9187
error information operation enabled
D9188 Test mode request error information Test mode request
D9189 Error program number
At driving
D9190 Error item information
D9191 Servo amplifier loading information Power ON, 10 ms
Manual pulse generator 1 smoothing Manual pulse generator
D9192 SCPU→PCPU
magnification setting register operation enabled
D9193
D9194 Unusable − − −
D9195
D9196 PC link communication error code 3.5ms SCPU←PCPU
D9197
D9198 Unusable − − −
D9199
3 − 68
3. POSITIONING SIGNALS
(1) Limit switch output status storage register (D9180 to D9183) ...... Data from
PCPU to SCPU
(a) This register stores the output status (ON/OFF) for limit switch output to
AY42 with a peripheral device as "1" or "0".
• ON ........ 1
• OFF ...... 0
(b) This register can be used for purposes such as outputting limit switch output
data to external destinations by using the sequence program.
<A172SHCPUN>
D9181 LY1F LY1E LY1D LY1C LY1B LY1A LY19 LY18 LY17 LY16 LY15 LY14 LY13 LY12 LY11 LY10
D9182 LY2F LY2E LY2D LY2C LY2B LY2A LY29 LY28 LY27 LY26 LY25 LY24 LY23 LY22 LY21 LY20
D9183 LY3F LY3E LY3D LY3C LY3B LY3A LY39 LY38 LY37 LY36 LY35 LY34 LY33 LY32 LY31 LY30
REMARK
"LY" in LY of D9180 to D9181 indicates a limit switch output.
<A171SHCPUN>
D9181 LY1F LY1E LY1D LY1C LY1B LY1A LY19 LY18 LY17 LY16 LY15 LY14 LY13 LY12 LY11 LY10
REMARK
"LY" in LY of D9180 to D9181 indicates a limit switch output.
3 − 69
3. POSITIONING SIGNALS
3 − 70
3. POSITIONING SIGNALS
(3) Servo amplifier classification (D9185 to D9186) .......Data from PCPU to SCPU
On switching on the power to the servo system CPU or resetting, the servo
amplifier type set in the system settings is set in these devices.
(a) A172SHCPUN
(b) A171SHCPUN
3 − 71
3. POSITIONING SIGNALS
(4) Manual pulse generator axis setting error (D9187).......Data from PCPU to
SCPU
When the manual pulse generator axis setting error flag (M9077) turns ON, the
definition of the manual pulse generator axis setting error is stored into this
register.
(a) A172SHCPUN
b15 b14 b13 b12 b11 b10 b9 b8 b3 b0
D9187 Axis 8 Axis 7 Axis 6 Axis 5 Axis 4 Axis 3 Axis 2 Axis 1 0 P1 0 P1
(b) A171SHCPUN
b15 b11 b10 b9 b8 b3 b0
D9187 0 Axis 4 Axis 3 Axis 2 Axis 1 0 P1 0 P1
3 − 72
3. POSITIONING SIGNALS
(5) Test mode request error (D9188) ...... Data from PCPU to SCPU
When the test mode request error flag (M9078) turns ON, the data of the
operating axes are stored into this register.
(a) A172SHCPUN
b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
D9188 0 0 0 0 0 0 0 0 Axis 8 Axis 7 Axis 6 Axis 5 Axis 4 Axis 3 Axis 2 Axis 1
(b) A171SHCPUN
b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
D9188 0 0 0 0 0 0 0 0 0 0 0 0 Axis 4 Axis 3 Axis 2 Axis 1
3 − 73
3. POSITIONING SIGNALS
(8) Servo amplifier installation information (D9191) .......Data from PCPU to SCPU
On switching on the control power supply to the servo system CPU or resetting,
the servo amplifier installation status is checked and the result is set in this
device.
Lower 8 bits ...... Servo amplifier installation status (A172SHCPUN)
Lower 4 bits ...... Servo amplifier installation status (A171SHCPUN)
The "installed" status will be stored for axes for which an amplifier is installed
after the power is switched on. However, if the amplifier for an axis is removed,
the "installed" status will not change to "not installed".
<A172SHCPUN>
b15 to b8 b7 b6 b5 b4 b3 b2 b1 b0
D9191 0 Axis 8 Axis 7 Axis 6 Axis 5 Axis 4 Axis 3 Axis 2 Axis 1
<A171SHCPUN>
b15 to b4 b3 b2 b1 b0
D9191 0 Axis 4 Axis 3 Axis 2 Axis 1
MR- -B
System Setting
Installed Not Installed
Used (axis number setting) "1" is stored "0" is stored
Unused "0" is stored "0" is stored
3 − 74
3. POSITIONING SIGNALS
(9) Area for setting the smoothing magnification for the manual pulse generator
(D9192) ......Data from SCPU to PCPU
(a) This device stores the manual pulse generator smoothing time constant.
(b) When the smoothing magnification is set, the smoothing time constant is
determined by the formula given below.
Smoothing time constant (t) = (smoothing magnification + 1) × 56.8 [ms]
(c) Operation
Manual pulse
generator input
ON
Manual pulse generator
enable flag (M2012) OFF
V
V1
t t t t
REMARKS
1) The travel value per manual pulse generator pulse is set in one of the
following units.
Setting unit mm :0.0001mm
inch :0.00001inch
degree :0.00001degree
2) The range for the smoothing time constant is 56.8 ms to 3408 ms.
3 − 75
3. POSITIONING SIGNALS
A servo system CPU has 256 points of special registers from D9000 to D9255.
Among these, the 20 points of D9180 to D9199 are used for positioning control.
The special registers used for positioning control are listed below. (Refer to
Appendix 3.2 for the applications of special registers other than D9180 to D9199.)
D9183 Axis32 Axis31 Axis30 Axis29 Axis28 Axis27 Axis26 Axis25 Axis24 Axis23 Axis22 Axis21 Axis20 Axis19 Axis18 Axis17
3 − 76
3. POSITIONING SIGNALS
3 − 77
3. POSITIONING SIGNALS
(3) Manual pulse generator axis setting error information (D9185 to D9187)
.....................................................................................Data from PCPU to SCPU
If an error is found after checking of the set data on the leading edge of the
manual pulse generator enable signal, the following error information is stored
into D9185 to D9187 and the manual pulse generator axis setting error flag
(M9077) turns ON.
All turn to 0.
D9186 Axis16 Axis15 Axis14 Axis13 Axis12 Axis11 Axis10 Axis9 Axis8 Axis7 Axis6 Axis5 Axis4 Axis3 Axis2 Axis1
D9187 Axis32 Axis31 Axis30 Axis29 Axis28 Axis27 Axis26 Axis25 Axis24 Axis23 Axis22 Axis21 Axis20 Axis19 Axis18 Axis17
(4) Error program No. (D9189) Data from .........................Data from PCPU to SCPU
(a) When an error occurs in the servo program at a servo program start (SVST
instruction), the servo program setting error flag (M9079) turns ON and the
faulty servo program No. (0 to 4095) is stored into this register.
(b) When an error program No. has been stored and an error occurs in another
servo program, the new error program No. is stored.
3 − 78
3. POSITIONING SIGNALS
D9192 Axis32 Axis31 Axis30 Axis29 Axis28 Axis27 Axis26 Axis25 Axis24 Axis23 Axis22 Axis21 Axis20 Axis19 Axis18 Axis17
3 − 79
4. PARAMETERS FOR POSITIONING CONTROL
4−1
4. PARAMETERS FOR POSITIONING CONTROL
(1) System settings such as base unit selection, unit allocation, axis number setting
in programs, servo motor setting (model name), and servo amplifier setting
(model name) are made according to the actual system.
(No settings are required when the unit is used as a PC extension base.)
(2) Data settings and modifications can be made interactively for some peripheral
devices.
4−2
4. PARAMETERS FOR POSITIONING CONTROL
(1) The fixed parameters are set for each axis and their data is fixed in accordance
with the mechanical system or other factors.
4−3
4. PARAMETERS FOR POSITIONING CONTROL
4.2.1 Setting the number of pulses per revolution / travel value per revolution / unit magnification
This section explains how to set the number of pulses per revolution, the travel
value per revolution, and the unit magnification.
(1) Setting method 1
(a) Finding the smallest position resolution (∆1).
The smallest position resolution (∆1) is determined by the travel value per
revolution (∆S) and the number of encoder feedback pulses (Pf).
S
1=
Pf
[Example] Assuming that the travel value per revolution (∆S) is 10 [mm] and the
number of encoder feedback pulses (Pf) is 12000 [pulse/rev]:
10[mm]
1= =0.00083 0.0001<0.00083<0.001
12000[pulse/rev]
This means that the smallest command unit is 0.001 [mm] and the unit
magnification (AM) is 10.
Therefore, 0.001 [mm] units can be specified in commands.
(c) Finding the travel value per revolution (AL).
If the unit magnification (AM) is 1, the travel value per revolution is the value
of AL as it is. However, if the unit magnification (AM) is not 1, the travel
value per revolution is the product of AL and AM.
[Example] Assume that the travel value per revolution is 10[mm] and the unit
magnification is 10:
10.0000[mm]
AL= =1.0000[mm]
10
4−4
4. PARAMETERS FOR POSITIONING CONTROL
(e) The number of pulses per revolution, travel value per revolution, and unit
magnification for the example configuration shown here are calculated
below.
Gear ratio = Z1 : Z2=1.25
Number of feedback pulses=12000[pulse/rev]
Servo motor 1
10[mm]
25
Example: With the example configuration shown above, and under the following
conditions;
Gear ratio=Z1 : Z2=1 : 39
Ball screw pitch=25.4[mm]
25.4[mm]
AL= =0.65128205[mm]
29
=651.28205[ m]
4−5
4. PARAMETERS FOR POSITIONING CONTROL
These are the settings for the upper limit value and lower limit value in the travel
range of the mechanical system.
Use the values in the mechanical coordinate system to set the upper and lower
stroke limit values. The mechanical coordinate system is determined by a home
position return.
Fig. 4.1 Travel Range When Setting the Upper Stroke Limit Value and Lower Stroke Limit Value
Positioning control (PTP, CP) Executed (error code: 580) occurs and positioning is not executed.
• If the interpolation path goes out of the stroke limit range during circular
interpolation, an error (error code: 207, 208) occurs and the axis
decelerates to a stop.
• The axis stops if the present value goes out of the stroke limit range.
JOG operation Executed (Error code: 207) The axis can move in the direction of returning to
within the stroke.
• The axis stops if the present value goes out of the stroke limit range.
Manual pulse generator operation Executed (Error code: 207) The axis can move in the direction of returning to
within the stroke.
POINTS
(1) Besides setting the stroke limit upper limit value/lower limit value in the
fixed parameters, the stroke limit range can also be set by using the
external limit signals (FLS, RLS).
(2) When the external limit signal goes OFF, a deceleration stop is executed.
The time taken to decelerate to a stop can be set by setting the
"deceleration time" and "rapid stop deceleration time" in the parameter
block.
(3) The stroke limit range check for positioning control (PTP, CP) is made
after completion of a home position return. If a home position return is not
yet completed, an error (error code: 162) occurs and the check cannot be
made.
Always perform a home position return after power-on.
(4) Positioning cannot be started from outside the stroke limit range. Start
positioning control after returning the axis to within the stroke by JOG or
manual pulse generator operation.
4−6
4. PARAMETERS FOR POSITIONING CONTROL
V
Positioning
Command in-position set value
control start
ON
Command in-position
(M1603+20n) OFF
4−7
4. PARAMETERS FOR POSITIONING CONTROL
The rapid feedrate is the positioning speed used to perform positioning under G00
or to make a home position return under G28, and this data is needed to execute
G00 or G28.
When exercising interpolation control under G00, change the speed of each axis
on the basis of the axis whose time to reach the target position is the longer, and
find the composite speed.
The following is a rapid feedrate setting example for interpolation control under
G00.
[Example] When exercising interpolation control from the present position (X=0,
Y=0) to the target position (X=200, Y=100)
High feedrate setting X axis 20(mm/min)
Y axis 1(mm/min)
X
0 200.mm
(Present position) Rapid feedrate
20mm/min
After the above program is run, the target position 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 composite speed.
(Composite travel)
223.6067mm
1mm/min = 2.23mm/min
100mm
(Reference axis feedrate) (Reference axis travel) (Composite speed)
POINTS
(1) The rapid feedrate of each axis is clamped at the speed limit value of the
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 travels and feed rates used are values without
units. Care must be taken when their units differ.
(Example) 10000 for the travel of 1mm, 100000 for 1 degree, 100000 for
1 inch
100 for the feed rate of 1mm/min, 1000 for 1 degree/min,
1000 for 1 inch/min
4−8
4. PARAMETERS FOR POSITIONING CONTROL
(1) The servo parameters are parameters set for each axis: their settings are data
fixed by the specifications of the controlled motors and data required to execute
servo control.
CAUTION
After setting the servo parameters at a peripheral device, execute a "RELATIVE CHECK" and
execute positioning control in the "NO ERROR" status. If there is an error, check the relevant
points indicated in this manual and reset it.
4−9
4. PARAMETERS FOR POSITIONING CONTROL
The servo parameters to be set are indicated in Tables 4.2 through 4.4.
POINT
After changing any of the items marked "*" in the table above, turn the servo
power supply on after resetting the servo system CPU with the key switch or
turning the PC READY signal (M2000) ON.
4 − 10
4. PARAMETERS FOR POSITIONING CONTROL
4 − 11
4. PARAMETERS FOR POSITIONING CONTROL
4 − 12
4. PARAMETERS FOR POSITIONING CONTROL
4 − 13
4. 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 from a peripheral
device, but if a setting outside the "valid range" is set, the following servo
errors will occur when the power to the servo system CPU is turned ON,
when the CPU is reset, and at the leading edge of the PC ready signal
(M2000).
Servo Error Code Error Contents Processing
Initial parameter error
2613
(position control gain 1)
Initial parameter error
2614 Correct the setting for the
(speed control gain 1)
relevant parameter so that it is
Initial parameter error
2615 within the "valid range", turn
(position control gain 2)
M2000 from OFF to ON, or reset
Initial parameter error
2616 with the reset key.
(speed control gain 2)
Initial parameter error
2617
(speed integral compensation)
4 − 14
4. PARAMETERS FOR POSITIONING CONTROL
Time
Undershoot
POINTS
(1) If the position control gain 1 setting is too low, the number of droop
pulses will increase and a servo error (excessive error) will occur at high
speed.
(2) The position control gain 1 setting can be checked from a peripheral
device.
(For the method used to execute this check, refer to the operating
manual for the peripheral device used.)
4 − 15
4. PARAMETERS FOR POSITIONING CONTROL
POINTS
(1) When the setting for speed control gain 1 is increased, the overshoot
becomes greater and vibration (abnormal motor noise) occurs on
stopping.
(2) The speed control gain 1 setting can be checked from a peripheral
device.
(For the method used to execute this check, refer to the operating
manual for the peripheral device used.)
4 − 16
4. PARAMETERS FOR POSITIONING CONTROL
(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 presented in Table 4.6
below.
(1) The "in-position" refers to the quantity of droop pulses in the deviation counter.
(2) If an in-position value is set, the in-position signal (M1602 + 20n) will come ON
when the difference between the position command and position feedback from
the servomotor enters the set range.
Amount of droop
In-position signal ON
(M1602+20n)
OFF
4 − 17
4. PARAMETERS FOR POSITIONING CONTROL
(1) This parameter sets the ratio of moment of load inertia for the servomotor.
The ratio of moment of load inertia is calculated using the equation below:
(2) If automatic tuning is used, the result of automatic tuning is automatically set.
POINT
When performing automatic tuning with MB-J-B, set the zero speed in the
expansion parameters to at least 50rpm.
4 − 18
4. PARAMETERS FOR POSITIONING CONTROL
(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 greater.
(3) The figure below shows how the motor's response changes according to the
servo responsiveness setting.
Motor speed
Response setting
Command value
5 4 3 2 1
Time
Change in motor response in accordance with response setting
(at the time of position control)
(4) Change the servo responsiveness setting while the motor is stopped.
4 − 19
4. PARAMETERS FOR POSITIONING CONTROL
This parameter sets the notch frequency for the notch filter.
Set Value Notch Frequency (Hz)
0 Not used
1 1125
2 750
3 562
4 450
5 375
6 321
7 281
This parameter sets the time delay between actuation of the electromagnetic brake
and base disconnection.
(applies only when using MR-H-B/MR-J2-B.)
This parameter is set to output the operation status of the servo amplifier in real
time as analog data.
This analog output makes it possible to check the operation status.
Note that the number of monitored items that can be set depends on the servo
amplifier used, as indicated below:
When using an MR-H-B/MR-J2-B.......... 2 types
When using an MR-J-B........................... 1 type
Encoder type
0: Two-wire type
1: Four-wire type
POINT
(1) Optional function 1 (carrier frequency selection)
When low-noise is set, the continuous output capacity of the motor is
reduced.
4 − 20
4. PARAMETERS FOR POSITIONING CONTROL
(3) External emergency stop signal (applies only when using MR-J2-B)
The external emergency stop signal (EMG) can be made invalid.
0: External emergency stop signal is valid.
1: External emergency stop signal is invalid (automatically turned ON internally).
Since the emergency stop signal at the MR-J2-B cannot be used, do not set "0".
POINT
(1) 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, and the peak load display value
and the regenerative load ratio is always 0, which is not the case when an
actual motor is run.
4 − 21
4. PARAMETERS FOR POSITIONING CONTROL
Set the offset value for the monitored items set when setting monitor outputs 1 and
2.
4 − 22
4. PARAMETERS FOR POSITIONING CONTROL
Used to output from the servo amplifier in analog form the data status when an
alarm occurs.
(applies only when using MR-H-B/MR-J2-B)
(1) Sampling time selection
Set the intervals in which the data status data when an alarm occurs is
recorded in the servo amplifier.
This parameter sets the speed at which the motor speed is judged to be zero.
This parameter sets the range in which the alarm for excessive droop pulses is
output.
4 − 23
4. PARAMETERS FOR POSITIONING CONTROL
This parameter sets the amount of position droop on switching to PI-PID control
during position control. (applies only when using MR-H-B/MR-J2-B.)
The setting becomes effective when switching in accordance with the droop during
position control is made valid by the setting for PI-PID control switching made using
optional function 5.
This parameter is used to expand the torque control range up to the speed control
value during torque control. (applies only when using MR-H-B.)
If a large value is set, the speed limit value may be exceeded and the motor may
rotate.
This parameter sets the differential compensation value for the actual speed loop.
In PI (proportional integration) control, if the value for speed differential compensa-
tion is set at 1000, the range for normal P (proportional) control is effective; if it is
set to a value less than 1000, the range for P (proportional) control is expanded.
4 − 24
4. PARAMETERS FOR POSITIONING CONTROL
The home position return data are data used to make a home position return.
Set them on the peripheral device.
For details of the setting, refer to Section 7.6.
4 − 25
4. PARAMETERS FOR POSITIONING CONTROL
VZ t
Actual deceleration time: t = TB
VP
TB
Deceleration time: TB = 300ms
4 − 26
4. PARAMETERS FOR POSITIONING CONTROL
POINT
(1) During JOG operation, the axis cannot be started toward the outside of the
stroke limit range in the fixed parameter. However, when the axis is
outside the stroke limit range, JOG operation can be performed in the
rotation direction toward the stroke limit range.
Lower stroke limit Upper stroke limit
4 − 27
4. 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.
(4) The parameter block settings to be made are shown in Table 4.9.
4 − 28
4. PARAMETERS FOR POSITIONING CONTROL
POINTS
(1) Parameter blocks are designated in the home position return data, JOG
operation data, or sequence program.
(2) The speed limit value is the feed rate setting range of the feed rate (F) set
in the motion program.
4 − 29
4. PARAMETERS FOR POSITIONING CONTROL
POINT
(1) The data set in the parameter block are used for positioning control,
home position return and JOG operation.
(a) The parameter block No. used in positioning control is set by indirect
designation of the SVST instruction in the sequence program from the
peripheral device.
For indirect designation, specify the motion program No. (0 No.) and
parameter block No.
When the parameter block No. setting is 0 (no setting) or 17 or more,
control is exercised with the data of parameter block No. 1.
[Sequence program]
Start M2001
SVST J1 D100
(b) The parameter block No. used for home position return is set when
setting the "home position return data" with a peripheral device.
[Home position return data setting screen]
[HOME POSITION RETURN DATA]
X AXIS <mm> SETTING DATA SETTING RANGE
(c) The parameter block No. used for JOG operation is set when setting
the "JOG operation data" with a peripheral device.
[JOG operation data setting screen]
[JOG OPERATION DATA]
X AXIS <mm> SET DATA SETTING RANGE
1 2 3 4 5 6 7 8 9 0
4 − 30
4. PARAMETERS FOR POSITIONING CONTROL
4.6.1 Relationships among the speed limit value, acceleration time, deceleration time, and rapid stop
deceleration time
4 − 31
4. PARAMETERS FOR POSITIONING CONTROL
(b) G00 (without M code), G28 (high-speed home position return), G30, G53 or G00 including M code
during G101 execution
Speed limit value 1) Actual acceleration time
Speed Equal to the preset acceleration time
Rapid feedrate at the override of 100%.
2) Actual rapid stop deceleration time
Equal to the preset rapid stop deceleration time
at the override of 100%.
1) Actual 2) Actual rapid
acceleration stop deceleration Time 3) Actual deceleration time
time time
Setting rapid
Equal to the preset deceleration time
Setting acceleration time
stop deceleration
3) Actual
at the override of 100%.
time
deceleration time
Setting deceleration time
Fig. 4.2 Relationships among the Speed Limit Value, Acceleration Time,
Deceleration Time, and Rapid Stop Deceleration Time
4 − 32
4. PARAMETERS FOR POSITIONING CONTROL
The S curve ratio used when S pattern processing is used as the acceleration and
deceleration processing method can be set.
The setting range for the S curve ratio is 0 to 100 (%).
If a setting that is outside the applicable range is made, an error occurs on starting,
and control is executed with the S curve ratio set at 100%.
Errors are set in the servo program setting error area (D9190).
Setting an S curve ratio enables acceleration and deceleration processing to be
executed gently.
The S curve ratio is set by the parameter block. (Refer to section 4.6.)
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 and deceleration curve.
V A
(Example) B
A Positioning
B speed
B/2 B/2
B/A=1.0
t
When the S curve ratio is 100%
V
Positioning
speed
Sine curve B B/A=0.7
A
Note: Under G00 including M code, G01, G02, G03 or G32, the S curve ratio is ignored and operation is always performed at the ratio
of 0%.
4 − 33
4. PARAMETERS FOR POSITIONING CONTROL
In control with the center point designated, the locus of the arc calculated from the
start point address and center point address may not coincide with the set end
point address.
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 the setting range is exceeded, an error occurs and positioning does not start.
When such an error occurs, the relevant axis is set in the minor error code area.
Error
End address determined by calculation
Locus determined by spiral interpolation
4 − 34
4. PARAMETERS FOR POSITIONING CONTROL
(1) The work coordinate data are used to set the work coordinates and you can set
six different work coordinates (G54 to G59) per axis. (For details, refer to
Section 4.7.)
(2) For the work coordinate system, specify the position with the offset from the
mechanical coordinate system home position. The offset setting is the distance
from the mechanical coordinate system home position (0).
(4) The work coordinate data to be set are listed in Table 4.10.
(5) When a home position return is made on the basis of 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 the 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.
Home position return
completion point
Mechanical
- + Monitor data
coordinate
0 200.00 300.00 machine value
system
4 − 35
5. SEQUENCE PROGRAMS AND SFC PROGRAMS
Note that internal relays (M1400 to M2047) and data registers (D500 to D1023)
will not be latched even if a latch range setting is made for them. (The device
symbols for M1400 to M2047 are displayed as M, L, and S by the GPP device
in accordance with the M, L, and S settings in the parameters.)
5−1
5. SEQUENCE PROGRAMS AND SFC PROGRAMS
There are two motion program start request instructions: the DSFRP instruction
and the SVST instruction.
When executing positioning control, up to 3 axes can be controlled with the DSFRP
instruction and up to 4 axes can be controlled with the SVST instruction.
When the A273UHCPU (32 axis feature)/A173UHCPU(S1) is used, the DSFRP
instruction cannot be used as a servo program start request instruction. It may be
used only as a word data shift instruction.
5.2.1 Start request instruction for 1 to 3 axes (DSFRP): when using A172SHCPUN/A171SHCPUN
Usable Devices
Digit Designation
Number of Steps
Carry
Error Flag
Flag
Bit Devices Word (16 Bit) Devices Constants Pointers Level
Subset
Index
X Y M L S B F T C D W R A0 A1 Z V K H P I N M9012 M9010 M9011
(D) !
7 × ! !
n ! !
[Execution (D)
No. of axis to be D1 to D8 (A172SHCPUN)
DSFRP (D) n started D1 to D4 (A171SHCPUN)
condition]
Execution command Direct
1 to 256
designation
No. of servo program K30000 to
n Decimal
to be executed Indirect K30497
designation H7530 to
Hexadecimal
H7721
ON
Execution command OFF
DSFRP instruction
ON
Start accept flag OFF
Designated servo
program
5−2
5. SEQUENCE PROGRAMS AND SFC PROGRAMS
[Data Settings]
(1) Setting the axes to be started
The axes to be started are set in (D) in the way shown below.
Example
The axes to be started are designated as follows.
• Axis 1 .......................................D1
• Axis 1 and axis 2......................D12
• Axis 1, axis 2, and axis3 ..........D123
(b) In indirect setting, the motion program number, the parameter block No. and
the sequence program No. are set as a value in a data register.
The data registers that can be used are D0 to D497, and they are set as
follows.
1) K 3 0
5−3
5. SEQUENCE PROGRAMS AND SFC PROGRAMS
Example
Make the following setting when specifying the motion program number,
parameter block number and sequence program number to be started as the data
register (D50, D51, D52) data.
*1 *2
When designated with a K device K30050 Specifies D50, D51, D52.
*1: When the parameter block number setting (D51) is outside the range 1 to 16,
control is exercised with the parameter block No. 1.
*2: When the sequence number setting (D52) is outside the range 1 to 9999, a
start is made at the beginning of the motion program.
POINTS
(1) (1) In (D), specify all axes described in the motion program.
(2) In (D), "D" is used as the device symbol but the present values of the
data register numbers used in the sequence program are ignored.
[Error Details]
In the following cases, an operation error occurs and the DSFRP instruction is not
executed.,
• When the setting for (D) comprises 4 or more digits.
• When the axis number given in any digit of (D) is a number other than 1 to 8
(A172SHCPUN).
• When the axis number given in any digit of (D) is a number other than 1 to 4
(A171SHCPUN).
• When the same axis number is set twice in (D).
• When n is a value outside the range 1 to 256.
• When the settings for (D) or n are made by indirect setting with an index register
(Z, V).
POINT
• For indirect designation, do not specify the last data register (D499) and its
preceding register (D498).
5−4
5. SEQUENCE PROGRAMS AND SFC PROGRAMS
Usable Devices
Digit Designation
Number of Steps
Carry
Error Flag
Flag
Bit Devices Word (16 Bit) Devices Constants Pointers Level
Subset
Index
X Y M L S B F T C D W R A0 A1 Z V K H P I N M9012 M9010 M9011
(D) *1
13
n
[Execution J1 to J8 (A172SHCPUN)
condition] SVST (D) n J1 to J4 (A171SHCPUN)
J+No. of axis to be
(D) J1 to J32
Executiion command started
(A273UHCPU (32 axis feature)/
A173UHCPU (S1))
Direct
1 to 256
designation
Indirect
No. of servo program designation
n
to be executed (Indirect D0 to D497
designation W0 to W3FE
device uses
3 words.)
The following processing is executed at the leading edge (OFF ON) of the SVST
instruction.
• The start accept flag (M2001+n) corresponding to the axis designated in (D) is
turned ON (see Section 3.1.3 (2)).
• A start request is issued for the motion program designated by "n".
ON
Execution command OFF
SVST instruction
ON
Start accept flag OFF
5−5
5. SEQUENCE PROGRAMS AND SFC PROGRAMS
[Data Settings]
(1) Setting the axes to be started
The axes to be started are set in (D) in the way shown below.
Example
The axes to be started are designated as follows.
• Axis 1 ...................................................... J1
• Axis 1 and axis 2..................................... J1J2
• Axis 1, axis 2, and axis3 ......................... J1J2J3
• Axis 1, axis 2, axis3, and axis4 ............... J1J2J3J4
(b) In indirect setting, the motion program number, parameter block number
and sequence program number are set as word device values.
The word device values are set as follows.
Specified word device ......................................................Motion program No.
Word device next to specified one .................................Parameter block No.
Word device second next to specified one ................ Sequence program No.
POINT
(1) In (D), specify all axes described in the motion program.
1) The word devices that can be used are indicated in the table below.
Usable Devices
A273UHCPU (32 axis
Word Device A172SHCPUN/
feature)/
A171SHCPUN
A173UHCPU (S1)
D 0 to 497 1690 to 8199
W 0 to 3FD 0 to 1FFD
5−6
5. SEQUENCE PROGRAMS AND SFC PROGRAMS
Example
Make the following setting when specifying the motion program number,
parameter block number and sequence program number to be started as the data
register (D50, D51, D52) data.
When word device is used to specify SVST J1J2J3 D50
2) An index register (Z, V) can be used for index designation of the indirectly
set word device.
• For details on index registers (Z, V), see the ACPU Programming
Manual (Fundamentals) (IB-66249).
[Error Details]
In the following cases, an operation error occurs and the SVST instruction is not
executed.
• When the setting for (D) is for 9 or more axes (A172SHCPUN/A273UHCPU (32
axis feature)/A173UHCPU (S1)).
• When the setting for (D) is for 5 or more axes (A171SHCPUN).
• When the axis number given in any digit of (D) is a number other than J1 to J4
(A171SHCPUN).
• When the axis number given in any digit of (D) is a number other than J1 to J8
(A172SHCPUN).
• When the axis number given in any digit of (D) is a number other than J1 to J32
(A273UHCPU (32 axis feature)/A173UHCPU (S1)).
• When the same axis number is set twice in (D).
• When the setting for n is outside the applicable range.
[Program example]
M9039
0 M2000 PC READY flag turned ON
M9074
2 M2042 All axes servo start command turned ON
X0 M9074 M2009 M9076
4 PLS M0 When X0 comes ON, the start
M0 command flag (M1) for motion program
11 SET M1 No.50 comes ON.
M1 M9074 M2001 M2002 M2003 M2004 K
13 SVST J1J2J3J4 50 Execution request for motion program No.50
5−7
5. SEQUENCE PROGRAMS AND SFC PROGRAMS
These instructions are used to make a home position return of the axis at a stop.
Usable Devices
Digit Designation
Number of Steps
Carry
Error Flag
Flag
Bit Devices Word (16 Bit) Devices Constants Pointers Level
Subset
Index
X Y M L S B F T C D W R A0 A1 Z V K H P I N M9012 M9010 M9011
(D)
7
n
(1) The following processing is performed on the leading edge (OFF to ON) of the
DSFLP instruction execution command.
1) The start acceptance flag (M2001 to M2008/M2001 to M2004) corresponding
to the axis specified in (D) is turned ON.
2) The axis specified in (D) is returned to the home position in accordance with
the home position return data specified in the parameters.
3) The start acceptance is turned OFF on completion of the home position
return.
[Operation Timing]
ON
Execution command OFF
DSFLP instruction
Home position return
Start accept flag completion
[Data Settings]
(1) Setting of the axis which will be returned to home position
In (D), set the axis which will be returned to the home position as follows.
Example
The axes to be started are designated as follows.
• Axis 1 ...................................................... D1
5−8
5. SEQUENCE PROGRAMS AND SFC PROGRAMS
POINT
For the DSFLP instruction, indirect setting cannot be made in (D) and n using
the index register.
DSFLP DOZ K2
If indirect setting is made using the index register, an operation error occurs
and the DSFLP instruction is not executed.
[Error Details]
(1) In the following cases, an operation error occurs and the DSFLP instruction is
not executed.
• Setting in (D) is other than 1 to 8/1 to 4.
• Setting in n is other than 1 or 2.
• Setting in (D) or n has been made by indirect setting using the index register
(Z, V).
(2) In the following case, a minor error (error at control change) occurs and a home
position return is not made.
At this time, the error detection flag (M1607+20n) is turned ON and the error
code is stored into the minor error code area of the corresponding axis.
• When the axis specified in (D) for home position return is operating
[Program Example]
(1) The following program is designed to make a home position return of axis 2.
(a) Conditions
1) Home position return command.......... Leading edge (OFF to ON) of X0
2) Home position return execution flag.... M1
3) Axis 2 start acceptance (axis 2 stopping/operating confirmation) flag
............................................................ M2002 (axis 2 start acceptance
flag)
(b) Program example
M9039
0 M2000 Turns ON PC ready.
M9074
2 M2042 Turns ON all-axis servo start command.
POINT
When making a home position return, provide M9074 and in-position signal as
interlock conditions.
5−9
5. SEQUENCE PROGRAMS AND SFC PROGRAMS
Usable Devices
Digit Designation
Number of Steps
Carry
Error Flag
Flag
Bit Devices Word (16 Bit) Devices Constants Pointers Level
Subset
Index
X Y M L S B F T C D W R A0 A1 Z V K H P I N M9012 M9010 M9011
(D)
7
n
n Dummy
(1) The following processing is performed on the leading edge (OFF to ON) of the
CHGA instruction execution command.
1) The start acceptance flag (M2001 to M2008/M2001 to M2004) corresponding
to the axis specified in (D) is turned ON.
2) The axis specified in (D) is returned to the home position in accordance with
the home position return data specified in the parameters.
3) The start acceptance is turned OFF on completion of the home position
return.
[Operation Timing]
ON
Execution command OFF
CHGA instruction
Home position return
Start accept flag completion
[Data Settings]
(1) Setting of the axis which will be returned to home position
In (D), set the axis which will be returned to the home position as follows.
Example
The axes to be started are designated as follows.
• Axis 1 ...................................................... J1
5 − 10
5. SEQUENCE PROGRAMS AND SFC PROGRAMS
Dummy
[Error Details]
(1) In the following case, an operation error occurs and the CHGA instruction is not
executed.
• Setting in (D) is other than J1 to J8/J1 to J4.
(2) In the following case, a minor error (error at control change) occurs and a home
position return is not made.
At this time, the error detection flag (M1607+20n) is turned ON and the error
code is stored into the minor error code area of the corresponding axis.
• When the axis specified in (D) for home position return is operating
[Program Example]
(1) The following program is designed to make a home position return of axis 2.
(a) Conditions
1) Home position return command.......... Leading edge (OFF to ON) of X0
2) Home position return execution flag.... M1
3) Axis 2 start acceptance (axis 2 stopping/operating confirmation) flag
...................................................... M2002 (axis 2 start acceptance flag)
(b) Program example
M9039
0 M2000 Turns ON PC ready.
M9074
2 M2042 Turns ON all-axis servo start command.
(2) The following program is designed to change the positioning speed of axis 2.
(a) Condition
1) Speed change command .................... Leading edge (OFF to ON) of X000
(b) Program example
CIRCUIT END
POINT
When override is valid, the speed change using DSFLP/CHGV is ignored for
the axes operating automatically.
5 − 11
5. SEQUENCE PROGRAMS AND SFC PROGRAMS
This instruction is used to change the speed of an axis during positioning or JOG
operation.
Usable Devices
Digit Designation
Number of Steps
Carry
Error Flag
Flag
Bit Devices Word (16 Bit) Devices Constants Pointers Level
Subset
Index
X Y M L S B F T C D W R A0 A1 Z V K H P I N M9012 M9010 M9011
(D)
7
n
[Execution (D)
No. of speed change D1 to D8 (A172SHCPUN)
condition] DSFLP (D) n axis D1 to D4 (A171SHCPUN)
Execution command Speed change
n K1 or H1
designation
(1) The following processing is executed at the leading edge (OFF ON) of the
DSFLP instruction:
(a) Present value change
1) The speed change in progress (M2021 to M2028/M2021 to M2024)
corresponding to the axis designated in (D) is turned ON.
2) A command to change the currently effective positioning speed to the
speed stored in the speed change register for the axis designated in (D)
is issued.
3) The speed change in progress flag is turned OFF.
(2) The numbers of registers used for present value change and speed change
operations are indicated in the table below. (For details, see Section 3.2.2.)
<A172SHCPUN> <A171SHCPUN>
Speed Change Registers Speed Change Registers
Axis No. Axis No.
Upper Lower Upper Lower
Axis 1 D963 D962 Axis 1 D963 D962
Axis 2 D969 D968 Axis 2 D969 D968
Axis 3 D975 D974 Axis 3 D975 D974
Axis 4 D981 D980 Axis 4 D981 D980
Axis 5 D987 D986
Axis 6 D993 D992
Axis 7 D999 D998
Axis 8 D1005 D1004
5 − 12
5. SEQUENCE PROGRAMS AND SFC PROGRAMS
[Operation Timing]
ON
Execution command OFF
DSFLP instruction
Speed change
Speed chage flag completion
[Data Settings]
(1) Setting the axis for which the speed change is to be executed
The axis for which the speed change set in (D) is executed is set as follows.
Example
The started axis is designated as follows.
• Axis 1 ......................................................................D1
• Interpolation control with axis 1 and axis 2 .............D1 or D2
POINT
When using a DSFLP instruction, it is not possible to indirectly designate (D)
or n using index registers (Z, V).
DSFLP DOZ K1
5 − 13
5. SEQUENCE PROGRAMS AND SFC PROGRAMS
[Error Details]
(1) In the following cases an operation error occurs and the DSFLP instruction is
not executed.
• When the setting for (D) is other than 1 to 8/1 to 4.
• When the setting for n is a value other than 1 and 2.
• When the setting for (D) or n has been indirectly designated using an index
register (Z, V).
(2) In the following cases, a minor error (error on control change) occurs and the
speed change is not executed.
When this happens, the error detection flag (M1607+20n) is turned ON and the
error code is stored in the minor error code area for the relevant axis.
• When the axis designated in (D) is executing a home position return when the
speed change is made.
• When the axis designated in (D) is decelerating when the speed change is
made.
• When the absolute value of speed designated in n exceeds the speed limit
value when the speed change is made.
[Program Example]
The program shown below changes the positioning speed of axis 2 to the value set
with an 8-digit digital switch.
(1) Conditions
1) Numbers of inputs for the digital switch......... X010 to X02F
2) Speed Change command.............................. Leading edge (OFF→ON) of
X000
(2) Program example
Speed change in progress flag
X000 M2022 P K8 The value set with the digital switch is stored
0 DBIN X0010 D968 in the speed change register for axis 2
(D968, D969).
P K
DSFL D2 1 Axis 2 speed change execution request
CIRCUIT END
POINT
• Points to note when a speed change is performed
• If a speed change instruction (CHGV) is executed in the period between
execution of the servo program start request instruction (SVST/DSFRP)
and the point where the "positioning start completion signal" comes ON,
the speed change may be invalid. To perform speed changes in
approximately the same timing as a start, be sure to enter the positioning
start completion signal ON status as an interlock for execution of the
speed change instruction.
Example)
Execution Speed change in
command progress flag
CHGV J2 K10
Positioning start completion signal
Start reception
Positioning start
completion signal
Positioning
completion
signal Speed change designated during this
period may be invalid.
5 − 14
5. SEQUENCE PROGRAMS AND SFC PROGRAMS
Usable Devices
Digit Designation
Number of Steps
Carry
Error Flag
Flag
Bit Devices Word (16 Bit) Devices Constants Pointers Level
Subset
Index
X Y M L S B F T C D W R A0 A1 Z V K H P I N M9012 M9010 M9011
(D)
7
n
[Execution J1 to J8 (A172SHCPUN)
CHGV (D) n J + No. of speed J1 to J4 (A171SHCPUN)
condition] (D)
change axis J1 to J32 (A273UHCPU (32 axis
Executiion command
feature)/A173UHCPU (S1))
mm : −600000000 to
600000000
×10−2mm/min
inch : −600000000 to
Direct
Setting of speed 600000000
designation
to be changed ×10−3inch/min
n
(Indirect designation deg : −2147483648 to
device uses 2 words) 2147483647
−3
×10 deg/min
D0 to D498
Indirect
W0 to W3FE
designation
R0 to R8190
(1) The following processing is executed at the leading edge (OFF→ON) of the
CHGV intruction:
1) The speed change flag (M2021 to M2028/M2021 to M2024/M2061 to
M2092) corresponding to the axis designated in (D) is turned ON.
2) The speed of the axis designated in (D) is changed to the present value
designated in n.
3) The speed change in progress flag is turned OFF.
[Operation Timing]
ON
Execution command OFF
CHGV instruction
5 − 15
5. SEQUENCE PROGRAMS AND SFC PROGRAMS
[Data Settings]
(1) Setting the axis for which a speed change is to be executed
The axis with respect to which the speed change set in (D) is to be executed is
set as follows.
Example
Axes to be started are designated as shown below.
• Axis 1 .................. J1
(b) The word devices that can be used are indicated in the table below.
1) The word devices that can be used are indicated in the table below.
Usable Devices
A273UHCPU (32 axis
Word Device A172SHCPUN/
feature)/
A171SHCPUN
A173UHCPU (S1)
D 0 to 498 1690 to 8190
W 0 to 3FE 0 to 1FFF
R 0 to 8190 0 to 8190
Example
Make the following setting to designate the present value to be changed to
with the data stored in data register D50:
Designated with a word device CHGV J11 D50
2) An index register (Z, V) can be used for index designation of the indirectly
set word device.
5 − 16
5. SEQUENCE PROGRAMS AND SFC PROGRAMS
[Error Details]
(1) In the following cases an operation error occurs and the CHGV instruction is not
executed.
• When the setting for (D) is other than J1 to J8/J1 to J4.
(A172SHCPUN/A171SHCPUN)
• When the setting for (D) is other than J1 to J32.
(A273UHCPU (32 axis feature)/A173UHCPU (S1))
(2) In the following cases, a minor error (error on control change) occurs and the
speed change is not executed.
When this happens, the error detection flag (M1607+20n/M2407+20n) is turned
ON and the error code is stored in the minor error code area for the relevant
axis.
• When the axis designated in (D) is executing a home position return when the
speed change is made.
• When the axis designated in (D) is decelerating when the speed change is
made.
• When the speed designated by n is outside the range of 0 to the speed limit
value when the speed change is made.
[Program Example]
The program shown below changes the present value for axis 2.
(1) Conditions
1) Speed change command............................... Leading edge (OFF→ON) of
X000
(2) Program example
Speed change in progress flag
X000 M2022 M2420 K Axis 2 present value change
0 CHGV J2 10
execution request
Positioning start completion signal
CIRCUIT END
POINT
• Points to note when a speed change is performed
• If a speed change instruction (DSFLP) is executed in the period between
execution of the servo program start request instruction (SVST/DSFRP)
and the point where the "positioning start completion signal" comes ON,
the speed change may be invalid. To perform speed changes in
approximately the same timing as a start, be sure to enter the positioning
start completion signal ON status as an interlock for execution of the
speed change instruction.
Example)
Execution Speed change in
command progress flag
DSFLP D2 K1
Positioning start completion signal
Start reception
Positioning start
completion signal
Positioning
completion
signal Speed change designated during
this period may be invalid.
5 − 17
5. SEQUENCE PROGRAMS AND SFC PROGRAMS
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 The axis is reversed in travel direction, returns to the
G28 (high-speed home position return) positioning start point at the specified speed, and
G30 stops (stands by) there.
G53
G02
G03
G01 The axis is reversed in travel direction, returns to the
G32 preceding point at the specified speed, and stops
(waits) there.
G25 Speed change cannot be Minor error 310 occurs.
G28 (dog, count type home position return) made. Minor error 301 occurs.
JOG operation Speed change to Minor error 305 occurs.
negative speed is not
made.
Speed is controlled at
speed limit value.
(Reference) Minor error 301: Speed change was made during home position return.
Minor error 305: Preset speed is outside the range of 0 to speed limit value.
Minor error 310: Speed change was made during high-speed oscillation.
[Control Details]
(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, minor error 305 occurs and the speed is
controlled at the speed limit value.
5 − 18
5. SEQUENCE PROGRAMS AND SFC PROGRAMS
Composite speed
(2) While the axis is standing by at P1, the start acceptance (M2001+n) remains
ON. To terminate positioning at this point, turn ON the stop command.
(3) A speed change to negative speed is ignored if it is made while the axis is
waiting for FIN during a stop using the M code FIN waiting function under
constant-speed control.
(4) In the above example, the axis returns to P2 if the axis passes through P2
during a speed change made to negative speed immediately before P2.
Y axis P2 P3
Speed change
was made here.
5 − 19
5. SEQUENCE PROGRAMS AND SFC PROGRAMS
Usable Devices
Digit Designation
Number of Steps
Carry
Error Flag
Flag
Bit Devices Word (16 Bit) Devices Constants Pointers Level
Subset
Index
X Y M L S B F T C D W R A0 A1 Z V K H P I N M9012 M9010 M9011
(D)
7
n
[Execution J1 to J8 (A172SHCPUN)
J + axis No. which will
CHGT (D) n J1 to J4 (A171SHCPUN)
condition] (D) be changed in torque
J1 to J32 (A273UHCPU (32 axis
Execution command limit value
feature)/A173UHCPU (S1))
New torque limit value
(%)
n 1 to 500 (%)
(Indirect designation
device uses 1 word)
This instruction changes the torque limit value on the leading edge (OFF to ON) of
the CHGT instruction execution command in the sequence program.
[Operation Timing]
Any axis that has completed starting may be changed in torque limit value in any of
the operating, stopping, servo ON and servo OFF statuses.
ON
Execution command OFF
CHGT instruction
[Operation Details]
If any torque limit value has been set in the motion program, the torque limit value
cannot be changed to the value higher than the new torque limit value specified in
the CHGT instruction. (The torque limit value can changed to the value lower than
the new torque limit value specified in the CHGT instruction.)
(1) If the torque limit value is changed by the CHGT instruction before a motion
program start or JOG operation start, the torque limit value is clamped at the
torque limit value specified in the CHGT instruction when the torque limit value
set in the motion program to be started is higher than that limit value.
(2) During interpolation operation, the above clamp processing of the torque limit
value is performed only for the axis whose torque limit value has been changed
by the CHGT instruction.
(3) When the torque limit value is set at a mid point under constant-speed control,
the torque limit value cannot be changed to a value higher than the torque limit
value specified in the CHGT instruction.
(4) While the motion program is running the CHGT instruction also allows the
torque limit value to be changed to a value higher than the torque limit value set
in that motion program.
5 − 20
5. SEQUENCE PROGRAMS AND SFC PROGRAMS
[Error Details]
(1) The setting range is 1 to 500(%).
If the setting is outside this range, the minor error 311 occurs and a torque limit
value change is not made.
(2) When the CHGT instruction is executed for any axis that has not yet been
started, the minor error 312 occurs and a torque limit value change is
5 − 21
5. SEQUENCE PROGRAMS AND SFC PROGRAMS
This section explains how to start motion programs using SFC programs.
SFC programs are started and stopped from the main sequence program. The
methods for starting and stopping SFC programs are described below.
M0
SET M9101
(b) There are two types of SFC program start, as indicated below, and the one
that is effective is determined by the ON/OFF status of special relay M9102
(SFC program start status selection).
1) SFC program initial start
By turning special relay M9101 ON while special relay M9102 is OFF, the
SFC program is started from the initial step of block 0.
2) SFC program resumptive start
By turning special relay M9101 ON while special relay M9102 is ON, the
SFC program is started from the block and step that was being executed
immediately before operation was stopped.
(c) On creation of an SFC program, if no main sequence program has been
created (applies only when step 0 is an END instruction), the circuit shown
below is automatically created in the main sequence program area by the
peripheral device.
M9036
SET M9101
M1
RST M9101
(b) When an SFC program is stopped, all the operation outputs in the step
being executed are turned OFF.
POINT
Write during run in the SFC mode is not possible with respect to the motion
controller.
5 − 22
5. SEQUENCE PROGRAMS AND SFC PROGRAMS
A motion program can be started in one of two ways: by using the program start-up
symbol intended for this purpose ([SV]), or by inputting a motion program start
request instruction in the internal circuit of a normal step.( )
M0
SET M9101
Initial step
Stop command
Repetition
Step 2
End step
M2001M2002 M2003M2004
Tran
Interlock
K
SVST J1J2J3J4 10
Switching condition 2
M2001 M2002M2003M2004
Tran
Interlock
5 − 23
5. SEQUENCE PROGRAMS AND SFC PROGRAMS
POINT
(1) When an [SV] step is created, the motion program start request ladder
block ( SVST *** ) is mandatorily inserted in the sequence
program.
(2) When a DSFRP instruction is used, input it directly into the sequence
program at a normal step ( ).
(3) If an SVST instruction is edited and converted, a start accept bit (M2001
to M2008/M2001 to M2004) is automatically inserted into the switching
conditions before and after the relevant SFC step to act as an interlock.
However, if the order of steps has been changed by addition or insertion,
this interlock may not be automatically added/deleted in the switching
conditions. Therefore, if a step has been added or inserted, always
display the switching conditions using ZOOM display and check the
interlock.
(4) Only the sequence ( SVST *** ) can be set at an [SV] step.
If any additional instructions are to be set, either set them in a normal
step ( ) or set another sequence instruction section executed in parallel
as a normal step ( ).
5 − 24
5. SEQUENCE PROGRAMS AND SFC PROGRAMS
(2) When a motion program start instruction is input inside a normal step ( )
Initial step
Stop command
Repetition
PLS M1 Switching condition 1
M1 Step 1
SET M9101 (creation of motion
program start instruction)
M9101 Switching condition 2
OFF
Step 2
End step
M2001M2002M2003M2004
Tran
Interlock
K
SVST J1J2J3J4 10
Switching condition 2
M2001M2002M2003M2004
Tran
Interlock
5 − 25
5. SEQUENCE PROGRAMS AND SFC PROGRAMS
POINTS
(1) When a DSFRP or DSFLP instruction is used, input it directly into the
internal circuit of a normal step ( ).
(2) If an SVST/DSFRP instruction is edited and converted, a start accept bit
(M2001+n) is automatically inserted into the switching conditions before
and after the relevant SFC step to act as an interlock.
(3) If a DSFLP instruction is edited and converted, a speed change in progress
flag (M2021 to M2028/M2021 to M2024) is automatically inserted into the
switching conditions before and after the relevant SFC step to act as an
interlock.
(4) Set commands such as speed change commands and stop commands,
which are executed in an arbitrary timing, in the main sequence program.
5 − 26
6. MOTION PROGRAMS FOR POSITIONING CONTROL
X 1) 2) 3) ········ 9)
Word
* The alphabet at the beginning of a word is called an address and defines the
meaning of the subsequent numeric information.
6−1
6. 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 makeup>
1) 2) 3) 4) 5) 6)
N100 G01 X250. Y-123.4 F1500. ;
Block
3) X250. .......... Coordinate position data* : Indicates the command for the
coordinate position of the X axis.
This word commands 250mm of
the X axis.
4) Y-123.4 ....... Coordinate position data* : Indicates the command for the
coordinate position of the Y axis.
This word commands -123.4mm
of the Y axis.
6−2
6. MOTION PROGRAMS FOR POSITIONING CONTROL
···
00020 N80 M21;
00021 M02;
00022 % Indicates a program end.
3) Line number
POINT
The motion controller (SV43) can store up to 256 motion programs in
memory.
These motion programs are managed using motion program numbers.
6−3
6. MOTION PROGRAMS FOR POSITIONING CONTROL
(3) In one block, one G code can be selected from each modal group. Up to two G
codes can be commanded.
For G code combinations, refer to Table 6.1.
IMPORTANT
If motion programs are specified for the same axis, they cannot be run
concurrently.
If they are run, we cannot guarantee their operations.
6−4
6. MOTION PROGRAMS FOR POSITIONING CONTROL
(b) When G90 is specified as the first G code, G00, G01, G02 or G03 may be
specified as the second code.
G90 G61; and G90 G64; result in a format error.
(4) With the exception of M00, M01, M02, M30, M98, M99 and M100, the M code
may be specified with another command in the same block. However, if it is
specified together with the move command (G00 to G03), operation is
performed as follows.
• The M function is executed simultaneously with the move command (G00 to G03,
G32).
(5) With the exception of M00, M01, M02, M30, M98, M99 and M100, multiple M
codes may be specified in one block but only the last one is valid.
(6) When there is the miscellaneous function (M) at any point in continuous G01
blocks
If the M code is set at any point in continuous G01 blocks, operation is
performed in either of the following two ways.
O100;
1) G90 G01 X100. F1000.; CP positioning of X
2) X200. M10; CP positioning of X, M code
3) X300.; CP positioning of X
(a)
M code 10
M code outputting
FIN signal
Command in-position
When the FIN signal is not turned from OFF to ON to OFF during
positioning in block 2), the axis decelerates to a stop once in the block of
the M code.
(b)
100. 200.
M code 10
M code outputting
FIN signal
Command in-position
When the FIN signal is turned from OFF to ON to OFF during positioning in
block 2), the axis performs CP operation without decelerating to a stop in
the block of the M code.
6−5
6. MOTION PROGRAMS FOR POSITIONING CONTROL
(7) With the exception of M00, M01, M02, M30, M98, M99 and M100, the M code
is output to the data registers (D813, D833, ...) and axis input signals (M code
outputting signals: M1619+20n) of all axes specified in the SVST instruction.
However, the data register data and axis input signals are not output to the axis
in execution of high-speed oscillation. Also, the FIN signal (M1819+20n)
entered into 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 )
01;
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;
G25
X axis
To next block
Y axis G00 Y10. M77
X axis
100. 200.
Y axis
100. 200.
• Both the acceleration and deceleration times are equal to the acceleration
time of the parameter block.
• When the M code is commanded in G00, the acceleration and deceleration
times are also equal to the acceleration time of the 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 the parameter block as in G01.
6−6
6. MOTION PROGRAMS FOR POSITIONING CONTROL
(a) The G code instructions other than G26 (high-speed oscillation stop) and
G04 (dwell) should not be executed.
(b) The M codes other than M00, M01, M02, M30, M98 and M99 should not be
executed.
6−7
6. MOTION PROGRAMS FOR POSITIONING CONTROL
6−8
6. MOTION PROGRAMS FOR POSITIONING CONTROL
6−9
6. MOTION PROGRAMS FOR POSITIONING CONTROL
6 − 10
6. MOTION PROGRAMS FOR POSITIONING CONTROL
6 − 11
6. MOTION PROGRAMS FOR POSITIONING CONTROL
This section explains how to set the positioning data (addresses, speeds,
operational expressions) used in motion programs.
There are the following two ways to set the positioning data.
• Direct designation (entering numerical values for data setting)
...........................................................................................Refer to Section 6.6.1.
• Indirect designation (using variable: #**** or device: #W*** for data setting)
........................................................................................... Refer to Section 6.6.2.
"Direct designation" and "indirect designation" can be used together in one motion
program.
Direct designation is a way to set each positioning data with a numerical value,
and these data are fixed data. Data setting and correction may be made on the
peripheral device only.
<Example of setting positioning data by direct designation>
O200;
N99 G90 G00 X100. Y110.; Values specified as positioning data
G01 X200. Y202. F204.;
G91 G00 Z300.;
M02;
%
6 − 12
6. MOTION PROGRAMS FOR POSITIONING CONTROL
The 16-bit integer type is converted to the 64-bit double precision real number.
15 0
The most significant 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
The most significant bit is handled
as a sign bit.
The 32-bit integer type is converted to the 64-bit double precision real number.
31 0
The most significant bit is handled
as a sign bit.
32 bit to 64 bit
63 51 0
Bits 0 to 51: Significant digit part
Bits 52 to 62: Exponent part
Bit 63: Sign part
The 64-bit double precision real number is converted to the 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
The most significant bit is handled
as a sign bit.
The 64-bit double precision real number is converted to the 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 Fractional portion is dropped.
part Any value other than -2147483648 to 2147483647
Bit 63: Sign part results in an error. (Error 531)
31 0
The most significant bit is handled
as a sign bit.
6 − 13
6. MOTION PROGRAMS FOR POSITIONING CONTROL
6 − 14
6. MOTION PROGRAMS FOR POSITIONING CONTROL
(c) How to handle variable as 64-bit double precision real number (#n:F)
By handling a variable as a 64-bit double precision real number, arithmetic
operation spanning multiple blocks can be performed without reduction in
precision.
Describe an upper-case ":F" after a #n variable.
#nF: Four variables of #n to #n+3 are used and handled as a 64-bit double
precision real number.
63 31 Bit 0
#n+3 #n+2 #n+1 #n
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 into 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 real number, [#33, #32, #31, #30], is expanded in sign to
a 32-bit integer, [#41, #40]
<Restrictions>
Functions INT and FLT cannot use 64-bit double precision real
numbers.
6 − 15
6. MOTION PROGRAMS FOR POSITIONING CONTROL
[Example]
<For command address 1>
G91;
#10: L= 1.;
G0 X#10: L ← The travel of the X axis is any of the following values.
mm inch degree
1mm 0.1 inch 0.1 degree
6 − 16
6. MOTION PROGRAMS FOR POSITIONING CONTROL
POINT
• For two-word designation, always specify an even-numbered device.
Also, when setting data to that device in a sequence program, always use
the "DMOV(P)" instruction.
(*1) Even outside the SET/RST enabled range, an error will not occur if the bit device is within the reference range.
6 − 17
6. MOTION PROGRAMS FOR POSITIONING CONTROL
POINTS
(1) The motion program No. (0) cannot be set indirectly.
(2) Provide interlocks using the start acceptance signals (M2001 to M2008)
to ensure that the data of the devices specified for indirect setting from
being changed until the specified axes accept a start.
If the data is changed before the acceptance of a start, positioning control
may not be exercised with proper values.
(3) Set a variable latch on the peripheral device.
(4) Variable designated #**** is the same in value as device-designated
#D**** which uses data registers.
Example) #0=1;
#D0=2; ← The value of #0 is also 2.
(5) In variable designation or device designation using word devices, the
PCPU imports the data of the specified devices (2-word or 4-word) when
it runs a motion program.
When performing positioning control, therefore, a motion program start
request must be made after data have been set to the indirect setting
devices.
6 − 18
6. MOTION PROGRAMS FOR POSITIONING CONTROL
6 − 19
6. MOTION PROGRAMS FOR POSITIONING CONTROL
6 − 20
6. MOTION PROGRAMS FOR POSITIONING CONTROL
• For MOD
n: Indicates variable number or device number.
6 − 21
6. MOTION PROGRAMS FOR POSITIONING CONTROL
(2) Logical operations (AND, OR, XOR, NOT), shift operators (<<, >>)
• For AND, OR, XOR, <<, >>
The following table indicates the data type combinations and conversion
methods for logical operations (AND, OR, XOR) and shift operators (<<, >>).
Operation result = [data 1] operator [data 2]
6 − 22
6. 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]
6 − 23
6. MOTION PROGRAMS FOR POSITIONING CONTROL
6 − 24
6. MOTION PROGRAMS FOR POSITIONING CONTROL
6 − 25
6. MOTION PROGRAMS FOR POSITIONING CONTROL
• For ABS
n: Indicates variable number or device number.
6 − 26
6. MOTION PROGRAMS FOR POSITIONING CONTROL
6 − 27
6. MOTION PROGRAMS FOR POSITIONING CONTROL
Table 6.5 lists the setting ranges of the instruction symbols used in motion
programs.
6 − 28
6. MOTION PROGRAMS FOR POSITIONING CONTROL
REMARK
(1) About the command unit
A decimal point can be entered in the motion program input information
which define the command address, 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.0001mm, 0.00001 inch or 0.00001 degree increments, for example.
<For command address> <For feedrate (F)>
. .
[Example] 10. ······ 10mm [Example] 10. ······ 10mm/min
10 ······· 0.001mm (unit: mm) 10 ······· 0.1mm/min (unit: mm)
6 − 29
6. MOTION PROGRAMS FOR POSITIONING CONTROL
For one axis, positioning control is exercised in the control unit specified in the
fixed parameter.
(The control unit specified in the parameter block is ignored.)
(1) A check is made on the interpolation control unit specified in the parameter
block and the control unit set in the fixed parameter.
For interpolation control, if the interpolation control unit in the parameter block
differs from the control unit in the fixed parameter of each axis, the result will
be as described below.
Interpolation Control Unit in Parameter Block
Starting Method
mm inch degree
Condition for There are axes There are axes There are axes Control starts in the interpolation control unit of
normal start whose control unit whose control unit whose control unit the parameter block.
set in fixed set in fixed set in fixed
parameter is mm. parameter is inch. parameter is
degree.
Condition for unit When the control unit of any axis in the fixed parameter does • If the control units of the axes to be
mismatch error not match the interpolation control unit of the parameter block. interpolation-controlled are the same, control
(error code 40) starts in the preset control unit.
• If the control units of the axes to be
interpolation-controlled are different, control
starts in the unit of the highest priority as
indicated below.
Priority degree>inch>mm
(2) In interpolation control, the combinations of axis control units are classified as
indicated below.
mm inch degree REMARKS
mm 1) 2) 2)
1): Same unit
Inch 2) 1) 2)
2): Unit mismatch
degree 2) 2) 1)
6 − 30
6. MOTION PROGRAMS FOR POSITIONING CONTROL
POINT
(1) For circular interpolation control
When degree is used as the control unit of one axis, degree should also
be used with the other axis.
6 − 31
6. MOTION PROGRAMS FOR POSITIONING CONTROL
When the control unit is degree, the following items are different from those of the
other control units.
0° 0° 0°
90.00000°
Section B
POINT
You cannot make circular interpolation which includes the axis whose stroke
limit has been set to be invalid.
6 − 32
6. MOTION PROGRAMS FOR POSITIONING CONTROL
(2) When the axis is moved from the present value of 0° to 315.00000°,
counterclockwise positioning is performed.
From 315.00000° to 0° From 0° to 315.00000°
0° 0°
315.00000° 315.00000°
POINTS
(1) The positioning direction of the absolute value command is determined
by the way of setting the stroke limit range, and positioning may not be
made in the direction nearer to the specified address.
Example
When the axis is moved from the present value of 0° to 315.00000°,
clockwise positioning is performed if the lower stroke limit value is 0°
and the upper stroke limit value is 345.00000°.
0°
345.00000°
315.00000°
POINT
Under the incremental value command, positioning of more than 360° can be
done.
6 − 33
6. MOTION PROGRAMS FOR POSITIONING CONTROL
X
Work coordinate system 2
X
Reference point 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
6 − 34
6. MOTION PROGRAMS FOR POSITIONING CONTROL
6.8 G Codes
1)
2)
5)
6)
3)
4)
6 − 35
6. MOTION PROGRAMS FOR POSITIONING CONTROL
Amplitude (STRK)
Radius command
Cancel command
command (I • J)
Skip command
Starting angle
Center point
M code (*2)
Remarks
(START)
Feed (F)
G code
(SKIP)
(CAN)
(R)
PB
O
H
P
L
Only G codes of G04, G43, G44 and
G00
G49 are available.*
Only G codes of G04, G43, G44 and
G01
G49 are available.*
Only G code of G04 is available.
Center point command and axis
G02
command may be specified for up to 2
axes.
Only G code of G04 is available.
G02 Radius command and axis command
may be specified for up to 2 axes.
Only G code of G04 is available.
Center point command and axis
G03
command may be specified for up to 2
axes.
Only G code of G04 is available.
G03 Radius command and axis command
may be specified for up to 2 axes.
G04 Dwell
Only G codes of G01, G02 and G03
G09
are available.*
G23
P: Start program number
G24
PB: Parameter block number
Specify only axis name for axis
G25
command and frequency for F.
Specify only axis name for axis
G26
command.
G28 Only G code of G53 is available.
G30 Only G code of G53 is available.
P must not be specified for axis
G32
command and M code simultaneously.
G43
G44
G49 Only G code of G28 is available.
G53 Only G code of G28 is available.
Only G codes of G00, G01, G02, G03
G54
and G92 are available.*
Only G codes of G00, G01, G02, G03
G55
and G92 are available.*
Only G codes of G00, G01, G02, G03
G56
and G92 are available.*
Only G codes of G00, G01, G02, G03
G57
and G92 are available.*
Only G codes of G00, G01, G02, G03
G58
and G92 are available.*
Only G codes of G00, G01, G02, G03
G59
and G92 are available.*
Only G codes of G00, G01, G02 and
G61
G03 are available.*
Only G codes of G00, G01, G02 and
G64
G03 are available.*
Only G codes of G00, G01, G02 and
G90
G03 are available.*
Only G codes of G00, G01, G02 and
G91
G03 are available.*
G92
G100
G101
6 − 36
6. MOTION PROGRAMS FOR POSITIONING CONTROL
: May be specified.
: Must 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.
For *, the G code may be set in the first parameter only.
6 − 37
Positions the specified axes. (PTP)
Code G00
[Explanation]
• Linearly positions all the specified axes from the present value to the specified
coordinate axis position at the fixed speed.
• Being a modal instruction, this command is valid until another G code in the same
group is used. Hence, if the next command is the same G code, it may be enabled
by specifying only the axis name. (Group (01) is made up of G00, G01, G02 and
G03.)
• This command always increases or decreases speed at the starting or end point of
a block and proceeds to the next block.
• The positioning speed is not more than the rapid feedrate of each axis.
[Example]
G00 X100. ;
X150. ;
(When rapid feedrate is 10000mm/min and speed limit value in parameter block is
12000mm/min)
V Speed limit value in parameter block
Rapid feedrate
12000
10000
T
Acceleration time Deceleration time Acceleration time Deceleration time
• The positioning data can be set by direct designation (numerical value) or indirect
designation (variable: #****).
[Related Parameters]
Rapid feedrate: Set the maximum feedrate of each axis.
(Refer to Section 4.2.4 for the rapid feedrate setting in the fixed
parameter.)
When G00 is executed, positioning takes place in the shortest path
which connects the starting point and end point.
The positioning speed is within the rapid feedrate of each axis.
6 − 38
G00 X x Y y Z z;
Axis names
Positioning addresses
Format
[Program Example]
• Program used to position the axes at points A, B, C, D and E. (Under absolute
value command)
1) G00 X100. Y100. ; (A point positioning)
2) X200. ; (B point positioning) Travel under G00
3) Y200. ; (C point positioning)
4) G01 Y300. F100. ; (D point positioning)
Travel under 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)
REMARKS
• To determine the feedrate of G00, the axis whose time to reach the target
position is the longest in the travel/rapid feedrate (fixed parameter) of all
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
4.2.4.)
• The rapid feedrate 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.
6 − 39
Linearly interpolates the axes from the present value to the
specified end point at the specified feedrate. (CP)
Code G01 As the feedrate, specify the linear speed (composite speed) in
the advance direction.
CP positioning at speed
Function
specified in F
[Explanation]
• Being a modal instruction, this command is valid until another G code in the same
group is used. Hence, when the next command is G01, it may be enabled by
specifying only the axis name, unless the feedrate is changed.
• As the command unit of the feedrate, specify the interpolation control unit of the
parameter block.
• The maximum command value of the feedrate is the speed limit value set in the
parameter block.
• If the F command is not set in the first G01 command, a program error (error code:
501) occurs.
X axis
• The positioning data can be set by direct designation (numerical value) or indirect
designation (variable: #****).
• The axes do not decelerate to a stop if the G02 or G03 command is given between
the G01 commands (CP positioning).
[Example]
G01 X100. Y100. Z100. ;
G02 X0. Y0. I0. J50. F500. ;
Constant-speed control is exercised in this area.
G03 X0. Y0. I0. J50. F500. ;
G01 X100. ;
6 − 40
G01 X x Y y Z z F f;
Feedrate
Feedrate command
Format Positioning addresses
Axis names
X axis
100 200
Y axis
200
Note: • Both the acceleration and deceleration times are the acceleration time of
the parameter block.
• As under the M code command, the acceleration/deceleration time under
the G0 command is the acceleration time of the parameter block.
[Related Parameters]
Speed limit value: Set the maximum feedrate of each axis.
(Refer to the speed limit value of the parameter block in Section
4.6.)
[Program Example]
• Program which performs positioning to A, B, C, D and E points. (Under absolute
value command)
1) G01 X100. Y100. F100. ; (A point positioning) Travel under G01
2) X200. ; (B point positioning) (Travel at feedrate
3) Y200. ; (C point positioning) of 100mm/min)
4) G00 Y300. F100. ; (D point positioning)
Travel under G00
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)
6 − 41
Moves the axes from the current position (starting point) to
the specified coordinate position (end point) along a circular
Code G02 arc (CW).
The travel speed is the specified feedrate.
[Explanation]
• Use the incremental values (always use incremental values) from the current
position (starting point) 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 center coordinates of the circular arc
with I and J.
The center coordinates 1, 2 are I and J in order of lower axis numbers.
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)
• Always specify the end point coordinates for 2 axes as they cannot be omitted.
G02 (CW): Clockwise
Y X Z
X Z Y
• If the end point is in the same position as the starting point, the circular arc is 360
degrees (perfect circle).
• When the circular arc center coordinates and radius are specified for G02 (CW) at
the same time, the radius-specified circular interpolation has priority.
• The positioning data can be set by direct designation (numerical value) or indirect
designation (variable: #****).
6 − 42
G02 X x Y y I i J j F f;
Feedrate
Feedrate command
Format Circular arc center
coordinates 1, 2
End point X, Y coordinates
[Related Parameters]
Speed limit value: Set the maximum feedrate of each axis.
(Refer to the speed limit value of the parameter block in Section
4.6.)
Circular arc error: Set the permissible circular arc error range.
(Refer to the permissible circular arc error range of the parameter
block in Section 4.6.3.)
[Program Example]
• Program which performs circular interpolation from the current position to draw a
half circle.
G91 G02 X0. Y100. I0. J50. F500. ;
Y
Feedrate
50
500mm/min
X
Starting point
(Unit: mm)
• Program which performs circular interpolation from the current position to draw a
perfect circle.
G02 X0. Y0. I0. J50. F500. ; (Perfect circular command)
Y
Feedrate
50
500mm/min
X
Starting/end point
(Unit: mm)
REMARKS
• The end point and circular arc center coordinates cannot be omitted.
Always specify them for two axes.
• Circular interpolation cannot be made if it includes the degree axis whose
stroke limit is set to be invalid.
• Circular interpolation cannot be made for the unit combination of mm and
degree or inch and degree.
6 − 43
Moves the axes from the current position (starting point) to
the specified coordinate position (end point) along a circular
Code G03 arc (CCW).
The travel speed is the specified feedrate.
6.8.4 G03 Circular interpolation CCW (Circular arc center coordinate designation)
[Explanation]
• Use the incremental values (always use incremental values) from the current
position (starting point) 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 center coordinates of the circular arc
with I and J.
The center coordinates 1, 2 are I and J in order of lower axis numbers.
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)
• Always specify the end point coordinates for 2 axes as they cannot be omitted.
G03 (CCW): Counterclockwise
Y X Z
X Z Y
• If the end point is in the same position as the starting point, the circular arc is 360
degrees (perfect circle).
• When the circular arc center coordinates and radius are specified for G03 (CCW)
at the same time, the radius-specified circular interpolation has priority.
• The positioning data can be set by direct designation (numerical value) or indirect
designation (variable: #****).
6 − 44
G03 X x Y y I i J j F f;
Feedrate
Feedrate command
Format Circular arc center
coordinates 1, 2
End point X, Y coordinates
[Related Parameters]
Speed limit value: Set the maximum feedrate of each axis.
(Refer to the speed limit value of the parameter block in Section
4.6.)
Circular arc error: Set the permissible circular arc error range.
(Refer to the permissible circular arc error range of the parameter
block in Section 4.6.3.)
[Program Example]
• Program which performs circular interpolation from the current position to draw a
half circle.
G91 G03 X0. Y100. I0. J50. F500. ;
Y
Feedrate
50
500mm/min
X
Starting point
(Unit: mm)
• Program which performs circular interpolation from the current position to draw a
perfect circle.
G03 X0. Y0. I0. J50. F500. ; (Perfect circular command)
Y
Feedrate
50
500mm/min
X
Starting/end point
(Unit: mm)
REMARKS
• The end point and circular arc center coordinates cannot be omitted.
Always specify them for two axes.
• Circular interpolation cannot be made if it includes the degree axis whose
stroke limit is set to be invalid.
• Circular interpolation cannot be made for the unit combination of mm and
degree or inch and degree.
6 − 45
Moves the axes from the current position (starting point) to
the specified coordinate position (end point) along a circular
Code G02 arc of the specified radius (CW).
The travel speed is the specified feedrate.
[Explanation]
• 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.
End point
Starting point
• If a perfect circuit command (the starting point is the same as the end point) is
specified in R-specified circular interpolation, an error (error code: 108) occurs and
no operation is performed. Therefore, specify the circular arc center coordinates
for the perfect circuit command.
• A circular arc of more than 180° is drawn at a negative circular arc radius (R)
value, or a circular arc of less than 180° is drawn at a positive R value.
• When the circular arc center coordinates and radius are specified for G02 (CW) at
the same time, the radius-specified circular interpolation has priority.
• The positioning data can be set by direct designation (numerical value) or indirect
designation (variable: #****).
[Related Parameters]
Speed limit value: Set the maximum feedrate of each axis.
(Refer to the speed limit value of the parameter block in Section
4.6.)
Circular arc error: Set the permissible circular arc error range.
(Refer to the permissible circular arc error range of the parameter
block in Section 4.6.3.)
6 − 46
G02 X x Y y R r F f;
Feedrate
Feedrate command
Format Circular arc radius
End point X, Y coordinates
[Program Example]
• Program which draws a circular arc of more than 180° at a negative circular arc
radius (R) value.
G91 G02 X50. Y50. R-50. F500. ;
Y
Feedrate
50 End point X50,Y50
500mm/min
X
Starting 50
point (Unit: mm)
• Program which draws a circular arc of less than 180° at a positive circular arc
radius (R) value.
G91 G02 X50. Y50. R50. F500. ;
Y
Feedrate
500mm/min
X
Starting 50
point (Unit: mm)
REMARKS
• The end point coordinates and circular arc radius cannot be omitted.
Always specify the end point coordinates and circular arc radius.
• Circular interpolation cannot be made if it includes the degree axis whose
stroke limit is set to be invalid.
• Circular interpolation cannot be made for the unit combination of mm and
degree or inch and degree.
6 − 47
Moves the axes from the current position (starting point) to
the specified coordinate position (end point) along a circular
Code G03 arc of the specified radius (CCW).
The travel speed is the specified feedrate.
[Explanation]
• 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.
Starting point
End point
• If a perfect circuit command (the starting point is the same as the end point) is
specified in R-specified circular interpolation, an error (error code: 108) occurs and
no operation is performed. Therefore, specify the circular arc center coordinates
for the perfect circuit command.
• A circular arc of more than 180° is drawn at a negative circular arc radius (R)
value, or a circular arc of less than 180° is drawn at a positive R value.
• When the circular arc center coordinates and radius are specified for G03 (CCW)
at the same time, the radius-specified circular interpolation has priority.
• The positioning data can be set by direct designation (numerical value) or indirect
designation (variable: #****).
[Related Parameters]
Speed limit value: Set the maximum feedrate of each axis.
(Refer to the speed limit value of the parameter block in Section
4.6.)
Circular arc error: Set the permissible circular arc error range.
(Refer to the permissible circular arc error range of the parameter
block in Section 4.6.3.)
6 − 48
G03 X x Y y R r F f;
Feedrate
Feedrate command
Format Circular arc radius
End point X, Y coordinates
[Program Example]
• Program which draws a circular arc of more than 180° at a negative circular arc
radius (R) value.
G91 G03 X-50. Y50. R-50. F500. ;
Y
Feedrate
End point X-50,Y50 50
500mm/min
X
-50 Starting point
(Unit: mm)
• Program which draws a circular arc of less than 180° at a positive circular arc
radius (R) value.
G91 G03 X-50. Y50. R50. F500. ;
Y
Feedrate
500mm/min
X
-50 Starting point
(Unit: mm)
REMARKS
• The end point coordinates and circular arc radius cannot be omitted.
Always specify the end point coordinates and circular arc radius.
• Circular interpolation cannot be made if it includes the degree axis whose
stroke limit is set to be invalid.
• Circular interpolation cannot be made for the unit combination of mm and
degree or inch and degree.
6 − 49
Waits for the next block to be executed for the specified
Code G04 period of time.
Function Dwell
[Explanation]
• For the dwell command, specify the time from a stop after deceleration under the
preceding move command until the next block starts.
• The dwell time can be specified in the range 1 to 65535 in increments of 0.001
seconds.
Therefore, setting of G04 P1000 indicates a wait time of 1 second.
V
Dwell time
• The dwell time can be set by direct designation (numerical value) or indirect
designation (variable: #****).
• When specifying dwell in the same block as the move block, describe dwell after
the move command.
Also, describe the dwell time (P) after G04.
[Example]
G00 X100 Y100 G04 P2000;
Dwell command
Move command
(G00, G02, G01 or G03 can be specified)
Next block
Dwell command
Move command
6 - 50
G04 P p;
Format Dwell time (1 to 65535)
[Program Example]
• Program in which dwell time is placed between positioning operation instructions.
1) G01 X100. F10. ; (Positioning)
2) G04 P2000; (Dwell time set to 2 seconds)
3) G01 X200. ; (Positioning)
V
X axis 1) 2)
Dwell time
2000×0.001=2 seconds
The X axis is positioned to 100., stops there for 2 seconds, and starts positioning
operation to 200. again.
REMARK
• A decimal point cannot be specified for the dwell time.
6 - 51
Moves the axis in the specified block point-to-point.
Code G09
[Explanation]
• This command is used with the interpolation instruction. Executing this command
moves the axis point-to-point in only the specified block.
The interpolation instruction codes usable with this command are G01, G02 and
G03 only.
• In this system, the next block is executed after deceleration to a stop in the
specified coordinate position.
•Not being a modal instruction, this command is valid for the specified block only.
X axis
X axis
• The positioning data can be set by direct designation (numerical value) or indirect
designation (variable: #****).
6 - 52
G09 G01 X x F f;
Format May be used only in the G01, G02
or G03 program
[Program Example]
• Program which uses the exact stop check for positioning.
1) G09 G01 X100. F500. ; (Positioning using exact stop check)
2) X200. ; (Positioning)
3) X300. ; (Positioning)
4) G09 G01 X400. ; (Positioning using exact stop check)
V
X axis 1) 2) 3) 4)
6 - 53
Makes invalid G24 (cancel function, cancel start function)
Code G23 which has already been made valid.
Valid until G24 (cancel function, cancel start function) is
executed.
Function Cancel, cancel start invalidity
[Explanation]
• This command makes invalid the cancel or cancel start function which has already
been made valid.
6 - 54
G23;
Format
[Program Example]
• Program which makes the cancel start function valid/invalid during execution of a
010 program.
010
G24 CAN #X100 P100 PB1; Execution of cancel start function
G90 G01 X200. F1000. ;
G23; Cancel start function invalid
6 - 55
Cancels the running program and automatically starts the
specified start program.
Code G24 This function is valid until cancel or cancel start function
invalidity (G23) is executed.
[Explanation]
• Turning ON the cancel device signal during execution of this command
decelerates the axis to a stop and cancels the running program (cancel function).
When the start program number Pn has been set, turning ON the cancel signal
decelerates the axis to a stop and automatically starts the specified program
(cancel start function).
• This command cannot be used with the home position return (G28) instruction.
• In a waiting status for a restart (single block, M00, M01) during macro processing,
this command is made valid after completion of the processing.
• If the cancel device turns ON during move block switching, a cancel start is made
valid at the processing of the next move block when there are no operating axes
(no high-speed oscillation axes).
• The devices that may be used for cancel are X, Y, M, TC, TT, CC, CT, B and F. By
assigning the input signal designed for high-speed read function to the cancel
device, response is made faster than the input from the PC.
• The parameter block of the start program can be set with PBn. The setting range
of the parameter block number PBn is 1 to 16. If the setting of the parameter block
number PBn is omitted, it is fixed to parameter block number 1.
• The program number Pn and parameter block number PBn set for a start can be
set by indirect designation using a variable, D or W (2-word data).
• When G24 exists at any point between continuous CP blocks, the axis decelerates
to a stop once.
N1 G24 CAN #X100;
Cancel function for N1 is valid until G24 or G23 is
N2 G01 X200. F2000. ;
specified.
N3 X300.Y200. ;
N4 G24 CAN #X101; Cancel function for N1 is made invalid and the axis
decelerates to a stop.
N5 G01 X50.Y50 F1000. ; Cancel function for N4 is valid until G24 or G23 is
specified.
6 − 56
G24 CAN #X x P n PBn;
Parameter block number
(can be specified indirectly)
Format Start program number
(can be specified indirectly)
Cancel device (X, Y, M, TC,
TT, CC, CT, B, F)
Cancel designation
• If the start program number Pn is omitted (cancel function), the running program
ends when the cancel device turns ON.
• When setting the start axes in the SVST instruction, also include the axis number
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.
[Program Example]
• Program which cancels program operation during a 010 program run and starts
0100. (Command unit is mm)
010;
1) G24 CAN #X100 P100 PB1; Execution of cancel start function
2) G90 G01 X200. F1000. ; Cancel device X100 turns ON midway.
After deceleration to stop, 0100 starts.
0100;
3) G90 G01 X50. F600. ; X axis moves to 50mm position at 600mm/min.
Speed (mm/min)
1000.
Time
-600.
Program 010 Program 0100
Device
X100
M2001
6 − 57
Oscillates the specified axis in a sine curve.
Code G25
[Explanation]
• The specified axis oscillates in a sine curve.
360[degree]
Amplitude 0
Starting angle
6 - 58
G25 X START s STRK a F f;
Frequency
(can be specified
indirectly)
Frequency designation
(can be specified
indirectly)
Amplitude
(can be specified
Format indirectly)
Amplitude designation
Starting angle
(can be specified
indirectly)
Starting angle
designation
Axis name
• This command is valid for the specified block only (group 00).
[Program Example]
• 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 (degrees).
(2) START 90. .............. Means 9.0 (degrees).
(3) In START #10
#10 = 900 ............... Means 90.0 (degrees).
#10 = 1 ................... Means 0.1 (degrees).
6 - 59
Terminates the high-speed oscillation of the axis which is
Code G26 performing high-speed oscillation.
[Explanation]
• Stops the high-speed oscillation of the axis which is performing high-speed
oscillation.
6 - 60
G26 X;
Format Axis name
[Program Example]
N01 G91 G01 X10. Y10. F100. ;
N02 G25 X START 0. STRK 1000. F100. ;
N03 G01 Y10. ;
N04 G26 X;
N05 G01 X10. Y10. ;
M02;
Y axis
speed
X axis
speed
G26 Time
• 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.
6 - 61
When the home position return request is ON, ignores the mid
Code G28 point specified and makes a dog, count or data setting type
home position return. When the home position return request
is OFF, returns the axis from the present position to the home
Function Home position return position through the specified mid point at rapid feedrate.
[Explanation]
• 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 is OFF, this command positions the axis from the present position to the
home position through the specified mid point at rapid feedrate.
Mid point
• When the home position return request is ON, the home position return method is
determined by the home position return data.
Note: When the home position return request is ON and the data setting type is
specified, the axis must always be made to pass through the zero point.
A "zero point non-passage error" will occur if a home position return is made
without passing through the zero point once. If this error has occurred, reset
the error, perform JOG operation or the like to run the servo motor more than
one revolution, then execute a home position return again.
Use the zero point passage signal (M1606+20n) to check whether the axis
has passed through the zero point.
• Always specify the axis which will be returned to the home position. If it is not
specified, a home position return will not be made.
• The mid point data setting can be made by direct designation (numerical value) or
indirect designation (variable: #****).
• The tool length offset and virtual mechanical coordinates (refer to Section 6.8.25)
of the axis which was returned to the home position are canceled.
Mid point designation depends on the position command system (G90, G91)
currently selected.
• When the control unit is degrees, operation from the mid point to the home position
differs between the absolute value command (G90) and incremental value
command (G91).
The axis moves 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]
Home position address: Set the present value of the home position. (Refer to the
home position return data in Section 4.4.)
Rapid feedrate : Set the rapid feedrate of each axis. (Refer to the fixed
parameters in Section 4.2.4.)
6 - 62
G28 X x Y y Z z;
Format Mid point coordinates
[Program Example]
• Program which returns the axis from the present position to the home position
through the A point (mid point).
G90;
G28 X200. Y200. ; (Home position return)
A point (mid point coordinates X200, Y200)
REMARK
• When the G28 command is given, a home position return is made at rapid
feedrate.
6 - 63
Returns the axis from the present position to the second
Code G30 home position through the specified mid point at rapid
feedrate.
[Explanation]
• This command positions the specified axis from the present position to the second
home position through the specified mid point at rapid feedrate.
Mid point
• Always specify the axis which will be returned to the second home position. If it is
not specified, a second home position return will not be made.
• The mid point data setting can be made by direct designation (numerical value) or
indirect designation (variable: #****).
• The tool length offset and virtual mechanical coordinates (refer to Section 6.8.25)
of the axis which was returned to the second home position are canceled.
Mid point designation depends on the position command system (G90, G91)
currently selected.
• When the control unit is degrees, operation from the mid point to the second home
position differs between the absolute value command (G90) and incremental value
command (G91).
The axis moves 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: Set the present value of the second home position.
(Refer to the home position return data in Section
4.4.)
Rapid feedrate : Set the rapid feedrate of each axis. (Refer to the
fixed parameters in Section 4.2.4.)
6 - 64
G30 X x Y y Z z;
Format Mid point coordinates
[Program Example]
• Program which returns the axis from the present position to the second home
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 made at
rapid feedrate.
6 - 65
Moves the axis at the specified feedrate, suspends the
remaining command at the input of an external signal, and
executes the next block.
Skips dwell similarly when there is only the dwell command.
Code G32
Function Skip
[Explanation]
• When the skip signal is entered during execution of G32, skip, the remaining
motion 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.
• A format error occurs if the axis command or M code and the dwell command are
described at the same time.
• Specify the dwell time in the range 1 to 65535 in increments of 0.001 seconds.
• The skip function makes a skip when the skip signal turns ON.
• This command is valid for the specified block only (group 00). The interpolation
type of this command is the CP mode.
• When the skip signal is not input until the end point of this command block, the
block completes at the end point.
6 - 66
<When axis is specified>
• The coasting value δA between skip signal detection and a stop is represented by
the following expression.
F tcl
δA(mm)= (t1+ +Tr)
60 2
F : Command speed [mm/min]
t1 : Signal import delay time = 0.004 + detection delay time [sec]
tcl : Acceleration/deceleration time [sec]
Tr : Position loop time constant [sec]
(Reciprocal number of position control gain 1 value set in servo
parameter. When position control gain 1 = 25, Tr = 1/25 = 0.04
[sec])
• Under the following conditions, G32 makes deceleration to a stop once, then
proceeds to the next block.
1) When the PTP mode (G00, G25, G28, G30 or the like) is executed after the
G32 block
N10 G32 X100. F1000. SKIP #X10;
The axis decelerates to a stop
N20 G00 X200. ;
before this block.
N30 G32 X300. F1000. SKIP #X11;
2) 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;
The axis decelerates to a stop
N30 G26 Y;
before this block.
G32 X200. F1000. SKIP #X11;
3) 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;
The axis decelerates to a stop
N30 G91;
before this block.
N40 G32 X200. F1000. SKIP #X11;
6 - 67
4) When the block immediately after G32 is in the CP mode but its command axes
do not include the specified axis of the G32 block
N10 G32 X100. F1000. SKIP #X10;
The axis decelerates to a stop
N20 G32 X100. Z100. F1000. SKIP #X11;
before this block.
[Program Example]
• 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.
X axis speed
Time
0
X180
X181
X182
6 - 68
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, under this condition, an instruction of an absolute value command exists after a skip, 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))
(2) When the skip instruction is an absolute value command and subsequent instructions are also
absolute value commands
<Program example>
G90; <Motion without a skip>
G32 X180. SKIP#X100 F10. ; 0 180 350 170 (degree)
G01 X350. ;
G01 X170. ; <Motion with a skip>
(When a skip is made at 100 (degree))
(*) It should be noted that the above explanation is valid between a skip (G32) and deceleration to a
stop (CP to PTP, etc.) After deceleration to a stop, operation of the ordinary degree axis is
performed. The conditions of deceleration to a stop after a skip (G32) are described below. For
more information, refer to "6.8.15 G32 Skip".
1) When the PTP mode (G00, G25, G28, G30 or the like) is executed after the G32 block
2) High-speed oscillation stop (G26) is executed after the G32 block
3) When the absolute value command (G90) or incremental value command (G91) is executed
after the G32 block
4) When the block immediately after G32 is in the CP mode but its command axes do not
include the specified axis of the G32 block
6 - 69
Moves the axis with the preset offset value added to the move
Code G43 command.
By setting a difference between the tool length value and
actual tool length as the offset value, you can create a
Function Tool length offset (+) program without being aware of the tool length.
[Explanation]
• By executing this command, the axis moves 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 move command.
• In the following case, the tool length offset command is canceled.
G49; Tool length offset cancel command
G43 H0;
Set the offset data number 0 to cancel the tool length offset.
G44 H0;
• This command may be given to one axis only. If this command is given to two or
more axes, it is valid for the last specified axis.
G43 X1. Y1. Z1. H1; The Z axis is made valid.
If no axis is specified, the last specified axis is made valid.
G01 Z1;
G43 H1; The Z axis is made valid.
• As this command is a modal instruction, the offset value is retained until the offset
value is canceled (G49).
• Tool length offset may be made to only one axis simultaneously. (Both G43 and
G44)
···
[Related Parameters]
Tool length offset value: Set in the tool length offset data setting registers. (Refer to
Section 3.2.3.)
6 - 70
G43 X x H h;
Format Offset data number
Positioning address
Axis name
[Program Example]
• Program designed to position the axis with the offset value added to the command
position. (For absolute value command)
(Data of the tool length offset data setting registers are as follows:
H1 = 5mm (D560, 561 = 50000), H2 = 10mm (D562, 563 = 100000))
G90; (Absolute value command)
G00 G43 X50. H1 (With the addition of the offset value of 5mm, the X axis is
positioned to its 55mm position)
G01 X25. F500. ; (The X axis moves to its 30mm position at 500mm/min.)
Y100. ; (The Y axis moves to its 100mm position at 500mm/min.)
G43 X200. H2; (With the addition of the offset value of 10mm, the X axis
moves to its 210mm position (offset value change))
6 - 71
Moves the axis with the preset offset value subtracted from
Code G44 the move command.
By setting a difference between the tool length value and
actual tool length as the offset value, you can create a
Function Tool length offset (-) program without being aware of the tool length.
[Explanation]
• By executing this command, the axis moves 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 move command.
• As this command is a modal instruction, the offset value is retained until the offset
value is canceled (G49).
• Tool length offset may be made to only one axis simultaneously. (Both G43 and
G44)
···
[Related Parameters]
Tool length offset value: Set in the tool length offset data setting registers. (Refer to
Section 3.2.3.)
6 - 72
G44 X x H h;
Format Offset data number
Positioning address
Axis name
[Program Example]
• Program designed to position the axis with the offset value subtracted from the
command position. (For absolute value command)
(Data of the tool length offset data setting registers are as follows:
H1 = 5mm (D560, 561 = 50000), H2 = 10mm (D562, 563 = 100000))
G90; (Absolute value command)
G00 G44 X50. H1; (With the subtraction of the offset value of 5mm, the X axis is
positioned to its 45mm position)
G01 X25. F500. ; (The X axis moves to its 20mm position at 500mm/min.)
Y100. ; (The Y axis moves to its 100mm position at 500mm/min.)
G44 X200. H2; (With the subtraction of the offset value of 10mm, the X axis
moves to its 190mm position (offset value change))
6 - 73
Cancels the preset tool length offset value (G43, G44).
Code G49
[Explanation]
• This command cancels the preset tool length offset value (G43, G44) and performs
the specified positioning.
• Always specify the positioning address for tool length offset cancel.
[Related Parameters]
Power-on mode: At power-on, the tool length offset cancel mode is established.
6 - 74
G49 X x;
Format Positioning address
Axis name
[Program Example]
• 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 = 5mm (D560, 561 = 50000), H2 = 10mm (D562, 563 = 100000))
G90; (Absolute value command)
G00 G43 X50. H1; (With the addition of the offset value of 5mm, the X axis is
positioned to its 55mm position)
G01 X25. F500. ; (The X axis moves to its 30mm position at 500mm/min.)
Y100. ; (The Y axis moves to its 100mm position at 500mm/min.)
G43 X200. H2; (With the addition of the offset value of 10mm, the X axis
moves to its 210mm position (offset value change))
G49 X100. ; (With the offset value canceled, the X axis moves to its
100mm position at 500mm/min.)
6 - 75
Moves the axes to the command position in the basic
Code G53 mechanical coordinate system at rapid feedrate.
Mechanical coordinate
Function
system selection
[Explanation]
• 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 DSFLP instruction at power-on.
• Not being a modal instruction, this command is valid for the specified block only.
• 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)
• When G53 and G30 are specified in the same block, the latter command is valid.
G53 G30........; G28 is valid (second home position return command)
G30 G53........; G53 is valid (mechanical coordinate system selection
command)
• Under the incremental value command (G91), the axes move at the incremental
value in the mechanical coordinate system, and under the absolute value
command (G90), the axes move at the absolute value in the mechanical
coordinate system.
[Example]
G91; (For incremental value G90; (For absolute value command)
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
6 - 76
G53 X x Y y Z z;
Format Coordinates in basic mechanical
coordinate system
[Program Example]
• 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.
0) G90; (Absolute value command)
1) G53 X10. Y10. ; (Axes move to X10. Y10. in the basic mechanical
coordinates)
2) G01 X10. Y10. F20. ; (Axes move to X10. Y10. in the work coordinates)
Y Y
Present position
10
1)
X
10 Work coordinates
2)
10
X
10 Basic mechanical coordinates
(Unit: mm)
REMARK
6 - 77
G54, G55, G56, G57, Selects the work coordinate system and moves the axes to
Code the specified position in the work coordinate system at the
G58, G59
speed specified in the feedrate.
Work coordinate system 1 to
Function
6 selection
[Explanation]
• Work coordinate systems 1 to 6 are coordinate systems specified in the
parameters or work coordinate system setting.
Set the offset value in the work coordinate system using the distance from the
basic mechanical coordinate system origin (0).
• Being a modal command, any of work coordinate systems 1 to 6 is valid until the
next work coordinate system 1 to 6 selection command is given.
• Giving the G92 command in any of the G54 to G59 modes allows a new work
coordinate system to be set.
Giving the G92 command causes all work coordinates systems (1 to 6) to move in
parallel.
• Move mode (moving method): G00 to G03 depend on the data of the modal
information group 01.
• CP mode (constant-speed control): G61 and G64 depend on the the data of the
modal information group 13.
• Positioning data can be set by direct designation (numerical value) and indirect
designation (variable: #****).
[Related Parameters]
Work coordinate system offset value: Specify the offset in the work coordinate
system using the distance from the basic
mechanical coordinates. (Refer to the work
coordinate data in Section 4.7.)
Up to six work coordinate systems may be set.
(Work coordinate systems 1 to 6)
6 - 78
G54 X x Y y Z z;
Format Position located in specified
[Program Example]
<Work coordinate system selection>
• Program designed to position the axes to the specified position in the work
coordinate system 1.
(The offset of the work coordinate system 1 is X500, Y500)
0) G90; (Absolute value command)
1) G28 X0. Y0.; (Home position return)
2) G53 X0. Y0.; (Axes move to the basic mechanical coordinate origin)
3) G54 X500. Y500.; (Axes move to the specified position in the work
coordinate system 1)
4) G91 G01 X500. F10. ; (Incremental value command positioning)
Y Y
4)
1000 500
3)
1)
500 X
500 1000 Work coordinate system 1
2)
X
500 1000 1500 Basic mechanical coordinates
(Unit: mm)
X-200
6 - 79
Moves the axis point-to-point (PTP).
Code G61
[Explanation]
• This command is used with the interpolation instruction. Executing this command
moves the axis PTP.
The instruction codes usable with this command are G01, G02 and G03 only.
• In this system, the next block is executed after deceleration to a stop per specified
coordinates.
• Being a modal instruction, this command is valid until the cutting mode (G64) is
commanded.
X axis
X axis
6 - 80
G61;
Format
[Program Example]
• Program designed to position the axis 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)
V
X axis 1) 2) 3)
REMARK
• Only the rapid feedrate may be the specified speed in G00. To specify the
speed every time PTP positioning is executed, you can use G61 and G01.
6 - 81
Executes the next block continuously without deceleration to
Code G64 a stop between cutting feed blocks.
[Explanation]
• Designed to position the axis to the specified coordinate position approximately,
this command performs continuous operation without deceleration to a stop per
specified coordinates unlike the exact stop check mode.
Use this command when you want to make a smooth connection with the
interpolation instruction (G01, G02, G03).
• Being a modal instruction, this command is valid until the exact stop check mode
(G61) is commanded.
X axis
X axis
6 - 82
G64;
Format
[Program Example]
• Program designed to position the axis 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)
6 - 83
Sets the coordinate command as an absolute value
Code G90 command.
[Explanation]
• In the absolute value command mode, the axes move to the specified coordinate
position independently of the present position. The positioning command set after
execution of this command performs operation with the absolute value from the
origin coordinates.
• Being a modal instruction, this command is valid until the incremental value
command mode (G91) is commanded.
50 50
Present value (50, 50)
Present value (80, 20)
X X
50 100 50 100
(Unit: mm)
At present position coordinates of X50, Y50 At present position coordinates of X80, Y20
• Positioning data can be set by direct designation (numerical value) and indirect
designation (variable: #****).
6 - 84
G90 X x Y y Z z;
Format Locating position
[Program Example]
• Example of comparison of positioning between the absolute value command and
incremental value command
Y
<Incremental value command example>
Under
G91 X70. Y70.;
incremental
(100,100)
value
<Absolute value command example> command
(70,70)
G90 X70. Y70.; Under absolute
value command
Present value (30, 30)
X
(Unit: mm)
6 - 85
Sets the coordinate command as an incremental value
Code G91 command.
[Explanation]
• In the incremental value command mode, the axes move the distance of the
specified relative value from the starting point (0) of the present position.
The positioning command set after execution of this command performs operation
with the incremental value from the present position.
• Being a modal instruction, this command is valid until the absolute value command
mode (G90) is commanded.
(180,120)
100 100
50 50
Present value (50, 50)
Present value (80, 20)
X X
50 100 150 50 100 150 200
(Unit: mm)
At present position coordinates of X50, Y50 At present position coordinates of X80, Y20
• Positioning data can be set by direct designation (numerical value) and indirect
designation (variable: #****).
6 - 86
G91 X x Y y Z z;
Format Locating position
[Program Example]
• Example of comparison of positioning between the incremental value command
and absolute value command
Y
<Absolute value command example>
Under
G90 X70. Y70.; incremental
(100,100)
value
<Incremental value command example> command
(70,70)
G91 X70. Y70.; Under absolute
value command
Present value (30, 30)
X
(Unit: mm)
6 - 87
Sets the mechanical coordinates (virtual mechanical
Code G92 coordinates) simulatively.
Setting the virtual mechanical coordinate system also
changes the work coordinate systems 1 to 6.
Function Coordinate system setting
[Explanation]
• The present position in the work coordinate system is changed to the specified
coordinate value to set new work coordinates. The work coordinate system is set
in the specified position (offset from the present position).
Making coordinate system setting sets the virtual mechanical coordinates and
moves the work coordinate systems 1 to 6 in parallel.
[Example]
G92 X20. Y30.;
Y Y Y Y
X
New work coordinates
X
Work coordinates Old work coordinates
X
Virtual mechanical coordinates
X
Mechanical coordinates Mechanical coordinates
• Positioning data can be set by direct designation (numerical value) and indirect
designation (variable: #****).
• When the software version of the controller operating system SV43C, SV43F,
SV43U or SV43B is Ver. 00F or earlier and G92 is to be executed in the CP mode
(e.g. G01), execute G92 after executing M100 (preread inhibit) to decelerate the
axes to a stop once.
• When the software version of the controller operating system SV43C or SV43F is
Ver. 00G or later, executing G92 in the CP mode (e.g. G01) decelerates the axes
to a stop once. When G92 is executed in the single block mode with this software
version or later, making a single block start twice in the same block shifts
execution to the next block.
POINT
If the present value is changed in G92, the present value data restored after a
power failure is based on the status prior to execution of G92.
[Program Example]
• Program designed to set the work coordinate system in the specified position.
G92 X20. Y30.;
6 - 88
G92 X x Y y Z z;
Format Set coordinate value
(Specify the offset from the present position)
Y Y Y Y
X
20
New work coordinates
X
Work coordinates Old work coordinates
X
Virtual mechanical coordinates
X
Mechanical coordinates Mechanical coordinates
(Unit :mm)
6 - 89
Changes the acceleration/deceleration system to time-fixed
acceleration/deceleration or acceleration-fixed
Code G100, G101 acceleration/deceleration.
Time-fixed
acceleration/deceleration,
Function acceleration-fixed
acceleration/deceleration
switching instructions
[Explanation]
• The acceleration/deceleration system of the move command G01, G02, G03, G32
or G00 (with M code) is switched to time-fixed acceleration/deceleration or
acceleration-fixed acceleration/deceleration.
• When G100 is changed to G101 or G101 to G100, the axes decelerate to a stop.
6 − 90
G100;
G101;
Format
[Program Example]
• 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)
010;
G91;
N1 G28 X0. Y0.;
N2 G01 X100. F1000.; Time-fixed acceleration/deceleration (at start, operation
N3 Y100.; is performed under G100) Deceleration to stop after execution
N4 G101;
Acceleration-fixed acceleration/deceleration
N5 X100.;
Deceleration to stop after execution
N6 Y100.;
N7 G100;
N8 X100.; Time-fixed acceleration/deceleration
N9 Y100.;
M02;
%
6 − 91
6. MOTION PROGRAMS FOR POSITIONING CONTROL
6.9 M Codes
(1) M codes
When a motion program is run, 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
(M1819+20n/M3219+20n) is entered.
(Refer to Section 7.11 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
6.10 for the special M codes.)
6 − 92
Stops a program run.
Code M00
[Explanation]
• Executing this command stops the program without execution of the next block.
By turning ON the restart signal (M1504+10n/M4404+10n) after a stop, execution
resumes from the next block.
6 - 93
M00;
Format
[Program Example]
• Program designed to make a stop during positioning operation and restart
positioning.
1) G01 X100. F10.; (Positioning)
2) M00; (Program stop) ← Restart signal (M1504+10n/M4404+10n) ON
3) G01 X200.; (Restart signal resumes positioning)
V
T
2)
Restart (M1504+10n/M4404+10n) ON
During stop as M00 is being executed
6 - 94
When the optional program stop is ON, executing M01 stops
Code M01 a program run.
[Explanation]
• When the optional program stop (M1501+10n/M4401+10n) is ON, executing this
command stops the program without execution of the next block.
By turning ON the restart signal (M1504+10n/M4404+10n) after a stop, execution
resumes from the next block.
• When the optional program stop (M1501+10n/M4401+10n) is OFF, the next block
is executed without a program stop.
6 - 95
M01;
Format
[Program Example]
• Program which uses the optional program stop (M01).
1) G01 X100. F10.; (Positioning)
2) M01; (Optional program stop)
3) G01 X200.; (Positioning)
T
2)
Restart (M1504+10n/M4401+10n) ON
During stop as M01 is being executed
T
2) is not executed.
REMARK
• M01 performs the same operation as "M00" when the optional program stop
(M1501+10n/M4401+10n) is ON.
6 - 96
Ends a program.
Code M02
[Explanation]
• Executing this command ends a program run.
This command is required at the end of a program.
6 - 97
M02;
Format
[Program Example]
• Program which is ended 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.
6 - 98
Ends a program.
Code M30
[Explanation]
• Executing this command ends a program run.
This command is required at the end of a program.
6 - 99
M30;
Format
[Program Example]
• Program which is ended 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.
6 - 100
Make subprogram call (M98) and subprogram end (M99).
Subprogram call,
Function
subprogram end
[Explanation]
• A program of the same pattern can be registered as a single subprogram and
called as required from the main program.
6 − 101
M98 P p H h L l;
Subprogram repeat count (0 to 9999)
Subprogram call sequence number (1 to 9999)
Format Subprogram call program number (1 to 256)
M99;
[Program Example]
• Program designed to run the specified subprogram twice repeatedly, return to the
main program, and complete operation.
Main program Subprogram
0110; 0120;
M02
% M99;
%
2)
8)
6 − 102
Does not execute preread on the G code software.
Code M100
[Explanation]
• Executing this command does not execute preread on the G code software.
After completion of motion up to the preceding block, the next block is processed.
6 - 103
M100;
Format
[Program Example]
N10 G01 X10. F10.; ← Since M100 exists in the next block, a
M100; change in #100 during execution of the
IF [#100 EQ150] GOTO20; command on this line is reflected on the IF
N15 G01 Y10.; statement below.
N20 G01 X0. Y0.;
When #100 150 When #100=150
X speed X speed
Time Time
Y speed Y speed
Time Time
*1 *1
*1 When M100 is executed, CP does not continue from N10 to N15 or from N10 to N20 and
the axis decelerates to a stop once after execution of N10.
6 - 104
6. MOTION PROGRAMS FOR POSITIONING CONTROL
6.11 Miscellaneous
Table 6.8 lists the arguments that may be specified in the first character.
: May be specified.
: Must be specified.
Blank : Must not be specified.
6 − 105
Controls the flow of a run program according to the condition.
Code IF, GOTO
[Explanation]
• If the specified expression is true (1) (condition is satisfied), execution jumps to the
sequence number specified in GOTO.
If the expression is false (0), the next line is executed.
• The line number specified in GOTO must exist in the same program. If it does not,
an error (error code: 541) occurs.
6 - 106
IF [expression] GOTOn
Format Sequence number
[Program Example]
• Program designed to cause a jump to the specified line if the condition is satisfied.
0201;
N200 G91;
N210 G01 X100. Y100. F2000.;
X200.;
Y200.;
IF [#100] GOTO230; (If #100 if 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 if 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.
6 - 107
Controls the flow of a run program according to the condition.
[Explanation]
• 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 [#110 EQ1] THEN 1;
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;
• When ELSE is omitted, the block group up to END is executed only if the
conditional expression is true.
IF [#100 EQ1] THEN 1;
If #100 is 1, the block group described here is executed.
END1;
END3 ;
END2 ;
END1 ;
• The GOTO statement cannot cause execution to go into or come out of the THEN
and ELSE statements.
6 - 108
IF [expression] THENm;
IF identification number
(1 to 32)
Block U group
Format ELSEm;
Block U group
ENDm;
[Program Example]
01;
N1 G91;
N2 G01 X100. Y100. F2000;
N3 X200.;
N4 Y200.;
N5 IF [#100 EQ0] THEN1;
N6 G01 Y300. F1500; When #100=0, THEN1 to END1 are executed.
N7 X300.;
N8 END1;
N9 G02 X50. Y50. I0. J50. F800;
N10 G01 X100. Y500. F2000;
N11 IF [#110] THEN2;
N12 G00 X10.; When #110 is true, THEN2 to ELSE2 are executed.
N13 Y100.;
N14 ELSE2;
N15 G28 X0. Y0.; When #110 is false, ELSE2 to ELSE2 are executed.
N16 END2;
N17 M02;
%
Caution: Note that if the sequence number (N**) is omitted in the above program,
the block number changes as indicated below.
Program Execution Block No. (A) Execution Block No. (B) Execution Block No. (C) Execution Block No. (D)
01; 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.
6 - 109
Controls the flow of a run program according to the condition.
Code WHILE, DO
[Explanation]
• 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.
6 - 110
WHILE [conditional expression] DOm
Format WHILE
identification
number
(1 to 32)
[Program Example]
• Program designed to cause a jump to the specified line if the condition is satisfied.
0110;
N1 #0=0;
N2 G91 G00 X25. Y50.;
N3 WHILE [#0 LT3] DO1;
N4 G03 X0. Y0. I25. J0. F100.; *1
;
N5 #0=#0+1; ............................. *2
N6 END1;
N7 G28 X0. Y0.;
N8 M02;
%
50
25
X
0 25 50 75
Caution: Note that if the sequence number (N**) is omitted in the above program,
the block number changes as indicated below.
Program Execution Block No.
0110; 0
#0=0; 1
G91 G00 X25. Y50.; 2
WHILE [#0 LT3] DO1; 3
G03 X0. Y0. I25. J0. F100.; 4
#0=#0+1; 5
END1;
G28 X0. Y0.; 4
M02; 5
%
6 - 111
Perform addition (+), subtraction (-), multiplication (*), division
Code +, -, *, /, MOD, = (/), remainder (MOD) and assignment (=).
[Explanation]
• Calculation of the specified operator is performed.
• The priority of operations is in order of function, multiplication type operation and
addition type operation.
#100 = #110 + #120 * SIN [#130];
1) Function
Operation result
is stored Operation is performed after conversion of operation data
1, 2 into operation result type.
• 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 1, 2 into operation result type.
result is 64-bit type, Note that if operation result is 64-bit type, 32-bit type is
32-bit type is converted used to perform operation.
into 64-bit type.
• The following operational expressions will result in an error (560: format error).
#10 = ##20; Possible if #10 = # [#20];
#10 = #20 +- #30; Possible if #10 = #20 + [- #30];
• 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.
6 - 112
n1 Operator n2
Format Numerical value or variable
Operator (+, -, *, /, MOD)
Numerical value or variable
[Program Example]
• Program designed to carry out positioning according to the result of the specified
operation.
0200;
#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;
%
6 - 113
SIN, COS, TAN, ASIN, Perform operations of SIN (sine), COS (cosine), TAN
Code (tangent), ASIN (arcsine), ACOS (arccosine) and ATAN
ACOS, ATAN
(arctangent).
[Explanation]
• The operation result is a 32-bit integer (BIN value) including four decimal places.
• When the argument of the trigonometric function has no decimal point, the
operation result is similarly a BIN value including four decimal places.
6 - 114
function [n];
Format Numerical value (can be specified indirectly)
Trigonometric function
(SIN, COS, TAN, ASIN, ACOS, ATAN)
[Program Example]
#10:L = SIN [60.]; #10:L = 8660
#16:L = SIN [600000]; #16:L = 8660
#20:L = COS [45.]; #20:L = 7071
#26:L = COS [450000]; #26:L = 7071
#30:L = TAN [30.]; #30:L = 5773
#36:L = TAN [300000]; #36:L = 5773
#40:L = ASIN [0.8660]; #40:L = 599970
#46:L = ASIN [8660]; #46:L = 599970
#50:L = ACOS [0.7071]; #50:L = 450005
#56:L = ACOS [7071]; #56:L = 450005
#60:L = ATAN [1.]; #60:L = 450000
#66:L = ATAN [10000]; #66:L = 450000
6 - 115
Converts a floating-point type real number into a 32-bit integer
Code INT (BIN value) including four decimal places.
[Explanation]
• A floating-point type real number is converted into a 32-bit integer (BIN value)
including four decimal places.
• 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
6 - 116
INT [n] ;
Format Indirect designation only
Real number to 32-bit integer
(BIN value) conversion command
[Program Example]
#2:L = 10000;
#4:L = FLT[#2:L]; #4:L = (461C4000)16
(D4,5 = (461C4000)16)
#6:L = INT[#4:L]; #6:L = 10000
6 - 117
Converts a 32-bit integer (BIN value) including four decimal
Code FLT places into a floating-point type real number.
[Explanation]
• A 32-bit integer (BIN value) including four decimal places is converted into a
floating-point type real number.
• 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
6 - 118
FLT [n] ;
Format Indirect designation only
32-bit integer (BIN value) to real
number conversion command
[Program Example]
#2:L = 10000;
#4:L = FLT[#2]; #4:L = (461C4000)16
(D4,5 = (461C4000) 16)
#6:L = INT[#4]; #6:L = 10000
6 - 119
SQRT, ABS, BIN, BCD, Perform operations of SQRT (square root), ABS (absolute
Code value), BIN (BCD to BINARY conversion), BCD (BINARY to
LN, EXP, RND, FIX,
FUP BCD conversion), LN (natural logarithm), EXP (base e
exponent), RND (round off), FIX (round down) and FUP
Function Functions (round up).
6.11.8 Functions (SQRT, ABS, BIN, BCD, LN, EXP, RND, FIX, FUP)
[Explanation]
• Operation of the specified function is performed.
• For the operation result, refer to Items (5), (6), (7) in Section 6.3.3.
6 - 120
function [n];
Format Numerical value (can be specified indirectly)
Trigonometric Function
(SQRT, ABS, BIN, BCD, LN, EXP, RND, FIX, FUP)
[Program Example]
#10L = SQRT [100] 10 enters [D11, D10].
#20L = ABS [-25] 25 enters [D21, D20].
#30L = BIN [100] 64 enters [D31, D30].
#40L = BCD [100] 256 enters [D41, D40].
#50L = LN [1000000] 13 enters [D51, D50].
#60L = EXP [20] 485165195 enters [D61, D60].
#70F = RND [14/3] 5 enters [D73, D72, D71, D70] (64-bit floating-point type).
#80F = FIX [14/3] 4 enters [D83, D82, D81, D80] (64-bit floating-point type).
#90F = FUP [14/3] 5 enters [D93, D92, D91, D90] (64-bit floating-point type).
#170F = RND [-14/3] -5 enters [D173, D172, D171, D170] (64-bit floating-point
type).
#180F = FIX [-14/3] -5 enters [D183, D182, D181, D180] (64-bit floating-point
type).
#190F = FUP [-14/3] -4 enters [D193, D192, D191, D190] (64-bit floating-point
type).
6 - 121
Perform logical product (AND), logical add (OR), exclusive
AND, OR, XOR, NOT, logical add (XOR), logical NOT (NOT) and shift operations
Code <<, >> (<<, >>).
[Explanation]
• Operation of the specified logical operator is performed.
• 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.
• 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.
• 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[[# 100 AND #200] EQ #300] GOTO2;
If the result of ANDing #100 and #200 contents is equal to #300, the N2 line is
executed.
6 - 122
<For AND, OR, XOR, <<, >> >
n1 Operator n2;
Numerical value or variable
Operator (AND, OR, XOR, <<, >>)
Format Numerical value or variable
<For NOT>
NOT [n1] ;
Numerical value or variable
[Program Example]
Operator Program Example Operation
#10L = 01100100
#10L = 100;
AND 15 = 00001111
#20L = #10L AND 15;
#20L = 00000100 = 4
#10L = 01100100
#10L = 100;
OR 14 = 00001110
#20L = #10L OR 14;
#20L = 01100100 = 110
#10L = 01100100
#10L = 100;
XOR 14 = 00001110
#20L = #10L XOR 14;
#20L = 01101010 = 106
#10L = 90; #10L = 01011010
NOT
#20L = NOT [#10L]; #20L = 10100101 = 165
#10L = 20; #10L = 00010100
<<
#20L = #10L << 2; #20L = 01010000 = 80
#10L = 80; #10L = 01010000
>>
#20L = #10L >> 2; #20L = 00010100 = 20
6 - 123
Executes the next move block when the ON/OFF condition of
Code WAITON, WAITOFF the specified device holds.
[Explanation]
• Execution waits the next move block to be executed until the ON/OFF condition of
the specified device holds. Note that the operation block is executed.
• It takes about 7 to 64msec from when a program is started until the program is
actually run. Therefore, WAITON/WAITOFF can be used to start a motion program
fast. By setting a wait for a shift to the next block with WAITON or WAITOFF after a
program start has been made by the SVST instruction in a sequence program,
prereading of the next block has been completed, and therefore, the next block
can be executed at high speed (approx. 3.5msec for 8 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;
%
6 - 124
WAITON #Xx ;
Device (X, Y, M, TC, TT, CC, CT, B, F)
Format
WAITOFF #Xx ;
Device (X, Y, M, TC, TT, CC, CT, B, F)
[Program Example]
Program which executes the next block when a condition holds.
00001 WAITON #X10;
00002 N1 G01 X100. Y200. F1000.;
00003 WAITOFF #X11;
00004 N2 #10 = 5
00005 G00 X0. Y-10.;
00006 WAITON #X12;
00007 GOTO 10;
00020 #0 = 5;
00021 WAITOFF #XFF;
00022 IF [#0 EQ 5] GOTO 20;
00023 N15 G01 X200. Y200. F2000.;
6 - 125
Uses the parameter block of the specified number.
Code PB
[Explanation]
• The numerical value following PB is used as a parameter block number.
• 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 made, the specified torque limit
value is used.
• When a parameter block change (PB) is made during a torque limit value change
(TL), the torque limit value in the new parameter block is used.
• When a parameter block change is made during a CP motion, the axis decelerates
to a stop once and the next CP motion is executed.
G01 X100. F500. ; Deceleration to a stop at X100.
PB3 ; After that, parameter block 3 is used.
G01 X200. ;
• At a home position return (G28), the parameter block at a program start is used.
• The parameter block change command cannot be described in the same block as
another command.
• If a cancel start is made during a parameter block change, the start program uses
the parameter block for execution of the start program.
6 - 126
PB pb;
Format Parameter block number
Parameter block change command
[Program Example]
1) When a parameter block change is made during PTP
N01 G00 X0.; Uses the parameter block at a program start.
N02 G00 X100.;
N03 PB3; Changes to parameter block 3.
N04 G00 X300.;
6 - 127
Changes the torque limit value to the specified value.
Code TL
[Explanation]
• 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 or W (2-word
data).
(After the TL code, the torque limit value in the parameter block is not used.)
• 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.
• At a home position return (G28), the torque limit value in the parameter block at a
program start is used.
• 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 the start program.
• 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.
• The torque limit value change (TL) is valid for all axes specified in SVST. 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.
• 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.
• 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.
6 - 128
TL t;
Format Torque limit value
Torque limit value change command
[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;
N03 G00 X200.; Controls at the torque limit value of 100%.
N04 G00 X300. TL300; Controls at the torque limit value of 300%.
6 - 129
Turns the specified device ON/OFF.
[Explanation]
• The specified device can be turned ON/OFF from the G code program.
6 - 130
SET #Yy;
ON device (Y, M)
Device ON command
RST #Yy;
Format
OFF device (Y, M)
Device OFF command
[Program Example]
1) SET #M0; Turns ON device M0.
2) RST #M0; Turns OFF device M0.
3) SET#Y10; Turns ON device Y10.
6 - 131
By describing this command in the conditional expression of
Code ON, OFF IF or WHILE, branches processing according to the ON/OFF
status of the specified bit device.
[Explanation]
• 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.
• 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.
• The bit devices usable in the ON/OFF command are X, Y, M, TC, TT, CC, CT, B and F.
• The ON/OFF command is available for the conditional expressions of the program
control functions (IF GOTO, IF THEN, WHILE).
6 - 132
IF [ON #M100] GOTO1;
Format ON/OFF device
(X, Y, M, TC, TT, CC, CT, B, F)
ON/OFF command (describe OFF for OFF)
*Conditional expression of IF THEN or WHILE can also be described similarly.
[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.
N03 G00 X0.;
2) Execution starts from the next line (THEN1 and later) if M100 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] DO2; Executes blocks within WHILE while M300 is OFF.
N02 G91 G01 X10. F100.;
N03 #10 = #10 + 1;
N04 END2;
N05 G90 G00 X0.; Executed when M300 turns ON.
6 - 133
7. AUXILIARY AND APPLIED FUNCTIONS
7−1
7. AUXILIARY AND APPLIED FUNCTIONS
The limit switch output function allows the A1SY42 output module or AY42 output
module to output ON/OFF signals corresponding to the positioning address set for
each axis.
Initial
Item Settings Remarks
Value
• −2147483648 to 2147483647 Units
−4 • Up to 10 points can
ON/OFF point (× 10 mm,× 10−5inch) 10-4mm
10-5inch 0 be set for each
setting • 0 to 35999999
−5 10-5degree axis.
(× 10 degree)
[Control Details]
(1) The limit switch function outputs the ON/OFF pattern from the A1SY42/ AY42
at the set addresses.
Before running the limit switch output function, the ON/OFF point addresses
and the ON/OFF pattern must be set from a peripheral device.
(Settings cannot be made by the sequence program.)
The number of limit switch outputs per axis and the ON/OFF points are as
follows:
(a) Number of limit switch output points .............8 points/axis,
total 64 points
(b) ON/OFF points...............................................10 points/axis
Set an address in the stroke limit
range for each point.
ON/OFF switching points 10 points/axis.
(Common for Point 1 through Point 8)
MIN MAX
1 2 3 4 5 6 7 8 9 10
ON
Point 1 OFF
ON
Point 2 OFF
ON
Point 3 OFF
ON
Point 4 OFF
8 points/axis ON
Point 5 OFF
ON ON
Point 6 OFF
ON
Point 7 OFF
ON
Point 8 OFF
7−2
7. AUXILIARY AND APPLIED FUNCTIONS
REMARK
The data in Table 7.1 is also valid during the test mode set by a peripheral
device.
(3) Cautions
(a) The limit switch output is based on the "feed present value" for each axis
after PC ready (M2000) turns ON and the PCPU ready flag (M9074) is ON.
All points turn OFF when the PCPU ready flag (M9074) turns OFF.
(b) While the PCPU ready flag (M9074) is ON and the feed present value is
outside the set stroke limits, the limit switch output is based on M1806 +
20n/M3206+20n.
Consequently, the user should apply an interlock to ensure that the
sequence program turns M1806 + 20n/M3206+20n ON inside the stroke
limit range only.
7−3
7. AUXILIARY AND APPLIED FUNCTIONS
The backlash compensation function compensates for the backlash amount in the
mechanical system. When the backlash compensation amount is set, extra pulses
equivalent to the backlash compensation amount are output after a change in
travel direction resulting from positioning control, JOG operation, or manual pulse
generator operation.
Feed screw
Workpiece
7−4
7. AUXILIARY AND APPLIED FUNCTIONS
POINTS
(1) The feed pulses equivalent to the backlash compensation amount are not
added to the feed present value.
(2) Home position return is required after the backlash compensation amount
is changed.
The original backlash compensation amount is retained until home
position return is carried out.
7−5
7. AUXILIARY AND APPLIED FUNCTIONS
The torque limit function controls the torque generated by the servomotor within the
set range.
The torque is controlled to the set torque limit value if the torque required during
positioning control exceeds the set limit value.
(1) Torque limit value set range
Set the torque limit value between 1% and 500% of the rated torque.
At a program start or jog start, the torque limit value can be changed from the
motion program or sequence program.
(1) At a program start or for jog operation, the torque limit value is changed to the
value in the specified parameter block.
(2) From the motion program, the TL or PB instruction is used to change the torque
limit value.
When the PB instruction is used, the torque limit value is changed to the one in
the specified parameter block.
(3) From the sequence program, the CHGT instruction (refer to Section 5.6) is
used to change.
[Control Details]
(1) The torque limit value at a motion program start or jog start is changed to the
value specified in the 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 the CHGT instruction.
[Program Example]
• It is supposed that before a program start, the torque limit value has been set to
300% for each axis in the CHGT instruction.
• The program is run with the torque limit value of the parameter block set to
200%.
• After execution of N1, the torque limit value is changed to 100% by the TL
instruction.
• During execution of N2, the torque limit values of the X and Y axes are changed
to 250% and 50%, respectively, by the CHGT instruction.
010;
G90;
N1 G00 X100. Y100.;
TL100;
N2 G00 X200. Y200.;
N3 G00 X300. Y300.;
M02;
%
7−6
7. AUXILIARY AND APPLIED FUNCTIONS
Speed
Time
Sequence No. N1 N2 N3
*1
Torque limit value (%)
200 100
Program command
CHGT 300 *2 50
instruction
Servo 300
Y axis 200
command
100
0 50
*1: Indicates the torque limit value changes from the program and CHGT and the resultant
command to the servo in %.
(1) The program command indicates a change of the torque limit value by the TL or PB
instruction at a SVST start. The torque limit value under the program command is given
to all the operating axes.
(2) Torque limit value changed by the CHGT instruction. Given to the corresponding axes.
(3) The servo command indicates the torque limit value given actually to the servo amplifier.
*2: When the CHGT instruction is not executed after power-on, the torque limit value is 300%.
Explanation
1) The torque limit value given at a program start is the lower value of the torque limit value of
the parameter block specified in the SVST instruction and the value in the preceding CHGT
instruction. In this case, the value is 200% in each axis.
2) The torque limit value of the TL instruction at N2 execution is 100% in each axis.
3) During N1 execution, the torque limit value is changed by the CHGT instruction to 250% in
the X axis and to 50% in the Y axis.
7−7
7. AUXILIARY AND APPLIED FUNCTIONS
The electronic gear function changes the travel value per pulse.
The electronic gear is set by setting the travel value per pulse (see Section 4.2.1).
Using the electronic gear function allows positioning control without the need to
select the encoder to match the mechanical system.
[Example]
Positioning speed
Servo motor
10[mm]
Motor n
m
n: m = electronic gear
7−8
7. AUXILIARY AND APPLIED FUNCTIONS
The relationship between the commanded speed (positioning speed set in the
servo program) and actual speed (actual positioning speed) is shown below for
different electronic gear settings.
• if electronic gear setting = 1, commanded speed = actual speed
• if electronic gear setting < 1, commanded speed < actual speed
• if electronic gear setting > 1, commanded speed > actual speed
V
Speed limit
value 1) electronic gear setting = 1
2) electronic gear setting < 1
2)
3) electronic gear setting > 1
Commanded
1)
speed
3)
t
Actual Actual
acceleration deceleration
time time
7−9
7. AUXILIARY AND APPLIED FUNCTIONS
The absolute positioning system can be used for positioning control when using an
absolute-position-compatible servomotor and MR-[ ]-B.
Home position return is not necessary using the absolute positioning system
because after the machine position is initially established at system startup, the
absolute position is sensed each time the power is turned on.
The machine position is established using a home position return initiated from the
sequence program or a peripheral device.
(1) Absolute position system startup procedure
The system startup procedure is shown below.
Absolute position system startup
For MR- -B
Connect CPU to absolute-position-
compateible MR- -B
Connect FLS, RLS, STOP etc. wiring to
A172SENC/A171SENC.
Turn On Power
Turn on the servo amplifier and servo
system CPU power.
7 − 10
7. AUXILIARY AND APPLIED FUNCTIONS
(2) In the absolute positioning system, the absolute position may be lost under the
following conditions:
Re-establish the absolute position using home position return or by aligning the
machine position and using present value change.
(a) After removing or replacing the battery unit.
(b) On occurrence of a servo battery error (detected at servo amplifier power
on).
(c) After the mechanical system is disturbed by a shock.
(3) Power OFF Allowed Traveling Points can be monitored in the system setting
mode of a peripheral device, and the present value history can be monitored in
the monitor mode.
(For details on monitoring Power OFF Allowed Traveling Points and the present
value history, refer to the operating manual for the peripheral device being
used.)
(a) Present value history monitor
1) Month/day/hour/minute
The time when a home position return is completed or the servo amplifier
power is turned ON or OFF is indicated.
In order to display the time correctly, it is necessary to first set the clock
data at the programmable controller side, then switch ON M9028 (clock
data read request) from the sequence program.
2) Encoder present value
When using MR-H-B (version BCD-B13W000-B2 or later) or MR-J2-B
(version BCD-B20W200-A1 or later), the multiple revolution data and
within-one-revolution data read from the encoder is displayed.
Note: For the encoder present value in the home position data area, the
encoder present value when the motor is within the in-position range
after completion of a home position return is displayed (not the
encoder value at the home position).
3) Servo command value
The command value issued to the servo amplifier is displayed.
4) Monitor present value
The present value controlled within the servo system CPU is displayed.
Note: A value close to the feed present value is displayed, but, since the
monitor present value and feed present value are different data, the
display of different values does not indicate an error.
5) Alarms
When an error involving resetting of the present value occurs while the
servo amplifier power is ON, an error code is displayed. For details of the
error, refer to the error contents area (related error list) at the bottom of
the screen.
CAUTION
After removing or replacing the battery unit, correctly install the new unit and establish the
absolute position.
After a servo battery error occurs, eliminate the cause of the error and ensure operation is safe
before establishing the absolute position.
After the mechanical system is disturbed by a shock, make the necessary checks and repairs,
and ensure operation is safe before establishing the absolute position.
7 − 11
7. AUXILIARY AND APPLIED FUNCTIONS
POINTS
(1) The address setting range in the absolute position system is -2147483648
to 2147483647. It is not possible to restore position commands that
exceed this limit, or present values after a power failure.
When performing an infinite feed operation, solve this problem by setting
the units to degrees.
(2) If the present value address is changed by the coordinate system setting
instruction (G92), the restored data of the present value after a power
failure is the value based on the status prior to execution of the
coordinate system setting instruction.
(3) When home position return has not been completed, restoration of the
present value after a power failure is not done properly.
7 − 12
7. AUXILIARY AND APPLIED FUNCTIONS
(1) Make a home position return when the machine origin must be checked, e.g. at
power-on.
(2) The following three methods are available for a home position return.
• Near-zero point dog type Used in other than an absolute position
• Count type system.
Recommended for use in an absolute position
• Data setting type ..............................
system.
(3) Before starting a home position return, the home position return data (refer to
Section 4.4) must be set to each axis.
[Control Details]
(1) Near-zero point dog type
The near-zero point dog type is a method in which the home position is a zero
point after the near-zero point dog has turned from ON to OFF.
Home position Home position return direction *When the near-zero point dog turns OFF,
Home positon return speed the axis is decelerated to a stop and then
V return start
positioned from there to the zero point.
Creep speed The distance to the zero point is
calculated on the basis of the
servo side data.
t
Fig. 7.3 Near-Zero Point Dog Type Home Position Return Operation
7 − 13
7. AUXILIARY AND APPLIED FUNCTIONS
[Cautions]
The following instructions are given for a near-zero point dog type home position
return.
(1) Keep the near-zero point dog ON until the axis decelerates from the home
position speed to the creep speed.
If the near-zero point dog turns OFF before the axis decelerates to the creep
speed, the axis decelerates to a stop and the next zero point is defined as a
home position.
(2) Adjust the position where the near-zero point dog turns OFF so that the "home
position return second travel" becomes half of the travel corresponding to one
motor revolution.
If the "home position return second travel" is not half of the travel corresponding
to one motor revolution, the home position may shift by one motor revolution as
shown below.
IMPORTANT
(1) In either of the following cases, make a home position return after
performing JOG operation or the like to return the axis to the position
before the near-zero point dog turned ON.
A home position return cannot be made without returning the axis to the
position before the near-zero point dog.
(a) Home position return in the position after the near-zero point dog has
turned from ON to OFF
(b) Home position return when power is switched from OFF to ON after
completion of a home position return
7 − 14
7. AUXILIARY AND APPLIED FUNCTIONS
[Control Details]
(1) Count type
The count type is a method in which the home position is a zero point in the
specified distance (travel after near-zero point dog ON) after the near-zero point
dog has turned ON.
Set the travel after near-zero point dog ON to the home position return data
(refer to Section 4.4).
[Cautions]
(1) The near-zero point dog should be turned OFF a sufficient distance away from
the home position.
(2) In the count type, you can execute a home position return on the near-zero
point dog or consecutive starts of a home position return.
When a home position return on the near-zero point dog or consecutive starts
of a home position return have been executed, the axis is returned to the OFF
position of the near-zero point dog once and makes a home position return.
7 − 15
7. AUXILIARY AND APPLIED FUNCTIONS
[Control Details]
(1) Data setting type
The data setting type is a method which does not use a near-zero point dog
and can be used in an absolute position system.
[Cautions]
(1) The axis must have passed through the zero point from power-on till the
execution of a home position return.
A "zero point non-passage error" occurs if a home position return is executed
without the axis passing through the zero point once. If the "zero point non-
passage error" has occurred, reset the error, perform JOG operation or the like
to run the servo motor one revolution or more, then make a home position
return again.
Whether the axis has passed through the zero point or not can be checked by
the zero pass signal (M1606+20n/M2406+20n).
(2) In a system other than an absolute position system, a data setting type home
position return start has the same function as a present value change.
(3) The home position return data used for the data setting type are the home
position return method and home position address.
7 − 16
7. AUXILIARY AND APPLIED FUNCTIONS
[Control Details]
(1) A home position return is made in the home position return method specified in
the home position return data (refer to Section 4.4). For details of the home
position return method, refer to the following sections.
• Near-zero point dog type .............Section 7.6.1
• Count type ...................................Section 7.6.2
• Data setting type..........................Section 7.6.3
[Cautions]
(1) After the PC ready flag (M2000) has turned ON, making a near-zero point dog
type home position return in the following ladder before the PCPU ready flag
(M9074) turns ON causes a home position return request to be given again
after a home position return.
When making a home position return, use M9074 and M1602+20n or
M2402+20n (in-position signal) as interlock conditions.
(Refer to the program example.)
7 − 17
7. AUXILIARY AND APPLIED FUNCTIONS
[Program Example]
A program using the DSFLP/CHGA instruction to make a home position return is
explained under the following conditions.
M9039
0 M2000 Turns ON PC ready.
M9074 Turns ON the all-axis servo
2 M2042
start command.
X0000 M9074 M2009 M9076 Turns ON the start command
4 PLS M0
flag (M1) of servo program No.
M0 0 when X000 turns from OFF
11 SET M1
to ON.
M9074 M1 M2004 M1662 P K
13 DSFL D4 2 Axis 4 home position return
execution request
RST M1 Turns OFF M1 on completion
of axis 4 home position return
CIRCUIT END execution request.
7 − 18
7. AUXILIARY AND APPLIED FUNCTIONS
[Control Details]
(1) The speed of an operating axis is forcibly changed to the speed specified in the
speed changing registers.
(2) A speed change is made using the DSFLP or CHGV instruction. Refer to
Section 5.4 for details of the DSFLP or CHGV instruction.
(3) A speed change should be made in the range - speed limit value to + speed
limit value. Error "305" will occur if it is made outside the range.
(4) Make the override invalid when making a speed change during positioning
control for program operation. When the override is valid, a speed change is
not made.
(6) A speed change during CP control (when the axis moves through mid points
consecutively during execution of G01, G02, G03 or G32) should be made
within the range -F command to +F command. If a speed change is made
outside the range, the speed is controlled by the F command.
(7) The F command after a speed change during CP control is made valid within
the range of not higher than the new speed.
(8) If a speed change is made during positioning control for program operation, the
new speed is used for operation up to the instruction in the next move block.
Depending on the type of the mode of the move block to be executed next,
whether the speed change value is maintained or the command speed in the
program will be used changes as indicated in Table 7.3.
7 − 19
7. AUXILIARY AND APPLIED FUNCTIONS
*1: A speed change is valid only for execution of move in the PTP or CP move mode.
*2: The PTP mode is a move mode executed under G00, G28, G30 or G53. The OSC mode is a move mode executed under G25.
*3: The CP mode is a move mode executed under G01, G2, G3 or G32. The independent M code is also handled as the CP mode.
*4: CP without special M code indicates that the special M code (M00, M01, M02, M30, M98, M99, M100) is not executed during the
CP mode after a speed change.
*5: CP with special M code indicates that the special M code (M00, M01, M02, M30, M98, M99, M100) is executed during the CP mode
after a speed change.
The axis decelerates to a stop as soon as the special M code is executed.
*6: The program command speed indicates the rapid feedrate in the PTP mode, the F (frequency) command in the OSC mode, or the
F (speed) command in the CP mode.
Example (CHGV executed during N1) Speed
010;
N1 G00 X100. ; Program command speed
N2 G00 X200. ;
Speed change value
M02;
% CHGV Time
N1 N2
Block switching
*7: The F (speed) command is used. Note that it is clamped at the speed change value.
Example (CHGV 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
7 − 20
7. AUXILIARY AND APPLIED FUNCTIONS
[Data setting]
(1) The speed changing registers of each axis are indicated below.
(A172SHCPUN/A171SHCPUN only)
<A172SHCPUN> <A171SHCPUN>
Speed Change Registers Speed Change Registers
Axis No. Axis No.
Upper Lower Upper Lower
1 D963 D962 1 D963 D962
2 D969 D968 2 D969 D968
3 D975 D974 3 D975 D974
4 D981 D980 4 D981 D980
5 D987 D986
6 D993 D992
7 D999 D998
8 D1005 D1004
(2) The setting ranges to the speed change registers are indicated below.
Unit mm inch degree
Item Setting range Unit Setting range Unit Setting range Unit
Speed change -2 -3 -3
0 to 600000000 ×10 mm/min 0 to 600000000 ×10 inch/min 0 to 2147483.647 ×10 degree/min
value
POINT
When setting the speed in a sequence program, store into the speed change
registers a value which is 100 times (unit: mm)/1000 times (unit: inch, degree)
the actual speed.
Example
To change the speed to 10000.00mm/min, store "1000000" into the
speed change registers.
[Cautions]
A speed change will not be made if any of the following errors occurs.
(A check is made at execution of the DSFLP/CHGV instruction.)
Error Definition Error Processing Error Code
Axis No. setting is other than 1 to 8/1 to
4. • Error step is stored into D9010 or D9011.
−
Axis No. setting is indirectly specified by • M9010 or M9011 turns ON.
Data setting
index qualification.
error
• Error detection flag (M1607+20n) turns ON.
Preset speed is outside the range 0 to
• Error code given on the right is stored into the minor 305
speed limit value.
error code storage register of the corresponding axis.
Specified axis was making home position
• Error detection flag (M1607+20n) turns ON. 301
Speed return.
• Error code given on the right is stored into the minor
change error Deceleration was being made due to OFF
error code storage register of the corresponding axis. 304
of the JOG operation signal.
(1) If a speed change is made, the preset speed is ignored in any of the following
cases. (An error will not occur.)
(a) During motion program execution
(b) During deceleration under the stop command
(c) During a stop
(d) During manual pulse generator operation
7 − 21
7. AUXILIARY AND APPLIED FUNCTIONS
[Operation Timing]
The operation timing for making a speed change is shown in Fig. 7.6.
V
Motion for JOG operation at V1
V1
V2
V3
DSFLP
[Program Example]
A program example for making a speed change is described under the following
conditions.
(1) Speed changing conditions
(a) Axis No. whose speed is changed................ Axis 4
(b) New speed.................................................... 5000
(c) Speed change command.............................. X000
7 − 22
7. AUXILIARY AND APPLIED FUNCTIONS
[Control Details]
(1) While the JOG operation signal is ON, JOG operation is performed using the
JOG operation speed setting register value. When the JOG operation signal
turns OFF, the axis decelerates to a stop.
Acceleration/deceleration is controlled in accordance with the data set to the
JOG operation data.
V Acceleration based
on "JOG operation JOG speed operation
data"
Deceleration to stop
based on "JOG
operation data"
t
ON
JOG operation signal OFF
(M1802+20n/M1803+20n)
(2) The following table lists the JOG operation signal, JOG operation setting
registers and setting range of each axis.
<A172SHCPUN/A171SHCPUN>
A172SHCPUN A171SHCPUN Setting range
JOG operation JOG operation
JOG operation speed setting JOG operation speed setting mm inch degree
No. registers registers
Forward Reverse Forward Reverse
rotation rotation Upper Lower rotation rotation Upper Lower Setting range Unit Setting range Unit Setting range Unit
JOG JOG JOG JOG
1 M1802 M1803 D965 D964 M1802 M1803 D965 D964
2 M1822 M1823 D971 D970 M1822 M1823 D971 D970
3 M1842 M1843 D977 D976 M1842 M1843 D977 D976
-2 -3 10-3
4 M1862 M1863 D983 D982 M1862 M1863 D983 D982 1 to 10 1 to 10 1 to
degree
5 M1882 M1883 D987 D986 − − − − 600000000 mm/min 600000000 inch/min 2147483647
/min
6 M1902 M1903 D993 D992 − − − −
7 M1922 M1923 D999 D998 − − − −
8 M1942 M1943 D1005 D1004 − − − −
7 − 23
7. AUXILIARY AND APPLIED FUNCTIONS
POINT
When setting the JOG operation speed in a sequence program, store into the
JOG operation speed setting registers a value which is 100 times (unit:
mm)/1000 times (unit: inch, degree) the actual speed.
Example
To set the JOG operation speed to 6000.00mm/min, store "600000" into
the JOG operation speed setting registers.
7 − 24
7. AUXILIARY AND APPLIED FUNCTIONS
[Cautions]
(1) Forward rotation JOG operation will be performed if the forward rotation JOG
signal (M1802+20n/M3202+20n) and reverse rotation JOG signal (M1803+20n/
M3203+20n) of one axis have turned ON at the same time.
When the axis is decelerated to a stop after the forward rotation JOG signal
has turned OFF, reverse rotation JOG operation is performed if the reverse
rotation JOG signal is ON.
V Forward rotation JOG operation
Stop
t
ON
Forward rotation JOG signal OFF Reverse rotation JOG operation
ON
Reverse rotation JOG signal OFF
Reverse rotation JOG
operation is ignored.
(2) If the JOG operation signal turns ON during deceleration due to OFF of the
JOG operation signal, the axis decelerates to a stop down to speed 0 and then
resumes JOG operation.
V JOG operation
JOG operation ON
signal OFF
(3) In the test mode using the peripheral device, JOG operation under control of
the JOG operation signal (M1802+20n/M1803+20n/M3202+20n/M3203+20n) is
not performed.
After the test mode is canceled, JOG operation is started on the leading edge
(OFF to ON) of the JOG operation signal.
As this is not leading edge of JOG
V JOG operation executed
operation signal, JOG operation
cannot be performed.
Because of test mode,
JOG operation cannot
be performed (starting error).
Test mode ON
(M9075) OFF
ON
JOG operation OFF
signal
7 − 25
7. AUXILIARY AND APPLIED FUNCTIONS
[Program Example]
A program for JOG operation is described under the following conditions.
M9039
0 M2000 Turns ON PC ready.
M9074
2 M2042 Turns ON all-axis servo start command.
X000 M9074 M2009 M9076 M2004 K Stores JOG operation speed 1000 into D982,
4 DMOV 1000 D982
D983 when X000 or X001 turns ON.
X001
SET M140 Turns ON M140 on completion of JOG
operation speed storage.
M140 X000 M1863
18 M1862 Performs forward rotation JOG operation.
M140 X001 M1862
22 M1863 Performs reverse rotation JOG operation.
X000 X001 Turns OFF M140 when X000 and X001 turn
26 RST M140
OFF.
CIRCUIT END
7 − 26
7. AUXILIARY AND APPLIED FUNCTIONS
Acceleration based on
V "JOG operation data"
JOG operation speed
Deceleration to stop
based on "JOG operation data"
t
JOG operation is
performed using
D1015 data.
D1015
ON
M2015 OFF
(2) Set the axes for JOG operation to the JOG operation simultaneous start axis
setting area (D1015).
(3) The following table lists the JOG operation speed setting registers.
A172SHCPUN A171SHCPUN Setting range
JOG operation JOG operation
JOG operation speed setting JOG operation speed setting mm inch degree
No. registers registers
Forward Reverse Forward Reverse
rotation rotation Upper Lower rotation rotation Upper Lower Setting range Unit Setting range Unit Setting range Unit
JOG JOG JOG JOG
1 M1802 M1803 D965 D964 M1802 M1803 D965 D964
2 M1822 M1823 D971 D970 M1822 M1823 D971 D970
3 M1842 M1843 D977 D976 M1842 M1843 D977 D976
-2 -2 10-2
4 M1862 M1863 D983 D982 M1862 M1863 D983 D982 1 to 10 1 to 10 1 to
degree
5 M1882 M1883 D987 D986 − − − − 600000000 mm/min 600000000 inch/min 2147483647
/min
6 M1902 M1903 D993 D992 − − − −
7 M1922 M1923 D999 D998 − − − −
8 M1942 M1943 D1005 D1004 − − − −
7 − 27
7. AUXILIARY AND APPLIED FUNCTIONS
[Program Example]
A program for simultaneous start of JOG operations is described under the
following conditions.
M9039
0 M2000 Turns ON PC ready.
M9074 Turns ON all-axis servo
2 M2042
start command.
X000 M9074 M2009 M9076 M2001 M2002 M2004 H
4 MOV 0803 D1015 Stores simultaneously started
axes into D1015 when X000 turns ON.
K
DMOV 1000 D964
Stores JOG operation speed into
K
DMOV 500 D970 JOG operation speed registers of
each axis.
K
DMOV 1000 D982
Turns ON M141 on completion of
SET M141 simultaneously started axis and JOG
operation speed setting.
X000 M141
38 M2015 Performs JOG operations.
X000 Turns OFF M141 when X000 turns
41 RST M141
OFF.
CIRCUIT END
7 − 28
7. AUXILIARY AND APPLIED FUNCTIONS
VAcceleration based on
"JOG operation data" JOG operation speed
Deceleration to stop
based on "JOG operation
data"
t
JOG operation is
performed using
D710 to D713 data.
D710 to D713
ON
M2048 OFF
(2) Set the axes for JOG operation to the JOG operation simultaneous start axis
setting areas (D710 to D713).
D712 Axis16 Axis15 Axis14 Axis13Axis12 Axis11Axis10 Axis9 Axis8 Axis7 Axis6 Axis5 Axis4 Axis3 Axis2 Axis1
Reverse rotation
JOG
D713 Axis32 Axis31 Axis30 Axis29Axis28 Axis27Axis26 Axis25 Axis24 Axis23 Axis22 Axis21 Axis20 Axis19 Axis18 Axis17
Make setting as follows when using the MOV instruction to perform forward rotation JOG
operation of axes 1 and 2 and reverse rotation JOG operation of axis 4.
7 − 29
7. AUXILIARY AND APPLIED FUNCTIONS
(3) The following table lists the JOG operation speed setting registers.
7 − 30
7. AUXILIARY AND APPLIED FUNCTIONS
Positioning control is exercised according to the number of pulses entered from the
manual pulse generator.
One manual pulse generator enables simultaneous operation of 1 to 3 axes and
the number of manual pulse generators connected is as follows.
Number of Connectable Manual Pulse Generators
A172SHCPUN/A171SHCPUN A273UHCPU (32-axis feature)/A173UHCPU(S1)
1 3
[Control Details]
• A172SHCPUN/A171SHCPUN
(1) The axes set to the manual pulse generator axis setting register are positioned
according to the pulse input from the manual pulse generator.
Manual pulse generator operation is made valid only when the manual pulse
generator enable flag is ON.
Manual Pulse Generator Axis Setting Register Manual Pulse Generator Enable Flag
D1012 M2012
(2) The travel and output speed of positioning control according to the input from
the manual pulse generator are as follows.
(a) Travel
The travel according to the pulses input from the manual pulse generator is
calculated by the following expression.
[Travel] = [travel per pulse] × [number of input pulses] × [manual pulse generator 1-pulse input magnification setting]
The travels per pulse in manual pulse generator operation are as indicated
below.
Unit Travel
mm 0.0001mm
inch 0.00001inch
degree 0.00001degree
When the unit is mm, the input of one pulse commands the travel of
(0.0001mm) × (1 pulse) × (manual pulse generator 1-pulse input
magnification setting).
(b) Output speed
In manual pulse generator operation, the axis is positioned at the speed
which meets the number of input pulses per unit time.
[Output speed] = [number of input pulses per 1ms] × [manual pulse generator 1-pulse input magnification setting]
7 − 31
7. AUXILIARY AND APPLIED FUNCTIONS
Make the following setting to control axes 3 and 4 by the manual pulse generator.
<A171SHCPUN>
Corresponding Axis
1-Pulse Input Magnification Setting Register Setting Range
No.
D1016 Axis 1
D1017 Axis 2
1 to 10000
D1018 Axis 3
D1019 Axis 4
(5) For the manual pulse generator 1-pulse input magnification which has been set,
the "manual pulse generator 1-pulse input magnification setting register" of the
corresponding axis is checked on the leading edge of the manual pulse
generator enable flag.
If the value is outside the setting range, the manual pulse generator axis setting
error storage register (D9187) and manual pulse generator axis setting error
flag (M9077) are set and the magnification is controlled as "1".
7 − 32
7. AUXILIARY AND APPLIED FUNCTIONS
(a) Operation
Manual pulse
generator input
V
V1
t t t t
Output speed (V1) = (number of input pulses/ms) (manual pulse generator 1-pulse input magnification setting)
Travel (L) = (travel per pulse) number of input pulses (manual pulse generator 1-pulse input magnification setting)
REMARKS
1) The travel per pulse of the manual pulse generator is as indicated below.
Setting unit mm :0.0001mm
inch :0.00001inch
degree :0.00001degree
(7) The definitions of errors at manual pulse generator operation data setting are
indicated below.
Error Definition Error Processing
• Only the digit in error is ignored.
Axis setting specified in any digit is other than 1 • The axes of the digits where any of 1 to 8/1 to 4
to 8/1 to 4. is set are made valid and perform manual pulse
generator operation.
• Axis of overlapped designation is ignored.
Axis set to manual pulse generator operation is
• Manual pulse generator operation specified first
specified.
is performed.
Setting is made in 4 or more digits. • All axes set are ignored.
7 − 33
7. AUXILIARY AND APPLIED FUNCTIONS
(1) The axes set to the manual pulse generator axis setting register are positioned
according to the pulse input from the manual pulse generator.
Manual pulse generator operation is made valid only when the manual pulse
generator enable flag is ON.
Manual Pulse Generator Connecting Manual Pulse Generator Axis Setting
Manual Pulse Generator Enable Flag
Position Registers
P1 D714, D715 M2051
P2 D716, D717 M2052
P3 D718, D719 M2053
(2) The travel and output speed of positioning control according to the input from
the manual pulse generator are as follows.
(a) Travel
The travel according to the pulses input from the manual pulse generator is
calculated by the following expression.
[Travel] = [travel per pulse] × [number of input pulses] × [manual pulse generator 1-pulse input magnification setting]
The travels per pulse in manual pulse generator operation are as indicated
below.
Unit Travel
mm 0.1µm
inch 0.00001inch
degree 0.00001degree
PULSE 1PULSE
When the unit is mm, the input of one pulse commands the travel of
(0.1µm) × (1 pulse) × (manual pulse generator 1-pulse input magnification
setting).
(b) Output speed
In manual pulse generator operation, the axis is positioned at the speed
which meets the number of input pulses per unit time.
[Output speed] = [number of input pulses per 1ms] × [manual pulse generator 1-pulse input magnification setting]
7 − 34
7. AUXILIARY AND APPLIED FUNCTIONS
D715 Axis32 Axis31 Axis30 Axis29Axis28 Axis27Axis26 Axis25 Axis24 Axis23 Axis22 Axis21 Axis20 Axis19 Axis18Axis17
7 − 35
7. AUXILIARY AND APPLIED FUNCTIONS
(5) For the manual pulse generator 1-pulse input magnification which has been set,
the "manual pulse generator 1-pulse input magnification setting register" of the
corresponding axis is checked on the leading edge of the manual pulse
generator enable flag.
If the value is outside the setting range, the manual pulse generator axis setting
error storage registers (D9185 to D9187) and manual pulse generator axis
setting error flag (M9077) are set and the magnification is controlled as "1".
(a) Operation
Manual pulse
generator input
V
V1
t t t t
Output speed (V1) = (number of input pulses/ms) (manual pulse generator 1-pulse input magnification setting)
Travel (L) = (travel per pulse) number of input pulses (manual pulse generator 1-pulse input magnification setting)
REMARKS
1) The travel per pulse of the manual pulse generator is as indicated below.
Setting unit mm :0.1 m
inch :0.00001inch
degree :0.00001degree
PULSE :1pulse
(7) The definitions of errors at manual pulse generator operation data setting are
indicated below.
Error Definition Error Processing
• Only the digit in error is ignored.
Axis setting specified in any digit is other than 1 • The axes of the digits where any of 1 to 32 is
to 32. set are made valid and perform manual pulse
generator operation.
• Axis of overlapped designation is ignored.
Axis set to manual pulse generator operation is
• Manual pulse generator operation specified first
specified.
is performed.
• Only three axes starting from the lower number
The axes set are 4 or more axes. of the manual pulse generator axis setting
registers are made valid and operated.
7 − 36
7. AUXILIARY AND APPLIED FUNCTIONS
[Cautions]
(1) The start acceptance flag turns ON for the axis set to manual pulse generator
operation.
Therefore, positioning control, home position return or the like cannot be started
by the servo system CPU or peripheral device.
Turn OFF the manual pulse generator enable flag after manual pulse generator
operation is finished.
(2) The torque limit value is fixed at 300% during manual pulse generator
operation.
(3) When the manual pulse generator enable flag is turned ON for the axis which is
being operated by positioning control, JOG operation or the like, error 214 is set
to the corresponding axis and manual pulse generator input is not enabled.
After the axis has stopped, the rise of the manual pulse generator enable flag is
made valid to enable the manual pulse generator input, and the start
acceptance flag turns ON to import the input from the manual pulse generator.
(4) If the manual pulse generator enable flag of another manual pulse generator is
turned ON for the axis which is performing manual pulse generator operation,
error 214 is set to the corresponding axis and input is not enabled for that
manual pulse generator. After the manual pulse generator operation enabled
for input first has stopped, turn ON the manual pulse generator enable flag
again.
(5) If, after the manual pulse generator enable flag has been turned OFF, the
manual pulse generator enable flag is turned ON again for the axis which is
making smoothing deceleration, error 214 is set and manual pulse generator
input is not enabled. After the axis has stopped after smoothing deceleration
(the start acceptance flag has turned OFF), turn ON the manual pulse
generator enable flag.
(6) If, after the manual pulse generator enable flag has been turned OFF, you set
another axis and turn ON the same manual pulse generator enable flag during
smoothing deceleration, 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 (D9187/D9185 to D9187) turns ON
and the manual pulse generator axis setting error flag (M9077) turns ON. As
the condition to turn ON the manual pulse generator enable flag, provide OFF
of the start acceptance flag of the specified axis as an interlock.
7 − 37
7. AUXILIARY AND APPLIED FUNCTIONS
[Program Example]
A program for manual pulse generator operation is described under the following
conditions.
M9039
0 M2000 Turns ON PC ready.
M9074 Turns ON the all-axis servo
2 M2042
start command.
X000 M9074 M2009 M9076 Detection of the leading
4 PLS M140
edge (OFF to ON) of X000
M9074 M140 M2001 K Sets the axis (axis 1) operated
11 MOV 1 D1012
by the manual pulse generator.
K
MOV 100 D1016 Manual pulse generator 1-pulse
input magnification of axis 1
SET M2012 Turns ON the manual pulse
generator enable flag.
X001
25 PLS M141 Turns OFF the manual pulse
M141 generator enable flag when
29 RST M2012 X001 turns ON.
CIRCUIT END
7 − 38
7. AUXILIARY AND APPLIED FUNCTIONS
END
7 − 39
7. AUXILIARY AND APPLIED FUNCTIONS
With the override ratio setting function, you can set the ratio of override to the
command speed in a motion program to change the speed.
[Control Details]
(1) To the command speed in a motion program, set the override ratio in the range
0 to 100% in 1% increments. The value obtained by multiplying the command
speed by the override value is the actual feedrate.
[Data Setting]
(1) Use the override ratio setting register to change the speed with the override
ratio setting function.
The following table lists the override ratio setting register of each axis.
<A172SHCPUN/A171SHCPUN>
Axis No. Override Ratio Setting Register
1 D500
2 D506
3 D512
4 D518
5 D524
6 D530
7 D536
8 D542
(2) Set the ratio to the override ratio setting register in the range 0 to 100%.
(3) When the override ratio enable/disable (M1505+10n) is ON, the content of the
override ratio setting register is valid. When M1505+10n is OFF, the speed is
controlled at the override ratio of 100%.
7 − 40
7. AUXILIARY AND APPLIED FUNCTIONS
[Cautions]
(1) When the DSFRP/SVST instruction is executed, the override ratio setting
register data of the operating axis having the lowest number is made valid.
[Example]
Axis 2, 3, 4 start instruction
• When the above DSFRP/SVST instruction is executed, the data of axis 2 is made
valid. (The data of axes 3, 4 are made invalid.)
(2) When the speed is changed by the override ratio setting function,
acceleration/deceleration processing is performed according to the
"acceleration time" and "deceleration time" in the parameter block.
(3) The override ratio setting is valid only for motion program operation. (Invalid for
JOG operation and so on.)
(4) The definitions of errors at override ratio data setting are indicated below.
Error Definition Error Processing Error Code
At a start, the value set in the override ratio setting • Operation is performed at 100%.
190
register is other than 0 to 100%. (Operation is performed at command speed in
During operation, the value set in the override ratio motion program.)
290
setting register is other than 0 to 100%.
[Operation Timing]
The speed change timing by the override ratio setting function is shown in Fig. 7.7.
V
Command speed
Operation performed at 75%
100% in second block Operation performed at 50%
in third block
50%
t
Override ratio
setting register 100 25 0 50 75 50
1st block start 1st block 1st block completion 2nd block 3rd block
Override ratio changed to 50% before a
start of third block.
7 − 41
7. AUXILIARY AND APPLIED FUNCTIONS
[Program Example]
A program example using the override ratio setting function is described under the
following conditions.
M9039
0 M2000 Turns ON PC ready.
X0 Detection of the leading edge (OFF to ON)
2 PLS M151
of X000
M151
6 SET M152 Turns ON M152 (override ratio execution
command flag) on the leading edge of X000.
M152 M9074 M2021 P K
8 MOV 50 D500 Stores 50 into the override ratio setting
register (D500) of axis 1.
RST M152 Turns OFF M152 on completion of the axis
M9074 1 override ratio setting.
19 M2042 Turns ON the all-axis servo start command.
X1 M9074 M2009 M9076
21 PLS M0 Turns ON the start command flag (M1) of
M0 motion program No. 100 when X1 turns
28 SET M1 from OFF to ON.
M1 M9074 M2001 M2002 M2003 K
30 SVST J1J2J3 100 Motion program No. 100 execution request
Turns OFF M1 on completion of the motion
RST M1
program No. 100 execution request.
X2 Start acceptance flags
49 M1505 Turns ON X2 to make the override ratio
valid before the motion program is started.
CIRCUIT END
7 − 42
7. AUXILIARY AND APPLIED FUNCTIONS
[Data Setting]
(1) The FIN signal and M code outputting signal correspond to the following
devices of each axis.
<A172SHCPUN/A171SHCPUN>
Axis No. 1 2 3 4 5 6 7 8
A172SHCPUN M1819 M1839 M1859 M1879 M1899 M1919 M1939 M1959
FIN signal
A171SHCPUN M1819 M1839 M1859 M1879 − − − −
M code A172SHCPUN M1619 M1639 M1659 M1679 M1699 M1719 M1739 M1759
outputting signal A171SHCPUN M1619 M1639 M1659 M1679 − − − −
[Program Example]
7 − 43
7. AUXILIARY AND APPLIED FUNCTIONS
[Cautions]
(1) The M code outputting signal turns OFF when the stop command (external,
M1800+20n, M1801+20n), cancel signal or skip signal is entered.
(2) When the M code is set to the last point, positioning is completed after the FIN
signal is turned from OFF to ON to OFF.
(3) When the FIN waiting function is used , a shift to a point is made under the
command before acceleration or deceleration. (Refer to the chart in (6) 2).)
(4) During interpolation, the M code outputting signal is output to all interpolation
axes.
When inputting the FIN signal to interpolation axes, turn ON the signal of any of
the interpolation axes.
Note that 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 waiting function is executed.
Example: When the FIN waiting function for point 1 is executed with the signal for the
second axis kept ON
Point in execution 1 FIN waiting 2
M code 10 11
(D**)
M code outputting
(M1619+20n)
FIN signal (1st axis)
(M1819)
FIN signal (2nd axis)
(M1839)
When FIN signal for second axis turns OFF,
M code outputting signal turns ON.
Since FIN signal for second axis is ON, M code
output signal does not turn ON.
7 − 44
7. AUXILIARY AND APPLIED FUNCTIONS
(6) When the FIN waiting function is used, the command in-position signal is output
as described below.
1) When automatic deceleration is started by positioning to the executed point
(including the last point) during FIN waiting
If the difference between the positioning address (command position) of the
executed point and the feed present value falls within the command in-
position range during FIN waiting, the command in-position signal
(M1603+20n/M2403+20n) turns ON.
When the axis moves to the next point, the command in-position signal turns
OFF.
Automatic deceleration
Command in-position setting value
M code 10 11
(D**)
M code outputting
(M1619+20n)
FIN signal
(M1819+20n)
Command in-position
(M1603+20n)
2) When the axis moves to the next point without automatic deceleration being
made by positioning to the executed point during FIN waiting
If the axis moves to the next point without automatic deceleration, the
command in-position signal does not turn ON.
M code 10 11 12
(D**)
M code outputting
(M1619+20n)
FIN signal
(M1819+20n)
Command in-position
(M1603+20n)
7 − 45
7. AUXILIARY AND APPLIED FUNCTIONS
POINT
In the fixed acceleration/deceleration mode, the time required for acceleration/deceleration is fixed at different
speeds.
V
(1) In the fixed acceleration/deceleration mode, the following processing and parameters are invalid.
• Deceleration time and rapid stop deceleration time in parameter block
• S-pattern acceleration/deceleration
(2) When positioning operation (constant-speed control) as shown below is to be performed, speed processing of
each axis is as shown below.
Y V
Ay
Axis 1
Axis 2
Address Ax
X t
Axis 1 Ax Ax
V
Positioning operation
Axis 2
Address Ay
t
Ay
Constant-Speed Control Processing of Each Axis
7 − 46
7. AUXILIARY AND APPLIED FUNCTIONS
[Control Details]
Single block mode
OFF ON
Single block start
Push button
During continuous operation, turn ON the single block mode signal and turn the
single block start signal from OFF to ON to start single block operation at any point
during operation.
(1) Single block signal devices
The following signals are related to the single block function.
Device No.
Signal Name A273UHCPU (32-axis Signal Direction
A172SHCPUN/A171SHCPUN
feature)/A173UHCPU
Single block in progress M1409 M4009 SCPU ← PCPU
Single block mode M1508 M4408
SCPU → PCPU
Single block start M1509 M4409
These signals are valid for all program operations executed concurrently.
1) Single block in progress (M1409/M4009)
The single block in progress signal indicates that the single block function
can be executed. When the single block in progress signal is ON, the single
block function is executed. When the single block in progress signal is OFF,
turn the SVST start or single block start signal from OFF to ON to start
continuous operation.
When the single block mode signal is turned ON, the single block in progress
signal turns ON.
When the single block mode signal is turned OFF and the single block start
signal is then turned from OFF to ON, the single block in progress signal
turns OFF.
2) Single block mode (M1508/M4408)
The single block mode signal is designed to make the single block function
valid.
3) Single block start (M1509/M4409)
The single block start signal is designed to start a program in a single block
waiting status.
7 − 47
7. AUXILIARY AND APPLIED FUNCTIONS
Start acceptance
SVST
Continuous
operation from
N3
Executed sequence No. N1 N2 N3 N4
7 − 48
7. AUXILIARY AND APPLIED FUNCTIONS
Start acceptance
SVST
7 − 49
7. AUXILIARY AND APPLIED FUNCTIONS
During N1 execution, the single block in progress signal is turned ON. If the macro
instructions in up to N5 have been preread at this time, making a single block start for
one block changes the executed sequence No. from N1 to N5.
[Cautions]
(1) Single block mode (M1508/M4408) and single block command
(M1503+10n/M4403+10n)
If the single block mode signal (M1508/M4408) and single block command
(M1503+10n/M4403+10n) are used to execute the single block function
simultaneously, the operation performed by the single block command
(M1503+10n/M4403+10n) is made invalid.
(2) Emergency stop, stop command, rapid stop command and error when single
block in progress is ON
When the single block in progress signal is ON, it does not turn OFF if an
emergency stop is made, the stop command or rapid stop command is given,
or an error occurs.
The single block in progress signal turns OFF by turning OFF the single block
mode signal and then turning the single block start signal 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 in progress signal is ON, the
automatically operating signal (M1402+10n/M4002+10n) does not turn OFF. At
this time, the command in-position signal (M1603+20n/M2403+20n) turns ON.
7 − 50
7. AUXILIARY AND APPLIED FUNCTIONS
The following functions have been added to provide enhanced present value
control when the ABS encode is used.
(1) Enhanced functions
(a) Function for checking the validity of an encoder during operation
• Checks whether encoder's variance in a 3.5ms time interval is within 180
degrees at the motor axis. (An error is indicated when the variance is not
within 180 degrees.)
• Checks whether encoder data matches feed-back positions managed by
the servo amplifier. (An error is indicated when the data does not match
the feed-back positions.)
(b) Present value log monitor for checking the following values with peripheral
devices
• Encoder present value, servo commanded value, and monitor present
value (mechanical value) at power-on sequence
• Encoder present value, servo commanded value, and monitor present
value (mechanical value) at power-off sequence
• Encoder present value, servo commanded value, and monitor present
value (mechanical value) at home position return
(c) If an allowable travel value is set at power-off sequence, whether encoder
data has changed exceeding the setting range at power-off sequence can
be checked at servo amplifier power-on sequence. (An error is indicated
when the encoder data has exceeded the setting range.)
7 − 51
7. AUXILIARY AND APPLIED FUNCTIONS
This function stores the designated positioning data in the designated device (D,
W) with the signal from an input module mounted on the motion base as the
trigger.
It can be set in the system setting of a peripheral device software package.
(1) Positioning data that can be set
1. Positioning command
2. Actual present value
3. Position droop
4. M codes
5. Torque limit value
6. Motor current
7. Motor rpm
8. Servo command value
7 − 52
APPENDICES
APPENDICES
CAUTION
When an error occurs, check the points stated in this manual and reset the error.
The list presented below gives the error numbers, and the error contents, causes,
and corrective actions for each error message.
"MISSING END INS." (1) There is no END (FEND) instruction in the program. (1) Write an END instruction at the end
(2) When a subprogram is set in the parameters, there of the program.
When M9056 or M9057 is ON. is no END instruction in the subprogram.
On switching from 12 Stopped
STOP RUN
to
PAUSE STEP RUN
"CAN'T EXECUTE (P)" (1) The jump destination designated with a (1) Read the error step with a
CJ/SCJ/CALL/CALLP/JMP instruction does not exist, peripheral device, and correct the
or more than one exists. program at that step.(Correct, for
(2) There is a CHG instruction but no subprogram is set. example, by inserting a jump
(3) Although there is no CALL instruction, there is a destination, or making sure there is
RET instruction in the program and is has been only one jump destination.)
executed.
(4) A CJ/SCJ/CALL/CALLP/JMP instruction whose jump
destination is at or beyond the END instruction has
been executed.
13 Stopped (5) The number of FOR instructions does not match the
number of NEXT instructions.
(6) A JMP instruction has been included between a
FOR and NEXT command, exiting the FOR - NEXT
sequence.
When a CJ/SCJ/JMP/CALL(P)/ (7) The subroutine has been exited by execution of a
FOR-NEXT instruction is executed. JMP instruction before execution of a RET
On switching from instruction.
STOP RUN (8) Execution of a JMP instruction has caused a jump
to
PAUSE STEP RUN into a step in a FOR - NEXT range, or into a
subroutine.
APP − 1
APPENDICES
APP − 2
APPENDICES
"FUSE BREAK OFF" There is an output module with a blown fuse. (1) Check the blown fuse indicator
LEDs of the output modules and
replace the fuse of the module
whose indicator LED is lit.
(2) Modules with blown fuses can also
RUN be detected by using a peripheral
32 device.
(Stopped)
The bit in special registers D9100
to D9107 that corresponds a
When an END instruction is executed. module whose fuse has blown will
However, no check is performed when be set to "1": monitor these
M9084 or M9094 is ON. registers to check.
"CONTROL-BUS ERR." FROM, TO instructions cannot be executed. (1) There is a hardware fault of the
(1) Fault in the control bus to the special function special function module, CPU
module. module, or base unit: replace each
module/unit to find the defective
When FROM, TO instruction are one.
40 Stopped
executed. On switching on the power Contact your nearest Mitsubishi
or resetting. On switching from service center, agent, or office, and
STOP RUN explain the problem with the
to
PAUSE STEP RUN defective module/unit.
"SP.UNIT DOWN" On execution of a FROM, TO instruction, a special There is a hardware fault in the
function module was accessed but no response was accessed special function module:
When FROM, TO instruction are received. contact your nearest Mitsubishi service
executed. On switching on the power (1) The accessed special function module is faulty. center, agent, or office, and explain the
41 Stopped
or resetting. On switching from problem.
STOP RUN
to
PAUSE STEP RUN
"LINK UNIT ERROR" (1) A data link module for use with MELSECNET has (1) Remove the data link module for
been loaded at the master station. MELSECNET from the master
On switching on the power or resetting. station.
On switching from 42 Stopped After making this correction, reset
STOP RUN and start operation from the initial
to status.
PAUSE STEP RUN
"I/O INT.ERROR" An interruption has occurred although there is no (1) There is a hardware fault in one of
interrupt module. the modules: replace each module
in turn to determine which one is
43 Stopped defective. Contact your nearest
Mitsubishi service center, agent, or
office, and explain the problem with
(When an interruption occurs.) the defective module.
"SP.UNIT LAY.ERR." (1) Three or more computer link modules have been (1) Do not install more than two
installed for one CPU module. computer link modules.
(2) Two or more data link modules for MELSECNET (2) Do not install more than one data
have been installed. link module for MELSECNET.
44 Stopped (3) Two or more interrupt modules have been installed. (3) Install only one interrupt module.
On switching on the power or resetting. (4) In the parameter settings made at a peripheral (4) Re-set the I/O allocations in the
On switching from device, an allocation for a special function module parameter settings made at the
STOP RUN has been made where there is in fact an I/O module, peripheral device so that they
to
PAUSE STEP RUN or vice versa. agree with the loaded modules.
APP − 3
APPENDICES
"OPERATION ERROR" (1) The result of BCD conversion is outside the (1) Read the error step with a
stipulated range (max. 9999 or 99999999). peripheral device, and correct the
RUN (2) A setting exceeding the stipulated device range has program at that step.
50
(Stopped) been made and operation is therefore impossible. (Check the device setting range,
(3) A file register has been used in the program without BCD conversion value, etc.)
(When a command is executed) having made a file register capacity setting.
"BATTERY ERROR" (1) The battery voltage has fallen below the stipulated (1) Replace the battery.
value. (2) If the battery is used to back up the
(2) The battery's lead connector has not been installed. RAM memory or to retain memory
At any time 70 RUN contents during momentary power
However, no check is performed when interruptions, install a lead
M9084 is ON. connector.
APP − 4
APPENDICES
Minor error D806 D826 D846 D866 D886 D906 D926 D946
M1607+20n
Major error D807 D827 D847 D867 D887 D907 D927 D947
Servo error D808 D828 D848 D868 D888 D908 D928 D948 M1608+20n
APP − 5
APPENDICES
Minor error D166 D186 D206 D226 D246 D266 D286 D306
M2407+20n
Major error D167 D187 D207 D227 D247 D267 D287 D307
Servo error D168 D188 D208 D228 D248 D268 D288 D308 M2408+20n
Minor error D326 D346 D366 D386 D406 D426 D446 D466
M2407+20n
Major error D327 D347 D367 D387 D407 D427 D447 D467
Servo error D328 D348 D368 D388 D408 D428 D448 D468 M2408+20n
Minor error D486 D506 D526 D546 D566 D586 D606 D626
M2407+20n
Major error D487 D507 D527 D547 D567 D587 D607 D627
Servo error D488 D508 D528 D548 D568 D588 D608 D628 M2408+20n
(c) If another error occurs after an error code has been stored, the existing
error code is overwritten, deleting it.
However, it is possible to check the history of error occurrence by using a
peripheral device started up with the GSV43P software.
(d) Error detection flags and error codes are latched until the error code reset
signal (M1807+20n/M3207+20n) or servo error reset signal
(M1808+20n/M3208+20n) comes ON.
POINTS
(1) When some servo errors occur, the same error code will be stored again
even if the servo error reset signal (M1808+20n/M3208+20n: ON) is
issued.
(2) When a servo error occurs, reset the servo error after first eliminating the
error cause at the servo side.
APP − 6
APPENDICES
The error codes, error definitions and corrective actions for motion program setting
errors are indicated in Table 2.4.
APP − 7
APPENDICES
Minor errors are those that occur in the sequence program or servo program.
The error codes for these errors are from 1 to 999.
Minor errors include set data errors, positioning control start-up errors, positioning
control errors, and control change errors.
(1) Set 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.5 below.
POINT
Sometimes, if the interpolation control unit designated in the parameter block
and the control unit designated in the fixed parameters are different, no error
code is stored; this depends on the combination of units designated.
For details, see Section 6.6.6.
APP − 8
APPENDICES
Error
Error Cause Error Processing Corrective Action
Code
Positioning
JOG
• The PC ready flag (M2000) or PCPU ready • Set the servo system CPU to RUN.
100 ! ! ! ! flag (M9074) is OFF. • Turn the PC ready flag (M2000) ON.
• The start accept flag (M2001 to • Provide an interlock in the program to prevent
M2008/M2001 to M2004) of the relevant axis the axis from being started while in motion
101 ! ! ! !
has been turned ON. (use the turning OFF of the start accept
signal for the axis as the interlock condition).
• The stop command (M1800+20n) of the • Turn the stop command (M1800+20n) OFF
103 ! ! ! !
relevant axis has been turned ON. and start positioning.
• The rapid stop command (M1801+20n) of the • Turn the rapid stop command (M1801+20n)
104 ! ! ! !
relevant axis has been turned ON. OFF and start positioning.
• On starting, the feed present value is outside • Move back inside the stroke range using JOG
the stroke limit range. operation.
105 ! • Enter inside the stroke range by executing a
home position return or present value
change.
• Positioning outside the stroke limit has been • Positioning end point must be within the
106* !
designated. specified stroke limit.
• An address that does not generate an arc • Designate correct addresses in the servo
was designated in circular interpolation for program.
which an auxiliary point is designated.
107 !
Error in relationship between the start
point, auxiliary point, and end point
Positioning control does not start.
• An address that does not make an arc was
designated in circular interpolation for which
a radius is designated.
108* !
Error in relationship between the start
point, auxiliary point, and end point
APP − 9
APPENDICES
Table 2.6 Positioning Control Start-Up Error List (100 to 199) (Continued)
Control Mode
Manual Pulse Generator
Error Error
Error Cause Corrective Action
Code Processing
Positioning
JOG
APP − 10
APPENDICES
Error
Error Cause Error Processing Corrective Action
Code
Positioning
JOG
• The PC ready flag (M2000) was turned OFF • Turn the PC ready flag (M2000) ON after all
while positioning was being started in axes have stopped.
200 ! ! !
response to a start request issued by a
sequence program.
• The PC ready flag (M2000) was turned OFF Axis motion decelerates to a stop. • After turning the PC ready flag (M2000) ON
201 !
during a home position return operation. or turning the stop command (M1800+20n) or
• The stop command (M1800+20n) has been rapid stop command (M1801+20n) OFF, re-
202 ! turned ON during a home position return attempt home position return.
operation.
In the case of a near-zero-point dog
• The rapid stop command (M1801+20n) has type home position return, use JOG
been turned ON during a home position
operation or positioning operation to
return operation.
203 ! Axis motion stops immediately., return the axis to the point before the
near-zero-point dog signal was output,
and re-attempt home position return.
• The PC ready flag (M2000) was turned back • Turn the PC ready flag (M2000) ON after all
ON during deceleration initiated by turning axes have stopped.
204 ! ! ! ! OFF the PC ready flag (M2000). No processing Turning ON the PC ready flag (M2000)
during deceleration is ignored.
• While a home position return operation was • In the case of a near-zero point dog type
in progress, an emergency stop was executed home position return, use JOG operation or
in the test mode at a peripheral device by positioning operation to return the axis to the
pressing the [Back Space] key. point before the near-zero point dog signal
was output, and re-attempt home position
return.
• If the near-zero point dog signal is turned
OFF when executing a count type home
position return, use JOG operation or
206 ! Axis motion stops immediately. positioning operation to return the axis to the
point before the near-zero point dog signal
was output, and re-attempt home position
return.
In the near-zero-point dog signal is
turned ON when executing count type
home position return, re-attempt the
home position return.
• The feed present value exceeded the stroke • Correct the stroke limit or travel value setting
limit during positioning. so that positioning is executed within the
In the case of circular interpolation, an error stroke limit.
code is stored only for axes whose feed
207 ! !
present value exceeded the stroke limit.
In the case of linear interpolation, error codes
are stored for all axes involved in the
interpolation.
• During circular interpolation or during
simultaneous operation of multiple manual
Axis motion decelerates to a stop.
208 ! ! pulse generators, the feed present value of
another axis exceeded the stroke limit value.
(For detection of other axis errors).
• An overrun has occurred because the set • Correct the speed setting so that overrun
travel value exceeds the deceleration does not occur.
distance when a speed/position change • Set a travel value which will not cause an
209 ! (CHANGE) signal is input during overrun.
speed/position switching control, or when the
near-zero-point dog signal is input during
count type home position return.
APP − 11
APPENDICES
Error
Error Cause Error Processing Corrective Action
Code
Positioning
JOG
• During positioning, an overrun occurs • Set a speed at which overrun does not occur.
because the deceleration distance for the • Set a travel value which will not cause an
211 ! output speed is not attained at the point Axis motion decelerates to a stop. overrun.
where the final positioning address is
detected.
• An attempt was made to control an axis • Perform the manual pulse generator
already being moved by the manual pulse The manual pulse generator input is ignored operation after the axis has stopped.
214 !
generator by setting the manual pulse until the axis stops.
generator operation enable flag for that axis.
• At a start, the override ratio is outside the • Set the override ratio within the range 0 to
290 ! Operation is performed at 100%.
range 0 to 100%. 100%.
APP − 12
APPENDICES
(4) Errors occurring at speed changes and torque limit value changes (300 to 399)
The errors shown in this section are those that occur on execution of speed
changes and torque limit value changes.
Error codes, causes, processing, and corrective actions are shown in table 2.8.
Table 2.8 List of Errors that Occur at Speed Changes and Torque Limit Value Changes
Control Mode
Manual Pulse Generator
Error
Error Cause Error Processing Corrective Action
Code
Positioning
JOG
• An attempt was made to change the speed of • The speed of an axis executing a home
301 !
an axis executing a home position return. position return cannot be changed.
• An attempt was made to change the speed of • The speed of an axis cannot be changed after
303 ! an axis after automatic deceleration had automatic deceleration has started.
started in positioning. The speed is not changed.
• An attempt was made to change the speed of • Do not attempt a speed change during
an axis during deceleration initiated by deceleration initiated by turning OFF the JOG
304 !
turning OFF the JOG operation start signal operation start signal (M1802+20n,
(M1802+20n, M1803+20n). M1803+20n).
• The speed to be changed to in a speed • Set the speed within the range from 0 to the
! change was set outside the range of 0 to the speed limit value.
speed limit value.
305 The speed is kept at the speed limit value.
• The absolute value of speed to be changed to • Set the absolute value of speed within the
! in a speed change was set outside the range range from 0 to the speed limit value.
of 0 to the speed limit value.
• A speed change was attempted during high- • Do not perform speed changes during high-
speed oscillation. speed oscillation.
310 The speed is not changed.
• A speed change to "0" request was issued
during high-speed oscillation.
• A value outside the range 1 to 500% was set • Make a change request within the range 1 to
311 in the torque limit value change request 500% .
(CHGT). The torque limit value is not changed.
• A torque limit change request (CHGT) was • Make a change request for a started axis.
312
made for an axis not started yet.
APP − 13
APPENDICES
Error
Error Cause Error Processing Corrective Action
Code
Positioning
JOG
APP − 14
APPENDICES
Table 2.9 Motion Program Running Error (500 to 599) List (Continued)
Control Mode
Manual Pulse Generator
Error
Error Cause Error Processing Corrective Action
Code
Positioning
JOG
• The command format in the motion program • Reconsider the motion program. Reconsider
560 !
is not correct. the argument following G**.
• There is no M02/M30 at the end of the motion • Put M02, M30 or M99 before %.
562 ! program. There is no M99 at the end of the
subprogram.
• For the tool length offset (G43, G44) • Reconsider the offset data number.
command, the offset data number is not
570 !
specified.
The offset data number is not correct. Deceleration to stop
• For the tool length offset (G43, G44) or tool • Specify the axis corresponding to
offset cancel (G49) command, the axis compensation.
571 !
corresponding to compensation is not
specified.
• The command beyond the preset stroke • Give the command within the preset stroke
580 !
range was executed. range.
• The move command was given to the high- • Do not give the move command to the high-
581 !
speed oscillation operation axis. speed oscillation operation axis.
• High-speed oscillation cancel was given to No processing • High-speed oscillation cancel is invalid.
582 ! the axis which was not operating in high-
speed oscillation.
584 ! • Cancel start (G24) program number error • Reconsider the motion program number.
• High-speed oscillation (G25) amplitude range • Reconsider the high-speed oscillation (G25)
585 !
error amplitude range.
• High-speed oscillation (G25) starting angle • Reconsider the high-speed oscillation (G25)
586 !
range error starting angle range.
• High-speed oscillation (G25) frequency range • Reconsider the high-speed oscillation (G25)
587 !
error frequency range.
591 ! • A fault occurred in the system. Deceleration to stop • Consult your sales representative.
• The axis name is incorrect. • Use X, Y, Z, U, V, W, A, B, C.
592 ! Match the axis name with the one in the
system settings.
• 0 number designated in the specified motion • Reconsider the 0***; part.
593 !
program is incorrect.
• The axis not specified in SVST is specified in • Reconsider the SVST instruction.
594 !
the motion program. Reconsider the motion program.
Error
Error Cause Error Processing Corrective Action
Code
Positioning
JOG
• When the servo amplifier power is switched • Correct the motor type setting in the system
ON, the motor type set in the "system settings.
900 settings" differs from the motor type actually
installed.
(Checked only when using MR-J2-B)
Further operation is impossible.
• When the servo amplifier power is switched • Check the position.
ON, the motor travel value while the power Check the encoder battery.
901 was OFF is found to have exceeded the
"Power OFF Allowed Traveling Points" setting
made in the system settings.
APP − 15
APPENDICES
Major errors are caused by external input signals or by control commands from the
SCPU. The error codes for major errors are 1000 to 1999.
Major errors consist of control start-up errors, positioning errors, absolute system
errors, and system errors.
(1) Positioning control start-up errors (1000 to 1099)
The errors shown in this section are those detected when positioning control is
started.
Error codes, error causes, error processing and corrective actions are shown in
Table 2.11.
Error
Error Cause Error Processing Corrective Action
Code
Positioning
JOG
• The external stop signal of the corresponding • Turn OFF the STOP signal.
1000 ! ! ! !
axis was turned ON.
• When positioning was started in the forward • Move the axis in the reverse direction in the
1001 ! ! ! direction (addresses increasing), the external JOG mode until it enters the external limit
FLS (upper limit LS) signal was turned OFF. range.
• When positioning was started in the reverse • Move the axis in the forward direction in the
1002 ! ! ! direction (addresses decreasing), the external JOG mode until it enters the external limit
RLS (lower limit LS) signal was turned OFF. range.
• When near-zero point type home position • Move the axis to a point before the near-zero
1003 ! return was started, the external DOG (near- point dog in the JOG mode and then execute
zero point dog) signal was turned ON. a home position return.
• The servo state of the corresponding axis is • Wait until the servo status is READY
not servo READY. Positioning control does not start. (M1615+20n: OFF).
(M1615+20n: OFF).
(1) The power supply to the servo amplifier is
OFF.
1004 ! ! ! ! (2) Initial processing is in progress after
turning on the servo amplifier.
(3) The servo amplifier has not been
installed.
(4) A servo error has occurred.
(5) Cable fault.
• The servo error detection signal of the • Eliminate the error at the servo side, reset the
corresponding axis (M1608+20n) was turned servo error detection signal (M1608+20n) by
1005 ! ! ! !
ON. using the servo error reset command
(M1808+20n), then start operation.
APP − 16
APPENDICES
Error
Error Cause Error Processing Corrective Action
Code
Positioning
JOG
• When positioning was started in the forward • Move axis in the reverse direction in the JOG
1101 ! ! ! ! direction (addresses increasing), the external mode until it enters the external limit range.
FLS (upper limit LS) signal was turned OFF.
• When positioning was started in the reverse • Move the axis in the forward direction in the
1102 ! ! ! ! direction (addresses decreasing), the external Axis motion decelerates to a stop in accordance JOG mode until it enters the external limit
RLS (lower limit LS) signal was turned OFF. with the "deceleration processing on STOP range.
• The external STOP signal (stop signal) was input" setting in the parameter block. • When executing a near-zero point dog type
turned ON while the axis was moving. home position return, move the axis to a point
1103 ! before the near-zero point dog in the JOG
mode and then execute a home position
return.
• The servo error detection signal • After taking the appropriate corrective action
The axis stops immediately without
1104 ! ! ! ! (M1608+20n) was turned ON while an axis for the servo error, the axis can be restarted.
decelerating.
was in motion.
• The power supply to the servo amplifier was • Turn ON the power supply to the servo
turned OFF while an axis was in motion. amplifier.
1105 ! ! ! ! M1615+20n turned OFF.
(Servo not installed status detected, cable • Check the cable to servo amplifier connecting
fault, etc.) cable.
APP − 17
APPENDICES
Error Error
Error Cause Corrective Action
Code Processing
Fixed-Pitch Feed
Speed Switching
Constant Speed
Positioning
Speed
OSC
JOG
• When the servo amplifier power was switched Home • Check the battery of the CPU module and
ON, a sum check error occurred with the backup position execute a home position return.
data in the controller. return
1201 • Home position return has not been performed. request ON
• CPU module battery error.
• Home position return has been performed, but
not completed.
• When the servo amplifier power is turned ON, a Home • Check the motor and encoder cables and
communication error in communication between position perform home position return again.
the servo amplifier and encoder occurs. return
1202*
request ON,
servo error
2016 set.
• During operation, the amount of change in the • Check the motor and encoder cables.
encoder present value complies with the
following expression: "Amount of change in
encoder present value/3.5 ms > 180° of motor
1203*
revolution"
After the servo amplifier power has been turned
ON, a continual check is performed (in both
No
servo ON and OFF states).
Processing
• During operation, the following expression holds:
"Encoder present value (PLS) ≠ feedback
present value (PLS) (encoder effective bit
1204* number)".
After the servo amplifier power has been turned
ON , a continual check is performed (in both
servo ON and OFF states).
*: These errors occur only when using MR-H-B and MR-J2-B servo amplifiers.
Error
Error Cause Error Processing Corrective Action
Code
Positioning
JOG
• Initial communication with the servo system • Change the servo system CPU.
1310 CPU is not completed normally. Positioning control does not start.
• Servo system CPU fault
APP − 18
APPENDICES
The servo errors include the servo amplifier errors and servo power supply module
errors.
You can set to each line the processings to be performed on detection of servo
errors. (Only the servo errors detected by the ADU (when A273UHCPU is used))
Specify the processings and lines in the system settings of the peripheral device.
Setting Control
Line-by-line servo OFF (default) • When a servo error has occurred in any of the ADU axes, all axes in that
1 line are put in servo OFF status. (Control exercised is the same as at all-
axis servo OFF.)
Only own axis servo OFF • Only the ADU axis where a servo error has occurred is placed in servo
OFF status and no influence is given to the other axes.
• However, note that:
1) For the 2 axes/1 module type, both axes are put in servo OFF status if a
servo error has occurred in one axis.
2) The line-by-line servo OFF status is established if any of the following
2
servo errors occurs.
Overcurrent (2032)
Undervoltage (2810)
Excessive regeneration (2830)
Overvoltage (2833)
Amplifier power supply overheat (2847)
! CAUTION
If a controller or servo amplifier self-diagnostic error has occurred, make check in accordance
with this manual and restore to normal.
APP − 19
APPENDICES
APP − 20
APPENDICES
APP − 21
APPENDICES
APP − 22
APPENDICES
APP − 23
APPENDICES
APP − 24
APPENDICES
RS232 • Parameter unit communication error • Check the parameter unit cable
2086 M communication for wire breakage.
alarm • Change the parameter unit.
• The absolute value encoder battery voltage • Change the battery (MR-JBAT-
A ).
dropped.
2102 Battery warning
• The voltage of the battery loaded in the • Change the battery.
M
servo amplifier dropped.
• The power supply voltage supplied to the • Change the battery.
absolute position detector dropped. • Check the detector cable for
Open battery
2103 M wire breakage.
cable warning
• Change the servo motor.
Con- • Change the servo amplifier.
• An excessive regeneration error (2030) may tinued • Refer to details of the
Excessive
occur. (The 85% level of the max. load excessive regeneration error
2140 M regeneration
capacity was detected in the regenerative (2030).
warning
brake resistor)
• The 80% level of the overload error (2050) • Refer to details of the overload
A
Overload level was detected. error (2050).
2141
warning • An overload error (2050, 2051) may occur. • Refer to details of the overload
M
(85% level was detected) error (2050, 2051).
Absolute value • Encoder fault. • Change the encoder.
2143 A
counter warning
Servo • 1A-1B (emergency stop input) of the servo • Short 1A-1B of the servo
2146 M
emergency stop amplifier connector CN6 were disconnected. amplifier connector CN6.
APP − 25
APPENDICES
APP − 26
APPENDICES
APP − 27
APPENDICES
• Among the servo parameters, any of the • At power-on of servo • Reconsider the system settings
following items is unauthorized. amplifier and servo parameters.
• Amplifier • At servo error reset
Parameter
2500 A • External regenerative brake resistor
alarm
setting
• Motor type
• Motor capacity
APP − 28
APPENDICES
APP − 29
APPENDICES
APP − 30
APPENDICES
APP − 31
APPENDICES
Table 2.16 Servo Power Supply Module Error (2800 to 2999) List
Error Cause Error Check
Error code Processing Corrective Action
Name Definition Timing
• The power supply voltage of the servo • Reconsider the power supply
power supply module fell below 170VAC. equipment.
2810 Undervoltage • Instantaneous power failure occurred.
• Load is too large. • Reconsider the power supply
equipment.
• High-duty operation or continuous • Reconsider the operation
regenerative operation caused the max. pattern, e.g. decrease the
load capacity of the regenerative brake acceleration/deceleration
resistor to be exceeded. frequencies or reduce the
Excessive speed.
2830
regeneration • Regenerative power transistor was • Change the servo power supply
damaged. module.
• Regenerative brake resistor setting mistake • Reconsider the system
in system settings settings.
• Regenerative brake resistor wiring mistake. Immediate stop • Correct the wiring.
• Regenerative brake resistor connection • Correct the wiring.
Any time
mistake.
• Regenerative power transistor was • Change the servo power supply
damaged. module.
2833 Overvoltage
• Regenerative brake resistor is dead. • Change the regenerative brake
resistor.
• Power supply voltage is high. • Reconsider the power supply
equipment.
• The servo power supply module fan is at a • Change the fan.
stop.
Amplifier power • The continuous output current of the servo • Reduce the load.
2847
supply overheat power supply module is exceeded.
• Thermal sensor fault. • Change the servo power supply
module.
Excessive • 80% level of the excessive regeneration • Refer to details of the
2940 regeneration error (2830) was detected. Continued excessive regeneration error
warning (2830).
APP − 32
APPENDICES
APP − 33
APPENDICES
<A172SHCPUN/A171SHCPUN>
When the errors listed below occur, they are indicated by the "ERROR" LED on the
front panel of the A172SHCPUN, and the LED on the front panel of the
A171SHCPUN. The error message can be read on the error list monitor screen of
the peripheral device.
For details on the operating procedure, refer to the operating manual for the
peripheral device.
Table 2.18 LED Indications When Errors Occur at PCPU
"ERREOR"LED
Operation when
!:Lit Error Cause Error Check Timing
Error Occurs
Error Set Device Corrective Action
":Not lit
• The slot set in the "system settings" has nothing mounted When power • Start is disabled. • System setting • Set the "system
!
in it, or has a different module mounted in it. switched ON error flag (M2041) settings" correctly
• Axis number settings are duplicated in the "system On resetting with the ON in accordance with
! RESET key switch the modules
settings".
• Not even one axis No. has been set in the "system actually mounted,
! then reset with the
settings".
• No system setting data has been written. RESET key switch.
• The system setting data has been written without
! performing a relative check. Or it has been written
although an error occurred in the relative check.
• There is no battery in the memory cassette.
• An axis No. that exceeds the "number of controlled axes"
!
setting in the "system settings" has been set.
• The total number of I/O points of the PC I/O modules set in
!
motion slots in the "system settings" exceeds 256.
• The amplifier type set in the "system settings" (MR-H- When the servo • Servo operation
B/MR-J-B/MR-J2-B) disagrees with the amplifier type amplifier power is does not start for
actually installed (MR-H-B/MR-J-B/MR-J2-B). turned ON the relevant axis
!
only. Starting of
this axis is
disabled.
• In the case of MR- • Servo error • Ellminate the error
For servo error H-B, MR-J-B and detection flag cause and perform
! MR-J2-B axes, (M1608+20n) ON a servo error reset.
only the relevant • Servo error code After servo error
axis enters the device reset. If the servo
servo OFF status. (D808+20n) set status is normal at
• Occurrence of a servo error or servo warming
• In the case of all axes, the LED
• When using the LED does not light for a warning.
ADU axes, display is cleared.
For warning
according to the
" setting of
At all times "corrective action
for ADU servo
errors".
• Detection of motion slot module abnormality (module • Motion slot module • Switch off the
comes out, or is loose, during operation) error detection flag power and mount
! −
(M2047) ON the module
correctly.
• Occurrence of a PCPU WDT error • immediate stop of • PCPU WDT error • See Section 3.5.2.
all axes flag (M9073) ON
!
• PCPU WDT error
cause (D9184) set
REMARK
Numerical values corresponding to axis numbers are entered for "n" in Table
2.18 (error set device).
<A172SHCPUN> <A171SHCPUN>
Axis No. n Axis No. n
1 0 1 0
2 1 2 1
3 2 3 2
4 3 4 3
5 4
6 5
7 6
8 7
APP − 34
APPENDICES
APP − 35
APPENDICES
• Servo power supply • In that line, all • Major error • Remove the error
SY S . E RR . ( P ) Any time
module (A230P)-detected axes are put in detection flag cause and give all-
System error code system error (major error) servo OFF status. (M2407+20n) ON axis servo ON
(major error) detected occurrence • Major error code command. If all
by servo power supply device (D07+20n) axes are put in
module set servo ON status
Indicates the "n"th servo
properly, the LED
power supply module.
goes off.
* indicates the system error
which is independent of the
servo power supply module
line.
• Motion slot module fault • Motion slot module • Switch power off
SL UN I T E RRO R
detection (During fault detection flag and load the
! (*1) Base No.+Slot No. −
operation, the module has (M2047) ON module properly.
come off or is coming off)
• PCPU WDT error • All axes stop • PCPU WDT error • Refer to Sections
PC PU WD T E RR.
occurrence immediately. flag (M9073) ON 3.3, 3.4.
! PCPU WDT error code • PCPU WDT error
cause (D9184) set
(*1) Indicates the base number, slot number and slot information in error.
(SL )
7: I/O slot 7
Base number in error
0: Main base
1: Motion extension base 1
2: Motion extension base 2
3: Motion extension base 3
4: Motion extension base 4
REMARKS
n in Table 2.19 (Error Set Device) is the value corresponding to the axis number.
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
APP − 36
APPENDICES
The special relays are internal relays with fixed applications in the programmable
controller. Accordingly, they must not be turned ON and OFF in sequence
programs (those marked *1 and *2 in the table are exceptions).
APP − 37
APPENDICES
0.05 0.05
M9030 0.1 second clock SEC. SEC.
0.1 0.1
M9031 0.2 second clock SEC. SEC.
! These relays generate the 0.1 second, 0.2 second, 1 second, 2
second, and 1 minute clocks.
0.5 0.5 ! These relays do not go ON/OFF with each scan but when their
M9032 1 second clock SEC. SEC. respective fixed intervals have elapsed, even during a scan.
! These relays start from the OFF status when the power is turned on
1 1 or resetting.
M9033 2 second clock SEC. SEC.
30 30
M9034 1 minute clock
SEC. SEC.
ON
M9036 Always ON
OFF
! Relay used for initialization during a sequence program or as a
ON
dummy contact for an application instruction.
M9037 Always OFF ! M9036 and M9037 retain their ON or OFF status regardless of the
OFF settings of the key switch on the front of the CPU, but M9038 and
M9039 change in accordance with the key switch status. They go
ON OFF when the key switch is set to the STOP position.
ON for 1 scan only after
M9038 1 scan When the key switch is at a position other than STOP, M9038 comes
RUN
OFF ON for one scan only, and M9039 goes OFF for one scan only.
ON
RUN flag (OFF for 1 scan
M9039 1 scan
only after RUN)
OFF
OFF PAUSE disable
M9040 PAUSE enable coil ! When the RUN/STOP key switch is set to PAUSE or the remote
ON PAUSE enabled
PAUSE contact is turned on, provided M9040 is ON, the PAUSE
OFF PAUSE not in effect
M9041 PAUSE status contact status is established and M9041 comes ON.
ON PAUSE in effect
OFF STOP not in effect
M9042 STOP status contact ! ON when the RUN/STOP key switch is set to STOP.
ON STOP in effect
! Comes ON on completion of the number of sampling traces set in the
Sampling trace OFF Sampling trace in progress
M9043 parameters are completed after execution of the STRA instruction.
completed ON Sampling trace completed
After that, it is reset by execution of the STRAR instruction.
OFF Trace not in progress
M9046 Sampling trace ! ON during execution of a sampling trace
ON Trace in progress
! A sampling trace cannot be executed unless M9047 has been turned
Sampling trace OFF Sampling trace stop
M9047 ON.
preparation ON Sampling trace start
When M9047 is turned OFF, the sampling trace is stopped.
Number of output OFF Output until NUL code ! When M9049 is OFF, output continues until the NUL (00H) code.
M9049
characters selection ON 16 characters output When M9049 is ON, ASCII code for 16 characters is output.
! When M9052 is ON it is executed as the I/O partial refresh
*2 OFF 7-segment display
M9052 SEG instruction switch instruction. When M9052 is ON, it is executed as the 7-segment display
ON I/O part refresh
instruction.
*2 OFF Sequence interrupt control ! Turn ON when a link refresh enable/disable (EI, DI) instruction is
M9053 EI/DI instruction switch
ON Link interrupt control executed.
APP − 38
APPENDICES
POINTS
(1) All special relays, M, are turned OFF by turning the power, OFF,
performing latch clear, or resetting with the RESET key switch.
When the RUN key switch is set to "STOP", the special relay settings are
retained.
(2) The special relays marked "*1" in the table above remain "ON" even after
a return to normal. They must therefore be turned OFF by using one of
the following methods.
(a) Method using the user
program
Insert the ladder block at
right into the program and
turn the reset execution
command contact ON to
clear the special relay.
(b) Method using a peripheral
device Reset execution command
Perform a forced reset RST M9000
using the test function of Enter the special relay
the peripheral device. to be reset here.
For details on this
operation, refer to the
manual for the peripheral
device.
(c) Turn the special relay OFF
by setting the RESET key
switch on the front panel of
the CPU module to
"RESET".
(3) The ON/OFF status of special relays marked "*2" in the table above is
controlled by the sequence program.
(4) The special relays marked *3 are reset only when power is switched from
OFF to ON.
APP − 39
APPENDICES
The special registers are data registers used for specific purposes in the
programmable controller. Therefore, do not write data to the special registers in the
*2
program (with the exception of those whose numbers are marked in the table).
Of the special relays, those from D9180 to D9199 are used for positioning control.
APP − 40
APPENDICES
Remains unchanged in
CPU key switch remote run/stop mode
0 RUN
1 STOP
Status in program
0 Other than below
1 STOP instruction execution
*: When the CPU is in the RUN status and M9040 is OFF, the CPU remains
in RUN mode even if set to PAUSE.
0: ROM
ROM/RAM ! Indicates the setting for the memory selection chip; one of the values 0 to 2 is set
D9016 1: RAM
setting 2 in BIN code.
2: E PROM
! At each END instruction, if the scan time is shorter than the contents of D9017,
D9017 Scan time Minimum scan time (10 ms units) the new value is stored in this register. In other words, the minimum value for
scan time is stored in D9017, in BIN code.
! The scan time is stored in BIN code at each END instruction and is always
D9018 Scan time Scan time (10 ms units)
rewritten.
! At each END instruction, if the scan time is longer than the contents of D9019, the
D9019 Scan time Maximum scan time (10 ms units) new value is stored in this register. In other words, the maximum value for scan
time is stored in D9019, in BIN code.
! When user programs are executed at fixed intervals, used to set the execution
intervals, in 10 ms units.
*2 Constant scan time
D9020 Constant scan 0 : Constant scan function not used
(user-specified in 10 ms units)
1 to 200 : Constant scan function used
program executed at intervals of (set value)×10 ms.
APP − 41
APPENDICES
Day of week
*2 Clock data "0" must be set here.
D9028 Clock data 0 Sunday
(0, day of week)
1 Monday
2 Tuesday
3 Wednesday
4 Thursday
5 Friday
6 Saturday
! The element numbers for priorities 1 to 4 (D9038) and 5 to 7 (D9039) for the
lighting (or flashing) of the ERROR LED when an error occurs, are set and
changed.
B15 B12 B11 B8 B7 B4 B3 B0 B15 B12 B11 B8 B7 B4 B3 B0
_ _ _ 5 4 3 2 1(Position)
Priority of position
Element
*2
Content
M9038 LED display Priorities 1 to 4 No,
*2
M9039 priority Priorities 5 to 7 0. Not displayed
1. I/O verify, fuse blown
Even if "0" is set, errors which cause Special function
CPU operation to stop (including module, link
parameter settings) are unconditionally 2. parameters, SFC
displayed on the LED display. parameters, SFC
Default values: D9038=H4321 operation
D9039=H0006 3. CHK instruction error
4. Annunciator (F)
5. LED instruction related
6. Parity error
APP − 42
APPENDICES
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 1
D9100 0 0 0 (YC0) 0 0 0 (Y80)
0 0 0 0 0 0 0 0
Bit pattern of fuse blown modules 1 1
D9100 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Fuse blown in units of 16 points D9101 (Y1F0) (Y1A)
to
module (D9100 to D9101 are used for
D9101 1 1
A172SHCPUN/A171SHCPUN) D9107 0 0 0 0 (Y7B0)
0 0 0 0 0 0 0 (Y730)
0 0 0
! Turn M9197 and M9198 ON/OFF to change the I/O module number range
displayed.
! Clear the blown fuse module data by turning OFF M9000 (blown fuse).
! Indicates the I/O module numbers (in units of 16 points) when the I/O modules
different from the registered I/O module information are detected at power-on.
(Parameter assignment is valid)
! Also indicates the I/O module information in remote stations.
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1
D9116 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 X/Y
Bit pattern of verify error modules 0
D9116 Input/Output 1
in units of 16 points 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
to module D9117 X/Y
(D9116 to D9117 are used for 190
D9123 verification error
A172SHCPUN/A171SHCPUN) 1
D9123 0 X/Y 0 0 0 0 0 0 0 0 0 0 0 0 0 0
7F0
! Turn M9197 and M9198 ON/OFF to change the I/O module number range
displayed.
! Clear the verify error data by turning OFF M9002 (verify error).
! When one of F0 to 255 is turned on by an OUT F or SET F , 1 is added to the
contents of D9124.
Annunciator
When the RST F or LEDR instruction is executed, 1 is subtracted from the
D9124 detection Number of detected annunciators
quantity contents of D9124.
The number of annunciators that has been turned on by OUT F or SET F is
stored in D9124: the maximum stored value is 8.
! When F numbers in the range F0 to 255 are turned on by OUT F or SET F ,
they
are entered in D9125 to D9132 in ascending order of register numbers.
An F number which is turned off by RST F is erased from D9125 to D9132, and
the contents of the data registers following the one where the erased F number
was stored are each shifted to the preceding data register. When the LEDR
instruction is executed, the contents of D9125 to D9132 are shifted upward by
one. When there are 8 annunciator detections, a 9th one is not stored in D9125 to
D9132 even if detected.
SET SET SET SET SET SET SET SET SET SET SET
F50 F25 F99 F25 F15 F70 F65 F38 F110 F151 F210 LEDR
D9009 0 50 50 50 50 50 50 50 50 50 50 50 99
D9126 0 0 25 25 99 99 99 99 99 99 99 99 15
D9127 0 0 0 99 0 15 15 15 15 15 15 15 70
D9128 0 0 0 0 0 0 70 70 70 70 70 70 65
D9129 0 0 0 0 0 0 0 65 65 65 65 65 38
D9130 0 0 0 0 0 0 0 0 38 38 38 38 110
APP − 43
APPENDICES
POINTS
(1) All special register data is cleared by the power-off, latch clear, and reset
operations. The data is retained when the RUN/STOP key switch is set to
STOP.
(2) The contents of the special relays marked *1 in the table above are not
cleared even after the normal status is restored. To clear the contents,
use one of the following methods:
(a) Using a user program
Insert the ladder block
shown at right into the
program and turn on the
clear execution command
contact to clear the
contents of the register.
(b) Using a peripheral device
Using the test function of a
peripheral device, set the
Clear execution command
register to "0" by using
RST M9005
present value change or
forced reset.
For details on the operation
involved, refer to the
manual for the relevant
peripheral device.
(c) Set the special register to
"0" by setting the RESET
key switch on the front of
the CPU to the RESET
position.
(3) For special registers marked "*2", data is written in the sequence
program.
(4) The special registers marked *3 are cleared only when power is switched
from OFF to ON.
APP − 44
APPENDICES
* "1" or "0" is stored for each of the bits in D9180 through D9183.
1) 1.......... ON
2) 0.......... OFF
(2) A171SHCPUN
b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
D9180 LY0F LY0E LY0D LY0C LY0B LY0A LY09 LY08 LY07 LY06 LY05 LY04 LY03 LY02 LY01 LY00
* "1" or "0" is stored for each of the bits in D9180 through D9181.
1) 1.......... ON
2) 0.......... OFF
APP − 45
APPENDICES
APP − 46
APPENDICES
D9186 D9186 0
Servo amplifier type
0 Unused axis
2 MR- -B
! Stores the contents of the manual pulse generator axis setting error when the
manual pulse generator axis setting flag (M9077) comes ON.
(1) When an A172SHCPUN is used
b15 b8 b3 b0
D9187 Axis8 Axis7 Axis6 Axis5 Axis4 Axis3 Axis2 Axis1 0 P1 0 P1
! Stores the data of axes being operated when the test mode request error flag
(M9078) comes ON.
(1) When an A172SHCPUN is used
b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
D9188 0 0 0 0 0 0 0 0 Axis8 Axis7 Axis6 Axis5 Axis4 Axis3 Axis2 Axis1
APP − 47
APPENDICES
APP − 48
APPENDICES
D791 LYFF LYFE LYFD LYFC LYFB LYFA LYF9 LYF8 LYF7 LYF6 LYF5 LYF4 LYF3 LYF2 LYF1 LYF0
! Stores the servo amplifier type specified in the system settings at power-on or
reset.
b15 to b12 b11 to b8 b7 to b4 b3 to b0
D792 Axis 4 Axis 3 Axis 2 Axis 1
D793 Axis 8 Axis 7 Axis 6 Axis 5
D794 Axis 12 Axis 11 Axis 10 Axis 9
D795 Axis 16 Axis 15 Axis 14 Axis 13
D792 Servo amplifier type D796 Axis 20 Axis 19 Axis 18 Axis 17
Servo amplifier
to (For A273UHCPU (32-axis D797 Axis 24 Axis 23 Axis 22 Axis 21
type
D799 feature)/A173UHCPU(S1))
D798 Axis 28 Axis 27 Axis 26 Axis 25
D799 Axis 32 Axis 31 Axis 30 Axis 29
! Stores the operating axis data when the test mode request error flag (M9078)
turns ON.
APP − 49
APPENDICES
D9186 Axis16 Axis15 Axis14 Axis13 Axis12 Axis11 Axis10 Axis9 Axis8 Axis7 Axis6 Axis5 Axis4 Axis3 Axis2 Axis1
D9187 Axis32 Axis31 Axis30 Axis29 Axis28 Axis27 Axis26 Axis25 Axis24 Axis23 Axis22 Axis21 Axis20 Axis19 Axis18 Axis17
! Stores the motion program number (1 to 256) in error when the motion program
setting error flag (M9079) turns ON.
Error program number ! If an error occurs in another motion program when the error program number is
Error program
D9189 (For A273UHCPU (32-axis stored, the new error program number is stored.
number
feature)/A173UHCPU(S1))
! Stores the error code corresponding to the setting item in error when the motion
program setting error flag (M9079) turns ON.
Error Code Error Definition
The parameter block number
1
Servo program setting error specified is outside the range 1 to 16.
Error item number The motion program set in the SVST
D9190
information (For A273UHCPU (32-axis 906 instruction has the unused axis in
feature)/A173UHCPU(S1)) system settings.
An attempt was made to start and run
3300 9 or more programs simultaneously
with the SVST instruction.
For the error processings and corrective actions, refer to Appendix 2.1.
! Stores the result of servo amplifier and optional slot loading status check made at
power-on or reset.
b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
D9191 Axis16 Axis15 Axis14 Axis13 Axis12 Axis11 Axis10 Axis9 Axis8 Axis7 Axis6 Axis5 Axis4 Axis3 Axis2 Axis1
D9192 Axis32 Axis31 Axis30 Axis29 Axis28 Axis27 Axis26 Axis25 Axis24 Axis23 Axis22 Axis21 Axis20 Axis19 Axis18 Axis17
APP − 50
APPENDICES
(1) A program for shifting to the left a range of devices that comprises n points and
starts with a designated word device is shown here.
Shift range (n)
0 is entered here.
After
0
execution
(2) Word data can be shifted one word to the left by using the BMOV (P) instruction
and RST instruction.
The format for a program for shifting data one word to the left by using the
BMOV (P) instruction and RST instruction is shown in Figure 4.1.
Execution command
*
BMOV(P) S D1 n
RST D2
Fig.4.1 Format for Left shift Using BMOV(P) Instruction and RST Instruction
APP − 51
APPENDICES
Example
(1) A program that shifts the contents of D683 to D689 one word to the left at
the leading edge (OFF to ON) of XB is shown here.
[Operation]
Shift range
0
After
503 600 -336 3802 -32765 5003 0
execution
[Program Example]
X000B P K
0 BMOV D683 D684 6
RST D683
CIRCUIT END
Executed Executed
BMOV
each scan each scan
instruction
BMOVP
instruction Executed Executed
once only once only
APP − 52
APPENDICES
(1) A program for shifting to the right a range of devices that comprises n points
and starts with a designated word device is shown here.
Shift range (n)
After
0
execution
(2) Word data can be shifted one word to the right by using the BMOV (P)
instruction and RST instruction.
The format for a program for shifting data one word to the right by using the
BMOV (P) instruction and RST instruction is shown in Figure 4.2.
Execution command
*
BMOV(P) S D1 n
RST D2
Fig.4.2. Format for Right Shift Using BMOV(P) Instruction and RST Instruction
APP − 53
APPENDICES
Example
(1) A program that shifts the contents of D683 to D689 one word to the right
at the leading edge (OFF to ON) of XB is shown here.
[Operation]
Shift range
0
After
0 -100 503 600 -336 3802 -32765
execution
[Program Example]
X000B P K
0 BMOV D684 D683 6
RST D689
CIRCUIT END
Executed Executed
BMOV
each scan each scan
instruction
BMOVP
instruction Executed Executed
once only once only
APP − 54
APPENDICES
[Program Example]
(1) A program that outputs the M code for axis 1 from Y000 to Y00F to an external
destination on completion of positioning start and after conversion to BCD
code, is shown here.
CIRCUIT END
Y000 to Y00F designation
M code storage area for axis 1
(Refer to Section 3.2.1.)
A1S
Y40 BCD conversion instruction
Power supply
module
Y000
to
Y00F
(2) A program that outputs the M code for axis 1 from Y000 to Y00F to an external
destination on completion of positioning and after conversion to BCD code, is
shown here.
CIRCUIT END
Y000 to Y00F designation
M code storage area for axis 1
(Refer to Section 3.2.1.)
A1S
Y40 BCD conversion instruction
Power supply
module
Y000
to
Y00F
APP − 55
APPENDICES
A program that reads the error code when an error occurs is shown here.
The following signals are used to determine whether or not an error has occurred:
• Minor errors, major errors............Error detection signal
(M1607+20n/M2407+20n)
• Servo errors .................................Servo error detection signal
(M1608+20n/M2408+20n)
POINT
(1) The following delay occurs between the leading edge (OFF to ON) of
M1607+20n/M1608+20n/M2407+20n/M2408+20n and storage of the
error code.
(a) If the sequence program scan time is less than 80 ms, there will be a
delay of up to 80 ms.
(b) If the sequence program scan time is longer than 80 ms, there will be
a delay of up to one scan time.
Program so that error code reading is executed after sufficient time
has elapsed for error codes to be written in the various error code
storage areas after
M1607+20n/M1608+20n/M2407+20n/M2408+20n comes ON.
[Program Example]
(1) A program that converts the error code to BCD and outputs it to Y000 to Y00F
when an axis 1 error occurs (minor error, major error) is shown here.
System configuration Sequence program
K P K4
<> D807 0 BCD D807 Y0000
M1608 K P K4
A1S
Y40
<> D808 0 BCD D808 Y0000 Servo error output
Power supply
CIRCUIT END
module
Y000
to Y000 to Y00F designation
Y00F
Error code storage area for
axis 1
BCD conversion instruction
Major error code storage area
for axis 1
Minor error code storage area
for axis 1
For determining whether or not
an error code is stored
APP − 56
APPENDICES
Appendix 4.5 Magnitude Comparison and Four Fundamental Operations of 32-Bit Monitor Data
When a machine value, actual present value or deviation counter value is used to
perform magnitude comparison or four fundamental operations, the value must be
transferred to another device memory once and the device memory of the transfer
destination be used to perform processing as described below.
(1) Magnitude comparison example
(a) To set the device when the machine value has become greater than the set
value
Magnitude comparison execution command
DMOV S D1
D> D1 D2 SET D3
D<= D1 D2 Y2
[Program example 2]
Magnitude comparison execution command
DMOV S D1
D> D1 D2 Y1
D<= D1 D2 Y2
APP − 57
APPENDICES
BMOVP S D1
D / D1 D2 D3
APP − 58
APPENDICES
Table 5.1 Servo Motor Type-Based Rated Speed and Feedback Pulse Count List
Number of Number of
Motor Model Rated Speed [rpm] Feedback Pulses Motor Model Rated Speed [rpm] Feedback Pulses
[PLS] [PLS]
HA-MH053 HA-LH52
HA-MH13 HA-LH102
HA-MH23 HA-LH152
HA-MH43 HA-LH202
HA-MH73 HA-LH302
HA-FH053 3000 8192 HA-LH502
HA-FH13 HA-LH702
HA-FH23 HA-LH11K2
HA-FH33 HA-LH15K2 2000 16384
HA-FH43 HA-LH22K2
HA-FH63 HA-UH32
HA-SH81 HA-UH52
HA-SH121 HA-UH102
1000
HA-SH201 HA-UH152
HA-SH301 HA-UH222
HA-SH52 HA-UH352
HA-SH102 HA-UH452
HA-SH152 HA-FF053
HA-SH202 2000 HA-FF13
HA-SH352 HA-FF23
HA-SH502 16384 HA-FF33
HA-SH702 HA-FF43
HA-SH53 HA-FF63 3000 8192
HA-SH103 HC-MF053
HA-SH153 HC-MF13
HA-SH203 HC-MF23
3000
HA-SH353 HC-MF43
HA-RH103 HC-MF73
HA-RH153 HC-SF52
2000 16384
HA-RH223 HC-SF102
APP − 59
APPENDICES
CPU A273UHCPU
A173UHCPU(S1)
(32 axis feature)
Number of set axes (SV43) 1 to 8 9 to 18 19 to 32 1 to 12 13 to 24 25 to 32
Operation cycle 3.5ms 7.1ms 14.2ms 3.5ms 7.1ms 14.2ms
A273UHCPU
CPU A173UHCPU(S1)
(32 axis feature)
Number of set axes (SV43) 1 to 8 9 to 18 19 to 32 1 to 12 13 to 24 25 to 32
Servo program start processing time 4 to 11 10 to 18 14 to 21 4 to 11 10 to 18 14 to 21
Speed change response 0 to 4 0 to 8 0 to 14 0 to 4 0 to 8 0 to 14
Torque limit value change response 0 to 4 0 to 4 0 to 4 0 to 4 0 to 4 0 to 4
Simultaneous start processing time (*1) 7 to 17 10 to 24 14 to 28 7 to 17 10 to 24 14 to 28
Time from PC ready flag (M2000) ON to 100 to 100 to
8 to 100 90 to 400 8 to 100 90 to 400
PCPU ready flag (M9074) ON 800 800
(*1) This processing time varies depending on the commands to be started simultaneously. Use this time merely for
reference.
For other sequence program instruction processing times, refer to the ACPU
Programming Manual.
APP − 60
APPENDICES
• Axis status
Axis A172SHCPUN A171SHCPUN
Signal Name
No. Device Number Device Number
M1600 M1600
1 to to Fetch Signal
M1619 M1619 Signal Name Refresh Cycle
Cycle Direction
M1620 M1620 0 Positioning start completed
2 to to 1 Positioning completed
M1639 M1639 2 In-position
M1640 M1640 3 Command in-position 3.5ms
3 to to 4 Unusable
M1659 M1659 5 Unusable
M1660 M1660 6 Zero pass
4 to to 7 Error detection Immediately
M1679 M1679 8 Servo error detection 3.5ms
SCPU
M1680 9 Home position return request 10ms
←
5 to 10 Home position return completed 3.5ms PCPU
M1699 11 External signal FLS
M1700 12 External signal RLS
10ms
6 to 13 External signal STOP
M1719 14 External signal DOG/CHANGE
M1720 15 Servo ON/OFF
3.5ms
7 to 16 Torque control in progress
M1739 17 (External signal DOG/CHANGE) 10ms
M1740 18 Unusable
8 to 19 M code output in progress 3.5ms
M1759
APP − 61
APPENDICES
APP − 62
APPENDICES
APP − 63
APPENDICES
APP − 64
APPENDICES
APP − 65
APPENDICES
APP − 66
APPENDICES
* The entry "END" in the Refresh Cycle column indicates 80ms or a longer sequence program scan time.
APP − 67
APPENDICES
*"END" in Refresh Cycle indicates a longer one of "50ms" and "sequence program scan time".
APP − 68
APPENDICES
*"END" in Refresh Cycle indicates a longer one of "50ms" and "sequence program scan time".
APP − 69
APPENDICES
APP − 70
APPENDICES
APP − 71
APPENDICES
APP − 72
APPENDICES
* The entry "END" in the Refresh Cycle column indicates 80ms or a longer sequence program scan time.
APP − 73
APPENDICES
APP − 74
APPENDICES
− − −
M2199 Unusable M2279
M2200 (80 points) M2280
M2201 M2281
M2202 M2282
M2203 M2283
M2204 M2284
M2205 M2285
M2206 M2286
M2207 M2287
M2208 M2288
M2209 M2289
M2210 M2290
M2211 M2291
M2212 M2292
M2213 M2293
M2214 M2294
− − −
M2215 M2295 Unusable
M2216 M2296 (48 points)
M2217 M2297
M2218 M2298
M2219 M2299
M2220 M2300
M2221 M2301
M2222 M2302
M2223 M2303
M2224 M2304
M2225 M2305
M2226 M2306
M2227 M2307
M2228 M2308
M2229 M2309
M2230 M2310
M2231 M2311
M2232 M2312
M2233 M2313
M2234 M2314
M2235 M2315
M2236 M2316
M2237 M2317
M2238 M2318
M2239 M2319
* The entry "END" in the Refresh Cycle column indicates 50ms or a longer sequence program scan time.
APP − 75
APPENDICES
APP − 76
APPENDICES
APP − 77
APPENDICES
APP − 78
APPENDICES
* The entry “END” in the Refresh Cycle column indicates 80ms (A172SHCPUN/A171SHCPUN) or 50ms (A273UHCPU (32 axis
feature) / A173UHCPU (S1)), or a longer sequence program scan time.
CPUN/
A171SH
Signal Name Refresh Cycle Fetch Cycle Signal Direction
CPUN
Device
Number
D9180
D9181
Limit switch output status 3.5ms
D9182
D9183
At PCPU WDT error
D9184 PCPU WDT error cause
occurrence
D9185
Servo amplifier type Power ON SCPU←PCPU
D9186
Manual pulse generator axis setting Manual pulse generator
D9187
error information operation enabled
D9188 Test mode request error information Test mode request
D9189 Error program number
At driving
D9190 Error item information
D9191 Servo amplifier loading information Power ON, 10 ms
Manual pulse generator 1 smoothing Manual pulse generator
D9192 SCPU→PCPU
magnification setting register operation enabled
D9193
D9194 Unusable − − −
D9195
D9196 PC link communication error code 3.5ms SCPU←PCPU
D9197
D9198 Unusable − − −
D9199
APP − 79
MITSUBISHI ELECTRIC CORPORATION
HEAD OFFICE:MITSUBISHI DENKI BLDG MARUNOUCHI TOKYO 100 TELEX: J24532 CABLE MELCO TOKYO
NAGOYA WORKS : 1-14 , YADA-MINAMI 5 , HIGASHI-KU , NAGOYA , JAPAN
IB (NA) 0300014-A (0002) MEE Printed in Japan Specifications subject to change without notice.