FX Family - Training Manual (Positioning Control) 214562-B (08.12) PDF
FX Family - Training Manual (Positioning Control) 214562-B (08.12) PDF
FX Family - Training Manual (Positioning Control) 214562-B (08.12) PDF
MELSEC FX Series
Introduction to
FX Positioning Control Systems
Beginners Manual
The texts, illustration, diagrams and examples in this manual are provided
for information purposes only. They are intended as aids to help explain the
operation, programming and use of programmable controllers of the programmable
logic controllers of the MELSEC FX1S, FX1N, FX2N, FX2NC, FX3G, FX3U and FX3UC series.
If you have any questions about the installation and operation of any of the
products described in this manual please contact your local sales office or distributor (see back cover).
You can find the latest information and answers to frequently asked questions on our website at
www.mitsubishi-automation.com.
05/2008
Safety Guidelines
General safety information and precautions
For use by qualified staff only
This manual is only intended for use by properly trained and qualified electrical technicians who
are fully acquainted with the relevant automation technology safety standards. All work with the
hardware described, including system design, installation, configuration, maintenance, service
and testing of the equipment, may only be performed by trained electrical technicians with
approved qualifications who are fully acquainted with all the applicable automation technology
safety standards and regulations. Any operations or modifications to the hardware and/or
software of our products not specifically described in this manual may only be performed by
authorised Mitsubishi Electric staff.
m
DANGER:
Failure to observe the safety warnings identified with this symbol can result in health
and injury hazards for the user.
b
WARNING:
Failure to observe the safety warnings identified with this symbol can result in damage
to the equipment or other property.
II MITSUBISHI ELECTRIC
General safety information and precautions
The following safety precautions are intended as a general guideline for using PLC systems
together with other equipment. These precautions must always be observed in the design,
installation and operation of all control systems.
m
DANGER:
Observe all safety and accident prevention regulations applicable to your specific
application. Always disconnect all power supplies before performing installation
and wiring work or opening any of the assemblies, components and devices.
Assemblies, components and devices must always be installed in a shockproof
housing fitted with a proper cover and fuses or circuit breakers.
Devices with a permanent connection to the mains power supply must be integrated
in the building installations with an all-pole disconnection switch and a suitable
fuse.
Check power cables and lines connected to the equipment regularly for breaks and
insulation damage. If cable damage is found immediately disconnect the equipment
and the cables from the power supply and replace the defective cabling.
Before using the equipment for the first time check that the power supply rating
matches that of the local mains power.
Take appropriate steps to ensure that cable damage or core breaks in the signal
lines cannot cause undefined states in the equipment.
You are responsible for taking the necessary precautions to ensure that programs
interrupted by brownouts and power failures can be restarted properly and safely.
In particular, you must ensure that dangerous conditions cannot occur under any
circumstances, even for brief periods.
EMERGENCY OFF facilities conforming to EN 60204/IEC 204 and VDE 0113 must
remain fully operative at all times and in all PLC operating modes. The EMERGENCY
OFF facility reset function must be designed so that it cannot ever cause an
uncontrolled or undefined restart.
You must implement both hardware and software safety precautions to prevent the
possibility of undefined control system states caused by signal line cable or core
breaks.
When using modules always ensure that all electrical and mechanical specifications
and requirements are observed exactly.
Table of Contents
Safety Guidelines
Index
VI MITSUBISHI ELECTRIC
What is positioning control? The Basics of Positioning Control
1.2.1 Pneumatic
Features and Drawbacks
Air source and high grade piping are required.
High torque is not available.
Multi-point positioning is complex and very difficult to achieve.
Change in positioning is difficult.
Workpiece
Compressor
120010da.eps
Limit switch
120020da.eps
Clutch brake
unit
Optical
sensor
Motor
120030da.eps
Controller
Stepping
motor
120040da.eps
DC servomotor
120050da.eps
Lifter
Fig. 1-6: Schematic drawing
General purpose inverter and
Motor with brake general purpose motor
General-purpose
inverter
120060da.eps
Sheet material
AC servo
motor
AC servo amplifier
120030da.eps
High speed
0 to 10 V DC
Low speed
Movement distance
120080da.eps
Inductive motor
Pulses are fed
Moving part
back
Ball screw
PLG IM
Pulse generator
Inverter
INV
DC 0 to
10 V
High speed
Programmable
controller PLC
Low speed
High speed
counter unit Movement distance
120090da.eps
In speed control applications with inverters, stop precision is not very accurate. With the limit
switch method, a system operates without any feedback to the controller to indicate the location
of the workpiece. With the pulse count method, the speed can be changed and the stop
command can be executed at specific distances (at specific timings) according to the feedback
from the pulse generator connected to the motor. Both the limit switch method and the pulse
count method, however, are subject to a loss in stop precision due to the dispersion of distance
that occurs for workpieces at different speeds.
When automatically stopping a moving part driven by a motor, stop the motor by a position
signal (using a limit switch or pulse count comparison). In general conditions, turn on the
brake at the same time.
The moving part continues by a coasting distance until it completely stops, after the stop
command is given. The coasting distance is not controlled and it is represented as the
shaded part in the figure below.
Speed
Fig. 1-10: Positioning pattern
Coasting
distance
Time
Stop command Stop
1200b0da.eps
Dispersion in the stop distance changes as shown below. Dispersion is affected by the speed
of the workpiece when the stop command is given and the speed reduction time delay after
stop.
Dispersion in
stop
Time
Stop Stop
command Stop
1200c0da.eps
If the required stop precision is not satisfactory when stopping from the normal operation
speed, the most effective method to improve the stop precision is to reduce the operation
speed. However, if the operation speed is simply reduced, the machine efficiency may also
be reduced. Therefore, in actual operation, the motor speed can be reduced from a high
speed to a low speed before the motor is stopped, as shown below.
Speed Speed
Time delay
High speed High speed
Poor stop
precision
Time Time
Stop Stop Stop
command Speed reduction Stop command
command
1200d0da.eps
Servo motor
Pulses are fed
Moving part
back
Ball screw
PLG SM
Pulse generator
Servo
amplifier
Programmable
controller PLC
Position controller
Movement distance
1200a0da.eps
Using the pulse command method with a servo amplifier, the weak points described above for
speed control are improved. A pulse encoder is attached to the servo motor to detect the motor
rotation quantity (workpiece movement distance) and feed the information directly to the servo
amplifier in order to continuously and directly control the high-speed positioning operation to the
target position. This method allows the workpiece to stop with better precision and eliminates
the coasting and dispersion distance at stop. Furthermore, limit switches to stop normal
positioning operations, along with counting methods from the PLC are not needed.
1 - 10 MITSUBISHI ELECTRIC
Advantages for using an AC servo system Positioning by AC Servo System
Servo amplifier
Servo
Commercial Smoothing motor
power supply Converter circuit Inverter
AC DC DC DC AC SM
Command
pulse Speed PLG
command Feedback
Deviation current
Positioning counter Encoder
controller
Current PWM (pulse width Feedback
control modulation control pulse
The positioning controller The command pulse number The servo motor is equipped with a
generates a specified quantity is subtracted by the feedback pulse built-in encoder (pulse generator),
of forward rotation (or reverse rotation) number, and the speed command to dedicated to high speed response, and
pulses at a specified frequency. drive the servo motor is made from the suitable for positioning control.
deviation (accumulated pulse number).
When the accumulated pulse number
becomes 0, the servo motor stops.
210010da.eps
In the latest AC servo systems, conventional weak points have been improved as follows:
Although the latest systems are completely digital, they are equipped with parameters in
conformance to diversified mechanical specifications and electrical specifications so that
simple set-up is possible.
As frequent operation is enabled by a low inertia motor, the maximum torque is increased
and the system can be applied to a wide variety of machines.
The latest systems are equipped with an auto tuning function, with which the servo amplifier
automatically detects the load inertia moment and adjusts the gain. This is possible even if
the load inertia moment is unknown.
The command communication cycle from the controller to the servo amplifier is improved
for synchronization accuracy and better speed/positioning accuracy.
The latest systems also allow for long-distance wiring, reduced noise resistance, and
simplified wiring.
Compact and light servo Robust servo system Easy servo system Good cost performance
system servo system
In the FA workplace, a In accordance with severe AC servo systems are eas- An AC servo system with
downsized AC servo sys- operation conditions, a ier to handle than hydraulic good cost performance
tem occupying less space tougher AC servo system is equipment. Easy systems saves a company in overall
is beneficial. often required. are also flexible for new engineering costs.
staff.
220010da
2.2.2 Tapping
Description
In order to tap a workpiece,
Quick feed
Cutting feed and
Quick return are performed repeatedly.
Timing Ball
belt Quick Cutting screw
feed feed
M
Feed
Pulley motor Quick
return
220020da.eps
X-Y table
M
M
X axis feed motor
Y axis feed motor
200030da.eps
Worm
wheel
Servo
motor
200040da.eps
Lifter
Regenerative
option
Servo
motor
200050da.eps
Drive wheel
(on each of left
and right sides)
200060da.eps
Pallet
Workpiece
Conveyor Servo motor
to drive
travel head
A
200070da.eps
Postion controller
AC power
supply
Outputs the positioning speed and the
movement quantity in command pulses to the
servo amplifier.
Transfers signals between the programmable
controller. Power factor Radio noise
Controls return to the zero point. Breaker
improving AG reactor filter
Powerboard
Nearpoint DOG signal Improves the power factor and cuts noise.
Protects the power circuit.
Main circuit
Position controller Servo amplifier
Positioning AC DC DC DC AC R
command
control Command
pulse
Counter clear
Feedback pulse
Servo
ready
10 Servo amplifier
0
Rectifies the AC power of the main circuit into the DC power in the
90
Operation switch the positioning controller, subtracts the feedback pulses from them,
Manual pulse generator then drives the servo motor until the accumulated pulse number
becomes 0.
Operation equipment
300010da.eps
Servo motor
Dedicated to high speed response optimal to positioning control,
has large start torque, large maximum torque and wide variable
speed range 1/1 or more (1/1,000 to 1/5,000).
Servo motor
Servo
motor
Speed
SM reducer
Ball screw
Encoder
PLG (pulse
generator)
When Electro-
required magnetic
brake
Auxiliary device such as chuck, drill and cylinder
300020da.eps
PLS/DIR method
In the PLS/DIR method, one output sends pulses to the drive unit while the other output specifies
the direction of travel.
H
Output # 2Direction
L ON OFF
311010da.eps
"ON" and "OFF" represent the status of the controllers output.
"H" and "L" respectively represent the HIGH status and the LOW status of the waveform.
The command pulse pattern in the figure assumes negative logic.
FP/RP method
In the FP/RP method, each output has a different direction and operates individually to send
pulses to the drive unit.
311020da.eps
"ON" and "OFF" represent the status of the controllers output.
"H" and "L" respectively represent the HIGH status and the LOW status of the waveform.
The command pulse pattern in the figure assumes negative logic.
Feed quantity
The feed quantity determined by the target address tells the servo system how far to move the
workpiece. So, for example, if a servo motor encoder generates 8,192 pulses for one rotation,
the command pulse number "8,192" can be output to rotate the servo motor by 1 rotation.
Feed speed
The feed speed defines the amount of travel per unit of time for the workpiece. When a servo
motor encoder generates 8,192 pulses for one rotation, the command pulse frequency (speed)
"8,192 pulses/s" should be output to rotate the servo motor by 1 rotation per second. Decrease
the pulse frequency to rotate the servo motor at a lower speed. Increase the pulse frequency to
rotate the servo motor at a higher speed.
Acceleration/deceleration time
When the start command is given, acceleration, operation at constant speed, and deceleration
are performed for positioning. Set the acceleration time and the deceleration time in the
controllers parameters.
Parameter:
Fig. 3-4: Positioning pattern of
Max. speed acceleration/deceleration time
Speed
Positioning speed
Actual Actual
acceleration deceleration
time time
Parameter: Parameter:
Acceleration Deceleration
time time
312010da.eps
NOTE The zero point return function does not actuate movement to a physical zero address.
Instead, the zero point return function causes movement in a specified direction (positive or
negative) in order to define the physical zero address after contact with a DOG switch.
In the example in Fig. 3-5, the DOG (which is attached to the workpiece) comes in contact with
the DOG switch to turn the DOG signal ON, which then initiates deceleration to creep speed.
After the backward end of the DOG passes the DOG switch, turning the DOG signal OFF, the
first detected zero point signal stops the motion, turns the CLEAR signal on, and sets the zero
point address.
The zero point address (specified in the controllers parameters) is typically zero. When the zero
return function finishes, the zero point address is written to the current value register of the
positioning controller to overwrite the current address. Since the zero point address is not always
zero, the zero return function should be thought of as a homing function instead of a
return-to-zero function.
The zero point return direction, zero point address, zero signal count, return speed, deceleration
time and creep speed are all set by parameters in the positioning controller.
DOG switch
Creep activated
speed
DOG DOG
CLEAR signal
313010da.eps
The location of the DOG switch should be adjusted so that the backward end of the DOG
is released between two consecutive zero point signals (1 pulse per rotation of the motor).
In this example, the DOG length should not be less than the deceleration distance of the
machine.
DOG
Fig. 3-6: Positioning pattern of
Limit
switch switch DOG search function
Initial
position Zero point
Escape operation
313020da.eps
Motor speed
NFB
Main R U
circuit S Converter Inverter V
AC to DC DC to AC SM PLG
AC power T W
supply
Number of
rotations of motor
Time
Power: OFF
Contacts of dynamic brake: ON
325010da.eps
3 - 10 MITSUBISHI ELECTRIC
Drive mechanism Components of Positioning Control and their Roles
Pf
Servo
amplifier
f0
Position
controller
331010da.eps
The servo motor stops with the precision l, which is within 1 pulse against the command
pulse.
The movement quantity of the workpiece is:
[Output pulses from position controller] [l]
The moving part speed is:
[f0] [l]
Either "mm", "inch", "degree", or "pulse" can be selected for the positioning command unit.
Accordingly, when data such as the movement quantity per pulse, positioning speed, or the
positioning address in accordance with the positioning command unit are set, pulse trains
are output for the target address, and positioning is performed.
Useful equations
To define the system illustrated above, l and v0 need to be determined using a series of
equations. The speed of the moving part (v0) is constrained by the mechanical gearing system
between the servo motor and moving part, the pitch of the ball screw, and the specification of the
motor as shown through the following two formulas.
Transfer distance per rotation of motor:
mm 1
S rev = PB
n
If N0 does not exceed the rated speed of the motor, this means that the servo system can be
used for the application. In order to determine if the positioning controller is applicable, the
command pulse frequency during quick feed (f0) should be checked to verify it does not exceed
the maximum allowable frequency setting for the "maximum speed" parameter setting of the
controller.
mm S
l PLS = (Electronic gear ratio)
Pf
PLS S 1
f0 = N0
S l 60
During the above process, the Electronic gear ratio (often "CMX/CDV" for Mitsubishi servos)
and Speed reduction ratio can be adjusted to fit the applications needs.
In each of the absolute and incremental positioning methods, the entire movement distance of
the machine should not exceed the maximum allowable pulse output number from the
positioning controller.
3 - 12 MITSUBISHI ELECTRIC
Drive mechanism Components of Positioning Control and their Roles
Absolute method
In this method, a point (absolute address) is specified for positioning while the zero point is
regarded as the reference. The start point is arbitrary.
Incremental method
In this method, positioning is performed through specification of the movement direction and the
movement quantity while the current stop position is regarded as the start point.
Movement quantity
-100 Startpoint
Movement quantity
+100 Endpoint
Movement quantity +100
Movement quantity +100
Movement quantity -150
Movement quantity -100 Movement quantity +50
3 - 14 MITSUBISHI ELECTRIC
FX PLC positioning Learning to Use the FX Familiy for Positioning Control
Limit switches
As with any other positioning system, inputs are needed to detect when the workpiece reaches
the outer boundary limits in order to prevent damage to the machine. For the FX3G and FX3U(C)
programmable logic controller, limits are wired to the controller to be used with the DOG search
zero return function for reversing the motors direction of travel in order to hunt for the DOG
switch. These limits are called the forward rotation limit (LSF) and the reverse rotation limit
(LSR). Hardware limits are used on the servo amplifier side to stop the motor in worst case
scenarios.
Reverse rotation limit 2 Reverse rotation limit 1 Forward rotation limit 1 Forward rotation limit 2
(Servo amplifier side) (Programmable (Programmable (Servo amplifier side)
controller side) controller side)
LSR LSF
Servo motor
141010da.eps
Applicable Positioning
Description Instruction Illustration
Model instruction
JOG operation
FX1S
The motor moves in a speci-
FX1N
fied direction depending on
FX3G DRVI
the logic and timing of the
FX3U Start
drive input signal. Stop
FX3UC
(There is no target position.) JOG
command
Applicable Positioning
Description Instruction Illustration
Model instruction
411030da.eps
Limit DOG
DOG search zero return (LSR)
The machine operates similar
FX3G
to the zero return instruction Origin
FX3U DSZR
except for features to hunt
FX3UC
for the DOG switch and to Start
use the zero-phase signal.
411070da.eps
Input
DTBL Y0 K1
Table operation
For programming simplicity, Input Y000 is postioned by
FX3G the operation in table
position and speed data can DTBL Y0 K2
FX3U DTBL number 1-3.
be organized in table format
FX3UC
for the DRVI, DRVA, DVIT Input
and PLSV instructions. DTBL Y0 K3
Axis Table No.
411080da.eps
Pulse output monitor M8147 1-bit OFF when Y000 is READY FX1S, FX1N, FX3G
flag ON when Y000 is BUSY
M8340 FX3G, FX3U(C)
Instruction execution M8329 1-bit Programmed immediately after a positioning FX3G, FX3U(C)
abnormally complete instruction. Turns ON when an instruction fails
flag to complete correctly and stays ON until the
instruction stops being driven.
CLEAR signal output M8341 1-bit Enables an output to be used for the CLEAR
function enable signal for Y000.
(Y000) Zero return M8342 1-bit OFF Reverse rotation
direction specification ON Forward rotation
Forward rotation limit M8343 1-bit Forward pulses on Y000 stop when this relay
turns ON.
Reverse rotation limit M8344 1-bit Reverse pulses on Y000 stop when this relay FX3G, FX3U(C)
turns ON.
(Y000) Positioning M8348 1-bit OFF when a positioning instruction is not active.
instruction activation ON when a positioning instruction is active.
CLEAR signal device M8464 1-bit Enables the output terminal for the CLEAR sig-
specification function nal to be changed for Y000.
enable
Bias speed [Hz] D8145 16-bit Sets the bias speed for Y000. FX1S, FX1N
Maximum speed [Hz] D8146 32-bit Sets the maximum speed for positioning instruc- FX1S, FX1N
tions on Y000.
D8343 FX3G, FX3U(C)
Acceleration/decelera- D8148 16-bit Sets the acceleration and deceleration time. FX1S, FX1N
tion time [ms]
Acceleration time [ms] D8348 16-bit Sets the acceleration time for Y000.
Deceleration time [ms] D8349 16-bit Sets the deceleration time for Y000.
FX3G, FX3U(C)
CLEAR signal device D8464 16-bit Sets the output terminal for the CLEAR signal
specification for Y000.
Tab. 4-3: Buffer memory addresses of FX1S, FX1N, FX3G and FX3U(C)
Hybrid programming example for FX1S, FX1N, FX3G and FX3U(C) PLCs
The first example below illustrates zero return and absolute positioning control on 1 axis with an
FX1S, FX1N or FX3U(C) PLC. Since the special devices for utilizing positioning instructions are
different depending on the PLC, please note that the following program is a hybrid program and
that device addresses must be changed according to the type of PLC.
A general understanding of step ladder and ladder logic is necessary to use the program.
Forward 500,000
positioning
Origin after
zero return
Reverse Reverse Forward
positioning rotation rotation
Acceleration/deceleration time:
100 ms
413010da.eps
See marker in program fig. 4-3 (3).
See marker in program fig. 4-3 (3).
See marker in program fig. 4-3 (4).
Inputs Outputs
X000 Immediate stop Y000 Pulse train output
X001 Zero return command Y002 CLEAR signal
X002 Forward rotation positioning command Y004 Rotation direction signal
X003 Reverse rotation positioning command Y010 CLEAR signal
X004 Stop command
X005 Near-point signal (DOG)
X006 Servo ready
RST M10
RST M11
RST M12
M8464
M8341
413020da.eps
Number Description
Stops outputting Y000 pulses. (Immediate stop)
Resets "zero return completion" flag.
Resets "forward rotation positioning completion" flag.
Resets "reverse rotation positioning completion" flag.
Enables the zero return operation with CLEAR signal outputting function (CLEAR signal: Y010)
Return to the zero point with CLEAR signal output Y002
MOV
FNC 12
MOV
K100 D8348
FNC 12
MOV
K100 D8349
FNC 12
MOV
K500 D8145
FNC 12
MOV
K100 D8148
X001 M5
RST M10
Return to Operation
zero point stopped
RST M11
RST M12
SET S0
X002 M5 M10
RST M11
Positioning Operation "Zero return
in forward stopped completion" flag
rotation RST M12
SET S20
X003 M5 M10
RST M11
Positioning Operation "Zero return
in reverse stopped completion" flag
rotation RST M12
SET S21
413030da.eps
Number Description
Operation is stopped.
Sets the maximum speed to 100,000 Hz. (100,000 in D8344, D8343)
Sets the bias speed to 500 Hz. (500 in D8342)
Sets the acceleration time to 100 ms. (100 in D8348)
Sets the deceleration time to 100 ms. (100 in D8349)
Sets the maximum speed to 100,000 Hz. (100,000 in D8147, D8146 )
Sets the bias speed to 500 Hz. (500 in D8145)
Sets the acceleration/deceleration time to 100 ms. (100 in D8148)
Resets "zero return completion" flag.
Resets "forward rotation positioning completion" flag.
Resets "reverse rotation positioning completion" flag.
Enters the zero point return state (S0).
Enters the foward rotation positioning state (S20).
Enters the reverse rotation positioning state (S21).
STL S0
M50 X004 FNC 156
K50000 K1000 X005 Y000
Waiting for Stop DZRN
1 scan time command Zero return Creep Near-point Pulse
start speed speed signal output
destination
number
M8029
SET M10
M8340 M50
RST S0
Y000 Waiting for
Outputting 1 scan time
M8147 M50
RST S0
Y000 Waiting for
Outputting 1 scan time
M8000
M50
RUN monitor
STL S20
M51 X004
FNC 159
K500000 K100000 Y000 Y004
Waiting for Stop DDRVA
1 scan time command Designation Output Pulse Rotation
of absolute pulse output direction
Positioning in forward rotation direction
M8029
SET M11
"Execution completion" flag
M8340 M51
RST S20
Y000 Waiting for
Outputting 1 scan time
M8147 M51
RST S20
Y000 Waiting for
Outputting 1 scan time
M8000
M51
RUN monitor
413040da.eps
To stop the positioning operation, be sure to insert the stop contact before the positioning
instruction so that STL instruction cannot be turned off (reset) until "pulse output monitor"
flag (M8340 or M8147 (for Y000)) is turned off.
To prevent simultaneous activation of positioning instructions, the instruction activation tim-
ing should be delayed by 1 scan time.
Number Description
Zero return
Zero return instruction (CLEAR signal: Y010 (FX3G, FX3U(C)), Y002 (FX1S, FX1N))
"Zero return completion" flag
End of zero return (Self-reset)
Waiting for 1 scan time
Positioning in forward rotation direction
Moves to absolute position 500,000 using the drive to absolute instruction. (Y004=ON)
"Forward rotation positioning completion" flag
Ends the positioning operation in the forward rotation derection. (Self-reset)
4 - 10 MITSUBISHI ELECTRIC
FX PLC positioning Learning to Use the FX Familiy for Positioning Control
STL S21
M52 X004
FNC 159
K100 K100000 Y000 Y004
Waiting for Stop DDRVA
1 scan time command Designation Output Pulse Rotation
Positioning in reverse rotation direction
M8029
SET M12
M8340 M52
RST S21
Y000 Waiting for
Outputting 1 scan time
M8147 M52
RST S21
Y000 Waiting for
Outputting 1 scan time
M8000
M52
RUN monitor
RET
END
413050da.eps
To stop the positioning operation, be sure to insert the stop contact before the positioning
instruction so that STL instruction cannot be turned off (reset) until "pulse output monitor"
flag (M8340 or M8147 (for Y000)) is turned off.
To prevent simultaneous activation of positioning instructions, the instruction activation tim-
ing should be delayed by 1 scan time.
Number Description
Positioning in reverse rotation direction
Moves to absolute position 100 using the drive to Absolute instruction. (Y004=OFF)
"Reverse rotation positioning completion" flag
Ends the positioning operation in the reverse rotation direction. (Self-reset)
Waiting for 1 scan time
Reverse rotation limit 2 Reverse rotation limit 1 Forward rotation limit 1 Forward rotation limit 2
(Servo amplifier side) (Programmable (Programmable (Servo amplifier side)
controller side) controller side)
LSR LSF
Servo motor
413060da.eps
The DTBL instruction helps to simplify the programming and is set up beforehand (along with
positioning parameters such as the bias speed, acceleration/deceleration, etc.) with
GX Developer, GX IEC Developer or GX Works2.
In this example, positioning may be performed arbitrarily along the path in fig. 4-5.
Using the JOG command, the workpiece is moved to any relative position. This is not illustrated
in the figure below.
500 Hz
Origin after
zero return
Reverse
positioning
Acceleration/deceleration time:
100 ms
413070da.eps
4 - 12 MITSUBISHI ELECTRIC
FX PLC positioning Learning to Use the FX Familiy for Positioning Control
Parameters for the DTBL instruction are set for example in GX Developer as shown below.
Double-click Parameter and then PLC parameter from the project tree on the left side of
the screen.
If the project tree is not displayed on the screen, click View on the menu bar, and then click
Project Data List.
413080da.epse
Click on the Memory capacity tab and then enter a check in the Positioning Instruction
Settings check box.
Take note that 9,000 steps are needed to set the positioning data. Therefore, it is necessary
to specify a Memory capacity of 16,000 steps or more.
413090da.eps
Click on the Positioning tab and then set Y000 (pulse output destination) as follows.
4130a0da.eps
4 - 14 MITSUBISHI ELECTRIC
FX PLC positioning Learning to Use the FX Familiy for Positioning Control
Click the Individual setting button. The Positioning instruction settings window will
appear. In this window, click on the Y0 tab to display the positioning table for Y000 (pulse
output destination). Set the data in the positioning table as follows:
4130b0da.eps
Click the OK button and then the End button to close the parameters.
Create the ladder program as shown in fig. 4-9.
Once the ladder program is complete, click on Online from the top menu bar in GX Developer
and select Write to PLC. The following window will appear.
4130c0da.eps
Click the Param + Prog button and then click the Execute button. The parameters and the
created program will be transferred to the PLC. To enable the transferred parameters, stop
the PLC and then restart it.
Inputs Outputs
X004 Zero-point signal Y000 Pulse train output
X010 Near-point signal (DOG) Y004 Rotation direction signal
X014 Servo ready Y020 CLEAR signal
X020 Immediate stop
X021 Zero return command
X022 JOG(+) command
X023 JOG(-) command
X024 Forward rotation positioning command
X025 Reverse rotation positioning command
X026 Forward rotation limit (LSF)
X027 Reverse rotation limit (LSR)
X030 Stop command
4 - 16 MITSUBISHI ELECTRIC
FX PLC positioning Learning to Use the FX Familiy for Positioning Control
X020
M8349
Immediate stop
X014
RST M10
Servo ready
RST M12
RST M13
X026
M8343
Forward rotation limit
X027
M8344
Reverse rotation limit
M8000 FNC 12 H0020 D8464
RUN monitor MOVP
M8464
M8341
M8000
M8342
RUN monitor
M100
DOG search zero return
RST M13
Zero return
being performed
M100
X030
FNC 150 X010 X004 Y000 Y004
DSZR
Stop Near-point Zero-point Pulse Rotation
command signal signal output direction
destination signal
number
M8029
SET M10
"Execution
completion" flag
M101
M8329
M102
Abnormal
end
M103
JOG (+) operation
M103
JOG (+) operation is
being performed. X030 FNC 152
Y000 K1
Stop DTBL
command Pulse Table
output number
destination
number
X022
M104
JOG(+)
M8329
Abnormal
end
4130d0da.eps
Number Description
Stops outputting Y000 pulses. (Immediate stop)
Resets "zero return completion" flag.
Resets "forward rotation positioning completion" flag.
Resets "reverse rotation positioning completion" flag.
Normal rotation limit (Y000)
Reverse rotation limit (Y000)
Enables the zero return operation with CLEAR signal outputting function. (CLEAR signal: Y020)
Performs zero return in the forward rotation direction.
Zero return is being performed.
Zero return instruction with DOG search function (CLEAR signal: Y020)
"Zero return completion" flag
Normal end of zero return
Abnormal end of zero return
JOG(+) operation is being performed.
Executes No. 1 of the positioning table of Y000 (pulse output destination).
Completes the JOG(+) operation.
4 - 18 MITSUBISHI ELECTRIC
FX PLC positioning Learning to Use the FX Familiy for Positioning Control
M105
M105
JOG(-) operation
Stop DTBL
command Pulse Table
output number
destination
number
X023
M106
JOG(-)
M8329
Abnormal
end
M8329
M109
Abnormal end
M8029
SET M13
"Execution
completion"
flag
M111
M8329
M112
Abnormal end
END
4130e0da.eps
Number Description
Resets "forward rotation positioning completion" flag.
JOG(-) operation is being performed.
Executes No. 2 of the positioning table of Y000 (pulse output destination).
Completes the JOG(-) operation.
"Forward rotation positioning completion" flag
"Reverse rotation positioning completion" flag
Positioning operation being performed in forward rotation direction
Executes No. 3 of the positioning table of Y000 (pulse output destination).
"Forward rotation positioning normal end" flag
"Forward rotation positioning abnormal end" flag
Positioning operation being performed in reverse rotation direction
Executes No. 4 of the positioning table of Y000 (pulse output destination).
"Reverse rotation positioning normal end" flag
"Reverse rotation positioning abnormal end" flag
4 - 20 MITSUBISHI ELECTRIC
Inverter Drive Control Learning to Use the FX Familiy for Positioning Control
Important references for understanding inverter drive control for this section include:
FX Series Users Manual - Data Communication Edition (JY997D16901)
Inverter Instruction Manuals
It is assumed that you will have read and understood the above manuals or that you will have
them close at hand for reference.
Total
FX Series Communication equipment (option) extension
distance
50 m
FX2N FX2N-485-BD
(Terminal board)
422020da.eps
FX 2N-ROM-E1 or
500 m
(Function extension
memory casette FX2N-CNV-BD FX2NC-485ADP FX2N-CNV-BD FX0N-485ADP
(Terminal block) (Terminal block)
422010da.eps 422030da.eps
X0
X1
Y0
Y1
1
MITSUBISHI
X2 Y2
X3 Y3
X4 Y4
X5 Y5
X6 Y6
X7 Y7
or
FX2NC
500 m
FX2NC-485ADP FX0N-485ADP
(Terminal block) (Terminal block)
FX 2NC-ROM-CE1
(Function extension
memory board
422040da.eps 422050da.eps
Tab. 4-9: Applicable communication interface boards and adapters for data exchange with
frequency inverters
4 - 22 MITSUBISHI ELECTRIC
Inverter Drive Control Learning to Use the FX Familiy for Positioning Control
Total
FX Series Communication equipment (option) extension
distance
50 m
FX3G-485-BD
(Terminal block)
FX3G-485-BD_front.eps
FX3G
(14 or 24 I/O)
500 m
FX3G-CNV-ADP FX3U-485ADP(-MB)
(Terminal block)
FX3G_24_front.eps RS485_FX3G.eps
CH 1 50 m
FX3G-485-BD
(Terminal block)
FX3G-485-BD_front.eps
CH 1 500 m
FX3G-CNV-ADP FX3U-485ADP(-MB)
(Terminal block)
RS485_FX3G.eps
FX3G
(40 or 60 I/O)
CH 2 50 m
FX3G-485-BD
(Terminal block)
FX3G-485-BD_front.eps
CH 1 CH 2
500 m
Tab. 4-9: Applicable communication interface boards and adapters for data exchange with
frequency inverters
Total
FX Series Communication equipment (option) extension
distance
CH 1
RD A
RD
RD B
SD A
SD SD B
SG
50 m
FX3U-485-BD
(Terminal block)
422070dab.eps
CH 1
500 m
FX3U-CNV-BD FX3U-485ADP(-MB)
(Terminal block)
422080dab.eps
RUN
CH 1 CH 2
STOP
FX3U
500 m
FX3U--BD FX3U-485ADP(-MB)
(Terminal block)
RS485_FX3U_ch2_1.eps.
CH 1 CH 2
500 m
CH 1
500 m
FX3U-485ADP(-MB)
(Terminal block)
4220a0dab.eps
CH 1 CH 2
FX3UC
500 m
FX3U-ADP FX3U-485ADP(-MB)
(Terminal block)
422090da.eps RS485_FX3UC_D_DS_ch2
Tab. 4-9: Applicable communication interface boards and adapters for data exchange with
frequency inverters
FX3U-232-BD, FX3U-422-BD, FX3U-485-BD or FX3U-USB-BD
FX3U-232ADP(-MB) or FX3U-485ADP(-MB)
4 - 24 MITSUBISHI ELECTRIC
Inverter Drive Control Learning to Use the FX Familiy for Positioning Control
To use the special inverter communication instructions from the PLC, inverter and PLC
communication parameters must be set. The FX2N(C), FX3G and FX3U(C) PLCs include the
following special instructions to communicate with one or more inverters.
The programmable controller special relays and inverter instruction codes listed in the table
below are used in Section 4.2.3. For information on memory addresses that contain error codes
and inverter communication operation statuses, refer to the FX Series Users Manual - Data
Communication Edition (JY997D16901).
Inverter status
H07A 2-digits Monitors operation bits of the inverter.
monitor
Output frequency
H06F 4-digits Monitors the frequency of the inverter.
[speed]
Acceleration Deceleration
time (Pr.7) time (Pr.8)
Speed
1s 1s
(Hz) Accel/Decel reference
(Pr.20) frequency (Default: 60Hz)
Running frequency
(H0ED 40 Hz)
Time
(s)
423010da.eps
Fig. 4-12: Configuration and positioning pattern for the E500 Series inverter
Before programming, there are several parameter settings that must be set to the inverter and
PLC.
Parameter
Parameter item Set value Setting contents
No.
External operation mode is selected when power
Pr.79 Operation mode selection 0
is turned ON.
Pr.117 Communication station number 00 to 31 Up to eight inverters can be connected.
Pr.118 Communication speed 96 9600 bps (default)
Data length: 7-bit
Pr.119 Stop bit / Data length 10
Stop bit: 1-bit
Parity check presence/absence
Pr.120 2 Even parity present
selection
Pr.122 Communication check time interval 9999 Communication check suspension
Pr.123 Waiting time setting 9999 Set with communication data
Pr.124 CRLF presence/absence selection 1 With CR, without LF
4 - 26 MITSUBISHI ELECTRIC
Inverter Drive Control Learning to Use the FX Familiy for Positioning Control
423060da.eps
Click on the PLC system(2) tab in the "FX parameter" window and set the parameters as
shown below:
"
423070da.eps
423080da.e
Inputs Outputs
X000 Reverse rotation limit Y000 Inverter running (RUN)
X001 Forward rotation limit Y001 Forward rotation
X002 Forward rotation command input Y002 Reverse rotation
X003 Reverse rotation command input Y003 Up to frequency (SU)
Y004 Overload is applied (OL)
Y006 Frequency detection (FU)
Y007 Alarm occurrence
4 - 28 MITSUBISHI ELECTRIC
Inverter Drive Control Learning to Use the FX Familiy for Positioning Control
M8002
SET M10
Initial Pulse
M10
FNC271
K0 H0FD H9696 K1
Driving of IVDR
write Inverter Inverter Write CH 1
instruction station instruction value
number code
FNC271
K0 H0FB H2 K1
IVDR
Inverter Inverter Write CH 1
station instruction value
number code
FNC180
K11 K0 H0FD H9696
EXTR
Function Inverter Inverter Write
number station instruction value
(Control) number code
FNC180
K11 K0 H0FB H2
EXTR
Function Inverter Inverter Write
number station instruction value
(Control) number code
423090da.eps
FNC 12
K1 D200
MOVP
Pr.1
FNC 12
K12000 D201
MOVP
120 Hz
FNC 12
K2 D202
MOVP
Pr.2
FNC 12
K500 D203
MOVP
5 Hz
FNC 12
K7 D204
MOVP
Pr.7
FNC 12
K10 D205
MOVP
1s
FNC 12
K8 D206
MOVP
Pr.8
FNC 12
K10 D207
MOVP
1s
FNC 274
IVBWR
K0 K4 D200 K1
Inverter Write 4 D200 to CH 1
station parameters D207
number
FNC 180
K13 K0 K1 K12000
EXTR
Function Inverter Pr.1 120 Hz
Number station
(Write) number
FNC 180
K13 K0 K2 K500
EXTR
Function Inverter Pr.2 5 Hz
Number station
(Write) number
FNC 180
K13 K0 K7 K10
EXTR
Function Inverter Pr.7 1s
Number station
(Write) number
FNC 180
K13 K0 K8 K10
EXTR
Function Inverter Pr.8 1s
Number station
(Write) number
M8029
RST M10
"Execution
completion" flag
4230a0da.eps
4 - 30 MITSUBISHI ELECTRIC
Inverter Drive Control Learning to Use the FX Familiy for Positioning Control
M8002
SET M11
Initial Pulse
M11 FNC 12
K4000 D10
Driving of MOVP
write 40 Hz Operation
instruction speed
Use this for FX3G or FX3U(C) PLCs
FNC271
K0 H0ED D10 K1
IVDR
Inverter Inverter Operation CH 1
station instruction Speed
number code
Use this for FX2N(C) PLCs
FNC180
K11 K0 H0ED D10
EXTR
Function Inverter Inverter Operation
number station instruction Speed
(Control) number code
M8029
RST M11
"Execution
completion" flag
X000
SET M15
Reverse
rotation
limit
X001
Forward
rotation
limit
4230b0da.eps
4 - 32 MITSUBISHI ELECTRIC
Inverter Drive Control Learning to Use the FX Familiy for Positioning Control
M8029
RST M12
"Execution
completion" flag
N0 M70
M8000 FNC270
K0 H07A K2M100 K1
IVCK
RUN
monitor Inverter Inverter Read CH1
station instruction destina-
number code tion
Use this for FX2N(C) PLCs
FNC180
K10 K0 H07A K2M100
EXTR
Function Inverter Inverter Read
number station instruction destina-
(Monitor) number code tion
M100
Y000
Inverter
running Indicator
lamp, etc.
M101
Y001
Forward
rotation Indicator
lamp, etc.
M102
Y002
Reverse
rotation Indicator
lamp, etc.
M103
Y003
Up to
frequency Indicator
lamp, etc.
M104
Y004
Overload
is applied Indicator
lamp, etc.
M106
Y006
Frequency
is detected Indicator
lamp, etc.
M107
Y007
Alarm
occurrence Indicator
lamp, etc.
4230c0da.eps
4 - 34 MITSUBISHI ELECTRIC
Inverter Drive Control Learning to Use the FX Familiy for Positioning Control
FNC270
K0 H06F D50 K1
IVCK
Inverter Inverter Read CH 1
station instruction destina-
number code tion
FNC180
K10 K0 H06F D50
EXTR
Function Inverter Inverter Read
number station instruction destina-
(Monitor) number code tion
MCR N0
END
4230d0da.eps
MCR denotes the end of a master control block.
In this example, the master control block "N0" is only executed when data is not being writ-
ten to the inverter.
Number Description
Monitoring
operations of Monitor frequency value with D50 ["H06F" D50]
the inverter.
4 - 36 MITSUBISHI ELECTRIC
FX2N-1PG-E positioning Learning to Use the FX Familiy for Positioning Control
Drill Wood
1PG
High Low
speed speed
433010da.eps
The two speed positioning operation is illustrated in the following graph. Neither the zero point
return nor the JOG instructions are used in the ladder program.
Frequency
(Hz)
40,000 Operation speed 2
Operation speed 1 BFM #24, #23
20,000 BFM #20, #19
0
100 50
Target address 1 Target
BFM #18, #17 address 2
BFM #22, 21
433020da.eps
4 - 38 MITSUBISHI ELECTRIC
FX2N-1PG-E positioning Learning to Use the FX Familiy for Positioning Control
Although the following ladder program is not very complicated, it is important to establish good
programming practice by paying attention to the order with which the PLC writes and reads to
the buffer memory of the FX 2N -1PG-E. Before writing the Operation command (START
command) to the modules BFM from the PLC, several settings must be established such as
Target addresses 1 & 2, Operation speeds 1 & 2, and various settings such as the bias speed,
maximum speed, and the acceleration/deceleration time.
The most critical part of the program is the section where the operation commands are enabled
by writing bits M0 to M15 to BFM#25. When the positioning START command turns ON, the
operation begins with the specified settings.
The ladder program example on the following page can be programmed with an FX2N(C) or
FX3U(C) PLC and does not require an actuator (i.e., servo system) for testing. The following
inputs are used in the program:
Inputs
X000 Error reset
X001 STOP command
X002 Forward rotation limit
X003 Reverse rotation limit
X007 2-speed positioning START command
M8002
FNC79
K0 K0 K4000 K1
TO
Initial pulse
Unit No. BFM # Pulse No. of
rate transfer
points
FNC79
K0 K1 K1000 K1
DTO
Unit No. BFM # Feed No. of
rate transfer
points
FNC79
K0 K3 H32 K1
TO
Unit No. BFM # Parameter No. of
setting transfer
points
FNC79
K0 K4 K40000 K1
DTO
Unit No. BFM # Maximum No. of
speed transfer
points
FNC79
K0 K6 K0 K1
TO
Unit No. BFM # Bias No. of
speed transfer
points
FNC79
K0 K15 K100 K1
TO
Unit No. BFM # Accel/ No. of
Decel transfer
time points
M8000
FNC78
K0 K28 K3M20 K1
FROM
RUN
monitor Unit No. BFM # Status No. of
info. transfer
M20-M31 points
M27
FNC78
K0 K29 D20 K1
FROM
Error flag
Unit No. BFM # Error No. of
code transfer
points
X000
M0
Error reset
X001
M1
STOP
X002
M2
Forward
rotation
limit
X003
M3
Reverse
rotation
limit
M8000
M7
RUN
monitor
433030da.eps
4 - 40 MITSUBISHI ELECTRIC
FX2N-1PG-E positioning Learning to Use the FX Familiy for Positioning Control
Number Description
Set the pulse rate (PLS/rev) [K4000 #0]
Set the feed rate (m/rev) [K1000 #2,#1]
Set the units to m 103 mm; combined system [H32 #3]
Set the maximum speed (Hz) [K40000 #5,#4]
Set the bias speed (Hz) [K0 #6]
Set the acceleration/deceleration time (ms) [K100 #15]
Read status information [K3M20 #28]
Read error code [D20 #29]
Reset error
STOP operation
Forward rotation limit
Reverse rotation limit
Use absolute positioning
X007
FNC 79
K0 K17 K100 K1
DTO
START
Unit No. BFM # Target No. of
address 1 transfer
points
FNC 79
K0 K19 K40000 K1
DTO
Unit No. BFM # Operation No. of
speed 1 transfer
points
FNC 79
K0 K21 K150 K1
DTO
Unit No. BFM # Target No. of
address 2 transfer
points
FNC 79
K0 K23 K10000 K1
DTO
Unit No. BFM # Operation No. of
speed 2 transfer
points
M10
M8000
FNC 79
K0 K25 K4M0 K1
TO
RUN
monitor Unit No. BFM # Operation No. of
commands transfer
M0-M15 points
FNC 78
K0 K26 D10 K1
DFROM
Unit No. BFM # Current No. of
address transfer
points
END
433040da.eps
Number Description
Set the Target address 1 [K100 #18,#17]
Set the Operation speed 1 [K40000 #20,#19]
Set the Target address 2 [K150 #22,#21]
Set the Operation speed 2 [K10000 #24,#23]
Set the START command for Two-speed positioning
Write operation commands to the FX2N-1PG [K4M0 #25]
Monitor the current address (mm) [D11, D10 #27,#26]
4 - 42 MITSUBISHI ELECTRIC
FX2N-10PG positioning Learning to Use the FX Familiy for Positioning Control
4 - 44 MITSUBISHI ELECTRIC
FX2N-10PG positioning Learning to Use the FX Familiy for Positioning Control
Barcode
scanner
Conveyor belt
M
10PG
443010da.eps
The positioning pattern is shown in the following figure. Neither the zero point return nor the JOG
instructions are used in the ladder program example.
25,000
Target address 1
BFM #14, #13
In order for the program to function correctly for the specified number of repetition cycles, the
START command input (X007) must not be turned ON again during the positioning operation.
If the START command is turned ON again, the counter C100 is reset, which clears the number
of repetitions.
The following program can be used with an FX2N(C) or FX3U(C) PLC and does not require an
actuator (i.e., servo system) for testing. The input and output points include:
Inputs Outputs
X000 Error reset Indicator lamp
Y000
X001 STOP command (ON for 2 sec. intervals)
The following figure is an event timing chart for part of the operation in the program below.
X007
(START)
M9
(START
command)
1
C100 0
T0
M26
(Positioning Positioning
Complete Flag) complete
Y000
2 sec. One
operation
cycle
443030da.eps
The positioning complete flag will only be ON at the very beginning of the program when it
is not the first time to operate the equipment and the power has not been recycled.
4 - 46 MITSUBISHI ELECTRIC
FX2N-10PG positioning Learning to Use the FX Familiy for Positioning Control
M8002
FNC 79
K0 K32 K4000 K1
Initial pulse
DTO
Unit No. BFM # Pulse No. of
rate transfer
points
FNC 79
K0 K34 K1000 K1
DTO
Unit No. BFM # Feed No. of
rate transfer
points
FNC 79
K0 K36 H32 K1
TO
Unit No. BFM # Parameter No. of
setting transfer
points
FNC 79
DTO
K0 K0 K50000 K1
Unit No. BFM # Maximum No. of
speed transfer
points
FNC 79
K0 K2 K0 K1
TO
Unit No. BFM # Bias No. of
speed transfer
points
FNC 79
K0 K11 K100 K1
TO
Unit No. BFM # Accel No. of
time transfer
points
FNC 79
K0 K12 K100 K1
TO
Unit No. BFM # Decel No. of
time transfer
points
M8000
FNC 78
K0 K28 K3M20 K1
FROM
RUN
monitor Unit No. BFM # Status No. of
info. transfer
M20-M31 points
M25
FNC 78
K0 K37 D20 K1
FROM
Error flag
Unit No. BFM # Error No. of
code transfer
points
X000
M0
Error reset
X001
M1
STOP
X002
M2
Forward
rotation
limit
X003
M3
Reverse
rotation
limit
443040da.eps
The forward and reverse rotation limit switches must be wired so that they are turned ON by
default (Normally closed contacts).
When these limit switches turn OFF (due to the workpiece going out-of-bounds), M2 or M3
will turn ON and cause the pulse operation to stop.
Number Description
Set the pulse rate (PLS/rev) [K4000 #1, #0]
Set the feed rate ( m/rev) [K1000 #35, #34]
Set the units to m 103 mm; combined system [H32 #36]
Set the maximum speed (Hz) [K50000 #1, #0]
Set the bias speed (Hz) [K0 #2]
Set the acceleration/deceleration time (ms) [K100 #11]
Set the acceleration/deceleration time (ms) [K100 #12]
Read status information [#28 K3M20]
Read error code [#37 D20]
Reset error
STOP operation
Forward rotation limit
Reverse rotation limit
4 - 48 MITSUBISHI ELECTRIC
FX2N-10PG positioning Learning to Use the FX Familiy for Positioning Control
M8000
M8
RUN
monitor
X007
M9
START
T0
2-sec.
timer
M8002
FNC 79
K0 K27 H1 K1
TO
Initial pulse
Unit No. BFM # 1-speed No. of
positioning transfer
points
FNC 79
K0 K13 K50 K1
DTO
Unit No. BFM # Target No. of
address 1 transfer
points
FNC 79
K0 K15 K50000 K1
DTO
Unit No. BFM # Operation No. of
speed 1 transfer
points
T0 X001 M25 K2
C100
2-sec. STOP Error
timer flag
M26 C100
Y000
Positioning Counter
complete
flag
K20
T0
X007
RST C100
START
M8000
FNC 79
K0 K26 K4M0 K1
RUN TO
monitor Unit No. BFM # Operation No. of
commands transfer
M0-M15 points
FNC 78
K0 K24 D10 K1
DFROM
Unit No. BFM # Current No. of
address transfer
points
END
443050da.eps
Number Description
Use relative positioning
START positioning
Set 1-speed positioning [H1 #27]
Set the Target address 1 [K50 #14, #13]
Set the Operation speed 1 [K50000 #16, #15]
Counter to repeat operation 2 times
Y000 indicator light
2 second timer
Reset C100
Write operation commands to the FX2N-10PG [#26 K4M0]
Monitor the current address (mm) [# 24, #25 D11, D10]
4 - 50 MITSUBISHI ELECTRIC
FX2N-10GM and FX2N-20GM positioning Learning to Use the FX Familiy for Positioning Control
FX2N-10GM FX2N-20GM
CON1: I/O
CON1: Control + I/O CON2: Control
Connectors
CON2: Axis1 CON3: Axis1
CON4: Axis2
Operation objective
The objective of this example is to use the FX2N-20GM to trace a path using 1-speed, linear
interpolation, and circular interpolation operations.
D E
Start point
A
G F
C
H
END point
0 270
452010da.eps
4 - 52 MITSUBISHI ELECTRIC
FX2N-10GM and FX2N-20GM positioning Learning to Use the FX Familiy for Positioning Control
A to B The "DRV Ret" command is used to move from the start point to
the electrical zero point.
Wait Here, the program waits for 2 seconds, using a 10ms timer.
2 seconds
Turn Y0 OFF Here, Y0 is turned OFF to mimic the end of use for an end effector.
Wait A timer is used to ensure the end effector operation has finished
2 seconds completely.
This denotes the end of the program, where the controller waits
for the next start command.
452020da.eps
4 - 54 MITSUBISHI ELECTRIC
FX2N-10GM and FX2N-20GM positioning Learning to Use the FX Familiy for Positioning Control
452030da.eps
Item Description
Current Position This displays (monitors) the current address during positioning.
Plotting Double click on the plot area to change the scale.
Device Status Select Y0, 1 point.
Create a rectangle around Y000 by selecting the rectangle button from the drawing
Rectangle toolbar at the top of the screen. While the rectangle is selected, the background color
can be changed by pressing the [B] Brush Color button.
X-axis Y-axis
Start Start
Manual Operation Stop Stop
+ Jog + Jog
- Jog - Jog
FX-GM Status This is a lamp that automatically monitors positioning operations.
Setting parameters
In addition to the preparation of a positioning program, diversified parameters should be set in
the FX2N-20GM. In this example, only a few parameters need to be set. (When working with
various equipment such as a mechanical plotter that uses an X-Y plotting table, the parameters
should be set in accordance with the mechanism being used. These settings depend on the
specific plotter type and should be located in the documentation provided with the plotter.)
Below are the four positioning parameter windows from VPS. The settings on these windows
should be copied for BOTH the X- and Y- axes before performing positioning.
Open the "Parameter Units" window by selecting Parameters Positioning Units from
the main menu bar at the top of the screen.
452040da.eps
452050da.eps
The Max speed is set very low in order for the VPS software to trace the path during
operation through the Monitoring window. In turn, both the JOG speed and interpolation
value must be reduced. (In practice, it is impossible to have the JOG speed set to a value
higher than the Max speed setting.)
4 - 56 MITSUBISHI ELECTRIC
FX2N-10GM and FX2N-20GM positioning Learning to Use the FX Familiy for Positioning Control
452060da.eps
Since mechanical hardware will not be connected to the FX2N-20GM for this example, it is not
necessary to configure the limit switch and DOG switch settings in the parameters. It is,
however, necessary to reduce the Creep speed and the Zero return speed.
For the last parameter screen, open the Parameter Settings window by selecting
Parameters Positioning Settings from the menu bar at the top of the screen.
NO CHANGES
452070da.eps
None of the parameters in the Parameter Settings window need to be changed. When using
a mechanical plotter, however, these settings become more important.
After minimizing the Sub-Task Monitor Mode window, resize the Monitoring Window
and X-axis and Y-axis Monitor Mode windows.
453020da.eps
Before starting the operation, it is necessary to set the start point. This can be done by using
the X JOG+ and Y JOG- buttons or by double clicking on the current position [X: 0 Y: 0]
display.
4 - 58 MITSUBISHI ELECTRIC
FX2N-10GM and FX2N-20GM positioning Learning to Use the FX Familiy for Positioning Control
Double click the current position display in the Monitoring window to set the start point.
453030da.eps
The next step is to switch the FX2N-20GM to AUTO mode by moving the switch on the unit
to AUTO.
Finally, on the Monitoring Window screen, click on either the X START or Y START buttons.
The positioning operation will be performed and the plot result should look identical to the
one shown in the following picture.
453040da.eps
To run the program again, set a new start position (or let it start from where it is), clean the
plot area, and press the X START or Y START button again.
If the plot does not look like the one above, check the flow chart program against the program
listed in section 4.5.2 (Creating a Flow Chart).
FX3U-20SSC-H
Advantage
Feature
Bidirectional With SSCNET III, the PLC can communicate with the servo amplifier to monitor torque,
communication servo status flags, servo parameters and absolute position data.
Easy to use wiring.
Wiring High immunity to noise from external devices.
Long distance wiring (50m).
Easy setup of parameters and table data (up to 300 table operations per axis).
Software
Convenient use of monitoring and testing functions.
With the use of a built-in Flash ROM, the FX3U-20SSC-H can store data permanently via
non-volatile storage. Since the flash memory transfers all of its data to the buffer memory of the
20SSC-H each time the power is turned ON, the flash memory provides extra benefit for
applications requiring a default set of data to be automatically loaded. This eliminates the need
to use a PLC program for setting parameters and table data, which can greatly simplify the
length and complexity of a ladder program.
The FX3U-20SSC-H includes an input connector to connect manual pulse generator dials and
various switches such as the START, DOG, and interrupt switches. These inputs assist in
controlling positioning operations and are necessary to operate instructions such as the
interrupt 1-speed constant quantity feed instruction and the DOG type mechanical zero return
command.
4 - 60 MITSUBISHI ELECTRIC
FX3U-20SSC-H positioning Learning to Use the FX Familiy for Positioning Control
Setting parameters
Prior to setting positioning parameters and servo parameters, check to verify the connection
between the PLC and the personal computer is valid. Since ladder logic in the PLC is not used
in this example, set the RUN/STOP switch on the PLC to STOP.
Open a new file in FX Configurator-FP by clicking on the Make new file button.
Expand the tree of folders in the File data list panel on the left-hand side of the screen by
double clicking on Unset file / FX3U-20SSC-H, Edit, and then Monitor.
Go to Online Connection setup Comm. Test
Verify that the devices are communicating properly.
Double click on Positioning parameters in the File data list panel on the left-hand side of
the screen to modify the positioning parameters.
Set items in the Item column for both the X- and Y- axes as shown:
462020da/462030da/462040da.eps
Next, double click on Servo parameters in the File data list panel on the left-hand side of
the screen to modify the servo parameters.
Set items from the Kind column for both the X- and Y- axes as shown:
462050da/462060da.eps
Incremental address
0 -1
specification
4 - 62 MITSUBISHI ELECTRIC
FX3U-20SSC-H positioning Learning to Use the FX Familiy for Positioning Control
462080da.eps
Next, reset the module by pressing the System reset button. This is necessary to refresh
the servo parameters.
463030da.eps
4 - 64 MITSUBISHI ELECTRIC
FX3U-20SSC-H positioning Learning to Use the FX Familiy for Positioning Control
The following buffer memory addresses are used in the ladder program example below. For
details on other BFM addresses, refer to the FX3U-20SSC-H Users Manual (JY997D21301).
Inputs
X000 X-axis Forward rotation limit X005 START command (XY-axis table operation)
X001 X-axis Forward rotation JOG(+) X006 STOP command
X002 X-axis Reverse rotation JOG(-) X007 Error reset
X003 X- and Y-axis Zero return X010 X-axis Reverse rotation limit
X004 START command (X-axis 1-speed operation)
4 - 66 MITSUBISHI ELECTRIC
FX3U-20SSC-H positioning Learning to Use the FX Familiy for Positioning Control
M8000
FNC 12 U0\
D0
DMOV G0
RUN
monitor BFM # X-axis
current
address
FNC 12 U0\
D100
DMOV G100
BFM # Y-axis
current
address
MOV G28
BFM # X-axis
status
information
FNC 12 U0\
D110
MOV G128
BFM # Y-axis
status
information
X000
M2
Forward
rotation limit
X010
M3
Reverse
rotation limit
X001
FNC 12 K100000 U0\
DMOVP G14012
X-axis
JOG(+) X-axis BFM #
JOG speed
X002
PLS M24
X-axis
JOG(-) Positioning
parameter
enable
command
465010da.eps
The forward and reverse rotation limit switches must be wired so that they are turned ON by
default (Normally closed contacts).
When these limit switches turn OFF (due to the workpiece going out-of-bounds), M2 or M3
will turn ON and cause the pulse operation to stop.
Number Description
Monitor X-axis current address [#1, #0 D1, D0]
Monitor Y-axis current address [#101, #100 D101, D100]
Monitor X-axis status info. [#28 D10]
Monitor Y-axis status info. [#128 D110]
X-axis Forward rotation limit
X-axis Reverse rotation limit
Set the X-axis JOG speed (Hz) [K100000 #14013, #14012]
Enable the X-axis JOG speed
M8000
FNC 12 K4M20 U0\
MOV G519
RUN
monitor X-operation BFM #
command 2
M20-M35
X001 X002
M4
X-axis X-axis
JOG(+) JOG(-)
X002 X001
M5
X-axis X-axis
JOG(-) JOG(+)
X003
PLS M6
Zero return
PLS M106
X004 X005
FNC 12 U0\
H1
MOVP G520
X-axis XY-axis
1-speed Table X-axis BFM #
operation operation 1-speed
positioning
FNC 12 U0\
K10000000
DMOVP G500
X-axis Target BFM #
address 1
M8
X005 X004
FNC 12 U0\
H400
XY-axis X-axis
MOVP G520
Table 1-speed XY-Table BFM #
operation operation operation
(simultaneous)
FNC 12 U0\
K0
MOVP G521
XY-Table BFM #
row #0
X004
PLS M9
X-axis
1-speed
operation
X005
XY-axis
Table
operation
465020da.eps
4 - 68 MITSUBISHI ELECTRIC
FX3U-20SSC-H positioning Learning to Use the FX Familiy for Positioning Control
Number Description
Write X-axis Operation command 2 [K4M20 #519]
X-axis JOG(+) operation is being performed
X-axis JOG(-) operation is being performed
X-axis zero return
Y-axis zero return
Set X-axis 1-speed positioning [H1 #520]
Set X-axis Target address 1 [K10000000 #501, #500]
Set X-axis Operation speed 1 [K2000000 #503, #502]
Use relative positioning
Set XY-axis simultaneous Table operation [H400 #520]
Set starting row No. for XY-Table operation [K0 #521]
START positioning
X006
M1
X-axis
STOP
X007
PLS M0
Error reset
PLS M100
M8000
FNC 12 U0\
K4M0
MOV G518
RUN
monitor X-operation BFM #
command 1
M0-M15
FNC 12 U0\
K4M100
MOV G618
Y-operation BFM #
command 1
M100-M115
END
465030da.eps
Number Description
STOP operation
Reset X-axis error
Reset Y-axis error
Write X-axis Operation command 1 [K4M0 #518]
Write Y-axis Operation command 1 [K4M100 #618]
4 - 70 MITSUBISHI ELECTRIC
Index
Index
A E
AC servo system Encoder
Advantages . . . . . . . . . . . . . . . . . . . . . . . . 2-1 Absolute type . . . . . . . . . . . . . . . . . . . . . . . 3-6
Block diagram . . . . . . . . . . . . . . . . . . . . . . 2-1 Incremental type . . . . . . . . . . . . . . . . . . . . . 3-5
Accelaration time . . . . . . . . . . . . . . . . . . . . . . . 3-5 Relative type . . . . . . . . . . . . . . . . . . . . . . . . 3-5
Actuator type Equation
AC servo system . . . . . . . . . . . . . . . . . . . . 1-5 Command pulse frequency . . . . . . . . . . . . 3-12
Brake motor . . . . . . . . . . . . . . . . . . . . . . . . 1-2 Moving speed . . . . . . . . . . . . . . . . . . . . . . 3-11
Clutch brake . . . . . . . . . . . . . . . . . . . . . . . . 1-3 Number of rotations . . . . . . . . . . . . . . . . . 3-12
DC servo system . . . . . . . . . . . . . . . . . . . . 1-4 Transfer distance per pulse . . . . . . . . . . . 3-12
General purpose inverter . . . . . . . . . . . . . . 1-4 Transfer distance per rotation . . . . . . . . . . 3-12
General purpose motor . . . . . . . . . . . . . . . 1-4
Pneumatic . . . . . . . . . . . . . . . . . . . . . . . . . 1-2 F
Stepping motor . . . . . . . . . . . . . . . . . . . . . . 1-3 Feed quantity . . . . . . . . . . . . . . . . . . . . . . . . . . 3-5
Feed speed . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-5
B Flow chart . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-53
Brake FREQROL Inverter . . . . . . . . . . . . . . . . . . . . . 4-22
D L
DDRVA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-15 Ladder program . . . . . . . . . . . . . . . . . . . . . . . 4-15
DDRVI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-15 Limit switch . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-2
Deceleration time . . . . . . . . . . . . . . . . . . . . . . . 3-5
Deviation counter . . . . . . . . . . . . . . . . . . . . . . . 3-8 M
DOG search function . . . . . . . . . . . . . . . . . . . . 3-7 Memory addresses
DOG type zero return . . . . . . . . . . . . . . . . . . . . 3-6 FX1S, FX1N, FX3G, FX3U(C) PLCs . . . . . . . 4-4
DTBL instruction . . . . . . . . . . . . . . . . . . . . . . . 4-12 FX2N-10PG . . . . . . . . . . . . . . . . . . . . . . . . 4-44
FX2N-1PG-E . . . . . . . . . . . . . . . . . . . . . . . 4-37
FX3U-20SSC-H . . . . . . . . . . . . . . . . . . . . . 4-65
P S
Position control . . . . . . . . . . . . . . . . . . . . . . . . 1-9 Servo lock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-9
Positioning example Setting of target position
Carrier robot . . . . . . . . . . . . . . . . . . . . . . . . 2-5 Absolute method . . . . . . . . . . . . . . . . . . . . 3-13
Cart travel . . . . . . . . . . . . . . . . . . . . . . . . . 2-4 Incremental method . . . . . . . . . . . . . . . . . 3-13
Constant feed . . . . . . . . . . . . . . . . . . . . . . 2-2 Sink type input . . . . . . . . . . . . . . . . . . . . . . . . . 4-2
Drilling in steel sheet . . . . . . . . . . . . . . . . . 2-3 Sink type output . . . . . . . . . . . . . . . . . . . . . . . . 4-2
Index table . . . . . . . . . . . . . . . . . . . . . . . . . 2-3 Special function block
Lifter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-4 FX2N-10PG . . . . . . . . . . . . . . . . . . . . . . . . 4-43
Tapping . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-2 FX2N-1PG-E . . . . . . . . . . . . . . . . . . . . . . . 4-36
Programming example FX3U-20SSC-H . . . . . . . . . . . . . . . . . . . . . 4-60
E500 Series . . . . . . . . . . . . . . . . . . . . . . . 4-26 Speed control . . . . . . . . . . . . . . . . . . . . . . . . . . 1-6
FX1N PLC . . . . . . . . . . . . . . . . . . . . . . . . . 4-5
FX1S PLC . . . . . . . . . . . . . . . . . . . . . . . . . . 4-5 X
FX2N-10PG . . . . . . . . . . . . . . . . . . . . . . . 4-45 XY-axis table operation . . . . . . . . . . . . . . . . . . 4-62
FX2N-1PG-E . . . . . . . . . . . . . . . . . . . . . . 4-38
FX2N-20GM . . . . . . . . . . . . . . . . . . . . . . . 4-52
FX3G/FX3U(C) PLC . . . . . . . . . . . . . . . . . 4-12
FX3U-20SSC-H . . . . . . . . . . . . . . . . . . . . 4-61
Mitsubishi Electric Europe B.V. /// FA - European Business Group /// Gothaer Strae 8 /// D-40880 Ratingen /// Germany
Tel.: +49(0)2102-4860 /// Fax: +49(0)2102-4861120 /// [email protected] /// www.mitsubishi-automation.com