Mitsubishi Electronics Mitsubishi Digital Electronics Coffeemaker FX3U User Manual

USER'S MANUAL - Positioning Control Edition  
FX3G/FX3U/FX3UC SERIES PROGRAMMABLE CONTROLLERS  
Transistor Output  
FX3G Main Unit  
(Sink Output/  
Source Output)  
FX3U Main Unit  
(Sink Output/  
Source Output)  
FX3UC Main Unit  
(Sink Output/  
Source Output)  
Line Driver Output  
FX3U-2HSY-ADP  
Safety Precautions  
(Read these precautions before use.)  
Before installation, operation, maintenance or inspection of this product, thoroughly read through and  
understand this manual and all of the associated manuals. Also, take care to handle the module properly and  
safely.  
This manual classifies the safety precautions into two categories:  
and  
.
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 the circumstances, procedures indicated by  
It is important to follow all precautions for personal safety.  
may also cause severe injury.  
Store this manual in a safe place so that it can be taken out and read whenever necessary. Always forward it  
to the end user.  
1. DESIGN PRECAUTIONS  
Reference  
Make sure to have the following safety circuits outside of the PLC to ensure safe system operation  
even during external power supply problems or PLC failure.  
Otherwise, malfunctions may cause serious accidents.  
1) Most importantly, have the following: an emergency stop circuit, a protection circuit, an  
interlock circuit for opposite movements (such as normal vs. reverse rotation), and an interlock  
circuit (to prevent damage to the equipment at the upper and lower positioning limits).  
2) Note that when the PLC CPU detects an error, such as a watchdog timer error, during self-  
diagnosis, all outputs are turned off. Also, when an error that cannot be detected by the PLC  
CPU occurs in an input/output control block, output control may be disabled.  
External circuits and mechanisms should be designed to ensure safe machinery operation in  
such a case.  
B-4  
B-16  
B-80  
3) Note that when an error occurs in a relay, triac or transistor output device, the output could be  
held either on or off.  
For output signals that may lead to serious accidents, external circuits and mechanisms should  
be designed to ensure safe machinery operation in such a case.  
Reference  
Do not bundle the control line together with or lay it close to the main circuit or power line. As a  
guideline, lay the control line at least 100mm (3.94") or more away from the main circuit or power  
line.  
B-4  
B-16  
B-80  
Noise may cause malfunctions.  
Install module so that excessive force will not be applied to the built-in programming port, power  
connectors, I/O connectors, communication connectors, or communication cables.  
Failure to do so may result in wire damage/breakage or PLC failure.  
(1)  
 
Safety Precautions  
(Read these precautions before use.)  
2. WIRING PRECAUTIONS  
Reference  
Make sure to cut off all phases of the power supply externally before attempting installation or  
wiring work.  
Failure to do so may cause electric shock or damage to the product.  
Make sure to attach the terminal cover, offered as an accessory, before turning on the power or  
initiating operation after installation or wiring work.  
B-4  
B-32  
B-80  
Failure to do so may cause electric shock.  
Reference  
Connect the AC power supply to the dedicated terminals specified in the manual of the PLC main  
unit.  
If an AC power supply is connected to a DC input/output terminal or DC power supply terminal, the  
PLC will burn out.  
Connect the DC power supply to the dedicated terminals specified in the manual of the PLC main  
unit.  
If an AC power supply is connected to a DC input/output terminal or DC power supply terminal, the  
PLC will burn out.  
Do not wire vacant terminals externally.  
Doing so may damage the product.  
Perform class D grounding (grounding resistance: 100or less) to the grounding terminal on the  
FX3U/FX3G PLC main unit with a wire 2 mm or thicker.  
2
Do not use common grounding with heavy electrical systems (refer to the manual of the PLC main  
unit).  
Perform class D grounding (grounding resistance: 100or less) to the grounding terminal on the  
main unit.  
Do not use common grounding with heavy electrical systems.  
When drilling screw holes or wiring, make sure cutting or wire debris does not enter the ventilation  
slits.  
Failure to do so may cause fire, equipment failures or malfunctions.  
Install module so that excessive force will not be applied to I/O connectors.  
Failure to do so may result in wire damage/breakage or PLC failure.  
Connect input/output cables securely to their designated connectors.  
Loose connections may cause malfunctions.  
Make sure to properly wire the FX3U/FX3G Series main unit and FX0N/FX2N Series extension  
equipment in accordance with the following precautions.  
Failure to do so may cause electric shock, a short-circuit, wire breakage, or damage to the  
product.  
B-4  
B-32  
B-80  
-
-
The disposal size of the cable end should follow the dimensions described in this manual.  
Tightening torque should be between 0.5 and 0.8 N m.  
Make sure to properly wire to the European terminal board in accordance with the following  
precautions.  
Failure to do so may cause electric shock, a short-circuit, wire breakage, or damage to the  
product.  
-
-
-
-
-
-
The disposal size of the cable end should follow the dimensions described in this manual.  
Tightening torque should be between 0.22 and 0.25 N m.  
Twist the end of strand wire and make sure that there are no loose wires.  
Do not solder-plate the electric wire ends.  
Do not connect more than the specified number of wires or electric wires of unspecified size.  
Affix the electric wires so that neither the terminal block nor the connected parts are directly  
stressed.  
Make sure to properly wire to the FX Series terminal blocks in accordance with the following  
precautions.  
Failure to do so may cause electric shock, a short-circuit, wire breakage, or damage to the  
product.  
-
-
The disposal size of the cable end should follow the dimensions described in this manual.  
Tightening torque should be between 0.5 and 0.8 N m.  
(2)  
Safety Precautions  
(Read these precautions before use.)  
3. STARTUP AND MAINTENANCE PRECAUTIONS  
Reference  
Do not touch any terminal while the PLC's power is on.  
Doing so may cause electric shock or malfunctions.  
Before cleaning or retightening terminals, cut off all phases of the power supply externally.  
Failure to do so may cause electric shock.  
Before modifying or disrupting the program in operation or running the PLC, carefully read through  
this manual and the associated manuals and ensure the safety of the operation.  
An operation error may damage the machinery or cause accidents.  
B-5  
B-81  
Reference  
Do not disassemble or modify the PLC.  
Doing so may cause fire, equipment failures, or malfunctions.  
For repair, contact your local Mitsubishi Electric distributor.  
Turn off the power to the PLC before connecting or disconnecting any extension cable.  
Failure to do so may cause equipment failures or malfunctions.  
Turn off the power to the PLC before attaching or detaching the following devices.  
Failure to do so may cause equipment failures or malfunctions.  
B-5  
B-81  
-
-
Peripheral devices, expansion boards, and special adapters  
Input/output extension units/blocks and FX Series terminal blocks  
4. DISPOSAL PRECAUTIONS  
Reference  
Please contact a certified electronic waste disposal company for the environmentally safe  
recycling and disposal of your device.  
B-16  
5. TRANSPORTATION PRECAUTIONS  
Reference  
Before transporting the PLC, turn on the power to the PLC to check that the BATT LED is off.  
If the PLC is transported with the BATT LED on or the battery exhausted, the battery-backed data  
may be unstable during transportation.  
The PLC is a precision instrument. During transportation, avoid impacts larger than those specified  
in the general specifications of the PLC main unit manual. Failure to do so may cause failures in  
the PLC. After transportation, verify the operations of the PLC.  
B-16  
(3)  
(4)  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
FX3G/FX3U/FX3UC Series Programmable  
Controllers  
User's Manual [Positioning Control Edition]  
Manual number  
Manual revision  
Date  
JY997D16801  
E
3/2009  
Foreword  
This manual describes the "positioning" functions of the MELSEC-F FX3G/FX3U/FX3UC Series PLC and  
should be read and understood before attempting to install or use the unit.  
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.  
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.  
© 2005 MITSUBISHI ELECTRIC CORPORATION  
1
 
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Outline Precautions  
• This manual provides information for the use of the FX3U Series Programmable Controllers. The manual  
has been written to be used by trained and competent personnel. The definition of such a person or  
persons is as follows;  
1) Any engineer who is responsible for the planning, design and construction of automatic equipment  
using the product associated with this manual should be of a competent nature, trained and qualified  
to the local and national standards required to fulfill that role. These engineers should be fully aware of  
all aspects of safety with regards to automated equipment.  
2) Any commissioning or service engineer must be of a competent nature, trained and qualified to the  
local and national standards required to fulfill that job. These engineers should also be trained in the  
use and maintenance of the completed product. This includes being completely familiar with all  
associated documentation for the said product. All maintenance should be carried out in accordance  
with established safety practices.  
3) All operators of the completed equipment should be trained to use that product in a safe and  
coordinated manner in compliance to established safety practices. The operators should also be  
familiar with documentation which is connected with the actual operation of the completed equipment.  
Note: the term 'completed equipment' refers to a third party constructed device which contains or uses  
the product associated with this manual  
• This product has been manufactured as a general-purpose part for general industries, and has not been  
designed or manufactured to be incorporated in a device or system used in purposes related to human life.  
• Before using the product for special purposes such as nuclear power, electric power, aerospace, medicine  
or passenger movement vehicles, consult with Mitsubishi Electric.  
• This product has been manufactured under strict quality control. However when installing the product  
where major accidents or losses could occur if the product fails, install appropriate backup or failsafe  
functions in the system.  
• When combining this product with other products, please confirm the standard and the code, or regulations  
with which the user should follow. Moreover, please confirm the compatibility of this product to the system,  
machine, and apparatus with which a user is using.  
• If in doubt at any stage during the installation of the product, always consult a professional electrical  
engineer who is qualified and trained to the local and national standards. If in doubt about the operation or  
use, please consult the nearest Mitsubishi Electric distributor.  
• Since the examples indicated by this manual, technical bulletin, catalog, etc. are used as a reference,  
please use it after confirming the function and safety of the equipment and system. Mitsubishi Electric will  
accept no responsibility for actual use of the product based on these illustrative examples.  
• This manual content, specification etc. may be changed without a notice for improvement.  
• The information in this manual has been carefully checked and is believed to be accurate; however, if you  
have noticed a doubtful point, a doubtful error, etc., please contact the nearest Mitsubishi Electric  
distributor.  
Registration  
• Microsoft® and Windows® are either registered trademarks or trademarks of Microsoft Corporation in the  
United States and/or other countries.  
• The company name and the product name to be described in this manual are the registered trademarks or  
trademarks of each company.  
2
Table of Contents  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
3
Table of Contents  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
4
Table of Contents  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
4.4.2 Completion of Instruction Execution  
("Instruction execution complete" Flag, "Instruction execution abnormal end" Flag).............B-57  
5
Table of Contents  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
7. Absolute Position Detection System  
(Absolute Current Value Read)-ABS Instruction  
B-107  
6
Table of Contents  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
7
Table of Contents  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
8
Functions and Use of This Manual  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Functions and Use of This Manual  
The FX3G/FX3U/FX3UC PLC outputs transistor signals from the main unit and also outputs pulses from the  
high-speed output adapter and the positioning special function unit/block to the servo motor and stepping  
motor to properly control positioning operations.  
PLC  
FX3G/FX3U Series  
FX3UC Series  
Regarding wiring and installation of PLC:  
Enclosed with  
the product  
Hardware manual  
(The hardware manual is enclosed with the product.)  
User's Manual - Hardware Edition  
Separate  
document  
Regarding sequence program:  
Programming manual  
Separate  
document  
Regarding positioning function:  
Separate  
document  
FX3G/FX3U/FX3UC Series PLC  
User's Manual- Positioning Control Edtion  
This document describes the built-in positioning function  
setting method, examples of connection, examples of programs, details  
for troubleshooting, etc.  
This  
document  
Products needed for positioning  
FX3U-2HSY-ADP  
Either "INSTALLATION MANUAL" or "USER'S MANUAL" is  
enclosed with each product.  
For the details, refer to User's Manual [Positioning Control]  
(this document) or the product manual.  
Regarding installation and parts names:  
INSTALLATION MANUAL  
Enclosed with  
the product  
Special function unit/block  
This manual provides the necessary information.  
A separate document is needed for programming  
details.  
POWE  
RERRO  
R
STAR  
T
DO  
PG  
FO  
PR  
CPL  
R
GX  
X
1
FX2N-10PG  
f
f
A
B
Regarding installation, parts names, operation, and programs:  
USER'S MANUAL  
This manual provides the  
necessary information.  
Supplied with  
the product  
Separate  
document  
Separate  
document  
HARDWARE/PROGRAMMING MANUAL  
This manual provides the necessary information.  
Servo motor (stepping motor)  
Obtain the instruction manual of the servo motor to be connected to your system.  
This manual will be needed to set the parameters for the servo amplifier (drive  
unit) or wire the servo amplifier.  
9
 
Related Manuals  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Related Manuals  
Refer to this document to perform positioning operations with the FX3G/FX3U/FX3UC Series PLC.  
For hardware information on the PLC and for details on the special function units/blocks, refer to the  
respective manuals.  
Indispensable manual  
3Manual that may be indispensable  
depending on the purpose of use  
Abbreriated document  
Document  
number  
Title of manual  
Description  
Model code  
Manuals for PLC  
FX3G Series PLC  
The input/output specifications and the  
wiring and installation methods for the  
FX3G PLC are excerpted from the FX3G  
Series User’s Manual - Hardware Edition.  
For details, refer to the FX3G Series  
User’s Manual - Hardware Edition.  
Enclosed  
with the  
product  
FX3G Series  
HARDWARE MANUAL  
JY997D33401  
-
Provides detailed information on the  
hardware, such as the input/output  
JY997D31301 specifications and the detailed wiring,  
installation, and maintenance methods  
for the FX3G PLC.  
FX3G Series  
User’s Manual -  
Hardware Edition  
Separate  
document  
09R521  
FX3U Series PLC  
The input/output specifications and the  
wiring and installation methods for the  
FX3U PLC are excerpted from the FX3U  
Series User’s Manual - Hardware Edition.  
For details, refer to the FX3U Series  
User’s Manual - Hardware Edition.  
Enclosed  
with the  
product  
FX3U Series  
HARDWARE MANUAL  
JY997D18801  
-
Provides detailed information on the  
hardware, such as the input/output  
JY997D16501 specifications and the detailed wiring,  
installation, and maintenance methods  
for the FX3U PLC.  
FX3U Series  
User’s Manual -  
Hardware Edition  
Separate  
document  
09R516  
FX3UC Series PLC  
The input/output specifications and the  
wiring and installation methods for the  
FX3UC(D,DSS) PLC are excerpted from  
JY997D28601 the FX3UC Series User's Manual -  
Hardware Edition.  
Enclosed  
with the  
product  
FX3UC(D,DSS) Series  
HARDWARE MANUAL  
-
For details, refer to the FX3UC Series  
User's Manual - Hardware Edition.  
The input/output specifications and the  
wiring and installation methods for the  
FX3UC-32MT-LT-2 PLC are excerpted  
JY997D31601 from the FX3UC Series User's Manual -  
Hardware Edition.  
Enclosed  
with the  
product  
FX3UC-32MT-LT-2  
HARDWARE MANUAL  
-
For details, refer to the FX3UC Series  
User's Manual - Hardware Edition.  
Provides detailed information on the  
hardware, such as the input/output  
JY997D28701 specifications and the detailed wiring,  
installation, and maintenance methods  
for the FX3UC PLC.  
FX3UC Series  
User’s Manual -  
Hardware Edition  
Separate  
document  
09R519  
10  
 
Related Manuals  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Indispensable manual  
3Manual that may be indispensable  
depending on the purpose of use  
Abbreriated document  
Document  
Title of manual  
Description  
Model code  
number  
Programming  
FX3G/FX3U/FX3UC  
Series Programming  
Describes the basic instructions, applied  
instructions, and various devices of the  
Separate  
document  
Manual - Basic &  
Application Instruction  
Edition  
JY997D16601 FX3G/FX3U/FX3UC PLC to provide  
detailed information on sequence  
programming.  
09R517  
09R620  
Manuals for positioning control  
Common  
FX3G/FX3U/FX3UC  
Provides detailed information on the  
JY997D16801 positioning functions incorporated in the  
FX3G/FX3U/FX3UC Series.  
Separate Series User’s Manual -  
document Positioning Control  
Edition (this document)  
3
Pulse output, positioning  
To use each product, also refer to the user's manual (for hardware) of the PLC to be connected to your system.  
Describes how to handle the high-speed  
Enclosed  
with the  
product  
output special adapter.  
JY997D16401 To use this adapter, also refer to the  
User's Manual for FX3G/FX3U/FX3UC  
Series (for positioning control).  
FX3U-2HSY-ADP  
Installation Manual  
-
Enclosed  
with the  
product  
Describes how to handle the 1-axis pulse  
JY992D65301  
FX2N/FX-1PG  
User's Manual  
3
09R610  
output special function block.  
Describes how to handle the 1-axis pulse  
output special function block.  
To use this block, also refer to FX2N-  
10PG USER’S MANUAL.  
Enclosed  
with the  
product  
FX2N-10PG  
Installation Manual  
JY992D91901  
-
Separate FX2N-10PG  
document User's Manual  
Provides detailed information on the 1-  
JY992D93401  
3
09R611  
axis pulse output special function block.  
Describes how to handle the 1-axis  
positioning special function unit.  
JY992D77701 To use this unit, also refer to FX2N-  
10GM/FX2N-20GM HARDWARE/  
Enclosed  
FX2N-10GM  
with the  
-
-
User's Guide  
product  
PROGRAMMING MANUAL.  
Describes how to handle the 2-axis  
positioning special function unit.  
JY992D77601 To use this unit, also refer to FX2N-  
10GM/FX2N-20GM HARDWARE/  
Enclosed  
FX2N-20GM  
with the  
User's Guide  
product  
PROGRAMMING MANUAL.  
FX2N-10GM/FX2N-20GM  
Provides detailed information on the 1-  
JY992D77801 axis/2-axis positioning special function  
unit.  
HARDWARE/  
PROGRAMMING  
MANUAL  
Separate  
document  
3
3
09R612  
09R609  
Enclosed  
with the  
product  
FX-PCS-VPS/WIN  
SOFTWARE MANUAL  
Describes operation details of FX-PCS-  
JY992D86801  
VPS/WIN Setting/Monitoring Tool.  
Describes FX3U-20SSC-H positioning  
block specification for I/O, power supply  
Enclosed  
with the  
product  
FX3U-20SSC-H  
Installation Manual  
extracted from the FX3U-20SSC-H User’s  
JY997D21101  
Manual.  
-
For details, refer to FX3U-20SSC-H  
User's Manual.  
Separate FX3U-20SSC-H  
document User's Manual  
Describes FX3U-20SSC-H Positioning  
3
3
JY997D21301  
block details.  
09R622  
09R916  
Separate FX Configurator-FP  
document Operation Manual  
Describes operation details of FX  
JY997D21801  
Configurator-FP Setting/Monitoring Tool.  
11  
Generic Names and Abbreviations Used in Manuals  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Generic Names and Abbreviations Used in Manuals  
Generic name or  
abbreviation  
Description  
PLC  
FX3G series  
FX3G PLC or main unit  
FX3U series  
FX3U PLC or main unit  
FX3UC series  
Generic name for FX3G Series PLC  
Generic name for FX3G Series PLC main unit  
Generic name for FX3U Series PLC  
Generic name for FX3U Series PLC main unit  
Generic name for FX3UC Series PLC  
FX3UC PLC or main unit Generic name for FX3UC Series PLC main unit  
FX2N Series  
Generic name for FX2N Series PLC  
Generic name for FX2NC Series PLC  
FX2NC Series  
Expansion board  
Generic name for expansion board  
The number of connectable units, however, depends on the type of main unit.  
To check the number of connectable units, refer to the User's Manual - Hardware  
Editon of the main unit to be used for your system.  
Expansion board  
Special adapter  
Generic name for high-speed input/output special adapter, communication special  
adapter, and analog special adapter  
Special adapter  
The number of connectable units, however, depends on the type of main unit.  
To check the number of connectable units, refer to the User's Manual - Hardware  
Editon of the main unit to be used for your system.  
High-speed input/output  
special adapter  
Generic name for high-speed input/output special adapter  
High-speed output special  
adapter  
Generic name for high-speed output special adapter  
FX3U-2HSY-ADP  
2HSY-ADP  
High-speed input special  
adapter  
Generic name for high-speed input special adapter  
Communication special  
adapter  
Generic name for communication special adapter  
Generic name for analog special adapter  
Analog special adapter  
Extension unit  
Generic name for input/output extension unit and special extension unit  
The number of connectable units, however, depends on the type of main unit.  
To check the number of connectable units, refer to the User's Manual - Hardware  
Editon of the main unit to be used for your system.  
Extension unit  
Generic name for input extension unit and output extension unit  
The number of connectable units, however, depends on the type of main unit.  
To check the number of connectable units, refer to the User's Manual - Hardware  
Editon of the main unit to be used for your system.  
Input/output extension unit  
Generic name for FX2N Series input/output powered extension unit, input extension  
block, FX2NC Series input extension block, and FX0N Series input extension block  
The number of connectable units, however, depends on the type of main unit.  
To check the number of connectable units, refer to the User's Manual - Hardware  
Editon of the main unit to be used for your system.  
Input extension unit  
Output extension unit  
Generic name for FX2N Series input/output powered extension unit, output extension  
block, FX2NC Series output extension block, and FX0N Series output extension block  
The number of connectable units, however, depends on the type of main unit.  
To check the number of connectable units, refer to the User's Manual - Hardware  
Editon of the main unit to be used for your system.  
12  
 
Generic Names and Abbreviations Used in Manuals  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Generic name or  
abbreviation  
Description  
Extension unit  
Generic name for special function unit and special function block  
Special function unit/block or The number of connectable units, however, depends on the type of main unit.  
Special extension unit  
To check the number of connectable units, refer to the User's Manual - Hardware  
Edition of the main unit to be used for your system.  
Special function unit  
Generic name for special function unit  
Generic name for special function block  
The number of connectable units, however, depends on the type of main unit.  
To check the number of connectable units, refer to the User's Manual - Hardware  
Edition of the main unit to be used for your system.  
Special function block  
Positioning special  
function unit  
Generic name for the following models:  
FX2N-10GM, FX2N-20GM  
Positioning special  
function block  
Generic name for the following models:  
FX3U-20SSC-H  
Pulse output special  
function block  
Generic name for the following models:  
FX2N-1PG-E, FX2N-1PG, FX2N-10PG  
Generic name for the following models:  
FX2N-1PG-E, FX2N-1PG  
FX2N-1PG(-E)  
Optional unit  
Extension power supply unit FX3UC-1PS-5V(for FX3UC series), FX3U-1PSU-5V(for FX3G/FX3U series)  
Memory cassette  
Battery  
FX3G-EEPROM-32L, FX3U-FLROM-16, FX3U-FLROM-64, FX3U-FLROM-64L  
FX3U-32BL  
FX-16E-TB, FX-32E-TB, FX-16EX-A1-TB, FX16EYR-TB, FX-16EYS-TB,  
FX-16EYT-TB  
FX Series terminal block  
FX-16E-500CAB-S, FX-16E-ꢁꢁꢁCAB, FX-32E-ꢁꢁꢁCAB, FX-16E-ꢁꢁꢁCAB-R,  
FX-A32E-ꢁꢁꢁCAB  
Input/output cable  
ꢁꢁꢁ represents 150, 300, or 500.  
Input/output connector  
Power cable  
FX2C-I/O-CON, FX2C-I/O-CON-S, FX2C-I/O-CON-SA  
FX2NC-100MPCB, FX2NC-100BPCB, FX2NC-10BPCB1  
Peripheral unit  
Peripheral unit  
Generic name for programming software, handy programming panel, and HMI  
Programming tool  
Programming tool  
Programming software  
Generic name for programming software and handy programming panel  
Generic name for programming software  
Generic name for SWD5C-GPPW-J/SWD5C-GPPW-E programming software  
package  
GX Developer  
FX-PCS/WIN(-E)  
Generic name for FX-PCS/WIN or FX-PCS/WIN-E programming software package  
Handy programming panel  
(HPP)  
Generic name for FX-30P FX-20P(-E) and FX-10P(-E)  
,
Setting/Monitoring Tool  
Setting/monitoring tool  
FX Configurator-FP  
Generic name for setting/monitoring tool  
Generic name for SWD5C-FXSSC-J/SWD5C-FXSSC-E Setting/monitoring tool  
Generic name for FX-PCS-VPS/WIN or FX-PCS-VPS/WIN-E Positioning module  
software package for the FX2N-10GM and FX2N-20GM  
FX-PCS-VPS/WIN(-E)  
HMI  
GOT1000 series  
GOT-900 series  
GOT-A900 series  
GOT-F900 series  
Generic name for GT15, GT11 and GT10  
Generic name for GOT-A900 series and GOT-F900 series  
Generic name for GOT-A900 series  
Generic name for GOT-F900 series  
Generic name for ET-940 series  
Only manuals in Japanese are available for these products  
ET-940 series  
13  
Generic Names and Abbreviations Used in Manuals  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Generic name or  
abbreviation  
Description  
Drive unit for servo motor and stepping motor  
Generic name for servo motor or stepping motor  
Including pulse input type servo amplifier and drive unit.  
Servo motor  
Servo amplifier (drive unit)  
MELSERVO series  
Other unit  
Generic name for pulse input type servo amplifier (drive unit)  
Generic name for MELSERVO-J3, -J2-Super, -J2, -H, and -C series  
Manual pulse generator  
Manual  
Generic name for manual pulse generator (prepared by user)  
FX3G Hardware Edition  
FX3U Hardware Edition  
FX3UC Hardware Edition  
FX3G Series User's Manual - Hardware Edition  
FX3U Series User's Manual - Hardware Edition  
FX3UC Series User's Manual - Hardware Edition  
FX3G/FX3U/FX3UC Series Programming Manual - Basic and Applied Instructions  
Edition  
Programming manual  
Communication Control  
Edition  
FX Series User's Manual - Data Communication Edition  
Analog Control Edition  
FX3G/FX3U/FX3UC Series User's Manual - Analog Control Edition  
FX3G/FX3U/FX3UC Series User's Manual - Positioning Control Edition  
Positioning Control Edition  
14  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Common Items  
A
B
FX3G/FX3U/FX3UC Series Programmable  
Controllers  
Apx.  
User’s Manual [Positioning Control Edition]  
A. Common Items  
Foreword  
"Common Items" describes an outline of the "positioning" functions incorporated in the MELSEC-F FX3G/  
FX3U/FX3UC Series PLC and should be read and understood before attempting to install or use the unit.  
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.  
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.  
© 2005 MITSUBISHI ELECTRIC CORPORATION  
A - 1  
 
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Common Items  
Description of Manual (Common Items)  
In this manual, the following formats are used for describing the common items:  
Indexes the title of  
division.  
The right side of each  
page indexes the title  
of the division for the  
current page.  
Shows the title of the chapter  
and the title of the section.  
This area shows the title of the  
chapter and the title of the  
section for the current page.  
Shows the title of the manual and the title  
of the division.  
This area shows the title of the manual and the title  
of the division for the current page.  
1st line: Shows the title of the manual.  
2nd line: Shows the title of the division.  
Shows the reference.  
This area shows the  
reference document  
(the reference document is  
shown next to " ").  
If the reference is in  
"A. Common items"  
division, only the chapter,  
section, or subsection  
number only will be shown  
next to " ".  
If the reference is in  
another division, the chapter,  
section, or subsection  
number will be shown  
next to " " together with  
the title of the division.  
The above is different from the actual page, as it is provided for explanation only.  
A - 2  
 
1 Introduction  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Common Items  
1.1 Outline  
A
B
1. Introduction  
This manual describes the positioning control for the FX3G/FX3U/FX3UC PLC.  
In this chapter, a brief description of the positioning products is provided.  
1.1  
Outline  
The FX3G/FX3U/FX3UC PLC outputs the pulse signal to the servo motor and the stepping motor to control the  
positioning operation.  
Apx.  
Increase the pulse frequency to increase the motor speed. Increase the number of pulses to increase the  
number of motor revolutions. In other words, set the pulse frequency to determine the workpiece transfer  
(positioning) speed.  
Set the number of pulses to determine the workpiece transfer distance.  
Servo motor or  
stepping motor  
FX3G/FX3U/FX3UC PLC  
Pulse train signal  
Pulse frequency  
: Transfer speed  
Number of  
: Transfer distance  
pulses  
Positioning command  
Workpiece (item to be positioned)  
A - 3  
   
1 Introduction  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Common Items  
1.2 Introduction of Products Needed for Positioning  
1.2  
Introduction of Products Needed for Positioning  
To control the positioning operation, use the positioning functions incorporated in the main unit (including the  
special adapters), and the special functions units/blocks. The functions, however, depend on the product(s)  
being used. Select the optimum product(s) for the purpose of use.  
1.2.1 List of Models  
The products needed for positioning are shown in the following table:  
1. Main unit (transistor output) and special adapter  
Frequency  
Number of  
axes  
Output  
system  
Model  
Unit  
Output method  
Reference  
*1  
(Hz)  
Main unit (transistor output)  
Open  
collector  
system  
B. Built-in  
Positioning  
Function  
FX3U/FX3UC  
PLC  
3-axes  
(independent)  
"Pulse train + direction"  
method  
*5  
pulse  
pulse  
10 to 100,000  
Open  
collector  
system  
B. Built-in  
Positioning  
Function  
*3  
"Pulse train + direction"  
method  
3-axes  
*5  
FX3G PLC  
10 to 100,000  
(independent)  
Special adapter  
FX3U-2HSY  
"Pulse train + direction"  
method or "forward/  
reverse rotation pulse  
train" method  
Differential  
line driver  
system  
B. Built-in  
Positioning  
Function  
*4  
2-axes  
*5  
pulse  
10 to 200,000  
*2  
-ADP  
(independent)  
*1. Do not exceed the maximum rotation speed of the servo motor or the stepping motor.  
*2. Can only be connected to the FX3U PLC.  
*3. "2-axes (independent)" in 14-point and 24-point type main units.  
*4. Connection of 1 adapter can control 2 axes. Connection of 2 adapters can control up to 4 axes.  
*5. The minimum frequency set by the PLSY instruction or PLSV instruction is "1 Hz".  
For details on the PLSY instruction, refer to the programming manual.  
A - 4  
   
1 Introduction  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Common Items  
1.2 Introduction of Products Needed for Positioning  
A
B
*2  
2. Special function block/unit  
Frequency  
Number of  
axes  
Output  
Model  
Unit  
Output method  
system  
*1  
(Hz)  
Special function block  
pulse  
Open  
collector  
system  
"Pulse train + direction" method or  
"forward/reverse rotation pulse train"  
method  
µm  
FX2N-1PG(-E)  
1-axis  
1-axis  
10 to 100,000  
1 to 1,000,000  
-4  
10 inch  
mdeg  
pulse  
Differential  
line driver  
system  
"Pulse train + direction" method or  
"forward/reverse rotation pulse train"  
method  
µm  
FX2N-10PG  
-4  
Apx.  
10 inch  
mdeg  
pulse  
2-axes  
µm  
FX3U-20SSC-H (independent/ 1 to 50,000,000  
interpolation)  
SSCNET III  
-4  
10 inch  
mdeg  
Special function unit  
pulse  
Open  
collector  
system  
"Pulse train + direction" method or  
"forward/reverse rotation pulse train"  
method  
µm  
FX2N-10GM  
FX2N-20GM  
1-axis  
1 to 200,000  
1 to 200,000  
-4  
10 inch  
mdeg  
pulse  
2-axes  
(independent/  
interpolation)  
Open  
collector  
system  
"Pulse train + direction" method or  
"forward/reverse rotation pulse train"  
method  
µm  
-4  
10 inch  
mdeg  
*1. Do not exceed the maximum rotation speed of the servo motor or the stepping motor.  
*2. Only FX3U and FX3UC PLC can be connected to the above models.  
Refer to the manual of each product.  
A - 5  
1 Introduction  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Common Items  
1.2 Introduction of Products Needed for Positioning  
1.2.2 Main Unit (Transistor Output)  
The FX3G/FX3U/FX3UC PLC incorporates positioning functionality.  
The PLC can output an open collector type pulse train of up to 100 kHz from the general-purpose outputs  
(Y000 to Y002), and it can simultaneously control 3 axes*1.  
1-axis  
2-axes  
3-axes  
3G/FX3U/FX3UC PLC  
FX  
(Transistor output)  
Servo motor  
(Servo amplifier)  
Servo motor  
(Servo amplifier)  
Servo motor  
(Servo amplifier)  
Y001  
+
Direction  
signal  
Y002  
Y000  
+
+
Direction  
signal  
Direction  
signal  
*1. 14-point and 24-point type FX3G PLC can only control 2 axes.  
1.2.3 Special Adapter  
The special adapter can output differential line driver type pulse trains of up to 200 kHz using the positioning  
functionality incorporated in the FX3U PLC, and can simultaneously control up to 4 axes.  
Up to 2 high-speed output special adapters (FX3U-2HSY-ADP) can be connected to the FX3U PLC.  
• The first FX3U-2HSY-ADP uses Y000 and Y004, and Y001 and Y005.  
• The second FX3U-2HSY-ADP uses Y002 and Y006, and Y003 and Y007.  
FX3U-2HSY-ADP  
FX3U PLC  
2nd  
1st  
1-axis  
2-axes  
3-axes  
4-axes  
Servo motor  
(Servo amplifier)  
Servo motor  
(Servo amplifier)  
Servo motor  
(Servo amplifier)  
Servo motor  
(Servo amplifier)  
Y000  
+
Y004  
Y001  
Y002  
Y003  
+
+
+
Y005  
Y006  
Y007  
A - 6  
   
1 Introduction  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Common Items  
1.2 Introduction of Products Needed for Positioning  
A
B
Cautions when connecting special adapters  
• To use high-speed input/output special adapters only (not to use the other special adapters), it is not  
necessary to connect the expansion board.  
• To use the analog and communication special adapters, be sure to connect the expansion board.  
• To use high-speed input/output special adapters together with the analog and/or communication special  
adapters, connect the high-speed output special adapters to the expansion board (already connected to  
the FX3U PLC) first, and then connect the analog special adapters and/or the communication special  
adapter(s).  
Analog special adapter  
Communication special adapter  
High-speed output  
special adapter  
Expansion board  
FX3U PLC  
Apx.  
R
D
A
RD  
SD  
R
D
B
A
SD  
SD  
B
SG  
1.2.4 Special Function Unit/Block  
Connect a special function unit/block to the FX3U/FX3UC PLC to control positioning operations. Note that a  
special function unit can individually control positioning operations.  
1. System configuration for FX3U PLC  
Up to 8 special function units/blocks can be connected to the FX3U PLC.  
Special function block  
Special function unit  
Servo motor  
(Servo amplifier)  
FX3U PLC  
POWE  
RERRO  
R
STAR  
T
DO  
PG  
FO  
PR  
PCL  
R
G
X
1
FX2N-10PG  
f
A
B
No.0  
No.7  
to  
Up to 8 units  
For details on system configuration, refer to the FX3U Hardware Edition.  
2. System configuration for FX3UC PLC  
Up to 8*1 special function units/blocks can be connected to the FX3UC PLC.  
FX2NC-CNV-IF or FX3UC-1PS-5V is needed to connect special function units/blocks.  
FX3UC-1PS-5V  
or  
FX2NC-CNV-IF  
Servo motor  
(Servo amplifier)  
Special function block  
Special function unit  
FX3UC PLC  
P
E
O
WE  
R
RRO  
R
S
T
A
RT  
DO  
G
P
G
O
X
X
f
0
1
FP  
RP  
CL  
FX 2N -10PG  
A
B
R
f
*2  
No.0  
No.7  
to  
Up to 8 units  
*1. Up to 7 special function units/blocks can be connected to the FX3UC-32MT-LT(-2) PLC.  
*2. The unit/block number begins with "No. 1" when special function unit/blocks are connected to the  
FX3UC-32MT-LT(-2) PLC.  
For details on system configuration, refer to the FX3UC Hardware Edition.  
A - 7  
 
1 Introduction  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Common Items  
1.2 Introduction of Products Needed for Positioning  
3. Individual operation (FX2N-10GM, FX2N-20GM)  
Without connecting special function units (FX2N-10GM, FX2N-20GM) to the PLC, you can operate them  
individually.  
• FX2N-10GM can control one 1-axis servo motor or stepping motor.  
• FX2N-20GM can control two 1-axis servo motors or stepping motors.  
In addition, up to 48 I/O points can be added.  
1-axis  
1-axis  
2-axes  
FX2N-10GM  
FX2N-20GM  
Servo motor  
(Servo amplifier)  
Servo motor  
(Servo amplifier)  
Servo motor  
(Servo amplifier)  
A - 8  
2 Unit Connection  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Common Items  
2.1 FX3U PLC  
A
B
2. Unit Connection  
This chapter displays several block diagrams to illustrate the various combinations of units needed for  
positioning control.  
2.1  
FX3U PLC  
FX3U Series  
Apx.  
A and B show the unit positions.  
(For details of installation, refer to the manuals of special adapter and  
special function units/blocks.)  
A
B
Terminal block (M3)  
Servo motor or  
Stepping motor*3  
(Transistor output)*1  
A
European terminal  
board  
FX3U-2HSY-ADP  
P
O
W
E
R
E
RRO  
R
B
START  
DO  
G
P
G
O
X
0
FP  
RP  
CL  
X
1
A
B
FX2N-10PG  
f
f
R
- Terminal board (M3)*2  
- MIL connector (20-pin)*2  
- SSCNET dedicated  
connector*2  
Special function block  
Special function unit  
*1. The relay output type PLCs do not have pulse output.  
*2. The product connects with the servo amplifier via the terminal block, MIL connector (20 pins), or the  
SSCNET dedicated connector.  
*3. FX3U-20SSC-H only connects with the servo amplifier (MR-J3B) applicable to SSCNET III.  
Note:  
• For details on the connectable special function units/blocks and system configuration, refer to the following  
manual.  
Refer to the FX3U Hardware Edition.  
A - 9  
   
2 Unit Connection  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Common Items  
2.2 FX3UC PLC  
2.2  
FX3UC PLC  
FX3UC Series  
and  
show the unit positions.  
B
C
C
B
(For installation details, refer to the manuals of the special adapter and  
special function units/blocks.)  
Servo motor or  
MIL connector (20-pin)  
Stepping motor*2  
C
B
P
ERRO  
O
W
E
R
R
FX3UC-1PS-5V  
C
START  
DO  
G
P
G
O
X
0
FP  
RP  
CL  
X
1
A
B
FX2N-10PG  
f
f
R
- Terminal board (M3)*1  
- MIL connector (20-pin)*1  
- SSCNET dedicated  
connector*1  
Special function  
block  
Special function  
unit  
FX2NC-CNV-IF  
*1. The product connects with the servo amplifier via the terminal block, MIL connector (20 pins), or the  
SSCNET dedicated connector.  
*2. FX3U-20SSC-H only connects with the servo amplifier (MR-J3B) applicable to SSCNET III.  
*3. Up to 7 special function units/blocks can be connected to the FX3UC-32MT-LT(-2) PLC.  
Note:  
• Use the FX3UC-1PS-5V (extension power supply unit) only if the 5V DC power supply unit incorporated in  
the FX3UC PLC does not have enough capacity.  
Refer to the FX3UC Hardware Edition.  
• For details on the connectable special extension blocks and system configuration, refer to the following  
manual.  
Refer to the FX3UC Hardware Edition.  
A - 10  
 
2 Unit Connection  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Common Items  
2.3 FX3G PLC  
A
B
2.3  
FX3G PLC  
FX3G Series (40-point, 60-point type)  
Servo motor or  
Stepping motor  
Terminal board (M3)  
Transistor output (Y000 to Y002)*1  
Apx.  
FX3G Series (14-point, 24-point type)  
Terminal board (M3)  
Transistor output (Y000, Y001)*1  
*1. The relay output type PLCs do not have pulse output.  
2.4  
Individual Operation of Special Function Unit (FX2N-10GM, FX2N-20GM)  
Servo motor or  
Stepping motor  
MIL connector (20-pin)  
FX2N-10GM  
MIL connector (20-pin)  
FX2N-20GM  
Note:  
• For details on the connection of the FX2N-10GM or FX2N-20GM and for system configuration, refer to the  
following manual.  
Refer to FX2N-10GM, FX2N-20GM HARDWARE/PROGRAMMING MANUAL.  
A - 11  
   
3 Comparison of Specifications  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Common Items  
3.1 Comparison of Performance Specifications  
3. Comparison of Specifications  
The specifications for each product with positioning functionality are shown below.  
3.1  
Comparison of Performance Specifications  
3.1.1 Built-in Positioning Function [Main Unit (Transistor Output),  
High-Speed Output Special Adapter (FX3U-2HSY-ADP)]  
FX3G/FX3U/FX3UC PLC  
Model  
*2  
FX3U-2HSY-ADP  
(Main unit, transistor output)  
2 independent axes  
(Connect 2 adapters to the main unit to control  
4 axes independently.)  
Number of control  
*1  
3 independent axes  
axes  
Interpolation  
-
-
Pulse output  
system  
Open collector system  
Differential line driver system  
Pulse output  
method  
"Pulse train + direction" method  
"Forward/reverse rotation pulse train" method  
"Pulse train + direction" method  
100,000Hz  
Maximum  
200,000Hz  
*3  
frequency  
Acceleration  
/deceleration type  
Automatic trapezoidal acceleration/deceleration  
Unit  
pulse  
Positioning range  
Program language  
Position data  
-999,999 to +999,999 (pulse)  
Sequence program  
1 point (set in sequence program)  
Connection of  
manual pulse  
generator  
-
-
Detection of  
absolute position  
(Reads out the cur-  
rent value of ABS.)  
ABS instruction of the PLC  
To be used when a servo amplifier with a  
differential line receiver method is  
connected.  
To be used when positioning control is  
performed with a FX3U Series relay output  
type main unit.  
Pulses can be output from the general-  
purpose outputs (Y000, Y001, and Y002) of  
the main unit.  
Others  
Used in place of the general-purpose  
*4  
outputs (Y000 to Y007) of the main unit.  
*1. 2 independent axes in 14-point and 24-point type FX3G PLC.  
*2. Can only be connected to the FX3U PLC. Up to 2 adapters can be connected.  
*3. Do not exceed the maximum rotation speed of the servo motor or the stepping motor.  
*4. If 2 adapters are connected, Y000 to Y007 will be used. If only one adapter is connected, Y000, Y001,  
Y004, and Y005 will be used. The relation between the output of the FX3U-2HSY-ADP and the output  
of main unit is described in the following sections.  
For high-speed output special adapters, refer to Subsection 1.5.3 and Section 4.9 of  
"B. Built-in Positioning Function."  
A - 12  
     
3 Comparison of Specifications  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Common Items  
3.1 Comparison of Performance Specifications  
A
B
3.1.2 Pulse Output Special Function Block [FX2N-1PG(-E), FX2N-10PG]  
Model  
FX2N-1PG(-E)  
FX2N-10PG  
Number of control  
axes  
1 independent axis  
Interpolation  
-
-
Pulse output  
system  
Open collector system  
Differential line driver system  
Pulse output  
method  
"Pulse train + direction" method  
"Forward/reverse rotation pulse train" method  
Apx.  
Maximum  
100,000Hz  
1,000,000Hz  
*1  
frequency  
Automatic trapezoidal  
acceleration/deceleration, approximate  
S-pattern acceleration/deceleration  
Acceleration/decel-  
eration type  
Automatic trapezoidal  
acceleration/deceleration  
-4  
Unit  
pulse, µm, 10 inch, mdeg  
-999,999 to +999,999 [× (Position data magnifi-  
-2,147,483,648 to +2,147,483,647 pulse  
*2  
cation ) pulse]  
-2,147,483,648 to +2,147,483,647 [× (Position  
-999,999 to +999,999 [× (Position data magnifi-  
*2  
*3  
data magnification ) µm]  
-2,147,483,648 to +2,147,483,647 [× (Position  
*2  
cation ) µm]  
Positioning range  
-999,999 to +999,999 [× (Position data magnifi-  
*2  
-4  
*3  
data magnification ) ×10 inch]  
*2  
-4  
cation ) ×10 inch]  
-2,147,483,648 to +2,147,483,647 [× (Position  
-999,999 to +999,999 [× (Position data magnifi-  
*2  
*3  
data magnification ) mdeg]  
*2  
cation ) mdeg]  
Program language  
Position data  
Sequence program (FROM/TO instruction, BFM direct designation)  
*4  
1 point (set in sequence program)  
1 point (set in sequence program)  
Connection of  
manual pulse  
generator  
Connectable  
(Differential line driver, open collector)  
-
Detection of  
absolute position  
(Reads out the cur-  
rent value of ABS.)  
Using the ABS instruction of the PLC  
PLC input/output: 8 points occupied  
(Points can be either input or output points.)  
From the dedicated start, the high-speed  
start by 1 ms at shortest is enabled.  
During positioning operation, the operation  
speed can be changed.  
PLC input/output: 8 points occupied  
(Points can be either input or output points.)  
Others  
*1. Do not exceed the maximum rotation speed of the servo motor or the stepping motor.  
*2. The position data magnification sets the 1, 10,102 or 103 in parameters.  
*3. The positioning range can be set in the range from -2,147,483,648 to +2,147,483,647 pulses.  
*4. Up to 200 points (table) can be set for the table operation.  
A - 13  
 
3 Comparison of Specifications  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Common Items  
3.1 Comparison of Performance Specifications  
3.1.3 Positioning Special Function Block [FX3U-20SSC-H]  
Model  
FX3U-20SSC-H  
2 independent/simultaneous axes  
Number of control  
axes  
Interpolation  
2-axes linear interpolation, 2-axes circular interpolation  
Pulse output  
system  
SSCNET III  
Pulse output  
method  
Maximum  
50,000,000Hz  
*1  
frequency  
Acceleration/  
deceleration type  
Automatic trapezoidal acceleration/deceleration,  
approximate S-pattern acceleration/deceleration  
-4  
Unit  
pulse, µm, 10 inch, mdeg  
-2,147,483,648 to +2,147,483,647 pulse  
*2  
*3  
-2,147,483,648 to +2,147,483,647 [× (Position data magnification ) µm]  
Positioning range  
*2  
-4  
*3  
-2,147,483,648 to +2,147,483,647 [× (Position data magnification ) ×10 inch]  
*2  
*3  
-2,147,483,648 to +2,147,483,647 [× (Position data magnification ) mdeg]  
*4  
Program language  
Position data  
Sequence program (FROM/TO instruction, BFM direct designation)  
*5  
1 point (set in sequence program)  
Connection of  
manual pulse  
generator  
Connectable (Differential line driver)  
Set in parameters  
Detection of  
absolute position  
(Reads out the  
current value of  
ABS.)  
PLC input/output: 8 points occupied  
(Points can be either input or output points.)  
During positioning operation, the operation speed and/or target address can be changed.  
Others  
*1. Do not exceed the maximum rotation speed of the servo motor.  
*2. The position data magnification sets the 1, 10,102 or 103 in parameters.  
*3. The positioning range can be set in the range from -2,147,483,648 to +2,147,483,647 pulses.  
*4. The set data (table information) of the table operation can be set up with FX Configurator-FP Setting/  
monitor tool.  
*5. Up to 300 points (table) can be set for the table operation of the X-/Y-/XY-axis.  
A - 14  
 
3 Comparison of Specifications  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Common Items  
3.1 Comparison of Performance Specifications  
A
B
3.1.4 Positioning Special Function Unit [FX2N-10GM, FX2N-20GM]  
Model  
FX2N-10GM  
FX2N-20GM  
Number of control  
axes  
1 independent axis  
2 independent/simultaneous axes  
2-axes linear interpolation,  
2-axes circular interpolation  
Interpolation  
-
Pulse output  
system  
Open collector system  
Open collector system  
Pulse output  
method  
"Pulse train + direction" method  
"Forward/reverse rotation pulse train" method  
Apx.  
Maximum  
200,000Hz  
(100,000Hz during interpolation operation)  
200,000Hz  
*1  
frequency  
Acceleration  
/deceleration type  
Automatic trapezoidal acceleration/deceleration  
-1  
Unit  
pulse, mm, 10 inch, deg  
*2  
-999,999 to +999,999 [× (minimum command unit ) pulse]  
*3  
-999,999 to +999,999 [× (minimum command unit ) mm]  
Positioning range  
*3  
-1  
-999,999 to +999,999 [× (minimum command unit ) ×10 inch]  
*3  
-999,999 to +999,999 [× (minimum command unit ) deg]  
Program language  
Position data  
Cod number system, table system  
Cod number system  
Block designation (X-axis, Y-axis, 2 axes  
simultaneously): 0 to 99 (100 blocks)  
*4  
Block designation: 0 to 99 (100 blocks)  
Connection of  
manual pulse  
generator  
Connectable (Open collector system)  
Set in parameters  
Detection of  
absolute position  
(Reads out the cur-  
rent value of ABS.)  
PLC input/output: 8 points occupied  
(Points can be either input or output points.)  
This unit can perform positioning operations  
independently, without a main unit.  
This unit can perform teaching operation.  
I/O points can be added (48 points,  
maximum).  
PLC input/output: 8 points occupied  
(Points can be either input or output points.)  
This unit can perform positioning operations  
independently, without a main unit.  
Others  
This unit can perform teaching operation.  
*1. Do not exceed the maximum rotation speed of the servo motor or the stepping motor.  
*2. The minimum command unit sets the 1, 10,102 or 103 in parameters.  
*3. The minimum command unit sets the 1, 10-1,10-2 or 10-3 in parameters.  
*4. Up to 100 points (table) can be set for the table operation.  
A - 15  
 
3 Comparison of Specifications  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Common Items  
3.2 Comparison of Operation Modes  
3.2  
Comparison of Operation Modes  
Positioning operation  
pattern  
Description  
Jogging operation  
Jogging speed  
Speed  
If the forward/reverse rota-  
tion command is input, the  
motor will rotate in the for-  
ward/reverse direction.  
3*1  
3
3
3
3
3
3
3
3
3
3
Start  
JOG  
command  
Mechanical zero return  
The mechanical zero return  
start command will start the  
zero return operation at the  
specified speed. At the com-  
pletion of the mechanical  
zero return, CLEAR signal  
will be output.  
Zero return  
speed  
Creep  
speed  
Speed  
3
Origin DOG input: ON Start  
CLEAR  
The DOG search function  
applies for each unit.  
signal  
Electric zero return  
The SETR instruction will  
return the workpiece to the  
set electric origin at the maxi-  
mum speed set the parame-  
ters.  
Speed  
Maximum speed  
3
3
3
3
Electric origin  
Start  
1-speed positioning  
Speed  
Operation speed  
The start command will start  
the operation at the speci-  
fied operation speed, and the  
operation will stop at the tar-  
get position.  
3*2  
3
3
3
Target  
position  
Start  
Transfer distance  
2-speed positioning  
The start command will  
transfer the workpiece to the  
distance (1) at operation  
speed (1), and then to the  
distance (2) at operation  
speed (2).  
Operation  
speed(1)  
Speed  
Operation  
speed(2)  
3
3
3
3
Start  
Transfer  
distance(1)  
Transfer  
distance(2)  
3*3  
3*4  
Multi-speed operation  
The workpiece will change  
speed with the specified  
transfer distance.  
The figure shows an example  
a of 3-speed operation.  
P2  
P3  
V3  
P1  
Speed  
3*5  
V1  
V2  
Start  
*1. Drive to Increment instruction is used.  
*2. Drive to Increment/Absolute instructions are used.  
*3. The pulse train function of the linear interpolation instruction will perform this operation.  
*4. The pulse train function of the linear interpolation instruction will perform this operation.  
Operation of only one axis is possible.  
*5. The table operation (continuous operation) function will perform this operation.  
A - 16  
 
3 Comparison of Specifications  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Common Items  
3.2 Comparison of Operation Modes  
A
B
Positioning operation  
Description  
pattern  
Interrupt stop  
(linear interpolation [Interrupt  
stop])  
If an interrupt input turns ON,  
during a linear interpolation  
operation to the target posi-  
tion (x, y) at a vector speed,  
the speed will decelerate and  
the positioning operation will  
stop.  
Apx.  
Ignoring  
remaining  
distance  
3
3
3
Target  
position  
(x, y)  
Y-axis  
Interrupt input  
X-axis  
Start point  
Interrupt stop  
If an interrupt input turns ON,  
during a positioning opera-  
tion, the speed will deceler-  
ate and the operation will  
stop.  
Speed Operation speed  
3
3
Speed  
Interrupt  
input  
Target  
position  
Interrupt 1-speed positioning  
(Interrupt 1-speed constant  
quantity feed)  
If an interrupt input turns ON,  
the workpiece will travel to  
the specified transfer dis-  
tance at the same speed,  
where it will decelerate and  
the operation will stop.  
Operation speed  
Speed  
3*6  
3
3
3
3
3
3
Interruption command  
Transfer distance  
Start  
The operation starts at oper-  
ation speed (1) by the start  
command. During the opera-  
tion, if the speed reduction  
command is input, the speed  
will decelerate to operation  
speed (2). After that, the  
operation will be continued at  
operation speed (2) until the  
stop command is input.  
2-speed positioning with  
speed reduction  
Operation  
Speed  
speed(1)  
Operation  
speed(2)  
Start  
Speed reduction Stop  
command command  
Interrupt 2-speed positioning  
(Interrupt 2-speed constant  
quantity feed)  
If interrupt input(1) turns ON,  
the speed will be reduced to  
the 2nd speed. After that, if  
interrupt input(2) turns ON,  
the operation will decelerate  
to stop after moving the  
specified transfer distance at  
the 2nd speed.  
Transfer  
distance  
1st speed  
Speed  
3
3
3
3
2nd speed  
Start  
Interrupt  
input(1)  
Interrupt  
input(2)  
*6. Interrupt positioning instruction performs this operation.  
Only available for FX3U and FX3UC PLCs.  
A - 17  
3 Comparison of Specifications  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Common Items  
3.2 Comparison of Operation Modes  
Positioning operation  
Description  
pattern  
Variable-speed operation  
Speed  
The operation will be per-  
3*7  
3
3*8  
3*8  
formed at the operation  
speed specified by the PLC.  
Start Speed  
change  
Speed  
change  
Stop  
Linear interpolation  
Target  
position (x, y)  
The workpiece will travel to  
the target position at the  
specified vector speed (inter-  
polation operation).  
Y-axis  
y
x
Start point  
X-axis  
Circular interpolation  
3*9  
3*10  
The workpiece will travel to  
the specified target position  
(x, y) along an arc at the  
specified circumferential  
speed.  
Target position (x, y)  
CW  
Radius: -r  
CCW  
Start  
point  
Target  
position  
(x, y)  
The center coordinate or  
radius can be specified.  
Start point  
Radius: r  
Solid line  
:cw Dotted line  
:ccw  
3
X-/Y-/XY-  
axis:  
Table operation  
3
200  
3
100  
No. Position Speed •••  
A positioning control program  
can be set with the table.  
0
1
2
200  
500  
500  
1000  
2000  
points, points,  
300  
maxi-  
mum  
maxi-  
mum  
points,  
maxi-  
mum  
1000  
Manual pulse generator  
operation  
Input pulse:  
30 kHz or less  
Phase  
3
3
3
3
Manual operation can be per-  
formed with the manual pulse  
generator.  
A
Manual pulse  
generator  
30 kHz, 2 kHz, 2 kHz, 100 kHz,  
Phase  
B
maxi-  
mum  
maxi-  
mum  
maxi-  
mum  
maxi-  
mum  
Servo amplifier  
drive unit  
Magnification  
Dividing ratio  
*7. Variable speed pulse output instruction is used to perform this operation.  
Operations with acceleration/deceleration are supported in the FX3U/FX3UC PLC Ver. 2.20 or later and FX3G  
PLC.  
*8. Operates with acceleration/deceleration.  
*9. When interpolation instructions are consecutively set in the program, it will immediately shift to the  
next operation. (continuous pass operation).  
*10. When the interpolation operation is continuously set in the table operation, it will immediately shift to  
the next operation. (Continuation pass function)  
A - 18  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
A
B
FX3G/FX3U/FX3UC Series Programmable  
Controllers  
Apx.  
User’s Manual [Positioning Control Edition]  
B. Built-in Positioning Functions  
Foreword  
"B. Built-in Positioning Functions" describes the "positioning" functions incorporated in the MELSEC-F FX3G/  
FX3U/FX3UC Series PLC and should be read and understood before attempting to install or use the unit.  
Also, 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.  
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.  
© 2005 MITSUBISHI ELECTRIC CORPORATION  
B - 1  
 
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
Description of Manual (Built-in Positioning Function)  
In this manual, the following formats are used for describing the built-in positioning functions.  
Shows the title of the manual and the title  
of the division.  
This area shows the title of the manual and the title  
of the division for the current page.  
1st line: Shows the title of the manual.  
2nd line: Shows the title of the division.  
Shows the title of the chapter  
and the title of the section.  
This area shows the title of the  
chapter and the title of the  
section for the current page.  
Indexes the title of  
division.  
The right side of each  
page indexes the title  
of the division for the  
current page.  
Shows the reference.  
This area shows the  
reference document  
(the reference document is  
shown next to " ").  
If the reference is in the  
"A. Common items"  
division, only the chapter,  
section, or subsection  
number will be shown  
next to " ".  
If the reference is in another  
division, the chapter,  
section, or subsection  
number will be shown  
next to " " together with  
the title of the division.  
Shows the version number  
of the compatible PLC.  
Compatible  
series  
Shows the compatible  
version numbers.  
Ver. 2.20: Version  
below 2.20  
Ver.2.20 : Version 2.20  
or later  
The above is different from the actual page, as it is provided for explanation only  
B - 2  
 
1 Outline  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
1.1 Features  
A
B
1. Outline  
This chapter describes a general outline of the positioning modules. Note that the general outputs of the  
FX3G/FX3U/FX3UC PLC (transistor output) and FX3U-2HSY-ADP high-speed output special adapter are  
needed for positioning control.  
1.1  
Features  
Apx.  
1) The general outputs of the FX3G/FX3U/FX3UC PLC (transistor output) can control up to 3 axes*1 for  
positioning operations.  
2) If one high-speed output special adapter (FX3U-2HSY-ADP) is connected, the adapter can control up to 2  
axes for the positioning operation. If two high-speed output special adapters are connected, the adapters  
can control up to 4 axes for the positioning operation.  
3) The FX3G/FX3U/FX3UC PLC positioning instructions (applied instructions) are used for positioning control.  
4) The general outputs of the FX3G/FX3U/FX3UC PLC (transistor output) can output a pulse train of 100 kHz  
(open collector system).  
5) The FX3U-2HSY-ADP high-speed output special adapter can output a pulse train of 200 kHz (differential  
line driver system).  
6) The FX3U-2HSY-ADP high-speed output special adapter can switch the output method between "pulse  
train + direction" method and "forward/reverse rotation pulse train" method.  
System  
Points and references  
If the general outputs of the FX3G/FX3U/FX3UC PLC are used:  
3 axes*1, maximum  
...  
...  
Number of controllable axes  
Servo amplifier (drive unit)etc.  
To check the PLC model,  
refer to Section 1.3.  
FX3G/FX3U/FX3UC PLC  
(transistor output)  
1-axis  
2-axes  
3-axes  
For a detailed description of  
the positioning instructions,  
refer to Chapters 6 to 11.  
...  
For a detailed description of  
the input/output specifications,  
refer to Section 2.4 and  
Section 2.5.  
...  
...  
For examples of connection,  
refer to the Appendix.  
*1. 2 independent axes in 14-point and 24-point type FX3G PLC.  
If FX3U-2HSY-ADP adapters are connected to the FX3U PLC:  
4 axes, maximum  
...  
...  
Number of controllable axes  
Servo amplifier (drive unit)etc.  
FX3U-2HSY  
-ADP  
FX3U PLC  
To check the PLC model,  
refer to Section 1.3.  
1-axis  
2-axes 3-axes 4-axes  
For a detailed description of the  
positioning instructions, refer to  
Chapters 6 to 11.  
...  
...  
For a detailed description of the  
input/output specifications, refer  
to Section 2.4 and Section 2.5.  
2nd  
1st  
...  
For examples of connection,  
refer to the Appendix.  
B - 3  
   
1 Outline  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
1.2 Setup Procedure for Positioning Control  
1.2  
Setup Procedure for Positioning Control  
DESIGN PRECAUTIONS  
Make sure to have the following safety circuits outside of the PLC to ensure safe system operation even during  
external power supply problems or PLC failure.  
Otherwise, malfunctions may cause serious accidents.  
1) Most importantly, have the following: an emergency stop circuit, a protection circuit, an interlock circuit for  
opposite movements (such as normal vs. reverse rotation), and an interlock circuit (to prevent damage to the  
equipment at the upper and lower positioning limits).  
2) Note that when the PLC CPU detects an error, such as a watchdog timer error, during self-diagnosis, all  
outputs are turned off. Also, when an error that cannot be detected by the PLC CPU occurs in an input/output  
control block, output control may be disabled.  
External circuits and mechanisms should be designed to ensure safe machinery operation in such a case.  
3) Note that when an error occurs in a relay, triac or transistor output device, the output could be held either on or  
off.  
For output signals that may lead to serious accidents, external circuits and mechanisms should be designed to  
ensure safe machinery operation in such a case.  
DESIGN PRECAUTIONS  
Do not bundle the control line together with or lay it close to the main circuit or power line. As a guideline, lay the  
control line at least 100mm (3.94") or more away from the main circuit or power line.  
Noise may cause malfunctions.  
Install module so that excessive force will not be applied to the built-in programming port, power connectors, I/O  
connectors, communication connectors, or communication cables.  
Failure to do so may result in wire damage/breakage or PLC failure.  
WIRING PRECAUTIONS  
Make sure to cut off all phases of the power supply externally before attempting installation or wiring work.  
Failure to do so may cause electric shock or damage to the product.  
Make sure to attach the terminal cover, offered as an accessory, before turning on the power or initiating operation  
after installation or wiring work.  
Failure to do so may cause electric shock.  
WIRING PRECAUTIONS  
Connect the AC power supply to the dedicated terminals specified in the manual of the PLC main unit.  
If an AC power supply is connected to a DC input/output terminal or DC power supply terminal, the PLC will burn  
out.  
Connect the DC power supply to the dedicated terminals specified in the manual of the PLC main unit.  
If an AC power supply is connected to a DC input/output terminal or DC power supply terminal, the PLC will burn  
out.  
Do not wire vacant terminals externally.  
Doing so may damage the product.  
Perform class D grounding (grounding resistance: 100or less) to the grounding terminal on the FX3U/FX3G PLC  
2
main unit with a wire 2 mm or thicker.  
Do not use common grounding with heavy electrical systems (refer to the manual of the PLC main unit).  
Perform class D grounding (grounding resistance: 100or less) to the grounding terminal on the main unit.  
Do not use common grounding with heavy electrical systems.  
When drilling screw holes or wiring, make sure cutting or wire debris does not enter the ventilation slits.  
Failure to do so may cause fire, equipment failures or malfunctions.  
Install module so that excessive force will not be applied to I/O connectors.  
Failure to do so may result in wire damage/breakage or PLC failure.  
Connect input/output cables securely to their designated connectors.  
Loose connections may cause malfunctions.  
B - 4  
 
1 Outline  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
1.2 Setup Procedure for Positioning Control  
A
B
WIRING PRECAUTIONS  
Make sure to properly wire the FX3U/FX3G Series main unit and FX0N/FX2N Series extension equipment in  
accordance with the following precautions.  
Failure to do so may cause electric shock, a short-circuit, wire breakage, or damage to the product.  
-
-
The disposal size of the cable end should follow the dimensions described in this manual.  
Tightening torque should be between 0.5 and 0.8 N m.  
Make sure to properly wire to the European terminal board in accordance with the following precautions.  
Failure to do so may cause electric shock, a short-circuit, wire breakage, or damage to the product.  
-
-
-
-
-
-
The disposal size of the cable end should follow the dimensions described in this manual.  
Tightening torque should be between 0.22 and 0.25 N m.  
Twist the end of strand wire and make sure that there are no loose wires.  
Do not solder-plate the electric wire ends.  
Do not connect more than the specified number of wires or electric wires of unspecified size.  
Affix the electric wires so that neither the terminal block nor the connected parts are directly stressed.  
Apx.  
Make sure to properly wire to the FX Series terminal blocks in accordance with the following precautions.  
Failure to do so may cause electric shock, a short-circuit, wire breakage, or damage to the product.  
-
-
The disposal size of the cable end should follow the dimensions described in this manual.  
Tightening torque should be between 0.5 and 0.8 N m.  
STARTUP AND MAINTENANCE  
PRECAUTIONS  
Do not touch any terminal while the PLC's power is on.  
Doing so may cause electric shock or malfunctions.  
Before cleaning or retightening terminals, cut off all phases of the power supply externally.  
Failure to do so may cause electric shock.  
Before modifying or disrupting the program in operation or running the PLC, carefully read through this manual  
and the associated manuals and ensure the safety of the operation.  
An operation error may damage the machinery or cause accidents.  
STARTUP AND MAINTENANCE  
PRECAUTIONS  
Do not disassemble or modify the PLC.  
Doing so may cause fire, equipment failures, or malfunctions.  
For repair, contact your local Mitsubishi Electric distributor.  
Turn off the power to the PLC before connecting or disconnecting any extension cable.  
Failure to do so may cause equipment failures or malfunctions.  
Turn off the power to the PLC before attaching or detaching the following devices.  
Failure to do so may cause equipment failures or malfunctions.  
-
-
Peripheral devices, expansion boards, and special adapters  
Input/output extension units/blocks and FX Series terminal blocks  
B - 5  
1 Outline  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
1.2 Setup Procedure for Positioning Control  
Built-in positioning function  
Outline of system  
Version numbers of compatible PLCs  
Version numbers of compatible programming  
tools  
Refer to Chapter 1  
Outline  
Assignment of input/output numbers  
Refer to Chapter 2  
Specifications on incorporated  
positioning functions  
Specifications  
General specifications, power supply  
specifications, performance specifications  
Input/output specifications  
Refer to the manual of each motor.  
Motor specifications  
Motor  
specifications  
Performance  
specifications  
Motor capacity  
Refer to Division A  
"Common Items".  
System configuration and unit selection  
System configuration  
Unit selection  
Refer to Chapter 2  
and Appendix.  
Wiring  
Wiring  
Wiring of power supply, input, and  
output lines  
Refer to Chapter 4.  
Example of connection to servo amplifier  
Setting of PLC side  
Setting of servo amplifier parameters  
Setting of PLC and servo amplifier  
Selection of output method  
(high-speed output special adapter)  
Setting of command pulse input method and  
electronic gear (servo amplifier)  
Refer to Chapter 4.  
Related devices  
Refer to Chapter 5  
Operation test  
Related devices  
Maximum speed, zero return speed  
Acceleration time, deceleration time  
Operation test  
Creation of program for operation test  
Motion check  
(forward rotation, reverse rotation)  
Refer to Chapters 6 to 11.  
Programming  
Programming  
Details on the positioning instructions  
If the motor does not operate or does not  
operate properly, refer to Chapter 13  
"Troubleshooting."  
Refer to Chapter 12.  
Examples of practical programs  
Examples of programs  
(forward rotation, reverse rotation, zero return)  
Relay ladder program  
Step ladder program  
B - 6  
1 Outline  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
1.3 Version Numbers of Compatible PLCs  
A
B
1.3  
Version Numbers of Compatible PLCs  
1.3.1 Manufacturer's serial number check method  
The year and month of production of the product can be checked on the nameplate, and "LOT" indicated on  
the front of the product.  
1. Checking the nameplate  
The year and month of production of the product can be checked from the manufacturer's serial number  
"SERIAL" indicated on the label adhered to the right side of the product.  
Example: FX3U-48MR/ES (manufacture's serial number: 930001)  
Apx.  
PROGRAMMABLE  
CONTROLLER  
MITSUBISHI  
FX3U-48MR/ES  
MODEL  
Right side  
100-240VAC 50/60Hz 40W  
OUT:30VDC/240VAC 2A(COSφ=1)  
SERIAL  
930001  
80M1 IND. CONT. EQ.  
MITSUBISHI ELECTRIC CORPORATION  
MADE IN JAPAN  
9
3
0
0
0
1
Control number  
Month (Example: Mar.): (1 to 9 =January to September,  
X= October, Y= November, Z= December)  
Year (Example: 2009): Last digit of year  
2. Checking the front of the product  
The year and month of production of the product can be checked from the manufacturer's serial number  
"LOT" on the front (at the bottom) of the product.  
The "LOT" indication is adopted for products manufactured at the following times.  
Main unit  
FX3U Series PLC  
"LOT" indication adoption time  
January 2009 and later  
FX3UC Series PLC  
FX3G Series PLC  
January 2009 and later  
October 2008 and later  
Example: FX3U-48MR/ES  
9
3
Month (Example: Mar.): (1 to 9= January to September,  
X= October, Y= November, Z= December)  
Year (Example: 2009): Last digit of year  
B - 7  
   
1 Outline  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
1.3 Version Numbers of Compatible PLCs  
1.3.2 Version check  
The D8001 special data register contains information for determining the PLC version.  
D8001  
2
4
1
0
0
PLC type and  
version  
Version information (Example: Ver. 1.00)  
PLC type Example: 24 = FX3U/FX3UC PLC  
26 = FX3G PLC  
1.3.3 Version upgrade history  
Compatible version  
number  
Date (month and year)  
of production  
Compatible PLC  
Remarks  
Equivalent to FX3UC PLC Ver. 2.20  
Functions specified as "Ver.2.20 or  
later" in this manual are applicable.  
Ver. 2.20 (initial product)  
or later  
After May 2005  
FX3U PLC  
Ver. 2.30 or later  
After November 2005  
After January 2004  
Ver. 1.00 (initial product)  
or later  
DVIT instruction function is added.  
Ver. 1.30 or later  
After August 2004  
-
Designation of interrupt input  
signal  
Functions specified as "Ver.2.20 or  
later" in this manual are applicable.  
TBL instruction is added.  
-
GX Developer can set the  
positions using parameters.  
FX3UC PLC  
PLSV instruction function is added.  
Acceleration/deceleration function  
DVIT instruction function is added.  
User interruption mode  
DSZR, ZRN instruction functions are  
added.  
Ver. 2.20 or later  
After May 2005  
-
-
-
Designation of destination for  
CLEAR signal to be output  
Ver. 2.30 or later  
After November 2005  
After June 2008  
Ver. 1.00 (initial product)  
or later  
FX3G PLC  
B - 8  
   
1 Outline  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
1.4 Version Numbers of Compatible Programming Tools  
A
B
1.4  
Version Numbers of Compatible Programming Tools  
The built-in positioning functions depend on the version of the FX3G/FX3U/FX3UC PLC. Select a compatible  
version of GX Developer for programming.  
For details on version numbers of compatible PLCs, refer to Section 1.3.  
1) FX3U PLC  
Version  
number of FX3U  
PLC  
Model  
Version number of  
Remarks  
(Software model) compatible GX Developer  
Supports FX3U PLCs (Ver.2.20 or later).  
Model selection: FX3U(C)*1  
Ver.2.20 or later  
Ver.2.30 or later  
Ver. 8.23Z or later  
Ver. 8.29F or later  
GX Developer  
SWD5C-GPPW-J  
SWD5C-GPPW-E  
Apx.  
Supports FX3UC PLCs (Ver.2.30 or later).  
Model selection: FX3U(C)  
*1. For Ver. 8.23Z or 8.24A of GX Developer, the model to be selected is FX3UC.  
2) FX3UC PLC  
Versionnumber  
Model  
Version number of  
Remarks  
of FX3UC PLC  
(Software model) compatible GX Developer  
Supports FX3UC PLCs (Ver.1.00 or later).  
Model selection: FX3UC  
Ver.1.00 or later  
Ver.8.13P or later  
Supports FX3UC PLCs (Ver.1.30 or later).  
Model selection: FX3UC  
Ver.1.30 or later  
Ver.2.20 or later  
Ver.2.30 or later  
Ver.8.18U or later  
Ver.8.23Z or later  
Ver. 8.29F or later  
GX Developer  
SWD5C-GPPW-J  
SWD5C-GPPW-E  
Supports FX3UC PLCs (Ver.2.20 or later).  
Model selection: FX3U(C)*1  
Supports FX3UC PLCs (Ver.2.30 or later).  
Model selection: FX3U(C)  
*1. For Ver. 8.23Z or 8.24A of GX Developer, the model to be selected is FX3UC.  
3) FX3G PLC  
Versionnumber  
of FX3G PLC  
Model  
Version number of  
Remarks  
(Software model) compatible GX Developer  
GX Developer  
Ver.1.00 or later SWD5C-GPPW-J  
Supports FX3G PLCs (Ver.1.00 or later).  
Model selection: FX3G  
Ver.8.72A or later  
SWD5C-GPPW-E  
B - 9  
 
1 Outline  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
1.5 Assignment of Input/Output Numbers  
1.5  
Assignment of Input/Output Numbers  
1.5.1 Assignment of Input Numbers  
Assign the input numbers of the FX3G/FX3U/FX3UC PLC as follows:  
Application  
Input number  
Remarks  
Connect a line to any input.  
If the line-connected input is turned on, turn off the positioning instruction signal  
must be turned off.  
All input  
points  
Stop command  
Connect a line to any input.  
If the line-connected input is turned on, the DSZR or ZRN instruction must be  
turned on.  
Zero return  
command  
All input  
points  
Connect a line to the input of the near-point signal (DOG) specified by DSZR or  
ZRN instruction.  
For details on the near-point signal of the DSZR instruction, refer to  
Section 6.2.  
For details on the near-point signal of the ZRN instruction, refer to  
Section 6.3.  
Near-point  
signal  
(DOG)  
All input  
points  
Point:  
To use the DSZR instruction:  
If X000 to X017*1 of the main unit are set for the near-point signal (DOG), the  
near-point signal (DOG) will be monitored at 1ms intervals.  
To use the ZRN instruction:  
If X000 to X007 of the main unit are set for the near-point signal (DOG), the PLC  
interruption function will be used for processing of the near-point signal (DOG).  
Zero-phase  
signal  
Connect a line to the input (X000 - X007) specified for the zero-phase signal (this  
input is specified by DSZR instruction).  
X000 to X007  
Connect a line if it is necessary to use the absolute position detection system.  
Connect a line to the input specified by the ABS instruction.  
Use 3 consecutive input points for this function.  
All input  
points  
ABS read  
Connect a line to any input.  
If the line-connected input is turned on, the DRVI instruction for the jogging motion  
must be turned on.  
All input  
points  
JOG command  
B - 10  
   
1 Outline  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
1.5 Assignment of Input/Output Numbers  
A
B
Application  
Input number  
Remarks  
The interrupt input depends on the pulse output destination specified by the DVIT  
*2  
instruction as shown in the following table. If the version number of the PLC is  
1.30 or higher, the interrupt input can be specified.  
Pulse output destination  
interrupt input  
X000  
Y000  
Y001  
Y002  
X001  
X002  
*3  
X003  
Y003  
Apx.  
FX3UC PLC Ver. 1.30 or later  
If the interrupt input specification function is used, the D8336  
register (interrupt input specification register) can specify the  
interrupt input number (X000 - X007) for each pulse output  
destination.  
For details on the interrupt input specification method, refer to  
Subsection 4.3.7.  
Interrupt input  
X000 to X007  
*4  
FX3U/FX3UC PLC Ver. 2.20 or later  
If the interrupt input specification function is used, the D8336  
register (interrupt input specification register) can specify the  
interrupt input number (X000 - X007) for each pulse output  
destination, or the user interrupt input command can be  
specified.  
For details on the user interrupt input command, refer to  
Subsection 4.3.7.  
The user interrupt input command depends on the pulse output destination as  
shown in the following table.  
Pulse output destination  
User interrupt input command  
Y000  
Y001  
Y002  
M8460  
M8461  
M8462  
M8463  
*3  
Y003  
Connect a line to any input.  
If the line-connected input is turned on, the forward limit relay must be turned on.  
The forward limit relay depends on the pulse output destination as shown in the  
following table.  
Pulse output destination  
Forward limit relay  
M8343  
Forward  
rotation limit  
(LSF)  
All input  
points  
Y000  
Y001  
M8353  
*5  
M8363  
Y002  
*3  
M8373  
Y003  
Connect a line to any input.  
If the line-connected input is turned on, the reverse limit relay must be turned on.  
The reverse limit relay depends on the pulse output destination as shown in the  
following table:  
Pulse output destination  
Reverse limit relay  
M8344  
Reverse rota-  
tion limit (LSR)  
All input  
points  
Y000  
Y001  
M8354  
*5  
M8364  
Y002  
*3  
M8374  
Y003  
B - 11  
1 Outline  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
1.5 Assignment of Input/Output Numbers  
*1. X000 to X007 for FX3U-16M, FX3UC-16M  
.  
X000 to X007 for FX3G PLC (main unit).  
*2. Interrupt outputs are supported only in the FX3U and FX3UC PLC.  
*3. Y003 can be specified as the pulse output destination only if 2 high-speed output special adapters are  
connected to the FX3U PLC.  
*4. Ver.2.20 is assigned to the initial product of the FX3U PLC.  
*5. Y002 (pulse output destination) cannot be specified when the 14-point or 24-point type FX3G PLC is  
connected.  
1.5.2 Assignment of Output Numbers  
1. FX3G/FX3U/FX3UC Series main unit (transistor output)  
Output  
number  
Application  
Remarks  
Y000  
Y001  
Pulse train signal  
(Pulse output  
destination)  
Connect a line to the output (Y000 - Y002) specified for the pulse output  
designation (this output is specified by the positioning instruction).  
*1  
Y002  
Direction signal  
(Rotational  
direction signal)  
Connect a line to any output.  
Connect a line to the output specified for the rotation direction signal (this signal is  
specified by the positioning instruction).  
All output  
*2  
points  
Connect a line if it is necessary to use DSZR/ZRN instruction to output the CLEAR  
signal.  
The CLEAR signal output depends on the pulse output destination specified by  
the DSZR/ZRN instruction. If the PLC version is later than the following number,  
the CLEAR signal can be specified.  
Pulse output destination  
CLEAR signal  
Y004  
Y000  
Y001  
Y005  
*1  
Y006  
Y002  
FX3U/FX3UC PLC (transistor output) Ver. 2.20 or later:  
If the CLEAR signal device specification function is used, the  
CLEAR signal device specification register can specify an  
output for each pulse output destination.  
All output  
CLEAR signal  
*2  
points  
For details on the CLEAR signal device specification method, refer to  
Subsection 4.3.4.  
The CLEAR signal device specification register depends on the pulse output  
destination as shown in the following table:  
Pulse output destination CLEAR signal device specification register  
Y000  
Y001  
Y002  
D8464  
D8465  
D8466  
*1. Y002 (pulse output destination) cannot be specified when the 14-point or 24-point type FX3G PLC is  
connected.  
*2. Specify an output number for transistor output.  
B - 12  
 
1 Outline  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
1.5 Assignment of Input/Output Numbers  
A
B
2. High-speed output special adapter  
Output number  
Application  
Terminal  
Remarks  
1st  
2nd  
Connect a line to determine the pulse train signal or the forward  
rotation pulse train for the 1st axis of each high-speed output  
special adapter.  
For the 1st adapter, specify Y000 as the pulse output destination  
of the positioning instruction. For the 2nd adapter, specify Y002  
as the pulse output destination of the positioning instruction.  
Y0/2+  
Y0/2-  
Y000  
Y002  
Pulse train sig-  
nal/forward  
rotation pulse  
train  
Connect a line to determine the pulse train signal or the forward  
rotation pulse train for the 2nd axis of each high-speed output  
special adapter.  
For the 1st adapter, specify Y001 as the pulse output destination  
of the positioning instruction. For the 2nd adapter, specify Y003  
as the pulse output destination of the positioning instruction.  
(pulse output  
destination)  
Apx.  
Y1/3+  
Y1/3-  
Y001  
Y004  
Y003  
Y006  
Connect a line to determine the direction signal or the reverse  
rotation pulse train for the 1st axis of each high-speed output  
special adapter.  
For the 1st adapter, specify Y004 as the rotation direction signal  
of the positioning instruction. For the 2nd adapter, specify Y006  
as the rotation direction signal output of the positioning  
instruction.  
Y4/6+  
Y4/6-  
Direction sig-  
nal/reverse  
rotation pulse  
train  
Connect a line to determine the direction signal or the reverse  
rotation pulse train for the 2nd axis of each high-speed output  
special adapter.  
For the 1st adapter, specify Y005 as the rotation direction signal  
output of the positioning instruction. For the 2nd adapter, specify  
Y007 as the rotation direction signal output of the positioning  
instruction.  
(rotation  
direction  
signal)  
Y5/7+  
Y5/7-  
Y005  
Y007  
Connect a line if it is necessary to use the DSZR/ZRN instruction  
to output the CLEAR signal.  
Using the CLEAR signal device specification function, specify the  
output number for the transistor output. In this case, do not  
specify an output device if the device is already specified for  
outputting the rotational direction signal.  
For details on the CLEAR signal device specification  
method, refer to Subsection 4.3.4.  
The CLEAR signal device specification register depends on the  
pulse output destination as shown in the following table:  
CLEAR signal device  
Pulse output destination  
specification register  
CLEAR signal  
*1  
All output points  
Y000  
Y001  
Y002  
Y003  
D8464  
D8465  
D8466  
D8467  
Point:  
The CLEAR signal output that is initially set for the DSZR/ZRN  
instruction is the same output as the direction signal (rotation  
direction signal, reverse pulse train). Be sure to specify an  
output number of another transistor output using the CLEAR  
signal device specification function.  
*1. Specify an output number for transistor output.  
B - 13  
1 Outline  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
1.5 Assignment of Input/Output Numbers  
1.5.3 Connection of High-Speed Output Special Adapter  
1. When the FX3U-16MR/ES uses an instruction that needs the high-speed inputting operation,  
the main unit should have enough input terminals. Before selecting the main unit, be sure  
to check the number of input points needed for the operation.  
2. Specify the rotational direction signal of the positioning instruction depending on the  
setting of each pulse output destination as shown in the following table:  
Pulse output destination  
Rotation direction signal  
Y000  
Y001  
Y002  
Y003  
Y004  
Y005  
Y006  
Y007  
1st  
2nd  
3. To output the CLEAR signal using DSZR/ZRN instruction  
The CLEAR signal output that is initially set for the DSZR/ZRN instruction is the same output as the direction  
signal/reverse pulse train (rotation direction signal). Be sure to specify an output number of another transistor  
output using the CLEAR signal device specification function.  
For details on the CLEAR signal device specification method, refer to  
Subsection 4.3.4.  
4. If high-speed output special adapter is connected to the FX3U Series main unit, the output  
numbers will be assigned in the same way as the main unit.  
If an output number assigned to a high-speed output special adapter is turned on by the sequence program,  
the corresponding output of the main unit will also be turned on. Do not connect a line to both output  
terminals. Connect a line to one of the output terminals.  
The outputs of the high-speed output special adapter and the main unit will be turned on as shown in the  
following table:  
Output operation  
PLSY,PLSR,DSZR,  
Unit  
Other  
instruction  
DVIT,TBL,ZRN,PLSV,D  
RVI,DRVA instruction.  
PWM instruction  
While instruction is  
Use of the PWM (FNC58) instruction is not  
FX3U Series main unit activated, relevant  
Operated  
*2  
of relay output type  
output is ON. (LED is  
also ON.)  
compatible with a relay type main unit.  
FX3U Series main unit  
of transistor output  
type  
*1  
Operated  
Operated  
Operated  
Operated  
Operated  
High-speed output  
special adapter  
The main unit should use the transistor output  
Operated  
*2  
type.  
*1. The output frequency limit of the main unit transistor output is 100 kHz. When operating a load with a  
pulse frequency exceeding 100 kHz, PLC failure may occur.  
*2. Furthermore, use of the PWM (FNC58) is not recommended with the relay type main unit and the  
high-speed adapters due to chattering of the relay contacts.  
B - 14  
 
1 Outline  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
1.5 Assignment of Input/Output Numbers  
A
B
Block diagram  
FX3U Series main unit  
Sequence program  
FX3U-2HSY  
-ADP  
FX3U-2HSY  
-ADP  
FNC 158  
DRVI  
K30000 K20000 Y000 Y004  
K15000 K10000 Y001 Y005  
1st  
FNC 158  
DRVA  
FNC 159  
DRVA  
K10000 K10000 Y002 Y006  
K1000 K5000 Y003 Y007  
2nd  
Apx.  
FNC 159  
DRVI  
Y002  
Y003  
Y006  
Y007  
Y000  
Y001  
Y004  
Y005  
Y000 Y001 Y002 Y003 Y004 Y005 Y006 Y007  
B - 15  
2 Specifications  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
2. Specifications  
DESIGN PRECAUTIONS  
Make sure to have the following safety circuits outside of the PLC to ensure safe system operation even during  
external power supply problems or PLC failure.  
Otherwise, malfunctions may cause serious accidents.  
1) Most importantly, have the following: an emergency stop circuit, a protection circuit, an interlock circuit for  
opposite movements (such as normal vs. reverse rotation), and an interlock circuit (to prevent damage to the  
equipment at the upper and lower positioning limits).  
2) Note that when the PLC CPU detects an error, such as a watchdog timer error, during self-diagnosis, all  
outputs are turned off. Also, when an error that cannot be detected by the PLC CPU occurs in an input/output  
control block, output control may be disabled.  
External circuits and mechanisms should be designed to ensure safe machinery operation in such a case.  
3) Note that when an error occurs in a relay, triac or transistor output device, the output could be held either on or  
off.  
For output signals that may lead to serious accidents, external circuits and mechanisms should be designed to  
ensure safe machinery operation in such a case.  
DESIGN PRECAUTIONS  
Do not bundle the control line together with or lay it close to the main circuit or power line. As a guideline, lay the  
control line at least 100mm (3.94") or more away from the main circuit or power line.  
Noise may cause malfunctions.  
Install module so that excessive force will not be applied to the built-in programming port, power connectors, I/O  
connectors, communication connectors, or communication cables.  
Failure to do so may result in wire damage/breakage or PLC failure.  
DISPOSAL PRECAUTIONS  
Please contact a certified electronic waste disposal company for the environmentally safe recycling and disposal  
of your device.  
TRANSPORTATION  
PRECAUTIONS  
Before transporting the PLC, turn on the power to the PLC to check that the BATT LED is off.  
If the PLC is transported with the BATT LED on or the battery exhausted, the battery-backed data may be  
unstable during transportation.  
The PLC is a precision instrument. During transportation, avoid impacts larger than those specified in the general  
specifications of the PLC main unit manual. Failure to do so may cause failures in the PLC. After transportation,  
verify the operations of the PLC.  
B - 16  
 
2 Specifications  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
2.1 General Specifications  
A
B
2.1  
General Specifications  
For the FX3G/FX3U/FX3UC PLC general specifications, refer to the following manuals. Note that the  
high-speed output special adapter general specifications are the same as the PLC excluding the specifications  
shown in the following table.  
For the FX3G PLC general specifications, refer to the FX3G Hardware Edition.  
For the FX3U PLC general specifications, refer to the FX3U Hardware Edition.  
For the FX3UC PLC general specifications, refer to the FX3UC Hardware Edition.  
Item  
Specifications  
Withstand voltage  
500V AC, for 1 minute  
Between output terminal of high-speed output  
special adapter and grounding terminal of PLC.  
Apx.  
5M or more using 500V DC  
insulation tester  
Insulation resistance  
2.2  
Power Supply Specifications  
For the FX3G/FX3U/FX3UC PLC power supply specifications, refer to the following manuals. The power supply  
specifications of the high-speed output special adapter are shown in the following table.  
For the FX3G PLC power supply specification, refer to the FX3G Hardware Edition.  
For the FX3U PLC power supply specification, refer to the FX3U Hardware Edition.  
For the FX3UC PLC power supply specifications, refer to the FX3UC Hardware Edition.  
Item  
Specifications  
Output circuit drive  
power supply  
24V DC, 60 mA  
The service power of the main unit is supplied internally.  
5V DC, 30 mA  
Adapter drive power  
supply  
The adapter driver power is internally supplied from the 5V DC power supply unit of the  
main unit.  
B - 17  
   
2 Specifications  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
2.3 Performance Specifications  
2.3  
Performance Specifications  
*1  
FX3G/FX3U/FX3UC PLC  
*2  
Model  
FX3U-2HSY-ADP  
(main unit, transistor output)  
2 independent axes  
(Connect 2 adapters to the main unit to  
control 4 axes independently.)  
*4  
Number of control axes  
3 independent axes  
Interpolation  
-
-
Pulse output system  
Open collector system  
Differential line driver system  
"Pulse train + direction" method  
"Forward/reverse rotation pulse train"  
method  
Pulse output method  
"Pulse train + direction" method  
100,000Hz  
Maximum frequency  
200,000Hz  
Acceleration/  
deceleration type  
Automatic trapezoidal acceleration/deceleration  
Unit  
pulse  
Positioning range  
Program language  
Position data  
-999,999 to +999,999(pulse)  
Sequence program  
1 point (set in sequence program)  
Connection of manual  
pulse generator  
-
-
Detection of absolute  
position  
(Reads out the current  
value of ABS.)  
ABS instruction  
To be used when a servo amplifier with  
a differential line receiver method is  
connected.  
To be used when positioning control is  
performed with a FX3U Series relay  
output type main unit.  
Pulses can be output from the general-  
purpose outputs (Y000, Y001, and  
Y002) of the main unit.  
Others  
Used in place of the general-purpose  
*3  
outputs (Y000 to Y007) of the main  
unit.  
*1. For MELSERVO Series amplifiers, use a sink input/sink output type PLC.  
*2. Can only be connected to the FX3U PLC. Up to 2 adapters can be connected.  
*3. If 2 adapters are connected, Y000 to Y007 will be used. If only one adapter is connected, Y000,  
Y001, Y004, and Y005 will be used. The relation between the output of the FX3U-2HSY-ADP and the  
output of main unit is described in the following sections.  
To use high-speed output special adapters, refer to Subsection 1.5.3 and Section 4.9 of "B. Built-in  
Positioning Function".  
*4. 2 independent axes in 14-point and 24-point type FX3G PLC.  
B - 18  
 
2 Specifications  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
2.4 Input Specifications  
A
B
2.4  
Input Specifications  
2.4.1 FX3U Series main unit (24V DC Input)  
This section describes the input specifications of the FX3U Series main unit. Note that the simultaneous  
turning-on rate is restricted for the input extension units and the main unit. For details on this restriction, refer  
to the following manual:  
Refer to the FX3U Hardware Edition.  
Item  
24V DC input specifications  
24V DC±10%  
3.9kΩ  
Input signal voltage  
All inputs  
Apx.  
X000 to X005  
X006,X007  
X010 or later  
X000 to X005  
X006,X007  
X010 or later  
X000 to X005  
X006,X007  
X010 or later  
Input impedance  
3.3kΩ  
4.3kΩ  
6mA/24V DC  
7mA/24V DC  
5mA/24V DC  
3.5 mA or more  
4.5mA or more  
3.5 mA or more  
Input signal current  
Input ON  
current  
Input sensitivity  
current  
Input OFF  
current  
All inputs  
All inputs  
All inputs  
1.5mA or less  
*1  
Input response time  
Input signal type  
Approx. 10 ms  
No-voltage contact input  
NPN/PNP open collector transistor  
Circuit insulation  
All inputs  
-
Photocoupler insulation  
Indication of input motion  
Turning on the input will light the LED indicator lamp.  
*1. If inputs X000 to X007 are assigned to the zero-phase signal of DSZR instruction or the interrupt input  
of the DVIT the instruction, the input response time will be as shown in the following table.  
Input  
Input response time  
X000 to X005  
X006,X007  
5µs  
50µs  
1. Internal input circuit  
Sink input line connection  
Main unit  
Source input line connection  
Main unit  
Fuse  
Fuse  
L
L
N
N
Class-D  
grounding  
Class-D  
grounding  
S/S  
24V 0V  
24V 0V  
S/S  
0V  
0V  
24V  
24V  
X0  
X1  
X0  
X1  
Input  
impedance  
Input  
impedance  
B - 19  
   
2 Specifications  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
2.4 Input Specifications  
2.4.2 FX3UC Series main unit (24V DC Input)  
This section describes the input specifications of the FX3UC Series main unit. Note that the simultaneous  
turning-on rate is restricted for the input extension units and the main unit. For details on this restriction, refer  
to the following manual:  
Refer to the FX3UC Hardware Edition.  
Item  
24V DC input specifications  
Input signal voltage  
All inputs  
24V DC +20%, -15% / Ripple(p-p): 5 % or less  
X000 to X005  
X006,X007  
3.9kΩ  
Input impedance  
3.3kΩ  
X010 to X017  
X000 to X005  
X006,X007  
4.3kΩ  
6mA/24V DC  
7mA/24V DC  
5mA/24V DC  
3.5 mA or more  
4.5mA or more  
3.5mA or more  
Input signal current  
X010 to X017  
X000 to X005  
X006,X007  
Input ON  
current  
Input sensitivity  
current  
X010 to X017  
Input OFF  
current  
All inputs  
All inputs  
1.5mA or less  
*1  
Input response time  
Approx. 10 ms  
No-voltage contact input  
NPN open collector transistor  
Input signal type  
All inputs  
*2  
PNP open collector transistor  
Circuit insulation  
All inputs  
-
Photocoupler insulation  
*3  
Indication of input motion  
Turning on the input will light the LED indicator lamp  
*1. If inputs X000 to X007 are assigned to the zero-phase signal of the DSZR instruction or the interrupt  
input of the DVIT instruction, the input response time will be as shown in the following table.  
Input  
Input response time  
X000 to X005  
X006, X007  
5µs  
50µs  
*2. PNP open collector transistors are supported only by the FX3UC-ꢁꢁMT/DSS.  
*3. The FX3UC-32MT-LT(-2) uses the display module for monitoring.  
1. Internal input circuit  
·Sink input type(FX3UC-ꢀꢀ MT/D, FX3UC-32MT-LT(-2))  
Main unit  
Fuse  
24V DC  
Class-D grounding  
COM  
X0  
X1  
Input impedance  
B - 20  
 
2 Specifications  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
2.4 Input Specifications  
A
B
·Sink input type(FX3UC-ꢁꢁ MT/DSS)  
Main unit  
·Source input type (FX3UC-ꢁꢁ MT/DSS)  
Main unit  
Fuse  
Fuse  
24V DC  
24V DC  
*
*
COM0  
X0  
COM0  
Apx.  
X0  
X1  
X1  
Input impedance  
Input impedance  
* Class-D grounding  
* Class-D grounding  
B - 21  
2 Specifications  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
2.4 Input Specifications  
2.4.3 FX3G Series main unit (24V DC Input)  
This section describes the input specifications of the FX3G Series main unit. Note that the simultaneous  
turning-on rate is restricted for the input extension units and the main unit. For details on this restriction, refer  
to the following manual:  
Refer to the FX3G Hardware Edition.  
Item  
24V DC input specifications  
24V DC ±10%  
3.3kΩ  
Input signal voltage  
All inputs  
X000 to X007  
X010 or more  
X000 to X007  
X010 or more  
X000 to X007  
X010 or more  
Input impedance  
4.3kΩ  
7mA/24V DC  
5mA/24V DC  
4.5 mA or more  
3.5mA or more  
Input signal current  
Input ON  
current  
Input sensitivity  
current  
Input OFF  
current  
All inputs  
All inputs  
All inputs  
1.5mA or less  
*1  
Input response time  
Approx. 10 ms  
No-voltage contact input  
NPN/PNP open collector transistor  
Photocoupler insulation  
Input signal type  
Circuit insulation  
All inputs  
-
Indication of input motion  
Turning on the input will light the LED indicator lamp  
*1. If inputs X000 to X007 are assigned to the zero-phase signal of the DSZR instruction the input  
response time will be as shown in the following table.  
Input  
Input response time  
X000, X001, X003, X004  
X002, X005 to X007  
10µs  
50µs  
1. Internal input circuit  
Sink input type  
Main unit  
Source input type  
Main unit  
Fuse  
Fuse  
Class-D  
grounding  
Class-D  
grounding  
Input  
impedance  
Input  
impedance  
B - 22  
 
2 Specifications  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
2.5 Output Specifications  
A
B
2.5  
Output Specifications  
2.5.1 FX3U Series main unit (Transistor Output)  
This section describes the transistor output specifications of the FX3U Series main unit. Please note that the  
simultaneous turning-on rate is restricted for the output extension units and the main unit. For details on the  
restriction, refer to the following manual.  
For MELSERVO Series amplifiers, use a sink input/sink output type PLC.  
Refer to the FX3U Hardware Edition.  
Item  
Transistor output specifications  
5 to 30V DC  
External voltage  
All outputs  
Apx.  
The total load current of resistance loads per common termi-  
nal should be the following value or less.  
Resistance load All outputs  
-
-
-
1 point output common:0.5A  
4 points output common:0.8A  
8 points output common:1.6A  
Maximum load  
Inductive load  
All outputs  
All outputs  
All outputs  
Y000 to Y002  
Y003 and more  
Y000 to Y002  
Y003 and more  
All outputs  
-
12W/24V DC  
Open-circuit leakage current  
ON voltage  
0.1 mA or less at 30V DC  
1.5V or less  
5 µs or less at 10 mA or more (5 to 24V DC)  
0.2 ms or less at 200 mA (at 24V DC)  
5 µs or less at 10 mA or more (5 to 24V DC)  
0.2 ms or less at 200 mA (at 24V DC)  
Photocoupler insulation  
OFFON  
Response time  
ONOFF  
Circuit insulation  
Indication of output motion  
LED is lit when the photocoupler is driven.  
Pulse output terminals Y000, Y001, and Y002 are high-speed response output terminals.  
To use the positioning instruction, adjust the load current of the NPN open collector to 10 to 100 mA (5 to 24V DC)  
.
Item  
Description  
5 to 24V DC  
Operation voltage range  
Operation current range  
Output frequency  
10mA to 100mA  
100 kHz or less  
1. Sink internal output circuit  
FX3U Series  
main unit  
Pulse train signal  
Y000  
COM1  
Y004  
Direction signal  
COM2  
Servo amplifier  
(Drive unit)  
Grounding*1  
5 to 24V DC  
*1. To ground the unit, refer to the servo amplifier (drive unit) manual. If the grounding method is not  
specified, carry out class-D grounding.  
B - 23  
   
2 Specifications  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
2.5 Output Specifications  
2. Source internal output circuit  
FX3U Series  
main unit  
Pulse train signal  
Y000  
+V0  
Direction signal  
Y004  
+V1  
Servo amplifier*2  
(Drive unit)  
Grounding*1  
5 to 24V DC  
*1. To ground the unit, refer to the servo amplifier (drive unit) manual. If the grounding method is not  
specified, carry out class-D grounding.  
*2. For MELSERVO Series amplifiers, use a sink output type FX3U Series main unit.  
B - 24  
2 Specifications  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
2.5 Output Specifications  
A
B
2.5.2 FX3UC Series main unit (Transistor Output)  
This section describes the transistor output specifications of the FX3UC Series main unit. Note that the  
simultaneous turning-on rate is restricted for the output extension units and the main unit. For details on this  
restriction, refer to the following manual:  
For MELSERVO Series amplifiers, use a sink input/sink output type PLC.  
Refer to the FX3UC Hardware Edition.  
Item  
Transistor output specifications  
External voltage  
All outputs  
5 to 30V DC  
Y000 to Y003 0.3 A/point  
Y004 or more 0.1A/1point  
The total load current of the common  
items (16 points) should be 1.6 A or  
less.  
Resistance load  
Inductive load  
Apx.  
Maximum  
load  
7.2W/1point  
Y000 to Y003  
The total load of the common items  
(16 points) should be 38.4 W or less at  
24V DC.  
(24V DC)  
2.4W/1point  
Y004 or more  
(24V DC)  
Open-circuit leakage current  
ON voltage  
All outputs  
All outputs  
0.1 mA or less at 30V DC  
1.5V or less  
Y000 to Y003 5 µs or less at 10 mA or more (5 to 24V DC)  
Y004 to Y017 0.2 ms or less at 100 mA (at 24V DC)  
Y000 to Y002 5 µs or less at 10 mA or more (5 to 24V DC)  
FX3UC-32MT-LT  
FX3UC-32MT-LT-2  
OFFON  
ONOFF  
Response  
time  
FX3UC-ꢁꢁMT/D  
FX3UC-ꢁꢁMT/  
DSS  
OFFON  
ONOFF  
Y003 or more 0.2 ms or less at 100 mA (at 24V DC)  
Circuit insulation  
All outputs  
-
Photocoupler insulation  
*1  
Indication of output motion  
LED is lit when the photocoupler is driven.  
*1. The FX3UC-32MT-LT(-2) uses the display module for monitoring.  
Pulse output terminals Y000, Y001, and Y002 are high-speed response output terminals.  
To use the positioning instruction, adjust the load current of the NPN open collector to 10 to 100 mA (5 to 24V DC)  
.
Item  
Description  
5 to 24V DC  
Operation voltage range  
Operation current range  
Output frequency  
10mA to 100mA  
100 kHz or less  
1. Sink internal output circuit  
5 to 24V DC  
FX3UC-ꢀꢀ MT/D  
FX3UC-32MT-LT(-2)  
Main unit  
Servo amplifier  
(Drive unit)  
Pulse train signal  
Y0  
Direction signal  
Y4  
Grounding*2  
COM1  
*2. To ground the unit, refer to the servo amplifier (drive unit) manual. If the grounding method is not  
specified, carry out class-D grounding.  
B - 25  
 
2 Specifications  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
2.5 Output Specifications  
2. Source internal output circuit  
5 to 24V DC  
Servo amplifier*2  
(Drive unit)  
FX3UC-ꢁꢁ MT/DSS  
Main unit  
Pulse train signal  
Y0  
Direction signal  
Y4  
Grounding*1  
+V0  
*1. To ground the unit, refer to the servo amplifier (drive unit) manual. If the grounding method is not  
specified, carry out class-D grounding.  
*2. For MELSERVO Series amplifiers, use a sink output type FX3UC Series main unit .  
B - 26  
2 Specifications  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
2.5 Output Specifications  
A
B
2.5.3 FX3G Series main unit (Transistor Output)  
This section describes the transistor output specifications of the FX3G Series main unit. Note that the  
simultaneous turning-on rate is restricted for the output extension units and the main unit. For details on this  
restriction, refer to the following manual:  
Refer to the FX3G Hardware Edition.  
Item  
Transistor output specifications  
External voltage  
All outputs  
All outputs  
5 to 30V DC  
The total load current of resistance loads per common  
terminal should be the following value or less.  
Resistance load  
Inductive load  
-
-
1 point output common:0.5A  
4 points output common:0.8A  
Apx.  
Maximum  
load  
The total of inductive loads per common terminal  
should be the following value or less.  
All outputs  
-
-
1 point output common:12W/24V DC  
4 points output common:19.2W/24V DC  
Open-circuit leakage current  
ON voltage  
All outputs  
All outputs  
Y000, Y001  
0.1 mA or less at 30V DC  
1.5V or less  
5 µs or less at 10 mA or more (5 to 24V DC)  
OFFON  
ONOFF  
OFFON  
ONOFF  
Y002 or more 0.2 ms or less at 200 mA or more (at 24V DC)  
Y000, Y001 5 µs or less at 10 mA or more (5 to 24V DC)  
14-point, 24-point  
type  
Y002 or more 0.2 ms or less at 200 mA or more (at 24V DC)  
Y000 to Y002 5 µs or less at 10 mA or more (5 to 24V DC)  
Y003 or more 0.2 ms or less at 200 mA or more (at 24V DC)  
Y000 to Y002 5 µs or less at 10 mA or more (5 to 24V DC)  
Y003 or more 0.2 ms or less at 200 mA or more (at 24V DC)  
Response  
time  
40-point, 60-point  
type  
Circuit insulation  
All outputs  
-
Photocoupler insulation  
Indication of output motion  
LED is lit when the photocoupler is driven.  
Pulse output terminals Y000, Y001, and Y002*1 are high-speed response output terminals.  
To use the positioning instruction, adjust the load current of the NPN open collector to 10 to 100 mA (5 to 24V DC).  
*1. Y002 works as a high-speed response pulse output terminal only in 40-point and 60-point type main  
units.  
Item  
Description  
5 to 24V DC  
Operation voltage range  
Operation current range  
Output frequency  
10mA to 100mA  
100 kHz or less  
B - 27  
 
2 Specifications  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
2.5 Output Specifications  
1. Sink internal output circuit  
FX3G Series  
main unit  
Pulse train signal  
Y000  
COM0  
Direction signal  
Y004  
COM3  
Servo amplifier  
(Drive unit)  
Grounding*1  
5 to 24V DC  
2. Source internal output circuit  
FX3G Series  
main unit  
Pulse train signal  
Direction signal  
Y000  
+V0  
Y004  
+V3  
Servo amplifier*2  
(Drive unit)  
Grounding*1  
5 to 24V DC  
*1. To ground the unit, refer to the servo amplifier (drive unit) manual. If the grounding method is not  
specified, carry out class-D grounding.  
*2. For MELSERVO Series amplifiers, use a sink output type FX3G Series main unit.  
B - 28  
2 Specifications  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
2.5 Output Specifications  
A
B
2.5.4 High-Speed Output Special Adapter [FX3U-2HSY-ADP]  
This section describes the output specifications of the high-speed output special adapter (FX3U-2HSY-ADP).  
Item  
Output system  
High-speed output special adapter (FX3U-2HSY-ADP)  
Differential line driver system (equivalent to AM26C31)  
Load current  
25 mA or less  
200KHz  
Maximum output frequency  
Photocoupler and transformer insulate PLC from external lines of its outputs, and  
transformer insulates each SG.  
Insulation  
Cable length  
10 m, maximum  
Apx.  
1. Internal output circuit  
To connect to photocoupler:  
Servo amplifier  
(Drive unit)  
High-speed output  
special adapter  
FX3U-2HSY-ADP  
Pulse train,  
forward rotation pulse train  
5V  
Equivalent to  
AM26C31  
Y0/2+  
Y0/2-  
Direction signal, reverse  
rotation pulse train  
5V  
Y4/6+  
Y4/6-  
SGA  
Grounding*1  
SGA*2  
Servo amplifier  
(Drive unit)  
To connect to differential line receiver:  
Pulse train,  
forward rotation pulse train  
5V  
5V  
Equivalent to  
AM26C31  
Y1/3+  
Y1/3-  
Direction signal, reverse  
rotation pulse train  
Y5/7+  
Y5/7-  
SGB  
Grounding*1  
SGB*2  
*1. To ground the unit, refer to the servo amplifier (drive unit) manual. If the grounding method is not  
specified, carry out class-D grounding.  
*2. The line between the SGA and the SGB is insulated.  
B - 29  
 
2 Specifications  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
2.6 List of Functions  
2.6  
List of Functions  
The instructions needed for the FX3G/FX3U/FX3UC PLC built-in positioning functions are shown in the following  
table:  
Positioning instruction  
Mechanical zero return  
Operation  
Description  
Refer to  
If the DSZR/ZRN instruction turns ON,  
mechanical zero return will be started at  
the specified zero return speed. If the dog  
sensor is turned on, the speed will be  
reduced to the creep speed. If the zero-  
phase signal is input, the operation will be  
stopped, and the zero return will be  
completed.  
zero return  
with DOG  
instruction search  
function  
DSZR  
Creep  
speed  
Zero return  
speed  
Chapter  
6.  
Zero point: ON DOG:ON  
Start  
ZRN  
instruction  
(Dog: OFF when ZRN  
instruction is used)  
zero return  
(If the ZRN instruction is used, the dog  
sensor will be turned off to stop the  
operation.)  
Absolute position detection system  
Absolute  
value detec-  
tion system  
instruction (Reading of  
current ABS  
If the ABS instruction turns ON, the  
current motor address will be read out  
from the servo amplifier.  
ABS  
Chapter  
7.  
Reads out the  
current value.  
value)  
1-speed positioning  
DRVI  
Relative  
If the DRVI/DRVA instruction turns ON,  
the operation will be started at the  
operation speed. When the workpiece  
reaches the target position, the operation  
will be stopped.  
Operation speed  
Transfer distance  
instruction positioning  
Chapter  
8.  
DRVA  
instruction positioning  
Absolute  
Start  
Target position  
1-speed positioning with interruption  
Operation speed  
Transfer  
If the DVIT instruction turns ON, the  
operation will be started at the operation  
speed. If the interrupt input turns ON, the  
workpiece will go the specified transfer  
distance, before decelerating to stop.  
DVIT  
instruction  
*1  
Interruption  
positioning  
Chapter  
9.  
distance  
Start  
Interrupt  
input: ON  
Variable speed operation  
Operation without  
Acceleration/Deceleration  
Operation speed  
If the PLSV instruction turns ON,  
operation will be started at the specified  
speed. With an operation speed change,  
the speed changes to the specified speed,  
and operation continues.  
Variable  
positioning  
(Variable  
Speed Pulse  
Start Speed Speed Instruction:  
change change OFF  
PLSV  
instruction  
Chapter  
10.  
Operation with  
Acceleration/Deceleration*2  
Operation speed  
At PLSV instruction OFF, the pulse output  
stops.  
Output)  
With acceleration/deceleration operation,  
the PLC accelerates and decelerates.  
Speed  
change  
Start Speed  
change  
Instruction:  
OFF  
Others  
No. Position Speed Instruction  
Positioning  
1
2
3
4
Preliminarily set the positioning points by  
parameters. If the TBL instruction turns  
ON, the workpiece will be transferred to  
the specified point.  
1000 2000  
20000 5000  
DRVI  
DRVA  
DVIT  
TBL  
using batch  
Chapter  
11.  
instruction  
setting  
*2  
50  
1000  
method  
800  
10000 DRVA  
B - 30  
 
2 Specifications  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
2.6 List of Functions  
A
B
*1. Only available for FX3U and FX3UC PLCs.  
*2. Only available for FX3U/FX3UC PLC Ver. 2.20 or later and FX3G PLC.  
Apx.  
B - 31  
3 Connection of Input/Output Lines and Tightening  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
3. Connection of Input/Output Lines and Tightening Torques  
This chapter describes how to connect the input/output lines and the terminal tightening torques.  
WIRING PRECAUTIONS  
Make sure to cut off all phases of the power supply externally before attempting installation or wiring work.  
Failure to do so may cause electric shock or damage to the product.  
Make sure to attach the terminal cover, offered as an accessory, before turning on the power or initiating operation  
after installation or wiring work.  
Failure to do so may cause electric shock.  
WIRING PRECAUTIONS  
Connect the AC power supply to the dedicated terminals specified in the manual of the PLC main unit.  
If an AC power supply is connected to a DC input/output terminal or DC power supply terminal, the PLC will burn  
out.  
Connect the DC power supply to the dedicated terminals specified in the manual of the PLC main unit.  
If an AC power supply is connected to a DC input/output terminal or DC power supply terminal, the PLC will burn  
out.  
Do not wire vacant terminals externally.  
Doing so may damage the product.  
Perform class D grounding (grounding resistance: 100or less) to the grounding terminal on the FX3U/FX3G PLC  
2
main unit with a wire 2 mm or thicker.  
Do not use common grounding with heavy electrical systems (refer to the manual of the PLC main unit).  
Perform class D grounding (grounding resistance: 100or less) to the grounding terminal on the main unit.  
Do not use common grounding with heavy electrical systems.  
When drilling screw holes or wiring, make sure cutting or wire debris does not enter the ventilation slits.  
Failure to do so may cause fire, equipment failures or malfunctions.  
Install module so that excessive force will not be applied to I/O connectors.  
Failure to do so may result in wire damage/breakage or PLC failure.  
Connect input/output cables securely to their designated connectors.  
Loose connections may cause malfunctions.  
Make sure to properly wire the FX3U/FX3G Series main unit and FX0N/FX2N Series extension equipment in  
accordance with the following precautions.  
Failure to do so may cause electric shock, a short-circuit, wire breakage, or damage to the product.  
-
-
The disposal size of the cable end should follow the dimensions described in this manual.  
Tightening torque should be between 0.5 and 0.8 N m.  
Make sure to properly wire to the European terminal board in accordance with the following precautions.  
Failure to do so may cause electric shock, a short-circuit, wire breakage, or damage to the product.  
-
-
-
-
-
-
The disposal size of the cable end should follow the dimensions described in this manual.  
Tightening torque should be between 0.22 and 0.25 N m.  
Twist the end of strand wire and make sure that there are no loose wires.  
Do not solder-plate the electric wire ends.  
Do not connect more than the specified number of wires or electric wires of unspecified size.  
Affix the electric wires so that neither the terminal block nor the connected parts are directly stressed.  
Make sure to properly wire to the FX Series terminal blocks in accordance with the following precautions.  
Failure to do so may cause electric shock, a short-circuit, wire breakage, or damage to the product.  
-
-
The disposal size of the cable end should follow the dimensions described in this manual.  
Tightening torque should be between 0.5 and 0.8 N m.  
B - 32  
 
3 Connection of Input/Output Lines and Tightening  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
3.1 Terminal Board (M3, M3.5)  
A
B
3.1  
Terminal Board (M3, M3.5)  
A terminal board is used for the FX3U, FX3G Series main unit, FX2N Series input/output extension unit  
(excluding some types), and FX0N Series input/output extension block.  
3.1.1 Terminal Screw Size  
The terminal screw size of each product is shown in the following table. For details on the crimp-style  
terminals, refer to Subsection 3.1.2.  
Product  
Terminal screw  
Tightening torque  
FX3U, FX3G Series main unit, FX2N Series input/output powered  
extension unit, FX2N/FX0N Series input/output extension block  
M3  
0.5 to 0.8Nm  
Apx.  
FX Series terminal block  
M3.5  
3.1.2 Termination  
The size of each crimp-style terminal depends on the size of the terminal screw and the wiring method.  
Refer to the following description to select a crimp-style terminal of optimum size.  
1. FX3U, FX3G Series main unit,  
FX2N Series input/output powered extension unit, and FX0N Series input/output extension  
block  
• When one wire is connected to one terminal  
Terminal Crimp  
screw  
terminal  
3.2(0.13")  
3.2(0.13")  
6.2mm(0.24")  
or less  
6.2mm(0.24")  
or less  
Terminal  
• When two wires are connected to one terminal  
3.2(0.13")  
Terminal Crimp  
screw terminal  
6.2mm(0.24")  
or less  
6.3mm(0.25")  
or more  
3.2(0.13")  
6.2mm(0.24")  
Terminal  
or less  
6.3mm(0.25")  
or more  
2. FX Series terminal block  
• When one wire is connected to one terminal  
Terminal Crimp  
screw terminal  
3.7(0.15")  
6.8mm(0.27")  
or less  
3.7(0.15")  
6.8mm(0.27")  
or less  
Terminal  
B - 33  
     
3 Connection of Input/Output Lines and Tightening  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
3.2 European Terminal Board  
• When two wires are connected to one terminal  
3.7(0.15")  
Terminal Crimp  
6.8mm(0.27")  
screw  
terminal  
or less  
6.0mm(0.24")  
or more  
3.7(0.15")  
6.8mm(0.27")  
Terminal  
or less  
6.0mm(0.24")  
or more  
3.2  
European Terminal Board  
The European terminal board is used for the high-speed output special adapter and the FX2NC Series input/  
output extension block.  
3.2.1 Cable  
Applicable cables and tightening torques  
Wire size (stranded/  
single wire)  
Tightening  
torque  
Termination  
2
2
To connect a stranded cable, peel the sheath off the cable,  
and then twist the core before connection.  
To connect a single-wire cable, just peel the sheath off the  
cable before connection.  
0.3 mm to 0.5 mm  
Single-wire  
2-wires  
(AWG22 to 20)  
2
0.3 mm (AWG22)  
2
2
0.22 to  
0.25 Nm  
Rod terminal with insulation sleeve  
(recommended terminal)  
AI 0.5-8WH: Manufactured by Phoenix Contact  
Caulking tool:  
CRIMPFOX ZA 3: Manufactured by Phoenix Contact  
(or CRIMPFOX UD 6: Manufactured by Phoenix Contact)  
0.3 mm to 0.5 mm  
Rod  
terminal  
with  
insulation  
sleeve  
(AWG22-20)  
(Refer to the external  
view of the rod terminal  
shown in the following  
figure.)  
3.2.2 Termination of Cable End  
Directly terminate the end of each stranded cable or single-wire cable without a tool, or use the rod terminal  
with insulation sleeve for termination.  
• Directly terminate the end of the stranded/single-wire cable:  
Stranded wire/solid wire  
- Terminate the end of the stranded cable so that "barbed wires"  
cannot protrude.  
- Do not solder-plate the end of the cable.  
9mm  
(0.36")  
• Terminate the cable end using a rod terminal with insulation sleeve:  
If the cable sheath is too thick, it may be difficult to insert the cable  
into the insulation sleeve. For this reason, select an appropriate cable  
while referring to the external view.  
Bar terminal with insulating sleeve  
Insulating sleeve Contact portion  
(Crimp area)  
Manufacturer  
Phoenix Contact  
Model  
Caulking tool  
8mm  
(0.32")  
2.6mm  
(0.11")  
CRIMPFOX ZA 3  
(or CRIMPFOX UD 6)  
AI 0.5-8WH  
14mm(0.56")  
B - 34  
     
3 Connection of Input/Output Lines and Tightening  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
3.3 Connector  
A
B
3.2.3 Tool  
• To tighten the terminals, use a purchased small-sized screwdriver whose tip is straight and is not widened  
as shown in the right figure.  
Note:  
If the diameter of screwdriver grip is too small, tightening torque will not  
be able to be achieved. Use the following recommended screwdriver or  
an appropriate replacement (grip diameter: approximately 25mm).  
With  
straight tip  
Manufacturer  
Phoenix Contact  
Model  
0.4mm  
(0.02")  
2.5mm  
(0.1")  
SZS 0.4×2.5  
Apx.  
3.3  
Connector  
Connectors conforming to the requirements of the MIL C-83503 are used for the FX3UC Series main unit  
along with some types of FX2NC Series input/output extension blocks.  
3.3.1 Cable Connection To Input/Output Connector  
Prepare the input/output cables while referring to the next Subsection.  
Example : FX3UC-32MT/D Main unit  
Input: X Output: Y  
Input  
X0  
Output  
Y0  
X10  
X11  
X12  
X13  
X14  
X15  
X16  
X17  
Y10  
Y11  
Y12  
Y13  
Y14  
Y15  
Y16  
Y17  
X1  
X2  
X3  
X4  
X5  
X6  
X7  
Y1  
Y2  
Y3  
Y4  
Y5  
Y6  
Y7  
COM COM  
COM1 COM1  
*1  
*1  
*1  
*1  
*1: "  
" means that the terminal is not used.  
B - 35  
     
3 Connection of Input/Output Lines and Tightening  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
3.3 Connector  
3.3.2 Setup of Input/Output Connection Connector  
1. Applicable connector (connector purchased at store)  
Use a 20-pin (1-key) socket that conforms to the requirements of the MIL C-83503.  
Preliminarily check that the peripheral parts, such as the connector cover, will not cause any interference.  
2. Input/output cables (optional cables manufactured by our company)  
Mitsubishi Electric can provide input/output cables already equipped with a connector.  
Model  
Length  
Description  
Connector type  
Single wire (Wire color: red)  
PLC side: A 20-pin connector  
5m  
(16’ 4")  
FX-16E-500CAB-S  
General-purpose input/output cable  
1.5m  
(4’11")  
FX-16E-150CAB  
FX-16E-300CAB  
FX-16E-500CAB  
FX-16E-150CAB-R  
FX-16E-300CAB-R  
FX-16E-500CAB-R  
FX-A32E-150CAB  
FX-A32E-300CAB  
Flat cables (with tube)  
A 20-pin connector at both ends  
3m  
(9’10")  
Cable for connection of FX Series  
terminal block to input/output connector  
For details on connection to the FX  
Series terminal block, refer to the  
following manuals:  
5m  
(16’ 4")  
1.5m  
(4’11")  
FX3G Hardware Edition  
FX3U Hardware Edition  
FX3UC Hardware Edition  
Round multicore cables  
A 20-pin connector at both ends  
3m  
(9’10")  
5m  
(16’ 4")  
1.5m  
(4’11")  
Flat cables (with tube)  
PLC side: Two 20-pin connectors  
in 16-point units  
Terminal block side: A dedicated  
connector  
One common terminal covers 32  
input/output terminals  
Cable for connection of A Series  
A6TBXY36 connector/terminal board  
conversion unit to input/output  
connector type  
3m  
(9’10")  
5m  
(16’ 4")  
FX-A32E-500CAB  
3. Input/output cable connectors prepared by purchaser (optional connectors manufactured  
by Mitsubishi Electric)  
The purchaser should prepare the cables and press-fitting tools.  
Input/output connector model and number  
of connectors included in one set  
Applicable cable  
(recommended cable: UL-1061) and tool  
Description of parts  
Crimping tool  
Our model  
(Manufactured by Daiichi  
Denshi Kogyo Co., Ltd.)  
Cable size  
(Manufactured by Daiichi  
Denshi Kogyo Co., Ltd.)  
2
FX2C-I/O-CON,for flat Set of  
Crimp-style connector  
357J-4674D main unit  
357J-4664N attachment  
AWG28(0.1 mm )  
1.27 pitch, 20 cores  
cable  
10 parts FRC2-A020-30S  
Housing HU-200S2-001  
Crimp-style contact HU-  
411S  
FX2C-I/O-CON-S, for  
non-stranded cable  
2
5 sets  
5 sets  
357J-5538  
AWG22(0.3mm )  
FX2C-I/O-CON-SA,  
for non-stranded  
cable  
Housing HU-200S2-001  
Crimp-style contact HU-  
411SA  
2
357J-13963  
AWG20(0.5mm )  
B - 36  
 
3 Connection of Input/Output Lines and Tightening  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
3.3 Connector  
A
B
4. Connector already confirmed as applicable (sold at store)  
Connectors manufactured by Daiichi Denshi Kogyo Co., Ltd. (shown in 3) and connectors manufactured by  
Matsushita Electric Works, Ltd. (shown in following table)  
Applicable cable  
(recommended cable: UL-1061)  
Connector model  
Crimping tool  
Housing  
Contact  
AXW1204A  
AXW7221  
2
AWG22(0.3mm )  
AXY52000  
2
AWG24(0.2mm )  
Semi-cover AXW62001A  
Apx.  
B - 37  
4 Before Programming  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
4.1 List of Related Devices  
4. Before Programming  
This chapter describes several items that should be known before programming. They are:  
• Operation of related devices, such as output pulse frequency, operation command flag, current value, and  
operation monitor flag.  
• Items to be set on the PLC side  
• Items to be set on the servo amplifier (drive unit) side  
• Items to be observed in programming  
4.1  
List of Related Devices  
For details on related devices, refer to Section 4.2 to Section 4.4.  
4.1.1 Special Auxiliary Relays  
The following table shows the related special auxiliary relays. Note that Y000, Y001, Y002, and Y003 are  
devices that determine the pulse output destinations.  
For details on the PLSY (FNC 57), PWM (FNC 58), and PLSR (FNC 59) instructions, refer to the  
programming manual.  
Device number  
Corresponding  
Function  
Attribute  
Refer to  
*6  
*1  
instructions  
Y000  
Y001  
Y002  
Y003  
PLSY,PLSR,DSZR,  
DVIT,ZRN,PLSV,  
DRVI,DRVA  
"Instruction execution complete"  
flag  
Subsection  
4.4.2  
M8029  
Read only  
and so on.  
PLSY,PLSR,DSZR,  
Read only DVIT,ZRN,PLSV,  
DRVI,DRVA  
"Instruction execution abnormal  
end" flag  
Subsection  
4.4.2  
M8329  
Acceleration/deceleration  
Subsection  
4.3.9  
*2  
Drivable  
Drivable  
PLSV  
M8338  
*3  
Operation  
Interrupt input specification function  
Subsection  
4.3.7  
*4  
DVIT  
M8336  
*3  
enable  
PLSY,PLSR,DSZR,  
Read only DVIT,ZRN,PLSV,  
DRVI,DRVA  
"Pulse output monitor" flag  
(BUSY/READY)  
Subsection  
4.4.3  
M8340 M8350 M8360 M8370  
CLEAR signal output function  
Subsection  
4.3.4  
M8341 M8351 M8361 M8371  
M8342 M8352 M8362 M8372  
Drivable  
Drivable  
Drivable  
Drivable  
Drivable  
Drivable  
DSZR,ZRN  
DSZR  
*3  
enable  
Subsection  
4.3.3  
*3  
Zero return direction specification  
Subsection  
4.3.1  
M8343 M8353 M8363 M8373 Forward limit  
M8344 M8354 M8364 M8374 Reverse limit  
PLSY,PLSR,DSZR,  
DVIT,ZRN,PLSV,  
DRVI,DRVA  
Subsection  
4.3.1  
Subsection  
4.3.5  
*3  
M8345 M8355 M8365 M8375  
M8346 M8356 M8366 M8376  
DSZR  
DSZR  
DOG signal logic reverse  
Subsection  
4.3.6  
*3  
Zero point signal logic reverse  
*1.  
Devices related to Y003 (pulse output destination) are only valid if two FX3U-2HSY-ADP adapters are connected to the  
FX3U PLC.  
*2.  
*3.  
*4.  
*5.  
*6.  
*7.  
Only available for FX3U/FX3UC PLC Ver. 2.20 or later and FX3G PLC.  
Cleared when PLC switches from RUN to STOP.  
Only available for FX3U/FX3UC PLC Ver. 1.30 or later.  
For the user interrupt input command, the logical NOT function will not be activated.  
Y002 (pulse output destination) cannot be specified when the 14-point or 24-point type FX3G PLC is connected.  
Only available for FX3U and FX3UC PLC Ver.2.20 or later.  
B - 38  
     
4 Before Programming  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
4.1 List of Related Devices  
A
B
Device number  
Function  
Corresponding  
instructions  
Attribute  
Refer to  
*6  
*1  
Y000  
Y001  
Y002  
Y003  
Subsection  
4.3.8  
*3,*5  
M8347 M8357 M8367 M8377  
Drivable  
DVIT  
Interrupt signal logic reverse  
PLSY,PWM,PLSR,  
Read only DSZR,DVIT,ZRN,  
PLSV,DRVI,DRVA  
Subsection  
4.4.4  
M8348 M8358 M8368 M8378 Positioning instruction activation  
PLSY,PLSR,DSZR,  
DVIT,ZRN,PLSV,  
DRVI,DRVA  
Subsection  
4.3.2  
*3  
M8349 M8359 M8369 M8379  
Drivable  
Pulse output stop command  
Subsection  
4.3.7  
*3  
*7  
*7  
*7  
*7  
Drivable  
Drivable  
DVIT  
M8460 M8461 M8462 M8463  
User interrupt input command  
Apx.  
CLEAR signal device specification  
Subsection  
4.3.4  
*2  
*2  
*2  
*2  
DSZR,ZRN  
M8464 M8465 M8466 M8467  
*3  
function enable  
*1.  
Devices related to Y003 (pulse output destination) are only valid if two FX3U-2HSY-ADP adapters are connected to the  
FX3U PLC.  
*2.  
*3.  
*4.  
*5.  
*6.  
*7.  
Only available for FX3U/FX3UC PLC Ver. 2.20 or later and FX3G PLC.  
Cleared when PLC switches from RUN to STOP.  
Only available for FX3U/FX3UC PLC Ver. 1.30 or later.  
For the user interrupt input command, the logical NOT function will not be activated.  
Y002 (pulse output destination) cannot be specified when the 14-point or 24-point type FX3G PLC is connected.  
Only available for FX3U and FX3UC PLC Ver.2.20 or later.  
B - 39  
4 Before Programming  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
4.1 List of Related Devices  
4.1.2 Special Data Registers  
The following table shows the related special data registers. Note that Y000, Y001, Y002, and Y003 are  
devices that determine the pulse output destinations.  
Device number  
Data  
length value  
Initial Corresponding  
Function  
Refer to  
Y002*5  
Y003*1  
instructions  
Y000  
Y001  
interruptinput  
specification  
Subsection  
4.3.7  
D8336*2  
16-bit  
32-bit  
-
DVIT  
Low-  
order  
Low-  
Low-  
order  
Low-  
order  
D8340  
D8341  
D8350  
D8351  
D8360  
D8361  
D8370  
D8371  
Current value  
register  
[PLS]  
DSZR,DVIT,  
ZRN,PLSV,  
DRVI,DRVA  
order  
Subsection  
4.4.1  
0
0
High-  
order  
High-  
order  
High-  
order  
High-  
order  
DSZR,DVIT,  
ZRN,PLSV,  
DRVI,DRVA  
Bias speed  
[Hz]  
Subsection  
4.2.6  
D8342  
D8352  
D8362  
D8372  
16-bit  
Low-  
order  
Low-  
order  
Low-  
order  
Low-  
order  
D8343  
D8344  
D8353  
D8354  
D8363  
D8364  
D8373  
D8374  
Maximum  
speed  
[Hz]  
DSZR,DVIT,  
ZRN,PLSV,  
DRVI,DRVA  
Subsection  
4.2.5  
32-bit 100,000  
High-  
order  
High-  
order  
High-  
order  
High-  
order  
Creep speed  
[Hz]  
Subsection  
4.2.4  
D8345  
D8355  
D8365  
D8375  
16-bit  
32-bit  
1000  
DSZR  
Low-  
order  
Low-  
order  
Low-  
order  
Low-  
order  
D8346  
D8347  
D8356  
D8357  
D8366  
D8367  
D8376  
D8377  
Zero return  
speed  
[Hz]  
Subsection  
4.2.3  
50,000  
DSZR  
High-  
order  
High-  
order  
High-  
order  
High-  
order  
DSZR,DVIT,  
ZRN,PLSV*3,  
DRVI,DRVA  
Acceleration  
time  
[ms]  
Subsection  
4.2.7  
D8348  
D8358  
D8368  
D8378  
16-bit  
16-bit  
100  
100  
-
DSZR,DVIT,  
ZRN,PLSV*3,  
DRVI,DRVA  
Deceleration  
time  
[ms]  
Subsection  
4.2.8  
D8349  
D8359  
D8369  
D8379  
CLEAR  
signal device 16-bit  
specification  
Subsection  
4.3.4  
D8464*4  
D8465*4  
D8466*4  
D8467*4  
DSZR,ZRN  
*1.  
*2.  
*3.  
Devices related to Y003 (pulse output destination) are only valid if two FX3U-2HSY-ADP adapters are connected to the  
FX3U PLC.  
Only available for FX3U/FX3UC PLC Ver. 1.30 or later.  
However, the user interrupt input command can be specified only if the FX3U/FX3UC PLC Ver.2.20 or later is used.  
This instruction is valid only during acceleration/deceleration supported in the FX3U/FX3UC PLC Ver. 2.20 or later and  
FX3G PLC.  
*4.  
*5.  
Only available for FX3U/FX3UC PLC Ver. 2.20 or later and FX3G PLC.  
Y002 (pulse output destination) cannot be specified when the 14-point or 24-point type FX3G PLC is connected.  
B - 40  
 
4 Before Programming  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
4.2 Setting of Various Items Regarding Speeds  
A
B
4.2  
Setting of Various Items Regarding Speeds  
Specify the output pulse frequency using the operand of each instruction or the related device to determine  
the output pulse frequency, zero return speed, or creep speed.  
4.2.1 Setting of Various Items Regarding Instructions and Speeds  
1. Interrupt Positioning (DVIT) instruction, drive to increment (DRVI) instruction, and drive to  
absolute (DRVA) instruction  
For these instructions, it is necessary to specify the maximum speed, bias speed, acceleration time, and  
deceleration time using the related devices in addition to the output pulse frequency specified by the operand  
of the instruction.  
Apx.  
For operation of DVIT instruction, refer to Chapter 9.  
For operation of DRVI or DRVA instruction, refer to Chapter 8.  
For details on each setting item, refer to Subsection 4.2.2 , and Subsection 4.2.5 to Subsection 4.2.8  
Maximum speed  
Initial value: 100,000 Hz  
Output pulse frequency  
S2  
Actual  
deceleration time  
Actual  
acceleration time  
Number of S1  
output pulses  
Bias speed  
Initial value: 0 Hz  
Bias speed  
Acceleration  
time  
Deceleration  
time  
Current  
position  
Target  
position  
Initial value: 100 ms  
Initial value: 100 ms  
2. Variable speed Pulse Output (PLSV) instruction  
For the variable speed pulse output (PLSV) instruction, it is necessary to specify the maximum speed, bias  
speed, acceleration time, and deceleration time using the related devices in addition to the output pulse  
frequency specified by the operand of the instruction. However, note that the acceleration time and the  
deceleration time are only valid during acceleration/deceleration (M8338 = ON).  
For operation of PLSV instruction, refer to Chapter 10.  
For details on each setting item, refer to Subsection 4.2.2 , and Subsection 4.2.5 to Subsection  
4.2.8.  
1) When acceleration/deceleration is being performed (M8338 = ON)  
Maximum speed  
Initial value: 100,000 Hz  
Actual  
deceleration time  
Actual  
acceleration time  
Output pulse  
frequency  
S
Bias speed  
Initial value: 0 Hz  
Bias speed  
Acceleration  
time  
Deceleration  
time  
Current  
position  
Initial value: 100 ms  
Initial value: 100 ms  
2) When acceleration/deceleration is not performed (M8338 = OFF)  
Maximum speed  
Initial value: 100,000 Hz  
Output pulse  
If the frequency value is  
less than the bias speed  
value, the frequency will  
not be output.  
frequency  
S
Bias speed  
Initial value: 0 Hz  
Bias speed  
B - 41  
   
4 Before Programming  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
4.2 Setting of Various Items Regarding Speeds  
3. Zero return instruction with DOG search function (DSZR)  
For this instruction, it is necessary to specify the maximum speed, bias speed, acceleration time, deceleration  
time, zero return speed, and creep speed using the related devices.  
For operation of DSZR instruction, refer to Section 6.2.  
For details on each setting item, refer to Subsection 4.2.3 to Subsection 4.2.8.  
Deceleration time  
Acceleration time  
Initial value:  
100 ms  
Initial value:  
100 ms  
Maximum speed  
Initial value:  
100,000 Hz  
Zero return speed  
Initial value: 50,000 Hz  
Current value register = "0"  
Creep speed  
Initial value:  
1,000 Hz  
Bias speed  
Initial value: 0 Hz  
Current position  
DOG  
Rear end  
Front end  
Zero-phase signal  
(X000 - X007)  
1 ms or less  
CLEAR signal  
20 ms + 1 scan time (ms)  
4. Zero return (ZRN) instruction  
For this instruction, it is necessary to specify the maximum speed, bias speed, acceleration time, and  
deceleration time using the related devices in addition to the zero return speed and the creep speed specified  
by the operand of the instruction.  
For operation of ZRN instruction, refer to Section 6.1.  
For details on each setting item, refer to Subsection 4.2.5 to Subsection 4.2.8.  
Deceleration time  
Acceleration time  
Initial value:  
100 ms  
Initial value:  
100 ms  
Maximum speed  
Initial value:  
100,000 Hz  
Zero return speed  
S
1•  
Creep speed  
S
2•  
Bias speed  
Initial value: 0 Hz  
DOG  
Current position  
Rear end  
Front end  
CLEAR signal  
1 ms or less  
20 ms + 1 scan time (ms)  
B - 42  
4 Before Programming  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
4.2 Setting of Various Items Regarding Speeds  
A
B
4.2.2 Setting of Output Pulse Frequency (DVIT, PLSV, DRVI, and DRVA Instructions)  
Set the output pulse frequency using the operand of each instruction. In this case, the setting range depends  
on the instruction (see the following table).  
However, even in the setting range of each instruction, if the set value of the output pulse frequency is more  
than the maximum speed value, the operation will be performed at the maximum speed. If the set value of  
the output pulse frequency is less than the bias speed value, the operation will be performed at the bias  
speed.  
For operation of DVIT instruction, refer to Chapter 9.  
For operation of PLSV instruction, refer to Chapter 10.  
For operation of DRVI or DRVA instruction, refer to Chapter 8.  
Setting range  
Apx.  
Instruction Operand  
Instruction format  
16-bit operation 32-bit operation  
(Hz)  
(Hz)  
DVIT  
*1  
10 to 32767  
S
2
10 to 200,000  
DVIT  
S
1
S
2
D
D
D
D
1•  
1•  
1•  
1
D
D
D
D
2•  
2•  
2•  
2
*3  
instruction  
*2  
PLSV  
instruction  
-32768 to -1,  
+1 to 32767  
-200,000 to -1,  
PLSV  
S•  
S
*1  
+1 to 200,000  
DRVI  
instruction  
*1  
10 to 32767  
10 to 32767  
S2  
10 to 200,000  
DRVI  
S
S
1
S
S
2
DRVA  
instruction  
*1  
S2  
10 to 200,000  
DRVA  
1
2
*1. If FX3U-2HSY-ADP is not used, note that the frequency value cannot be more than 100,000 Hz.  
*2. If FX3U-2HSY-ADP is not used, note that the frequency value cannot be less than -100,000 Hz.  
*3. Only available for FX3U and FX3UC PLCs.  
Caution:  
To use the main unit (transistor output), set the output pulse frequency (absolute value) to 100,000 Hz or less.  
If more than 100,000 Hz is output from the transistor output of the main unit to perform operation, it may cause PLC  
failure.  
Set the output pulse frequency so that the output pulse frequency value is less than the maximum frequency value  
of the servo amplifier (driver unit).  
B - 43  
 
4 Before Programming  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
4.2 Setting of Various Items Regarding Speeds  
4.2.3 Setting of Zero Return Speed (DSZR/ZRN Instruction)  
Use the related device or the operand of the instruction to set the zero return speed.  
The zero return speed setting range is shown in the following table.  
Be sure to set the zero return speed so that the relation with the other speeds can be "bias speed zero  
return speed maximum speed". If the set value of the zero return speed is more than the maximum speed  
value, operation will be performed at the maximum speed.  
For operation of DSZR instruction, refer to Section 6.2.  
For operation of ZRN instruction, refer to Section 6.3.  
Setting range  
Operand or  
16-bit  
operation operation  
32-bit  
Instruction  
related  
device  
Instruction format  
(Hz)  
(Hz)  
D8347,D8346  
D8357,D8356  
D8367,D8366  
D8377,D8376  
D
1
=Y000  
=Y001  
=Y002  
=Y003  
DSZR  
instru-  
ction  
*1  
D1  
10 to 200,000  
DSZR  
ZRN  
S
S
1
S
S
2
D
1
D
2
*2  
*3  
Initial value: 50000  
D1  
D1  
10 to  
10 to  
32767  
ZRN instruction  
1
2
S
3
D•  
S1  
*1  
200,000  
*1. If FX3U-2HSY-ADP is not used, note that this value cannot be more than 100,000 Hz.  
*2. Y002 (pulse output destination) cannot be specified when the 14-point or 24-point type FX3G PLC is  
connected.  
*3. Devices related to Y003 (pulse output destination) are only valid if two FX3U-2HSY-ADP adapters are  
connected to the FX3U PLC.  
Caution:  
When using the transistor outputs of the main unit, set the pulse frequency for the zero return speed to less than  
100 kHz.  
If a pulse higher than 100 kHz is output from a transistor output of the main unit to perform an operation, PLC failure  
may occur.  
Set the zero return speed so that the set value of the zero return speed is less than the maximum frequency value  
of the servo amplifier (driver unit).  
B - 44  
 
4 Before Programming  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
4.2 Setting of Various Items Regarding Speeds  
A
B
4.2.4 Setting of Creep Speed (DSZR/ZRN Instruction)  
Use the related device or the operand of the instruction to set the creep speed. The creep speed setting  
range is shown in the following table.  
Be sure to set the creep speed so that the relation with the other speeds is "bias speed creep speed ≤  
32767 Hz*1".  
For operation of DSZR instruction, refer to Section 6.2.  
For operation of ZRN instruction, refer to Section 6.3.  
Setting range  
Operand or  
16-bit  
operation operation  
(Hz) (Hz)  
32-bit  
Instruction  
related  
device  
Instruction format  
Apx.  
D8345  
D8355  
D8365  
D8375  
D
1
=Y000  
=Y001  
=Y002  
=Y003  
DSZR  
instru-  
ction  
D1  
10 to 32767  
Initial value: 1000  
DSZR  
ZRN  
S
S
1
S
S
2
D
1
D
2
*2  
*3  
D1  
D1  
ZRN instruction  
10 to 32767  
S2  
1
2
S
3
D•  
*1. If the maximum speed is set to less than 32767 Hz, note that this value (32767 Hz) will automatically  
be changed to the maximum speed.  
*2. Y002 (pulse output destination) cannot be specified when the 14-point or 24-point type FX3G PLC is  
connected.  
*3. Devices related to Y003 (pulse output destination) are only valid if two FX3U-2HSY-ADP adapters are  
connected to the FX3U PLC.  
4.2.5 Setting of Maximum Speed  
Set the maximum speed to determine the upper limit value for the output pulse frequency and the zero return  
speed.  
Use the devices shown in the following table to determine the maximum speed for each pulse output  
destination device.  
Setting range  
Pulse output  
destination device  
Maximum  
speed  
Initial value  
Transistor output of main  
unit  
High-speed output special  
adapter  
Y000  
Y001  
D8344,D8343  
D8354,D8353  
D8364,D8363  
10 to 100,000 Hz:  
If the value is set to 9 Hz or  
less, the maximum speed will less, the maximum speed will  
be automatically set to 10 Hz. be automatically set to 10 Hz.  
10 to 200,000 Hz:  
If the value is set to 9 Hz or  
100,000Hz  
*1  
Y002  
*2  
D8374,D8373  
Y003  
*1. Y002 (pulse output destination) cannot be specified when the 14-point or 24-point type FX3G PLC is  
connected.  
*2. Devices related to Y003 (pulse output destination) are only valid if two FX3U-2HSY-ADP adapters are  
connected to the FX3U PLC.  
Caution:  
To use the main unit (transistor output), set the output pulse frequency (absolute value) to 100,000 Hz or less.  
If more than 100,000 Hz is output from the transistor output of the main unit to perform operation, it may cause PLC  
failure.  
Set the output pulse frequency so that the output pulse frequency value is less than the maximum frequency value  
of the servo amplifier (driver unit).  
B - 45  
   
4 Before Programming  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
4.2 Setting of Various Items Regarding Speeds  
4.2.6 Setting of Bias Speed  
To control the stepping motor using each instruction, set the bias speed considering the resonance range of  
the stepping motor and the automatic start frequency.  
Use the devices shown in the following table to determine the bias speed for each pulse output destination  
device.  
Pulse output  
destination device  
Bias speed Initial value  
Setting range  
Y000  
Y001  
D8342  
D8352  
1/10 or less of maximum speed:  
If the value is set to more than 1/10 of the maximum speed,  
the bias speed will be automatically set to 1/10 of the  
maximum speed.  
0Hz  
*1  
D8362  
Y002  
*2  
D8372  
Y003  
*1. Y002 (pulse output destination) cannot be specified when the 14-point or 24-point type FX3G PLC is  
connected.  
*2. Devices related to Y003 (pulse output destination) are only valid if two FX3U-2HSY-ADP adapters are  
connected to the FX3U PLC.  
4.2.7 Setting of Acceleration Time  
Set the time required for acceleration from the bias speed to the maximum speed.  
If the output pulse frequency is less than the maximum speed, the actual acceleration time will be shorter than  
the set acceleration time.  
If the variable speed pulse output (PLSV) instruction is used, the set acceleration time is only valid during  
acceleration/deceleration (M8338 = ON)*3.  
Use the devices shown in the following table to determine the acceleration time for each pulse output  
destination device.  
Pulse output  
destination device  
Acceleration  
Time  
Initial value  
Setting range  
Y000  
Y001  
D8348  
D8358  
D8368  
50 to 5,000 ms:  
If the value is set to 49 ms or less, the acceleration time will  
be automatically set to 50 ms. If the value is set to 5,001 ms  
or more, the acceleration time will be automatically set to  
5,000 ms.  
100ms  
*1  
Y002  
*2  
D8378  
Y003  
*1. Y002 (pulse output destination) cannot be specified when the 14-point or 24-point type FX3G PLC is  
connected.  
*2. Devices related to Y003 (pulse output destination) are only valid if two FX3U-2HSY-ADP adapters are  
connected to the FX3U PLC.  
*3. Only available for FX3U/FX3UC PLC Ver. 2.20 or later and FX3G PLC.  
B - 46  
   
4 Before Programming  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
4.2 Setting of Various Items Regarding Speeds  
A
B
4.2.8 Setting of Deceleration Time  
Set the time required for deceleration from the maximum speed to the bias speed.  
If the output pulse frequency is less than the maximum speed, the actual deceleration time will be shorter  
than the set deceleration time.  
If the variable speed pulse output (PLSV) instruction is used, the set deceleration time is only valid during  
acceleration/deceleration (M8338 = ON)*3.  
Use the devices shown in the following table to determine the deceleration time for each pulse output  
destination device.  
Pulse output  
destination device  
Deceleration  
Time  
Initial value  
Setting range  
Apx.  
Y000  
Y001  
D8349  
D8359  
D8369  
50 to 5,000 ms:  
If the value is set to 49 ms or less, the deceleration time will  
be automatically set to 50 ms. If the value is set to 5,001 ms  
or more, the deceleration time will be automatically set to  
5,000 ms.  
100ms  
*1  
Y002  
*2  
D8379  
Y003  
*1. Y002 (pulse output destination) cannot be specified when the 14-point or 24-point type FX3G PLC is  
connected.  
*2. Devices related to Y003 (pulse output destination) are only valid if two FX3U-2HSY-ADP adapters are  
connected to the FX3U PLC.  
*3. Only available for FX3U/FX3UC PLC Ver. 2.20 or later and FX3G PLC.  
B - 47  
 
4 Before Programming  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
4.3 Various Special Relays for Operation Commands  
4.3  
Various Special Relays for Operation Commands  
4.3.1 Forward Rotation Limit and Reverse Rotation Limit  
When using the servo motor, the forward rotation limit and the reverse rotation limit can be set for the servo  
amplifier.  
To use the DOG search function for zero return, or to set the forward rotation limit or the reverse rotation limit  
for operations other than zero return using the PLC, set the forward rotation limit 1 (LSF) and reverse rotation  
limit 1 (LSR) for the PLC so that these limit switches can be activated before the forward rotation limit 2 or  
reverse rotation limit 2 of the servo amplifier.  
As shown in the following figure, interlock the forward rotation limit 1 (LSF) with the forward limit relay, and the  
reverse rotation limit 1 (LSR) with the reverse limit relay. If the forward limit relay or the reverse limit relay turns  
ON, the motor will perform operation depending on the output instruction as shown in the following table.  
Reverse rotation limit 2 Reverse rotation limit 1 Forward rotation limit 1 Forward rotation limit 2  
(Servo amplifier side)  
(Programmable  
controller side)  
LSR  
(Programmable  
controller side)  
LSF  
(Servo amplifier side)  
Servo motor  
Reverse rotation  
Forward rotation  
Forward rotation limit 1  
Reverse rotation limit 1  
M8343  
M8344  
Forward limit relay for Y000  
Reverse limit relay for Y000  
Use the relays shown in the following table to determine the forward rotation limit and the reverse rotation limit  
for each pulse output destination device (Y000, Y001, Y002, Y003).  
Corresponding instruction and stop  
Pulse output  
DSZR, DVIT*4, ZRN,  
PLSV(M8338*3 =ON), DRVI,  
and DRVA instructions  
Forward limit  
relay  
Reverse limit  
relay  
destination  
device  
PLSV instruction  
(M8338*3 =OFF)  
Y000  
Y001  
M8343  
M8353  
M8363  
M8344  
M8354  
M8364  
If the corresponding rotation  
limit relay is turned on, the  
pulse output (operation) will  
immediately stop.  
If the corresponding rotation  
limit relay is turned on, the  
speed will decelerate, and the  
operation will stop.  
*1  
Y002  
*2  
M8373  
M8374  
Y003  
*1. Y002 (pulse output destination) cannot be specified when the 14-point or 24-point type FX3G PLC is  
connected.  
*2. Devices related to Y003 (pulse output destination) are only valid if two FX3U-2HSY-ADP adapters are  
connected to the FX3U PLC.  
*3. M8338 is supported in the FX3U/FX3UC PLC Ver. 2.20 or later and FX3G PLC. If an FX3UC PLC is used  
and its version is below Ver.2.20, the PLSV instruction will perform operation in the M8338 = OFF  
mode (will perform operation without acceleration/deceleration).  
*4. Only available for FX3U and FX3UC PLCs.  
Note:  
If the forward rotation limit (LSF) and the reverse rotation limit (LSR) cannot be set, observe the following  
items:  
• Even if forward rotation limit 2 or reverse rotation limit 2 turns ON and the servo motor is automatically  
stopped, the positioning instruction currently being activated cannot recognize the motor being stopped.  
Therefore, pulses will be continuously output until the instruction is deactivated.  
• The DOG search function of the DSZR instruction (zero return instruction with DOG search function)  
cannot be used.  
B - 48  
   
4 Before Programming  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
4.3 Various Special Relays for Operation Commands  
A
B
4.3.2 Immediate Stop of Pulse Output (Pulse Output Stop Command Relay)  
During the execution of a positioning instruction, if the pulse output stop command relay is turned on, the  
pulses being output will immediately stop.  
To output pulses again, turn off the pulse output stop command relay, deactivate (turn off) the positioning  
instruction, and then activate the instruction again (turn it on again).  
The following table shows the pulse output stop command relay of each pulse output destination device.  
Pulse output destination  
device  
Pulse output stop  
command relay  
Operation  
Y000  
Y001  
M8349  
M8359  
M8369  
During pulse outputting operation, if the pulse output stop  
command relay of the corresponding pulse output  
destination device is turned on, the pulse outputting  
operation will immediately stop.  
Apx.  
*1  
Y002  
*2  
M8379  
Y003  
*1. Y002 (pulse output destination) cannot be specified when the 14-point or 24-point type FX3G PLC is  
connected.  
*2. Devices related to Y003 (pulse output destination) are only valid if two FX3U-2HSY-ADP adapters are  
connected to the FX3U PLC.  
Note:  
Use these relays only if immediate stop is absolutely needed to avoid dangers. Since the motor is  
immediately stopped, use of these relays may damage the system. For normal STOP operation (decelerate  
to stop), use the "instruction OFF" function or "forward/reverse limit relay."  
However, note that if the PLSV instruction is used together with the "instruction OFF" function or the "forward/  
reverse limit relay" in the M8338 = OFF mode (operation without acceleration/deceleration), operation will  
immediately stop.  
4.3.3 Designation of Zero Return Direction (DSZR/ZRN Instruction)  
Use the DSZR instruction (zero return instruction with DOG search function) or ZRN instruction (zero return  
instruction) to specify the zero return direction*1. The zero return direction depends on the instruction.  
For operation of DSZR instruction, refer to Section 6.2.  
For operation of ZRN instruction, refer to Section 6.3.  
Reverse rotation limit 2 Reverse rotation limit 1 Forward rotation limit 1 Forward rotation limit 2  
(Servo amplifier side)  
(Programmable  
controller side)  
LSR  
(Programmable  
controller side)  
LSF  
(Servo amplifier side)  
Servo motor  
Reverse rotation  
Forward rotation  
*1. If the DSZR instruction (zero return instruction with DOG search function) is used, zero return will be  
performed in the direction of the first operation.  
1. Zero return instruction with DOG search function (DSZR instruction)  
Turn on or off the zero return direction specification relay shown in the following table to specify the zero  
return direction.  
Pulse output  
destination device  
Zero return direction  
specification relay  
Description of setting  
Y000  
Y001  
M8342  
M8352  
M8362  
To perform zero return in the forward  
rotation direction:Turn on the relay.  
To perform zero return in the reverse  
rotation direction:Turn off the relay.  
*1  
Y002  
*2  
M8372  
Y003  
*1. Y002 (pulse output destination) cannot be specified when the 14-point or 24-point type FX3G PLC is  
connected.  
*2. Devices related to Y003 (pulse output destination) are only valid if two FX3U-2HSY-ADP adapters are  
connected to the FX3U PLC.  
B - 49  
   
4 Before Programming  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
4.3 Various Special Relays for Operation Commands  
2. Zero return instruction (ZRN instruction)  
Zero return will be performed in the reverse rotation direction only.  
(During zero return, the value indicated by the current value register will be decreased.)  
To perform zero return in the forward rotation direction using the ZRN instruction (zero return instruction):  
To perform zero return in the forward rotation direction, create a program to control the output (Y) relay set as  
a "rotational direction signal" as follows:  
For details on programming, refer to Section 4.7.  
To use the main unit (transistor output), refer to Section 4.8.  
To use a high-speed output special adapter, refer to Section 4.9.  
1) Turn on Yꢁꢁꢁ (rotational direction signal).  
2) Refresh Yꢁꢁꢁ output using the REF (FNC50) instruction.  
3) Execute the ZRN instruction (zero return instruction).  
4) Using the execution completion flag (M8029) of the ZRN instruction (zero return instruction), reset  
Yꢁꢁꢁ (rotational direction signal).  
Example program:  
The following program uses Y004 as the rotational direction signal for Y000.  
Command  
input  
RST  
RST  
SET  
Y000  
M10  
M11  
Y004  
K8  
M8340  
Turns on (sets) Y004 as the  
rotational direction signal of Y000  
(pulse output destination).  
a)  
Y000 output  
pulse monitor  
FNC 50  
REFP  
Refreshes Y000 to Y007.  
Executes ZRN instruction.  
b)  
FNC156  
DZRN  
c)  
d)  
S
1•  
S
2•  
S
3•  
Y000  
Y004  
M10  
Y004  
M11  
M8029  
M8329  
Resets the rotational direction  
signal (Y004) using the instruction  
execution complete flag.  
RST  
SET  
RST  
SET  
Origin data reading completion flag  
Resets the rotational direction signal  
(Y004) using the instruction  
execution abnormal end flag.  
Abnormal end of zero return  
B - 50  
4 Before Programming  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
4.3 Various Special Relays for Operation Commands  
A
B
4.3.4 CLEAR Signal Output (DSZR/ZRN Instruction)  
The DSZR instruction (zero return instruction with DOG search function) and ZRN instruction (zero return  
instruction) can stop the workpiece at the origin, and can output the CLEAR signal.  
If it is necessary to output the CLEAR signal after zero return, turn on the "CLEAR signal output function  
enable" relay. The following table shows the "CLEAR signal output function enable" relay of each pulse  
output destination device (Y000, Y001, Y002, Y003).  
Use an FX3U/FX3UC PLC Ver. 2.20 or later or FX3G PLC to specify the CLEAR signal output device.  
For operation of DSZR instruction, refer to Section 6.2.  
For operation of ZRN instruction, refer to Section 6.3.  
1. If it is not necessary to use the CLEAR signal device specification function, or if an FX3UC PLC  
below Ver. 2.20 is used:  
Apx.  
Status of "CLEAR  
Status of "CLEAR signal  
device specification  
Pulse output  
destination  
device  
signal output  
function enable"  
relay  
CLEAR signal device  
number  
*3  
function enable" relay  
Y000  
Y001  
M8341=ON  
M8351=ON  
M8361=ON  
M8464=OFF  
M8465=OFF  
M8466=OFF  
Y004  
Y005  
Y006  
*1  
Y002  
*2  
M8371=ON  
M8467=OFF  
Y007  
Y003  
*1. Y002 (pulse output destination) cannot be specified when the 14-point or 24-point type FX3G PLC is  
connected.  
*2. Devices related to Y003 (pulse output destination) are only valid if two FX3U-2HSY-ADP adapters are  
connected to the FX3U PLC.  
*3. Use an FX3U/FX3UC PLC Ver. 2.20 or later or FX3G PLC to use the "CLEAR signal device specification  
function enable" relay.  
2. If it is necessary to use the CLEAR signal device specification  
function:  
Turn on "CLEAR signal device specification function enable" relay to  
specify the CLEAR signal output device (output Y) for the pulse output destination device using the CLEAR  
signal device specification register.  
CLEAR signal device number  
Pulse output  
destination signal output function  
Status of "CLEAR  
Status of "CLEAR signal  
device specification  
function enable" relay  
CLEAR signal device Initial value (CLEAR  
device  
enable" relay  
specification register  
signal device)  
Y000  
Y001  
M8341=ON  
M8351=ON  
M8361=ON  
M8464=ON  
M8465=ON  
M8466=ON  
D8464  
-
-
-
D8465  
*1  
D8466  
Y002  
*2  
M8371=ON  
M8467=ON  
D8467  
-
Y003  
*1. Y002 (pulse output destination) cannot be specified when the 14-point or 24-point type FX3G PLC is  
connected.  
*2. Devices related to Y003 (pulse output destination) are only valid if two FX3U-2HSY-ADP adapters are  
connected to the FX3U PLC.  
For the CLEAR signal device specification method, refer to the next page.  
If it is necessary to use a high-speed output special adapter:  
The output devices initially set for the CLEAR signal of the DSZR/ZRN instruction are the same output  
devices as the "direction signal / reverse pulse train (rotation direction signals)" of the high-speed output  
special adapters. Be sure to specify output numbers of other transistor outputs using the CLEAR signal  
device specification function.  
B - 51  
 
4 Before Programming  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
4.3 Various Special Relays for Operation Commands  
CLEAR signal device specification method:  
1) Write the CLEAR signal output (Y) device number in the "CLEAR signal device specification" register with  
a hexadecimal number (expressed in octal numbers).  
e.g. setting H0010 means Y010. When setting H0008, an operation error occurs because Y008 does not  
exist.  
2) Turn on the "CLEAR signal output function enable" relay and "CLEAR signal device specification function  
enable" relay to specify the CLEAR signal device.  
3) Execute the DSZR instruction (zero return instruction with DOG search function) or ZRN instruction (zero  
return instruction).  
Example program:  
The following figure shows a program that can specify Y010 as the CLEAR signal output device for Y000  
(pulse output destination device):  
M8000  
Specifies the Y010 as the CLEAR signal output device for  
Y000 (pulse output destination device).  
FNC 12  
MOVP  
H0010 D8464  
M8464  
RUN  
monitor  
Turns on "CLEAR signal device specification function enable"  
relay for Y000 (pulse output destination device).  
Turns on the "CLEAR signal output function enable" relay.  
M8341  
4.3.5 Change in Logic of Near-Point (DOG) Signal (DSZR Instruction)  
Turn on or off the "DOG signal logic reverse" relay to specify the logic of the near-point (DOG) signal of the  
DSZR instruction (zero return instruction with DOG search function). Use the operand (  
instruction to specify the near-point (DOG) signal.  
S1  
) of the  
For operation of DSZR instruction, refer to Section 6.2.  
Pulse output  
destination device  
"DOG signal logic  
reverse" relay  
Description of setting  
Y000  
Y001  
M8345  
M8355  
M8365  
OFF:  
ON:  
Positive logic (Turning on the input will turn on the near-  
point signal.)  
Negative logic (Turning off the input will turn on the near-  
point signal.)  
*1  
Y002  
*2  
M8375  
Y003  
*1. Y002 (pulse output destination) cannot be specified when the 14-point or 24-point type FX3G PLC is  
connected.  
*2. Devices related to Y003 (pulse output destination) are only valid if two FX3U-2HSY-ADP adapters are  
connected to the FX3U PLC.  
4.3.6 Change in Logic of Zero-Phase Signal (DSZR Instruction)  
Turn on or off the "Zero point signal logic reverse" relay to specify the logic of the zero-phase signal of the  
DSZR instruction (zero return instruction with dog search function). Use the operand (  
instruction to specify the zero-phase signal.  
S2  
) of the  
For operation of DSZR instruction, refer to Section 6.2.  
Pulse output  
destination device  
"Zero point signal  
logic reverse" relay  
Description of setting  
Y000  
Y001  
M8346  
M8356  
M8366  
OFF:  
ON:  
Positive logic (Turning on the input will turn on the zero-  
phase signal.)  
Negative logic (Turning off the input will turn on the zero-  
phase signal.)  
*1  
Y002  
*2  
M8376  
Y003  
*1. Y002 (pulse output destination) cannot be specified when the 14-point or 24-point type FX3G PLC is  
connected.  
*2. Devices related to Y003 (pulse output destination) are only valid if two FX3U-2HSY-ADP adapters are  
connected to the FX3U PLC.  
B - 52  
   
4 Before Programming  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
4.3 Various Special Relays for Operation Commands  
A
B
4.3.7 Designation of Interrupt Input Signal for DVIT Instruction  
The interrupt input signal of the interrupt positioning (DVIT) instruction depends on the pulse output  
destination device as shown in the following table.  
Use an FX3UC PLC Ver. 1.30 or later to use the interrupt input specification function.  
Use an FX3U/FX3UC PLC Ver. 2.20 or later to set the user interrupt input command.  
For operation of DVIT instruction, refer to Chapter 9.  
Interrupt input signal  
Pulse output  
destination  
device  
If it is not necessary to use the  
interrupt input specification function If it is necessary to use the interrupt input specification  
(M8336 = OFF), or if an FX3UC PLC  
below Ver. 1.30 is used  
function (M8336 = ON)  
Apx.  
D8336=H{ { { {  
Y000  
Y001  
Y002  
X000  
X001  
X002  
Interrupt input for Y000  
(pulse output destination device)  
Interrupt input for Y001  
(pulse output destination device)  
Interrupt input for Y002  
(pulse output destination device)  
Interrupt input for Y003  
(pulse output destination device)  
*1  
X003  
Y003  
*1. Devices related to Y003 (pulse output destination) are only valid if two FX3U-2HSY-ADP adapters are  
connected to the FX3U PLC.  
Designation of interrupt input using M8336 interrupt input  
specification function:  
1) Turn on M8336.  
2) Set the interrupt input number (X000 to X007) in D8336, or  
specify the user interrupt input command*1.  
For specifying the settings, refer to the following description.  
D8336=H{ { { {  
Interrupt input for Y000  
(pulse output destination device)  
Interrupt input for Y001  
(pulse output destination device)  
Interrupt input for Y002  
(pulse output destination device)  
Interrupt input for Y003  
(pulse output destination device)  
Setting value  
Description of setting  
Specifies X000 for the interrupt input signal.  
0
1
Specifies X001 for the interrupt input signal.  
7
Specifies X007 for the interrupt input signal.  
Specifies the user interrupt input command*1 for the interrupt input signal.  
Pulse output destination device  
User interrupt input command  
Y000  
Y001  
Y002  
M8460  
M8461  
M8462  
M8463  
*1  
8
*2  
Y003  
*3  
9 to E  
Do not specify these values.  
Set "F" for a pulse output destination device if the device is not used for the interrupt  
positioning (DVIT) instruction.  
F
B - 53  
 
4 Before Programming  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
4.3 Various Special Relays for Operation Commands  
*1. A device can only be specified if an FX3U/FX3UC PLC Ver. 2.20 or later is used.  
When using an FX3UC PLC below Ver. 2.20, if "8" is set and then the specified interrupt positioning  
(DVIT) instruction turns ON, an operation error (error code: K6763) will occur, and the instruction will  
not cause any operation.  
*2. Devices related to Y003 (pulse output destination) are only valid if two FX3U-2HSY-ADP adapters are  
connected to the FX3U PLC.  
*3. After setting a number in the range of 9 to E for the interrupt input signal, if the corresponding interrupt  
positioning (DVIT) instruction turns ON, an operation error (error code: K6763) will occur, and the  
instruction will not cause any operation.  
Example program:  
The following program specifies the interrupt input signal for each pulse output destination device as shown in  
the following table.  
Pulse output  
destination device  
Interrupt input  
signal  
M8000  
Setting value  
FNC 12  
MOVP  
HFF83 D8336  
M8336  
RUN monitor  
Y000  
Y001  
Y002  
X003  
3
8
F
F
M8461  
Unused  
Unused  
*1  
Y003  
*1. Devices related to Y003 (pulse output destination) are only valid if two FX3U-2HSY-ADP adapters are  
connected to the FX3U PLC.  
4.3.8 Change in Logic of interrupt input Signal (DVIT Instruction)  
Turn the "Interrupt signal logic reverse" relay ON or OFF to specify the logic of the interrupt input signal of the  
interrupt positioning (DVIT) instruction.  
For operation of DVIT instruction, refer to Chapter 9.  
For details on the interrupt input signal designation method, refer to  
Subsection 4.3.7.  
Pulse output  
destination device  
"Interrupt signal logic  
reverse" relay  
Description  
Y000  
Y001  
Y002  
M8347  
M8357  
M8367  
M8377  
OFF: Positive logic (Turning the input ON will turn on the  
interrupt input signal.)  
ON: Negative logic (Turning the input OFF will turn on the  
interrupt input signal.)  
*1  
Y003  
*1. Devices related to Y003 (pulse output destination) are only valid if two FX3U-2HSY-ADP adapters are  
connected to the FX3U PLC.  
Caution:  
If a user interrupt input command (M8460 to M8463) is specified in the interrupt input signal, the logic of the  
user interrupt input command cannot be specified. This is because turning on the user interrupt input  
command will turn on the interrupt input signal.  
B - 54  
 
4 Before Programming  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
4.3 Various Special Relays for Operation Commands  
A
B
4.3.9 Acceleration/Deceleration by PLSV Instruction  
Using an FX3U/FX3UC PLC Ver. 2.20 or later or FX3G PLC, if M8338 (acceleration/deceleration operation) is  
turned on, the variable speed pulse output (PLSV) instruction will be activated to accelerate/decelerate the  
operation.  
This means that if the command value of the output pulse frequency is changed, the operation will be  
accelerated or decelerated to the changed output pulse frequency depending on the specified acceleration/  
deceleration time.  
For operation of PLSV instruction, refer to Chapter 10.  
Apx.  
Maximum speed  
Initial value: 100,000 Hz  
Output  
pulse  
frequency  
Bias speed  
Initial value: 0 Hz  
Bias speed  
Acceleration  
time  
Deceleration time  
Initial value: 100 ms Initial value: 100 ms  
Caution:  
• To enable acceleration/deceleration, turn on M8338 first, and then activate the variable speed pulse output  
(PLSV) instruction.  
• If acceleration/deceleration is enabled, the variable speed pulse output (PLSV) instructions of all the pulse  
output destination devices will accelerate/decelerate with the same time. This means that acceleration/  
deceleration cannot be specified separately for each pulse output destination device.  
B - 55  
 
4 Before Programming  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
4.4 Current Value and Flag for Monitoring of Operation  
4.4  
Current Value and Flag for Monitoring of Operation  
4.4.1 Current Value  
During positioning operation, use the current value register to check the current value positioning address.  
The current value will be increased or decreased depending on the rotation direction. The following table  
shows the current value register (32-bit) of each pulse output destination device.  
Pulse output destination device  
Current value register (32-bit)  
D8341,D8340  
Y000  
Y001  
D8351,D8350  
*1  
D8361,D8360  
Y002  
*2  
D8371,D8370  
Y003  
*1. Y002 (pulse output destination) cannot be specified when the 14-point or 24-point type FX3G PLC is  
connected.  
*2. Devices related to Y003 (pulse output destination) are only valid if two FX3U-2HSY-ADP adapters are  
connected to the FX3U PLC.  
Caution:  
The current value changes between -2,147,483,648 and 2,147,483,647. However, if an overflow or  
underflow occurs, the value changes as shown below. Check the value carefully.  
• If the current value is increased past the maximum value, the minimum value will be indicated.  
• If the current value is decreased below the minimum value, the maximum value will be indicated.  
Necessity of zero return:  
If the specified forward rotation pulse or reverse rotation pulse is output, the current value register will  
increase or decrease the current value. Upon turning off the power of the PLC, however, the current value  
stored in the current value register will be erased. For this reason, after turning the power on again, be sure  
to adjust the current value of the current value register to the current position of the machine. For this  
adjustment, use the zero return instruction or the Absolute Current Value Read instruction (absolute position  
detection system) shown below:  
For details on DSZR instruction, refer to Section 6.2.  
For details on ZRN instruction, refer to Section 6.3.  
For details on ABS instruction, refer to Chapter 7.  
Instruction  
DSZR(FNC150)  
ZRN(FNC156)  
Description  
Zero return instruction with DOG search function  
Zero return instruction (without DOG search function)  
Absolute Current Value Read instruction  
*3  
ABS(FNC155)  
*3. The absolute position detection function applies for the MR-HA, MR-J2A MR-J2SA, or MR-  
J3A servo amplifiers. If one of these servo amplifiers is used and mechanical zero return is  
performed only once just before turning off the power, the current value will not be erased even after  
power-off.  
After turning on the power again, read out the stored current value using the ABS (FNC155)  
instruction of the PLC. This means that the current value can be obtained without performing zero  
return just after turning on the power again.  
B - 56  
   
4 Before Programming  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
4.4 Current Value and Flag for Monitoring of Operation  
A
B
4.4.2 Completion of Instruction Execution ("Instruction execution complete" Flag,  
"Instruction execution abnormal end" Flag)  
Use the "Instruction execution complete" flag or "Instruction execution abnormal end" flag to check whether  
execution of the positioning instruction has been completed properly.  
The "Instruction execution complete" flag and "Instruction execution abnormal end" flag are turned on or off  
after each instruction. Use these flags just after the execution of each instruction.  
For programming details, refer to Subsection 4.7.4.  
• "Instruction execution complete" flag: Will be turned on if the instruction is executed properly.  
• "Instruction execution abnormal end" flag: Will be turned on if the instruction is not executed properly.  
Apx.  
Caution:  
If the "Instruction execution complete" flag or "Instruction execution abnormal end" flag is turned on, then the  
execution of the instruction (pulse outputting operation, etc.) is complete. However, it is not certain whether  
the servo motor has stopped or not. Check the "positioning completion" signal of the servo amplifier (drive  
unit) to determine whether the servo motor has stopped.  
4.4.3 "Pulse Output Monitor" (BUSY/READY) Flag  
Use the "pulse output monitor" (BUSY/READY) flag to check whether pulses are being output to the pulse  
output destination device. The following table shows the "pulse output monitor" (BUSY/READY) flag of each  
pulse output destination device.  
Pulse output  
destination device  
"Pulse output monitor"  
(BUSY/READY) flag  
Status of flag and pulse  
Y000  
Y001  
M8340  
M8350  
M8360  
Outputting pulse (BUSY):Flag = ON  
Pulse outputting stopped (READY):Flag = OFF  
*1  
Y002  
*2  
M8370  
Y003  
*1. Y002 (pulse output destination) cannot be specified when the 14-point or 24-point type FX3G PLC is  
connected.  
*2. Devices related to Y003 (pulse output destination) are only valid if two FX3U-2HSY-ADP adapters are  
connected to the FX3U PLC.  
4.4.4 "Positioning Instruction Activation" Flag  
Use the "positioning instruction activation" flag of each pulse output destination device to check whether or  
not a positioning instruction is being executed for the pulse output destination device. Use this flag to prevent  
simultaneous activation of two or more positioning instructions for the same pulse output destination device.  
Pulse output  
destination device  
"Positioning instruction  
Activation" flag  
Status of flag and pulse  
Y000  
Y001  
M8348  
M8358  
M8368  
ON: The positioning instruction is being activated for the  
corresponding pulse output destination.  
(Even after instruction execution is completed, if the  
instruction is still being activated, the flag will not be  
turned off.)  
*1  
Y002  
*2  
OFF: The positioning instruction is not being activated for the  
corresponding pulse output destination.  
M8378  
Y003  
*1. Y002 (pulse output destination) cannot be specified when the 14-point or 24-point type FX3G PLC is  
connected.  
*2. Devices related to Y003 (pulse output destination) are only valid if two FX3U-2HSY-ADP adapters are  
connected to the FX3U PLC.  
B - 57  
     
4 Before Programming  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
4.5 Setting of Various Items on PLC Side  
4.5  
Setting of Various Items on PLC Side  
4.5.1 Setting of Common Items Using Program  
For each pulse output destination device (Y000, Y001, Y002*1, Y003*2), set the items shown in the following  
table without using the operand of the instruction.  
Setting device  
Instruction  
Setting  
item  
Refer to  
*1  
*2  
Y000  
Y001  
DSZR ZRN ABS TBL PLSV DVIT DRVI DRVA  
Y002  
Y003  
Items related to speed  
Subsec-  
tion  
4.2.5  
Maximum  
D8344, D8354, D8364, D8374,  
D8343 D8353 D8363 D8373  
-
3
3
3
3
3
3
3
3
3
3
-
3*4  
3*4  
3
3
3
3
3
3
-
3
3
3
3
-
3
3
3
3
-
*3  
speed  
Subsec-  
tion  
4.2.6  
Bias speed D8342 D8352 D8362 D8372  
-
-
-
-
-
Subsec-  
tion  
4.2.7  
Acceleration  
3*4 3*5  
3*4 3*5  
D8348 D8358 D8368 D8378  
time  
Subsec-  
tion  
4.2.8  
Deceleration  
D8349 D8359 D8369 D8379  
time  
Subsec-  
tion  
4.2.3  
Zero return  
D8347, D8357, D8367, D8377,  
D8346 D8356 D8366 D8376  
-
-
-
-
*3  
speed  
Subsec-  
tion  
4.2.4  
Creep speed D8345 D8355 D8365 D8375  
-
-
-
-
Items needed for (DSZR) zero return instruction with DOG search function and (ZRN) zero return instruction)  
Subsec-  
tion  
4.3.3  
Zero return  
direction  
3*6  
3
3
3
-
M8342 M8352 M8362 M8372  
M8341 M8351 M8361 M8371  
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
3
3
3
3
3
Subsec-  
tion  
4.3.4  
CLEAR  
signal output  
CLEAR  
signal device  
Subsec-  
tion  
4.3.4  
M8464 M8465 M8466 M8467  
D8464 D8465 D8466 D8467  
*7  
change  
Subsec-  
tion  
4.3.5  
Logic of  
near-point  
signal  
M8345 M8355 M8365 M8375  
M8346 M8356 M8366 M8376  
Logic of  
zero-phase  
Subsec-  
tion  
4.3.6  
signal  
Items needed for variable speed pulse output (PLSV) instruction  
Acceleration/  
Subsec-  
tion  
4.3.9  
deceleration  
-
-
-
-
-
-
-
-
-
-
3
M8338  
*5  
Operation  
*10  
Items needed for interrupt positioning (DVIT) instruction  
Interrupt  
Subsec-  
tion  
4.3.7  
input signal  
M8336  
D8336  
3
*4, *10  
-
-
-
3
device  
*8  
change  
B - 58  
   
4 Before Programming  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
4.5 Setting of Various Items on PLC Side  
A
B
Setting device  
Setting  
Instruction  
Refer to  
*1  
*2  
item  
Y000  
Y001  
DSZR ZRN ABS TBL PLSV DVIT DRVI DRVA  
Y002  
Y003  
User  
Subsec-  
tion  
4.3.7  
interrupt  
input  
3
M8460 M8461 M8462 M8463  
-
-
-
-
-
-
-
-
-
-
3
3
*4, *10  
*8  
command  
Subsec-  
tion  
4.3.8  
Logic of  
interruptinput M8347 M8357 M8367 M8377  
signal  
-
-
3
Forward limit, reverse limit, and immediate stop of pulse output  
Subsec-  
tion  
4.3.1  
Apx.  
Forward limit M8343 M8353 M8363 M8373  
-
-
-
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
Subsec-  
tion  
4.3.1  
Reverse limit M8344 M8354 M8364 M8374  
Immediate  
Subsec-  
tion  
4.3.2  
stop of pulse  
M8349 M8359 M8369 M8379  
*9  
output  
*1. Y002 (pulse output destination) cannot be specified when the 14-point or 24-point type FX3G PLC is  
connected.  
*2. Devices related to Y003 (pulse output destination) are only valid if two FX3U-2HSY-ADP adapters are  
connected to the FX3U PLC.  
*3. 32 bits are used for the maximum speed setting device and the zero return speed setting device.  
*4. Set this item using the PC parameter settings (positioning) of GX Developer (Ver.8.23Z or later) with  
an FX3U/FX3UC PLC Ver.2.20 or later or FX3G PLC. The settings data set by the parameter setting will  
be stored in the corresponding device.  
*5. To accelerate or decelerate the operation using the variable speed pulse output (PLSV) instruction  
with an FX3U/FX3UC PLC Ver.2.20 or later or an FX3G PLC, it is necessary to set this item.  
If the operation is not accelerated or decelerated, or if an FX3UC PLC below Ver.2.20 is used, the  
PLSV instruction will not use this item even if it is set.  
*6. The ZRN instruction will not use any zero return direction setting devices. Using the program, adjust  
the rotation direction output to the zero return direction.  
*7. This item can be set using an FX3U/FX3UC PLC Ver.2.20 or later or an FX3G PLC.  
*8. This item can be set using an FX3U/FX3UC PLC Ver.1.30 or later.  
The user interrupt input command, however, can only be set using an FX3U/FX3UC PLC Ver.2.20 or  
later.  
*9. Use this function only if immediate stop is absolutely needed to avoid danger.  
*10. Only available for FX3U and FX3UC PLCs.  
B - 59  
4 Before Programming  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
4.5 Setting of Various Items on PLC Side  
Example program:  
In the following program, the zero return instruction with DOG search function (DSZR), variable speed pulse  
output (PLSV) instruction, and interrupt positioning (DVIT) instruction are used for the pulse output  
destination (Y000) under the conditions shown in the following table.  
1) Set conditions  
Related Setting value  
device or condition  
Setting item  
Items related to speed  
Description of setting  
D8344,  
Maximum speed  
30000Hz  
D8343  
(32-bit)  
K30000  
Bias speed  
10Hz  
D8342  
D8348  
D8349  
K10  
K200  
K200  
Acceleration time  
Deceleration time  
200ms  
200ms  
D8347,  
D8346  
(32-bit)  
Zero return speed  
Creep speed  
5000Hz  
500Hz  
K5000  
K500  
D8345  
Items needed for DSZR instruction (zero return instruction with DOG search function) and ZRN instruction (zero  
return instruction)  
Zero return direction  
CLEAR signal output  
Reverse rotation direction  
M8342  
M8341  
M8464  
D8464  
OFF  
ON  
Output to Y010  
ON  
*6  
CLEAR signal device change  
Logic of near-point signal  
Logic of zero-phase signal  
H0010  
Sets the positive logic (turning on the input will  
turn on the near-point signal).  
M8345  
M8346  
OFF  
OFF  
Sets the positive logic (turning on the input will  
turn on the zero-phase signal).  
Items needed for variable speed pulse output (PLSV) instruction  
If X012 is turned on, the variable speed pulse  
output (PLSV) instruction will be activated to M8338  
accelerate or decelerate the operation.  
ON:  
If X012 = ON  
Acceleration/deceleration Operation  
*1  
Items needed for interrupt positioning (DVIT) instruction  
Sets X007 for interrupt inputs.  
M8336  
D8336  
ON  
Interrupt positioning (DVIT) instruction will not  
be used for the pulse output destinations  
Y001, Y002, and Y003.  
Interrupt input signal device change  
HFFF7  
User interrupt input command  
Logic of interrupt input signal  
Do not use.  
M8460  
M8347  
-
Sets the negative logic (turning off the input  
will turn on the interruption signal).  
ON  
Forward limit, reverse limit, and immediate stop of pulse output  
If X010 is turned off (if the NC contact is  
turned on), the limit switch will be activated.  
ON:  
If X010 = OFF  
Forward limit  
M8343  
If X011 is turned off (if the NC contact is  
turned on), the limit switch will be activated.  
ON:  
If X011 = OFF  
Reverse limit  
M8344  
M8349  
Immediate stop of pulse output  
Do not use.  
-
*1. Only available for FX3U and FX3UC PLCs.  
B - 60  
4 Before Programming  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
4.5 Setting of Various Items on PLC Side  
A
B
2) Set program  
M8002  
Maximum speed (for Y000):  
30000 Hz (D8344, D8343)  
FNC 12  
DMOV  
K30000 D8343  
Initial pulse  
Bias speed (for Y000):  
10 Hz D8342  
FNC 12  
MOV  
K10  
K200  
K200  
D8342  
D8348  
D8349  
Acceleration time (for Y000):  
200 ms D8348  
FNC 12  
MOV  
Deceleration time (for Y000):  
200 ms D8349  
FNC 12  
MOV  
Zero return speed (for Y000, DSZR instruction)  
:5000 Hz (D8347, D8346)  
FNC 12  
DMOV  
Apx.  
K5000 D8346  
Creep speed (for Y000, DSZR instruction)  
:500 Hz, D8345  
FNC 12  
MOV  
K500  
D8345  
M8342  
M8000  
Zero return direction (for Y000, DSZR instruction)  
:Reverse rotation direction  
RUN monitor  
M8000  
CLEAR signal output (for Y000)  
:Y010  
FNC 12  
MOVP  
H0010 D8464  
M8464  
RUN  
monitor  
M8341  
M8000  
Logic of near-point signal (for Y000)  
:Positive logic  
M8345  
RUN  
monitor  
Logic for zero-phase signal  
(for Y000, DSZR instruction)  
:Positive logic  
M8346  
X012  
Acceleration/deceleration operation  
(PLSV instruction)  
:Enabled if X012 = ON  
M8338  
M8000  
FNC 12  
MOVP  
HFFF7 D8336  
M8336  
Interruption input signal device  
(for Y000, DVIT instruction)  
:X007 (Y001 to Y003 will not be used.)  
RUN  
monitor  
M8000  
Logic of interruption input  
signal:Negative logic  
M8347  
RUN monitor  
X010  
M8343  
M8344  
Forward rotation limit (for Y000)  
Reverse rotation limit (for Y000)  
X011  
B - 61  
4 Before Programming  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
4.5 Setting of Various Items on PLC Side  
4.5.2 Setting of High-Speed Output Special Adapter  
If a high-speed output special adapter (FX3U-2HSY-ADP) is used, the pulse output method can be selected  
from "pulse train + direction" method and "forward/reverse rotation pulse train" method.  
1. Setting of pulse output method  
Using the pulse output method setting switch on the high-speed output special adapter (FX3U-2HSY-ADP),  
set the pulse output method as shown in the following table.  
The pulse output method setting should conform to the command pulse input method setting for the servo  
amplifier (drive unit).  
For details on the servo amplifier (drive unit), refer to the manual of the product used in your  
system.  
Position of  
pulse output  
method setting  
switch  
Logic of  
command  
pulse  
Pulse output method  
Forward rotation  
Reverse rotation  
OFF*1  
Forward rotation  
pulse train (FP)  
Reverse rotation  
pulse train (RP)  
H
L
Forward rotation  
pulse train (FP)  
Negative  
logic  
FP RP side  
H
L
Reverse rotation  
pulse train (RP)  
OFF*1  
Forward rotation  
Reverse rotation  
OFF*1  
H
Pulse train  
Direction  
Pulse train +  
direction  
Negative  
logic  
L
PLS DIR side  
H
L
ON*1  
*1. "ON" and "OFF" represent the statuses of the PLC output. "H" and "L" respectively represent the  
HIGH status and the LOW status of the waveform.  
For details on the relation between the PLC output and the waveform, refer to  
Subsection 4.6.1.  
Caution:  
Use the Output Form Setting Switch while the PLC is in STOP or while the power is OFF. Do not operate the  
Output Form Setting Switch while a pulse train is being generated.  
2. Setting of rotation direction signal for positioning instruction  
If a high-speed output special adapter (FX3U-2HSY-ADP) is used, the rotation direction signal will be  
assigned to each pulse output destination device as shown in the following table. Set the rotation direction  
signal of the positioning instruction as shown in the following table:  
Output number  
Position of pulse output  
method setting switch of high-  
speed output special adapter  
Name of  
positioning  
instruction  
Signal  
1st adapter  
2nd adapter  
1st axis 2nd axis 3rd axis 4th axis  
Pulse output  
destination:  
Forward rotation  
pulse train (FP)  
Y000  
Y004  
Y000  
Y004  
Y001  
Y005  
Y001  
Y005  
Y002  
Y006  
Y002  
Y006  
Y003  
Y007  
Y003  
Y007  
FP RP side  
Reverse rotation  
pulse train (RP)  
Rotation direction  
signal  
Pulse output  
destination:  
Pulse train  
Direction  
PLS DIR side  
Rotation direction  
signal  
B - 62  
 
4 Before Programming  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
4.5 Setting of Various Items on PLC Side  
A
B
3. CLEAR signal and rotation direction signal  
If a high-speed output special adapter (FX3U-2HSY-ADP) is used, the same output will be used for both the  
CLEAR signal and the rotation direction signal of the DSZR (FNC150) or ZRN (FNC156) instruction. For this  
reason, it is necessary to change the CLEAR signal output device in order to output the CLEAR signal.  
For details on the CLEAR signal device change method, refer to Subsection 4.3.4.  
Rotation direction signal  
(reverse rotation pulse train / direction)  
Pulse output  
destination device  
CLEAR signal device  
initially set  
1st adapter  
2nd adapter  
1st axis  
2nd axis  
3rd axis  
4th axis  
Y000  
Y001  
Y002  
Y003  
Y004  
Y005  
Y006  
Y007  
Y004  
-
-
-
-
-
-
Y005  
-
Y006  
-
-
-
Apx.  
-
-
Y007  
B - 63  
4 Before Programming  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
4.6 Setting of Various Items on Servo Amplifier (Drive Unit) Side  
4.6  
Setting of Various Items on Servo Amplifier (Drive Unit) Side  
For details on the servo amplifier (drive unit), refer to the manual of the product used in your  
system.  
4.6.1 Setting the Command Pulse Method  
1. Pulse output method on PLC side  
1) Main unit (transistor output (sink output))  
If the main unit (transistor output (sink output)) is used, the pulse output signals (pulse output destination  
and rotation direction) will be as shown in the following figure:  
Forward  
rotation  
Reverse  
rotation  
Forward  
rotation  
Reverse  
rotation  
H
L
Pulse output  
destination: Y000  
Pulse output  
destination: Y002  
H
L
ON*1  
ON *1  
H
L
H
L
Any output: Yꢁꢁꢁ  
(Rotation direction  
designation)  
OFF *1  
OFF *1  
Any output: Yꢁꢁꢁ  
(Rotation direction  
designation)  
OFF *1  
H
L
H
L
Pulse output  
destination: Y001  
ON*1  
Any output: Yꢁꢁꢁ  
(Rotation direction  
designation)  
*1. "ON" and "OFF" represent the statuses of the PLC output. "H" and "L" respectively represent the  
HIGH and LOW status of the waveform.  
For details on the relation between the PLC output and the waveform, refer to the next pages.  
2) High-speed output special adapter (Pulse train + Direction Setting)  
When setting the Output Form Setting Switch of the high speed output special adapter to the "PLS DIR"  
position, the pulse output signals (pulse output destination signal and rotation direction signal) will be as  
shown in the following figure:  
Forward  
rotation  
Reverse  
rotation  
Forward  
rotation  
Reverse  
rotation  
Pulse output  
Pulse output  
H
H
L
destination: Y000  
destination: Y002  
L
H
L
ON*1  
OFF *1  
OFF *1  
ON*1  
ON*1  
OFF *1  
OFF *1  
Rotation direction  
designation: Y004  
Rotation direction  
designation: Y006  
H
L
Pulse output  
destination: Y001  
Pulse output  
destination: Y003  
H
L
H
L
H
L
ON*1  
H
L
Rotation direction  
designation: Y005  
Rotation direction  
designation: Y007  
*1. "ON" and "OFF" represent the statuses of the PLC output. "H" and "L" respectively represent the  
HIGH status and the LOW status of the waveform.  
For details on the relation between the high-speed output special adapter output and  
the waveform, refer to the next pages.  
B - 64  
   
4 Before Programming  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
4.6 Setting of Various Items on Servo Amplifier (Drive Unit) Side  
A
B
3) High-speed output special adapter (Forward/Reverse Pulse Train setting)  
When setting the Output Form Setting Switch of the high speed output special adapter to the "FPRP"  
position, the pulse output signals will be as shown in the following figure.  
Forward  
rotation  
Reverse  
rotation  
Forward  
rotation  
Reverse  
rotation  
Pulse output  
Pulse output  
H
L
H
L
destination: Y000  
(Forward rotation  
pulse train)  
destination: Y002  
(Forward rotation  
pulse train)  
OFF *1  
OFF *1  
Pulse output  
Pulse output  
OFF *1  
H
L
H
L
destination: Y004  
(Reverse rotation  
pulse train)  
destination: Y006  
(Reverse rotation  
pulse train)  
OFF *1  
Apx.  
Pulse output  
Pulse output  
H
L
H
L
destination: Y001  
(Forward rotation  
pulse train)  
destination: Y003  
(Forward rotation  
pulse train)  
OFF *1  
OFF *1  
Pulse output  
Pulse output  
destination: Y005  
(Reverse rotation  
pulse train)  
destination: Y007  
(Reverse rotation  
pulse train)  
H
L
H
L
OFF *1  
OFF *1  
*1. "ON" and "OFF" represent the statuses of the PLC output. "H" and "L" respectively represent the  
HIGH status and the LOW status of the waveform.  
For details on the relation between high-speed output special adapter output and the waveform,  
refer to the next pages.  
B - 65  
4 Before Programming  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
4.6 Setting of Various Items on Servo Amplifier (Drive Unit) Side  
Reference: Image of PLC output and waveform (for MELSERVO-J3 Series servo amplifier)  
1) Base unit (transistor output (sink output))  
a) Connection of PLC to servo amplifier  
When a FX3U Series PLC (sink output) is used, it is connected as shown below.  
MR-J3  
A servo  
amplifier  
OPC 12  
FX3U-32MT/ES  
(Transistor output  
(sink output))  
24V DC  
DOCOM  
46  
COM1  
Pulse train  
Direction  
Y000  
PP 10  
NP 35  
COM2  
Y004  
Plate  
SD  
b) Image of PLC output and output waveform  
Forward rotation  
Pulse train signal  
Reverse rotation  
(Y000)  
ON  
Image of output  
ON/OFF operation  
OFF  
High  
Low  
Output waveform  
Direction output  
(Y004)  
Image of output  
ON/OFF operation  
ON  
OFF  
High  
Low  
Output waveform  
2) High-speed output special adapter (set to "pulse train + direction")  
a) Connection of PLC to servo amplifier  
MR-J3  
A servo  
FX3U-2HSY-ADP  
amplifier  
Pulse train  
Direction  
Y0/2+  
Y0/2-  
Y4/6+  
Y4/6-  
SGA  
PP 10  
Equivalent  
to AM26C31  
PG 11  
NP 35  
NG 36  
SGA  
Plate  
SD  
b) Image of PLC output and output waveform  
The output waveform shown below is based on the SGA terminal of the high-speed output special  
adapter. If the SGB side of the high-speed output special adapter is used, the output waveform will be  
that of the SGB terminal.  
Forward rotation  
Reverse rotation  
Pulse train signal  
(Y000)  
ON  
OFF  
High  
Low  
High  
Low  
Image of output  
ON/OFF operation  
+
Output  
waveform  
-
Direction output  
(Y004)  
Image of output  
ON/OFF operation  
ON  
OFF  
High  
Low  
High  
Low  
+
Output  
waveform  
-
B - 66  
4 Before Programming  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
4.6 Setting of Various Items on Servo Amplifier (Drive Unit) Side  
A
B
3) High-speed output special adapter (set to "forward/reverse rotation pulse train")  
a) Connection of PLC to servo amplifier  
MR-J3  
A servo  
FX3U-2HSY-ADP  
amplifier  
Forward rotation  
pulse train  
Y0/2+  
Y0/2-  
Y4/6+  
Y4/6-  
SGA  
PP 10  
Equivalent  
to AM26C31  
PG 11  
NP 35  
NG 36  
Reverse rotation  
pulse train  
SGA  
Plate  
SD  
b) Image of PLC output and output waveform  
Apx.  
The output waveform shown below is based on the SGA terminal of the high-speed output special  
adapter. If the SGB side of the high-speed output special adapter is used, the output waveform will be  
that of the SGB terminal.  
Forward rotation  
Reverse rotation  
Forward rotation pulse  
train(Y000)  
ON  
OFF  
High  
Low  
High  
Low  
Image of output  
ON/OFF operation  
+
Output  
waveform  
-
Reverse rotation pulse  
train(Y004)  
ON  
Image of output  
OFF  
High  
Low  
High  
Low  
ON/OFF operation  
+
Output  
waveform  
-
2. Setting of command pulse input method for servo amplifier (drive unit)  
Set the following servo amplifier (drive unit) parameter so that the pulse train input method of the servo  
amplifier (drive unit) matches the pulse output method of the PLC as shown in the following tables.  
Pulse output method of high-speed output  
Pulse output method of main unit  
special adapter  
Servo amplifier  
(drive unit)  
Transistor output (sink output)  
Pulse train + direction  
Differential line driver  
Pulse train + Forward rotation pulse train,  
direction  
reverse rotation pulse train  
Command pulse input  
method  
"Pulse train +  
sign"  
Forward rotation pulse train,  
Reverse rotation pulse train  
"Pulse train + sign"  
"Negative logic"  
Logic of command pulse  
"Negative logic"  
"Negative logic"  
Parameter setting for each series of MELSERVO servo amplifier:  
Set value  
forward/reverse rotation pulse  
train  
Series  
Parameter No.  
Pulse train + direction  
Negative logic  
Negative logic  
MR-J3  
13  
21  
7
0011  
0011  
011  
0010  
0010  
010  
MR-J2,MR-J2S  
MR-C  
*1  
*1  
MR-H  
21  
7
011ꢁ  
010ꢁ  
*1  
*1  
MR-J  
ꢁꢁꢁ1  
ꢁꢁꢁ0  
*1. is for settings other than the command pulse output form.  
For details, refer to the Servo amplifier manual.  
B - 67  
4 Before Programming  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
4.6 Setting of Various Items on Servo Amplifier (Drive Unit) Side  
4.6.2 Setting of Electronic Gear (For MELSERVO Series)  
Use the electronic gear of the servo motor to set the transfer distance per pulse.  
For details on the electronic gear setting, refer to the manual of the servo motor or servo amplifier, and set an  
optimum value depending on the application.  
Setting example 1:  
To set the transfer distance per pulse to 10 µm (if the machine uses a ball screw):  
Machine specifications  
n
Servo amplifier  
MR-C Series  
3000r/min  
n=NL/NM=1/2  
NL  
Rated rotational speed of servo motor  
Lead of ball screw (Pb)  
10mm (0.4")/rev  
1/2  
NM  
Pb=10[mm](0.4")  
Reduction ratio (mechanical gear) (n)  
Resolution of servo motor (Pt)  
4000PLS/REV  
Servo motor  
Pt = 4000 (PLS/REV)  
CMX  
CDV  
4000  
1/2 10  
8
1
Pt  
f0  
: Command pulse frequency [Hz]  
(Open collector system)  
= 10× ×  
10-3  
=
0
×
=
n
×
P
b
×
CMX: Electronic gear  
(numerator of command pulse  
Set the electronic gear as follows:  
CMX = 8, CDV = 1  
multiplying factor)  
In this case, when the main unit outputs the maximum output  
pulse frequency (100 kHz), the servo motor rotational speed  
will be as follows:  
CDV : Electronic gear  
(denominator of command pulse  
multiplying factor)  
N0 : Servo motor rotational speed [r/min]  
0 : Transfer distance per pulse [mm]  
CMX  
CDV  
60  
Pt  
N0  
=
=
×
×
f0  
8
60  
4000  
×
×
100000  
1
= 12000r/min > 3000r/min (Rated rotational speed of servo motor)  
It is necessary to reduce the pulse frequency on the PLC side in order to reduce the servo motor rotational  
speed so that it is less than the rated rotational speed.  
Pulse output destination device Maximum speed setting device  
Y000  
Y001  
D8344,D8343  
D8354,D8353  
D8364,D8363  
*1  
Y002  
Y003  
*2  
D8374,D8373  
*1. Y002 (pulse output destination) cannot be specified when the 14-point or 24-point type FX3G PLC is  
connected.  
*2. Devices related to Y003 (pulse output destination) are only valid if two FX3U-2HSY-ADP adapters are  
connected to the FX3U PLC.  
B - 68  
 
4 Before Programming  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
4.6 Setting of Various Items on Servo Amplifier (Drive Unit) Side  
A
B
Setting example 2:  
To set the transfer distance per pulse to 0.01° (if a turntable is used):  
Machine specifications  
Servo motor  
Pt = 131072 (PLS/REV)  
Servo amplifier  
MR-J2S Series  
Rated rotational speed of servo motor 3000r/min  
Turntable  
Turntable  
360°/REV  
8/64  
Reduction ratio (mechanical gear) (n)  
(Timing belt)  
Resolution of servo motor (Pt)  
131072PLS/REV  
Timing belt: 8/64  
Apx.  
f0 : Command pulse frequency [Hz]  
(open collector system)  
CMX: Electronic gear  
(numerator of command pulse  
multiplying factor)  
CDV : Electronic gear  
(denominator of command pulse  
multiplying factor)  
N0 : Servo motor rotational speed [r/min]  
CMX  
CDV  
131072  
8/64 360  
32768  
1125  
Pt  
360  
= 1× ×  
10-2  
=
0
×
=
n×  
×
Set the electronic gear as follows:  
CMX = 32768, CDV = 1125  
In this case, when the main unit outputs the maximum output  
pulse frequency (100 kHz), the servo motor rotational speed will  
be as follows:  
0
: Transfer distance per pulse [° ]  
CMX  
CDV  
60  
Pt  
N0  
=
×
×
f0  
32768  
1125  
1333.33  
60  
131072  
r/min < 3000r/min (Rated rotational speed)  
=
×
×
100000  
.
.
It is not necessary to restrict the maximum speed on the PLC side because the servo motor rotational speed  
is less than the rated rotational speed.  
4.6.3 Setting of "Servo Ready" Signal (MELSERVO MR-C Series)  
If the following parameter is set as shown in the following table for the MELSERVO MR-C Series, pin 3 of the  
CN1 connector of the servo amplifier will be changed to "servo ready" (RD). Note that the following parameter  
should be set for the example programs shown in Chapter 12.  
Series  
Parameter No. Setting value  
21 020  
MR-C  
B - 69  
 
4 Before Programming  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
4.7 Items To Be Observed in Programming  
4.7  
Items To Be Observed in Programming  
This section describes various programming items that will not be affected by any pulse output destination  
devices (hardware).  
For information on the pulse output destination devices (hardware) that are affected by programming items,  
refer to the following sections.  
To use the transistor output of the main unit, also refer to Section 4.8.  
To use the high-speed output special adapter, also refer to Section 4.9.  
4.7.1 Positioning Instruction Activation Timing  
The following positioning instructions can be programmed as many times as needed. However, observe the  
items shown in the following table to determine the instruction activation timing.  
Instruction to be used  
Description  
DVIT  
DSZR  
TBL ABS ZRN PLSV DRVI DRVA  
*2  
Zero return instruction with  
DOG search function  
DSZR(FNC150)  
3
3
3
3
3 ꢀ  
3 ꢀ  
3 ꢀ  
3
3
3
3
3
3
3
3
3
3
3
3
Interrupt Positioning  
(interruption fixed-feed)  
*2  
3
3
DVIT(FNC151)  
Positioning by batch setting  
method  
TBL(FNC152)  
Current ABS value read-out  
ABS(FNC155)  
ZRN(FNC156)  
ꢀ ꢀ ꢀ ꢀ ꢀ ꢀ ꢀ ꢀ  
*1  
from servo amplifier  
Zero return (without DOG  
search function)  
3
3
3 ꢀ  
3
3
3
3
PLSV(FNC157) Variable speed Pulse Output  
DRVI(FNC158) Drive to Increment  
DRVA(FNC159) Drive to Absolute  
3
3
3
3
3
3
3 ꢀ  
3 ꢀ  
3 ꢀ  
3
3
3
3
3
3
3
3
3
3
3
3
3: If the pulse output destination device is now outputting pulses, the instruction cannot be activated. Refer  
to the "Note" below.  
: For the absolute position detection system, activate the ABS (FNC155) instruction after turning the  
power ON for the servo amplifier. After executing this instruction, the current value will be read out from  
the servo amplifier*1 only once.  
Turning this instruction OFF will turn the servo amplifier OFF*1.  
*1. The ABS (FNC155) instruction can be used with the absolute position detection system of the  
MELSERVO-J3, -J2(S), and -H Series.  
*2. Only available for FX3U and FX3UC PLCs.  
Caution:  
If the "pulse output monitor" (BUSY/READY) flag is on, and if a positioning instruction (excluding the ABS  
instruction) or pulse output instruction (PLSR, PLSY) specifies the same pulse output destination device  
as the one being used, the instruction cannot be executed.  
Even after turning the instruction activation contact OFF, if the "pulse output monitor" (BUSY/READY)  
flag is still on, do not execute a positioning instruction (including the PLSR and PLSY instructions) for an  
output with the same output number.  
Before activating such an instruction, check that the "pulse output monitor" (BUSY/READY) flag is off,  
and then wait until 1 cycle or more of operation has been completed.  
For examples of programs, refer to Chapter 12.  
Pulse output destination device  
"Pulse output monitor" flag  
Y000  
Y001  
M8340  
M8350  
M8360  
*1  
Y002  
*2  
M8370  
Y003  
B - 70  
   
4 Before Programming  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
4.7 Items To Be Observed in Programming  
A
B
*1. Y002 (pulse output destination) cannot be specified when the 14-point or 24-point type FX3G PLC is  
connected.  
*2. Y003 can be specified as the pulse output destination only if two FX3U-2HSY-ADP adapters are  
connected to the FX3U PLC.  
Use with PLSY (FNC57) and PLSR (FNC59) instructions:  
Along with the positioning instructions (FNC150 - FNC159), the pulse output instructions (FNC57 and FNC59)  
require hardware for outputting pulses.  
• Do not use the same output number for both a positioning instruction (FNC150 - FNC159) and a pulse  
output instruction (FNC57 or FNC59).  
• The use of a positioning instruction together with a PLSY or PLSR instruction will complicate the operation  
of the register that controls the number of output pulses (see the following table). For this reason, it is  
recommended that a positioning instruction should be used in place of the PLSY or PLSR instruction.  
For details on the related devices, refer to Section 4.1 to Section 4.4.  
Apx.  
Current value register  
Pulse output  
destination device  
For FNC150 - FNC159 instructions  
For FNC57 and FNC59 instructions  
Y000  
Y001  
D8341,D8340  
D8351,D8350  
D8361,D8360  
D8141,D8140  
D8143,D8142  
-
*1  
Y002  
*2  
D8371,D8370  
-
Y003  
*1. Y002 (pulse output destination) cannot be specified when the 14-point or 24-point type FX3G PLC is  
connected.  
*2. Y003 can be specified as the pulse output destination only if two FX3U-2HSY-ADP adapters are  
connected to the FX3U PLC.  
• If it is necessary to use a positioning instruction (FNC150 to FNC159) together with a pulse output  
instruction (FNC57 or FNC59), use the following positioning instruction in place of the pulse output  
instruction:  
- FNC57(PLSY), FNC59(PLSR)FNC158(DRVI)  
B - 71  
4 Before Programming  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
4.7 Items To Be Observed in Programming  
4.7.2 STOP instruction  
For the normal stop of an operation (stop after speed reduction), use the "instruction OFF" function or  
"forward/reverse limit relay".  
If an immediate stop is absolutely needed to avoid danger, use the pulse output stop command relay.  
During execution of a positioning instruction, however, if the pulse output stop command relay is turned on,  
the pulse outputting operation will be immediately stopped. This means that the motor will be stopped without  
deceleration, which may damage the system. For this reason, take caution when using the pulse output stop  
command relay.  
Pulse output destination  
Pulse stop instruction  
Operation  
device  
Y000  
M8349  
M8359  
M8369  
During pulse outputting operation, if the pulse output stop  
command relay of the corresponding pulse output  
destination device is turned on, the pulse outputting  
operation will immediately stop.  
Y001  
*1  
Y002  
*2  
M8379  
Y003  
*1. Y002 (pulse output destination) cannot be specified when the 14-point or 24-point type FX3G PLC is  
connected.  
*2. Y003 can be specified as the pulse output destination only if 2 high-speed output special adapters are  
connected to the FX3U PLC.  
4.7.3 Correction of Backlash  
The built-in positioning function cannot correct the mechanical backlash (clearance, play). If it is necessary to  
correct the backlash, preliminarily set the number of output pulses considering the backlash that may be  
caused while reversing the transfer direction.  
Table  
Feed screw  
Backlash  
(clearance, play)  
4.7.4 "Instruction execution complete" Flag of Positioning Instruction and Completion of  
Positioning  
If the Instruction execution complete flag (M8029) or the Instruction execution abnormal end flag (M8329) is  
turned on, the execution of the instruction (pulse outputting operation, etc.) is completed. In this case,  
however, it is not certain whether the servo motor has stopped. Check the "positioning completion" signal of  
the servo amplifier (drive unit) to check whether the servo motor is stopped.  
For details on "Instruction execution complete" flag and "Instruction execution abnormal end" flag,  
refer to Subsection 4.4.2.  
B - 72  
     
4 Before Programming  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
4.7 Items To Be Observed in Programming  
A
B
Programming using "Instruction execution complete" flag and "Instruction execution abnormal end"  
flag:  
1) If two or more positioning instructions are used in a program, the "Instruction execution complete" flag  
(M8029) or "Instruction execution abnormal end" flag (M8329) will be turned on or off after execution of  
each instruction. However, if the "Instruction execution complete" flag (M8029) and "Instruction execution  
abnormal end" flag are used together for a program, it is difficult to determine which instruction turns them  
ON/OFF and the "Instruction execution complete" flag will not be turned on for the intended instruction.  
To use a positioning instruction at a position other than just below the instruction, refer to the  
example shown on the next page.  
Good  
example:  
Apx.  
M0  
FNC158  
K100000 K50000 Y000  
Y004  
DDRVI  
M8029  
M0  
M0  
RST  
RST  
Completion  
of instruction  
execution  
The M8029 will function  
as the "instruction  
execution complete"  
flag of DRVI instruction.  
M8329  
Abnormal  
completion of  
instruction execution  
M1  
FNC159  
K10000 K30000 Y001  
Y005  
DDRVA  
The M8029 will function  
as the "instruction  
execution complete"  
flag of DRVA instruction.  
M8029  
M1  
M1  
RST  
RST  
Completion  
of instruction  
execution  
M8329  
Abnormal  
completion of  
instruction execution  
Bad  
example:  
The M8029 will function  
as the "instruction  
execution complete" flag  
of the lower DPLSV  
instruction.  
M8029  
Program for upper DPLSV  
instruction  
M0  
RST  
Completion of  
instruction  
execution  
M8000  
FNC 72  
DSW  
X10  
M0  
Y10  
D0  
K1  
The M8029 will function  
as the "instruction  
execution complete" flag  
of the lower DSW  
instruction.  
X000  
SET  
M0  
FNC157  
DPLSV  
K1000  
Y002  
Y006  
Upper DPLSV instruction  
The M8029 will function  
as the "instruction  
execution complete" flag  
of the upper DPLSV  
instruction.  
M8029  
Program for DSW  
instruction  
FNC 22  
MUL  
D0  
K10  
D20  
Compl-  
etion of instruction execution  
M1  
FNC157  
DPLSV  
K1000  
Y001  
Y005  
Lower DPLSV instruction  
B - 73  
4 Before Programming  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
4.7 Items To Be Observed in Programming  
2) To use at a position other than just below the positioning instruction:  
If two or more positioning instructions are used in a program, the "Instruction execution complete" flag  
(M8029) and "Instruction execution abnormal end" flag (M8329) will be turned on or off after execution of  
each instruction.  
If it is necessary to use the "Instruction execution complete" flag or "Instruction execution abnormal end"  
flag at a point other than just below the instruction, turn on or off another bit device just below the  
instruction, and use the contact as the command contact.  
M8000  
FNC 72  
DSW  
X10  
Y10  
D0  
K1  
Switches "instruction  
execution complete"  
flag of the DSW  
instruction from M8029  
to M100.  
M8029  
M100  
Completion  
of instruction  
execution  
M0  
FNC158  
DDRVI  
K10000 K10000 Y000  
Y004  
M0  
Switches the  
M8029  
"instruction execution  
complete" flag of the  
DDRVI instruction from  
M8029 to M200.  
RST  
Completion  
of instruction  
execution  
M200  
Functions as the instruction  
execution complete flag of  
the DSW instruction.  
M100  
FNC 22  
MUL  
Functions as the instruction  
D0  
K10  
D20  
execution complete flag of the  
DDRVI instruction.  
M200  
Y030  
B - 74  
4 Before Programming  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
4.7 Items To Be Observed in Programming  
A
B
4.7.5 Operation Error Flag  
When there is an error in the applied instruction configuration, target device or target device number range  
and an error occurs while operation is executed, the following flag turns ON and the error information is  
stored.  
1. Operation error  
Error detected step number storage device  
Error flag  
Error code storage device  
FX3U/FX3UC PLC  
FX3G PLC  
M8067  
D8067  
D8315,D8314,D8069  
D8069  
• When an operation error has occurred, M8067 is set, D8067 stores the operation error code number in  
which the error has occurred.  
Apx.  
• In the FX3U/FX3UC PLC, D8315 and D8314 (32 bits) store the error occurrence step number.  
When the error occurrence step is up to the 32767th step, the error occurrence step can be checked in  
D8069 (16 bits).  
• In the FX3G PLC, D8069 stores the error occurrence step number.  
• If an operation error occurs at another step, the error code and error step number of the instruction will be  
sequentially updated. (If the error status is canceled, the error flag will be turned off.)  
• If the PLC is stopped and restarted without canceling the error status, the error status will be automatically  
canceled, but immediately after that, the error flag will be turned on again.  
2. Operation error latch  
Error detected step number storage device  
Error flag  
Error code storage device  
FX3U/FX3UC PLC  
FX3G PLC  
M8068  
-
D8313,D8312,D8068  
D8068  
• When an operation error occurs, M8068 is turned on.  
• In the FX3U/FX3UC PLC, D8313 and D8312 (32 bits) store the error occurrence step number.  
When the error occurrence step is up to the 32767th step, the error occurrence step can be checked in  
D8068 (16 bits).  
• In the FX3G PLC, D8068 stores the error occurrence step number.  
• If a new error is caused by another instruction, the error data will not be updated, and the operation will be  
continued until the "forced reset" command is input or the power is turned off.  
4.7.6 Write during RUN  
Do not change a program if a positioning instruction (FNC150, FNC151, FNC156 to FNC159) is being  
executed (pulses are being output) in the RUN mode. Operations will be performed as shown in the following  
table if a program is changed during instruction execution in RUN mode.  
If program is changed in circuit block  
Instruction  
including currently-activated instruction  
DSZR(FNC150)  
Decelerates and stops pulse output.  
*1  
DVIT(FNC151)  
TBL(FNC152)  
ZRN(FNC156)  
Program cannot be changed in the RUN mode.  
Decelerates and stops pulse output.  
Decelerates and stops pulse output.  
Immediately stops pulse output.  
*2  
During operation with acceleration/deceleration  
PLSV  
(FNC157)  
During operation without acceleration/deceleration  
DRVI(FNC158)  
DRVA(FNC159)  
Decelerates and stops pulse output.  
*1. Only available for FX3U and FX3UC PLCs.  
*2. Only available for FX3U/FX3UC PLC Ver. 2.20 or later and FX3G PLC.  
If an FX3UC PLC is used and its version is below Ver.2.20, operation will be performed without  
acceleration/deceleration.  
B - 75  
   
4 Before Programming  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
4.8 Items To Be Observed When Using the Main Unit (Transistor Output)  
4.8  
Items To Be Observed When Using the Main Unit (Transistor Output)  
1. Pulse output destination devices  
Use Y000, Y001, and Y002*1 transistor outputs of the main unit for the pulse output destination devices.  
Do not use the transistor output Y003 of the main unit for positioning instructions. If Y003 is used for a positioning  
instruction, PLC failure may occur.  
2. Pulse output method  
Adjust the pulse output method of the transistor output of the main unit to conform with the command pulse  
input method of the servo amplifier (drive unit).  
If the pulse output method is not properly adjusted, the servo amplifier (drive unit) may not perform the  
intended operation.  
For details on the servo amplifier (drive unit), refer to the manual of the product used in your  
system.  
For details on the pulse output method of the main unit, refer to Subsection 4.6.1.  
3. Output pulse frequency (including zero return speed)  
If more than 100,000 Hz pulse is output from the transistor output terminal of the main unit to perform the  
operation, it may cause PLC failure.  
The output pulse frequency and the zero return speed should be equal to or less than the maximum frequency  
of the servo amplifier (drive unit).  
4. Load current  
To use a positioning instruction for the transistor output Y000, Y001, or Y002*1 of the main unit, adjust the  
load current of the open collector transistor output to 10 to 100 mA (5 to 24V DC).  
Item  
Description  
5 to 24V DC  
Operation voltage range  
Operation current range  
Output pulse frequency  
10 to 100mA  
100 kHz or less  
*1. Y002 is not available in 14-point and 24-point type FX3G PLC.  
4.9  
Caution for Using the High-Speed Output Special Adapter  
(FX3U-2HSY-ADP)  
1. Output terminals to be used  
If the high-speed output special adapter is connected, output numbers will be assigned in the same way as  
the main unit as shown in the following table. Use the output terminals of one side (main unit side or high-  
speed output special adapter side), and do not connect lines to the output terminals of the unused side.  
The outputs of the high-speed output special adapter and the main will operate as follows.  
Assignment of output numbers  
Output number  
Position of pulse output method  
setting switch of high-speed  
output special adapter  
Name of  
positioning  
instruction  
Signal  
1st adapter  
2nd adapter  
1st axis 2nd axis 3rd axis 4th axis  
Forward rotation  
pulse train (FP)  
Pulse output  
destination  
Y000  
Y004  
Y000  
Y004  
Y001  
Y005  
Y001  
Y005  
Y002  
Y006  
Y002  
Y006  
Y003  
Y007  
Y003  
Y007  
FP RP side  
Reverse rotation  
pulse train (RP)  
Rotation  
direction signal  
Pulse output  
destination  
Pulse train  
Direction  
PLS DIR side  
Rotation  
direction signal  
B - 76  
   
4 Before Programming  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
4.9 Caution for Using the High-Speed Output Special Adapter (FX3U-2HSY-ADP)  
A
B
Operation of output  
Operation of output  
Instruction for outputting pulse train at high speed  
Other instructions  
If the instruction turns ON, the corresponding output will  
be turned on (the corresponding LED will be turned on).  
Main unit of relay output type  
Can be activated.  
FX3U PLC main unit of transistor  
output type  
*1  
Can be activated.  
Can be activated.  
Can be activated.  
High-speed output special adapter Can be activated.  
• If an output number of the high-speed output special adapter is used (if an output of the high-speed output  
special adapter is connected), do not use (connect) the corresponding output terminal of the main unit.  
Apx.  
• If an output number of the main unit is used (if an output of the main unit is connected), do not use  
(connect) the corresponding output terminal of the high-speed output special adapter.  
*1. The output frequency limit of the main unit transistor output is 100 kHz. When operating a load with a pulse  
frequency exceeding 100 kHz, PLC failure may occur.  
2. Rotation direction signal of positioning instruction  
If an FX3U-2HSY-ADP high-speed output special adapter is used, the rotational direction signal will be  
assigned to each pulse output destination device as shown in the following table. Do not assign any other  
outputs to these devices using positioning instructions, etc.  
For details, refer to Subsection 4.5.2.  
Rotation direction signal  
(reverse rotation pulse train / direction)  
Pulse output  
destination device  
Initial setting of  
CLEAR signal  
1st adapter  
2nd adapter  
1st axis 2nd axis 3rd axis  
4th axis  
Y000  
Y001  
Y002  
Y003  
Y004  
-
-
-
Y004  
Y005  
Y006  
Y007  
-
-
-
Y005  
-
Y006  
-
-
-
-
-
Y007  
3. CLEAR signal and rotation direction signal  
If an FX3U-2HSY-ADP high-speed output special adapter is used, outputs for the rotation direction signal of  
the DSZR (FNC150) or ZRN (FNC156) instruction and the CLEAR signal will overlap as shown in the table  
above.  
For this reason, in order to output the CLEAR signal, change the CLEAR signal device.  
For details on the CLEAR signal device change method, refer to Subsection 4.3.4.  
4. Pulse output method for high-speed output special adapter  
Adjust the pulse output method of the high-speed output special adapter (FX3U-2HSY-ADP) so that the pulse  
output method conforms to the command pulse input method of the servo amplifier (drive unit).  
If the pulse output method is not properly adjusted, the servo amplifier (drive unit) may not perform the  
intended operation.  
For details on the servo amplifier (drive unit), refer to the manual of the product to be used for your  
system.  
For details on the pulse output method, refer to Subsection 4.6.1 or Subsection 4.5.2.  
5. Output pulse frequency (including zero return speed)  
Set the output pulse frequency and the zero return speed so that these values can be less than the maximum  
frequency value of the servo amplifier (driver unit).  
B - 77  
4 Before Programming  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
4.10 Format and Execution of Applied Instruction  
4.10 Format and Execution of Applied Instruction  
Instruction and operand:  
- Function numbers (FNC00 - FNCꢁꢁꢁ) and symbols (mnemonic codes) are assigned to the applied  
instructions of the PLC. For example, a symbol of "SMOV" (shift) is assigned to FNC13.  
- Some applied instructions consist of the instruction area only, but many applied instructions consist of  
the instruction area and the operand.  
Command  
input  
FNC158  
DRVI  
S
1•  
S
2•  
D
1•  
D
2•  
S
: An operand that will not be affected by the execution of the instruction is referred to as a  
source. This symbol represents a source.  
If the operand device number can be modified by an index register, "" will be added, and  
the S will be modified to  
S
. If there are two or more sources, the modified sources will  
become , and so on.  
S
1
,
S
2
D
: An operand that will be affected by the execution of the instruction is referred to as a  
destination. This symbol represents a destination.  
If the device numbers can be indexed by index registers, and if there are two or more  
destinations, the modified destinations will become  
D1  
,
D2  
, and so on.  
m, n  
: The operands not corresponding to source and destination are indicated as "m" and "n".  
If the device number can be indexed by index registers, and if there are two or more  
operands, the modified operands will become m1, m2, n1, n2, and so on.  
- Regarding program steps, the instruction area for each applied instruction is 1 step. The operand of  
each applied instruction, however, has 2 or 4 steps depending on the number of bits (16 or 32 bits).  
Devices for operands:  
- Bit devices X, Y, M, and S can be used for the operands, depending on the function.  
- Combination of these bit devices, such as KnX, KnY, KnM, and KnS, can be used for numeric data.  
Refer to the programming manual.  
- Current value registers, such as data registers D, timers T, and counters C, can be used.  
- A data register D consists of 16 bit. Two consecutive data registers (2 points) are used for 32-bit data.  
For example, if data register D0 is specified for the operand of a 32-bit instruction, D1 and D0 will be  
used for 32-bit data (D1 for the 16 high-order bits, and D0 for the 16 low-order bits).  
If current value registers T and C are used as general data registers, they will behave the same way as  
data registers.  
Each 32-bit counter (C200 to C255), however, can use 32-bit data without combining two counters.  
These counters, however, cannot be specified as the operands of 16-bit instructions.  
B - 78  
 
4 Before Programming  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
4.10 Format and Execution of Applied Instruction  
A
B
Format and execution of instruction:  
Depending on the sizes of the numeric values to be processed, applied instructions can be classified into two  
types: 16-bit instructions and 32-bit instructions. In addition, depending on the execution type, these  
instructions can also be classified into two types: continuous execution type and pulse execution type.  
Depending on the applied instruction, the instruction may or may not have all the combinations.  
1. 16-bit instructions and 32-bit instructions  
- Depending on the bit length of the numeric data to be processed, applied instructions can be classified  
into two types: 16-bit type and 32-bit type.  
Command 1  
FNC 12  
D10  
D20  
D12  
D22  
Move D10 to D12.  
MOV  
Apx.  
Command 2  
This instruction transfers data from D21 and D20 to D23  
and D22.  
FNC 12  
DMOV  
- For the 32-bit instruction, the instruction name will be DMOV ("D" will be added to "MOV").  
- Even numbered devices or odd numbered devices can be specified. If a double device is specified, the  
specified device will be combined with the device with the next number (for the word devices, such as  
devices T, C, and D).  
To prevent confusion, it is recommended to use even numbered devices to specify the low-order bits of  
an operand of a 32-bit instruction.  
- Each 32-bit counter (C200 to C255) needs only one device to set 32 bits. For this reason, the operand  
of a 16-bit instruction cannot specify any of the 32-bit counters.  
2. Pulse execution type instructions and continuous execution type instructions  
Pulse execution type instructions:  
The program shown in the right figure shows that when X000 is  
turned on, the instruction will be executed only once. If X000 is  
off, the instruction will not be executed. If it is not necessary to  
execute the instruction frequently, the pulse execution type  
instruction is recommended. Note that "P" means that the  
instruction of pulse execution type. This means that DMOVP is a  
pulse execution type instruction.  
X000  
FNC 12  
MOVP  
D10  
D12  
Continuous execution type instructions:  
X001  
The program shown in the right figure shows that if X001 is on,  
the continuous execution type MOV instruction will be executed  
at the start of each operation cycle.  
FNC 12  
MOV  
D10  
D12  
Note that if FNC24 (INC) or FNC25 (DEC) is used as a continuous execution type instruction, the  
destination will be changed at the start of each operation cycle.  
To indicate continuous execution type instructions, the symbol "  
" will be added to the title of each  
instruction as shown in the following figure. Use these instructions carefully.  
Number  
FNC  
Instruction name  
D
P
Note that if the activation input X000 or X001 is off, instructions will not be executed. Also note that if the  
later symbol is not added to the title of an instruction, the destination of the instruction will not be changed.  
B - 79  
5 Operation Test  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
5. Operation Test  
This chapter describes the operation test of positioning instructions. During forward rotation (JOG+)  
operation and reverse rotation (JOG-) operation, the test checks whether positioning instructions are properly  
activated.  
DESIGN PRECAUTIONS  
Make sure to have the following safety circuits outside of the PLC to ensure safe system operation even during  
external power supply problems or PLC failure.  
Otherwise, malfunctions may cause serious accidents.  
1) Most importantly, have the following: an emergency stop circuit, a protection circuit, an interlock circuit for  
opposite movements (such as normal vs. reverse rotation), and an interlock circuit (to prevent damage to the  
equipment at the upper and lower positioning limits).  
2) Note that when the PLC CPU detects an error, such as a watchdog timer error, during self-diagnosis, all  
outputs are turned off. Also, when an error that cannot be detected by the PLC CPU occurs in an input/output  
control block, output control may be disabled.  
External circuits and mechanisms should be designed to ensure safe machinery operation in such a case.  
3) Note that when an error occurs in a relay, triac or transistor output device, the output could be held either on or  
off.  
For output signals that may lead to serious accidents, external circuits and mechanisms should be designed to  
ensure safe machinery operation in such a case.  
DESIGN PRECAUTIONS  
Do not bundle the control line together with or lay it close to the main circuit or power line. As a guideline, lay the  
control line at least 100mm (3.94") or more away from the main circuit or power line.  
Noise may cause malfunctions.  
Install module so that excessive force will not be applied to the built-in programming port, power connectors, I/O  
connectors, communication connectors, or communication cables.  
Failure to do so may result in wire damage/breakage or PLC failure.  
WIRING PRECAUTIONS  
Make sure to cut off all phases of the power supply externally before attempting installation or wiring work.  
Failure to do so may cause electric shock or damage to the product.  
Make sure to attach the terminal cover, offered as an accessory, before turning on the power or initiating operation  
after installation or wiring work.  
Failure to do so may cause electric shock.  
WIRING PRECAUTIONS  
Connect the AC power supply to the dedicated terminals specified in the manual of the PLC main unit.  
If an AC power supply is connected to a DC input/output terminal or DC power supply terminal, the PLC will burn  
out.  
Connect the DC power supply to the dedicated terminals specified in the manual of the PLC main unit.  
If an AC power supply is connected to a DC input/output terminal or DC power supply terminal, the PLC will burn  
out.  
Do not wire vacant terminals externally.  
Doing so may damage the product.  
Perform class D grounding (grounding resistance: 100or less) to the grounding terminal on the FX3U/FX3G PLC  
2
main unit with a wire 2 mm or thicker.  
Do not use common grounding with heavy electrical systems (refer to the manual of the PLC main unit).  
Perform class D grounding (grounding resistance: 100or less) to the grounding terminal on the main unit.  
Do not use common grounding with heavy electrical systems.  
When drilling screw holes or wiring, make sure cutting or wire debris does not enter the ventilation slits.  
Failure to do so may cause fire, equipment failures or malfunctions.  
B - 80  
 
5 Operation Test  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
A
B
WIRING PRECAUTIONS  
Install module so that excessive force will not be applied to I/O connectors.  
Failure to do so may result in wire damage/breakage or PLC failure.  
Connect input/output cables securely to their designated connectors.  
Loose connections may cause malfunctions.  
Make sure to properly wire the FX3U/FX3G Series main unit and FX0N/FX2N Series extension equipment in  
accordance with the following precautions.  
Failure to do so may cause electric shock, a short-circuit, wire breakage, or damage to the product.  
-
-
The disposal size of the cable end should follow the dimensions described in this manual.  
Tightening torque should be between 0.5 and 0.8 N m.  
Apx.  
Make sure to properly wire to the European terminal board in accordance with the following precautions.  
Failure to do so may cause electric shock, a short-circuit, wire breakage, or damage to the product.  
-
-
-
-
-
-
The disposal size of the cable end should follow the dimensions described in this manual.  
Tightening torque should be between 0.22 and 0.25 N m.  
Twist the end of strand wire and make sure that there are no loose wires.  
Do not solder-plate the electric wire ends.  
Do not connect more than the specified number of wires or electric wires of unspecified size.  
Affix the electric wires so that neither the terminal block nor the connected parts are directly stressed.  
Make sure to properly wire to the FX Series terminal blocks in accordance with the following precautions.  
Failure to do so may cause electric shock, a short-circuit, wire breakage, or damage to the product.  
-
-
The disposal size of the cable end should follow the dimensions described in this manual.  
Tightening torque should be between 0.5 and 0.8 N m.  
STARTUP AND MAINTENANCE  
PRECAUTIONS  
Do not touch any terminal while the PLC's power is on.  
Doing so may cause electric shock or malfunctions.  
Before cleaning or retightening terminals, cut off all phases of the power supply externally.  
Failure to do so may cause electric shock.  
Before modifying or disrupting the program in operation or running the PLC, carefully read through this manual  
and the associated manuals and ensure the safety of the operation.  
An operation error may damage the machinery or cause accidents.  
STARTUP AND MAINTENANCE  
PRECAUTIONS  
Do not disassemble or modify the PLC.  
Doing so may cause fire, equipment failures, or malfunctions.  
For repair, contact your local Mitsubishi Electric distributor.  
Turn off the power to the PLC before connecting or disconnecting any extension cable.  
Failure to do so may cause equipment failures or malfunctions.  
Turn off the power to the PLC before attaching or detaching the following devices.  
Failure to do so may cause equipment failures or malfunctions.  
-
-
Peripheral devices, expansion boards, and special adapters  
Input/output extension units/blocks and FX Series terminal blocks  
B - 81  
5 Operation Test  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
5.1 Test Procedure  
5.1  
Test Procedure  
1
Turn off the power to the PLC.  
2
Temporarily connect the limit switches (forward rotation limit 1, reverse  
rotation limit 1) and the manual switches (forward rotation, reverse rotation).  
Connect the limit switches and the manual switches to the following input terminals of the PLC.  
Do not connect the servo amplifier (drive unit).  
For details on connection, refer to Chapter 3 of the Hardware Edition of the PLC.  
For details on the forward rotation limit and the reverse rotation limit, refer to Subsection 4.3.1.  
Signal  
Input number  
X010  
Forward rotation limit 1  
Reverse rotation limit 1  
Forward rotation (JOG+)  
Reverse rotation (JOG-)  
NC contact  
NC contact  
NO contact  
NO contact  
Limit switch  
X011  
X012  
Manual switch  
X013  
3
Create the test program.  
For details on the test program, refer to Section 5.2.  
4
5
Turn on the power to the PLC.  
Transfer the test program to the main unit.  
For details, refer to the manual of the programming tool.  
6
Check the input indicator lamp (LED lamp).  
When the programming controller is stopped, activate the temporarily connected input terminals,  
and check the status of each input indicator lamp (LED lamp).  
If an FX3UC-32MT-LT(-2) PLC is used, check the input statuses using the display module.  
Signal  
Input signal  
Status of LED indicator lamp  
Activation of the forward rotation limit switch 1 will turn off the LED  
indicator lamp of X010 (turn off X010).  
Forward rotation limit 1  
X010  
Activation of the reverse rotation limit switch 1 will turn off the LED  
indicator lamp of X011 (turn off X011).  
Reverse rotation limit 1  
Forward rotation (JOG+)  
Reverse rotation (JOG-)  
X011  
X012  
X013  
Turning on the forward rotation (JOG+) switch will turn on the LED  
indicator lamp of X012.  
Turning on the reverse rotation (JOG-) switch will turn on the LED  
indicator lamp of X013.  
7
Switch the PLC into RUN mode.  
B - 82  
 
5 Operation Test  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
5.1 Test Procedure  
A
B
8
Check the operation in the forward rotation direction.  
Check the output indicator lamp (LED lamp) and the current value register to monitor the operation.  
The status of the LED indicator lamp and the value indicated in the current value register depend  
on the pulse output destination or rotation direction set by the positioning instruction. However, if  
the pulse output destination or the rotation direction is changed for the test program, carefully read  
the status of the output indicator lamp (LED lamp) and the value indicated in the current value  
register to monitor the change.  
1. Operation in forward rotation direction  
Turn on the forward rotation (JOG+) switch (X012), and verify that the operation is performed in the  
forward rotation direction. For this check, set the other inputs as follows:  
Apx.  
Input signal  
X010  
Status  
ON  
X011  
ON  
X013  
OFF  
1) LED indicator lamp check  
Check the LED indicator lamps of the PLC or the display module to see whether or not the outputs are  
turned on. The status of each output should be as shown in the following table:  
Pulse output  
method  
LED lamp of  
output  
Status of LED lamp (output)  
Y000  
Y004  
Y0/2  
Y4/6  
Turned on and off at high speed.  
Kept ON.  
If transistor outputs of the "Pulse train + direc-  
main unit are used  
tion" method  
Turned on and off at high speed.  
Kept ON.  
"Pulse train + direc-  
tion" method  
If a high-speed output  
special adapter is used  
Forward rotation  
pulse train (FP)  
Reverse rotation  
pulse train (RP)  
Y0/2  
Y4/6  
Turned on and off at high speed.  
Kept OFF.  
2) Current value register (D8341, D8340) check  
Monitor the current value register (D8341, D8340) of the FX3U/FX3UC/FX3G PLC using the programming  
tool, and confirm that the value is being increased.  
For details on the current value register, refer to Subsection 4.4.1.  
2. Stop of operation  
Turn off the forward rotation (JOG+) switch (X012) to stop the operation in the forward rotation direction.  
1) LED indicator lamp check  
Check the LED indicator lamps of the PLC or the display module to check whether the outputs are turned  
on. The status of each output should be as shown in the following table:  
Pulse output  
method  
LED lamp  
of output  
Status of LED lamp (output)  
The LED indicator lamp (turned on and  
off at high speed) will be turned off.  
Y000  
Y004  
Y0/2  
Y4/6  
Y0/2  
If transistor outputs of the "Pulse train + direc-  
main unit are used  
tion" method  
Kept ON.  
The LED indicator lamp (turned on and  
off at high speed) will be turned off.  
"Pulse train + direc-  
tion" method  
Kept ON.  
If the high-speed output  
special adapter is used  
Forward rotation  
pulse train (FP)  
Reverse rotation  
pulse train (RP)  
The LED indicator lamp (turned on and  
off at high speed) will be turned off.  
Y4/6  
Kept OFF.  
2) Current value register (D8341, D8340) check  
Monitor the current value register (D8341, D8340) of the FX3U/FX3UC/FX3G PLC using the programming  
tool, and confirm that the value is not being increased.  
For details on the current value register, refer to Subsection 4.4.1.  
B - 83  
5 Operation Test  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
5.1 Test Procedure  
9
Check the operation of the forward rotation limit switch.  
During operation in the forward rotation direction (at step 8), turn off the forward rotation limit switch  
1 (X010), and confirm that the operation in the forward rotation direction is stopped.  
The LED indicator lamps and the current value register (D8341, D8340) will enter the same  
statuses as the stop statuses described in step 8.  
In addition, the "Instruction execution abnormal end" flag (M8329) will turn on.  
For details on the current value register, refer to Subsection 4.4.1.  
10  
Check the operation in the reverse rotation direction.  
Check the output indicator lamp (LED lamp) and the current value register to monitor the operation.  
The status of the LED indicator lamp and the value indicated in the current value register depend  
on the pulse output destination or rotation direction set by the positioning instruction. However, if  
the pulse output destination or the rotation direction is changed for the test program, carefully read  
the status of the output indicator lamp (LED lamp) and the value indicated in the current value  
register to monitor the change.  
1. Operation in reverse rotation direction  
Turn on the reverse rotation (JOG-) switch (X013), and verify that the operation is performed in the  
reverse rotation direction. For this check, set the other inputs as follows:  
Input signal  
X010  
Status  
ON  
X011  
ON  
X012  
OFF  
1) LED indicator lamp check  
Check the LED indicator lamps of the PLC or the display module to check whether the outputs are turned  
on. The status of each output should be as shown in the following table:  
Pulse output  
method  
LED lamp  
of output  
Status of LED lamp (output)  
Y000  
Y004  
Y0/2  
Y4/6  
Y0/2  
Turned on and off at high speed.  
Kept OFF.  
If transistor outputs of the "Pulse train + direc-  
main unit are used  
tion" method  
Turned on and off at high speed.  
Kept OFF.  
"Pulse train + direc-  
tion" method  
If high-speed output  
special adapter is used  
Forward rotation  
pulse train (FP)  
Reverse rotation  
pulse train (RP)  
Kept OFF.  
Y4/6  
Turned on and off at high speed.  
2) Current value register (D8341, D8340) check  
Monitor the current value register (D8341, D8340) of the FX3U/FX3UC/FX3G PLC using the programming  
tool, and confirm that the value is being reduced.  
For details on the current value register, refer to Subsection 4.4.1.  
B - 84  
5 Operation Test  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
5.1 Test Procedure  
A
B
2. Stop of operation  
Turn off the reverse rotation (JOG-) switch (X013) to stop the operation in the reverse rotation direction.  
1) LED indicator lamp check  
Check the LED indicator lamps of the PLC or the display module to check whether or not the outputs are  
turned on. The status of each output should be as shown in the following table:  
Pulse output  
method  
LED lamp  
of output  
Status of LED lamp (output)  
The LED indicator lamp (turned on and  
off at high speed) will be turned off.  
Y000  
Y004  
Y0/2  
If transistor outputs of main "Pulse train + direc-  
unit are used  
tion" method  
Kept OFF.  
Apx.  
The LED indicator lamp (turned on and  
off at high speed) will be turned off.  
"Pulse train + direc-  
tion" method  
Y4/6  
Y0/2  
Kept OFF.  
Kept OFF.  
If high-speed output  
special adapter is used  
Forward rotation  
pulse train (FP)  
Reverse rotation  
pulse train (RP)  
The LED indicator lamp (turned on and  
off at high speed) will be turned off.  
Y4/6  
2) Current value register (D8341, D8340) check  
Monitor the current value register (D8341, D8340) of the FX3U/FX3UC/FX3G PLC using the programming  
tool, and confirm that the value is not being decreased.  
For details on the current value register, refer to Subsection 4.4.1.  
11  
Check the operation of the reverse rotation limit switch.  
During operation in the reverse rotation direction (at step 10), turn off the reverse rotation limit  
switch 1 (X011), and confirm that the operation in the reverse rotation direction is stopped.  
The LED indicator lamps and the current value register (D8341, D8340) will enter the same  
statuses as the stop statuses described in step 10.  
In addition, the "Instruction execution abnormal end" flag (M8329) will turn on.  
For details on the current value register, refer to Subsection 4.4.1.  
B - 85  
5 Operation Test  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
5.2 Creation of Test Program  
5.2  
Creation of Test Program  
1. Input/output assignment  
Inputs/outputs are assigned as shown in the following table:  
Signal  
Input/output number  
Forward rotation limit 1  
Limit switch  
NC contact  
NC contact  
NO contact  
NO contact  
X010  
X011  
X012  
X013  
Reverse rotation limit 1  
Forward rotation (JOG+)  
Manual switch  
Reverse rotation (JOG-)  
"Pulse train" signal or "forward rotation pulse train" signal (output specified for pulse output  
destination)  
Y000  
Y004  
"Direction" signal or "reverse rotation pulse train" signal (output specified for rotation  
direction signal)  
2. Setting of related devices  
The following related devices depend on the pulse output destination device that is set for the positioning  
instruction. If the pulse output destination device is changed, it is necessary to change the related devices.  
For setting items of the related devices, refer to Subsection 4.5.1.  
Related  
device  
Setting value or  
condition  
Setting item  
Items related to speed  
Maximum speed  
Description of setting  
D8344,D8343  
(32-bit)  
100,000Hz  
K100000 Initial value  
Bias speed  
0Hz  
D8342  
D8348  
D8349  
-
K0 Initial value  
K100 Initial value  
K100 Initial value  
Acceleration time  
Deceleration time  
100ms  
100ms  
Forward/reverse rotation speed 30,000Hz  
K30000  
-
Forward limit, reverse limit, and immediate stop of pulse output  
If X010 is turned off (if the NC contact is  
turned on), the limit switch will be  
activated.  
Forward limit  
M8343  
M8344  
ON: If X010 = OFF  
ON: If X011 = OFF  
If X011 is turned off (if the NC contact is  
turned on), the limit switch will be  
activated.  
Reverse limit  
Status check items  
Positioning (Y000)  
Use this device to check whether the  
positioning instruction is being  
activated.  
Turns on when the  
positioning instruction is  
activated.  
M8348  
Turns on when the limit  
switch is activated  
during a positioning  
operation.  
Use this device to check whether or not  
the forward/reverse rotation limit switch M8329  
turns ON.  
"Instruction execution abnormal  
end" flag  
Stores the current value of the  
positioning operation in Y000.  
D8341,D8340 Varies when a positioning  
(32-bit) instruction tuns ON.  
Current value register (Y000)  
B - 86  
 
5 Operation Test  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
5.2 Creation of Test Program  
A
B
3. Example program  
M8002  
Maximum speed (for Y000)  
100,000Hz [D8344,D8343]  
FNC 12  
DMOV  
K100000 D8343  
Initial pulse  
Bias speed (for Y000)  
0Hz D8342  
FNC 12  
MOV  
K0  
D8342  
D8348  
D8349  
Acceleration time (for Y000)  
100ms D8348  
FNC 12  
MOV  
K100  
K100  
Deceleration time (for Y000)  
100ms D8349  
FNC 12  
MOV  
Apx.  
X010  
M8343  
M8344  
Forward limit (for Y000)  
Reverse limit (for Y000)  
Forward rotation limit 1  
X011  
Reverse rotation limit 1  
Performs jogging operation  
in the forward rotation direction  
using the drive to Increment  
instruction.  
X012  
M8348  
M101  
FNC158  
DDRVI  
K999999 K30000 Y000  
Y004  
M101  
JOG+ Positioning JOG(+)  
(Y000) operation  
completed  
X012  
Completes the JOG+ operation.  
M100  
JOG+  
M8329  
JOG(+)  
operation  
being  
Instruction execution  
abnormal completion  
performed  
JOG+ operation is being performed.  
M100  
Performs jogging operation in the  
reverse rotation direction using the  
drive to Increment instruction.  
X013  
M8348 M103  
FNC158  
DDRVI  
K-999999 K30000 Y000  
Y004  
M103  
JOG- Positioning JOG(-)  
(Y000) operation  
completed  
X013  
Completes the JOG- operation.  
M102  
JOG-  
M8329  
JOG(-)  
operation  
being  
Instruction execution  
abnormal completion  
performed  
JOG- operation is being performed.  
M102  
END  
B - 87  
6 Mechanical Zero Return (DSZR/ZRN Instruction)  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
6.1 Types of Mechanical Zero Return Instructions  
6. Mechanical Zero Return (DSZR/ZRN Instruction)  
6.1  
Types of Mechanical Zero Return Instructions  
If forward rotation pulses or reverse rotation pulses are being output, the positioning instruction of the PLC will  
increase or decrease the current value of the current value register.  
When turning off the power of the PLC, however, the current value stored in the current value register will be  
erased. For this reason, after turning on the power again, be sure to adjust the current value of the current  
value register to the current position of the machine.  
The built-in positioning function uses the DSZR/ZRN instruction (zero return instruction) to adjust the value of  
the current value register to the current mechanical position.  
Compared with the ZRN instruction, the DSZR instruction has additional functionality.  
DSZR instruction  
ZRN instruction  
DOG search function  
-
3
3
3
3
DOG signal logical NOT  
-
-
-
Zero return using zero-phase signal  
Zero point signal logic reverse  
Absolute position detection system:  
If the MR-H, MR-J2, MR-J2S, or MR-J3 servo amplifier (with absolute position detection function)  
manufactured by Mitsubishi is used, the current position value will be retained even after power-off.  
To use the absolute position detection system, zero return is required to be performed only once. The PLC  
can then read the current position value of the servo motor with the FNC155 (DABS) instruction. With this  
method, it is not necessary to perform zero return every time after power-on.  
B - 88  
   
6 Mechanical Zero Return (DSZR/ZRN Instruction)  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
6.2 DOG Search Zero Return (DSZR Instruction)  
A
B
6.2  
DOG Search Zero Return (DSZR Instruction)  
Use this instruction to change the CLEAR signal output destination with an FX3U/FX3UC PLC Ver.2.20 or later  
or an FX3G PLC.  
6.2.1 Instruction Format  
1. Instruction format  
16-bit  
32-bit  
instruction  
Instruction  
symbol  
Instruction  
symbol  
FNC 150  
DSZR  
Execution condition  
Execution condition  
instruction  
Continuous  
execution  
type  
DSZR  
-
-
-
9 steps  
ZERO RETURN  
WITH DOG  
SEARCH  
Apx.  
Command  
input  
FNC 150  
DSZR  
S
1•  
S
2•  
D
1•  
D
2•  
2. Data setting  
Operand type  
Description  
Data type  
Specifies the near-point signal (DOG) input device number.  
Specifies the zero-phase signal input number.  
S
1
S2  
Bit  
Specifies the pulse output number.  
D1  
Specifies the rotation direction signal output destination number.  
D2  
3. Devices  
Bit device  
Word device  
Others  
Real Char-  
num- acter Pointer  
ber string  
Operand  
type  
Con-  
stant  
Spe-  
cial unit  
System user  
Digit designation  
System user  
Index  
X Y M T C S D.b KnX KnY KnM KnS  
T
C
D
R
U\GV Z Modify K H  
E
""  
P
3
3 3  
3 1  
3
S1  
2
3
3
3
S
2
3
D1  
3
4
3 1  
D2  
1 : D.b is available only in FX3U and FX3UC PLCs. However, index modifiers (V and Z) are not available.  
2 : Specify a device in the range of X000 to X007.  
3 : Specify Y000, Y001, or Y002*1 transistor output from the main unit, or specify Y000, Y001, Y002*3, or  
Y003*3 from a high-speed output special adapter*2.  
*1. Y002 is not available in 14-point and 24-point type FX3G PLC.  
*2. High-speed input/output special adapters can be connected only to the FX3U PLC.  
*3. To use Y002 and Y003 of a high-speed output special adapter, connect a second high-speed output  
special adapter.  
Note:  
• To use an FX3U Series main unit of relay output type, be sure to connect a high-speed output special  
adapter. Differential line drive type outputs will be used for the outputs of the high-speed output special  
adapter.  
B - 89  
   
6 Mechanical Zero Return (DSZR/ZRN Instruction)  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
6.2 DOG Search Zero Return (DSZR Instruction)  
4 : When a high-speed output special adapter is used as a destination for pulse output on a FX3U PLC,  
use the output shown in the following table for rotation direction signals.  
When a built-in transistor output is used as a destination for pulse output on a FX3U/FX3UC/FX3G PLC,  
use transistor output for signals rotation direction.  
For the outputs applicable with a High-speed output special adapter, refer to Section 4.9.  
High-speed output special  
adapter connection position  
Pulse output  
Rotation direction output  
= Y000  
= Y001  
= Y002  
= Y003  
D
2
D
1
= Y004  
= Y005  
= Y006  
= Y007  
1st adapter  
D2  
D1  
D2  
D1  
2nd adapter  
D2  
D1  
6.2.2 List of Related devices  
1. Special auxiliary relays  
The following table shows the related special auxiliary relays. Note that Y000, Y001, Y002, and Y003 are  
devices that determine the pulse output destinations.  
Device number  
Function  
Attribute  
Refer to  
*1  
*2  
Y000  
Y001  
M8029  
M8329  
Y002  
Y003  
Subsection  
4.4.2  
"Instruction execution complete" flag  
Read only  
Read only  
Read only  
Drivable  
Drivable  
Drivable  
Drivable  
Drivable  
Drivable  
Read only  
Drivable  
Drivable  
Subsection  
4.4.2  
"Instruction execution abnormal end" flag  
Subsection  
4.4.3  
M8340 M8350 M8360 M8370 "Pulse output monitor" (BUSY/READY) flag  
Subsection  
4.3.4  
*3  
M8341 M8351 M8361 M8371  
M8342 M8352 M8362 M8372  
CLEAR signal output function enable  
Subsection  
4.3.3  
*3  
Zero return direction specification  
Subsection  
4.3.1  
M8343 M8353 M8363 M8373 Forward limit  
M8344 M8354 M8364 M8374 Reverse limit  
Subsection  
4.3.1  
Subsection  
4.3.5  
*3  
M8345 M8355 M8365 M8375  
M8346 M8356 M8366 M8376  
DOG signal logic reverse  
Subsection  
4.3.6  
*3  
Zero point signal logic reverse  
Subsection  
4.4.4  
M8348 M8358 M8368 M8378 Positioning instruction activation  
Subsection  
4.3.2  
*3  
M8349 M8359 M8369 M8379  
M8464 M8465 M8466 M8467  
Pulse output stop command  
CLEAR signal device specification function  
Subsection  
4.3.4  
*3, *4  
enabled  
*1. Y002 is not available in 14-point and 24-point type FX3G PLC.  
*2. Devices related to Y003 (pulse output destination) are only valid if two FX3U-2HSY-ADP adapters are  
connected to the FX3U PLC.  
*3. Cleared when PLC switches from RUN to STOP.  
*4. Only available for FX3U/FX3UC PLC Ver. 2.20 or later and FX3G PLC.  
B - 90  
 
6 Mechanical Zero Return (DSZR/ZRN Instruction)  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
6.2 DOG Search Zero Return (DSZR Instruction)  
A
B
2. Special data registers  
The following table shows the related special data registers. Note that Y000, Y001, Y002, and Y003 are  
devices that determine the pulse output destinations.  
Device number  
Data  
length value  
Initial  
Function  
Refer to  
*1  
*2  
Y000  
Low-  
Y001  
Y002  
Y003  
Low-  
Low-  
order  
Low-  
order  
D8340  
D8341  
D8342  
D8343  
D8344  
D8345  
D8346  
D8347  
D8348  
D8349  
D8350  
D8351  
D8352  
D8353  
D8354  
D8355  
D8356  
D8357  
D8358  
D8359  
D8360  
D8361  
D8362  
D8363  
D8364  
D8365  
D8366  
D8367  
D8368  
D8369  
D8370  
D8371  
D8372  
D8373  
D8374  
D8375  
D8376  
D8377  
D8378  
D8379  
order  
order  
Current value  
register (PLS)  
Subsection  
4.4.1  
32-bit  
0
0
High-  
order  
High-  
order  
High-  
order  
High-  
order  
Bias speed  
(Hz)  
Subsection  
4.2.6  
16-bit  
Apx.  
Low-  
order  
Low-  
order  
Low-  
order  
Low-  
order  
Maximum  
speed (Hz)  
Subsection  
4.2.5  
32-bit 100,000  
High-  
order  
High-  
order  
High-  
order  
High-  
order  
Creep speed  
(Hz)  
Subsection  
4.2.4  
16-bit  
1000  
Low-  
order  
Low-  
order  
Low-  
order  
Low-  
order  
Zero return  
speed (Hz)  
Subsection  
4.2.3  
32-bit 50,000  
High-  
order  
High-  
order  
High-  
order  
High-  
order  
Acceleration  
time (ms)  
Subsection  
4.2.7  
16-bit  
16-bit  
100  
100  
Deceleration  
time (ms)  
Subsection  
4.2.8  
CLEARsignal  
device  
specification  
Subsection  
4.3.4  
16-bit  
-
D8464  
D8465  
D8466  
D8467  
*3  
*1. Y002 is not available in 14-point and 24-point type FX3G PLC.  
*2. Devices related to Y003 (pulse output destination) are only valid if two FX3U-2HSY-ADP adapters are  
connected to the FX3U PLC.  
*3. Only available for FX3U/FX3UC PLC Ver. 2.20 or later and FX3G PLC.  
B - 91  
6 Mechanical Zero Return (DSZR/ZRN Instruction)  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
6.2 DOG Search Zero Return (DSZR Instruction)  
6.2.3 Function and Operation  
Command  
input  
FNC 150  
DSZR  
S
1•  
S
2•  
D
1•  
D
2•  
For details on the maximum speed, bias speed, acceleration time, and deceleration time, refer to  
Subsection 4.2.5 to Subsection 4.2.8.  
Deceleration  
time  
Acceleration  
time  
Initial value:  
100ms  
Initial value:  
100 ms  
Maximum speed  
Initial value: 100,000Hz  
Zero return speed  
Initial value: 50,000Hz  
Current value register = "0"  
Creep speed  
Initial value:  
1,000Hz  
Bias speed  
Initial value: 0Hz  
S
1•  
DOG  
Rear end  
Front end  
Zero-phase signal  
(X000 - X007)  
S
2•  
1 ms or less  
CLEAR signal  
20 ms + 1 scan time (ms)  
1) For  
S1  
, specify the near-point signal (DOG) input device number. To specify the logic of this near-  
point signal (DOG), turn the "DOG signal logic reverse" relay on or off as shown in the following table.  
Pulse output  
destination device  
"DOG signal logic  
reverse" relay  
Description  
M8345  
M8355  
M8365  
M8375  
= Y000  
= Y001  
= Y002  
= Y003  
D
1
OFF: Positive logic (Turning on the input will turn on the  
near-point signal.)  
D1  
ON:  
Negative logic (Turning off the input will turn on the  
near-point signal.)  
D1  
D1  
• When an input (X000 to X017)*1 from the main unit is used for the near-point signal (DOG)  
, the rear end of the near-point signal (DOG) will be monitored (detected) at 1-ms intervals  
S1  
(interruption).  
Under the following condition, however, monitoring (detection) of the near-point signal (DOG) rear end  
will be affected by the input constant or the scan time of the sequence program:  
- An input number of X020 or below (or other device (auxiliary relay, etc.)) is specified.  
*1. Specify X000 to X007 for FX3U-16M, FX3UC-16M.  
Specify X000 to X007 for FX3G PLC (main unit).  
B - 92  
 
6 Mechanical Zero Return (DSZR/ZRN Instruction)  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
6.2 DOG Search Zero Return (DSZR Instruction)  
A
B
2) For  
S
2
, specify the zero-phase signal input number in the range of X000 to X007. To specify the logic  
of this zero-phase signal, turn the "Zero point signal logic reverse" relay on or off as shown in the  
following table.  
If the same input is specified for both the near-point signal and the zero-phase signal, the logic of the zero-  
phase signal will be specified by the device of the near-point signal (DOG), and not by one of the following  
devices. In this case, the operation will be performed at the front and rear ends of the near-point signal  
(DOG) without using the zero-phase signal. This is similar to the operation of the ZRN instruction.  
Pulse output  
destination device  
"Zero point signal logic  
reverse" flag  
Description  
M8346  
M8356  
M8366  
M8376  
= Y000  
= Y001  
= Y002  
= Y003  
D
1
OFF: Positive logic (Turning on the input will turn on the  
near-point signal.)  
D1  
Apx.  
ON:  
Negative logic (Turning off the input will turn on the  
near-point signal.)  
D1  
D1  
3) For  
4) For  
D
1
, specify a pulse output number in the range of Y000 to Y003.  
, specify the rotation direction signal output device number.  
D2  
When a high-speed output special adapter is used as a destination for pulse output on a FX3U PLC, use  
the output shown in the following table for rotation direction signals.  
When a built-in transistor output is used as a destination for pulse output on a FX3U/FX3UC/FX3G PLC,  
use transistor output for signals rotation direction.  
High-speed output special  
adapter connection position  
Rotation direction  
output  
Pulse output  
= Y000  
= Y001  
= Y002  
= Y003  
D
2
D
1
= Y004  
= Y005  
= Y006  
= Y007  
1st adapter  
2nd adapter  
D2  
D1  
D2  
D1  
D2  
D1  
The rotation direction ON/OFF status of the specified device is shown in the following table.  
During instruction execution, however, do not use the output  
D2  
for other purposes.  
ON/OFF status of device  
Rotation direction (increase/decrease current value)  
D
2
specified by  
D
1
Forward rotation (Outputting pulses from  
current value.)  
will increase the  
will decrease the  
ON  
D1  
Reverse rotation (Outputting pulses from  
current value.)  
OFF  
5) Zero return direction  
To specify the zero return direction, turn "zero return direction specification" relay on or off as shown in  
the following table.  
Pulse output  
destination device  
"Zero return direction  
specification" relay  
Description  
M8342  
M8352  
M8362  
M8372  
= Y000  
= Y001  
= Y002  
= Y003  
D
1
To perform zero return in the  
D1  
forward rotation direction:  
To perform zero return in the  
reverse rotation direction:  
Turn on the relay.  
Turn off the relay.  
D1  
D1  
B - 93  
6 Mechanical Zero Return (DSZR/ZRN Instruction)  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
6.2 DOG Search Zero Return (DSZR Instruction)  
6) CLEAR signal output  
This instruction can output the CLEAR signal after stopping at the origin.  
If it is necessary to output the CLEAR signal at the completion of zero return, turn on the "CLEAR signal  
output function enable" relay (see the following table).  
Use an FX3U/FX3UC PLC Ver.2.20 or later or FX3G PLC to specify the CLEAR signal output device.  
a) If it is not necessary to use the CLEAR signal device specification function, or if an FX3UC PLC below  
Ver.2.20 is used.  
Status of "CLEAR signal  
device specification function  
Status of "CLEAR  
signal output function  
enable" relay  
Pulse output  
destination device  
CLEAR signal device  
number  
*1  
enable" relay  
M8341=ON  
M8351=ON  
M8361=ON  
M8371=ON  
M8464=OFF  
M8465=OFF  
M8466=OFF  
M8467=OFF  
Y004  
Y005  
Y006  
Y007  
= Y000  
= Y001  
= Y002  
= Y003  
D
1
D1  
D1  
D1  
*1.  
Use an FX3U/FX3UC PLC Ver.2.20 or later or FX3G PLC to use the "CLEAR signal device specification function  
enable" relay.  
b) If it is necessary to use the CLEAR signal device specification  
function:  
Turn on the "CLEAR signal device specification function enable"  
relay to specify the CLEAR signal output device (output Y) for the pulse output destination device  
using the CLEAR signal device specification register.  
For an example program, refer to Subsection 4.3.4 or Subsection 4.5.1.  
Status of "CLEAR signal  
device specification function  
Status of "CLEAR  
signal output function  
enable" relay  
Pulse output  
destination device  
CLEAR signal device  
specification register  
*1  
enable" relay  
M8341=ON  
M8351=ON  
M8361=ON  
M8371=ON  
M8464=ON  
M8465=ON  
M8466=ON  
M8467=ON  
D 8464  
D 8465  
D 8466  
D 8467  
= Y000  
= Y001  
= Y002  
= Y003  
D
1
D1  
D1  
D1  
7) Zero return speed  
Use the devices shown in the following table to set the zero return speed. Be sure to set the zero return  
speed so that the relation with the other speeds is "bias speed zero return speed maximum speed".  
-
If "zero return speed > maximum speed", the operation will be performed at the maximum speed.  
Pulse output  
destination device  
Bias speed  
Zero return speed  
Maximum speed  
Initial value  
D8342  
D8352  
D8362  
D8372  
D8347,D8346  
D8357,D8356  
D8367,D8366  
D8377,D8376  
D8344,D8343  
D8354,D8353  
D8364,D8363  
D8374,D8373  
= Y000  
= Y001  
= Y002  
= Y003  
D
1
D1  
50,000(Hz)  
D1  
D1  
8) Creep speed  
Use the devices shown in the following table to set the creep speed. Be sure to set the creep speed so  
that the relation with the other speeds is "bias speed creep speed maximum speed".  
Pulse output  
destination device  
Bias speed  
Creep speed  
Maximum speed  
Initial value  
D8342  
D8352  
D8362  
D8372  
D8345  
D8355  
D8365  
D8375  
D8344,D8343  
D8354,D8353  
D8364,D8363  
D8374,D8373  
= Y000  
= Y001  
= Y002  
= Y003  
D
1
D1  
1,000(Hz)  
D1  
D1  
B - 94  
6 Mechanical Zero Return (DSZR/ZRN Instruction)  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
6.2 DOG Search Zero Return (DSZR Instruction)  
A
B
1. Zero return operation  
Zero return operation is described below assuming that Y000 is specified as the pulse output destination  
device . If Y001, Y002, or Y003 is specified, it is necessary to change the output number of each related  
relay (special auxiliary relay, special data register) below.  
For details on related relays, refer to Section 4.1 to Section 4.4, or Subsection 6.2.2.  
D1  
1) Specify the zero return direction.  
Turn the "zero return direction specification" relay (M8342) on or off to specify the zero return direction.  
2) Execute the DSZR instruction to perform zero return.  
3) Transfer operation will be performed in the direction specified by the "zero return direction designation"  
flag (M8342) at the speed specified by the "zero return speed designation" device (D8347, D8346).  
is turned on*1, the speed will be reduced to the creep  
Apx.  
4) If the near-point signal (DOG) specified by  
speed (D8345).  
S1  
5) After turning the near-point signal (DOG)  
S1  
OFF*1, if the zero-phase signal specified by  
S2  
is  
turned on*2, the pulse outputting operation will immediately stop.  
If the same input is specified for both the near-point signal and the zero-phase signal, turning the near-  
point signal (DOG) OFF*1 will immediately stop the pulse outputting operation (just like the ZRN  
instruction where the zero-phase signal is not used).  
6) If the CLEAR signal output function (M8341) is enabled (set to ON), the CLEAR signal (Y004) will be  
turned on within 1 ms after stopping the pulse outputting operation, and will be kept ON for "20 ms + 1  
scan time (ms)".  
7) The current value register (D8341, D8340) will be reset to "0" (will be cleared).  
8) The "Instruction execution complete" flag (M8029) will turn on, and the zero return operation will be  
completed.  
For details on the "Instruction execution complete" flag, refer to Subsection 4.7.4.  
Deceleration  
time  
(D8349)  
Acceleration  
time  
(D8348)  
Zero return  
direction  
M8342=OFF  
Maximum speed  
(D8344,D8343)  
Zero return speed  
(D8347,D8346)  
Creep speed  
(D8345)  
Current value register = "0"  
(D8341,D8340)  
Bias speed  
(D8342)  
S1•  
DOG  
Rear end  
Front end  
Zero-phase signal  
S2•  
CLEAR signal  
(Y004)  
1 ms or less  
20 ms + 1 scan time (ms)  
"Instruction  
execution  
complete"  
flag M8029  
ON  
When the instruction is turned off, M8029 is turned off.  
*1. This step is described assuming that the "DOG signal logic reverse" relay (M8345) is off. If this flag is  
on, it is necessary to change the expression "on" to "off", and "off" to "on".  
*2. This step is described assuming that the "Zero point signal logic reverse" relay (M8346) is off. If this  
flag is on, it is necessary to change the expression "on" to "off", and "off" to "on".  
B - 95  
6 Mechanical Zero Return (DSZR/ZRN Instruction)  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
6.2 DOG Search Zero Return (DSZR Instruction)  
2. DOG search function  
If the forward rotation limit and the reverse rotation limit are set, the DOG search function can be used for  
zero return. The zero return operation depends on the zero return start position.  
Zero return  
direction  
Rear end  
Front end  
DOG  
Reverse rotation  
limit 1  
Forward rotation  
limit 1  
Reverse rotation limit  
Forward rotation limit  
Operation in  
reverse rotation  
direction  
4)  
3)  
2)  
1)  
Origin  
Operation in  
forward rotation  
direction  
1) If the start position is before the DOG:  
a) When the zero return instruction is executed, zero return will be started.  
b) Transfer operation will be started in the zero return direction at the zero return speed.  
c) If the front end of the DOG is detected, the speed will be reduced to the creep speed.  
d) After detecting the rear end of the DOG, if the first zero-phase signal is detected, the operation will be  
stopped.  
2) If the start position is in the DOG area:  
a) When the zero return instruction is executed, zero return will be started.  
b) Transfer operation will be started in the opposite direction of the zero return direction at the zero return  
speed.  
c) If the front end of the DOG is detected, the speed will decelerate and the operation will stop. (The  
workpiece will come out of the DOG area.)  
d) Transfer operation will be restarted in the zero return direction at the zero return speed (and the  
workpiece will enter the DOG area again).  
e) If the front end of the DOG is detected, the speed will be reduced to the creep speed.  
f) After detecting the rear end of the DOG, if the first zero-phase signal is detected, the operation will be  
stopped.  
3) If the start position is in the near-point signal OFF area (after the DOG):  
a) When the zero return instruction is executed, zero return will be started.  
b) Transfer operation will be started in the zero return direction at the zero return speed.  
c) If the reverse rotation limit 1 (reverse rotation limit) is detected, the speed will decelerate, and the  
operation will stop.  
d) Transfer operation will be started in the opposite direction of the zero return direction at the zero return  
speed.  
e) If the front end of the DOG is detected, the speed will be reduced and the operation will be stopped.  
(The workpiece will detect the DOG and then come out of the DOG area.)  
f) Transfer operation will be restarted in the zero return direction at the zero return speed. (The  
workpiece will enter the DOG area again.)  
g) If the front end of the DOG is detected, the speed will be reduced to the creep speed.  
h) After detecting the rear end of the DOG, if the first zero-phase signal is detected, the operation will be  
stopped.  
B - 96  
6 Mechanical Zero Return (DSZR/ZRN Instruction)  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
6.2 DOG Search Zero Return (DSZR Instruction)  
A
B
4) If the limit switch in the zero return direction turns ON (if the start position is at forward rotation limit 1 or  
reverse rotation limit 1):  
a) When the zero return instruction is executed, zero return will be started.  
b) Transfer operation will be started in the opposite direction of the zero return direction at the zero return  
speed.  
c) If the front end of the DOG is detected, the speed will decelerate and the operation will stop. (The  
workpiece will detect the DOG and then come out of the DOG area.)  
d) Transfer operation will be restarted in the zero return direction at the zero return speed (and the  
workpiece will enter the DOG area again).  
e) If the front end of the DOG is detected, the speed will be reduced to the creep speed.  
f) After detecting the rear end of the DOG, if the first zero-phase signal is detected, the operation will be  
stopped.  
Apx.  
B - 97  
6 Mechanical Zero Return (DSZR/ZRN Instruction)  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
6.2 DOG Search Zero Return (DSZR Instruction)  
6.2.4 Important Points  
For important programming points, refer to Section 4.7.  
• If an input (X000 to X017)*1 from the main unit is used for the near-point signal (DOG)  
, the rear end  
S1  
of the near-point signal (DOG) will be monitored (detected) at 1ms intervals (interruption).  
Under the following condition, however, monitoring (detection) of the near-point signal (DOG) rear end will  
be affected by the input time constant or the scan time of the sequence program:  
- An input number of X020 or below or other device (auxiliary relay, etc.) is specified.  
*1. Specify X000 to X007 for FX3U-16M, FX3UC-16M.  
Specify X000 to X007 for FX3G PLC (main unit).  
• Properly set the DOG so that the near-point signal (DOG) can be kept at the ON status until the speed is  
reduced to the creep speed.  
This instruction will start speed reduction at the front end of the DOG, and will stop the operation at the rear  
end of the DOG or at detection of the first zero-phase signal after passing the rear end of the DOG.  
The current value register will then be cleared (reset to "0").  
If the speed is not reduced to the creep speed before detecting the rear end of the DOG, the operation may  
not be stopped at the specified position.  
• Use the near-point signal (DOG) between the reverse rotation limit 1 (LSR) and the forward rotation limit 1  
(LSF).  
The intended operation may not be performed if the relationship among the near-point signal (DOG),  
reverse rotation limit 1 (LSR) and forward rotation limit 1 (LSF) is not as shown in the figure below.  
Reverse rotation limit 2 Reverse rotation limit 1  
Forward rotation limit 1 Forward rotation limit 2  
(Servo amplifier side)  
(Programmable  
controller side)  
LSR  
(Programmable  
controller side)  
LSF  
(Servo amplifier side)  
DOG  
Servo motor  
Reverse rotation  
Forward rotation  
• The input device specified for the near-point signal  
for the following items:  
S1  
or the zero-phase signal  
S2  
cannot be used  
- High-speed counter  
- Input interruption  
- Pulse catch  
- SPD instruction  
- DVIT instruction*2  
- ZRN instruction  
*2. Only available for FX3U and FX3UC PLCs.  
• Since the zero-phase signal of the servo motor is used, adjust the relation between the rear end of the  
DOG and the zero-phase signal as shown in the following figure. If fine adjustment of the origin position is  
needed, adjust the position of the near-point signal (DOG).  
Rear end  
DOG  
Zero-phase signal  
• The creep speed should be slow enough.  
The zero return instruction will not decelerate at the stop point. Therefore, if the creep speed is not slow  
enough, the operation may not stop at the specified position due to inertia.  
• If an operand is changed during instruction execution, the change will be ignored and the operation will not  
be affected. To change the operation, turn off the command contact of the instruction, and then turn it on  
again.  
• If the instruction activation contact is turned off during the zero return operation, the speed will decelerate  
and the operation will stop. In this case, the "Instruction execution complete" flag (M8029) will not be  
turned on.  
B - 98  
 
6 Mechanical Zero Return (DSZR/ZRN Instruction)  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
6.2 DOG Search Zero Return (DSZR Instruction)  
A
B
• If the "pulse output monitor" (BUSY/READY) flag is on, a positioning instruction (including PLSR and  
PLSY) that uses the same output cannot be executed.  
If the "pulse output monitor" (BUSY/READY) flag is still on after the instruction activation contact is turned  
off, do not execute a positioning instruction (including PLSR and PLSY instructions) that uses the same  
output number.  
• In the following case, the "Instruction execution abnormal end" flag (M8329) will be turned on, and the  
execution of the instruction will be completed.  
For details on the "Instruction execution abnormal end" flag, refer to Subsection 4.7.4.  
- If the DOG search function cannot detect the near-point signal (DOG), the speed will decelerate and the  
operation will stop.  
In this case, "Instruction execution abnormal end" flag (M8329) will be turned on, and the execution of  
the instruction will be completed.  
Apx.  
B - 99  
6 Mechanical Zero Return (DSZR/ZRN Instruction)  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
6.3 Zero Return (ZRN Instruction)  
6.3  
Zero Return (ZRN Instruction)  
Use this instruction to change the CLEAR signal output destination with an FX3U/FX3UC PLC Ver.2.20 or later  
or an FX3G PLC.  
6.3.1 Instruction Format  
1. Instruction Format  
16-bit  
32-bit  
Instruction  
symbol  
Instruction  
symbol  
FNC 156  
ZRN  
Execution condition  
Execution condition  
instruction  
instruction  
D
DZRN  
Continuous  
execution  
type  
Continuous  
execution  
type  
ZRN  
-
9 steps  
17 steps  
ZERO RETURN  
-
Command  
input  
FNC156  
ZRN  
S
1•  
S
2•  
S
3•  
D•  
2. Data setting  
Operand type  
Description  
Data type  
*1  
Specifies the zero return speed.  
S1  
BIN16/32-bit  
Specifies the creep speed. (Setting range: 10 to 32,767 Hz)  
Specifies an input number for the near-point signal(DOG).  
Specifies the pulse output number.  
S
2
S3  
Bit  
D
*1. Setting range : 10 to 32,767 Hz for 16-bit operation  
For 32-bit operation, however, the setting range should be as shown in the following  
table.  
Pulse output destination  
High-speed output special adapter  
FX3G/FX3U/FX3UC PLC Main unit (transistor output)  
Setting range  
10 to 200,000(Hz)  
10 to 100,000(Hz)  
FX3U PLC  
3. Devices  
Bit device  
System user  
X Y M T C S D.b KnX KnY KnM KnS  
Word device  
Others  
Real Char-  
num- acter Pointer  
ber string  
Operand  
type  
Con-  
stant  
Special  
unit  
Digit designation  
System user  
Index  
T
3
3
C
3
3
D
3
3
R
U\Gꢁ  
V
3
3
Z
3
3
Modify K H  
E
""  
P
3
3
3
3
3
3
3
3
3 3  
3
3
3
3 3  
3 3  
S1  
3 3  
S2  
3 3 3  
3 1  
S3  
2
3
D
1 : D.b is available only in FX3U and FX3UC PLCs. However, index modifiers (V and Z) are not available.  
2 : Specify Y000, Y001, or Y002*1 transistor output from the main unit, or specify Y000, Y001, Y002*3, or  
Y003*3 from a high-speed output special adapter*2.  
*1. Y002 is not available in 14-point and 24-point type FX3G PLC.  
*2. High-speed input/output special adapters can be connected only to the FX3U PLC.  
*3. To use Y002 and Y003 of a high-speed output special adapter, connect a second high-speed output  
special adapter.  
3 : Only available for FX3U and FX3UC PLCs.  
Note:  
• To use an FX3U Series main unit of relay output type, be sure to connect a high-speed output special  
adapter. Differential line drive type outputs will be used for the outputs of the high-speed output special  
adapter.  
B - 100  
   
6 Mechanical Zero Return (DSZR/ZRN Instruction)  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
6.3 Zero Return (ZRN Instruction)  
A
B
6.3.2 List of Related devices  
1. Special auxiliary relays  
The following table shows the related special auxiliary relays. Note that Y000, Y001, Y002, and Y003 are  
devices that determine the pulse output destinations.  
Device number  
Function  
Attribute  
Refer to  
*1  
*2  
Y000  
Y001  
M8029  
M8329  
Y002  
Y003  
Subsection  
4.4.2  
"Instruction execution complete" flag  
Read only  
Read only  
Read only  
Drivable  
Subsection  
4.4.2  
"Instruction execution abnormal end" flag  
Apx.  
Subsection  
4.4.3  
M8340 M8350 M8360 M8370 "Pulse output monitor" (BUSY/READY) flag  
Subsection  
4.3.4  
*3  
M8341 M8351 M8361 M8371  
CLEAR signal output function enable  
Subsection  
4.3.1  
M8343 M8353 M8363 M8373 Forward limit  
M8344 M8354 M8364 M8374 Reverse limit  
Drivable  
Subsection  
4.3.1  
Drivable  
Subsection  
4.4.4  
M8348 M8358 M8368 M8378 Positioning instruction activation  
Read only  
Drivable  
Subsection  
4.3.2  
*3  
M8349 M8359 M8369 M8379  
M8464 M8465 M8466 M8467  
Pulse output stop command  
CLEAR signal device specification function  
Subsection  
4.3.4  
Drivable  
*3, *4  
enable  
*1.  
*2.  
Y002 is not available in 14-point and 24-point type FX3G PLC.  
Devices related to Y003 (pulse output destination) are only valid if two FX3U-2HSY-ADP adapters are connected to the FX3U  
PLC.  
*3.  
*4.  
Cleared when PLC switches from RUN to STOP.  
Only available for FX3U/FX3UC PLC Ver. 2.20 or later and FX3G PLC.  
2. Special data registers  
The following table shows the related special data registers. Note that Y000, Y001, Y002, and Y003 are  
devices that determine the pulse output destinations.  
Device number  
Data  
length value  
Initial  
Function  
Refer to  
*1  
*2  
Y000  
Low-  
Y001  
Y002  
Y003  
Low-  
order  
Low-  
order  
Low-  
order  
D8340  
D8350  
D8351  
D8360  
D8361  
D8370  
D8371  
order  
Current value  
register (PLS)  
Subsection  
4.4.1  
32-bit  
0
0
High-  
order  
High-  
order  
High-  
order  
High-  
order  
D8341  
Bias speed  
(Hz)  
Subsection  
4.2.6  
D8342  
D8352  
D8362  
D8372  
16-bit  
Low-  
order  
Low-  
order  
Low-  
order  
Low-  
order  
D8343  
D8344  
D8353  
D8354  
D8363  
D8364  
D8373  
D8374  
Maximum  
speed (Hz)  
Subsection  
4.2.5  
32-bit 100,000  
High-  
order  
High-  
order  
High-  
order  
High-  
order  
Acceleration  
time (ms)  
Subsection  
4.2.7  
D8348  
D8358  
D8368  
D8378  
16-bit  
16-bit  
100  
100  
Deceleration  
time (ms)  
Subsection  
4.2.8  
D8349  
D8464  
D8359  
D8465  
D8369  
D8466  
D8379  
D8467  
signal  
CLEAR  
device  
Subsection  
4.3.4  
16-bit  
-
*3  
specification  
*1.  
*2.  
Y002 is not available in 14-point and 24-point type FX3G PLC.  
Devices related to Y003 (pulse output destination) are only valid if two FX3U-2HSY-ADP adapters are connected to the  
FX3U PLC.  
*3.  
Only available for FX3U/FX3UC PLC Ver. 2.20 or later and FX3G PLC.  
B - 101  
 
6 Mechanical Zero Return (DSZR/ZRN Instruction)  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
6.3 Zero Return (ZRN Instruction)  
6.3.3 Function and operation  
Command  
input  
FNC156  
ZRN  
S
1•  
S
2•  
S
3•  
D•  
For details on the maximum speed, bias speed, acceleration time and deceleration time, refer to  
Subsection 4.2.5 to Subsection 4.2.8.  
Deceleration  
time  
Acceleration  
time  
Maximum speed  
Zero return speed  
S
1•  
Creep speed  
S
2•  
Bias speed  
DOG  
S
3•  
Rear end  
Front end  
CLEAR signal  
1 ms or less  
20 ms + 1 scan time (ms)  
"Instruction  
execution  
complete" flag  
M8029  
ON  
When the instruction is turned off, M8029 is turned off.  
1) For  
S1  
, specify the zero return speed.  
If the set zero return speed value is more than the maximum speed value, the operation will be performed  
at the maximum speed.  
Setting range  
16-bit operation  
When a high-speed output special  
10 to 32,767(Hz)  
10 to 200,000(Hz)  
adapter is used  
32-bit operation  
When a transistor output from the  
main unit is used  
10 to 100,000(Hz)  
Note that the zero return speeds shown in the following table will not apply.  
Pulse output destination device  
Zero return speed  
D8347,D8346  
D8357,D8356  
D8367,D8366  
D8377,D8376  
= Y000  
= Y001  
= Y002  
= Y003  
D
1
D1  
D1  
D1  
2) For  
S2  
, specify the creep speed.  
Setting range: 10 to 32,767 Hz  
B - 102  
 
6 Mechanical Zero Return (DSZR/ZRN Instruction)  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
6.3 Zero Return (ZRN Instruction)  
A
B
3) For  
S
3
, specify the near-point signal (DOG) input device number ( NO contact).  
Turning on the near-point signal will reduce the speed to the creep speed. Turning off the near-point  
signal will complete the zero return operation.  
For details, refer to "1. Zero return operation".  
• If an input (X000 to X007) of the main unit is specified for the input signal, the PLC interruption function  
will be used to stop the operation. (To output the CLEAR signal, turn on the "CLEAR signal output  
function enable" relay.)  
Under the following condition, however, operation may be affected by the input constant or the scan  
time of the sequence program, and the operation, therefore, may not be stopped exactly at the origin.  
-An input number of X010 or below (or other device (auxiliary relay, etc.)) is specified.  
• If an input relay X010 or higher is specified for the near-point signal, the input filter (10 ms) will be  
applied.  
Apx.  
4) For  
D
, specify a pulse output number in the range of Y000 to Y003.  
5) Zero return direction  
For this instruction, the zero return direction is set to the reverse rotation direction.  
(During zero return operation, the value indicated in the current value register will be decreased.)  
To perform zero return in the forward rotation direction*1, follow the example program below to control the  
direction output.  
For programming details, refer to Section 4.7.  
To use the main unit (transistor output), refer to Section 4.8.  
To use a high-speed output special adapter, refer to Section 4.9.  
a) Turn on Yꢁꢁꢁ (rotational direction signal).  
b) Refresh Yꢁꢁꢁ output using the REF (FNC50) instruction.  
c) Execute the ZRN instruction (zero return instruction).  
d) With the execution completion flag (M8029) of the ZRN instruction (zero return instruction), reset  
Yꢁꢁꢁ (rotational direction signal).  
Example program:  
In the program shown below, Y004 is specified as the rotation direction signal output device for Y000.  
Command  
input  
RST  
RST  
SET  
Y000  
M10  
M11  
Y004  
K8  
M8340  
Turns on (sets) Y004 as the  
rotational direction signal of Y000  
(pulse output destination).  
a)  
b)  
Y000 output  
pulse monitor  
Refreshes Y000 to Y007.  
Executes ZRN instruction.  
FNC 50  
REFP  
c)  
d)  
FNC156  
DZRN  
S
1•  
S
2•  
S
3•  
Y000  
Y004  
M10  
Y004  
M11  
Resets the rotational direction  
signal (Y004) using the instruction  
execution complete flag.  
M8029  
M8329  
RST  
SET  
RST  
SET  
Origin data reading completion flag  
Resets the rotational direction signal  
(Y004) using the instruction  
execution abnormal end flag.  
Abnormal end of zero return  
*1. The pulses being output will always decrease the current value.  
B - 103  
6 Mechanical Zero Return (DSZR/ZRN Instruction)  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
6.3 Zero Return (ZRN Instruction)  
6) CLEAR signal output  
This instruction can output the CLEAR signal after stopping at the origin. If it is necessary to output the  
CLEAR signal at the completion of zero return, turn on the "CLEAR signal output function enable" relay  
(see the following table). Use an FX3U/FX3UC PLC Ver.2.20 or later or FX3G PLC to specify the CLEAR  
signal output device.  
a) If it is not necessary to use the CLEAR signal device specification function, or if an FX3UC PLC of  
below Ver.2.20 is used:  
Status of "CLEAR signal  
device specification  
Status of "CLEAR  
signal output function  
enable" relay  
Pulse output  
destination device  
CLEAR signal device  
number  
*1  
function enable" relay  
M8341=ON  
M8351=ON  
M8361=ON  
M8371=ON  
M8464=OFF  
M8465=OFF  
M8466=OFF  
M8467=OFF  
Y004  
Y005  
Y006  
Y007  
= Y000  
= Y001  
= Y002  
= Y003  
D
1
D1  
D1  
D1  
*1. Use an FX3U/FX3UC PLC Ver.2.20 or later or FX3G PLC to use the "CLEAR signal device specification function  
enable" relay.  
b) If it is necessary to use the CLEAR signal device specification  
function:  
Turn on the "CLEAR signal device specification function enable"  
relay to specify the CLEAR signal output device (output Y) for the  
pulse output destination device using the CLEAR signal device specification register.  
For the example of a program, refer to Subsection 4.3.4 or Subsection 4.5.1.  
Status of "CLEAR  
signal output function  
enable" relay  
Status of "CLEAR signal  
device specification  
function enable" relay  
Pulse output  
destination device  
CLEAR signal device  
specification register  
M8341=ON  
M8351=ON  
M8361=ON  
M8371=ON  
M8464=ON  
M8465=ON  
M8466=ON  
M8467=ON  
D 8464  
D 8465  
D 8466  
D 8467  
= Y000  
= Y001  
= Y002  
= Y003  
D
1
D1  
D1  
D1  
B - 104  
6 Mechanical Zero Return (DSZR/ZRN Instruction)  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
6.3 Zero Return (ZRN Instruction)  
A
B
1. Zero return operation  
Zero return operation is described below assuming that Y000 is specified as the pulse output destination  
device . If Y001, Y002, and Y003 are specified, it is necessary to change the output number of each  
related relay (special auxiliary relay, special data register) below.  
For details on related flags, refer to Section 4.1 to Section 4.4, or Subsection 6.2.2.  
D
1) Execute the ZRN instruction to carry out zero return.  
2) Transfer operation will be performed at the zero return speed specified by  
S1  
.
3) If the near-point signal (DOG) specified by  
speed specified by  
S3  
is turned on, the speed will be reduced to the creep  
S2  
.
4) If the near-point signal (DOG) specified by  
immediately stopped.  
S3  
is turned off, the pulse outputting operation will be  
Apx.  
5) If the CLEAR signal output function (M8341) is enabled (set to ON), the CLEAR signal (Y004) will be  
turned on within 1 ms after stopping the pulse outputting operation, and will be kept ON for "20 ms + 1  
scan time (ms)".  
6) The current value register (D8341, D8340) will be reset to "0" (will be cleared).  
7) "Instruction execution complete" flag will be turned on, and the zero return operation will be completed.  
For details on "Instruction execution complete" flag, refer to Subsection 4.7.4.  
Deceleration  
time  
(D8349)  
Acceleration  
time  
(D8348)  
Maximum speed  
(D8344,D8343)  
Zero return speed*1  
S
1•  
Creep speed  
S
2•  
Bias speed  
(D8342)  
DOG  
S
3•  
Rear end  
Front end  
CLEAR signal  
Y004  
1 ms or less  
20 ms + 1scan time (ms)  
"Instruction  
execution  
complete" flag  
M8029  
ON  
When the instruction is turned off, M8029 is turned off.  
*1. Note that the zero return speeds shown in the following table will not apply.  
Pulse output destination device  
Zero return speed  
D8347,D8346  
D8357,D8356  
D8367,D8366  
D8377,D8376  
= Y000  
= Y001  
= Y002  
= Y003  
D
1
D1  
D1  
D1  
B - 105  
6 Mechanical Zero Return (DSZR/ZRN Instruction)  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
6.3 Zero Return (ZRN Instruction)  
6.3.4 Important Points  
For important programming points, refer to Section 4.7.  
• If an input (X000 to X007) of the main unit is specified for the near-point input signal specified by  
PLC interruption function will be used to stop the operation.  
S3  
, the  
Under the following condition, however, operation may be affected by the input constant or the scan time of  
the sequence program.  
- An input number of X010 or below (or other device (auxiliary relay, etc.)) is specified.  
If input relay X010 or higher is specified for the near-point signal, the input filter (10 ms) will be applied.  
• If an input (X000 to X007) is specified for the near-point signal  
following items:  
S3  
, the input cannot be used for the  
- High-speed counter  
- Input interruption  
- Pulse catch  
- SPD instruction  
- DSZR instruction  
- DVIT instruction*1  
• Properly set the DOG so that the near-point signal (DOG) can be kept ON until the speed is reduced to the  
creep speed.  
This instruction will start speed reduction at the front end of the DOG, and will stop the operation at the rear  
end of the DOG. The current value register will then be cleared (reset to "0").  
If the speed is not reduced to the creep speed before detecting the rear end of the DOG, the operation may  
not be stopped at the specified position.  
• The creep speed should be slow enough.  
The zero return instruction will not decelerate at the stop point. Therefore, if the creep speed is not slow  
enough, the operation may not stop at the specified position due to inertia.  
• The DOG search function does not apply for this instruction. Therefore, start the zero return operation on  
the front side of the near-point signal. If it is necessary to use the DOG search function, use the DSZR  
instruction.  
• The zero-phase signal of the servo motor cannot be used. For this reason, if fine adjustment of the origin  
position is needed, adjust the position of the near-point signal (DOG).  
• If the instruction activation contact is turned off during zero return operation, the speed will decelerate and  
the operation will stop. In this case, the "Instruction execution complete" flag (M8029) will not turn on.  
• While the "pulse output monitor" (BUSY/READY) flag is on, a positioning instruction (including PLSR and  
PLSY) that uses the same output cannot be executed.  
If the "pulse output monitor" (BUSY/READY) flag is still on after the instruction activation contact is turned  
off, do not execute a positioning instruction (including PLSR and PLSY instructions) that uses the same  
output number.  
• In the following case, the "Instruction execution abnormal end" flag (M8329) will be turned on, and  
execution of the instruction will be completed.  
For details on the "Instruction execution abnormal end" flag, refer to Subsection 4.7.4.  
- If the forward limit relay or the reverse limit relay is turned on, the speed will decelerate and the  
operation will stop. In this case, the "Instruction execution abnormal end" flag (M8329) will be turned on  
when execution of the instruction is complete.  
- If the limit relay (forward limit relay or reverse limit relay) on the opposite side of the operation direction  
is turned on, the speed will decelerate and the operation will stop.  
In this case, the "Instruction execution abnormal end" flag (M8329) will be turned on when execution of  
the instruction is complete.  
*1. Only available for FX3U and FX3UC PLCs.  
B - 106  
 
7 Absolute Position Detection System (Absolute Current Value Read)-ABS  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
7.1 Instruction Format  
A
B
7. Absolute Position Detection System  
(Absolute Current Value Read)-ABS Instruction  
With the use of the servo absolute position detection system, the built-in positioning function uses the current  
ABS value read-out (ABS) instruction to read out the current value (absolute position (ABS) data) from the  
MELSERVO-H, -J2(S), or -J3 servo amplifier.  
For items to be observed in programming, refer to Section 4.7.  
For the servo amplifier and connection of the MELSERVO Series, refer to the Appendix and the  
examples of connection.  
Apx.  
7.1  
Instruction Format  
1. Instruction Format  
16-bit  
instruction  
32-bit  
Instruction  
symbol  
FNC 155  
ABS  
Instruction  
symbol  
Execution condition  
Execution condition  
instruction  
D
Continuous  
execution  
type  
DABS  
13 steps  
ABSOLUTE  
Command  
input  
FNC 155  
DABS  
S
D
1•  
D2•  
2. Data setting  
Operand type  
Description  
Data type  
Specifies the first number of the device that inputs the absolute position (ABS) data  
S
S
from the servo amplifier. Number of occupied points: 3 (first point for  
)
BIN16-bit  
BIN32-bit  
Specifies the first number of the device that outputs the absolute position (ABS) data  
D
1
D
1
control signal to the servo amplifier. Number of occupied points: 3 (first point for  
Specifies the absolute position (ABS) data (32-bit value) storage device number.  
)
D2  
3. Devices  
Bit device  
Word device  
Others  
Real Char-  
num- acter Pointer  
ber string  
Operand  
type  
Con-  
stant  
Special  
unit  
System user  
Digit designation  
System user  
Index  
X Y M T C S D.b KnX KnY KnM KnS  
T
C
D
R U/Gꢁ  
V
Z
Modify K H  
E
""  
P
3 3 3  
3 3  
3 1  
3
3
3
S
3 1  
D1  
3
3
3
3
3
3
3 2  
3
3
D2  
1 : D.b is available only in FX3U and FX3UC PLCs. However, index modifiers (V and Z) are not available.  
2 : Only available for to FX3U and FX3UC PLCs.  
B - 107  
   
7 Absolute Position Detection System (Absolute Current Value Read)-ABS Instruction  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
7.2 List of Related Devices  
7.2  
List of Related Devices  
For details on the related devices, refer to Section 4.1 to Section 4.4.  
1. Special auxiliary relays  
The following table shows the related special auxiliary relays.  
Note that Y000, Y001, Y002, and Y003 are devices that determine the pulse output destinations.  
For details on PLSY (FNC57), PWM (FNC58), and PLSR (FNC59) instructions, refer to the  
programming manual.  
Device number  
Function  
Attribute  
Refer to  
*1  
*2  
Y000  
Y001  
M8029  
M8329  
Y002  
Y003  
Subsection  
4.4.2  
"Instruction execution complete" flag  
Read only  
Read only  
Subsection  
4.4.2  
"Instruction execution abnormal end" flag  
*1. Y002 is not available in 14-point and 24-point type FX3G PLC.  
*2. Devices related to Y003 (pulse output destination) are only valid if two FX3U-2HSY-ADP adapters are  
connected to the FX3U PLC.  
2. Special data registers  
The following table shows the related special data registers. Note that Y000, Y001, Y002, and Y003 are  
devices that determine the pulse output destinations.  
Device number  
Data  
length value  
Initial  
Function  
Refer to  
*1  
*2  
Y000  
Low-  
Y001  
Y002  
Y003  
Low-  
order  
Low-  
order  
Low-  
order  
Current  
value  
register  
(PLS)  
D8340  
D8350  
D8351  
D8360  
D8361  
D8370  
D8371  
order  
Subsection  
4.4.1  
32-bit  
0
High-  
order  
High-  
order  
High-  
order  
High-  
order  
D8341  
*1. Y002 is not available in 14-point and 24-point type FX3G PLC.  
*2. Devices related to Y003 (pulse output destination) are only valid if two FX3U-2HSY-ADP adapters are  
connected to the FX3U PLC.  
7.3  
Function and Operation  
Connect an MR-H, MR-J2(S), or MR-J3 servo motor (with absolute position detection function) manufactured  
by Mitsubishi to your system, and use this instruction to read out the absolute position (ABS) data. The data  
will be converted into a pulse value before being read out.  
Command  
input  
FNC 155  
DABS  
S
D
1•  
D2•  
1) For  
servo amplifier. Number of occupied points: 3 (  
2) For , specify the first number of the device that outputs the absolute position (ABS) data control  
signal to the servo amplifier. Be sure to use transistor outputs for the PLC outputs.  
Number of occupied points: 3 ( +1, +2)  
3) For , specify the absolute position (ABS) data (32-bit value) storage device number to store the  
S
, specify the first number of the device that inputs the absolute position (ABS) data from the  
S
,
S
+1, +2)  
S
D1  
D1  
,
D1  
D1  
D2  
data read out from the servo amplifier. Handle the absolute position (ABS) data as follows:  
- To use the built-in pulse output function, be sure to specify the following current value registers for the  
read-out ABS data:  
*1  
*2  
Y000  
Y001  
Y002  
D8361,D8360  
Y003  
D8371, D8370  
D8341,D8340  
D8351,D8350  
*1. Y002 is not available in 14-point and 24-point type FX3G PLC.  
*2. Devices related to Y003 (pulse output destination) are only valid if two FX3U-2HSY-ADP adapters are  
connected to the FX3U PLC.  
B - 108  
   
7 Absolute Position Detection System (Absolute Current Value Read)-ABS  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
7.4 Initial Zero Return  
A
B
- When using the FX2N-1PG(-E) or FX2N-10PG, read out the ABS data from the data register first, and  
then write the read-out ABS data into the current value register of the FX2N-1PG(-E) or FX2N-10PG  
using the DTO instruction or directly specify the buffer memory (U\G) for  
to be written to.  
D2  
1. Detection of absolute position  
1) If the DABS (FNC155) instruction turns ON, the  
Servo-ON  
SON  
PLC will activate the servo-ON output and the  
ABS transfer mode output.  
ABS data transfer  
mode  
"Send data ready" TLC  
signal  
"ABS data request"  
signal  
ABS(bit 1)  
ABSM  
2) 32+6-bit data communication will be performed  
while mutually checking the data sending/  
receiving condition using the "send data ready"  
signal and the "ABS data request" signal.  
Amplifier output  
PLC output  
ABSR  
Apx.  
ZSP  
DO1  
Amplifier output  
Amplifier output  
3) The 2-bit line (line for ABS bit 0 and bit 1) will be  
used for data transmission.  
ABS(bit 0)  
4) At the completion of ABS data reading, the  
"Instruction execution complete" flag (M8029)  
will turn on.  
Current position data (32 bits)  
+ check data (6 bits)  
For details on the "Instruction execution  
complete" flag, refer to  
Subsection 4.7.4.  
7.4  
Initial Zero Return  
When your system is established, even if your servo motor is equipped with an absolute position detection  
function, it is necessary to perform zero return at least once to send the CLEAR signal to the servo motor.  
Use one of the following methods for the initial zero return:  
1) Execute DSZR (FNC150) with DOG search zero return instruction or ZRN (FNC156) zero return  
instruction using the CLEAR signal function to complete zero return.  
2) Carry out zero return for the machine using the position adjustment method in the jogging operation mode  
or manual operation mode, and then input the CLEAR signal.  
To input the CLEAR signal, use the output of the PLC or the external switch shown in the following figure.  
Example for MR-J2-  
A  
CR  
8
CLEAR  
signal  
SG 10  
B - 109  
 
7 Absolute Position Detection System (Absolute Current Value Read)-ABS Instruction  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
7.5 Important Points  
7.5  
Important Points  
• Set the timing sequence for powering on your system so that the power of the PLC is turned on after the  
power of the servo amplifier, or that power is turned on at the same time.  
• Leave the drive contact of the DABS (FNC155) instruction ON after reading the ABS value. If the  
instruction activation contact is turned off at the completion of ABS data reading, the servo-ON (SON)  
signal will be turned off, and the operation will not be performed.  
• If the instruction activation contact is turned off during data reading, data reading will be stopped.  
• This instruction is for 32-bit data only. Be sure to input this instruction as the DABS instruction.  
• Observe the following items to use the FX2N-1PG(-E) or FX2N-10PG:  
- ABS data will be converted into a pulse value before being read out. For this reason, be sure to specify  
"motor system" when setting the parameters (BFM #3) for the FX2N-1PG(-E).  
- When writing ABS data to the FX2N-10PG, be sure to use the current value register (BFM #40, BFM  
#39) to store the converted pulse data.  
• Even if data-communication with the servo amplifier is not performed properly, no error will be detected.  
For this reason, it is necessary to monitor the handshaking operation using the time-out error detection  
timer.  
For the example programs, refer to Section 12.5.  
• Set the servo motor rotation direction as described below when using the ABS instruction. Note that the  
sign (plus or minus) may be different between the current value controlled by the PLC and the current  
value existing in the servo amplifier after the current value is read by the ABS instruction if another  
direction is set.In the MR-J2--A and MR-H--A, the setting "Forward rotation (CCW) when forward  
rotation pulses are input, and reverse rotation (CW) when reverse rotation pulses are input" cannot be  
changed.  
- When using the positioning function built in the FX3G, FX3U and FX3UC PLC  
Set the servo amplifier rotation direction to "Forward rotation (CCW) when forward rotation pulses are  
input, and reverse rotation (CW) when reverse rotation pulses are input".  
For details, refer to the Servo amplifier manual.  
- When using the FX2N-1PT or FX2N-10PG with the FX3U or FX3UC PLC  
Achieve the following relationship for the rotation direction setting between the FX2N-1PG or FX2N-  
10PG and the servo amplifier.  
Setting in FX2N-1PG(-E)/FX2N-10PG  
Setting in servo amplifier  
Servo amplifier rotates forward (CCW) when forward  
rotation pulses are input.  
Current value is increased by forward  
rotation pulses.  
Servo amplifier rotates backward (CW) when  
reverse rotation pulses are input.  
Servo amplifier rotates forward (CW) when forward  
rotation pulses are input.  
Servo amplifier rotates backward (CCW) when  
reverse rotation pulses are input.  
Current value is decreased by forward  
rotation pulses.  
B - 110  
 
8 1-Speed Positioning - DRVI/DRVA Instruction  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
8.1 Incremental Method and Absolute Method  
A
B
8. 1-Speed Positioning - DRVI/DRVA Instruction  
The built-in positioning function uses the drive to increment (DRVI) instruction or the drive to absolute (DRVA)  
instruction to perform 1-speed positioning. Note that these two instructions use different target position  
setting methods.  
Instruction  
Target position setting method  
Incremental method:  
Uses a relative address to specify the target position.  
Drive to Increment (DRVI) instruction  
Apx.  
Absolute method:  
Uses an absolute address to specify the target position.  
Drive to Absolute (DRVA) instrument  
For important items common to all of the positioning instructions, refer to Section 4.7.  
For example programs, refer to Chapter 12.  
8.1  
Incremental Method and Absolute Method  
There are two target position setting methods for positioning operations as described below:  
1. Incremental method (relative address setting method)  
While regarding the current position as the start point, specify the transfer direction and the transfer distance  
(relative address) to determine the target position.  
Start point  
End point  
Transfer  
distance:  
+100  
Transfer distance:  
-100  
Transfer distance: +100  
Transfer distance: +100  
Transfer distance: +50  
Transfer distance: -150  
Transfer distance: -100  
0
100  
150  
300  
Point C  
Origin  
Point A Point B  
For example:  
-20.7km  
+20.7km  
Relative address  
Current position Target position  
To Ueno  
Tokyo  
Shinyokohama  
Odawara Atami  
Mishima  
Shizuoka  
To go from Odawara (current position) to Atami (target position), set the distance (+20.7 km)  
from Odawara to Atami.  
B - 111  
   
8 1-Speed Positioning - DRVI/DRVA Instruction  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
8.1 Incremental Method and Absolute Method  
2. Absolute method (absolute address setting method)  
Specify the distance (absolute address) from the origin to the target position. In this case, any position can be  
the start point (current position).  
Start point  
Address  
100  
End point  
Address  
100  
Address  
150  
Address  
300  
Address 150  
Address 100  
Address 150  
0
100  
150  
300  
Point C  
Origin  
Point A Point B  
For example:  
Current position Target position  
Origin  
To Ueno  
Tokyo  
0
Shinyokohama  
28.8km  
Odawara  
83.9km  
Atami  
Mishima  
Shizuoka  
Absolute address  
104.6km  
120.7km  
180.2km  
To go from Odawara (current position) to Atami (target position), set the distance (+104.6 km)  
from Tokyo (origin) to Atami.  
B - 112  
8 1-Speed Positioning - DRVI/DRVA Instruction  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
8.2 Drive to Increment - DRVI Instruction  
A
B
8.2  
Drive to Increment - DRVI Instruction  
8.2.1 Instruction Format  
1. Instruction Format  
16-bit  
32-bit  
Instruction  
symbol  
Instruction  
symbol  
FNC 158  
DRVI  
Execution condition  
Execution condition  
instruction  
instruction  
D
DDRVI  
Continuous  
execution  
type  
Continuous  
execution  
type  
DRVI  
-
9 steps  
17 steps  
DRIVE TO  
INCREMENT  
-
Apx.  
Command  
input  
FNC 158  
DRVI  
S
2•  
S
1•  
D
1•  
D
2•  
2. Data setting  
Operand type  
Description  
Data type  
*1  
Specifies the number of output pulses (relative address).  
S1  
BIN16/32-bit  
*2  
Specifies the output pulse frequency.  
S2  
Specifies the pulse output number.  
D
1
Bit  
Specifies the rotation direction signal output destination device number.  
D2  
*1. Setting range : -32,768 to +32,767 (excluding 0) for 16-bit operation  
: -999,999 to +999,999 (excluding 0) for 32-bit operation  
*2. Setting range : 10 to 32,767 Hz for 16-bit operation  
For 32-bit operation, however, the setting range is as shown in the following table.  
Pulse output destination  
High-speed output special adapter  
FX3G/FX3U/FX3UC PLC Main unit (transistor output)  
Setting range  
10 to 200,000(Hz)  
10 to 100,000(Hz)  
FX3U PLC  
3. Devices  
Bit device  
System user  
Word device  
Others  
Real Char  
num- acter Pointer  
ber string  
Operand  
type  
Con-  
stant  
System  
user  
Special  
unit  
Digit designation  
Index  
X
Y M T C S D.b KnX KnY KnM KnS T C D R U\GV Z Modify  
K
H
3
3
E
""  
P
3
3
3
3
3
3
3
3
3 3 3 3 4 3 3  
3
3
3
3
S1  
3 3 3 3 4 3 3  
S2  
1
3
3
D
1
2
3
3 3  
D2  
1 : Specify Y000, Y001, or Y002*1 transistor output from the main unit, or specify Y000, Y001, Y002*3, or  
Y003*3 from a high-speed output special adapter*2.  
*1. Y002 is not available in 14-point and 24-point type FX3G PLC.  
*2. High-speed input/output special adapters can be connected only to the FX3U PLC.  
*3. To use Y002 and Y003 with a high-speed output special adapter, connect a second high-speed output  
special adapter.  
Note:  
• To use an FX3U Series main unit of relay output type, be sure to connect a high-speed output special  
adapter. Differential line drive type outputs will be used for the outputs of the high-speed output special  
adapter.  
B - 113  
   
8 1-Speed Positioning - DRVI/DRVA Instruction  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
8.2 Drive to Increment - DRVI Instruction  
2 : When a high-speed output special adapter is used as a destination for pulse output on a FX3U PLC,  
use the output shown in the following table for rotation direction signals.  
When a built-in transistor output is used as a destination for pulse output on a FX3G/FX3U/FX3UC PLC,  
use transistor output for signals rotation direction.  
For the outputs applicable with a High-speed output special adapter, refer to Section 4.9.  
High-speed output special  
adapter connection position  
Pulse output  
Rotation direction output  
= Y000  
= Y001  
= Y002  
= Y003  
D
2
D
1
= Y004  
= Y005  
= Y006  
= Y007  
1st adapter  
D2  
D1  
D2  
D1  
2nd adapter  
D2  
D1  
3 : D.b is available only in FX3U and FX3UC PLCs. However, index modifiers (V and Z) are not available.  
4 : Only available for FX3U and FX3UC PLCs.  
8.2.2 List of Related Devices  
1. Special auxiliary relays  
The following table shows the related special auxiliary relays. Note that Y000, Y001, Y002, and Y003 are  
devices that determine the pulse output destinations.  
Device number  
Function  
Attribute  
Refer to  
*1  
*2  
Y000  
Y001  
M8029  
M8329  
Y002  
Y003  
Subsection  
4.4.2  
"Instruction execution complete" flag  
Read only  
Read only  
Read only  
Drivable  
Subsection  
4.4.2  
"Instruction execution abnormal end" flag  
Subsection  
4.4.3  
M8340 M8350 M8360 M8370 "Pulse output monitor" (BUSY/READY) flag  
M8343 M8353 M8363 M8373 Forward limit  
Subsection  
4.3.1  
Subsection  
4.3.1  
M8344 M8354 M8364 M8374 Reverse limit  
Drivable  
Subsection  
4.4.4  
M8348 M8358 M8368 M8378 Positioning instruction activation  
Read only  
Drivable  
Subsection  
4.3.2  
*3  
M8349 M8359 M8369 M8379  
*1. Y002 is not available in 14-point and 24-point type FX3G PLC.  
Pulse output stop command  
*2. Devices related to Y003 (pulse output destination) are only valid if two FX3U-2HSY-ADP adapters are  
connected to the FX3U PLC.  
*3. Cleared when the PLC switches from RUN to STOP.  
B - 114  
 
8 1-Speed Positioning - DRVI/DRVA Instruction  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
8.2 Drive to Increment - DRVI Instruction  
A
B
2. Special data registers  
The following table shows the related special data registers. Note that Y000, Y001, Y002, and Y003 are  
devices that determine the pulse output destinations.  
Device number  
Data  
length  
Initial  
value  
Function  
Refer to  
*1  
*2  
Y000  
Low-  
Y001  
Y002  
Y003  
Low-  
Low-  
order  
Low-  
order  
D8340  
D8350  
D8351  
D8360  
D8361  
D8370  
D8371  
order  
order  
Current value register  
(PLS)  
Subsection  
4.4.1  
32-bit  
16-bit  
0
High-  
order  
High-  
order  
High-  
order  
High-  
order  
D8341  
Subsection  
4.2.6  
D8342  
D8352  
D8362  
D8372  
Bias speed (Hz)  
0
Apx.  
Low-  
order  
Low-  
order  
Low-  
order  
Low-  
order  
D8343  
D8344  
D8353  
D8354  
D8363  
D8364  
D8373  
D8374  
Subsection  
4.2.5  
Maximum speed (Hz)  
Creep speed (Hz)  
32-bit 100,000  
High-  
order  
High-  
order  
High-  
order  
High-  
order  
Subsection  
4.2.4  
D8345  
D8355  
D8365  
D8375  
16-bit  
1000  
Low-  
order  
Low-  
order  
Low-  
order  
Low-  
order  
D8346  
D8347  
D8356  
D8357  
D8366  
D8367  
D8376  
D8377  
Subsection  
4.2.3  
Zero return speed (Hz) 32-bit  
50,000  
High-  
order  
High-  
order  
High-  
order  
High-  
order  
Subsection  
4.2.7  
D8348  
D8349  
*1. Y002 is not available in 14-point and 24-point type FX3G PLC.  
D8358  
D8368  
D8378  
Acceleration time (ms)  
16-bit  
100  
100  
Subsection  
4.2.8  
D8359  
D8369  
D8379  
Deceleration time (ms) 16-bit  
*2. Devices related to Y003 (pulse output destination) are only valid if two FX3U-2HSY-ADP adapters are  
connected to the FX3U PLC.  
B - 115  
8 1-Speed Positioning - DRVI/DRVA Instruction  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
8.2 Drive to Increment - DRVI Instruction  
8.2.3 Function and Operation  
This instruction uses a relative drive method to perform a 1-speed positioning instruction. For this instruction,  
the transfer distance from the current position to the target position should be specified together with a plus or  
minus sign. This method is also referred to as the incremental (relative) drive method.  
For details on the "Instruction execution complete" flag, refer to Subsection 4.7.4.  
For details on the maximum speed, bias speed, acceleration time, and deceleration time, refer to  
Section 4.2.  
Command  
input  
FNC 158  
DRVI  
S
2•  
S
1•  
D
1•  
D
2•  
Acceleration  
time  
Deceleration  
time  
Speed  
Maximum speed  
Output pulse  
S
2•  
frequency  
Number of output  
pulses  
S
1•  
Bias  
speed  
Time  
Instruction execution  
"Instruction  
execution complete" flag  
M8029  
ON  
1) For  
S1  
, specify the number of output pulses (relative address value).  
Setting range  
16-bit operation  
32-bit operation  
-32,768 to +32,767  
-999,999 to +999,999  
2) For  
S2  
, specify the output pulse frequency.  
16-bit operation  
Setting range  
10 to 32,767(Hz)  
When a high-speed output special  
10 to 200,000(Hz)  
10 to 100,000(Hz)  
adapter is used  
32-bit operation  
When a transistor output from the  
main unit is used  
3) For  
4) For  
D
1
, specify the pulse output number in the range of Y000 to Y003.  
, specify the rotation direction signal output device number.  
D2  
When a high-speed output special adapter is used as a destination for pulse output on a FX3U PLC, use  
the output shown in the following table for rotation direction signals.  
When a built-in transistor output is used as a destination for pulse output on a FX3G/FX3U/FX3UC PLC,  
use transistor output for signals rotation direction.  
High-speed output special  
adapter connection position  
Pulse output  
destination device  
Rotation direction  
output  
= Y000  
= Y001  
= Y002  
= Y003  
D
2
D
1
= Y004  
= Y005  
= Y006  
= Y007  
1st adapter  
2nd adapter  
D2  
D1  
D2  
D1  
D2  
D1  
B - 116  
 
8 1-Speed Positioning - DRVI/DRVA Instruction  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
8.2 Drive to Increment - DRVI Instruction  
A
B
The rotation direction ON/OFF status of the specified device is shown in the following table.  
During instruction execution, however, do not use the output  
D2  
for other purposes.  
ON/OFF status of device  
Rotation direction (increase/decrease current value)  
D
2
specified by  
S1  
If the number of output pulses specified by  
performed in the forward rotation direction.  
is a positive number, the operation will be  
ON  
D1  
Forward rotation (Outputting pulses from  
will increase the current value.)  
S1  
If the number of output pulses specified by  
is a negative number, the operation will  
OFF  
be performed in the reverse rotation direction.  
D1  
Reverse rotation (Outputting pulses from  
will decrease the current value.)  
Apx.  
8.2.4 Important Points  
For the important points of programming, refer to Section 4.7.  
• If an operand is changed during instruction execution, the change will be ignored and the operation will not  
be affected.  
Note that the changed operand will be enabled at the next activation of the instruction.  
• If the instruction activation contact is turned off during execution of the instruction, the speed will  
decelerate and the operation will stop.  
In this case, the "Instruction execution complete" flag (M8029) will not be turned on.  
• If the limit flag (forward limit relay or reverse limit relay) in the operation direction is turned on, the speed  
will decelerate and the operation will stop.  
In this case, the "Instruction execution abnormal end" flag (M8329) will be turned on when execution of the  
instruction is complete.  
For details on the "Instruction execution abnormal end" flag, refer to Subsection 4.7.4.  
• While the "pulse output monitor" (BUSY/READY) flag is on, a positioning instruction (including PLSR and  
PLSY) that uses the same output cannot be executed.  
If the "pulse output monitor" (BUSY/READY) flag is still on after the instruction activation contact is turned  
off, do not execute a positioning instruction (including PLSR and PLSY instructions) that uses the same  
output number.  
B - 117  
 
8 1-Speed Positioning - DRVI/DRVA Instruction  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
8.3 Drive To Absolute - DRVA Instruction  
8.3  
Drive To Absolute - DRVA Instruction  
8.3.1 Instruction Format  
1. Instruction format  
16-bit  
32-bit  
Instruction  
symbol  
Instruction  
symbol  
FNC 159  
DRVA  
Execution condition  
Execution condition  
instruction  
instruction  
D
DDRVA  
Continuous  
execution  
type  
Continuous  
execution  
type  
DRVA  
-
9 steps  
17 steps  
DRIVE TO  
ABSOLUTE  
-
Command  
input  
FNC 159  
DRVA  
S
1•  
S
2•  
D
1•  
D
2•  
2. Data setting  
Operand type  
Description  
Data type  
*1  
Specifies the number of output pulses (absolute address).  
S1  
BIN16/32-bit  
*2  
Specifies the output pulse frequency.  
S2  
Specifies the pulse output number.  
D
1
Bit  
Specifies the rotation direction signal output destination device number.  
D2  
*1. Setting range : -32,768 to +32,767 for 16-bit operation  
: -999,999 to +999,999 for 32-bit operation  
*2. Setting range : 10 to 32,767 Hz for 16-bit operation  
For 32-bit operation, however, the setting range is as shown in the following table.  
Pulse output destination  
High-speed output special adapter  
FX3G/FX3U/FX3UC PLC Main unit (transistor output)  
Setting range  
10 to 200,000(Hz)  
10 to 100,000(Hz)  
FX3U PLC  
3. Devices  
Bit device  
Word device  
Others  
Real Char-  
Con-  
Operand  
type  
System  
user  
Special  
unit  
System user  
Digit designation  
Index  
num- acter Pointer  
stant  
ber string  
X
Y M T C S  
KnX KnY KnM KnS T C D R U\Gꢁ  
V
Z Modify K  
H
3 3  
3 3  
E
""  
P
D.b  
3
3
3
3
3
3
3
3
3 3 3 3 4 3 3  
3
3
S1  
3 3 3 3 4 3 3  
S2  
1
3
3
D
1
2
3
3 3  
D2  
1 : Specify Y000, Y001, or Y002*1 transistor output from the main unit, or specify Y000, Y001, Y002*3, or  
Y003*3 from a high-speed output special adapter*2.  
*1. Y002 is not available in 14-point and 24-point type FX3G PLC.  
*2. High-speed input/output special adapters can be connected only to the FX3U PLC.  
*3. To use Y002 and Y003 with a high-speed output special adapter, connect a second high-speed output  
special adapter.  
Caution:  
• To use an FX3U Series main unit of relay output type, be sure to connect a high-speed output special  
adapter. Differential line drive type outputs will be used for the outputs of the high-speed output special  
adapter.  
B - 118  
   
8 1-Speed Positioning - DRVI/DRVA Instruction  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
8.3 Drive To Absolute - DRVA Instruction  
A
B
2 : When a high-speed output special adapter is used as a destination for pulse output on a FX3U PLC,  
use the output shown in the following table for rotation direction signals.  
When a built-in transistor output is used as a destination for pulse output on a FX3G/FX3U/FX3UC PLC,  
use transistor output for signals rotation direction.  
For the outputs applicable with a High-speed output special adapter, refer to Section 4.9.  
High-speed output special  
adapter connection position  
Rotation direction  
output  
Pulse output  
= Y000  
= Y001  
= Y002  
= Y003  
D
2
D
1
= Y004  
= Y005  
= Y006  
= Y007  
1st adapter  
2nd adapter  
D2  
D1  
D2  
D1  
D2  
Apx.  
D1  
3 : D.b is available only in FX3U and FX3UC PLCs. However, index modifiers (V and Z) are not available.  
4 : Only available for FX3U and FX3UC PLCs.  
8.3.2 List of Related Devices  
1. Special auxiliary relays  
The following table shows the related special auxiliary relays. Note that Y000, Y001, Y002, and Y003 are  
devices that determine the pulse output destinations.  
Device number  
Function  
Attribute  
Refer to  
*1  
*2  
Y000  
Y001  
M8029  
M8329  
Y002  
Y003  
Subsection  
4.4.2  
"Instruction execution complete" flag  
Read only  
Read only  
Read only  
Drivable  
Subsection  
4.4.2  
"Instruction execution abnormal end" flag  
Subsection  
4.4.3  
M8340  
M8343  
M8344  
M8348  
M8349  
M8350  
M8353  
M8354  
M8358  
M8359  
M8360  
M8363  
M8364  
M8368  
M8369  
M8370 "Pulse output monitor" (BUSY/READY) flag  
M8373 Forward limit  
Subsection  
4.3.1  
Subsection  
4.3.1  
M8374 Reverse limit  
Drivable  
Subsection  
4.4.4  
M8378 Positioning instruction activation  
Read only  
Drivable  
Subsection  
4.3.2  
*3  
M8379  
Pulse output stop command  
*1. Y002 is not available in 14-point and 24-point type FX3G PLC.  
*2. Devices related to Y003 (pulse output destination) are only valid if two FX3U-2HSY-ADP adapters are  
connected to the FX3U PLC.  
*3. Cleared when the PLC switches from RUN to STOP.  
B - 119  
 
8 1-Speed Positioning - DRVI/DRVA Instruction  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
8.3 Drive To Absolute - DRVA Instruction  
2. Special data registers  
The following table shows the related special data registers. Note that Y000, Y001, Y002, and Y003 are  
devices that determine the pulse output destinations.  
Device number  
Data  
length  
Default  
value  
Function  
Refer to  
*1  
*2  
Y000  
Low-  
Y001  
Y002  
Y003  
Low-  
order  
Low-  
order  
Low-  
order  
D8340  
D8350  
D8351  
D8360  
D8361  
D8370  
D8371  
order  
Current value register  
(PLS)  
Subsection  
4.4.1  
32-bit  
16-bit  
32-bit  
16-bit  
0
High-  
order  
High-  
order  
High-  
order  
High-  
order  
D8341  
Subsection  
4.2.6  
D8342  
D8352  
D8362  
D8372  
Bias speed (Hz)  
0
100,000  
1000  
Low-  
order  
Low-  
order  
Low-  
order  
Low-  
order  
D8343  
D8344  
D8353  
D8354  
D8363  
D8364  
D8373  
D8374  
Subsection  
4.2.5  
Maximum speed (Hz)  
Creep speed (Hz)  
High-  
order  
High-  
order  
High-  
order  
High-  
order  
Subsection  
4.2.4  
D8345  
D8355  
D8365  
D8375  
Low-  
order  
Low-  
order  
Low-  
order  
Low-  
order  
D8346  
D8347  
D8356  
D8357  
D8366  
D8367  
D8376  
D8377  
Subsection  
4.2.3  
Zero return speed (Hz) 32-bit  
50,000  
High-  
order  
High-  
order  
High-  
order  
High-  
order  
Subsection  
4.2.7  
D8348  
D8349  
*1. Y002 is not available in 14-point and 24-point type FX3G PLC.  
D8358  
D8368  
D8378  
Acceleration time (ms)  
16-bit  
100  
100  
Subsection  
4.2.8  
D8359  
D8369  
D8379  
Deceleration time (ms) 16-bit  
*2. Devices related to Y003 (pulse output destination) are only valid if two FX3U-2HSY-ADP adapters are  
connected to the FX3U PLC.  
B - 120  
8 1-Speed Positioning - DRVI/DRVA Instruction  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
8.3 Drive To Absolute - DRVA Instruction  
A
B
8.3.3 Function and Operation  
This instruction uses an absolute drive method to perform a 1-speed positioning instruction.  
For this instruction, the distance from the origin (zero point) to the target position should be specified.  
For details on the "Instruction execution complete" flag, refer to Subsection 4.7.4.  
For details on the maximum speed, bias speed, acceleration time,  
and deceleration time, refer to Section 4.2.  
Command  
input  
FNC 159  
S
1•  
S
2•  
D
1•  
D
2•  
DRVA  
Acceleration  
time  
Deceleration  
time  
Apx.  
Speed  
Maximum speed  
Output pulse  
S
2•  
frequency  
Number of output  
pulses  
S
1•  
Bias  
speed  
Time  
Instruction execution  
"Instruction  
execution complete" flag  
M8029  
ON  
1) For  
S1  
, specify the number of output pulses (absolute address value).  
Setting range  
16-bit operation  
32-bit operation  
-32,768 to +32,767  
-999,999 to +999,999  
2) For  
S2  
, specify the output pulse frequency.  
Setting range  
16-bit operation  
10 to 32,767(Hz)  
When a high-speed output special adapter is used 10 to 200,000(Hz)  
When a transistor output from the main unit is used 10 to 100,000(Hz)  
32-bit operation  
3) For  
4) For  
D
1
, specify the pulse output number in the range of Y000 to Y003.  
, specify the rotation direction signal output device number.  
D2  
When a high-speed output special adapter is used as a destination for pulse output on a FX3U PLC, use  
the output shown in the following table for rotation direction signals.  
When a built-in transistor output is used as a destination for pulse output on a FX3G/FX3U/FX3UC PLC,  
use transistor output for signals rotation direction.  
High-speed output special adapter  
Pulse output destination device Rotation direction output  
connection position  
= Y000  
= Y001  
= Y002  
= Y003  
D
2
D
1
= Y004  
= Y005  
= Y006  
= Y007  
1st adapter  
2nd adapter  
D2  
D1  
D2  
D1  
D2  
D1  
B - 121  
 
8 1-Speed Positioning - DRVI/DRVA Instruction  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
8.3 Drive To Absolute - DRVA Instruction  
The rotation direction ON/OFF status of the specified device is shown in the following table.  
During instruction execution, however, do not use the output  
D2  
for other purposes.  
ON/OFF status of device  
Rotation direction (increase/decrease current value)  
D
2
specified by  
The rotation direction (normal or reverse  
rotation) depends on which value is larger;  
the number of output pulses specified by  
D
1
Forward rotation (Outputting pules from  
increase the current value.)  
will  
will  
ON  
D
1
Reverse rotation (Outputting pules from  
reduce the current value.)  
S
(absolute address) or the value  
OFF  
indicated in the current value register.  
8.3.4 Important Points  
For the important points of programming, refer to Section 4.7.  
• If an the operand is changed during instruction execution, the change will be ignored and the operation will  
not be affected.  
Note that the changed operand will be enabled at the next activation of the instruction.  
• If the instruction activation contact is turned off during execution of the instruction, the speed will  
decelerate and the operation will stop.  
In this case, the "Instruction execution complete" flag (M8029) will not be turned on.  
• If the limit flag (forward limit relay or reverse limit relay) in the operation direction is turned on, the speed  
will decelerate and the operation will stop. In this case, the "Instruction execution abnormal end" flag  
(M8329) will be turned on when execution of the instruction is complete.  
For details on the "Instruction execution abnormal end" flag, refer to Subsection 4.7.4.  
• If the "pulse output monitor" (BUSY/READY) flag is on, a positioning instruction (including PLSR and  
PLSY) that uses the same output cannot be executed.  
If the "pulse output monitor" (BUSY/READY) flag is still on after the instruction activation contact is turned  
off, do not execute a positioning instruction (including PLSR and PLSY instructions) that uses the same  
output number.  
B - 122  
 
9 One-speed Interrupt constant quantity feed -DVIT Instruction  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
9.1 Instruction Format  
A
B
9. One-speed Interrupt constant quantity feed -DVIT  
Instruction  
The built-in positioning function uses the Interrupt Positioning (DVIT) instruction to perform one-speed  
interrupt constant quantity feed. If an FX3UC PLC Ver.1.30 or later is used, this instruction can change the  
interruption signal input destination.  
If an FX3U/FX3UC PLC Ver.2.20 or later is used, the interruption signal can be controlled with a user program.  
The FX3G PLC does not support the interrupt positioning (DVIT) instruction.  
For items to be observed in programming, refer to Section 4.7.  
Apx.  
9.1  
Instruction Format  
1. Instruction Format  
16-bit  
32-bit  
Instruction  
symbol  
Instruction  
symbol  
FNC 151  
DVIT  
Execution condition  
Execution condition  
instruction  
instruction  
D
DDVIT  
Continuous  
execution  
type  
Continuous  
execution  
type  
DVIT  
-
9 steps  
17 steps  
DRIVE INTERRUPT  
-
Command  
input  
FNC 151  
DVIT  
S
1•  
S
2•  
D
1•  
D
2•  
2. Data setting  
Operand type  
Description  
Data type  
*1  
Specifies the number of pulses (relative address) to be output after interruption.  
S1  
BIN16/32-bit  
Bit  
*2  
Specifies the output pulse frequency.  
S
2
Specifies the pulse output number.  
D1  
Specifies the rotation direction signal output destination device number.  
D2  
*1. Setting range : -32,768 to +32,767 (excluding 0) for 16-bit operation  
: -999,999 to +999,999 (excluding 0) for 32-bit operation  
*2. Setting range : 10 to 32,767 Hz for 16-bit operation  
For 32-bit operation, however, the setting range should be as shown in the following  
table.  
Pulse output destination  
Setting range  
10 to 200,000(Hz)  
10 to 100,000(Hz)  
FX3U PLC  
High-speed output special adapter  
Main unit (transistor output)  
FX3U/FX3UC PLC  
B - 123  
   
9 One-speed Interrupt constant quantity feed -DVIT Instruction  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
9.1 Instruction Format  
3. Devices  
Bit device  
Word device  
Others  
Real Char-  
num- acter Pointer  
ber string  
Operand  
type  
Con-  
stant  
Special  
unit  
System user  
Digit designation  
System user  
Index  
U\Gꢁ  
X Y M T C S D.b KnX KnY KnM KnS T  
C
D
R
V
Z Modify  
K
H
3
3
E
""  
P
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
S1  
3
3
3
3
3
S2  
1
D1  
2
3
3 3  
3
D2  
1 : Specify Y000, Y001, or Y002 transistor output from the main unit, or specify Y000, Y001, Y002*2, or  
Y003*2 from a high-speed output special adapter*1.  
*1. A high-speed input/output special adapter cannot be connected to the FX3UC PLC.  
*2. To use Y002 and Y003 with a high-speed output special adapter, connect a second high-speed output  
special adapter.  
Point:  
• To use an FX3U Series main unit of relay output type, be sure to connect a high-speed output special  
adapter. Differential line drive type outputs will be used for the outputs of the high-speed output special  
adapter.  
2 : When a high-speed output special adapter is used as a destination for pulse output on a FX3U PLC,  
use the output shown in the following table for rotation direction signals.  
When a built-in transistor output is used as a destination for pulse output on a FX3U/FX3UC PLC, use  
transistor output for signals rotation direction.  
For the outputs applicable with a High-speed output special adapter, refer to Section 4.9.  
High-speed output special adapter connection position  
Pulse output  
Rotation direction output  
= Y000  
= Y001  
= Y002  
= Y003  
D
2
D
1
= Y004  
= Y005  
= Y006  
= Y007  
1st adapter  
D2  
D1  
D2  
D1  
2nd adapter  
D2  
D1  
3 : D.b cannot be indexed by index registers (V and Z).  
B - 124  
9 One-speed Interrupt constant quantity feed -DVIT Instruction  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
9.2 List of Related Devices  
A
B
9.2  
List of Related Devices  
1. Special auxiliary relays  
The following table shows the related special auxiliary relays. Note that Y000, Y001, Y002, and Y003 are  
devices that determine the pulse output destinations.  
Device number  
Function  
Attribute  
Refer to  
*1  
Y000  
Y001  
M8029  
M8329  
Y002  
Y003  
Subsection  
4.4.2  
"Instruction execution complete" flag  
Read only  
Read only  
Drivable  
Read only  
Drivable  
Drivable  
Drivable  
Read only  
Drivable  
Drivable  
Drivable  
Subsection  
4.4.2  
"Instruction execution abnormal end" flag  
Interrupt input specification function enable  
Apx.  
Subsection  
4.3.7  
*3  
*2  
M8336  
M8350  
Subsection  
4.4.3  
M8340  
M8343  
M8344  
M8347  
M8348  
M8349  
M8360  
M8363  
M8364  
M8367  
M8368  
M8369  
M8370 "Pulse output monitor" (BUSY/READY) flag  
M8373 Forward limit  
Subsection  
4.3.1  
M8353  
M8354  
M8357  
M8358  
M8359  
Subsection  
4.3.1  
M8374 Reverse limit  
Subsection  
4.3.8  
*3*4  
M8377  
Interrupt signal logic reverse  
Subsection  
4.4.4  
M8378 Positioning instruction activation  
Subsection  
4.3.2  
*3  
M8379  
Pulse output stop command  
Subsection  
4.3.7  
*5  
*5  
*5  
*5  
*3  
M8460  
M8464  
M8461  
M8465  
M8462  
M8463 User interrupt input command  
CLEAR signal device specification function  
Subsection  
4.3.4  
*5  
*5  
*5  
*5  
M8466  
M8467  
*3  
enable  
*1. Devices related to Y003 (pulse output destination) are only valid if two FX3U-2HSY-ADP adapters are  
connected to the FX3U PLC.  
*2. This function is valid if Ver.1.30 or later is used.  
*3. Cleared when the PLC switches from RUN to STOP.  
*4. The logical NOT function is not valid for the user interrupt input command.  
*5. This function is valid if Ver.2.20 or later is used.  
B - 125  
 
9 One-speed Interrupt constant quantity feed -DVIT Instruction  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
9.2 List of Related Devices  
2. Special data registers  
The following table shows the related special data registers. Note that Y000, Y001, Y002, and Y003 are  
devices that determine the pulse output destinations.  
Device number  
Data  
length value  
Initial  
Function  
Refer to  
*1  
Y000  
Y001  
Y002  
Y003  
Specification of  
interrupt input.  
Subsection  
4.3.7  
*2  
16-bit  
32-bit  
16-bit  
-
D8336  
Low-  
order  
Low-  
order  
Low-  
order  
Low-  
order  
D8340  
D8341  
D8350  
D8351  
D8360  
D8361  
D8370  
Current value register  
(PLS)  
Subsection  
4.4.1  
0
0
High-  
order  
High-  
order  
High-  
order  
High-  
order  
D8371  
Subsection  
4.2.6  
D8342  
D8352  
D8362  
D8372  
Bias speed (Hz)  
Low-  
order  
Low-  
order  
Low-  
order  
Low-  
order  
D8343  
D8344  
D8353  
D8354  
D8363  
D8364  
D8373  
D8374  
Subsection  
4.2.5  
Maximum speed (Hz)  
32-bit 100,000  
High-  
order  
High-  
order  
High-  
order  
High-  
order  
Subsection  
4.2.7  
D8348  
D8349  
D8358  
D8359  
D8368  
D8369  
D8378  
D8379  
Acceleration time (ms) 16-bit  
Deceleration time (ms) 16-bit  
100  
100  
Subsection  
4.2.8  
Specifies the CLEAR  
16-bit  
Subsection  
4.3.4  
*3  
*3  
*3  
*3  
-
D8464  
D8465  
D8466  
D8467  
signal device.  
*1. Devices related to Y003 (pulse output destination) are only valid if two FX3U-2HSY-ADP adapters are  
connected to the FX3U PLC.  
*2. This function is valid if Ver.1.30 or later is used.  
However, to specify the user interrupt input command, Ver.2.20 or later should be used.  
*3. This function is valid if Ver.2.20 or later is used.  
B - 126  
9 One-speed Interrupt constant quantity feed -DVIT Instruction  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
9.3 Function and Operation  
A
B
9.3  
Function and Operation  
Command  
input  
FNC 151  
DVIT  
S
1•  
S
2•  
D
1•  
D
2•  
For details on the maximum speed, bias speed,acceleration time, and deceleration time, refer to  
Subsection 4.2.5 to Subsection 4.2.8.  
Acceleration  
time  
Deceleration  
time  
Apx.  
Speed  
Maximum speed  
Output pulse  
S
2•  
frequency  
Number of output  
pulses  
S
1•  
Bias  
speed  
Time  
Instruction execution  
Interrupt input  
"Instruction  
execution complete" flag  
M8029  
ON  
1) For  
S1  
, specify the number of output pulses (relative address value).  
Setting range  
16-bit operation  
32-bit operation  
-32,768 to +32,767 (excluding 0)  
-999,999 to +999,999 (excluding 0)  
2) For  
S2  
, specify the output pulse frequency.  
Setting range  
16-bit operation  
10 to 32,767(Hz)  
When a high-speed output special adapter is used 10 to 200,000(Hz)  
When a transistor output from the main unit is used 10 to 100,000(Hz)  
32-bit operation  
3) For  
4) For  
D
1
, specify the pulse output number in the range of Y000 to Y003.  
, specify the rotation direction signal output device number.  
D2  
When a high-speed output special adapter is used as a destination for pulse output on a FX3U PLC, use  
the output shown in the following table for rotation direction signals.  
When a built-in transistor output is used as a destination for pulse output on a FX3U/FX3UC PLC, use  
transistor output for signals rotation direction.  
High-speed output special adapter number Pulse output destination device Rotation direction output  
= Y000  
= Y001  
= Y002  
= Y003  
D
2
D
1
= Y004  
= Y005  
= Y006  
= Y007  
1st adapter  
2nd adapter  
D2  
D1  
D2  
D1  
D2  
D1  
B - 127  
 
9 One-speed Interrupt constant quantity feed -DVIT Instruction  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
9.3 Function and Operation  
The rotation direction ON/OFF status of the specified device is shown in the following table.  
During instruction execution, however, do not use the output  
D2  
for other purposes.  
ON/OFF status of device  
Rotation direction (increase/decrease current value)  
D
2
specified by  
S1  
If the number of pulses to be output after interruption (specified by  
) is set to a positive  
ON  
number, the operation will be performed in the forward rotation direction.  
D1  
Forward rotation (Outputting pulses from  
will increase the current value.)  
S1  
If the number of pulses to be output after interruption (specified by  
) is set to a  
OFF  
negative number, the operation will be performed in the reverse rotation direction.  
D1  
Reverse rotation (Outputting pulses from  
will decrease the current value.)  
5) The interrupt input signal depends on the pulse output of as shown in the following table.  
D
1
Use an FX3UC PLC Ver.1.30 or later to use the interrupt input specification function.  
Use an FX3U/FX3UC PLC Ver.2.20 or later to set the user interrupt input command.  
Interrupt input signal  
Pulse output  
destination  
device  
If it is not necessary to use the  
interrupt input specification  
function (M8336 = OFF), or if the  
FX3UC PLC below Ver.1.30 is used  
If it is necessary to use the interrupt input  
specification function  
(M8336 = ON)  
D8336=H{ { { {  
X000  
X001  
X002  
X003  
D
1
= Y000  
= Y001  
= Y002  
Interrupt input for Y000  
(pulse output destination device)  
Interrupt input for Y001  
D1  
(pulse output destination device)  
Interrupt input for Y002  
(pulse output destination device)  
D1  
Interrupt input for Y003  
(pulse output destination device)  
*1  
D1  
= Y003  
*1. Y003 can be specified as the pulse output destination only if two FX3U-2HSY-ADP adapters are connected to  
the FX3U PLC.  
Designation of interrupt input using M8336 interrupt input specification function:  
1) Turn on the M8336.  
2) Set the interrupt input number (X000 to X007) in D8336, or specify the user interrupt input  
*1  
command  
.
For details on the specification method, refer to Subsection 4.3.7 or Subsection 4.5.1.  
D8336=H{ { { {  
Interrupt input for Y000  
(pulse output destination device)  
Interrupt input for Y001  
(pulse output destination device)  
Interrupt input for Y002  
(pulse output destination device)  
Interrupt input for Y003  
(pulse output destination device)  
Setting value  
Description of setting  
0
1
Specifies X000 for the interrupt input signal.  
Specifies X001 for the interrupt input signal.  
7
Specifies X007 for the interrupt input signal.  
B - 128  
9 One-speed Interrupt constant quantity feed -DVIT Instruction  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
9.3 Function and Operation  
A
B
Setting value  
Description of setting  
Specifies a user interrupt input command*1 for the interrupt input  
signal.  
Pulse output destination device  
User interrupt input command  
Y000  
Y001  
Y002  
M8460  
M8461  
M8462  
M8463  
*1  
8
*2  
Y003  
*3  
Apx.  
Do not specify these values.  
9 ~ E  
F
Set "F" for a pulse output destination device if the device is not used for the Interrupt  
Positioning (DVIT) instruction.  
*1. A device can only be specified if an FX3U/FX3UC PLC Ver.2.20 or later is used.  
When using an FX3UC PLC below Ver.2.20, if "8" is set and then the specified Interrupt Positioning (DVIT)  
instruction turns ON, an operation error (error code: K6763) will occur, and the instruction will not cause any  
operation.  
*2. Y003 can be specified as the pulse output destination only if two FX3U-2HSY-ADP adapters are connected to  
the FX3U PLC.  
*3. After setting a number in the range of 9 to E for the interrupt input signal, if the corresponding Interrupt  
Positioning (DVIT) instruction turns ON, an operation error (error code: K6763) will occur, and the instruction  
will not cause any operation.  
B - 129  
9 One-speed Interrupt constant quantity feed -DVIT Instruction  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
9.3 Function and Operation  
Example program:  
The following program shows that the interrupt input for Y000 is set using the user interrupt input  
command (M8460).  
Specifies the  
M8002  
FNC 12  
MOV  
interrupt input for  
Y000 in the user  
interrupt input  
HFFF8 D8336  
Initial pulse  
specification register.  
Interrupt input  
specification  
function enable.  
SET  
M8336  
Command  
input  
M8348  
M101  
M102  
FNC151  
DVIT  
Executes DVIT  
instruction  
S
1•  
S
2•  
Y000  
D
2•  
Positioning  
being  
Normal Abnormal  
end of end of  
performed positioning positioning  
(Y000)  
M100  
Interruption  
positioning is  
being  
M100  
M101  
performed.  
Interruption  
positioning being  
performed  
M8029  
"Positioning  
operation  
normal end"  
flag  
"Instruction execution complete" flag  
M8329  
"Positioning  
operation  
abnormal end"  
flag  
M102  
"Instruction execution abnormal end" flag  
FNC 06  
FEND  
Interruption  
Interruption  
condition  
pointer I0ꢁ  
Interrupt input  
signal: ON  
SET  
RST  
M8460  
M8460  
Interrupt input  
signal: OFF  
FNC 03  
IRET  
END  
After specifying a user interrupt input command for the interrupt input signal, if the specified device is  
turned on, the number of pulses specified by will be output and then the operation will be stopped.  
S1  
Before activating the Interrupt Positioning instruction again, be sure to turn off the user interrupt input  
command.  
6) Interrupt input signal logical NOT  
Turn the "Interrupt signal logic reverse" relay ON or OFF (see the following table) to specify the logic of  
the interrupt input signal. However, if the user interrupt input command is set for the pulse output  
destination device, the interrupt input signal logical NOT function cannot be used.  
Pulse output  
destination device  
"Interrupt signal logic  
reverse" relay  
Description  
M8347  
M8357  
M8367  
M8377  
D
1
= Y000  
= Y001  
= Y002  
OFF: Positive logic (Turning the input ON will turn on  
the interrupt input signal.)  
ON: Negative logic (Turning the input OFF will turn  
on the interrupt input signal.)  
D1  
D1  
*1  
D1  
= Y003  
*1. Y003 can be specified as the pulse output destination only if two FX3U-2HSY-ADP adapters are connected to  
the FX3U PLC.  
B - 130  
9 One-speed Interrupt constant quantity feed -DVIT Instruction  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
9.3 Function and Operation  
A
B
1. Interruption positioning operation  
The interruption positioning operation is described below assuming that Y000 is specified as the pulse output  
destination device by  
D1  
.
For this reason, if Y001, Y002, or Y003 is specified, it is necessary to change the output number of each  
related flag.  
For details on related flags, refer to Section 4.1 to Section 4.4, or Section 9.2.  
Acceleration  
time  
(D8348)  
Deceleration  
time  
(D8349)  
Speed  
Maximum speed  
(D8344,D8343)  
Apx.  
Output pulse  
S
2•  
frequency  
Number of output  
pulses  
S
1•  
Bias speed  
(D8342)  
Time  
Instruction execution  
Interrupt input (X000)  
"Instruction  
execution complete" flag  
M8029  
ON  
1) Execute the Interrupt Positioning (DVIT) instruction.  
2) Transfer operation will be performed in the direction specified by the sign attached to the number of  
output pulses (specified by ) at the speed specified by the output pulse frequency (specified by  
).  
3) If interrupt input X000 is turned on, pulses will be output until the number of output pulses reaches the  
number specified by , and then the operation will stop.  
S1  
S2  
S1  
4) The "instruction execution complete" flag (M8029) will turn on, and the interruption positioning operation  
will be completed.  
For details on "Instruction execution complete" flag,  
refer to Subsection 4.7.4.  
B - 131  
9 One-speed Interrupt constant quantity feed -DVIT Instruction  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
9.4 Important Points  
9.4  
Important Points  
For details on the instruction activation timing, refer to Section 4.7.  
• If the speed is too high for the number of pulses specified by  
S1  
, the frequency will be reduced so that  
the speed can be reduced within the specified number of output pulses.  
Number of output  
pulses specified by  
S1•  
Output pulse  
frequency  
specified by  
S
2•  
Actual output  
pulse frequency  
Interrupt input  
• If there is a possibility for the interrupt input instruction to be turned on during acceleration, specify the  
number of pulses so that the relation can be set to "number of output pulses number of pulses needed for  
acceleration + number of pulses needed for deceleration".  
If the relation is set to "number of output pulses < number of pulses needed for acceleration + number of  
pulses needed for deceleration", the operation will be as shown in the following figure:  
Number of output  
pulses specified by  
S1•  
Output pulse  
frequency  
specified by  
S
2•  
Interrupt input  
• If the interrupt input turns ON before execution of the instruction, the operation will be performed in the  
same way as the DRVI instruction.  
• If an operand is changed during instruction execution, the change will be ignored and the operation will not  
be affected. To reflect the change on the operation, turn off the command contact of the instruction, and  
then turn it on again.  
• If the instruction activation contact is turned off during operation, the speed will decelerate and the  
operation will stop. In this case, the "Instruction execution complete" flag (M8029) will not be turned on.  
• Input the interruption signal before the number of output pulses reaches 4,294,967,296. If the number of  
pulses reaches 4,294,967,296 before inputting the interruption signal, the operation will stop, and the  
"Instruction execution complete" flag (M8029) will be turned on.  
For details on "Instruction execution complete" flag,  
refer to Subsection 4.7.4.  
• If the "pulse output monitor" (BUSY/READY) flag is on, a positioning instruction (including PLSR and  
PLSY) that uses the same output cannot be executed.  
If the "pulse output monitor" (BUSY/READY) flag is still on after the instruction activation contact is turned  
off, do not execute a positioning instruction (including PLSR and PLSY instructions) that uses the same  
output number.  
If the forward limit relay or the reverse limit relay in the operation direction is turned on, the speed will  
decelerate and the operation will stop. In this case, the "Instruction execution abnormal end" flag (M8329)  
will turn when execution of the instruction is complete.  
For details on "Instruction execution abnormal end" flag, refer to Subsection 4.7.4.  
B - 132  
 
9 One-speed Interrupt constant quantity feed -DVIT Instruction  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
9.4 Important Points  
A
B
• The interrupt input cannot be used for the following items:  
Interrupt inputs can only be specified when using Ver.1.30 or later.  
- High-speed counter  
- Input interruption  
- Pulse catch  
- SPD instruction  
- DSZR instruction  
- ZRN instruction  
Apx.  
B - 133  
10 Variable Speed Operation (Variable Speed Pulse Output)-PLSV Instruction  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
10.1 Instruction Format  
10. Variable Speed Operation  
(Variable Speed Pulse Output)-PLSV Instruction  
The built-in positioning function uses the variable speed pulse output (PLSV) instruction equipped with the  
rotation direction designation function to perform variable speed operation. If an FX3U/FX3UC PLC Ver.2.20 or  
later or FX3G PLC is used, this instruction can change the speed using the acceleration/deceleration speed.  
10.1 Instruction Format  
1. Instruction Format  
16-bit  
32-bit  
Instruction  
symbol  
Instruction  
symbol  
FNC 157  
PLSV  
Execution condition  
Execution condition  
instruction  
instruction  
D
Continuous  
execution  
type  
Continuous  
execution  
type  
DPLSV  
-
PLSV  
-
9 steps  
17 steps  
PULSE V  
2. Data setting  
Operand type  
S
Description  
Data type  
*1  
BIN 16/32-bit  
Specifies the output pulse frequency designation device number.  
Specifies the pulse output device number.  
D1  
Bit  
Specifies the rotation direction signal output destination device number.  
D2  
*1. Setting range : -32,768 Hz to -1 Hz and +1 Hz to 32,767 Hz for 16-bit operation. For the  
32-bit operation, however, the setting range should be as shown in the following table.  
Pulse output destination  
Setting range  
FX3U PLC  
High-speed output special adapter -200,000 to -1 to +1 to 200,000(Hz)  
FX3G/FX3U/FX3UC  
PLC  
Main unit (transistor output)  
-100,000 to -1 to +1 to 100,000(Hz)  
3. Devices  
Bit device  
System user  
Word device  
Others  
Real Char-  
Con-  
Operand  
type  
System  
user  
Special  
unit  
Digit designation  
Index  
Z Modify  
num- acter Pointer  
stant  
ber  
string  
X Y M T C S D.b KnX KnY KnM KnS T C D R U\Gꢁ  
3 3 3 3 4  
V
K
H
E
""  
P
3
3
3
3
3 3  
3
3
3
S
1
3
D1  
2
3
3 3  
3
D2  
1 : Specify Y000, Y001, or Y002*1 transistor output from the main unit, or specify Y000, Y001, Y002*3, or  
Y003*3 from a high-speed output special adapter*2.  
*1. Y002 is not available in 14-point and 24-point type FX3G PLC.  
*2. High-speed input/output special adapters can be connected only to the FX3U PLC.  
*3. To use Y002 and Y003 with a high-speed output special adapter, connect a second high-speed output  
special adapter.  
B - 134  
   
10 Variable Speed Operation (Variable Speed Pulse Output)-PLSV Instruction  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
10.2 List of Related Devices  
A
B
Point:  
• To use an FX3U Series main unit of relay output type, be sure to connect a high-speed output special  
adapter. Differential line drive type outputs will be used for the outputs of the high-speed output special  
adapter.  
2 : When a high-speed output special adapter is used as a destination for pulse output on a FX3U PLC,  
use the output shown in the following table for rotation direction signals.  
When a built-in transistor output is used as a destination for pulse output on a FX3G/FX3U/FX3UC PLC,  
use transistor output for signals rotation direction.  
High-speed output special  
adapter connection position  
Pulse output  
Rotation direction output  
= Y000  
= Y001  
= Y002  
= Y003  
D
2
D
1
= Y004  
= Y005  
= Y006  
= Y007  
Apx.  
1st adapter  
D2  
D1  
D2  
D1  
2nd adapter  
D2  
D1  
3 : D.b is available only in FX3U and FX3UC PLCs. However, index modifiers (V and Z) are not available.  
4 : Only available for FX3U and FX3UC PLCs.  
10.2 List of Related Devices  
1. Special auxiliary relays  
The following table shows the related special auxiliary relays. Note that Y000, Y001, Y002, and Y003 are  
devices that determine the pulse output destinations.  
Device number  
Function  
Attribute  
Refer to  
*1  
*2  
Y000  
Y001  
M8029  
Y002  
Y003  
"Instruction execution complete" flag  
Read only Subsection 4.4.2  
Read only Subsection 4.4.2  
Drivable Subsection 4.3.9  
Read only Subsection 4.4.3  
"Instruction execution abnormal end"  
flag  
M8329  
*4  
*3  
M8338  
Acceleration/deceleration  
"Pulse output monitor" (BUSY/READY)  
flag  
M8340  
M8350  
M8360  
M8370  
M8343  
M8344  
M8348  
M8353  
M8354  
M8358  
M8363  
M8364  
M8368  
M8373 Forword limit  
Drivable Subsection 4.3.1  
Drivable Subsection 4.3.1  
Read only Subsection 4.4.4  
M8374 Reverse limit  
M8378 Positioning instruction activation  
*1. Y002 is not available in 14-point and 24-point type FX3G PLC.  
*2. Devices related to Y003 (pulse output destination) are only valid if two FX3U-2HSY-ADP adapters are  
connected to the FX3U PLC.  
*3. Only available for FX3U/FX3UC PLC Ver. 2.20 or later and FX3G PLC.  
*4. Cleared when the PLC switches from RUN to STOP.  
B - 135  
 
10 Variable Speed Operation (Variable Speed Pulse Output)-PLSV Instruction  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
10.2 List of Related Devices  
2. Special data registers  
The following table shows the related special data registers. Note that Y000, Y001, Y002, and Y003 are  
devices that determine the pulse output destinations.  
Device number  
Data  
length value  
Initial  
Function  
Refer to  
*1  
*2  
Y000  
Low-  
Y001  
Y002  
Y003  
Low-  
order  
Low-  
order  
Low-  
order  
D8340  
D8350  
D8351  
D8360  
D8370  
order  
Current value register  
(PLS)  
Subsection  
4.4.1  
32-bit  
0
0
High-  
order  
High-  
order  
High-  
order  
High-  
order  
D8341  
D8361  
D8371  
Subsection  
4.2.6  
D8342  
D8352  
D8362  
D8372  
Bias speed (Hz)  
16-bit  
Low-  
order  
Low-  
order  
Low-  
order  
Low-  
order  
D8343  
D8344  
D8353  
D8354  
D8363  
D8364  
D8373  
D8374  
Subsection  
4.2.5  
Maximum speed (Hz)  
Acceleration time  
32-bit 100,000  
High-  
order  
High-  
order  
High-  
order  
High-  
order  
Subsection  
4.2.7  
D8348  
D8349  
D8358  
D8359  
D8368  
D8369  
D8378  
D8379  
16-bit  
16-bit  
100  
100  
*3  
(ms)  
Deceleration time  
Subsection  
4.2.8  
*3  
(ms)  
*1. Y002 is not available in 14-point and 24-point type FX3G PLC.  
*2. Devices related to Y003 (pulse output destination) are only valid if two FX3U-2HSY-ADP adapters are  
connected to the FX3U PLC.  
*3. This device is valid for the PLSV instruction only when the acceleration/deceleration operation is performed in  
the FX3U/FX3UC PLC Ver. 2.20 or later or FX3G PLC.  
B - 136  
10 Variable Speed Operation (Variable Speed Pulse Output)-PLSV Instruction  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
10.3 Function and Operation  
A
B
10.3 Function and Operation  
The variable speed pulse output instruction changes the speed while using the rotation direction output.  
The acceleration/deceleration function applies for the variable speed pulse output (PLSV) instruction, which  
makes it possible to specify whether acceleration/deceleration will be used or not.  
If an FX3UC PLC below Ver.2.20 is used, operation will be performed without acceleration/deceleration.  
10.3.1 Operation without Acceleration/Deceleration (M8338 = OFF)  
If the output pulse frequency  
S
value is changed after turning the  
acceleration/deceleration function (M8338) OFF, the variable speed  
pulse output (PLSV) instruction will change the output frequency without  
using acceleration/deceleration.  
Apx.  
M8001  
M8338  
Command  
input  
FNC 157  
S
D
1•  
D2•  
PLSV  
For details on the maximum speed and bias speed, refer to Subsection 4.2.5 and Subsection 4.2.6.  
Speed  
Time  
S
100  
250  
500  
250  
Instruction  
Activation contact  
ON  
OFF  
1) For  
S
, specify the output pulse frequency.  
Even if pulses are being output, the output pulse frequency  
Acceleration/deceleration, however, will not be performed.  
S
can be changed freely.  
Setting range  
16-bit operation  
-32,768 to -1 Hz, 1 to 32,767 Hz  
When a high-speed output special  
adapter is used  
-200,000 to -1 Hz, 1 to 200,000 Hz  
32-bit operation  
When a transistor output from the  
main unit is used  
-100,000 to -1 Hz, 1 to 100,000 Hz  
2) For  
3) For  
D
1
, specify the pulse output number in the range of Y000 to Y003.  
, specify the rotation direction signal output device number.  
D2  
When a high-speed output special adapter is used as a destination for pulse output on a FX3U PLC, use  
the output shown in the following table for rotation direction signals.  
When a built-in transistor output is used as a destination for pulse output on a FX3G/FX3U/FX3UC PLC,  
use transistor output for signals rotation direction.  
High-speed output special  
adapter number  
Pulse output  
destination device  
Rotation direction  
output  
= Y000  
= Y001  
= Y002  
= Y003  
D
2
D
1
= Y004  
= Y005  
= Y006  
= Y007  
1st adapter  
2nd adapter  
D2  
D1  
D2  
D1  
D2  
D1  
B - 137  
   
10 Variable Speed Operation (Variable Speed Pulse Output)-PLSV Instruction  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
10.3 Function and Operation  
The rotation direction ON/OFF status of the specified device is shown in the following table.  
During instruction execution, however, do not use the output  
D2  
for other purposes.  
ON/OFF status of  
device specified  
Rotation direction (increase/decrease current value)  
D2  
by  
S
If the number of output pulses specified by  
is a positive number, the operation will  
ON  
be performed in the forward rotation direction.  
D
1
Forward rotation (Outputting pulses from  
If the number of output pulses specified by  
will increase the current value.)  
S
is a negative number, the operation  
OFF  
will be performed in the reverse rotation direction.  
D1  
Reverse rotation (Outputting pulses from  
will decrease the current value.)  
10.3.2 Operation with Acceleration/Deceleration (M8338 = ON)  
If the output pulse frequency  
S
value is changed after turning the  
acceleration/deceleration (M8338) ON, the variable speed pulse output  
(PLSV) instruction will accelerate or decelerate to the changed output.  
If a FX3UC PLC below Ver.2.20 is used, operation will be performed without acceleration/deceleration.  
M8000  
M8338  
Command  
input  
FNC 157  
S
D
1•  
D2•  
PLSV  
For details on the maximum speed, bias speed, acceleration time, and deceleration time, refer to  
Subsection 4.2.5 to Subsection 4.2.8.  
Maximum speed Initial value: 100,000 Hz  
Output  
pulse  
Speed  
frequency  
S
Bias speed  
Time  
Acceleration time  
Initial value: 100 ms  
Deceleration time  
Bias speed  
Initial value: 0 Hz  
Initial value: 100 ms  
250  
S
100  
250  
500  
ON  
Instruction  
Activation contact  
OFF  
1) For  
S
, specify the output pulse frequency.  
Even if pulses are being output, the output pulse frequency  
deceleration will be performed.  
S
can be changed freely. Acceleration/  
Setting range  
16-bit operation  
-32,768 to -1 Hz, 1 to 32,767 Hz  
When a high-speed output special  
adapter is used  
-200,000 to -1 Hz, 1 to 200,000 Hz  
-100,000 to -1 Hz, 1 to 100,000 Hz  
32-bit operation  
When a transistor output from the  
main unit is used  
2) For  
D1  
, specify the pulse output number in the range of Y000 to Y003.  
B - 138  
 
10 Variable Speed Operation (Variable Speed Pulse Output)-PLSV Instruction  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
10.3 Function and Operation  
A
B
3) For  
D
2
, specify the rotation direction signal output device number.  
When a high-speed output special adapter is used as a destination for pulse output on a FX3U PLC, use  
the output shown in the following table for rotation direction signals.  
When a built-in transistor output is used as a destination for pulse output on a FX3G/FX3U/FX3UC PLC,  
use transistor output for signals rotation direction.  
High-speed output special  
adapter number  
Pulse output  
Rotation direction  
output  
destination device  
= Y000  
= Y001  
= Y002  
= Y003  
D
2
D
1
= Y004  
= Y005  
= Y006  
= Y007  
1st adapter  
D2  
D1  
D2  
D1  
2nd adapter  
Apx.  
D2  
D1  
The rotation direction ON/OFF status of the specified device is shown in the following table.  
During execution of this instruction, however, do not use the output  
D2  
for other purposes.  
ON/OFF status of device  
Rotation direction (increase/decrease current value)  
D
2
specified by  
S
If the number of output pulses specified by  
is a positive number, the operation  
ON  
will be performed in the forward rotation direction.  
D
1
Forward rotation (Outputting pulses from  
If the number of output pulses specified by  
will increase the current value.)  
is a negative number, the  
S
OFF  
operation will be performed in the reverse rotation direction.  
D1  
Reverse rotation (Outputting pulses from  
will decrease the current value.)  
B - 139  
10 Variable Speed Operation (Variable Speed Pulse Output)-PLSV Instruction  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
10.4 Important Points  
10.4 Important Points  
For important programming points, refer to Section 4.7.  
• During pulse output operation, if the output pulse frequency  
S
is changed to "K0", the PLC will reduce  
the speed and then stop the pulse outputting operation if the acceleration/deceleration function is ON.  
However, if the acceleration/deceleration function is not activated, the PLC will immediately stop the pulse  
outputting operation.  
Before outputting pulses again, check that the "pulse output monitor" (BUSY/READY) flag is off, and then  
wait until 1 or more cycles of operation have been completed. After that, set (change) the output pulse  
frequency to a value other than "K0".  
• During pulse outputting operation, do not change the sign attached to the output pulse frequency  
value  
If it is necessary to change the sign, stop the servo motor first by setting the output pulse frequency value  
to "K0", and wait for the motor to stop completely after decelerating to stop. And then, change the  
sign attached to the output pulse frequency value  
If the sign attached to the output pulse frequency value  
S
.
S
S
.
S
is changed during pulse outputting  
operation, the operation may be changed as follows, and the machine, therefore, may be damaged:  
1) The pulse outputting operation may be stopped.  
2) "Pulse output monitor" (BUSY/READY) flag may be turned off.  
(The pulse outputting operation may be stopped, but the motor may not be stopped immediately.)  
3) Operation may be performed in the specified direction at the frequency specified by the output  
pulse frequency value  
S
.
• If the instruction activation contact is turned off during pulse outputting operation while the acceleration/  
deceleration function is ON, the speed will decelerate and the operation will stop.  
If the instruction activation contact is turned off during pulse outputting operation while the acceleration/  
deceleration function is OFF, the operation will stop immediately. In both cases, the "Instraction execution  
complete" flag (M8029) will not turn on.  
• If a limit flag (forward / reverse rotation) in the operation direction is turned on, the operation will stop  
immediately. In this case, the "Instruction execution abnormal end" flag (M8329) will turn on when  
execution of the instruction is complete.  
For details on the "Instruction execution abnormal end" flag, refer to Subsection 4.7.4.  
• If the "pulse output monitor" (BUSY/READY) flag is on, a positioning instruction (including PLSR and  
PLSY) that uses the same output cannot be executed.  
If the "pulse output monitor" (BUSY/READY) flag is still on after the instruction activation contact is turned  
off, do not execute a positioning instruction (including PLSR and PLSY instructions) that uses the same  
output number.  
• After executing the instruction, the rotation direction signal output will turn off.  
1. Important items for FX3UC PLCs below Ver.2.20  
• Acceleration/deceleration will not be performed when starting or stopping the operation. For this reason, if  
it is necessary to use the cushion start function or the cushion stop function, increase/decrease the output  
pulse frequency value  
S
using the FNC67 (RAMP) instruction, etc.  
2. Important items for FX3U/FX3UC PLCs Ver.2.20 or later and FX3G  
PLCs  
If acceleration/deceleration is enabled, the variable speed pulse output (PLSV) instructions for all of the  
pulse output destination devices will use acceleration/deceleration. This means that acceleration/  
deceleration cannot be specified separately for each pulse output destination device.  
B - 140  
 
11 Batch Data Positioning Mode (TBL Instruction)  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
11.1 Instruction Format  
A
B
11. Batch Data Positioning Mode (TBL Instruction)  
If GX Developer Ver.8.23Z or later is used, the positioning instructions  
shown below can be preliminarily set in the positioning tables. After that,  
if a table is specified, the positioning operation of the specified table will  
be performed.  
Instruction  
Description  
Apx.  
*1  
One-speed interrupt constant quantity feed (Interrupt positioning)  
DVIT (FNC151)  
PLSV(FNC157) Variable speed operation (Variable Speed Pulse Output)  
DRVI(FNC158)  
DRVA(FNC159)  
Drive to Increment  
Drive to Absolute  
1-speed  
positioning  
*1. Only available for FX3U and FX3UC PLCs.  
11.1 Instruction Format  
1. Instruction Format  
16-bit  
instruction  
32-bit  
Instruction  
symbol  
Instruction  
symbol  
FNC 152  
Execution condition  
Execution condition  
instruction  
D
TBL  
-
-
DTBL  
-
Continuous  
execution  
type  
17 steps  
TABLE  
Command  
input  
FNC152  
DTBL  
D
n
2. Data setting  
Operand type  
Description  
Data type  
Bit  
Specifies the pulse output number.  
D
n
Specifies the table number (1 to 100) to be executed.  
BIN 32-bit  
3. Devices  
Bit device  
Word device  
Others  
Real Char-  
num- acter Pointer  
ber string  
Operand  
type  
Con-  
stant  
Special  
unit  
System user  
Digit designation  
System user  
Index  
Modify  
X
Y M T C S D.b KnX KnY KnM KnS T  
C
D
R U\GV  
Z
K
H
E
""  
P
1
D
n
3
3
1 : Specify Y000, Y001, or Y002*1 transistor output from the main unit, or specify Y000, Y001, Y002*3, or  
Y003*3 from a high-speed output special adapter*2.  
*1. Y002 is not available in 14-point and 24-point type FX3G PLC.  
*2. High-speed input/output special adapters can be connected only to the FX3U PLC.  
*3. To use Y002 and Y003 with a high-speed output special adapter, connect a second high-speed output  
special adapter.  
Point:  
To use an FX3U Series main unit of relay output type, be sure to connect a high-speed output special adapter.  
Differential line drive type outputs will be used for the outputs of the high-speed output special adapter.  
B - 141  
   
11 Batch Data Positioning Mode (TBL Instruction)  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
11.2 List of Related Devices  
11.2 List of Related Devices  
1. Special auxiliary relays  
The following table shows the related special auxiliary relays. Note that Y000, Y001, Y002, and Y003 are  
devices that determine the pulse output destinations.  
Device number  
Function  
Attribute  
Refer to  
*1  
*2  
Y000  
Y001  
Y002  
Y003  
Subsection  
4.4.2  
M8029  
"Instruction execution complete" flag  
Read only  
Read only  
Drivable  
Drivable  
Read only  
Drivable  
Drivable  
Drivable  
Read only  
Drivable  
Drivable  
Subsection  
4.4.2  
M8329  
M8338  
M8336  
"Instruction execution abnormal end" flag  
Subsection  
4.3.9  
*4, *7  
Acceleration/deceleration operation  
Subsection  
4.3.7  
*4, *5  
Interrupt input specification function enable  
Subsection  
4.4.3  
M8340  
M8343  
M8344  
M8347  
M8348  
M8349  
M8460  
M8350  
M8353  
M8354  
M8357  
M8358  
M8359  
M8461  
M8360  
M8363  
M8364  
M8367  
M8368  
M8369  
M8462  
M8370 "Pulse output monitor"(BUSY/READY) flag  
M8373 Forward limit  
Subsection  
4.3.1  
Subsection  
4.3.1  
M8374 Reverse limit  
Subsection  
4.3.8  
*4, *6  
M8377  
Interrupt signal logic reverse  
Subsection  
4.4.4  
M8378 Positioning instruction activation  
Subsection  
4.3.2  
*4  
M8379  
M8463  
Pulse output stop command  
Subsection  
4.3.7  
*3*, 4  
User interrupt input command  
*1. Y002 is not available in 14-point and 24-point type FX3G PLC.  
*2. Devices related to Y003 (pulse output destination) are only valid if two FX3U-2HSY-ADP adapters are  
connected to the FX3U PLC.  
*3. Only available for FX3U/FX3UC PLC Ver. 2.20 or later.  
*4. Cleared when the PLC switches from RUN to STOP.  
*5. Only available for FX3U/FX3UC PLC Ver. 1.30 or later.  
*6. The logical NOT function is not valid for the user interrupt input command.  
*7. Only available for FX3U/FX3UC PLC Ver. 2.20 or later and FX3G PLC.  
B - 142  
 
11 Batch Data Positioning Mode (TBL Instruction)  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
11.2 List of Related Devices  
A
B
2. Special data registers  
The following table shows the related special data registers. Note that Y000, Y001, Y002, and Y003 are  
devices that determine the pulse output destinations. To set the constants shown in the shaded area, set the  
positioning parameters.  
For details on the positioning parameters, refer to Section 11.4.  
Device number  
Data  
length value  
Initial  
Function  
Refer to  
*1  
*2  
Y000  
Y001  
Y002  
Y003  
Specification of  
Subsection  
4.3.7  
D8336  
Low-  
16-bit  
32-bit  
16-bit  
-
*3  
interrupt input.  
Low-  
order  
Low-  
order  
Low-  
order  
D8340  
D8341  
D8350  
D8351  
D8360  
D8370  
order  
Current value register  
(PLS)  
Subsection  
4.4.1  
Apx.  
0
0
High-  
order  
High-  
order  
High-  
order  
High-  
order  
D8361  
D8371  
Subsection  
4.2.6  
D8342  
D8352  
D8362  
D8372  
Bias speed (Hz)  
Low-  
order  
Low-  
order  
Low-  
order  
Low-  
order  
D8343  
D8344  
D8353  
D8354  
D8363  
D8364  
D8373  
D8374  
Maximum speed  
(Hz)  
Subsection  
4.2.5  
32-bit 100,000  
High-  
order  
High-  
order  
High-  
order  
High-  
order  
Subsection  
4.2.4  
D8345  
D8355  
D8365  
D8375  
Creep speed (Hz)  
16-bit  
32-bit  
1000  
Low-  
order  
Low-  
order  
Low-  
order  
Low-  
order  
D8346  
D8347  
D8356  
D8357  
D8366  
D8367  
D8376  
D8377  
Zero return speed  
(Hz)  
Subsection  
4.2.3  
50,000  
High-  
order  
High-  
order  
High-  
order  
High-  
order  
Acceleration time  
Subsection  
4.2.7  
D8348  
D8349  
D8358  
D8359  
D8368  
D8369  
D8378  
D8379  
16-bit  
16-bit  
100  
100  
*4  
(ms)  
Deceleration time  
Subsection  
4.2.8  
*4  
(ms)  
*1. Y002 is not available in 14-point and 24-point type FX3G PLC.  
*2. Devices related to Y003 (pulse output destination) are only valid if two FX3U-2HSY-ADP adapters are  
connected to the FX3U PLC.  
*3. This function is valid if Ver.1.30 or later is used.  
However, the user interrupt input command can be specified only if the FX3U/FX3UC PLC Ver.2.20 or later is  
used.  
*4. This device is valid for the PLSV instruction only when the acceleration/deceleration operation is performed in  
the FX3U/FX3UC PLC Ver. 2.20 or later or FX3G PLC.  
B - 143  
11 Batch Data Positioning Mode (TBL Instruction)  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
11.3 Function and Operation  
11.3 Function and Operation  
Preliminarily set the positioning parameters using GX Developer, and then specify the pulse output destination  
D
and the positioning table number (n) for the DTBL instruction in order to carry out positioning.  
Use GX Developer Ver.8.23Z or later to set the positioning parameters.  
The "number of pulses" and "frequency" set by the positioning parameters in each positioning table can be  
changed using the program, display module, or HMI.  
For details on positioning parameters, refer to Section 11.4.  
Positioning table setting  
Specifies the pulse output destination  
device for the positioning table to be  
activated.  
A
Command  
input  
B
FNC152  
DTBL  
D
n
Specifies the positioning  
table number to be activated.  
C
D
E
Constant setting  
As shown in the following table, each positioning instruction consists of the positioning type (4 types in total),  
number of pulses (pls), frequency (Hz), etc.  
For further information on the operation of each instruction, refer to the description of each instruction.  
Instruction and its operand to be activated  
Operand  
Positioning type  
D
E
A
B
Refer to  
Instruction  
word  
C
Number of Output pulse Pulse output  
output pulses frequency destination  
device  
Rotation  
direction  
signal  
S
1
S
2
D1  
D1  
D1  
D1  
D2  
D2  
D2  
D2  
DDVIT(Interrupt Positioning)  
DPLSV(Variable Speed Pulse Output)  
DDRVI(Drive to Increment)  
DDVIT  
DPLSV  
DDRVI  
DDRVA  
Chapter 9  
S
Chapter 10  
Section 8.2  
Section 8.3  
S1  
1
S
2
2
S
S
DDRVA(Drive to Absolute)  
Command  
input  
FNC{{{  
*1  
*1 PLSV(FNC157) has only 3 operands. It has no operand of number of output pulses.  
B - 144  
 
11 Batch Data Positioning Mode (TBL Instruction)  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
11.4 Positioning Parameter Setting  
A
B
11.4 Positioning Parameter Setting  
Use GX Developer Ver.8.23Z or later to set the positioning parameters in the FX3U/FX3UC PLC. Use GX  
Developer Ver.8.72A or later to set the positioning parameters in the FX3G PLC.  
The "number of pulses" and "frequency" set by the positioning parameters in a positioning table can be  
changed using the program, display module, or HMI.  
To change the set "number of pulses" or "frequency", refer to Subsection 11.4.2.  
11.4.1 Positioning Parameter Setting Using GX Developer  
Assuming that GX Developer Ver.8.23Z or later is used, this section describes how to set the positioning  
parameters.  
Apx.  
1
Open the "parameter setting" window.  
On the project tree displayed on the left side of the screen, double-click "Parameter" and then "PLC  
Parameter".  
If the project tree is not displayed, click "View" on the menu bar, and then click "Project data list"  
B - 145  
   
11 Batch Data Positioning Mode (TBL Instruction)  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
11.4 Positioning Parameter Setting  
2
Set the memory capacity.  
Click on the "Memory capacity" tab, and then click on the "Positioning Instruction Setting" check  
box to enter a check in the box.  
*1  
Enter a check.  
Setting item  
Description of setting  
Setting range  
*1  
Memory capacity  
Set the capacity of the program memory. Initial value: 16000  
Set the capacity for the comments to be stored in the PLC. Initial  
value: 0  
Device comment: 50 points/block (500 steps)  
Comment capacity  
Refer to the  
programming  
manual.  
Set the capacity for the file registers. Initial value: 0  
File registers: 500 points/block (500 steps)  
File register capacity  
Program capacity  
Displays the number of steps that can be used for the sequence  
program.  
Special Function Memory Set whether the special unit initial data setting function and the  
-
-
capacity  
positioning data setting function should be enabled.  
Enter a check in the check box to enable the special function unit/  
block initial data setting function. Use the "I/O Assignment Setting"  
tab to set the initial value of a special unit.  
Special Function Block  
*2  
Settings  
Enter a check in the check box to enable the TBL (FNC152)  
instruction setting function. Use the "Positioning Data Setting" tab to  
set the positioning data.  
Positioning Instruction  
settings  
-
*1. The initial value is 8000 steps for GX Developer below Ver.8.22Y.  
The initial value is "8000 steps" in the FX3G PLC.  
*2. Only available for FX3U and FX3UC PLCs.  
B - 146  
11 Batch Data Positioning Mode (TBL Instruction)  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
11.4 Positioning Parameter Setting  
A
B
3
Set the positioning data.  
After entering a check, positioning data can be set. Use the FX3U/FX3UC PLC of Ver.2.20 or later or  
FX3G PLC to use "Positioning".  
1. Click on the "Positioning" tab.  
On the "Memory Capacity" tab, preliminarily enter a check in "Positioning Instruction Setting" check box to set  
the positioning data setting table on the "Positioning" tab.  
2. Set the positioning constants to be used for TBL (FNC152) instruction.  
Apx.  
Setting  
range  
Setting item  
Description of setting  
1/10 or less  
of the maxi-  
mum speed  
Bias speed (Hz)  
Sets the bias speed for each pulse output number. Initial value: 0  
Maximum speed (Hz) Sets the maximum speed for each pulse output number. Initial value: 100000  
*1  
10 to  
Sets the creep speed of the DSZR (FNC150) instruction for each pulse output  
number. Initial value: 1000  
Creep speed (Hz)  
*2  
32767  
Zero return speed  
(Hz)  
Sets the zero return speed of the DSZR (FNC150) instruction for each pulse  
output number. Initial value: 50000  
*1  
Acceleration time (ms) Sets the acceleration time for each pulse output number. Initial value: 100  
Deceleration time (ms) Sets the deceleration time for each pulse output number. Initial value: 100  
50 to 5000  
50 to 5000  
*3  
Sets the interrupt input for each pulse output number to activate the DVIT  
(FNC151) instruction. If a pulse output destination device does not use the  
DVIT instruction, specify a user interrupt input command (M).  
Interrupt input of  
Initial setting:  
Setting range  
Shown on  
left side  
*5  
Y000 (pulse output destination): X000  
Y001 (pulse output destination): X001  
Y002 (pulse output destination): X002  
X000 to X007, M8460  
X000 to X007, M8461  
X000 to X007, M8462  
DVIT instruction  
*4  
Y003 (pulse output destination): X003  
X000 to X007, M8463  
Y0  
Y1  
Sets data in this area if Y000 is specified as the pulse output destination device.  
Sets data in this area if Y001 is specified as the pulse output destination device.  
Sets data in this area if Y002 is specified as the pulse output destination device.  
-
-
-
*6  
Y2  
*4  
Sets data in this area if Y003 is specified as the pulse output destination device.  
-
Y3  
Displays the "Individual Setting" window for the TBL (FNC152) instruction table  
setting.  
Individual setting  
-
For details on data setting, refer to the next page.  
B - 147  
11 Batch Data Positioning Mode (TBL Instruction)  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
11.4 Positioning Parameter Setting  
*1. When the destination for pulse output on a FX3U or FX3UC PLC is a built-in transistor output, the  
setting range is 10 to 100,000 Hz.  
If an FX3U PLC is used, and if the pulse output destination is a FX3U-2HSY-ADP, the setting range will  
be 10 to 200,000 Hz.  
*2. Set the creep speed so that the relation with the other speeds is "bias speed creep speed ≤  
maximum speed."  
*3. The set interrupt input cannot be simultaneously used for a high-speed counter, input interruption,  
pulse catch input, input for the SPD (FNC67) instruction, or for other interrupt inputs of the DVIT  
(FNC151) instruction.  
*4. Note that this item can only be set if two FX3U-2HSY-ADP adapters are connected to the FX3U PLC.  
*5. Only available for FX3U and FX3UC PLCs.  
*6. Y002 is not available in 14-point and 24-point type FX3G PLC.  
3. Click on the "Individual Setting" button to display the "Positioning instruction setting"  
window. In this window, set the positioning table for each pulse output destination device.  
Setting item  
Description of setting  
Setting range  
Y0  
Y1  
Click this tab to set the positioning table for Y000 (pulse output destination).  
Click this tab to set the positioning table for Y001 (pulse output destination).  
Click this tab to set the positioning table for Y002 (pulse output destination).  
-
-
-
*1  
Y2  
Y3  
*2  
Click this tab to set the positioning table for Y003 (pulse output destination).  
-
*3  
Set the rotation direction output number.  
*6  
Initial setting:  
Y010 for Y000 (pulse output destination)  
Y011 for Y001 (pulse output destination)  
Y012 for Y002 (pulse output destination)  
Y000 to Y357  
M0 to M7679  
S0 to S4095  
Rotation direction  
signal  
*2  
Y013 for Y003 (pulse output destination)  
Set the first device number to store the set data (number of pulses, frequency).  
D0 to D6400  
Head Address  
No.  
*4  
*7  
Starting from the set device, 1600 points will be occupied. Initial setting: R0 R0 to R31168  
Table number  
Data can be set for tables 1 to 100.  
-
Select a positioning type from the following types:  
Positioning  
Instruction  
*5  
-
DDVIT (Interrupt positioning) , DPLSV (Variable Speed Pulse Output),  
DDRVI (Drive to Increment), DDRVA (Drive to Absolute)  
Set the number of pulses to be output to perform the specified type of  
positioning operation (instruction).  
Pulse  
*8  
Set the speed (output pulse frequency) to perform the specified type of  
positioning operation (instruction).  
Frequency (Hz)  
"Up" button  
"Down" button  
Click this button to move the cursor up by 1 line  
(to select the line just above the cursor-positioned line).  
-
-
Click this button to move the cursor down by 1 line  
(to select the line just below the cursor-positioned line).  
B - 148  
11 Batch Data Positioning Mode (TBL Instruction)  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
11.4 Positioning Parameter Setting  
A
B
Setting item  
Description of setting  
Click this button to insert a line at the specified position.  
Setting range  
"Insert" button  
"Delete" button  
-
-
Click this button to delete the selected line.  
Click this button to delete all the data from the positioning table of the selected  
pulse output destination device.  
"Delete All" button  
-
If this check box is checked, the positioning data will not be initialized when the  
PLC power is turned ON. Enter a check in this check box to retain the  
Positioning table  
setting will not be changed data ("pulses" and "frequency" changed by the program, display  
initialized when the module, or HMI) even after power-off and to use the changed data after turning  
PLC is powered on on the power again. To use this function, set an uninterruptible power supply  
type device as the first device.  
-
*4  
Click this button to write 1600 points of data ("pulses" and "frequency" set on  
Apx.  
"Write" button  
-
-
the positioning table using GX Developer) starting from the first device of the  
PLC.  
*4  
Click this button to read out 1600 points of data ("pulses" and "frequency" set  
on the positioning table currently used) from the PLC starting from the first  
device. At the completion of data reading, the data numbers will appear only if  
"Positioning Instruction" is set for the data.  
"Read" button  
*1. Y002 is not available in 14-point and 24-point type FX3G PLC.  
*2. Note that this item can only be set if two FX3U-2HSY-ADP adapters are connected to the FX3U PLC.  
*3. To use an FX3U-2HSY-ADP, set the rotation direction signal depending on the pulse output destination  
device as shown in the following table.  
Pulse output destination device  
Rotation direction signal  
Y000  
Y001  
Y002  
Y003  
Y004  
Y005  
Y006  
Y007  
*4. 1200 in the FX3G series PLC.  
*5. Only available for FX3U and FX3UC PLCs.  
*6. Up to Y000 to Y177 in the FX3G series PLC.  
*7. Up to D0 to D6800, R0 to R22800 in the FX3G series PLC.  
*8. Refer to the description of the selected instruction (positioning type).  
Positioning type  
DDVIT (Interrupt positioning)  
Refer to  
Chapter 9  
Chapter 10  
Section 8.2  
Section 8.3  
DPLSV (Variable Speed Pulse Output)  
DDRVI (Drive to Increment)  
DDRVA (Drive to Absolute)  
B - 149  
11 Batch Data Positioning Mode (TBL Instruction)  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
11.4 Positioning Parameter Setting  
4
Transfer the parameters (+ sequence program) to the PLC.  
1. Select "Online" from the tool menu, and then select "Write to PLC". The "Write to PLC"  
window will appear.  
*1  
*1. For Ver. 8.13P to 8.24A of GX Developer, the PLC type is FX3UC.  
2. Enter a check in the "PLC parameter" check box, and then click the "Execute" button.  
The selected parameter data will be transferred to the PLC. When the PLC is started (enters the RUN mode),  
the transferred parameter data will be enabled. If the communication conditions set on the "PLC system(2)"  
screen are changed, be sure to power the PLC OFF, and then ON again.  
B - 150  
11 Batch Data Positioning Mode (TBL Instruction)  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
11.4 Positioning Parameter Setting  
A
B
11.4.2 Changing of Set Positioning Parameters (Number of Pulses and Frequency)  
The "pulses" and "frequency" set by the positioning parameters in a positioning table will be stored in the  
devices starting from the specified first device as shown below. The set "pulses" and "frequency" can be  
changed using a display module or HMI.  
If the Head Address is set to "R0":  
Pulse  
output Positioning Number of  
Frequency  
table No.  
destination  
device  
pulses  
Apx.  
1
2
3
R1,R0  
R5,R4  
R9,R8  
R3,R2  
R7,R6  
R11,R10  
Y000  
Y001  
Y002  
Y003  
100  
1
2
R397,R396  
R401,R400  
R405,R404  
R409,R408  
R399,R398  
R403,R402  
R407,R406  
R411,R410  
3
100  
1
2
R797,R796  
R801,R800  
R805,R804  
R809,R808  
R799,R798  
R803,R802  
R807,R806  
R811,R810  
3
100  
1
2
R1197,R1196 R1199,R1198  
R1201,R1200 R1203,R1202  
R1205,R1204 R1207,R1206  
R1209,R1208 R1211,R1210  
3
100  
R1597,R1596 R1599,R1598  
Caution:  
If "positioning type" is set to "DPLSV (Variable Speed Pulse Output)", the "frequency (Hz)" value set on the  
screen will be stored as the set number of pulses, and the device for "frequency" will be "K0".  
To use the "pulses" and "frequency" changed by a display module or HMI even after turning the  
power OFF and then ON again:  
To use the "pulses" and "frequency" changed  
by a display module or HMI even after turning  
the power OFF and then ON again, enter a  
check in the "Positioning table settings will not  
be initialized when the PLC is powered on"  
check box in the "Positioning instruction  
Setting" window of the positioning parameters.  
To use this function, use the uninterruptible  
power supply type devices.  
If this function is not set, the data set by the  
positioning parameters will be initialized.  
Enter a check.  
B - 151  
 
11 Batch Data Positioning Mode (TBL Instruction)  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
11.4 Positioning Parameter Setting  
To read out and store the "pulse" and "frequency" changed by a display module or HMI:  
1) In the "Positioning instruction setting" window of the positioning parameters, enter a check in the  
"Positioning table settings will not be initialized when the PLC is powered on" check box.  
Enter a check.  
2) Click on the "Read" button to read out the set data ("pulse" and "frequency") from the connected main  
unit.  
This is exclusively for the positioning table number with the positioning type specified.  
Click the  
"Read" button.  
3) At the completion of register data reading, the data file will be stored.  
B - 152  
12 Examples of Programs  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
A
B
12. Examples of Programs  
Assuming that the MELSERVO Series 1-axis servo amplifier is used for control, this chapter shows various  
examples of programs.  
For the connection examples of MELSERVO-C, -J2(S), -H, and -J3 Series, refer to the following chapters and  
manuals.  
Refer to Chapter 3 and the examples of connection shown in the Appendix.  
Refer to the manual of your servo amplifier.  
Apx.  
Examples of programs  
Relay ladder Step ladder  
program program  
Description  
of  
instruction  
Operation  
DOG Search Zero  
Instruction  
Mechanical zero  
return  
DSZR(FNC150) Subsection 12.2.1 Subsection 12.3.1 Section 6.2  
ABS(FNC155) Section 12.5 Chapter 7  
Return  
Absolute position  
detection  
Reading of current  
ABS value  
-
Drive to Increment  
Drive to Absolute  
DRVI(FNC158) Subsection 12.2.1 Subsection 12.3.1 Section 8.2  
DRVA(FNC159) Subsection 12.2.1 Subsection 12.3.1 Section 8.3  
1-speed positioning  
Batch data positioning mode  
TBL(FNC152)  
Section 12.4  
-
Chapter 11  
B - 153  
 
12 Examples of Programs  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
12.1 Input/Output Assignment  
12.1 Input/Output Assignment  
The programs shown in this chapter use 1 axis for Y000 (pulse output destination device). If other pulse  
output destination device are used, change various device numbers when reading the description.  
Note that Y003 (pulse output destination device) can be used only if two FX3U-2HSY-ADP adapters are  
connected to the FX3U PLC.  
Input/output number  
Signal  
Connected to  
Y000 Y001 Y002 Y003  
*1  
Pulse train  
Y000 Y001 Y002 Y003  
(pulse output destination)  
*2, *3  
Direction  
Y004 Y005 Y006 Y007  
Connected to MELSERVO Series  
servo amplifier.  
(rotation direction signal)  
*3, *4  
Y020 Y024 Y030 Y034  
X004 X005 X006 X007  
CLEAR signal  
*4, *5  
Zero-phase signal  
*6  
X014 X015 X016 X017  
X020 X040 X050 X070  
X021 X041 X051 X071  
X022 X042 X052 X072  
X023 X043 X053 X073  
"Servo ready" signal  
Immediate stop command  
Zero return command  
Jog (+) command  
Jog (-) command  
Connected to external switches.  
Forward rotation positioning  
command  
X024 X044 X054 X074  
X025 X045 X055 X075  
Reverse rotation positioning  
command  
Stop command  
X030 X034 X060 X064  
X010 X011 X012 X013  
X000 X001 X002 X003  
X026 X046 X056 X076  
*4, *5  
Near-point signal (DOG)  
Interrupt signal  
Connected to sensors and limit switches.  
*7  
Forward rotation limit (LSF)  
*7  
X027 X047 X057 X077  
X031 X035 X061 X065  
X032 X036 X062 X066  
Reverse rotation limit (LSR)  
ABS(bit0)  
ABS(bit1)  
"Send data ready"  
signal  
X033 X037 X063 X067  
Y021 Y025 Y031 Y035  
Y022 Y026 Y032 Y036  
To use absolute  
positiondetection  
system  
Connected to Mitsubishi MELSERVO Series  
servo amplifier  
(MR-J2,MR-J2S, MR-J3, MR-H)  
Servo-ON signal  
"ABS data transfer  
mode" signal  
"ABS data  
request" signal  
Y023 Y027 Y033 Y037  
*1. To use the "forward rotation pulse train" signal and "reverse rotation pulse train" signal of a FX3U-  
2HSY-ADP, change the name of this signal to "forward rotation pulse train" signal when reading the  
description.  
*2. To use the "forward rotation pulse train" signal and "reverse rotation pulse train" signal of a FX3U-  
2HSY-ADP, change the name of this signal to "reverse rotation pulse train" signal when reading the  
description.  
*3. If an FX3UC PLC below Ver.2.20 is used, exchange the direction signal output number with the CLEAR  
signal output number.  
*4. If the absolute position detection system is used, and if the DSZR instruction and ZRN instruction are  
not used for the first zero return, this signal is not needed. To use the absolute position detection  
system, refer to the following chapter and manual.  
Refer to Chapter 7 and the manual of your servo amplifier.  
*5. To use the ZRN instruction for zero return, assign the input number of the near-point signal (DOG) to  
the zero-phase signal. This is needed since the ZRN instruction will not use the zero-phase signal.  
B - 154  
 
12 Examples of Programs  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
12.1 Input/Output Assignment  
A
B
*6. To use pin 3 of the CN1 connector of the MR-CA servo amplifier for the "servo ready" signal, set  
parameter 21 as follows:  
Series  
Parameter number Setting value  
21 020  
MR-C  
*7. To ensure safety, use a forward rotation limit switch and reverse rotation limit switch on both sides: the  
PLC side and the servo amplifier side.  
Note that the limit switches on the PLC side should be activated slightly earlier than the limit switches  
on the servo amplifier side.  
Reverse rotation limit 2 Reverse rotation limit 1  
Forward rotation limit 1 Forward rotation limit 2  
(Servo amplifier side) (Programmable controller side) (Programmable controller side) (Servo amplifier side)  
LSR  
LSF  
Apx.  
Servo motor  
Reverse rotation  
Forward rotation  
B - 155  
12 Examples of Programs  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
12.2 Programs for Forward/Reverse Rotation (Relay Ladder Program)  
12.2 Programs for Forward/Reverse Rotation (Relay Ladder Program)  
12.2.1 Example Program  
Positioning operation will be performed using the absolute positioning method shown in the following chart:  
For details on input/output assignment, refer to Section 12.1.  
500,000  
Output pulse frequency:  
100,000 Hz  
100  
Origin  
Acceleration/deceleration time:  
100 ms  
The following program is a relay ladder program.  
Stops outputting Y000  
X020  
pulses. (Immediate stop)  
Refer to Subsection 4.7.2.  
M8349  
Immediate stop  
X014  
Resets the "origin return  
RST  
RST  
RST  
M10  
completion" flag.  
Servo ready  
Resets the "forward rotation  
positioning completion" flag.  
M12  
Resets the "reverse rotation  
positioning completion" flag.  
M13  
X026  
Forward rotation limit(Y000)  
Reverse rotation limit(Y000)  
M8343  
M8344  
Forward rotation limit  
X027  
Reverse rotation limit  
M8000  
Enables the origin return  
operation with CLEAR signal  
outputting function. (CLEAR  
signal: Y020)  
FNC 12  
MOVP  
H0020 D8464  
RUN monitor  
M8464  
M8341  
M8000  
Performs origin return in the  
forward rotation direction.  
M8342  
RUN monitor  
M8002  
*1  
*1  
*1  
*1  
*1  
FNC 12  
DMOV  
Sets the maximum speed.  
K100000 D8343  
K1000 D8345  
K50000 D8346  
100,000(Hz)  
D8344,D8343  
Initial pulse  
FNC 12  
MOV  
Sets the creep speed.  
1,000(Hz) D8345  
FNC 12  
DMOV  
Sets the origin return speed.  
50,000(Hz) D8347,D8346  
FNC 12  
MOV  
Sets the acceleration time.  
100(ms) D8348  
K100  
K100  
D8348  
D8349  
FNC 12  
MOV  
Sets the deceleration time.  
100(ms) D8349  
*1. If the initial values (maximum speed, acceleration/deceleration time, zero return speed, creep speed)  
can be used, it is not necessary to create the program.  
For the related devices, refer to Section 4.1 to Section 4.4.  
B - 156  
   
12 Examples of Programs  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
12.2 Programs for Forward/Reverse Rotation (Relay Ladder Program)  
A
B
Resets the "zero  
X021  
M8348  
M101  
M102  
RST  
RST  
RST  
M10  
M12  
return completion"  
flag.  
Zero Positioning Normal Abnormal  
return being  
(Y000)  
end of end of  
Resets the "forward  
rotation positioning  
completion" flag.  
Resets the "reverse  
rotation positioning  
completion" flag.  
performed zero  
zero  
return return  
M100  
M13  
Zero return being  
performed  
Zero return is being  
performed.  
M100  
Y004  
Zero return instruction  
with DOG search  
function  
Apx.  
X030  
FNC 150  
DSZR  
X010  
X004  
Y000  
Stop  
command  
(CLEAR signal: Y020)  
Near-point  
signal  
Zero-  
phase  
Pulse  
output  
Rotation  
direction  
signal destination signal  
number  
M8029  
"Zero return  
SET  
M10  
completion" flag  
"Execution  
completion" flag  
Normal end of zero  
return  
M101  
M102  
M8329  
Abnormal end of  
zero return  
Abnormal  
end  
Resets the "forward  
rotation positioning  
completion" flag.  
Resets the "reverse  
rotation positioning  
completion" flag.  
X022 M8348  
M104  
RST  
RST  
M12  
M13  
JOG Positioning  
(+) being  
Completes  
the JOG(+)  
operation.  
performed  
*1  
(Y000)  
M103  
JOG(+) operation is  
being performed.  
M103  
JOG(+) operation is  
being performed.  
Performs the jogging  
operation in the "+"  
direction using the  
drive to Increment  
instruction.  
X030  
FNC 158  
DDRVI  
K999999 K30000 Y000  
Y004  
Stop  
command  
Number of Output  
Pulse  
output  
Rotation  
direction  
output pulses pulse  
(maximum value frequency destination signal  
(Y004=ON)  
in "+" direction)  
number  
X022  
Completes the  
JOG(+) operation.  
M104  
JOG(+)  
M8329  
Abnormal  
end  
Resets the "forward  
rotation positioning  
completion" flag.  
X023 M8348  
M106  
RST  
RST  
M12  
M13  
JOG Positioning  
(-) being  
Completes  
the JOG(-)  
operation.  
Resets the "reverse  
rotation positioning  
completion" flag.  
performed  
(Y000)  
*1  
JOG(-) operation is  
being performed.  
M105  
M105  
JOG(-) operation is  
being performed.  
Performs the jogging  
operation in the "-"  
direction using the  
drive to Increment  
instruction.  
X030  
FNC 158  
DDRVI  
K-999999 K30000 Y000  
Y004  
Stop  
command  
Number of Output  
output pulses pulse  
Pulse  
output  
Rotation  
direction  
(Y004=OFF)  
(maximum value frequency destination signal  
X023  
in "-" direction)  
number  
Completes the  
JOG(-) operation.  
M106  
JOG(-)  
M8329  
Abnormal  
end  
*1. The maximum transfer distance for each jogging operation is ±999,999 pulses (pulse output range of  
FNC158 (DRVI) instruction). To move the workpiece further, execute the JOG command again.  
B - 157  
12 Examples of Programs  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
12.2 Programs for Forward/Reverse Rotation (Relay Ladder Program)  
"Forward rotation  
positioning  
X024 M8348  
M10  
M108  
M109  
RST  
RST  
M12  
M13  
completion" flag  
Position- Position- "Zero  
Normal  
end of  
Abnormal  
end of  
ing in ing return  
forward operation compl-  
rotation being etion"  
"Reverse rotation  
positioning  
completion" flag  
positioning positioning  
in forward in forward  
direction performed flag  
rotation  
direction  
rotation  
direction  
Positioning  
M107  
operation being  
performed in  
forward rotation  
direction  
M107  
Y004  
Positioning operation being  
performed in forward rotation  
direction  
X030  
FNC 159  
DDRVA  
Moves to absolute  
position 500000  
using the absolute  
positioning  
instruction.  
(Y004=ON)  
K500000 K100000 Y000  
Stop  
command  
Designation Output  
of absolute  
position  
Pulse Rotation  
output direction  
frequency destination signal  
number  
pulse  
"Forward rotation  
positioning  
M8029  
SET  
M12  
completion" flag  
"Execution  
completion"  
flag  
"Forward rotation  
positioning normal  
end" flag  
M108  
M8329  
"Forward rotation  
positioning  
abnormal end" flag  
M109  
Abnormal end  
"Forward rotation  
positioning  
X025 M8348  
M10  
M111  
M112  
RST  
RST  
M12  
M13  
completion" flag  
Position- Position- "Zero  
Normal  
end of  
Abnormal  
end of  
ing in ing return  
"Reverse rotation  
positioning  
reverse operation compl- positioning positioning  
rotation being  
etion"  
in reverse in reverse  
rotation  
direction  
completion" flag  
direction performed flag  
rotation  
direction  
Positioning  
(Y000)  
operation being  
performed in  
reverse rotation  
direction  
M110  
M110  
Positioning operation being  
performed in reverse  
rotation direction  
X030  
Moves to absolute  
position 100 using  
the absolute  
FNC 159  
DDRVA  
K100 K100000 Y000  
Y004  
Stop  
command  
Designation Output  
of absolute pulse  
position  
Pulse Rotation  
output direction  
frequency destination signal  
number  
positioning  
instruction.  
(Y004=OFF)  
"Reverse rotation  
positioning  
completion" flag  
M8029  
SET  
M13  
"Execution  
completion"  
flag  
"Reverse rotation  
positioning normal  
end" flag  
M111  
M112  
M8329  
"Reverse rotation  
positioning  
abnormal end" flag  
Abnormal end  
END  
B - 158  
12 Examples of Programs  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
12.3 Programs for Forward/Reverse Rotation (Step Ladder (STL) Program)  
A
B
12.3 Programs for Forward/Reverse Rotation (Step Ladder (STL) Program)  
12.3.1 Example Program  
Positioning operation will be performed using the absolute positioning method as shown in the following chart:  
For details on input/output assignment, refer to Section 12.1.  
500,000  
Output pulse frequency:  
100,000 Hz  
100  
Apx.  
Origin  
Acceleration/deceleration time:  
100 ms  
The following program uses the step ladder (STL) instruction.  
Stops outputting Y000 pulses.  
(Immediate stop) Refer to  
Section 4.7.2.  
X020  
M8349  
M10  
Immediate stop  
X014  
Resets the "zero return  
completion" flag.  
RST  
RST  
RST  
Servo ready  
Resets the "forward rotation  
positioning completion" flag.  
M12  
Resets the "reverse rotation  
positioning completion" flag.  
M13  
X026  
M8343  
M8344  
Forward limit (Y000)  
Forward rotation limit  
X027  
Reverse limit (Y000)  
Reverse rotation limit  
M8000  
Enables the zero return  
operation with CLEAR signal  
outputting function. (CLEAR  
signal: Y020)  
FNC 12  
MOVP  
H0020 D8464  
M8464  
RUN monitor  
M8341  
M8342  
M5  
M8000  
Performs zero return in the  
forward rotation direction.  
RUN monitor  
S0  
S10  
S11  
S12  
S13  
M8349  
Operation is stopped.  
Zero  
return  
JOG  
(+)  
JOG  
(-)  
Positioning Positioning in Stoppage of Y0  
in forward  
rotation  
direction  
reverse  
rotation  
direction  
pulse  
outputting  
operation  
B - 159  
   
12 Examples of Programs  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
12.3 Programs for Forward/Reverse Rotation (Step Ladder (STL) Program)  
M8002  
*1  
*1  
Sets the maximum speed.  
100,000(Hz) D8344,D8343  
FNC 12  
DMOV  
K100000 D8343  
K1000 D8345  
K50000 D8346  
Initial pulse  
Sets the creep speed.  
1,000(Hz) D8345  
FNC 12  
MOV  
*1  
*1  
Sets the zero return speed.  
50,000(Hz) D8347,D8346  
FNC 12  
DMOV  
Sets the acceleration time.  
100(ms) D8348  
FNC 12  
MOV  
K100  
K100  
D8348  
D8349  
Sets the deceleration time.  
100(ms) D8349  
*1  
FNC 12  
MOV  
X021  
M5  
Resets the "zero return  
completion" flag.  
RST  
RST  
RST  
SET  
M10  
M12  
M13  
S0  
Zero  
return  
Operation  
stopped  
Resets the "forward rotation  
positioning completion" flag.  
Resets the "reverse rotation  
positioning completion" flag.  
Enters the zero return state  
(S0).  
X022  
M5  
Resets the "forward rotation  
positioning completion" flag.  
RST  
RST  
SET  
M12  
M13  
S10  
JOG(+) Operation  
stopped  
*2  
Resets the "reverse rotation  
positioning completion" flag.  
Enters the JOG(+) state  
(S10).  
X023  
M5  
Resets the "forward rotation  
positioning completion" flag.  
RST  
RST  
SET  
M12  
M13  
S11  
JOG(-) Operation  
*2  
stopped  
Resets the "reverse rotation  
positioning completion" flag.  
Enters the JOG(-) state  
(S11).  
X024  
M5  
M10  
RST  
RST  
SET  
M12  
M13  
S12  
Resets the "forward rotation  
positioning completion" flag.  
Positioning Operation "Zero return  
in forward stopped completion" flag  
rotation  
Resets the "reverse rotation  
positioning completion" flag.  
direction  
Enters the forward rotation  
positioning state (S12).  
*1. If the initial values (maximum speed, acceleration/deceleration time, zero return speed, creep speed)  
can be used, it is not necessary to create the program.  
For the related devices, refer to Section 4.1 to Section 4.4.  
*2. The maximum transfer distance for each jogging operation is ±999,999 pulses (pulse output range of  
FNC158 (DRVI) instruction). To move the workpiece further, execute the JOG command again.  
B - 160  
12 Examples of Programs  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
12.3 Programs for Forward/Reverse Rotation (Step Ladder (STL) Program)  
A
B
X025  
M5  
M10  
Resets the "forward rotation  
positioning completion" flag.  
RST  
RST  
SET  
M12  
M13  
S13  
Positioning Operation "Zero return  
in reverse  
rotation  
direction  
stopped  
completion" flag  
Resets the "reverse rotation  
positioning completion" flag.  
Enters the reverse rotation  
positioning state (S13).  
STL  
S0  
Zero return  
Apx.  
X030*3  
M50  
Zero return instruction with  
DOG search function  
(CLEAR signal: Y020)  
FNC 150  
DSZR  
X010  
X004  
Y000  
Y004  
Waiting for  
1 scan time  
Stop  
command  
Near-  
point  
signal  
Zero-  
phase  
Pulse Rotation  
output direction  
signal destination signal  
number  
M8029  
"Zero return completion" flag  
SET  
RST  
M10  
S0  
"Execution completion" flag  
M50  
M8340  
End of zero return  
(Self-reset)  
Y000  
Waiting for  
Outputting 1 scan time  
*4  
M8000  
M50  
S10  
Waiting for 1 scan time  
JOG(+)  
RUN monitor  
STL  
Performs the jogging  
X030*3  
Stop  
X022  
M51  
operation in the "+" direction  
using the drive to Increment  
instruction.(Y004=ON)  
FNC 158  
DDRVI  
K999999 K30000 Y000  
Y004  
Waiting  
for 1 scan command  
time  
JOG(+)  
Number of output Output  
pulses (maximum pulse  
Pulse  
output  
Rotation  
direction  
value in "+" frequency destination signal  
direction)  
number  
M8340  
M51  
Ends the JOG(+) operation.  
(Self-reset)  
RST  
S10  
Y000 Waiting for 1 scan time  
Outputting  
*4  
M8000  
Waiting for 1 scan time  
JOG(-)  
M51  
S11  
RUN monitor  
STL  
X030*3  
Stop  
Performs the jogging  
X23  
M52  
FNC 158  
DDRVI  
operation in the "-" direction  
using the drive to Increment  
instruction.(Y004=OFF)  
K-999999 K30000 Y000  
Y004  
Waiting for  
1 scan time command  
JOG(-)  
Number of Output  
output pulses pulse  
Pulse  
output  
Rotation  
direction  
(maximum value frequency destination signal  
in "-" direction)  
number  
M8340  
Y000  
M52  
Ends the JOG(-) operation.  
(Self-reset)  
RST  
S11  
M52  
Waiting for  
Outputting 1 scan time  
*4  
M8000  
Waiting for 1 scan time  
RUN monitor  
*3.  
*4.  
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 the "pulse output monitor" flag (M8340 (for Y000)) is turned off.  
To prevent simultaneous activation of positioning instructions, the instruction activation timing should be delayed by 1  
scan time.  
B - 161  
12 Examples of Programs  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
12.3 Programs for Forward/Reverse Rotation (Step Ladder (STL) Program)  
STL  
S12  
Positioning in forward rotation  
direction  
X030*5  
M53  
FNC 159  
DDRVA  
Moves to absolute position  
500000 using the drive to  
Absolute instruction.  
(Y004=ON)  
K500000 K100000 Y000  
Y004  
Stop  
command  
Waiting for  
1 scan time  
Designation Output  
Pulse  
output  
Rotation  
direction  
of absolute  
position  
pulse  
frequency destination signal  
number  
M8029  
"Forward rotation positioning  
completion" flag  
SET  
RST  
M12  
S12  
"Execution completion" flag  
Ends the positioning  
operation in the forward  
rotation direction.  
(Self-reset)  
M8340  
M53  
Waiting for 1 scan time  
Y000  
Outputting  
*6  
M8000  
Waiting for 1 scan time  
M53  
RUN monitor  
STL  
S13  
Positioning in reverse rotation  
direction  
X030*5  
M54  
FNC 159  
DDRVA  
Moves to absolute position  
100 using the drive to  
Absolute instruction.  
(Y004=OFF)  
K100 K100000 Y000  
Y004  
Stop  
command  
Waiting for  
1 scan  
time  
Designation Output  
Pulse  
output  
Rotation  
direction  
of absolute  
position  
pulse  
frequency destination signal  
number  
M8029  
"Reverse rotation positioning  
completion" flag  
SET  
RST  
M13  
S13  
"Execution completion" flag  
Ends the positioning  
operation in the reverse  
rotation direction.  
(Self-reset)  
M8340  
M54  
Waiting for 1 scan time  
Y000  
Outputting  
*6  
M8000  
M54  
RET  
END  
Waiting for 1 scan time  
RUN monitor  
*5. To stop the positioning operation, be sure to insert the stop contact before the positioning instruction  
so that the STL instruction cannot be turned off (reset) until the "pulse output monitor" flag (M8340 (for  
Y000)) is turned off.  
*6. To prevent simultaneous activation of positioning instructions, the instruction activation timing should  
be delayed by 1 scan time.  
B - 162  
12 Examples of Programs  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
12.4 Positioning Using Batch Setting Method  
A
B
12.4 Positioning Using Batch Setting Method  
Positioning operation will be performed using the absolute positioning method as shown in the following chart:  
For details on input/output assignment, refer to Section 12.1  
500,000  
Output pulse frequency:  
100,000 Hz  
100  
Origin  
Apx.  
Acceleration/deceleration time:  
100 ms  
12.4.1 Setting Using GX Developer  
This section describes how to set the positioning parameters using GX Developer Ver.8.23Z.  
1
On the project tree displayed on the left side of the screen, double-click on  
"Parameter" and then "PLC parameter".  
If the project tree is not displayed on the screen, click on "View" in the menu bar, and then click on "Project Data  
List".  
2
Click on "Memory Capacity", and then enter a check in the "Positioning  
Instruction settings" check box.  
*1  
Enter a check.  
*1. 9,000 steps are needed to set the positioning data. If there is not enough capacity for programming,  
set the "memory capacity" to 16,000 steps.  
B - 163  
   
12 Examples of Programs  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
12.4 Positioning Using Batch Setting Method  
3
Click on the "Positioning" tab, and then set Y000 (pulse output destination)  
as follows.  
Before clicking on the "Positioning" tab, click on the "Memory Capacity" tab, and then enter a check in the  
"Positioning" check box. After entering a check, positioning data can be set.  
After entering a check, positioning data can be set. Use the FX3U/FX3UC PLC of Ver.2.20 or later or FX3G PLC  
to use "Positioning".  
Setting item  
Setting value  
Bias speed (Hz)  
500  
Maximum speed (Hz)  
Creep speed (Hz)  
100,000  
1000  
50,000  
100  
Zero return speed (Hz)  
Acceleration time (ms)  
Deceleration time (ms)  
100  
*1  
X000  
Interrupt input for DVIT instruction  
*1. Only available for FX3U and FX3UC PLCs.  
4
Click on the "Individual setting" button. The "Individual setting" setting  
window will appear. In this window, click on the "Y000" tab to display the  
positioning table for Y000 (pulse output destination). Set the data in the  
positioning table as follows:  
Setting item  
Rotation direction signal  
First device  
Setting value  
Y004  
R0  
Positioning type  
DDRVI  
(drive to increment)  
No. 1  
Number of pulses (PLS)  
999,999  
Frequency (Hz)  
30,000  
DDRVI  
(drive to increment)  
Positioning type  
No. 2  
No. 3  
No. 4  
Number of pulses (PLS)  
Frequency (Hz)  
-999,999  
30,000  
DDRVA  
(drive to absolute)  
Positioning type  
Number of pulses (PLS)  
Frequency (Hz)  
500,000  
100,000  
DDRVA  
(drive to absolute)  
Positioning type  
Number of pulses (PLS)  
Frequency (Hz)  
100  
100,000  
B - 164  
12 Examples of Programs  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
12.4 Positioning Using Batch Setting Method  
A
B
5
6
Create a program.  
On the bar, click on "Online" and then "Write to PLC". The "Write to PLC"  
window will appear.  
*1  
Apx.  
*2. For Ver. 8.13P to 8.24A of GX Developer, the PLC type is FX3UC.  
7
Click the "Param+Prog" buttons, 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.  
12.4.2 Operation Program  
An example of a relay ladder program is shown below:  
Stops outputting Y000 pulses.  
(Immediate stop)  
X020  
M8349  
M10  
Refer to Subsection 4.7.2.  
Immediate stop  
X014  
Resets the "origin return  
completion" flag.  
RST  
RST  
RST  
Servo ready  
Resets the "forward rotation  
positioning completion" flag.  
M12  
Resets the "reversed rotation  
positioning completion" flag.  
M13  
X026  
Forward rotation limit(Y000)  
Reverse rotation limit(Y000)  
M8343  
M8344  
Forward rotation limit  
X027  
Reverse rotation limit  
M8000  
Enables the origin return  
operation with CLEAR signal  
outputting function. (CLEAR  
signal: Y020)  
FNC 12  
MOVP  
H0020 D8464  
RUN monitor  
M8464  
M8341  
M8342  
M8000  
Performs origin return in the  
forward rotation direction.  
RUN monitor  
B - 165  
 
12 Examples of Programs  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
12.4 Positioning Using Batch Setting Method  
Resets the "origin  
X021  
M8348  
M101  
M102  
RST  
RST  
RST  
M10  
M12  
return completion"  
flag.  
Origin Positioning Normal Abnormal  
return being  
end of end of  
Resets the "forward  
rotation positioning  
completion" flag.  
performed origin origin  
return return  
M100  
Resets the "reverse  
rotation positioning  
completion" flag.  
M13  
Origin return  
being performed  
Origin return is  
being performed.  
M100  
Y004  
Origin return  
instruction with  
DOG search  
function  
(CLEAR signal:  
Y020)  
X030  
FNC 150  
DSZR  
X010  
X004  
Y000  
Stop  
command  
Near-point Zero-point Pulse  
Rotation  
direction  
signal  
signal  
output  
destination signal  
number  
M8029  
"Origin return  
SET  
M10  
completion" flag  
"Execution  
completion" flag  
Normal end of  
origin return  
M101  
M102  
M8329  
Abnormal end of  
origin return  
Abnormal  
end  
Resets the "forward  
rotation positioning  
completion" flag.  
X022 M8348  
M104  
RST  
RST  
M12  
M13  
M103  
K1  
JOG Positioning  
(+) being  
performed  
Completes  
the JOG(+)  
operation.  
Resets the "reverse  
rotation positioning  
completion" flag.  
(Y000)  
M103  
JOG(+) operation  
is being performed.  
JOG(+) operation is  
being performed.  
X030  
Executes No. 1 of  
the positioning  
table of Y000  
(pulse output  
destination).  
FNC 152  
DTBL  
Y000  
Stop  
command  
Pulse  
output  
destination  
number  
Table  
number  
X022  
Completes the  
JOG(+) operation.  
M104  
JOG(+)  
M8329  
Abnormal  
end  
Resets the "forward  
rotation positioning  
completion" flag.  
X023 M8348  
M106  
RST  
RST  
M12  
M13  
M105  
K2  
JOG Positioning  
(-) being  
performed  
Completes  
the JOG(-)  
operation.  
Resets the "reverse  
rotation positioning  
completion" flag.  
(Y000)  
JOG(-) operation  
M105  
is being  
performed.  
JOG(-) operation is  
being performed.  
Executes No. 2 of  
the positioning  
table of Y000  
(pulse output  
destination).  
X030  
FNC 152  
DTBL  
Y000  
Stop  
command  
Pulse  
output  
destination  
number  
Table  
number  
X023  
Completes the  
JOG(-) operation.  
M106  
JOG(-)  
M8329  
Abnormal  
end  
B - 166  
12 Examples of Programs  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
12.4 Positioning Using Batch Setting Method  
A
B
"Forward rotation  
positioning  
X024 M8348  
M10  
M108  
M109  
RST  
RST  
M12  
M13  
completion" flag  
Position- Position- "Zero  
Normal  
end of  
Abnormal  
end of  
ing in ing return  
forward operation compl-  
rotation being etion"  
"Reverse rotation  
positioning  
completion" flag  
positioning positioning  
in forward in forward  
direction performed flag  
rotation  
direction  
rotation  
direction  
Positioning  
M107  
operation being  
performed in  
forward rotation  
direction  
M107  
Positioning operation being  
performed in forward rotation  
direction  
X030  
FNC 152  
DTBL  
Y000  
Pulse  
output number  
destination  
number  
K3  
Executes No. 3 of  
the positioning table  
of Y000 (pulse  
Apx.  
Stop  
command  
Table  
output destination).  
"Forward rotation  
positioning  
M8029  
SET  
M12  
completion" flag  
"Execution  
completion"  
flag  
"Forward rotation  
positioning normal  
end" flag  
M108  
M8329  
"Forward rotation  
positioning  
abnormal end" flag  
M109  
Abnormal end  
"Forward rotation  
positioning  
X025 M8348  
M10  
M111  
M112  
RST  
RST  
M12  
M13  
completion" flag  
Position- Position- "Zero  
Normal  
end of  
Abnormal  
end of  
ing in ing return  
"Reverse rotation  
positioning  
reverse operation compl- positioning positioning  
rotation being  
etion"  
in reverse in reverse  
rotation  
direction  
completion" flag  
direction performed flag  
rotation  
direction  
Positioning  
(Y000)  
operation being  
performed in  
reverse rotation  
direction  
M110  
M110  
Positioning operation being  
performed in reverse  
rotation direction  
X030  
FNC 152  
DTBL  
Y000  
Pulse  
output number  
destination  
number  
K4  
Executes No. 4 of  
the positioning table  
of Y000 (pulse  
Stop  
command  
Table  
output destination).  
"Reverse rotation  
positioning  
M8029  
SET  
M13  
completion" flag  
"Execution  
completion"  
flag  
"Reverse rotation  
positioning normal  
end" flag  
M111  
M112  
M8329  
"Reverse rotation  
positioning  
abnormal end" flag  
Abnormal end  
END  
B - 167  
12 Examples of Programs  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
12.5 Program for Reading Current ABS Value Using ABS Instruction  
12.5 Program for Reading Current ABS Value Using ABS Instruction  
1) Program for storing ABS data in current value registers specified by a positioning instruction for Y000  
(pulse output destination)  
S•  
D
1•  
D
2•  
M8000  
FNC155  
DABS  
Reads out the ABS data to the current value registers  
D8341 and D8340.  
X031  
Y021  
D8340  
RUN  
monitor  
ABS(bit0) Servo-ON  
signal  
K50  
M1  
T0  
Read time limit (5 sec)  
ABS data reading completed  
T0  
M2  
M 1  
ABS data read error  
Read time error detected  
M8029  
SET  
"Execution  
completion" flag  
ABS data reading is complete.  
2) Program for storing ABS data in the current value registers of the FX2N-1PG(-E) or FX2N-10PG  
S
D
1•  
D2•  
M8000  
FNC155  
DABS  
Reads out the ABS data to D101 and D100.  
Read time limit (5 sec)  
X031  
Y021  
D100  
RUN  
monitor  
ABS(bit0) Servo-ON  
signal  
K50  
M1  
T0  
ABS data reading completed  
T0  
M2  
M 1  
ABS data read error  
Read time error detected  
M8029  
SET  
"Execution  
completion" flag  
ABS data reading is complete.  
M1  
Writes data in current value registers #27 and #26 of the  
FX2N-1PG. *1  
FNC12  
D100  
U
\G26  
DMOV  
ABS data  
reading is  
Block No.  
BFM#26(#27)  
completed.  
M1  
FNC12  
DMOV  
Writes data (data converted into pulse data) to the  
D100  
U\G39  
current value registers #40 and #39 of the FX2N-10PG.*2  
ABS data  
reading is  
completed.  
Block No.  
BFM#39(#40)  
Caution:  
*1. The ABS data will be read out as a pulse converted value. For this reason, be sure to specify "motor  
system" when setting parameters (BFM #3) for the FX2N-1PG(-E).  
*2. When writing the ABS data to the FX2N-10PG, be sure to use the current value registers (BFM #40,  
BFM #39) to store the converted pulse data.  
B - 168  
 
13 Troubleshooting  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
13.1 LED Indicator Lamp Check  
A
B
13. Troubleshooting  
13.1 LED Indicator Lamp Check  
If an error occurs, check the ON/OFF status of the LED indicator lamps on the PLC to assess the general  
meaning of the error. This section does not describe all the LED indicator lamps of the main unit. For details  
on the LED indicator lamps, refer to the following PLC manuals.  
Refer to the FX3G Hardware Edition.  
Apx.  
Refer to the FX3U Hardware Edition.  
Refer to the FX3UC Hardware Edition.  
FX3U PLC  
FX3UC (D, DSS) PLC  
FX3UC-32MT-LT (-2) PLC  
FX3G PLC  
13.1.1 POWER Indicator Lamp (Statuses: ON, flashing, OFF) [FX3G/FX3U/FX3UC]  
Lamp  
status  
Status of PLC  
Troubleshooting  
The power is being supplied properly.  
The specified voltage is properly  
supplied to the power supply terminal.  
ON  
The PLC may be at one of the following  
statuses:  
Check the power supply voltage.  
The specified voltage/current is not  
supplied to the power supply  
terminal.  
Excluding the power cable, disconnect all other cables, and  
then turn the power ON again. Check the lamp status. If the  
lamp flashes again, please contact the nearest Mitsubishi  
Electric distributor office .  
Flashing  
An external line is not properly  
connected.  
The PLC has a problem.  
B - 169  
     
13 Troubleshooting  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
13.1 LED Indicator Lamp Check  
Lamp  
Status of PLC  
status  
Troubleshooting  
The PLC may be at one of the following  
statuses:  
The power is off.  
The specified voltage is not  
supplied to the power supply  
terminal.  
If the power is on, check the power supply unit and the power supply  
line.  
If the power is properly supplied, please contact the nearest  
Mitsubishi Electric distributor office.  
OFF  
The power cable is disconnected.  
B - 170  
13 Troubleshooting  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
13.1 LED Indicator Lamp Check  
A
B
13.1.2 RUN Indicator Lamp (Statuses: ON, OFF) [FX3G/FX3U/FX3UC]  
Lamp  
status  
Status of PLC  
Troubleshooting  
The sequence program is being  
executed.  
ON  
The RUN indicator lamp indicates the operation status of the PLC.  
Note that the RUN indicator lamp will go out depending on the status  
of the ERROR indicator lamp (refer to Subsection 13.1.4).  
Execution of the sequence program is  
stopped.  
OFF  
13.1.3 BATT Indicator Lamp (Statuses: ON, OFF) [FX3U/FX3UC]  
Lamp  
status  
Apx.  
Status of PLC  
Troubleshooting  
ON  
The voltage of the battery is too low.  
Immediately replace the battery (refer to the manual of the PLC).  
The PLC has no problems.  
The battery supplies enough voltage as  
specified by D8006.  
OFF  
13.1.4 ALM Indicator Lamp (Statuses: ON, OFF) [FX3G]  
This LED is valid when the optional battery is installed and the battery mode is selected using a parameter.  
Lamp  
status  
Status of PLC  
Troubleshooting  
Immediately replace the battery (refer to the manual of the PLC).  
The PLC has no problems.  
ON  
The voltage of the battery is too low.  
The battery supplies enough voltage as  
specified by D8006.  
OFF  
13.1.5 ERROR indicator lamp (Statuses: ON, flashing, OFF) [FX3G/FX3U/FX3UC]  
Lamp  
status  
Status of PLC  
Troubleshooting  
1) Stop the PLC, and then turn the power ON again. If the  
ERROR (ERR) indicator lamp goes out, check to see if a  
watchdog timer error has been detected, and take one of the  
following measures.  
-
Review the program.  
The maximum value of the scanning time (D8012) should  
not be larger than the set value of the watchdog timer  
(D8000).  
-
-
-
The interrupt input and the pulse catch input should not be  
turned on and off too frequently during 1 scan time.  
The frequency of the pulse input to the high-speed counter  
should not exceed the specified range (duty:50%)  
Add several WDT instructions.  
Set several WDT instructions in the program so that the  
watchdog timer can be reset several times during 1 scan  
time.  
Change the set value of the watchdog timer.  
Using the program, change the set value of the watchdog  
timer (D8000) so that the set value of the watchdog timer  
(D8000) can be larger than the maximum value of the  
scanning time (D8012).  
A watchdog timer error may have  
been detected, or the hardware of the  
PLC may be damaged.  
ON  
-
2) Remove the PLC, and put it on a workbench. Supply another  
source of power to the PLC.  
If the ERROR (ERR) indicator lamp does not light, the cause  
of the problem may be noise. In this case, take the following  
measures.  
-
Check the grounding line, and change the wiring route and  
the installation place.  
-
Adopt a noise filter for the power supply line.  
3) If measures 1) and 2) do not turn the ERROR indicator lamp  
OFF, please contact the nearest Mitsubishi Electric distributor  
office.  
B - 171  
       
13 Troubleshooting  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
13.1 LED Indicator Lamp Check  
Lamp  
Status of PLC  
status  
Troubleshooting  
The PLC has one of the following  
errors:  
Diagnose the PLC (PC), or check the programs using the  
programming tool.  
For countermeasures, refer to the following manual of the applied  
PLC.  
Parameter error  
Syntax error  
Circuit error  
Flashing  
OFF  
Programming manual  
If an operation error is detected on the PLC, diagnose the PLC  
Errors that can stop the PLC are not (PC), or check the programs using the programming tool. There  
detected.  
is a good possibility that an "I/O configuration error", "parallel link/  
communication error", or "operation error" has been detected.  
B - 172  
13 Troubleshooting  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
13.1 LED Indicator Lamp Check  
A
B
13.1.6 Pulse Output Destination Device and Rotation Direction Output Indicator Lamp  
1. If transistor outputs from the main unit are used for positioning  
LED status during  
execution of  
Signal  
Description  
positioning  
instruction  
Turned on and off at  
high speed  
The pulse outputting operation is controlled by the positioning instruction.  
"Pulse output  
destination  
device" (pulse  
train) signal  
The PLC may exhibit the following status:  
1) The operation of the positioning instruction is completed.  
2) The positioning instruction turns ON, but an operation error is detected.  
The instruction, therefore, is not being executed. To check the error,  
refer to the following section:  
Apx.  
OFF  
ON  
Refer to Subsection 13.2.1 "Error code check method".  
Operation is being performed in the forward rotation direction.  
The PLC may exhibit the following status:  
1) The positioning instruction turns ON, and operation is being performed  
in the reverse rotation direction.  
2) The positioning instruction turns ON, but an operation error is detected.  
The instruction, therefore, is not being executed. To check the error,  
refer to the following section:  
"Rotation  
direction output"  
(direction) signal  
OFF  
Refer to Subsection 13.2.1 "Error Code Check Method".  
B - 173  
 
13 Troubleshooting  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
13.1 LED Indicator Lamp Check  
2. If the high-speed output special adapter (FX3U-2HSY-ADP) is used for positioning  
LED status during  
Status of pulse  
execution of  
output method  
setting switch  
Signal  
Description  
positioning  
instruction  
Turned on and off The pulse outputting operation is controlled by the  
at high speed  
positioning instruction.  
The PLC may exhibit the following status:  
1) The operation of the positioning instruction is  
completed.  
2) An operation error occurred during positioning.  
The instruction, therefore, is not being executed.  
To check the error, refer to the following section:  
Refer to Subsection 13.2.1 "Error Code  
Check Method".  
"Pulse output  
destination device"  
(pulse train)  
OFF  
PLS•DIR side  
ON  
Forward operation is in execution.  
The PLC may exhibit the following status:  
1) The positioning instruction turns ON, and operation  
is being performed in the reverse rotation direction.  
2) An operation error occurred during positioning  
instruction. The instruction, therefore, is not being  
executed.  
"Rotation direction  
output" (direction)  
OFF  
To check the error, refer to the following section:  
Refer to Subsection 13.2.1 "Error Code  
Check Method".  
Turned on and off Forward operation is being executed for a positioning  
at high speed  
instruction. Reverse pulse train is OFF.  
The PLC may exhibit the following status:  
1) The positioning instruction turns ON, and operation  
is being performed in the reverse rotation direction.  
2) An operation error occurred during positioning .  
The instruction, therefore, is not being executed.  
To check the error, refer to the following section:  
Refer to Subsection 13.2.1 "Error Code  
Check Method".  
"Pulse output  
destination device"  
(Forward pulse train)  
OFF  
FP/RP side  
Turned on and off Reverse operation is being executed for a positioning  
at high speed  
instruction. Forward pulse train is OFF.  
The PLC may exhibit the following status:  
1) The positioning instruction turns ON, and operation  
is being performed in the forward rotation direction.  
2) An operation error occurred during positioning. The  
instruction, the4refore, is not being executed.  
To check the error, refer to the following section:  
Refer to Subsection 13.2.1 "Error Code  
Check Method".  
"Rotation direction  
output" (Reverse  
pulse train)  
OFF  
B - 174  
13 Troubleshooting  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
13.2 Error Check  
A
B
13.2 Error Check  
13.2.1 Error Code Check Method  
This section describes how to check the error codes using GX Developer.  
If the display module is being used, use the "error check" function of the display module to check the error codes.  
For details on the operation of the display module, refer to the following manuals:  
FX3G Hardware Edition.  
FX3U Hardware Edition.  
FX3UC Hardware Edition.  
Apx.  
1
2
Connect a personal computer to the PLC.  
Diagnose the PLC.  
On the tool menu bar, click on "Diagnostics", and then "PLC diagnostics" to diagnose the cause of the PLC  
error.  
3
Check the diagnosis result.  
The following window will appear. Check the details of the error shown on the window.  
<Example of error display screen>  
Display of  
conditions of  
LEDs on FX  
PLC  
The help function of  
GX Developer opens,  
and you can check  
the details of the  
error code.  
The PLC error  
is displayed.  
<Example of screen displayed  
in normal state>  
B - 175  
   
13 Troubleshooting  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
13.2 Error Check  
13.2.2 Error Codes  
This section describes the error codes related to the positioning instructions. For details on the error codes,  
refer to the following manual.  
Refer to the programming manual.  
Operation  
after  
detecting  
error  
Error  
code  
Description of error  
Troubleshooting  
Operation error [M8067 (D8067)]  
0000  
No error detected  
The device specified by the operand of the  
applied instruction is a wrong device.  
This error occurs during operation. Check the program or  
the operand of the applied instruction.  
Even if no syntax error or circuit error is detected, an  
operation error may occur for the following reason:  
Example:  
T500Z is not an error. However, if Z = 100, the result of  
operation will be T600. This means that the device  
number is out of the specified range, and an operation  
error will be detected.  
6705  
The device number or the data specified by  
the operand of the applied instruction is out of  
the specified range.  
6706  
6760  
Sum error of ABS data sent from servo  
amplifier  
Check the servo amplifier for disconnection. Also check  
the set data.  
Operation  
will be  
continued.  
1) The input (X) specified by the DSZR,  
DVIT, or ZRN instruction is already being  
used for another instruction.  
1) Check that the input (X) specified by the DSZR, DVIT,  
or ZRN instruction is not being used for the following  
items:  
2) The interruption signal device number  
specified by the DVIT instruction is  
outside the setting range.  
-
-
-
-
Input interruption (including delay function)  
High-speed counter (C235 to C255)  
Pulse catch (M8170 to M8177)  
SPD instruction  
6763  
6764  
2) Check the data set in D8336  
(interruption signal designation device for DVIT  
instruction).  
The pulse output number is already being  
used for a positioning instruction or pulse  
output instruction (PLSY, PWM,etc.).  
Check that the output specified as the pulse output  
destination is not being activated by another positioning  
instruction.  
B - 176  
 
13 Troubleshooting  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
13.3 If the Servo Motor or the Stepping Motor Does Not Operate  
A
B
13.3 If the Servo Motor or the Stepping Motor Does Not Operate  
If the servo motor or the stepping motor does not operate, check the following items.  
1) Check the wiring condition.  
For output specifications, refer to Section 2.5.  
To connect the MELSERVO Series, refer to the examples of connection shown in the Appendix.  
For details on the servo amplifier (drive unit), refer to the manual of your unit.  
2) Execute the positioning instruction, and then check the statuses of the following LED indicator lamps.  
For details on lamp statuses, refer to Subsection 13.1.5.  
- LED indicator lamp of the output specified as the pulse output destination  
- LED indicator lamp of the output specified as the rotation direction output device  
Apx.  
3) Verify that the same pulse output method is being applied for both the PLC and the servo amplifier (drive  
unit).  
For details on the pulse output method, refer to Subsection 4.6.1.  
For details on high-speed output special adapter setting method,refer to Subsection 4.5.2.  
4) Check that the pulse output stop command flag is off.  
For details on the pulse output stop command flag, refer to Subsection 4.3.2.  
The following table shows the pulse output stop command flag of each pulse output destination device  
(Y000, Y001, Y002, Y003).  
Pulse output destination Pulse output stop  
Operation  
device  
Y000  
Y001  
Y002  
Y003  
command flag  
M8349  
During pulse outputting operation, if the pulse output stop  
command flag of a corresponding pulse output destination  
device is turned on, the pulse outputting operation will be  
immediately stopped.  
M8359  
M8369  
M8379  
5) Check that the limit switch (forward or reverse rotation limit switch) is not activated.  
For details on the normal and reverse rotation limits, refer to Subsection 4.3.1.  
The following table shows the forward and reverse limit relays of each pulse output destination device  
(Y000, Y001, Y002, Y003).  
Corresponding instruction and stop  
Pulse output  
Forward limit Reverse limit  
DSZR, DVIT, ZRN,  
PLSV(M8338 = ON), DRVI,  
and DRVA instructions  
destination  
device  
PLSV instruction  
(M8338 = OFF)  
relay  
relay  
Y000  
Y001  
Y002  
Y003  
M8343  
M8353  
M8363  
M8373  
M8344  
M8354  
M8364  
M8374  
If the corresponding rotation  
limit relay is turned on, the  
pulse output (operation) will  
immediately stop.  
If the corresponding rotation  
limit relay is turned on, the  
speed will decelerate, and the  
operation will stop.  
6) Check the operation timing of the positioning instruction.  
If the "pulse output monitor" (BUSY/READY) flag is on, and if a positioning instruction (excluding the ABS  
instruction) or pulse output instruction (PLSR, PLSY) uses the same pulse output destination device, the  
instruction cannot be executed.  
If the "pulse output monitor" (BUSY/READY) flag is still on after the instruction activation contact is turned  
off, do not execute a positioning instruction (including PLSR and PLSY instructions) that uses the same  
output number.  
Before activating such an instruction, check that the "pulse output monitor" (BUSY/READY) flag is off,  
and then wait until at least 1 scan time is completed.  
Pulse output destination device  
Pulse output monitor flag  
Y000  
Y001  
Y002  
Y003  
M8340  
M8350  
M8360  
M8370  
B - 177  
 
13 Troubleshooting  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Built-in Positioning Functions  
13.4 If Operation Is Stopped at a Wrong Position  
13.4 If Operation Is Stopped at a Wrong Position  
If operation is stopped at a wrong position, check the following items.  
1) Check whether the electronic gear of the servo amplifier (drive unit) is set properly.  
For the electronic gear setting method of the MELSERVO Series, refer to Subsection 4.6.2.  
2) Check whether the origin is set properly.  
Properly set the DOG so that the near-point signal (DOG) can be kept ON until the speed is reduced to  
the creep speed. The zero return instruction will start speed reduction at the front end of the DOG, and  
will stop the operation at the rear end of the DOG or at detection of the first zero-phase signal after  
passing the rear end of the DOG. After that, the current value register will be cleared (reset to "0"). If  
the speed is not reduced to the creep speed before detecting the rear end of the DOG, the operation  
may not be stopped at the specified position.  
The creep speed should be slow enough. The zero return instruction will not reduce the speed before  
stopping. For this reason, if the creep speed is not slow enough, the operation may not be stopped at  
the specified position due to inertia.  
Devices for the near-point signal (DOG)  
- DSZR instruction  
If an input (X000 to X017)*1 of the main unit is specified for the near-point signal (DOG), the rear end  
of the near-point signal (DOG) will be monitored (detected) at 1-ms intervals (interruption). Under the  
following condition, however, monitoring (detection) of the near-point signal (DOG) rear end may be  
affected by the input time constant or the scan time of the sequence program, and the operation may  
not be stopped at the specified position.  
a) An input number of X020 or below (or other device (auxiliary relay, etc.)) is specified.  
*1.When using an FX3U-16M, FX3UC-16M, specify an input in the range of X000 to X007.  
X000 to X007 for FX3G PLC (main unit).  
- ZRN instruction  
If an input (X000 to X007) of the main unit is specified for the near-point input signal, the PLC  
interruption function will be used to stop the operation. Under the following condition, however,  
operation may be affected by the scan time of the sequence program, and the operation may not be  
stopped at the specified position.  
a) An input number of X010 or below (or other device (auxiliary relay, etc.)) is specified. If an input  
relay X010 or below is specified for the near-point signal, the input filter (10 ms) will apply.  
If the DSZR instruction is used:  
Since the zero-phase signal of the servo motor is used, adjust the relation between the rear end of the  
DOG and the zero-phase signal as shown in the following figure. If fine adjustment of the origin  
position is needed, adjust the position of the near-point signal (DOG).  
Rear end  
DOG  
Zero-phase signal  
3) If reciprocating operation (operation in the forward rotation direction and then reverse rotation direction) is  
not stopped at the specified position: The built-in positioning function cannot correct the mechanical  
backlash (clearance, play) during positioning operation. If it is necessary to correct the backlash,  
preliminarily set the number of output pulses considering the backlash that may be caused when  
changing the transfer direction.  
Table  
Feed screw  
Backlash  
(clearance, play)  
B - 178  
 
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Example Connection  
A
B
FX3G/FX3U/FX3UC Series Programmable  
Controllers  
Apx.  
User's Manual [Positioning Control Edition]  
Appendix: Example Connection  
Foreword  
To use the positioning function of the MELSEC-F FX3G/FX3U/FX3UC Series PLC described in this manual, the  
PLC should be connected to a servo amplifier drive unit. The Appendix, therefore, describes how to connect  
the PLC to a servo amplifier drive unit and should be read and understood before attempting to install or use  
the unit.  
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.  
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.  
© 2005 MITSUBISHI ELECTRIC CORPORATION  
Apx. - 1  
 
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Example Connection  
Description of Manual (Example of Connection)  
In this manual, the following formats are used for describing the examples of connection:  
Shows the title of the chapter  
Indexes the division titles.  
Shows the title of the manual and the title  
of the division.  
and the title of the section.  
This area shows the title of the chapter  
and the title of the section for the  
current page.  
The right side of each page indexes the title  
of the division for the current page.  
This area shows the title of the manual  
and the title of the division for the current  
page.  
1st line: Shows the title of the manual.  
2nd line: Shows the title of the division.  
Shows the reference.  
This area shows the reference  
document (the reference  
document is shown next to " ").  
If the reference is in  
"Appendix: Examples of  
Connection", the chapter, section,  
or item number only will be  
shown next to " " .  
The above is different from the actual page, as it is provided for explanation only.  
Apx. - 2  
 
Appendix 1: MELSERVO-J3 Series  
Appendix 1-1 Main Unit (Transistor Output)  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Example Connection  
A
B
Appendix 1. MELSERVO-J3 Series  
Appendix 1-1 Main Unit (Transistor Output)  
To assign the inputs/outputs, refer to the following section.  
Refer to Section 12.1 of "B. Built-in Positioning Function".  
Appedix 1-1-1 Sink Input and Sink Output  
1. FX3U/FX3G PLC  
100 to 240V AC  
Apx.  
FX3U-32MT/ES  
L
MR-J3  
A  
N
Series servo  
amplifier  
CN1  
24V DC  
Class-D  
DICOM  
20  
grounding*1  
DOCOM  
46  
CN1  
S/S  
0V  
OPC 12  
DICOM  
21  
Photo-  
coupler  
Zero speed*4  
23 ZSP  
24 INP  
25 TLC  
48 ALM  
24V  
X000  
Zero Point  
Positioning completed(INP)  
Torque being controlled*4  
Servo error(ALM)  
signal(PG0)  
LG 34  
OP 33  
X004  
X010  
X014  
Servo ready  
(RD)  
CN1  
15 SON  
19 RES  
DOG*2  
Servo ON*4  
Reset  
RD 49  
42 EMG  
Emergency stop  
X017  
Forward rotation limit 2*3  
Reverse rotation limit 2*3  
COM1  
43 LSP  
44 LSN  
Pulse train  
Direction  
DOCOM  
46  
DOCOM  
47  
Y000  
PP 10  
*4  
Connected to the  
FX3U if the ABS  
instruction (FNC 155)  
is used.  
COM2  
NP 35  
Y004  
Y007  
CN1  
25 ABST  
22 ABSB0  
23 ABSB1  
FX2N-16EX-ES/UL  
FX2N-16EYT  
Refer to Appendix  
1.3.1-1.  
DOCOM  
46  
FX2N-16EYT  
15 SON  
17 ABSM  
18 ABSR  
COM1  
Y020  
Y027  
CLEAR signal  
CR 41  
Plate  
SD  
FX2N-16EX-ES/UL  
S/S  
X020  
X021  
X022  
X023  
X024  
X025  
X026  
X027  
X030  
Immediate stop command  
Zero return command  
JOG(+)command  
Photo-  
coupler  
JOG(-)command  
Forward rotation positioning command  
Reverse rotation positioning command  
Forward rotation limit (LSF)*3  
Reverse rotation limit (LSR)*3  
Stop command  
X037  
Apx. - 3  
     
Appendix 1. MELSERVO-J3 Series  
Appendix 1-2 High-Speed Output Special Adapter  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Example Connection  
*1.  
*2.  
*3.  
Be sure to use the class-D grounding method (grounding resistance: 100  
Near-point signal (DOG)  
or less).  
To ensure safety, use the forward rotation limit switch and the reverse rotation limit switch on both sides: the PLC side and  
the servo amplifier side.  
Note that the limit switches on the PLC side should be activated slightly earlier than the limit switches on the servo  
amplifier side.  
Reverse rotation limit 2 Reverse rotation limit 1 Forward rotation limit 1 Forward rotation limit 2  
(Servo amplifier side)  
(Programmable  
controller side)  
LSR  
(Programmable  
controller side)  
LSF  
(Servo amplifier side)  
Servo motor  
Reverse rotation  
Forward rotation  
*4.  
To detect absolute positions, connect this line to the PLC.  
Apx. - 4  
Appendix 1: MELSERVO-J3 Series  
Appendix 1-1 Main Unit (Transistor Output)  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Example Connection  
A
B
2. FX3UC PLC  
MR-J3  
A  
Series servo  
amplifier  
FX3UC-32MT/D  
CN1  
DICOM  
20  
24V DC  
OPC 12  
CN1  
DOCOM  
DICOM  
21  
46  
Class-D  
Photo-  
grounding*1  
Zero speed*4  
23 ZSP  
24 INP  
25 TLC  
48 ALM  
coupler  
COM  
X000  
Positioning completed(INP)  
Torque being controlled*4  
Servo error(ALM)  
Zero Point  
signal(PG0)  
LG 34  
OP 33  
X004  
X010  
X014  
X017  
Apx.  
Servo ready  
(RD)  
CN1  
DOG*2  
Servo ON*4  
Reset  
15 SON  
19 RES  
42 EMG  
RD 49  
Emergency stop  
Forward rotation limit 2*3  
Reverse rotation limit 2*3  
COM1  
COM1  
Y000  
43 LSP  
44 LSN  
Pulse train  
Direction  
DOCOM  
46  
DOCOM  
47  
PP 10  
*4  
Connected to the  
FX3UC if the ABS  
instruction(FNC  
155) is used.  
Y004  
Y017  
NP 35  
CN1  
25 ABST  
22 ABSB0  
23 ABSB1  
FX2NC-16EYT  
FX2NC-16EX  
COM1  
COM1  
Y020  
FX2NC-16EX  
FX2NC-16EYT  
Refer to Appendix  
1.3.1-2.  
CLEAR signal  
DOCOM  
46  
CR 41  
15 SON  
17 ABSM  
18 ABSR  
Plate  
SD  
Y027  
Photo-  
coupler  
COM  
X020  
X021  
X022  
X023  
X024  
X025  
X026  
X027  
X030  
Immediate stop command  
Zero return command  
JOG(+)command  
JOG(-)command  
Forward rotation positioning command  
Reverse rotation positioning command  
Forward rotation limit (LSF)*3  
Reverse rotation limit (LSR)*3  
Stop command  
X037  
*1.  
*2.  
*3.  
Be sure to use the class-D grounding method (grounding resistance: 100  
Near-point signal (DOG)  
or less).  
To ensure safety, use the forward rotation limit switch and the reverse rotation limit switch on both sides: the PLC side and  
the servo amplifier side.  
Note that the limit switches on the PLC side should be activated slightly earlier than the limit switches on the servo  
amplifier side.  
Reverse rotation limit 2 Reverse rotation limit 1 Forward rotation limit 1 Forward rotation limit 2  
(Servo amplifier side)  
(Programmable  
controller side)  
LSR  
(Programmable  
controller side)  
LSF  
(Servo amplifier side)  
Servo motor  
Reverse rotation  
Forward rotation  
*4.  
To detect absolute positions, connect this line to the PLC.  
Apx. - 5  
Appendix 1. MELSERVO-J3 Series  
Appendix 1-2 High-Speed Output Special Adapter  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Example Connection  
Appendix 1-2 High-Speed Output Special Adapter  
To assign the inputs/outputs, refer to the following section.  
Refer to Section 12.1 of "B. Built-in Positioning Function".  
Appedix 1-2-1 Sink Input, Sink Output (Transistor), and Differential Line Driver Output  
MR-J3  
A  
Series servo  
amplifier  
20  
46  
CN1  
DICOM  
24V DC  
DOCOM  
OPC 12  
FX3U-2HSY-ADP  
Pulse train  
(Forward rotation  
pulse train)*5  
Epuivalent to  
AM26C31  
CN1  
21 DICOM  
23 ZSP  
24 INP  
25 TLC  
48 ALM  
Y0/2+  
Y0/2-  
Y4/6+  
Y4/6-  
SGA  
PP 10  
PG 11  
NP 35  
NG 36  
Zero speed*4  
Positioning completed(INP)  
Torque being controlled*4  
Servo error(ALM)  
Direction signal  
(Reverse rotation  
pulse train)*5  
SGA  
100V to  
240V AC  
FX3U-32MR/ES  
L
CN1  
15 SON  
Servo ON*4  
Reset  
N
19 RES  
42 EMG  
Class-D  
grounding  
*1  
S/S  
0V  
Emergency stop  
Photo-  
coupler  
24V  
X000  
Forward rotation limit 2*3  
Reverse rotation limit 2*3  
43 LSP  
44 LSN  
Zero Point  
signal(PG0)  
LG 34  
OP 33  
DOCOM  
47  
*4  
X004  
X010  
X014  
X017  
Connected to the  
FX3UC if the ABS  
instruction(FNC  
155) is used.  
Servo ready  
(RD)  
DOG*2  
DOCOM  
46  
CN1  
RD 49  
25 ABST  
22 ABSB0  
23 ABSB1  
FX2N-16EX-ES/UL  
FX2N-16EYT  
Refer to Appendix  
1.3.1-1.  
DOCOM  
46  
FX2N-16EYT  
15 SON  
17 ABSM  
18 ABSR  
COM1  
Y020  
Y027  
CLEAR signal  
CR 41  
Plate  
SD  
FX2N-16EX-ES/UL  
S/S  
X020  
X021  
X022  
X023  
X024  
X025  
X026  
X027  
X030  
Immediate stop command  
Zero return command  
JOG(+)command  
Photo-  
coupler  
JOG(-)command  
Forward rotation positioning command  
Reverse rotation positioning command  
Forward rotation limit (LSF)*3  
Reverse rotation limit (LSR)*3  
Stop command  
X037  
*1.  
*2.  
Be sure to use the class-D grounding method (grounding resistance: 100  
Near-point signal (DOG)  
or less).  
Apx. - 6  
   
Appendix 1: MELSERVO-J3 Series  
Appendix 1-3 Absolute Position Detection (Transistor Output)  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Example Connection  
A
B
*3.  
To ensure safety, use the forward rotation limit switch and the reverse rotation limit switch on both sides: the PLC side and  
the servo amplifier side. Note that the limit switches on the PLC side should be activated slightly earlier than the limit  
switches on the servo amplifier side.  
Reverse rotation limit 2 Reverse rotation limit 1 Forward rotation limit 1 Forward rotation limit 2  
(Servo amplifier side)  
(Programmable  
controller side)  
LSR  
(Programmable  
controller side)  
LSF  
(Servo amplifier side)  
Servo motor  
Reverse rotation  
Forward rotation  
*4.  
*5.  
To detect absolute positions, connect this line to the PLC.  
Set the pulse output form by pulse output form setting switch.  
Apx.  
Pulse output method setting switch  
FPRP side  
Pulse output method  
Forward/reverse pulse train  
Pulse train + direction  
PLSDIRside  
Appendix 1-3 Absolute Position Detection (Transistor Output)  
To assign the inputs/outputs, refer to the following section.  
Refer to Section 12.1 of "B. Built-in Positioning Function"  
Appendix 1-3-1 Sink Input and Sink Output  
1. FX3U/FX3G PLC  
FX3U-32MT/ES  
100V to 240V AC  
L
N
Class-D  
grounding *1  
MR-J3  
A  
Series servo  
amplifier  
S/S  
CN1  
DOCOM  
0V  
46  
20  
Photo-  
coupler  
DICOM  
24V  
X000  
24V DC  
FX2N-16EYT  
COM1  
Y020  
Y021  
Y022  
Y023  
Servo-ON  
ABS transfer mode  
ABS request  
SON 15  
ABSM 17  
ABSR 18  
Y27  
FX2N-16EX-ES/UL  
S/S  
X020  
Photo-  
coupler  
ABS(bit0)  
ABS(bit1)  
Send data ready  
X031  
X032  
X033  
ABSB0  
ABSB1 23  
22  
25  
AB T  
Plate  
SD  
X037  
*1.  
Be sure to use the class-D grounding method (grounding resistance: 100  
or less).  
Apx. - 7  
   
Appendix 1. MELSERVO-J3 Series  
Appendix 1-2 High-Speed Output Special Adapter  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Example Connection  
2. FX3UC PLC  
MR-J3  
A  
Series servo  
amplifier  
FX3UC-32MT/D  
CN1  
DICOM  
20  
24V DC  
DOCOM  
46  
Photo-  
coupler  
Class-D  
COM  
X000  
grounding *1  
FX2NC-16EYT  
COM1  
COM1  
Y020  
Y021  
Y022  
Y023  
Servo-ON  
ABS transfer mode  
ABS request  
SON 15  
ABSM 17  
ABSR 18  
Y027  
FX2NC-16EX  
Photo-  
coupler  
COM  
X020  
ABS(bit0)  
ABS(bit1)  
Send data ready  
X031  
X032  
X033  
ABSB0 22  
ABSB1 23  
ABST 25  
Plate  
SD  
X037  
*1.  
Be sure to use the class-D grounding method (grounding resistance: 100  
or less).  
Apx. - 8  
Appendix 2. MELSERVO-J2 (-Super) Series  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Example Connection  
Appendix 2-1 Main Unit (Transistor Output)  
A
B
Appendix 2. MELSERVO-J2 (-Super) Series  
Appendix 2-1 Main Unit (Transistor Output)  
To assign the inputs/outputs, refer to the following section.  
Refer to Section 12.1 of "B. Built-in Positioning Function".  
Appendix 2-1-1 Sink Input and Sink Output  
1. FX3U/FX3G PLC  
100 to  
Apx.  
240V AC  
FX3U-32MT/ES  
L
MR-J2(S)  
A  
Series servo  
amplifier  
CN1B  
10 SG  
VDD  
13 COM  
TLC  
N
*4  
3
Class-D  
grounding*1  
Torque being controlled*5  
Servo error(ALM)  
Zero speed*5  
6
S/S  
18 ALM  
19 ZSP  
Photo-  
coupler  
0V  
24V  
X000  
Zero Point  
CN1A  
LG  
CN1B  
5 SON  
14 RES  
signal(PG0)  
Servo ON*5  
Reset  
1
X004  
X010  
X014  
OP 14  
Servo ready  
(RD)  
15 EMG  
Emergency stop  
DOG*2  
Forward rotation limit 2*3  
Reverse rotation limit 2*3  
RD 19  
16 LSP  
17 LSN  
20 SG  
X017  
*5  
Connected to the  
FX3U if the ABS  
instruction (FNC  
155) is used.  
COM1  
Pulse train  
Direction  
SG 10  
Y000  
PP  
3
CN1B  
4
DO1  
19 ZSP  
TLC  
10 SG  
5 SON  
COM2  
NP  
2
FX2N-16EX-ES/UL  
FX2N-16EYT  
Refer to Appendix  
2.3.1-1.  
6
Y004  
Y007  
8
9
ABSM  
ABSR  
FX2N-16EYT  
COM1  
Y020  
Y027  
CLEAR signal  
CR  
8
Plate  
SD  
CN1A  
COM  
9
OPC 11  
1NP 18  
FX2N-16EX-ES/UL  
Positioning  
completed(INP)  
S/S  
X020  
X021  
X022  
X023  
X024  
X025  
X026  
X027  
X030  
Immediate stop command  
Zero return command  
JOG(+)command  
Photo-  
coupler  
JOG(-)command  
Forward rotation positioning command  
Reverse rotation positioning command  
Forward rotation limit (LSF)*3  
Reverse rotation limit (LSR)*3  
Stop command  
X037  
Apx. - 9  
     
Appendix 2. MELSERVO-J2 (-Super) Series  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Example Connection  
Appendix 2-1 Main Unit (Transistor Output)  
*1.  
*2.  
*3.  
Be sure to use the class-D grounding method (grounding resistance: 100  
Near-point signal (DOG)  
or less).  
To ensure safety, use the forward rotation limit switch and the reverse rotation limit switch on both sides: the PLC side and  
the servo amplifier side. Note that the limit switches on the PLC side should be activated slightly earlier than the limit  
switches on the servo amplifier side.  
Reverse rotation limit 2 Reverse rotation limit 1 Forward rotation limit 1 Forward rotation limit 2  
(Servo amplifier side)  
(Programmable  
controller side)  
LSR  
(Programmable  
controller side)  
LSF  
(Servo amplifier side)  
Servo motor  
Reverse rotation  
Forward rotation  
*4.  
*5.  
For details on the internal power supply of MR-J2 (S) servo amplifier, refer to the following manual.  
For details, refer to the servo amplifier manual.  
To detect absolute positions, connect this line to the PLC.  
Apx. - 10  
Appendix 2. MELSERVO-J2 (-Super) Series  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Example Connection  
Appendix 2-1 Main Unit (Transistor Output)  
A
B
2. FX3UC PLC  
FX3UC-32MT/D  
24V DC  
Photo-  
Class-D  
MR-J2(S)  
A  
grounding *1  
coupler  
COM  
X000  
Series servo  
amplifier  
Zero Point  
signal(PG0)  
CN1A  
LG  
CN1B  
1
10 SG  
13 COM  
6
18 ALM  
19 ZSP  
X004  
X010  
X014  
X017  
OP 14  
Servo ready  
(RD)  
Torque being controlled*4  
Servo error(ALM)  
Zero speed*4  
TLC  
DOG*2  
Apx.  
RD 19  
CN1B  
5 SON  
14 RES  
Servo ON*4  
Reset  
COM1  
COM1  
Y000  
Pulse train  
Direction  
SG 10  
15 EMG  
Emergency stop  
PP  
NP  
3
2
Forward rotation limit 2*3  
Reverse rotation limit 2*3  
16 LSP  
17 LSN  
20 SG  
Y004  
Y017  
*4  
Connected to the  
FX3UC if ABS the  
instruction(FNC  
155) is used.  
FX2NC-16EYT  
FX2NC-16EX  
COM1  
COM1  
Y020  
CLEAR signal  
CN1B  
4
DO1  
19 ZSP  
TLC  
CR  
SD  
8
Plate  
FX2NC-16EX  
FX2NC-16EYT  
Refer to Appendix  
2.3.1-2.  
6
Y027  
10 SG  
5 SON  
CN1A  
COM  
9
OPC 11  
INP 18  
8
9
ABSM  
ABSR  
Positioning  
Photo-  
coupler  
completed(INP)  
COM  
X020  
X021  
X022  
X023  
X024  
X025  
X026  
X027  
X030  
Immediate stop command  
Zero return command  
JOG(+)command  
JOG(-)command  
Forward rotation positioning command  
Reverse rotation positioning command  
Forward rotation limit (LSF)*3  
Reverse rotation limit (LSR)*3  
Stop command  
X037  
*1.  
*2.  
*3.  
Be sure to use the class-D grounding method (grounding resistance: 100  
Near-point signal (DOG)  
or less).  
To ensure safety, use the forward rotation limit switch and the reverse rotation limit switch on both sides: the PLC side and  
the servo amplifier side. Note that the limit switches on the PLC side should be activated slightly earlier than the limit  
switches on the servo amplifier side.  
Reverse rotation limit 2 Reverse rotation limit 1 Forward rotation limit 1 Forward rotation limit 2  
(Servo amplifier side)  
(Programmable  
controller side)  
LSR  
(Programmable  
controller side)  
LSF  
(Servo amplifier side)  
Servo motor  
Reverse rotation  
Forward rotation  
*4.  
To detect absolute positions, connect this line to the PLC.  
Apx. - 11  
Appendix 2. MELSERVO-J2 (-Super) Series  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Example Connection  
Appendix 2-2 High-Speed Output Special Adapter  
Appendix 2-2 High-Speed Output Special Adapter  
To assign the inputs/outputs, refer to the following section.  
Refer to Section 12.1 of "B. Built-in Positioning Function".  
Appendix 2-2-1 Sink Input, Sink Output (Transistor), and Differential Line Driver Output  
MR-J2(S)  
A  
FX3U-2HSY-ADP  
Pulse train  
(Forward rotation  
pulse train)*6  
Series servo  
amplifier  
CN1B  
10 SG  
VDD  
13 COM  
TLC  
CN1A  
PP  
Epuivalent to  
AM26C31  
Y0/2+  
Y0/2-  
Y4/6+  
Y4/6-  
SGA  
3
*4  
3
PG 13  
NP  
NG 12  
2
Torque being controlled*5  
Servo error(ALM)  
Zero speed*5  
6
18 ALM  
19 ZSP  
Direction signal  
(Reverse rotation  
pulse train)*6  
SGA  
100V to  
240V AC  
FX3U-32MR/ES  
CN1B  
5 SON  
14 RES  
L
Servo ON*5  
Reset  
N
Class-D  
Emergency stop  
15 EMG  
grounding*1  
S/S  
0V  
Forward rotation limit 2*3  
Reverse rotation limit 2*3  
16 LSP  
17 LSN  
20 SG  
24V  
X000  
Zero Point  
signal(PG0)  
*5  
Photo-  
coupler  
LG  
OP 14  
1
Connected to the  
PLC if the ABS  
instruction (FNC  
155) is used.  
X004  
X010  
X014  
X017  
Servo ready  
(RD)  
CN1B  
DOG*2  
SG 10  
RD 19  
4
DO1  
19 ZSP  
TLC  
FX2N-16EX-ES/UL  
FX2N-16EYT  
Refer to Appendix  
2.3.1-1.  
6
10 SG  
5 SON  
FX2N-16EYT  
8
9
ABSM  
ABSR  
COM1  
Y020  
Y027  
CLEAR signal  
CR  
SD  
8
Plate  
CN1A  
FX2N-16EX-ES/UL  
COM  
INP 18  
9
S/S  
Immediate stop  
X020  
X021  
X022  
X023  
X024  
X025  
X026  
X027  
X030  
command  
Zero return command  
Positioning  
completed(INP)  
Photo-  
coupler  
JOG(+)command  
JOG(-)command  
Forward rotation positioning command  
Reverse rotation positioning command  
Forward rotation limit (LSF)*3  
Reverse rotation limit (LSR)*3  
Stop command  
X037  
*1.  
*2.  
Be sure to use the class-D grounding method (grounding resistance: 100  
Near-point signal (DOG)  
or less).  
Apx. - 12  
   
Appendix 2. MELSERVO-J2 (-Super) Series  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Example Connection  
Appendix 2-3 Absolute Position Detection (Transistor Output)  
A
B
*3.  
To ensure safety, use the forward rotation limit switch and the reverse rotation limit switch on both sides: the PLC side and  
the servo amplifier side. Note that the limit switches on the PLC side should be activated slightly earlier than the limit  
switches on the servo amplifier side.  
Reverse rotation limit 2 Reverse rotation limit 1 Forward rotation limit 1 Forward rotation limit 2  
(Servo amplifier side)  
(Programmable  
controller side)  
LSR  
(Programmable  
controller side)  
LSF  
(Servo amplifier side)  
Servo motor  
Reverse rotation  
Forward rotation  
*4.  
For details on the MR-J2(S) servo amplifier, such as the tolerance for the internal power and operation of the servo  
amplifier, refer to the following manual.  
For details, refer to the servo amplifier manual. Apx.  
*5.  
*6.  
To detect absolute positions, connect this line to the PLC.  
Set the pulse output method using the pulse output method setting switch.  
Pulse output method setting switch  
FPRP side  
Pulse output method  
Forward/reverse pulse train  
Pulse train + direction  
PLSDIR side  
Appendix 2-3 Absolute Position Detection (Transistor Output)  
To assign the inputs/outputs, refer to the following section.  
Refer to Section 12.1 of "B. Built-in Positioning"  
Appendix 2-3-1 Sink Input and Sink Output  
1. FX3U/FX3G PLC  
FX3U-32MT/ES  
100V to 240V AC  
L
N
Class-D  
grounding *1  
MR-J2(S)  
A  
Series servo  
amplifier  
S/S  
CN1B  
Photo-  
coupler  
0V  
SG 10  
24V  
X000  
COM 13  
VDD  
3
*2  
FX2N-16EYT  
COM1  
Y020  
Y021  
Y022  
Y023  
Servo-ON  
ABS transfer mode  
ABS request  
SON  
ABSM  
ABSR  
5
8
9
Y027  
FX2N-16EX-ES/UL  
S/S  
X020  
Photo-  
coupler  
ABS(bit0)  
ABS(bit1)  
Send data ready  
X031  
X032  
X033  
DO1  
4
ZSP 19  
TLC  
SD  
6
Plate  
X037  
*1.  
*2.  
Be sure to use the class-D grounding method (grounding resistance: 100  
or less).  
For details on the MR-J2(S) servo amplifier, such as the tolerance for the internal power and operation of the servo  
amplifier, refer to the following manual.  
For details, refer to the servo amplifier manual.  
Apx. - 13  
   
Appendix 2. MELSERVO-J2 (-Super) Series  
Appendix 2-3 Absolute Position Detection (Transistor Output)  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Example Connection  
2. FX3UC PLC  
MR-J2(S)  
A  
Series servo  
amplifier  
FX3UC-32MT/D  
CN1B  
COM 13  
24V DC  
SG 10  
Class-D  
Photo-  
grounding *1  
coupler  
COM  
X000  
FX2NC-16EYT  
COM1  
COM1  
Y020  
Servo-ON  
Y021  
SON  
ABSM  
ABSR  
5
8
9
ABS transfer mode  
Y022  
ABS request  
Y023  
Y027  
FX2NC-16EX  
Photo-  
coupler  
COM  
X020  
ABS(bit0)  
X031  
DO1  
4
ABS(bit1)  
X032  
ZSP 19  
Send data ready  
X033  
TLC  
SD  
6
Plate  
X037  
*1.  
Be sure to use the class-D grounding method (grounding resistance: 100  
or less).  
Apx. - 14  
Appendix 3. MELSERVO-H Series  
Appendix 3-1 Main Unit (Transistor Output)  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Example Connection  
A
B
Appendix 3. MELSERVO-H Series  
Appendix 3-1 Main Unit (Transistor Output)  
To assign the inputs/outputs, refer to the following section.  
Refer to Section 12.1 of "B. Built-in Positioning Function".  
Appendix 3-1-1 Sink Input and Sink Output  
Apx.  
FX3UC-32MT/D  
24V DC  
Class-D  
Photo-  
coupler  
grounding*1  
MR-H  
Series servo  
CN1 amplifier  
A  
COM  
X000  
Zero Point  
signal(PG0)  
LG 28  
CN1  
40 SG  
20 VIN  
23 ZSP  
24 PF  
25 TLC  
48 ALM  
X004  
X010  
X014  
X017  
OP 33  
Servo ready  
(RD)  
Zero speed*4  
DOG*2  
Positioning completed(INP)*4  
Torque being controlled*4  
Servo error(ALM)  
RD 49  
COM1  
COM1  
Y000  
CN1  
12 SON  
15 RES  
Pulse train  
Direction  
Servo ON*4  
Reset  
SG 47  
PP0 18  
Y004  
Y017  
NPO 19  
46 EMG  
Emergency stop  
Forward rotation limit 2*3  
Reverse rotation limit 2*3  
38 LSP  
39 LSN  
40 SG  
FX2NC-16EYT  
FX2NC-16EX  
COM1  
COM1  
Y020  
CLEAR signal  
*4  
SG 17  
CR  
Connected to the  
FX3UC if the ABS  
instruction(FNC  
155) is used.  
37  
SD 50  
CN1  
24 PF  
23 ZSP  
Y027  
FX2NC-16EX  
FX2NC-16EYT  
Refer to Appendix  
3.2.1.  
25 TLC  
16 SG  
12 SON  
44 D13  
45 D14  
Photo-  
coupler  
COM  
X020  
X021  
X022  
X023  
X024  
X025  
X026  
X027  
X030  
Immediate stop command  
Zero return command  
JOG(+)command  
JOG(-)command  
Forward rotation positioning command  
Reverse rotation positioning command  
Forward rotation limit (LSF)*3  
Reverse rotation limit (LSR)*3  
Stop command  
X037  
Apx. - 15  
     
Appendix 3. MELSERVO-H Series  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Example Connection  
Appendix 3-2 Absolute Position Detection (Transistor Output)  
*1.  
*2.  
*3.  
Be sure to use the class-D grounding method (grounding resistance: 100  
Near-point signal (DOG)  
or less).  
To ensure safety, use the forward rotation limit switch and the reverse rotation limit switch on both sides: the PLC side and  
the servo amplifier side. Note that the limit switches on the PLC side should be activated slightly earlier than the limit  
switches on the servo amplifier side.  
Reverse rotation limit 2 Reverse rotation limit 1 Forward rotation limit 1 Forward rotation limit 2  
(Servo amplifier side)  
(Programmable  
controller side)  
LSR  
(Programmable  
controller side)  
LSF  
(Servo amplifier side)  
Servo motor  
Reverse rotation  
Forward rotation  
*4.  
To detect absolute positions, connect this line to the PLC.  
Appendix 3-2 Absolute Position Detection (Transistor Output)  
To assign the inputs/outputs, refer to the following section.  
Refer to Section 12.1 of "B. Incorporated Positioning"  
Appendix 3-2-1 Sink Input and Sink Output  
1. FX3UC PLC  
MR-H  
A  
Series servo  
amplifier  
FX3UC-32MT/D  
CN1  
VIN 20  
24V DC  
SG 40  
Class-D  
Photo-  
coupler  
grounding *1  
COM  
X000  
FX2NC-16EYT  
COM1  
COM1  
Y020  
Y021  
Y022  
Y023  
SG 16  
SON 12  
DI3 44  
DI4 45  
Servo-ON  
ABS transfer mode  
ABS request  
Y27  
FX2NC-16EX  
Photo-  
coupler  
COM  
X020  
ABS(bit0)  
ABS(bit1)  
Send data ready  
X031  
X032  
X033  
PF 24  
ZSP 23  
TLC 25  
SD 50  
X037  
*1.  
Be sure to use the class-D grounding method (grounding resistance: 100  
or less).  
Apx. - 16  
   
Appendix 4. MELSERVO-C Series  
Appendix 4-1 Main Unit (Transistor Output)  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Example Connection  
A
B
Appendix 4. MELSERVO-C Series  
Appendix 4-1 Main Unit (Transistor Output)  
To assign the inputs/outputs, refer to the following section.  
Refer to Section 12.1 of "B. Built-in Positioning Function".  
Appendix 4-1-1 Sink Input and Sink Output  
Apx.  
1. FX3U/FX3G PLC  
100 to 240V AC  
FX3U-32MT/ES  
L
24V DC  
N
Class-D  
grounding*1  
MR-C  
Series servo  
amplifier  
A  
S/S  
0V  
Photo-  
coupler  
24V  
X000  
Zero Point  
signal(PG0)  
CN1  
OP  
CN1  
X004  
X010  
X014  
4
3
12 SG  
20 V24  
19 OPC  
Servo ready  
(RD)  
DOG*2  
*3  
RD  
1
2
V+  
ALM  
Servo error(ALM)  
X017  
COM1  
Pulse train  
Direction  
SG  
PP  
5
9
Forward rotation limit 2*4  
Reverse rotation limit 2*4  
Servo ON  
14 LSN  
15 LSP  
17 SON  
Y000  
COM2  
NP  
7
Y004  
Y007  
FX2N-16EYT  
COM1  
Y020  
Y027  
CLEAR signal  
CR 13  
SD 11  
FX2N-16EX-ES/UL  
S/S  
Immediate stop command  
Zero return command  
JOG(+)command  
X020  
X021  
X022  
X023  
X024  
X025  
X026  
X027  
X030  
Photo-  
coupler  
JOG(-)command  
Forward rotation positioning command  
Reverse rotation positioning command  
Forward rotation limit (LSF)*4  
Reverse rotation limit (LSR)*4  
Stop command  
X037  
Apx. - 17  
     
Appendix 4. MELSERVO-C Series  
Appendix 4-1 Main Unit (Transistor Output)  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Example Connection  
*1.  
*2.  
*3.  
*4.  
Be sure to use the class-D grounding method (grounding resistance: 100  
Near-point signal (DOG)  
or less).  
Set the servo amplifier parameter No.21 to "020".  
To ensure safety, use the forward rotation limit switch and the reverse rotation limit switch on both sides: the PLC side and  
the servo amplifier side. Note that the limit switches on the PLC side should be activated slightly earlier than the limit  
switches on the servo amplifier side.  
Reverse rotation limit 2 Reverse rotation limit 1 Forward rotation limit 1 Forward rotation limit 2  
(Servo amplifier side)  
(Programmable  
controller side)  
LSR  
(Programmable  
controller side)  
LSF  
(Servo amplifier side)  
Servo motor  
Reverse rotation  
Forward rotation  
Apx. - 18  
Appendix 4. MELSERVO-C Series  
Appendix 4-1 Main Unit (Transistor Output)  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Example Connection  
A
B
2. FX3UC PLC  
FX3UC-32MT/D  
24V DC  
Class-D  
Photo-  
grounding*1  
coupler  
COM  
X000  
MR-C  
A  
Zero Point  
signal(PG0)  
Series servo  
amplifier  
CN1  
OP  
X004  
X010  
X014  
X017  
4
Servo ready  
(RD)  
DOG*2  
Apx.  
*3  
RD  
3
CN1  
12 SG  
20 V24  
19 OPC  
COM1  
COM1  
Y000  
Pulse train  
Direction  
SG  
PP  
5
9
1
2
V+  
Y004  
Y017  
NP  
7
ALM  
Servo error(ALM)  
FX2NC-16EYT  
FX2NC-16EX  
Forward rotation limit 2*4  
Reverse rotation limit 2*4  
Servo ON  
14 LSN  
15 LSP  
17 SON  
COM1  
COM1  
Y020  
CLEAR signal  
CR 13  
SD 11  
Y27  
Photo-  
coupler  
COM  
X020  
X021  
X022  
X023  
X024  
X025  
X026  
X027  
X030  
Immediate stop command  
Zero return command  
JOG(+)command  
JOG(-)command  
Forward rotation positioning command  
Reverse rotation positioning command  
Forward rotation limit (LSF)*4  
Reverse rotation limit (LSR)*4  
Stop command  
X037  
*1.  
*2.  
*3.  
*4.  
Be sure to use the class-D grounding method (grounding resistance: 100  
Near-point signal (DOG)  
or less).  
Set the servo amplifier parameter No.21 to "020".  
To ensure safety, use the forward rotation limit switch and the reverse rotation limit switch on both sides: the PLC side and  
the servo amplifier side. Note that the limit switches on the PLC side should be activated slightly earlier than the limit  
switches on the servo amplifier side.  
Reverse rotation limit 2 Reverse rotation limit 1 Forward rotation limit 1 Forward rotation limit 2  
(Servo amplifier side)  
Servo motor  
(Programmable  
controller side)  
LSR  
(Programmable  
controller side)  
LSF  
(Servo amplifier side)  
Reverse rotation  
Forward rotation  
Apx. - 19  
Appendix 4. MELSERVO-C Series  
Appendix 4-2 High-Speed Output Special Adapter  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Example Connection  
Appendix 4-2 High-Speed Output Special Adapter  
To assign the inputs/outputs, refer to the following section.  
Refer to Section 12.1 of "B. Built-in Positioning Function"  
Appendix 4-2-1 Sink Input, Sink Output, and Differential Line Driver Output  
24V DC  
MR-C  
Series servo  
CN1 amplifier  
A  
FX3U-2HSY-ADP  
Pulse train  
(Forward rotation  
pulse train)*5  
Epuivalent to  
AM26C31  
Y0/2+  
Y0/2-  
Y4/6+  
Y4/6-  
SGA  
PP  
9
PG 10  
NP  
NG  
7
8
Direction signal  
(Reverse rotation  
pulse train)*5  
SGA  
100V to  
240V AC  
FX3U-32MR/ES  
L
CN1  
12 SG  
20 V24  
19 OPC  
N
Class-D  
grounding*1  
S/S  
0V  
Photo-  
1
2
V+  
coupler  
24V  
X000  
ALM  
Servo error(ALM)  
Zero Point  
signal(PG0)  
SG  
OP  
5
4
X004  
X010  
X014  
X017  
Forward rotation limit 2*4  
Reverse rotation limit 2*4  
Servo ON  
14 LSN  
15 LSP  
17 SON  
Servo ready  
(RD)  
DOG*2  
*3  
RD  
3
FX2N-16EYT  
COM1  
Y020  
Y027  
CLEAR signal  
CR 13  
SD 11  
FX2N-16EX-ES/UL  
S/S  
X020  
X021  
X022  
X023  
X024  
X025  
X026  
X027  
X030  
Immediate stop command  
Zero return command  
JOG(+)command  
Photo-  
coupler  
JOG(-)command  
Forward rotation positioning command  
Reverse rotation positioning command  
Forward rotation limit (LSF)*4  
Reverse rotation limit (LSR)*4  
Stop command  
X037  
*1.  
*2.  
*3.  
Be sure to use the class-D grounding method (grounding resistance: 100  
Near-point signal (DOG)  
or less).  
Set the servo amplifier parameter No.21 to "020".  
Apx. - 20  
   
Appendix 4. MELSERVO-C Series  
Appendix 4-2 High-Speed Output Special Adapter  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Example Connection  
A
B
*4.  
To ensure safety, use the forward rotation limit switch and the reverse rotation limit switch on both sides: the PLC side and  
the servo amplifier side. Note that the limit switches on the PLC side should be activated slightly earlier than the limit  
switches on the servo amplifier side.  
Reverse rotation limit 2 Reverse rotation limit 1 Forward rotation limit 1 Forward rotation limit 2  
(Servo amplifier side)  
(Programmable  
controller side)  
LSR  
(Programmable  
controller side)  
LSF  
(Servo amplifier side)  
Servo motor  
Reverse rotation  
Forward rotation  
*5.  
Set the pulse output method using the pulse output method setting switch.  
Pulse output method setting switch  
FPRP side  
Pulse output method  
Forward/reverse pulse train  
Pulse train + direction  
Apx.  
PLSDIR side  
Apx. - 21  
Appendix 4. MELSERVO-C Series  
Appendix 4-2 High-Speed Output Special Adapter  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Example Connection  
MEMO  
Apx. - 22  
Warranty  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Warranty  
Please confirm the following product warranty details before using this product.  
1. Gratis Warranty Term and Gratis Warranty Range  
If any faults or defects (hereinafter "Failure") found to be  
the responsibility of Mitsubishi occurs during use of the  
product within the gratis warranty term, the product shall be  
repaired at no cost via the sales representative or  
Mitsubishi Service Company. However, if repairs are  
required onsite at domestic or overseas location, expenses  
to send an engineer will be solely at the customer's  
discretion. Mitsubishi shall not be held responsible for any  
re-commissioning, maintenance, or testing on-site that  
involves replacement of the failed module.  
2. Onerous repair term after discontinuation of  
production  
1) Mitsubishi shall accept onerous product repairs for  
seven (7) years after production of the product is  
discontinued.  
Discontinuation of production shall be notified with  
Mitsubishi Technical Bulletins, etc.  
2) Product supply (including repair parts) is not available  
after production is discontinued.  
3. Overseas service  
Overseas, repairs shall be accepted by Mitsubishi's local  
overseas FA Center. Note that the repair conditions at  
each FA Center may differ.  
[Gratis Warranty Term]  
The gratis warranty term of the product shall be for one  
year after the date of purchase or delivery to a designated  
place. Note that after manufacture and shipment from  
Mitsubishi, the maximum distribution period shall be six (6)  
months, and the longest gratis warranty term after  
manufacturing shall be eighteen (18) months. The gratis  
warranty term of repair parts shall not exceed the gratis  
warranty term before repairs.  
4. Exclusion of loss in opportunity and secondary  
loss from warranty liability  
Regardless of the gratis warranty term, Mitsubishi shall not  
be liable for compensation of damages caused by any  
cause found not to be the responsibility of Mitsubishi, loss  
in opportunity, lost profits incurred to the user or third  
person by Failures of Mitsubishi products, special  
damages and secondary damages whether foreseeable or  
not , compensation for accidents, and compensation for  
damages to products other than Mitsubishi products,  
replacement by the user, maintenance of on-site  
equipment, start-up test run and other tasks.  
[Gratis Warranty Range]  
1) The range shall be limited to normal use within the  
usage state, usage methods and usage environment,  
etc., which follow the conditions and precautions, etc.,  
given in the instruction manual, user's manual and  
caution labels on the product.  
5. Changes in product specifications  
The specifications given in the catalogs, manuals or  
technical documents are subject to change without prior  
notice.  
2) Even within the gratis warranty term, repairs shall be  
charged for in the following cases.  
a) Failure occurring from inappropriate storage or  
handling, carelessness or negligence by the user.  
Failure caused by the user's hardware or software  
design.  
b) Failure caused by unapproved modifications, etc.,  
to the product by the user.  
c) When the Mitsubishi product is assembled into a  
user's device, Failure that could have been  
avoided if functions or structures, judged as  
necessary in the legal safety measures the user's  
device is subject to or as necessary by industry  
standards, had been provided.  
d) Failure that could have been avoided if  
consumable parts (battery, backlight, fuse, etc.)  
designated in the instruction manual had been  
correctly serviced or replaced.  
e) Relay failure or output contact failure caused by  
usage beyond the specified Life of contact  
(cycles).  
f) Failure caused by external irresistible forces such  
as fires or abnormal voltages, and failure caused  
by force majeure such as earthquakes, lightning,  
wind and water damage.  
g) Failure caused by reasons unpredictable by  
scientific technology standards at time of  
shipment from Mitsubishi.  
h) Any other failure found not to be the responsibility  
of Mitsubishi or that admitted not to be so by the  
user.  
6. Product application  
1) In using the Mitsubishi MELSEC programmable logic  
controller, the usage conditions shall be that the  
application will not lead to a major accident even if any  
problem or fault should occur in the programmable  
logic controller device, and that backup and fail-safe  
functions are systematically provided outside of the  
device for any problem or fault.  
2) The Mitsubishi programmable logic controller has  
been designed and manufactured for applications in  
general industries, etc. Thus, applications in which the  
public could be affected such as in nuclear power  
plants and other power plants operated by respective  
power companies, and applications in which a special  
quality assurance system is required, such as for  
Railway companies or Public service purposes shall  
be excluded from the programmable logic controller  
applications.  
In addition, applications in which human life or  
property that could be greatly affected, such as in  
aircraft, medical applications, incineration and fuel  
devices, manned transportation, equipment for  
recreation and amusement, and safety devices, shall  
also be excluded from the programmable logic  
controller range of applications.  
However, in certain cases, some applications may be  
possible, providing the user consults their local  
Mitsubishi representative outlining the special  
requirements of the project, and providing that all  
parties concerned agree to the special circumstances,  
solely at the users discretion.  
i
 
Revised History  
FX3G/FX3U/FX3UC PLC User's Manual - Positioning Control Edition  
Revised History  
Date  
Revision  
Description  
7/2005  
2/2006  
A
B
First Edition  
The transistor output for FX3U Series was added.  
-
A.Common items  
(Subsection 1.2.1 and 1.2.2, Section 2.1 and Subsection 3.1.1).  
B.Built-in positioning function  
-
(Section 1.1, Subsection 1.5.2 and 1.5.3, Section 2.3, Subsection 2.5.1, Section  
4.9, Subsection 6.3.1, 8.2.1 and 8.3.1, Section 9.1 and 10.1).  
Appendix:Example connection  
-
(Appendix 1-1-1, 1-3, 2-1-1 and 4-1-1).  
FX3U-20SSC-H was added.  
-
A.Common items  
(Subsection 1.2.1, Section 2.1, Section 2.2, Subsection 3.1.3 and Section 3.2)  
Other  
-
Section-number changed Revision A (Revision B)  
A.Common items: Subsection 3.1.3 (3.1.4)  
B. Built-in positioning function: Subsection 2.5.1 (2.5.2) to 2.5.2 (2.5.3)  
Correction of errors  
-
11/2007  
C
FX3UC (D, DSS) Series PLC added.  
Correction of errors  
11/2008  
3/2009  
D
E
FX3G Series PLC added.  
The transistor output (source type) for FX3G Series was added.  
Explanation corrections for manufacturer’s serial number.  
ii  
 
USER'S MANUAL - Positioning Control Edition  
FX3G/FX3U/FX3UC SERIES PROGRAMMABLE CONTROLLERS  
HEAD OFFICE: TOKYO BUILDING, 2-7-3 MARUNOUCHI, CHIYODA-KU, TOKYO 100-8310, JAPAN  
HIMEJI WORKS: 840, CHIYODA CHO, HIMEJI, JAPAN  
MODEL  
FX3U-U-POS-E  
MODEL CODE  
09R620  
JY997D16801E  
(MEE)  
Effective March 2009  
Specifications are subject to change without notice.  

Maxtor OneTouch STM302504OTD3E5 RK User Manual
Lindy 20698 User Manual
LG Electronics 34E User Manual
Kenwood MDS JA20ES User Manual
iHome ZN9 User Manual
iHome IH B944NB User Manual
DeLonghi Coffeemaker EC 702 User Manual
Clickfree C2N 25 User Manual
American Audio DIGI PRO User Manual
Adam Equipment Adam 4000 User Manual