Mitsubishi Electric SV43 Programming Manual

Category
Software
Type
Programming Manual
Q173HCPU/Q172HCPU
Motion Controller (SV43)
Programming Manual
-Q172HCPU
-Q173HCPU
A - 1
SAFETY PRECAUTIONS
(Read these precautions before using.)
When using this equipment, thoroughly read this manual and the associated manuals introduced in this
manual. Also pay careful attention to safety and handle the module properly.
These precautions apply only to this equipment. Refer to the Q173HCPU/Q172HCPU Users manual for a
description of the Motion controller safety precautions.
These SAFETY PRECAUTIONS classify the safety precautions into two categories: "DANGER" and
"CAUTION".
!
DANGER
CAUTION
!
Indicates that incorrect handling may cause hazardous conditions,
resulting in death or severe injury.
Indicates that incorrect handling may cause hazardous conditions,
resulting in medium or slight personal injury or physical damage.
Depending on circumstances, procedures indicated by
!
CAUTION may also be linked to serious
results.
In any case, it is important to follow the directions for usage.
Store this manual in a safe place so that you can take it out and read it whenever necessary. Always
forward it to the end user.
A - 2
For Safe Operations
1. Prevention of electric shocks
!
DANGER
Never open the front case or terminal covers while the power is ON or the unit is running, as
this may lead to electric shocks.
Never run the unit with the front case or terminal cover removed. The high voltage terminal and
charged sections will be exposed and may lead to electric shocks.
Never open the front case or terminal cover at times other than wiring work or periodic
inspections even if the power is OFF. The insides of the Motion controller and servo amplifier
are charged and may lead to electric shocks.
When performing wiring work or inspections, turn the power OFF, wait at least ten minutes, and
then check the voltage with a tester, etc.. Failing to do so may lead to electric shocks.
Be sure to ground the Motion controller, servo amplifier and servomotor. (Ground resistance :
100
or less) Do not ground commonly with other devices.
The wiring work and inspections must be done by a qualified technician.
Wire the units after installing the Motion controller, servo amplifier and servomotor. Failing to do
so may lead to electric shocks or damage.
Never operate the switches with wet hands, as this may lead to electric shocks.
Do not damage, apply excessive stress, place heavy things on or sandwich the cables, as this
may lead to electric shocks.
Do not touch the Motion controller, servo amplifier or servomotor terminal blocks while the
power is ON, as this may lead to electric shocks.
Do not touch the built-in power supply, built-in grounding or signal wires of the Motion controller
and servo amplifier, as this may lead to electric shocks.
2. For fire prevention
!
CAUTION
Install the Motion controller, servo amplifier, servomotor and regenerative resistor on
inflammable material. Direct installation on flammable material or near flammable material may
lead to fire.
If a fault occurs in the Motion controller or servo amplifier, shut the power OFF at the servo
amplifier’s power source. If a large current continues to flow, fire may occur.
When using a regenerative resistor, shut the power OFF with an error signal. The regenerative
resistor may abnormally overheat due to a fault in the regenerative transistor, etc., and may
lead to fire.
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 fire.
A - 3
3. For injury prevention
!
CAUTION
Do not apply a voltage other than that specified in the instruction manual on any terminal.
Doing so may lead to destruction or damage.
Do not mistake the terminal connections, as this may lead to destruction or damage.
Do not mistake the polarity ( + / - ), as this may lead to destruction or damage.
Do not touch the servo amplifier's heat radiating fins, regenerative resistor and servomotor, etc.,
while the power is ON and for a short time after the power is turned OFF. In this timing, these
parts become very hot and may lead to burns.
Always turn the power OFF before touching the servomotor shaft or coupled machines, as
these parts may lead to injuries.
Do not go near the machine during test operations or during operations such as teaching.
Doing so may lead to injuries.
4. Various precautions
Strictly observe the following precautions.
Mistaken handling of the unit may lead to faults, injuries or electric shocks.
(1) System structure
!
CAUTION
Always install a leakage breaker on the Motion controller and servo amplifier power source.
If installation of an electromagnetic contactor for power shut off during an error, etc., is specified
in the instruction manual for the servo amplifier, etc., always install the electromagnetic
contactor.
Install the emergency stop circuit externally so that the operation can be stopped immediately
and the power shut off.
Use the Motion controller, servo amplifier, servomotor and regenerative resistor with the combi-
nations listed in the instruction manual. Other combinations may lead to fire or faults.
If safety standards (ex., robot safety rules, etc.,) apply to the system using the Motion controller,
servo amplifier and servomotor, make sure that the safety standards are satisfied.
Construct a safety circuit externally of the Motion controller or servo amplifier if the abnormal
operation of the Motion controller or servo amplifier differ from the safety directive operation in
the system.
In systems where coasting of the servomotor will be a problem during the forced stop,
emergency stop, servo OFF or power supply OFF, use dynamic brakes.
Make sure that the system considers the coasting amount even when using dynamic brakes.
A - 4
!
CAUTION
In systems where perpendicular shaft dropping may be a problem during the forced stop,
emergency stop, servo OFF or power supply OFF, use both dynamic brakes and
electromagnetic brakes.
The dynamic brakes must be used only on errors that cause the forced stop, emergency stop,
or servo OFF. These brakes must not be used for normal braking.
The brakes (electromagnetic brakes) assembled into the servomotor are for holding
applications, and must not be used for normal braking.
The system must have a mechanical allowance so that the machine itself can stop even if the
stroke limits switch is passed through at the max. speed.
Use wires and cables that have a wire diameter, heat resistance and bending resistance
compatible with the system.
Use wires and cables within the length of the range described in the instruction manual.
The ratings and characteristics of the parts (other than Motion controller, servo amplifier and
servomotor) used in a system must be compatible with the Motion controller, servo amplifier
and servomotor.
Install a cover on the shaft so that the rotary parts of the servomotor are not touched during
operation.
There may be some cases where holding by the electromagnetic brakes is not possible due to
the life or mechanical structure (when the ball screw and servomotor are connected with a
timing belt, etc.). Install a stopping device to ensure safety on the machine side.
(2) Parameter settings and programming
!
CAUTION
Set the parameter values to those that are compatible with the Motion controller, servo amplifier,
servomotor and regenerative resistor model and the system application. The protective functions
may not function if the settings are incorrect.
The regenerative resistor model and capacity parameters must be set to values that conform to
the operation mode, servo amplifier and servo power supply module. 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.
A - 5
!
CAUTION
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 module's instruction manual for the
program corresponding to the special function module.
(3) Transportation and installation
!
CAUTION
Transport the product with the correct method according to the mass.
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 Motion controller or servo amplifier, never hold the connected wires or
cables.
When transporting the servomotor, never hold the cables, shaft or detector.
When transporting the Motion controller or servo amplifier, never hold the front case as it may
fall off.
When transporting, installing or removing the Motion controller or servo amplifier, never hold
the edges.
Install the unit according to the instruction manual in a place where the mass can be withstood.
A - 6
!
CAUTION
Do not get on or place heavy objects on the product.
Always observe the installation direction.
Keep the designated clearance between the Motion controller or servo amplifier and control
panel inner surface or the Motion controller and servo amplifier, Motion controller or servo
amplifier and other devices.
Do not install or operate Motion controller, 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 Motion controller, servo amplifier or servomotor.
The Motion controller, servo amplifier and servomotor are precision machines, so do not drop
or apply strong impacts on them.
Securely fix the Motion controller and servo amplifier to the machine according to the
instruction
manual. If the fixing is insufficient, these may come off during operation.
Always install the servomotor with reduction gears in the designated direction. Failing to do so
may lead to oil leaks.
Store and use the unit in the following environmental conditions.
Conditions
Environment
Motion controller/Servo amplifier Servomotor
Ambient
temperature
According to each instruction manual.
0°C to +40°C (With no freezing)
(32°F to +104°F)
Ambient humidity
According to each instruction manual.
80% RH or less
(With no dew condensation)
Storage
temperature
According to each instruction manual.
-20°C to +65°C
(-4°F to +149°F)
Atmosphere
Indoors (where not subject to direct sunlight).
No corrosive gases, flammable gases, oil mist or dust must exist
Altitude
1000m (3280.84ft.) or less above sea level
Vibration
According to each instruction manual
When coupling with the synchronization encoder or servomotor shaft end, do not apply impact
such as by hitting with a hammer. Doing so may lead to detector damage.
Do not apply a load larger than the tolerable load onto the servomotor shaft. Doing so may lead
to shaft breakage.
When not using the module for a long time, disconnect the power line from the Motion controller
or servo amplifier.
Place the Motion controller and servo amplifier in static electricity preventing vinyl bags and
store.
When storing for a long time, please contact with our sales representative.
A - 7
(4) Wiring
!
CAUTION
Correctly and securely wire the wires. Reconfirm the connections for mistakes and the terminal
screws for tightness after wiring. Failing to do so may lead to run away of the
servomotor.
After wiring, install the protective covers such as the terminal covers to the original positions.
Do not install a phase advancing capacitor, surge absorber or radio noise filter (option FR-BIF)
on the output side of the servo amplifier.
Correctly connect the output side (terminals U, V, W). Incorrect connections will lead the
servomotor to operate abnormally.
Do not connect a commercial power supply to the servomotor, as this may lead to trouble.
Do not mistake the direction of the surge absorbing diode
installed on the DC relay for the control signal output of
brake signals, etc. Incorrect installation may lead to signals
not being output when trouble occurs or the protective
functions not functioning.
Do not connect or disconnect the connection cables between
each unit, the encoder cable or PLC expansion cable while the
power is ON.
Servo amplifier
VIN
(24VDC)
Control output
signal
RA
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.
(5) Trial operation and adjustment
!
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 Motion
controller or absolute value motor has been replaced, always perform a home position return.
A - 8
(6) Usge methods
!
CAUTION
Immediately turn OFF the power if smoke, abnormal sounds or odors are emitted from the
Motion controller, servo amplifier or servomotor.
Always execute a test operation before starting actual operations after the program or
parameters have been changed or after maintenance and inspection.
The units must be disassembled and repaired by a qualified technician.
Do not make any modifications to the unit.
Keep the effect or electromagnetic obstacles to a minimum by installing a noise filter or by using
wire shields, etc. Electromagnetic obstacles may affect the electronic devices used near the
Motion controller or servo amplifier.
When using the CE Mark-compliant equipment, refer to the "EMC Installation Guidelines"
(data number IB(NA)-67339) for the Motion controllers and refer to the corresponding EMC
guideline information for the servo amplifiers, inverters and other equipment.
Use the units with the following conditions.
Conditions
Item
Q61P-A1 Q61P-A2 Q62P Q63P Q64P
+10% +10% +10% +30% +10%
100 to 120VAC
-15%
200 to 240VAC
-15%
100 to 240VAC
-15%
24VDC
-35%
100 to 120VAC
-15%
/
+10%
200 to 240VAC
-15%
Input power
(85 to 132VAC) (170 to 264VAC) (85 to 264VAC) (15.6 to 31.2VDC)
(85 to 132VAC/
170 to 264VAC)
`
Input frequency 50/60Hz ±5%
Tolerable
momentary
power failure
20ms or less
(7) Corrective actions for errors
!
CAUTION
If an error occurs in the self diagnosis of the Motion controller 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 electromagnetic brakes or install a brake mechanism externally.
Use a double circuit construction so that the electromagnetic brake operation circuit can be
operated by emergency stop signals set externally.
Electro-
magnetic
brakes
Servomotor
24VDC
RA1
EMG
Shut off with servo ON signal OFF,
alarm, magnetic brake signal.
Shut off with the
emergency stop
signal(EMG).
A - 9
!
CAUTION
If an error occurs, remove the cause, secure the safety and then resume operation after alarm
release.
The unit may suddenly resume operation after a power failure is restored, so do not go near the
machine. (Design the machine so that personal safety can be ensured even if the machine
restarts suddenly.)
(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
Motion controller 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 the instruction manual.
Do not touch the lead sections such as ICs or the connector contacts.
Do not place the Motion controller 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 Motion controller or servo amplifier, always set the new module settings
correctly.
When the Motion 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 Motion controller using programming software, switch on
the power again, then perform a home position return operation.
2) Using the backup function of the programming 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
Motion controller or servo amplifier.
The electrolytic capacitor and fan will deteriorate. Periodically replace these to prevent
secondary damage from faults. Replacements can be made by our sales representative.
A - 10
(9) About processing of waste
When you discard Motion controller, servo amplifier, a battery (primary battery) and other option articles,
please follow the law of each country (area).
!
CAUTION
This product is not designed or manufactured to be used in equipment or systems in situations
that can affect or endanger human life.
When considering this product for operation in special applications such as machinery or
systems used in passenger transportation, medical, aerospace, atomic power, electric power, or
submarine repeating applications, please contact your nearest Mitsubishi sales representative.
Although this product was manufactured under conditions of strict quality control, you are
strongly advised to install safety devices to forestall serious accidents when it is used in facilities
where a breakdown in the product is likely to cause a serious accident.
(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.
A - 11
REVISIONS
The manual number is given on the bottom left of the back cover.
Print Date Manual Number Revision
Feb., 2006 IB(NA)-0300115-A First edition
Japanese Manual Number IB(NA)-0300095
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.
© 2006 MITSUBISHI ELECTRIC CORPORATION
A - 12
INTRODUCTION
Thank you for choosing the Q173HCPU/Q172HCPU Motion Controller.
Please read this manual carefully so that equipment is used to its optimum.
CONTENTS
Safety Precautions .........................................................................................................................................A- 1
Revisions ........................................................................................................................................................A-11
Contents .........................................................................................................................................................A-12
About Manuals ...............................................................................................................................................A-17
1. OVERVIEW 1- 1 to 1- 6
1.1 Overview................................................................................................................................................... 1- 1
1.2 Features ................................................................................................................................................... 1- 3
1.2.1 Performance specifications............................................................................................................... 1- 3
1.2.2 Differences between Q173HCPU/Q172HCPU and Q173CPU(N)/Q172CPU(N)......................... 1- 6
2. POSITIONING CONTROL BY THE MOTION CPU 2- 1 to 2-10
2.1 Positioning Control by the Motion CPU................................................................................................... 2- 1
3. MOTION DEDICATED PLC INSTRUCTION 3- 1 to 3-44
3.1 Motion Dedicated PLC Instruction........................................................................................................... 3- 1
3.1.1 Restriction item of the Motion dedicated PLC instruction ................................................................ 3- 1
3.2 Motion program (Control program) Start Request from The PLC CPU to The Motion CPU:
S(P).SFCS (PLC instruction:
S(P).SFCS
)............................................................................................ 3- 8
3.3 Motion Program (Axis designation program) Start Request from The PLC CPU to The Motion CPU:
S(P).SVST (PLC instruction:
S(P).SVST
) ............................................................................................ 3-13
3.4 Home position return instruction from The PLC CPU to The Motion CPU:
S(P).CHGA (PLC instruction:
S(P).CHGA
)........................................................................................... 3-19
3.5 Speed Change Instruction from The PLC CPU to The Motion CPU:
S(P).CHGV (PLC instruction:
S(P).CHGV
)........................................................................................... 3-24
3.6 Torque Limit Value Change Request Instruction from The PLC CPU to The Motion CPU:
S(P).CHGT (PLC instruction:
S(P)
.CHGT
).......................................................................................... 3-32
3.7 Write from The PLC CPU to The Motion CPU: S(P).DDWR (PLC instruction:
S(P).DDWR
) .............. 3-36
3.8 Read from The Devices of The Motion CPU: S(P).DDRD (PLC instruction:
S(P).DDRD
) ................. 3-40
4. POSITIONING SIGNALS 4- 1 to 4-88
4.1 Internal Relays ......................................................................................................................................... 4- 2
4.1.1 Axis statuses ..................................................................................................................................... 4-13
4.1.2 Axis command signals ...................................................................................................................... 4-26
4.1.3 Axis statuses 2 .................................................................................................................................. 4-33
4.1.4 Axis command signals 2 ................................................................................................................... 4-36
4.1.5 Common devices .............................................................................................................................. 4-45
4.2 Data Registers.......................................................................................................................................... 4-56
A - 13
4.2.1 Axis monitor devices ......................................................................................................................... 4-64
4.2.2 Control change registers................................................................................................................... 4-67
4.2.3 Axis monitor devices 2 ...................................................................................................................... 4-68
4.2.4 Control program monitor devices ..................................................................................................... 4-72
4.2.5 Control change registers 2................................................................................................................ 4-74
4.2.6 Tool length offset data setting registers............................................................................................ 4-75
4.2.7 Common devices .............................................................................................................................. 4-76
4.3 Motion Registers (#)................................................................................................................................. 4-79
4.4 Special Relays (SP.M) ............................................................................................................................. 4-80
4.5 Special Registers (SP.D) ......................................................................................................................... 4-83
5. PARAMETERS FOR POSITIONING CONTROL 5- 1 to 5-20
5.1 System Settings ....................................................................................................................................... 5- 1
5.2 Fixed Parameters..................................................................................................................................... 5- 2
5.2.1 Number of pulses/travel value per rotation....................................................................................... 5- 3
5.2.2 Backlash compensation amount....................................................................................................... 5- 5
5.2.3 Upper/lower stroke limit value........................................................................................................... 5- 5
5.2.4 Command in-position range.............................................................................................................. 5- 7
5.2.5 High-speed feed rate setting............................................................................................................. 5- 8
5.2.6 Speed control 10
multiplier setting for degree axis ........................................................................ 5- 9
5.3 Parameter Block....................................................................................................................................... 5-13
5.3.1 Relationships between the speed limit value, acceleration time, deceleration time and rapid
stop deceleration time ................................................................................................................... 5-16
5.3.2 S-curve ratio ...................................................................................................................................... 5-18
5.3.3 Allowable error range for circular interpolation................................................................................. 5-19
5.4 Work Coordinate Data ............................................................................................................................. 5-20
6. MOTION PROGRAMS FOR POSITIONING CONTROL 6- 1 to 6-186
6.1 Motion Program Composition .................................................................................................................. 6- 1
6.2 Type of The Motion Program................................................................................................................... 6- 4
6.3 G-code List ............................................................................................................................................... 6- 5
6.4 M-code List ............................................................................................................................................... 6- 7
6.5 Control Instruction List ............................................................................................................................. 6- 8
6.6 Start/End Method ..................................................................................................................................... 6-10
6.7 Number of Maximum Nesting for Program Call and Multi Startable Program....................................... 6-12
6.8 Motion parameter ..................................................................................................................................... 6-13
6.9 Caution at The Axis Designation Program Creation............................................................................... 6-14
6.10 Instruction Symbols/Characters List...................................................................................................... 6-19
6.11 Setting Method for Command Data....................................................................................................... 6-23
6.11.1 Direct setting (numerical value) ...................................................................................................... 6-23
6.11.2 Indirect setting ................................................................................................................................. 6-24
6.11.3 Operational data.............................................................................................................................. 6-31
6.11.4 Setting range of instruction symbols list ......................................................................................... 6-41
6.11.5 Positioning control unit for 1 axis .................................................................................................... 6-43
6.11.6 Control units for interpolation control.............................................................................................. 6-44
6.11.7 Control in the control unit "degree" ................................................................................................. 6-46
6.12 About Coordinate Systems.................................................................................................................... 6-48
A - 14
6.13 G-code.................................................................................................................................................... 6-49
6.13.1 G00 Point-to-point positioning at the high-speed feed rate .......................................................... 6-52
6.13.2 G01 Constant-speed positioning at the speed specified in F ....................................................... 6-54
6.13.3 G02 Circular interpolation CW (Central coordinates-specified) .................................................. 6-56
6.13.4 G03 Circular interpolation CCW (Central coordinates-specified)................................................. 6-59
6.13.5 G02 Circular interpolation CW (Radius-specified) ........................................................................ 6-62
6.13.6 G03 Circular interpolation CCW (Radius-specified) ..................................................................... 6-64
6.13.7 G04 Dwell....................................................................................................................................... 6-66
6.13.8 G09 Exact stop check .................................................................................................................... 6-68
6.13.9 G12 Helical interpolation CW (Helical central coordinates-specified) .......................................... 6-70
6.13.10 G13 Helical interpolation CCW (Helical central coordinates-specified) ..................................... 6-73
6.13.11 G12 Helical interpolation CW (Helical radius-specified) ............................................................. 6-75
6.13.12 G13 Helical interpolation CCW (Helical radius-specified) .......................................................... 6-77
6.13.13 G23 Cancel, cancel start invalid .................................................................................................. 6-79
6.13.14 G24 Cancel, cancel start.............................................................................................................. 6-80
6.13.15 G25 High-speed oscillation.......................................................................................................... 6-83
6.13.16 G26 High-speed oscillation stop.................................................................................................. 6-85
6.13.17 G28 Home position return............................................................................................................ 6-86
6.13.18 G30 Second home position return............................................................................................... 6-88
6.13.19 G32 Skip....................................................................................................................................... 6-90
6.13.20 G43 Tool length offset (+) ............................................................................................................ 6-94
6.13.21 G44 Tool length offset (-) ............................................................................................................. 6-96
6.13.22 G49 Tool length offset cancel ...................................................................................................... 6-98
6.13.23 G53 Mechanical coordinate system selection............................................................................. 6-99
6.13.24 G54 to G59 Work coordinate system selection ........................................................................ 6-101
6.13.25 G61 Exact stop check mode...................................................................................................... 6-104
6.13.26 G64 Cutting mode ...................................................................................................................... 6-106
6.13.27 G90 Absolute value command .................................................................................................. 6-108
6.13.28 G91 Incremental value command ............................................................................................. 6-110
6.13.29 G92 Coordinates system setting ............................................................................................... 6-112
6.13.30 G98, G99 Preread disable/enable............................................................................................. 6-114
6.13.31 G100, G101 Time-fixed acceleration/deceleration, acceleration-fixed acceleration/deceleration
switching command..................................................................................................................... 6-116
6.14 M-Code................................................................................................................................................. 6-120
6.15 Special M-Code.................................................................................................................................... 6-121
6.15.1 M00 Program stop ....................................................................................................................... 6-122
6.15.2 M01 Optional program stop ........................................................................................................ 6-123
6.15.3 M02 Program end ........................................................................................................
................ 6-124
6.1
5.4 M30 Program end ........................................................................................................................6-125
6.15.5 M98, M99 Subprogram call, subprogram end ........................................................................... 6-126
6.15.6 M100 Preread disable ................................................................................................................. 6-128
6.16 Miscellaneous....................................................................................................................................... 6-129
6.16.1 Program control function (IF, GOTO statement) ........................................................................ 6-130
6.16.2 Program control function (IF, THEN, ELSE, END statements) ................................................. 6-132
6.16.3 Program control function (WHILE, DO, END statements)......................................................... 6-134
6.16.4 Four fundamental operators, assignment operator (+, -, *, /, MOD, =)..................................... 6-136
6.16.5 Trigonometric functions (SIN, COS, TAN, ASIN, ACOS, ATAN) .............................................. 6-138
6.16.6 Real number to BIN value conversion (INT)............................................................................... 6-139
6.16.7 BIN value to real number conversion (FLT)................................................................................6-140
A - 15
6.16.8 32-bit real number and 64-bit real number data conversion (DFLT, SFLT) ...............................6-141
6.16.9 Functions (SQRT, ABS, BIN, BCD, LN, EXP, RND, FIX, FUP) ................................................ 6-142
6.16.10 Logical operators (AND, OR, XOR, NOT, <<, >>) ................................................................... 6-143
6.16.11 Move block wait functions (WAITON, WAITOFF)..................................................................... 6-145
6.16.12 Block wait functions (EXEON, EXEOFF) .................................................................................. 6-147
6.16.13 Bit set and reset for word devices (BSET, BRST)..................................................................... 6-150
6.16.14 Parameter block change (PB) ................................................................................................... 6-151
6.16.15 Torque limit value change (TL).................................................................................................. 6-153
6.16.16 Home position return (CHGA) .................................................................................................... 6-155
6.16.17 Speed change (CHGV)............................................................................................................... 6-156
6.16.18 Torque limit value change (CHGT)............................................................................................. 6-157
6.16.19 Bit device set, reset functions (SET, RST) ............................................................................... 6-158
6.16.20 Bit device operation on condition (IF, THEN, SET/RST/OUT) ................................................. 6-159
6.16.21 Program start (CALL).................................................................................................................. 6-161
6.16.22 Program call 1 (GOSUB) ............................................................................................................ 6-163
6.16.23 Program call 2 (GOSUBE) ......................................................................................................... 6-164
6.16.24 Control program end (CLEAR) ................................................................................................... 6-167
6.16.25 Time to wait (TIME).....................................................................................................................6-169
6.16.26 Block transfers (BMOV : 16-bit unit) .......................................................................................... 6-170
6.16.27 Block transfer (BDMOV : 32-bit unit)......................................................................................... 6-172
6.16.28 Identical data block transfers (FMOV)........................................................................................ 6-174
6.16.29 Write device data to shared CPU memory (MULTW) ............................................................... 6-176
6.16.30 Read device data from shared CPU memory of the other CPU (MULTR)............................... 6-178
6.16.31 Write words data to intelligent function module/special function module (TO)......................... 6-180
6.16.32 Read words data from intelligent function module/special function module (FROM) .............. 6-182
6.16.33 Conditional branch using bit device (ON, OFF) .......................................................................6-184
7. AUXILIARY AND APPLIED FUNCTIONS 7- 1 to 7-80
7.1 Backlash Compensation Function........................................................................................................... 7- 1
7.2 Torque Limit Function .............................................................................................................................. 7- 3
7.3 Home Position Return.............................................................................................................................. 7- 5
7.3.1 Home position return data................................................................................................................. 7- 6
7.3.2 Home position return by the proximity dog type 1............................................................................ 7-16
7.3.3 Home position return by the proximity dog type 2............................................................................ 7-19
7.3.4 Home position return by the count type 1......................................................................................... 7-21
7.3.5 Home position return by the count type 2......................................................................................... 7-23
7.3.6 Home position return by the count type 3......................................................................................... 7-25
7.3.7 Home position return by the data set type 1 .................................................................................... 7-27
7.3.8 Home position return by the data set type 2 .................................................................................... 7-28
7.3.9 Home position return by the dog cradle type ................................................................................... 7-29
7.3.10 Home position return by the stopper type 1 ................................................................................... 7-33
7.3.11 Home position return by the stopper type 2 ................................................................................... 7-35
7.3.12 Home position return by the limit switch combined type................................................................ 7-37
7.3.13 Home position return retry function ................................................................................................ 7-39
7.3.14 Home position shift function............................................................................................................ 7-43
7.3.15 Condition selection of home position set........................................................................................ 7-47
7.3.16 Execution of home position return................................................................................................. 7-48
7.4 Speed Change (CHGV instruction) ......................................................................................................... 7-49
A - 16
7.5 JOG Operation ......................................................................................................................................... 7-53
7.5.1 JOG operation data ........................................................................................................................... 7-53
7.5.2 Individual start ................................................................................................................................... 7-54
7.5.3 Simultaneous start............................................................................................................................. 7-59
7.6 Manual Pulse Generator Operation......................................................................................................... 7-62
7.7 Override Ratio Setting Function .............................................................................................................. 7-68
7.8 FIN signal wait function............................................................................................................................ 7-70
7.9 Single Block Operation ............................................................................................................................ 7-74
7.10 Control Program Stop Function from The PLC CPU ............................................................................ 7-79
8. USER FILES 8- 1 to 8- 2
8.1 Projects..................................................................................................................................................... 8- 1
8.2 User File List............................................................................................................................................. 8- 2
APPENDICES APP- 1 to APP-67
APPENDIX 1 Error Codes Stored Using The Motion CPU ....................................................................APP- 1
APPENDIX 1.1 Motion program setting errors (Stored in D9190).......................................................APP- 3
APPENDIX 1.2 Minor errors .................................................................................................................APP- 4
APPENDIX 1.3 Major errors .................................................................................................................APP-20
APPENDIX 1.4 Servo errors.................................................................................................................APP-24
APPENDIX 1.5 PC link communication errors .....................................................................................APP-41
APPENDIX 2 Motion dedicated signal.....................................................................................................APP-42
APPENDIX 2.1 Internal relay (M) .........................................................................................................APP-42
APPENDIX 2.2 Data registers (D) ........................................................................................................APP-52
APPENDIX 2.3 Motion Registers (#) ....................................................................................................APP-59
APPENDIX 2.4 Special Relays.............................................................................................................APP-60
APPENDIX 2.5 Special Registers.........................................................................................................APP-63
APPENDIX 3 Processing Times of the Motion CPU ...............................................................................APP-67
A - 17
About Manuals
The following manuals are related to this product.
Referring to this list, please request the necessary manuals.
Related Manuals
(1) Motion controller
Manual Name
Manual Number
(Model Code)
Q173HCPU/Q172HCPU Motion controller User's Manual
This manual explains specifications of the Motion CPU modules, Q172LX Servo external signal interface
module, Q172EX Serial absolute synchronous encoder interface module, Q173PX Manual pulse
generator interface module, Teaching units, Power supply modules, Servo amplifiers, SSCNET
cables,
synchronous encoder cables and others.
(Optional)
IB-0300110
(1XB910)
Q173HCPU/Q172HCPU Motion controller Programming Manual (COMMON)
This manual explains the Multiple CPU system configuration, performance specifications, common
parameters, auxiliary/applied functions and others.
(Optional)
IB-0300111
(1XB911)
Q173HCPU/Q172HCPU Motion controller (SV13/SV22) Programming Manual (Motion SFC)
This manual explains the functions, programming, debugging, error codes and others of the Motion SFC.
(Optional)
IB-0300112
(1XB912)
Q173HCPU/Q172HCPU Motion controller (SV13/SV22) Programming Manual (REAL MODE)
This manual explains the servo parameters, positioning instructions, device list, error list and others.
(Optional)
IB-0300113
(1XB913)
Q173HCPU/Q172HCPU Motion controller (SV22) Programming Manual (VIRTUAL MODE)
This manual describes the dedicated instructions use to the synchronous control by virtual main shaft,
mechanical system program create mechanical module.
This manual explains the servo parameters, positioning instructions, device list, error list and others.
(Optional)
IB-0300114
(1XB914)
A - 18
(2) PLC
Manual Name
Manual Number
(Model Code)
QCPU User's Manual (Hardware Design, Maintenance and Inspection)
This manual explains the specifications of the QCPU modules, power supply modules, base modules,
extension cables, memory card battery and others.
(Optional)
SH-080483ENG
(13JR73)
QCPU User's Manual (Function Explanation, Program Fundamentals)
This manual explains the functions, programming methods and devices and others to create programs
with the QCPU.
(Optional)
SH-080484ENG
(13JR74)
QCPU User's Manual (Multiple CPU System)
This manual explains the functions, programming methods and cautions and others to construct the
Multiple CPU system with the QCPU.
(Optional)
SH-080485ENG
(13JR75)
QCPU (Q Mode)/QnACPU Programming Manual (Common Instructions)
This manual explains how to use the sequence instructions, basic instructions, application instructions and
micro computer program.
(Optional)
SH-080039
(13JF58)
QCPU (Q Mode)/QnACPU Programming Manual (PID Control Instructions)
This manual explains the dedicated instructions used to exercise PID control.
(Optional)
SH-080040
(13JF59)
QCPU (Q Mode)/QnACPU Programming Manual (SFC)
This manual explains the system configuration, performance specifications, functions, programming,
debugging, error codes and others of MELSAP3.
(Optional)
SH-080041
(13JF60)
I/O Module Type Building Block User's Manual
This manual explains the specifications of the I/O modules, connector, connector/terminal block
conversion modules and others.
(Optional)
SH-080042
(13JL99)
(3) Servo amplifier
Manual Name
Manual Number
(Model Code)
MR-J3-B Servo amplifier Instruction Manual
This manual explains the I/O signals, parts names, parameters, start-up procedure and others.
(Optional)
SH-030051
(1CW202)
1 - 1
1 OVERVIEW
1
1. OVERVIEW
1.1 Overview
This programming manual describes the operating system software packages
"SW5RN-SV43Q
" for Motion CPU module (Q173HCPU/Q172HCPU).
In this manual, the following abbreviations are used.
Generic term/Abbreviation Description
Q173HCPU/Q172HCPU or
Motion CPU (module)
Q173HCPU/Q172HCPU Motion CPU module
Q172LX/Q172EX/Q173PX or
Motion module
Q172LX Servo external signals interface module/
Q172EX-S2/S3 Serial absolute synchronous encoder interface module
(Note-1)
/
Q173PX(-S1) Manual pulse generator interface module
MR-J3- B Servo amplifier model MR-J3- B
AMP or Servo amplifier General name for "servo amplifier model MR-J3- B"
QCPU, PLC CPU or PLC CPU module Qn(H)CPU
Multiple CPU system or Motion system Abbreviation for "Multiple PLC system of the Q series"
CPUn
Abbreviation for "CPU No.n (n= 1 to 4) of the CPU module for the Multiple
CPU system"
Programming software package General name for "MT Developer" and "GX Developer"
Operating system software General name for "SW RN-SV Q "
SV43 Operating system software for machine tool peripheral use: SW5RN-SV43Q
MT Developer
Abbreviation for "MT Developer (Version 00M or later)"
(Integrated start-up support software package)
GX Developer
Abbreviation for "GX Developer (Version 6 or later)"
(GX Developer function software package)
Manual pulse generator or MR-HDP01 Abbreviation for "Manual pulse generator (MR-HDP01)"
Serial absolute synchronous encoder
or Q170ENC
Abbreviation for "Serial absolute synchronous encoder (Q170ENC)"
SSCNET
(Note-2)
High speed synchronous network between Motion controller and servo
amplifier
SSCNET
(Note-2)
High speed serial communication between Motion controller and servo
amplifier
Absolute position system
General name for "system using the servomotor and servo amplifier for
absolute position"
Battery holder unit Battery holder unit (Q170HBATC)
External battery General name for "Q170HBATC" and "Q6BAT"
A 0BD-PCF A10BD-PCF/A30BD-PCF SSC I/F board
SSC I/F communication cable Abbreviation for "Cable for SSC I/F board/card"
Intelligent function module
Abbreviation for "MELSECNET/H module/Ethernet module/
CC-Link module/Serial communication module"
(Note-1) : Q172EX can be used in SV22.
(Note-2) : SSCNET: S
ervo System Controller NETwork
  • Page 1 1
  • Page 2 2
  • Page 3 3
  • Page 4 4
  • Page 5 5
  • Page 6 6
  • Page 7 7
  • Page 8 8
  • Page 9 9
  • Page 10 10
  • Page 11 11
  • Page 12 12
  • Page 13 13
  • Page 14 14
  • Page 15 15
  • Page 16 16
  • Page 17 17
  • Page 18 18
  • Page 19 19
  • Page 20 20
  • Page 21 21
  • Page 22 22
  • Page 23 23
  • Page 24 24
  • Page 25 25
  • Page 26 26
  • Page 27 27
  • Page 28 28
  • Page 29 29
  • Page 30 30
  • Page 31 31
  • Page 32 32
  • Page 33 33
  • Page 34 34
  • Page 35 35
  • Page 36 36
  • Page 37 37
  • Page 38 38
  • Page 39 39
  • Page 40 40
  • Page 41 41
  • Page 42 42
  • Page 43 43
  • Page 44 44
  • Page 45 45
  • Page 46 46
  • Page 47 47
  • Page 48 48
  • Page 49 49
  • Page 50 50
  • Page 51 51
  • Page 52 52
  • Page 53 53
  • Page 54 54
  • Page 55 55
  • Page 56 56
  • Page 57 57
  • Page 58 58
  • Page 59 59
  • Page 60 60
  • Page 61 61
  • Page 62 62
  • Page 63 63
  • Page 64 64
  • Page 65 65
  • Page 66 66
  • Page 67 67
  • Page 68 68
  • Page 69 69
  • Page 70 70
  • Page 71 71
  • Page 72 72
  • Page 73 73
  • Page 74 74
  • Page 75 75
  • Page 76 76
  • Page 77 77
  • Page 78 78
  • Page 79 79
  • Page 80 80
  • Page 81 81
  • Page 82 82
  • Page 83 83
  • Page 84 84
  • Page 85 85
  • Page 86 86
  • Page 87 87
  • Page 88 88
  • Page 89 89
  • Page 90 90
  • Page 91 91
  • Page 92 92
  • Page 93 93
  • Page 94 94
  • Page 95 95
  • Page 96 96
  • Page 97 97
  • Page 98 98
  • Page 99 99
  • Page 100 100
  • Page 101 101
  • Page 102 102
  • Page 103 103
  • Page 104 104
  • Page 105 105
  • Page 106 106
  • Page 107 107
  • Page 108 108
  • Page 109 109
  • Page 110 110
  • Page 111 111
  • Page 112 112
  • Page 113 113
  • Page 114 114
  • Page 115 115
  • Page 116 116
  • Page 117 117
  • Page 118 118
  • Page 119 119
  • Page 120 120
  • Page 121 121
  • Page 122 122
  • Page 123 123
  • Page 124 124
  • Page 125 125
  • Page 126 126
  • Page 127 127
  • Page 128 128
  • Page 129 129
  • Page 130 130
  • Page 131 131
  • Page 132 132
  • Page 133 133
  • Page 134 134
  • Page 135 135
  • Page 136 136
  • Page 137 137
  • Page 138 138
  • Page 139 139
  • Page 140 140
  • Page 141 141
  • Page 142 142
  • Page 143 143
  • Page 144 144
  • Page 145 145
  • Page 146 146
  • Page 147 147
  • Page 148 148
  • Page 149 149
  • Page 150 150
  • Page 151 151
  • Page 152 152
  • Page 153 153
  • Page 154 154
  • Page 155 155
  • Page 156 156
  • Page 157 157
  • Page 158 158
  • Page 159 159
  • Page 160 160
  • Page 161 161
  • Page 162 162
  • Page 163 163
  • Page 164 164
  • Page 165 165
  • Page 166 166
  • Page 167 167
  • Page 168 168
  • Page 169 169
  • Page 170 170
  • Page 171 171
  • Page 172 172
  • Page 173 173
  • Page 174 174
  • Page 175 175
  • Page 176 176
  • Page 177 177
  • Page 178 178
  • Page 179 179
  • Page 180 180
  • Page 181 181
  • Page 182 182
  • Page 183 183
  • Page 184 184
  • Page 185 185
  • Page 186 186
  • Page 187 187
  • Page 188 188
  • Page 189 189
  • Page 190 190
  • Page 191 191
  • Page 192 192
  • Page 193 193
  • Page 194 194
  • Page 195 195
  • Page 196 196
  • Page 197 197
  • Page 198 198
  • Page 199 199
  • Page 200 200
  • Page 201 201
  • Page 202 202
  • Page 203 203
  • Page 204 204
  • Page 205 205
  • Page 206 206
  • Page 207 207
  • Page 208 208
  • Page 209 209
  • Page 210 210
  • Page 211 211
  • Page 212 212
  • Page 213 213
  • Page 214 214
  • Page 215 215
  • Page 216 216
  • Page 217 217
  • Page 218 218
  • Page 219 219
  • Page 220 220
  • Page 221 221
  • Page 222 222
  • Page 223 223
  • Page 224 224
  • Page 225 225
  • Page 226 226
  • Page 227 227
  • Page 228 228
  • Page 229 229
  • Page 230 230
  • Page 231 231
  • Page 232 232
  • Page 233 233
  • Page 234 234
  • Page 235 235
  • Page 236 236
  • Page 237 237
  • Page 238 238
  • Page 239 239
  • Page 240 240
  • Page 241 241
  • Page 242 242
  • Page 243 243
  • Page 244 244
  • Page 245 245
  • Page 246 246
  • Page 247 247
  • Page 248 248
  • Page 249 249
  • Page 250 250
  • Page 251 251
  • Page 252 252
  • Page 253 253
  • Page 254 254
  • Page 255 255
  • Page 256 256
  • Page 257 257
  • Page 258 258
  • Page 259 259
  • Page 260 260
  • Page 261 261
  • Page 262 262
  • Page 263 263
  • Page 264 264
  • Page 265 265
  • Page 266 266
  • Page 267 267
  • Page 268 268
  • Page 269 269
  • Page 270 270
  • Page 271 271
  • Page 272 272
  • Page 273 273
  • Page 274 274
  • Page 275 275
  • Page 276 276
  • Page 277 277
  • Page 278 278
  • Page 279 279
  • Page 280 280
  • Page 281 281
  • Page 282 282
  • Page 283 283
  • Page 284 284
  • Page 285 285
  • Page 286 286
  • Page 287 287
  • Page 288 288
  • Page 289 289
  • Page 290 290
  • Page 291 291
  • Page 292 292
  • Page 293 293
  • Page 294 294
  • Page 295 295
  • Page 296 296
  • Page 297 297
  • Page 298 298
  • Page 299 299
  • Page 300 300
  • Page 301 301
  • Page 302 302
  • Page 303 303
  • Page 304 304
  • Page 305 305
  • Page 306 306
  • Page 307 307
  • Page 308 308
  • Page 309 309
  • Page 310 310
  • Page 311 311
  • Page 312 312
  • Page 313 313
  • Page 314 314
  • Page 315 315
  • Page 316 316
  • Page 317 317
  • Page 318 318
  • Page 319 319
  • Page 320 320
  • Page 321 321
  • Page 322 322
  • Page 323 323
  • Page 324 324
  • Page 325 325
  • Page 326 326
  • Page 327 327
  • Page 328 328
  • Page 329 329
  • Page 330 330
  • Page 331 331
  • Page 332 332
  • Page 333 333
  • Page 334 334
  • Page 335 335
  • Page 336 336
  • Page 337 337
  • Page 338 338
  • Page 339 339
  • Page 340 340
  • Page 341 341
  • Page 342 342
  • Page 343 343
  • Page 344 344
  • Page 345 345
  • Page 346 346
  • Page 347 347
  • Page 348 348
  • Page 349 349
  • Page 350 350
  • Page 351 351
  • Page 352 352
  • Page 353 353
  • Page 354 354
  • Page 355 355
  • Page 356 356
  • Page 357 357
  • Page 358 358
  • Page 359 359
  • Page 360 360
  • Page 361 361
  • Page 362 362
  • Page 363 363
  • Page 364 364
  • Page 365 365
  • Page 366 366
  • Page 367 367
  • Page 368 368
  • Page 369 369
  • Page 370 370
  • Page 371 371
  • Page 372 372
  • Page 373 373
  • Page 374 374
  • Page 375 375
  • Page 376 376
  • Page 377 377
  • Page 378 378
  • Page 379 379
  • Page 380 380
  • Page 381 381
  • Page 382 382
  • Page 383 383
  • Page 384 384
  • Page 385 385
  • Page 386 386
  • Page 387 387
  • Page 388 388
  • Page 389 389
  • Page 390 390
  • Page 391 391
  • Page 392 392
  • Page 393 393
  • Page 394 394
  • Page 395 395
  • Page 396 396
  • Page 397 397
  • Page 398 398
  • Page 399 399
  • Page 400 400
  • Page 401 401
  • Page 402 402
  • Page 403 403
  • Page 404 404
  • Page 405 405
  • Page 406 406
  • Page 407 407
  • Page 408 408
  • Page 409 409
  • Page 410 410
  • Page 411 411
  • Page 412 412
  • Page 413 413
  • Page 414 414
  • Page 415 415
  • Page 416 416
  • Page 417 417
  • Page 418 418
  • Page 419 419
  • Page 420 420
  • Page 421 421
  • Page 422 422
  • Page 423 423
  • Page 424 424
  • Page 425 425
  • Page 426 426
  • Page 427 427
  • Page 428 428
  • Page 429 429
  • Page 430 430
  • Page 431 431
  • Page 432 432
  • Page 433 433
  • Page 434 434
  • Page 435 435
  • Page 436 436
  • Page 437 437
  • Page 438 438
  • Page 439 439
  • Page 440 440
  • Page 441 441
  • Page 442 442
  • Page 443 443
  • Page 444 444
  • Page 445 445
  • Page 446 446
  • Page 447 447
  • Page 448 448
  • Page 449 449
  • Page 450 450
  • Page 451 451
  • Page 452 452
  • Page 453 453
  • Page 454 454
  • Page 455 455
  • Page 456 456
  • Page 457 457
  • Page 458 458
  • Page 459 459
  • Page 460 460
  • Page 461 461
  • Page 462 462
  • Page 463 463
  • Page 464 464
  • Page 465 465
  • Page 466 466
  • Page 467 467
  • Page 468 468
  • Page 469 469
  • Page 470 470
  • Page 471 471
  • Page 472 472
  • Page 473 473
  • Page 474 474
  • Page 475 475
  • Page 476 476
  • Page 477 477
  • Page 478 478
  • Page 479 479
  • Page 480 480
  • Page 481 481
  • Page 482 482
  • Page 483 483
  • Page 484 484
  • Page 485 485
  • Page 486 486
  • Page 487 487
  • Page 488 488
  • Page 489 489
  • Page 490 490
  • Page 491 491
  • Page 492 492
  • Page 493 493
  • Page 494 494
  • Page 495 495
  • Page 496 496
  • Page 497 497
  • Page 498 498
  • Page 499 499
  • Page 500 500
  • Page 501 501
  • Page 502 502
  • Page 503 503
  • Page 504 504
  • Page 505 505
  • Page 506 506
  • Page 507 507
  • Page 508 508
  • Page 509 509
  • Page 510 510
  • Page 511 511
  • Page 512 512
  • Page 513 513
  • Page 514 514
  • Page 515 515
  • Page 516 516
  • Page 517 517
  • Page 518 518
  • Page 519 519
  • Page 520 520
  • Page 521 521
  • Page 522 522
  • Page 523 523
  • Page 524 524

Mitsubishi Electric SV43 Programming Manual

Category
Software
Type
Programming Manual

Ask a question and I''ll find the answer in the document

Finding information in a document is now easier with AI