

FX3S/FX3G/FX3GC/FX3U/FX3UC SERIES PROGRAMMABLE CONTROLLERS
Basic & Applied Instruction Edition



FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programmable Controllers
This manual contains text, diagrams and explanations which will guide the reader through the safe and correct installation, use, and operation of the FX3S/FX3G/FX3GC/FX3U/FX3UC Series programmable controller. It 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.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition


FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
For detailed explanation of programming (basic instructions, applied instructions and step ladder instructions) in FX3S/ FX3G/FX3GC/FX3U/FX3UC PLCs, refer to this manual. For hardware information on the PLC main unit, special extension units, etc., refer to each associated manual. For acquiring manuals, contact the representative you have purchased the product from.
~ Essential manual { Manual required depending on application U Manual with additional manual for detailed explanation
Manual name Manual number Contents Model name
Manuals for PLC main unit
FX3S PLC main unit
I/O specifications, wiring and installation of the PLC main unit FX3S extracted from the FX3S Series User’s Manual - Hardware Edition. For detailed explanation, refer to the FX3S Series User’s Manual - Hardware Edition.
U Supplied with product
FX3S Series Hardware Manual JY997D48301
I/O specifications, built-in analog specifications, wiring and installation of the PLC main unit FX3S- 30M /E -2AD extracted from the FX3S Series User’s Manual - Hardware Edition. For detailed explanation, refer to the FX3S Series User’s Manual - Hardware Edition.
U Supplied with product
FX3S-30M /E -2AD Hardware Manual JY997D51701
Details about the hardware including I/O specifications, wiring, installation and maintenance of the FX3S PLC main unit.
FX3S Series User’s Manual - Hardware Edition JY997D48601
FX3G PLC main unit
I/O specifications, wiring and installation of the PLC main unit FX3G extracted from the FX3G Series User’s Manual - Hardware Edition. For detailed explanation, refer to the FX3G Series User’s Manual - Hardware Edition.
U Supplied with product
FX3G Series Hardware Manual JY997D46001
Details about the hardware including I/O specifications, wiring, installation and maintenance of the FX3G PLC main unit.
FX3G Series User’s Manual - Hardware Edition JY997D31301
FX3GC PLC main unit
I/O specifications, wiring and installation of the PLC main unit FX3GC extracted from the FX3GC Series User’s Manual - Hardware Edition. For detailed explanation, refer to the FX3GC Series User’s Manual - Hardware Edition.
U Supplied with product
FX3GC Series Hardware Manual JY997D45201
FX3GC Series User’s Manual - Hardware Edition JY997D45401
Details about the hardware including I/O specifications, wiring, installation and maintenance of the FX3GC PLC main unit.
FX3U PLC main unit
I/O specifications, wiring and installation of the PLC main unit FX3U extracted from the FX3U Series User’s Manual - Hardware Edition. For detailed explanation, refer to the FX3U Series User’s Manual - Hardware Edition.
U Supplied with product
FX3U Series Hardware Manual JY997D50301
Details about the hardware including I/O specifications, wiring, installation and maintenance of the FX3U PLC main unit.
FX3U Series User’s Manual - Hardware Edition JY997D16501
FX3UC PLC main unit For detailed explanation, refer to the FX3UC Series User’s Manual - Hardware Edition.
U Supplied with product
FX3UC (D, DS, DSS) Series Hardware Manual JY997D50501
I/O specifications, wiring and installation of the PLC main unit FX3UC (D, DS, DSS) extracted from the FX3UC Series User’s Manual - Hardware Edition.
I/O specifications, wiring and installation of the PLC main unit FX3UC-32MT-LT-2 extracted from the FX3UC Series User’s Manual - Hardware Edition.
U Supplied with product
FX3UC-32MT-LT-2 Hardware Manual JY997D31601
Details about the hardware including I/O specifications, wiring, installation and maintenance of the FX3UC PLC main unit.
FX3UC Series User’s Manual - Hardware Edition JY997D28701

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
~ Essential manual { Manual required depending on application U Manual with additional manual for detailed explanation
Manual name Manual number Contents Model name
FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition (this manual)
Items related to programming in PLCs including explanation of basic instructions, applied instructions and various devices in FX3S/FX3G/ FX3GC/FX3U/FX3UC PLCs.
09R517
MELSEC-Q/L/F Structured Programming Manual (Fundamentals)
SH-080782ENG Programming methods, specifications, functions,
etc. required to create structured programs 13JW06
FXCPU Structured Programming Manual [Device & Common]
JY997D26001 Devices, parameters, etc. provided in structured projects of GX Works2 09R925
FXCPU Structured Programming Manual [Basic & Applied Instruction]
JY997D34701 Sequence instructions provided in structured projects of GX Works2 09R926
FXCPU Structured Programming Manual [Application Functions]
JY997D34801 Application functions provided in structured projects of GX Works2 09R927
{ Supplied with product
FX INPUT AND OUTPUT TERMINAL BLOCKS JY992D50401 Terminal block handling procedures. −
Manuals for communication control
FX Series User’s Manual - Data Communication Edition JY997D16901
Details about N : N Network, parallel link, computer link and non-protocol communication (RS instruction and FX2N-232IF).
FX3S/FX3G/FX3GC/FX3U/FX3UC Series User’s Manual - MODBUS Serial Communication Edition
JY997D26201 Explains the MODBUS serial communication network in FX3S/FX3G/FX3GC/FX3U/FX3UC PLCs. 09R626
Communication via RS-232C/RS-422/RS-485/USB
When using each product, refer to the User’s Manual - Hardware Edition of the PLC main unit to which each product is connected and the FX Series User’s Manual - Communication Control Edition. Refer to the FX3S/FX3G/FX3GC/FX3U/FX3UC Series User’s Manual - MODBUS Serial Communication Edition for MODBUS communication.
U Supplied with product
FX3U-USB-BD User’s Manual JY997D13501
Items about the system configuration of USB communication expansion board and the driver installation method.
U Supplied with product
FX3G-232-BD Installation Manual JY997D32001 Handling procedures of the RS-232C communication expansion board. −
U Supplied with product
FX3U-232-BD Installation Manual JY997D12901 Handling procedures of the RS-232C communication expansion board. −
U Supplied with product
FX3U-232ADP-MB Installation Manual JY997D26401 Handling procedures of the RS-232C communication special adapter. −
U Supplied with product
FX3U-232ADP Installation Manual JY997D13701 Handling procedures of the RS-232C communication special adapter. −
U Supplied with product
FX2N-232IF Hardware Manual JY992D73501 Handling procedures of the RS-232C communication special function block. −
U Supplied with product
FX3G-422-BD Installation Manual JY997D32101 Handling procedures of the RS-422 communication expansion board. −
U Supplied with product
FX3U-422-BD Installation Manual JY997D13101 Handling procedures of the RS-422 communication expansion board. −
U Supplied with product
FX3G-485-BD Installation Manual JY997D32201 Handling procedures of the RS-485 communication expansion board. −
U Supplied with product
FX3G-485-BD-RJ Installation Manual JY997D51501 Handling procedures of the RS-485 communication expansion board. −
U Supplied with product
FX3U-485-BD Installation Manual JY997D13001 Handling procedures of the RS-485 communication expansion board. −
U Supplied with product
FX3U-485ADP-MB Installation Manual JY997D26301 Handling procedures of the RS-485 communication special adapter. −
U Supplied with product
FX3U-485ADP Installation Manual JY997D13801 Handling procedures of the RS-485 communication special adapter. −
U Supplied with product
FX-485PC-IF Hardware Manual JY992D81801 Handling procedures of the RS-232C/RS-485 conversion interface. −

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
~ Essential manual { Manual required depending on application U Manual with additional manual for detailed explanation
Manual name Manual number Contents Model name
Ethernet, CC-Link, MELSEC I/O LINK and AS-i system
When using each product, refer also to the User’s Manual - Hardware Edition of the PLC main unit to which each product is connected.
Describes installation specifications for the FX3U-ENET-ADP Ethernet communication special adapter extracted from the FX3U-ENET-ADP User's Manual. For details, refer to FX3U-ENET-ADP User's Manual.
U Supplied with product
FX3U-ENET-ADP Installation Manual JY997D47401
FX3U-ENET-ADP User’s Manual JY997D45801 Describes Ethernet communication special adapter details. 09R725
Handling procedures of the CC-Link master special function block. For use, refer to the FX3U-16CCL-M User’s Manual.
U Supplied with product
FX3U-16CCL-M Installation Manual JY997D43401
FX3U-16CCL-M User’s Manual JY997D43601 Details about the CC-Link master special function block. 09R724
Handling procedures of the CC-Link master special function block. For use, refer to the FX2N-16CCL-M User’s Manual.
U Supplied with product
FX2N-16CCL-M Hardware Manual JY992D93201
FX2N-16CCL-M User’s Manual JY992D93101 Details about the CC-Link master special function block. 09R710
Handling procedures of the CC-Link interface special function block. For use, refer to the FX3U-64CCL User’s Manual.
U Supplied with product
FX3U-64CCL Installation Manual JY997D29801
FX3U-64CCL User’s Manual JY997D30401 Handling procedures of the CC-Link interface special function block. 09R718
{ Supplied with product
FX2N-32CCL User’s Manual JY992D71801 Handling procedures of the CC-Link remote device station special function block. 09R711
Remote I/O station, remote device station and intelligent device station for CC-Link
{ Supplied with product
As for the remote I/O station, remote device station and intelligent device station for CC-Link, refer to each manual and the related data.
Handling procedures of the CC-Link/LT master special function block. For use, refer to the FX2N-64CL-M User’s Manual [Detailed Volume].
FX2N-64CL-M User’s Manual [Hardware Volume]
U Supplied with product
FX2N-64CL-M User’s Manual [Detailed Volume]
JY997D08501 Details about the CC-Link/LT master special function block. −
Remote I/O station, remote device station, power supply adapter and dedicated power supply for CC-Link/LT
As for the remote I/O station, remote device station, power supply adapter and dedicated power supply for CC-Link/LT, refer to each manual and the related data.
{ Supplied with product
{ Supplied with product
FX2N-16LNK-M User's Manual JY992D73701 Handling procedure of the master special function block for the MELSEC I/O LINK 09R709
{ Supplied with product
FX2N-32ASI-M User’s Manual JY992D76901 Handling procedure of the master special function block for the AS-i system. −
Manuals for analog control
FX3S/FX3G/FX3GC/FX3U/FX3UC User’s Manual - Analog Control Edition
Details about the analog special function block (FX3U-4AD, FX3U-4DA, FX3UC-4AD), analog special adapter (FX3U-∗∗∗∗-ADP) and analog expansion board (FX3G-∗∗∗-BD).
09R619
Analog input, temperature input and temperature control
When using each product, refer also to the User’s Manual - Hardware Edition of the PLC main unit to which each product is connected.
Handling procedures of the 2-channel analog input expansion board. For use, refer to the FX3S/FX3G/FX3GC/FX3U/FX3UC Series User’s Manual - Analog Control Edition.
U Supplied with product
FX3G-2AD-BD Installation Manual JY997D33501
{ Supplied with product
FX2N-2AD User’s Guide JY992D74701 Handling procedures of the 2-channel analog input special function block. −
Handling procedures of the 4-channel analog input special function block. For use, refer to the FX3S/FX3G/FX3GC/FX3U/FX3UC Series User’s Manual - Analog Control Edition.
U Supplied with product
FX3U-4AD Installation Manual JY997D20701
Handling procedures of the 4-channel analog input special adapter. For use, refer to the FX3S/FX3G/FX3GC/FX3U/FX3UC Series User’s Manual - Analog Control Edition.
U Supplied with product
FX3U-4AD-ADP Installation Manual JY997D13901

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
~ Essential manual { Manual required depending on application U Manual with additional manual for detailed explanation
Manual name Manual number Contents Model name
Handling procedures of the 4-channel analog input special function block. For use, refer to the FX3S/FX3G/FX3GC/FX3U/FX3UC Series User’s Manual - Analog Control Edition.
U Supplied with product
FX3UC-4AD Installation Manual JY997D14901
{ Supplied with product
FX2N-4AD User’s Guide JY992D65201 Handling procedures of the 4-channel analog input special function block. −
{ Supplied with product
FX2NC-4AD User’s Manual JY997D07801 Handling procedures of the 4-channel analog input special function block. −
{ Supplied with product
FX2N-8AD User’s Manual JY992D86001 Handling procedures of the 8-channel analog input (and thermocouple input) special function block. 09R608
Handling procedures of the 4-channel Pt100 temperature sensor input special adapter. For use, refer to the FX3S/FX3G/FX3GC/FX3U/FX3UC Series User’s Manual - Analog Control Edition.
U Supplied with product
FX3U-4AD-PT-ADP User’s Manual JY997D14701
Handling procedures of the 4-channel Pt100 temperature sensor input special adaptor. For use, refer to the FX3S/FX3G/FX3GC/FX3U/FX3UC Series User’s Manual - Analog Control Edition.
U Supplied with product
FX3U-4AD-PTW-ADP User’s Manual JY997D29101
{ Supplied with product
FX2N-4AD-PT User’s Guide JY992D65601 Handling procedures of the 4-channel Pt100 temperature sensor input special function block. −
Handling procedures of the 4-channel Pt1000/Ni1000 temperature sensor input special adaptor. For use, refer to the FX3S/FX3G/FX3GC/FX3U/FX3UC Series User’s Manual - Analog Control Edition.
U Supplied with product
FX3U-4AD-PNK-ADP User’s Manual JY997D29201
Handling procedures of the 4-channel thermocouple input special adapter. For use, refer to the FX3S/FX3G/FX3GC/FX3U/FX3UC Series User’s Manual - Analog Control Edition.
U Supplied with product
FX3U-4AD-TC-ADP User’s Manual JY997D14801
{ Supplied with product
FX2N-4AD-TC User’s Guide JY992D65501 Handling procedures of the 4-channel thermocouple input special function block. −
Handling procedures of the 4-channel temperature control special function block. For use, refer to the FX3U-4LC User’s Manual
U Supplied with product
FX3U-4LC Installation Manual JY997D38901
FX3U-4LC User’s Manual JY997D39101 Detail about the 4-channel temperature control special function block. 09R625
Handling procedures of the 2-channel temperature control special function block. For use, refer to the FX2N-2LC User’s Manual.
U Supplied with product
FX2N-2LC User’s Guide JY992D85601
FX2N-2LC User’s Manual JY992D85801 Details about the 2-channel temperature control special function block. 09R607
When using each product, refer also to the User’s Manual - Hardware Edition of the PLC main unit to which each product is connected.
Handling procedures of the 1-channel analog output expansion board. For use, refer to the FX3S/FX3G/FX3GC/FX3U/FX3UC Series User’s Manual - Analog Control Edition.
U Supplied with product
FX3G-1DA-BD Installation Manual JY997D33601
{ Supplied with product
FX2N-2DA User’s Guide JY992D74901 Handling procedures of the 2-channel analog output special function block. −
Handling procedures of the 4-channel analog output special function block. For use, refer to the FX3S/FX3G/FX3GC/FX3U/FX3UC Series User’s Manual - Analog Control Edition.
U Supplied with product
FX3U-4DA Installation Manual JY997D20801
Handling procedures of the 4-channel analog output special adapter. For use, refer to the FX3S/FX3G/FX3GC/FX3U/FX3UC Series User’s Manual - Analog Control Edition.
U Supplied with product
FX3U-4DA-ADP User’s Manual JY997D14001
{ Supplied with product
FX2N-4DA User’s Guide JY992D65901 Handling procedures of the 4-channel analog output special function block. −
{ Supplied with product
FX2NC-4DA User’s Manual JY997D07601 Handling procedures of the 4-channel analog output special function block. −

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
~ Essential manual { Manual required depending on application U Manual with additional manual for detailed explanation
Manual name Manual number Contents Model name
Analog I/O (mixed)
When using each product, refer also to the User’s Manual - Hardware Edition of the PLC main unit to which each product is connected.
Handling procedures of the 2-channel analog input/ 1-channel analog output special adapter. For use, refer to the FX3S/FX3G/FX3GC/FX3U/FX3UC Series User's Manual - Analog Control Edition.
U Supplied with product
FX3U-3A-ADP User’s Manual JY997D35601
{ Supplied with product
FX0N-3A User’s Guide JY992D49001 Handling procedures of the 2-channel analog input/ 1-channel analog output special function block. −
{ Supplied with product
FX2N-5A Users Manual JY997D11401 Handling procedures of the 4-channel analog input/ 1-channel analog output special function block. 09R616
Manuals for high-speed counter
When using each product, refer also to the User’s Manual - Hardware Edition of the PLC main unit to which each product is connected.
U Supplied with product
FX3U-4HSX-ADP Installation Manual JY997D16301 Handling procedure of the special high-speed input adapter. −
{ Supplied with product
FX3U-2HC User’s Manual JY997D36701 Handling procedure of the 2-channel high-speed counter special function block. −
FX2N-1HC User’s Guide JY992D65401 Handling procedures of the 1-channel high-speed counter special function block. −
{ Supplied with product
{ Supplied with product
FX2NC-1HC User’s Manual JY997D30701 Handling procedures of the 1-channel high-speed counter special function block. −
Manuals for positioning control
FX3S/FX3G/FX3GC/FX3U/FX3UC Series User’s Manual - Positioning Edition
JY997D16801 Details about the positioning function built in the FX3S/FX3G/FX3GC/FX3U/FX3UC Series. 09R620
Pulse output and positioning
When using each product, refer also to the User’s Manual - Hardware Edition of the PLC main unit to which each product is connected.
Handling procedure of the special high-speed output adapter. For use, refer to the FX3S/FX3G/FX3GC/FX3U/FX3UC Series User’s Manual - Positioning Edition.
U Supplied with product
FX3U-2HSY-ADP Installation Manual JY997D16401
Handling procedures of the 1-axis pulse output block. For use, refer to the FX3U-1PG User’s Manual.
U Supplied with product
FX3U-1PG Installation Manual JY997D47101
FX3U-1PG User’s Manual JY997D47301 Details about the 1-axis pulse output block. 09R629
U Supplied with product
FX2N-1PG-E Installation Manual JY997D50601
Handling procedures of the 1-axis pulse output block. For use, refer to the FX2N/FX-1PG User’s Manual.
FX2N/FX-1PG User’s Manual JY992D65301 Handling procedures of the 1-axis pulse output block. 09R610
Handling procedures of the 1-axis pulse output block. For use, refer to the FX2N-10PG User’s Manual.
U Supplied with product
FX2N-10PG Installation Manual JY992D91901
FX2N-10PG User’s Manual JY992D93401 Details about the 1-axis pulse output block. 09R611
Handling procedures of the 1-axis positioning special extension unit. For use, refer to the FX2N-10GM/FX2N-20GM Hardware/Programming Manual
U Supplied with product
FX2N-10GM User’s Guide JY992D77701
Handling procedures of the 2-axis positioning special extension unit. For use, refer to the FX2N-10GM/FX2N-20GM Hardware/Programming Manual
U Supplied with product
FX2N-20GM User’s Guide JY992D77601
FX2N-10GM, FX2N-20GM Hardware/Programming Manual
JY992D77801 Details on the 1-axis/2-axis positioning special function unit. 09R612

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
~ Essential manual { Manual required depending on application U Manual with additional manual for detailed explanation
Manual name Manual number Contents Model name
Programmable cam switch
When using each product, refer also to the User’s Manual - Hardware Edition of the PLC main unit to which each product is connected.
{ Supplied with product
FX2N-1RM-E-SET User’s Manual JY992D71101 Handling procedures of the programmable cam switch special extension unit. 09R614
Manuals for FX3U-20SSC-H positioning Block
U Supplied with product
FX3U-20SSC-H Installation Manual JY997D21101
Handling procedures of the 2-axis positioning special function block. For use, refer to the FX3U-20SSC-H User's Manual.
FX3U-20SSC-H User's Manual JY997D21301 Describes FX3U-20SSC-H Positioning block details. 09R622
{ Supplied with product
FX Configurator-FP Operation Manual JY997D21801 Describes operation details of FX Configurator-FP Configuration Software. 09R916
Manuals for FX3U-CF-ADP CF card special adapter
Describes installation specifications for the FX3U-CF-ADP CF card special adapter extracted from the FX3U-CF-ADP User's Manual. For details, refer to FX3U-CF-ADP User's Manual.
U Supplied with product
FX3U-CF-ADP Installation Manual JY997D35201
FX3U-CF-ADP User's Manual JY997D35401 Describes details of the FX3U-CF-ADP CF card special adapter. 09R720
Describes FX-30P specification extracted from the FX-30P Operation manual. For details, refer to FX-30P Operation manual.
U Supplied with product
FX-30P Installation Manual JY997D34201
FX-30P Operation Manual JY997D34401 Describes Handy Programming Panel FX-30P details. 09R924
When using each product, refer also to the User’s Manual - Hardware Edition of the PLC main unit to which each product is connected.
U Supplied with product
FX3S-CNV-ADP Installation Manual JY997D48801 Handling procedures of the conversion adapter for special adapter connection. −
U Supplied with product
FX3G-CNV-ADP Installation Manual JY997D32301 Handling procedures of the conversion adapter for special adapter connection. −
U Supplied with product
FX3U-CNV-BD Installation Manual JY997D13601 Handling procedures of the connector conversion expansion board for special adapter connection. −
U Supplied with product
FX3G-4EX-BD User's Manual JY997D51301 Handling procedures of the 4 points input expansion board. −
U Supplied with product
FX3G-2EYT-BD User's Manual JY997D51401 Handling procedures of the 2 points transistor output expansion board. −
When using each product, refer also to the FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic and Applied Instruction Edition.
U Supplied with product
FX3G-8AV-BD Installation Manual JY997D33701 Handling procedures of the 8-channel analog volume expansion board. −
U Supplied with product
FX3U-8AV-BD User's Manual JY997D40901 Handling procedures of the 8-channel analog volume expansion board. −
Battery (maintenance option)
U Supplied with product FX3U-32BL Battery JY997D14101 Battery life and handling procedures. −
U Supplied with product
FX3G-5DM Installation Manual JY997D33801 Procedures for mounting and handling the display module. −
U Supplied with product
FX3U-7DM User's Manual JY997D17101 Procedures for mounting and handling the display module. −
Display module holder
U Supplied with product
FX3U-7DM-HLD User's Manual JY997D15401 Procedures for mounting and handling the display module holder. −

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
~ Essential manual { Manual required depending on application U Manual with additional manual for detailed explanation
Manual name Manual number Contents Model name
Memory cassette FX3G-EEPROM-32L Installation Manual
U Supplied with product
JY997D32401 Specifications and operating procedures of the memory cassette. −
U Supplied with product
FX3U-FLROM-16/64/64L/1M Hardware Manual JY997D12801 Specifications and operating procedures of the memory cassette. −
Extension power supply unit
U Supplied with product
FX3U-1PSU-5V Installation Manual JY997D22501 Specifications and operating procedures of the extension power supply unit. −
U Supplied with product
FX3UC-1PS-5V Installation Manual JY997D12201 Specifications and operating procedures of the FX3UC-1PS-5V. −
Related manuals · code · Memory cassette

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
Generic Names and Abbreviations Used in Manuals
FX3S Series Generic name of FX3S Series PLCs
FX3S PLC or main unit Generic name of FX3S Series PLC main units
FX3G Series Generic name of FX3G Series PLCs
FX3G PLC or main unit Generic name of FX3G Series PLC main units
FX3GC Series Generic name of FX3GC Series PLCs
FX3GC PLC or main unit Generic name of FX3GC Series PLC main units
FX3U Series Generic name of FX3U Series PLCs
FX3U PLC or main unit Generic name of FX3U Series PLC main units
FX3UC Series Generic name of FX3UC Series PLCs
FX3UC PLC or main unit Generic name of FX3UC Series PLC main units
FX2N Series Generic name of FX2N Series PLCs
FX2NC Series Generic name of FX2NC Series PLCs
FX1S Series Generic name of FX1S Series PLCs
FX1N Series Generic name of FX1N Series PLCs
FX1NC Series Generic name of FX1NC Series PLCs
Generic name of expansion boards (The models shown below): FX3G-4EX-BD, FX3G-2EYT-BD, FX3G-232-BD, FX3G-422-BD, FX3G-485-BD, FX3G-485-BD-RJ, FX3G-2AD-BD, FX3G-1DA-BD, FX3G-8AV-BD, FX3U-232-BD, FX3U-422-BD, FX3U-485-BD, FX3U-USB-BD, FX3U-8AV-BD and FX3U-CNV-BD
Generic name of special high-speed I/O adapters, special communication adapters, CF card special analog adapters, and special analog adapters Connectable equipment may vary depending on the main unit. For connectable equipment, refer to the User’s Manual - Hardware Edition of the main unit.
Special high-speed I/O adapter Generic name of special high-speed I/O adapters (The models shown below): FX3U-2HSY-ADP and FX3U-4HSX-ADP
Special communication adapter Generic name of special communication adapters (The models shown below): FX3U-232ADP(-MB), FX3U-485ADP(-MB) and FX3U-ENET-ADP
CF card special adapter Generic name of CF card special adapters:
Generic name of special analog adapters (The models shown below): FX3U-4AD-ADP, FX3U-4DA-ADP, FX3U-3A-ADP, FX3U-4AD-PT-ADP, FX3U-4AD-PTW-ADP, FX3U-4AD-PNK-ADP and FX3U-4AD-TC-ADP
Connector conversion adapter Generic name of special adapter connection conversion adapter (The models shown below): FX3S-CNV-ADP and FX3G-CNV-ADP
Generic name of I/O extension equipment and special extension equipment Connectable equipment may vary depending on the main unit. For connectable equipment, refer to the User’s Manual - Hardware Edition of the main unit.
Generic name of FX2N Series I/O extension units, FX2N Series I/O extension blocks, FX2N Series I/O extension blocks, and FX0N Series I/O extension blocks Connectable equipment may vary depending on the main unit. For connectable equipment, refer to the User’s Manual - Hardware Edition of the main unit.
Generic name of special extension units and special function blocks Connectable equipment may vary depending on the main unit. For connectable equipment, refer to the User’s Manual - Hardware Edition of the main unit.
Special function unit/block or special extension equipment
Special extension unit Generic name of special extension units
Special function block Generic name of special function blocks
Open field networks CC-Link and CC-Link/LT
CC-Link equipment Generic name of CC-Link master station and CC-Link remote stations
CC-Link master (station) Generic name of CC-Link master station (having following model name): FX3U-16CCL-M, FX2N-16CCL-M
CC-Link remote station Generic name of remote I/O stations and remote device stations
CC-Link intelligent device station Generic name of CC-Link interface block (having following model name): FX3U-64CCL

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
Generic Names and Abbreviations Used in Manuals
CC-Link/LT equipment Generic name of CC-Link/LT master station, CC-Link/LT remote I/O stations, CC-Link/LT remote device stations, power supply adapters, and dedicated power supplies
CC-Link/LT master Generic name of built-in type CC-Link/LT master and (additional) CC-Link/LT master
Built-in type CC-Link/LT master Generic name of built-in type CC-Link/LT master built in FX3UC-32MT-LT(-2)
(Additional) CC-Link/LT master Generic name of CC-Link/LT master station (having following model name): FX2N-64CL-M
Power supply adapter Generic name of units connected to supply the power to the CC-Link/LT system
Dedicated power supply Generic name of power supplies connected to supply the power to the CC-Link/LT system
AS-i master Generic name of AS-i system master station (having following model name): FX2N-32ASI-M
MELSEC I/O LINK master Generic name of MELSEC I/O LINK master station (having following model name): FX2N-16LNK-M
Ethernet adapter Generic name of Ethernet communication special adapter (having following model name): FX3U-ENET-ADP
Extension power supply unit FX3UC-1PS-5V (for FX3GC, FX3UC series), FX3U-1PSU-5V (for FX3G, FX3U series)
Memory cassette FX3G-EEPROM-32L, FX3U-FLROM-16, FX3U-FLROM-64, FX3U-FLROM-64L, and FX3U-FLROM-1M
Battery FX3U-32BL
Peripheral equipment Generic name of programming software, handy programming panels, and display units
Programming tool Generic name of programming software and handy programming panels
Programming software Generic name of programming software
GX Works2 Abbreviation of programming software packages SW DNC-GXW2-J and SW DNC-GXW2-E
GX Developer Abbreviation of programming software packages SW D5C-GPPW-J and SW D5C-GPPW-E
FX-PCS/WIN(-E) Abbreviation of programming software packages FX-PCS/WIN and FX-PCS/WIN-E
Handy programming panel (HPP) Generic name of programming panels FX-30P, FX-20P(-E) and FX-10P(-E)
RS-232C/RS-422 converter FX-232AW, FX-232AWC, and FX-232AWC-H
RS-232C/RS-485 converter FX-485PC-IF-SET and FX-485PC-IF
GOT1000 Series Generic name of GT16, GT15, GT14, GT11 and GT10
GOT-900 Series Generic name of GOT-A900 and GOT-F900 Series
GOT-A900 Series Generic name of GOT-A900 Series
GOT-F900 Series Generic name of GOT-F900 Series
ET-940 Series Generic name of ET-940 Series
FX3S Hardware Edition FX3S Series User’s Manual - Hardware Edition
FX3G Hardware Edition FX3G Series User’s Manual - Hardware Edition
FX3GC Hardware Edition FX3GC Series User’s Manual - Hardware Edition
FX3U Hardware Edition FX3U Series User’s Manual - Hardware Edition
FX3UC Hardware Edition FX3UC Series User’s Manual - Hardware Edition
Programming Manual FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
Data Communication Edition FX Series User’s Manual - Data Communication Edition
MODBUS Communication Edition FX3S/FX3G/FX3GC/FX3U/FX3UC Series User’s Manual - MODBUS Serial Communication Edition
Analog Control Edition FX3S/FX3G/FX3GC/FX3U/FX3UC Series User’s Manual - Analog Control Edition
Positioning Control Edition FX3S/FX3G/FX3GC/FX3U/FX3UC Series User’s Manual - Positioning Edition
ENET-ADP Manual FX3U-ENET-ADP User’s Manual
CF-ADP Manual FX3U-CF-ADP User’s Manual
FX-30P Manual FX-30P Operation Manual

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
1. Introduction
This chapter explains basic items related to programming in FX3S, FX3G, FX3GC, FX3U and FX3UC programmable controllers (PLCs).
This section explains the features of programming in FX3S, FX3G, FX3GC, FX3U and FX3UC PLCs.
FX3S, FX3G, FX3GC, FX3U and FX3UC PLCs support the following six types of programming languages:
Step Instruction Device number
0001 OR Y005
0002 ANI X002
Specified the Device & Constant
2. Circuit programming
Y005
The above list program is expressed in
the circuit diagram.
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
1.1 Programming Language in PLCs
The table below shows the applicability of programming languages in GX Works2 and GX Developer:
List programming – 3
Circuit programming 3 3
SFC programming 3 3
Structured ladder/FBD 3 –
All sequence programs created by list programming, circuit programming or SFC programming are stored in the form of instruction words (contents at the time of list programming) in the program memory inside the PLC.
It is not possible to display or edit sequence programs created using ST, structured ladder or FBD programming by converting them from the form of instruction words (contents at the time of list programming). For displaying and editing such sequence programs using ST, structured ladder or FBD programming, the symbolic information (data indicating the program configuration such as structure and labels) is required.
→ Refer to the GX Works2 Version 1 Operating Manual (Common) for the details on symbolic information.
1 Introduction · List · Circuit SFC

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
2 Overview (Sequence Program)
2. Overview (Sequence Program)
This chapter explains the basic functions of FX3S/FX3G/FX3GC/FX3U/FX3UC PLCs. This chapter includes not only the features of PLCs but also introduction of representative functions, parameters and memory to utilize the functions of PLCs. Read this chapter before designing sequences.
FX3S/FX3G/FX3GC/FX3U/FX3UC PLCs have the following instruction functions.
High-speed counters can count regardless of the scan time because they process high-speed pulses from specific input relays as interrupts. The counting result can be immediately handled as high-speed counter output interrupts by specific program processing and high-speed counter counted values by comparison instructions dedicated to high-speed counters.
Specified the Device & Constant
*2. Can only be connected to the FX3U PLC.
If the number of high-speed counters is insufficient, FX3U-2HC can be connected.
By extending hardware counters in the FX3U-2HC*3, high-speed pulses at up to 200 kHz can be received (except 2 and 4 edge count).
*3. Can only be connected to the FX3U/FX3UC PLCs.
→ For details, refer to FX3U-2HC User's Manual.
Input relays in the main unit are equipped with a C-R filter of approximately 10 ms as countermeasures against
chattering and noise in input signals. Because a digital filter is adopted for the input relays X000 to X017*5, however, the filter value can be changed in sequence programs.
*4. This function is supported only for DC input type.
*5. X000 to X007 in the FX3G/FX3GC PLCs.
FNC10-FNC19 Move & Compare
The pulse catch function is provided as a method to receive short-time pulse signals. The pulse catch function monitors signals from specific input relays, and sets special auxiliary relays in the interrupt processing as soon as signals are input. The pulse catch function can be used in a wide range of applications because even narrow pulses can be easily received. When complicated operations should be processed with high priority as interrupt by using specific trigger signals, the "interrupt" function described later is suitable.
FNC20-FNC29 Arith. & Logic Operation
*6. This function is supported only for DC input type.
→ Refer to Section 36.7.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
2 Overview (Sequence Program)
2.1 Introduction of Convenient Functions
Signals from specific input relays are monitored. At the rising edge or falling edge of the monitored input, a specified interrupt routine is executed with highest priority.
Depending on the present value of a high-speed counter, a specified interrupt routine is executed with highest priority.
*1. This function is supported only for DC input type.
*2. This function is supported only in FX3U/FX3UC PLCs.
The pulse width or pulse period of pulses input from input terminals (X000, X001, X003 and X004) of the main unit can be measured in units of 10µs. The pulse width/pulse period measurement function is available in a wide range of applications because the pulse width or pulse period can be easily taken in accordance with the setting of special auxiliary relays. The input signal delay time can be measured using two or more input terminals.
→ Refer to Section 36.8.
*3. This function is supported only in FX3G/FX3GC PLCs.
Variable Speed Pulse Output PLSV (FNC157),
Drive to Increment DRVI (FNC158) and
Drive to Absolute DRVA (FNC159)
2.1.3 Functions for supporting sequence control

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
2 Overview (Sequence Program)
→ Refer to the manual of the used programming tool.
→ Refer to the manual of the used programming tool.
→ Refer to the manual of the used programming tool.
→ Refer to the GX Works2 Version 1 Operating Manual (Common) for the details on symbolic information.
1. Excellent fundamental performance FX3S/FX3G/FX3GC/FX3U/FX3UC PLCs are equipped with not only fundamental applied functions for data transfer, data comparison, arithmetic operations, logical operations, data rotation, and data shift but also high-speed processing instructions for I/O refresh, interrupt, comparison dedicated to high-speed counters, and high-speed pulse output as well as initial state instructions by which standard operations for machine control are made into packages in the SFC control. In this way, FX3S/FX3G/FX3GC/FX3U/FX3UC PLCs have the specifications offering fundamental functions, high- speed processing, and good operability.
Specified the Device & Constant
This subsection introduces representative ones among many applied instructions.
→ Refer to Chapter 8.
FNC10-FNC19 Move & Compare
→ Refer to Chapter 9, Chapter 13, Chapter 18,
Chapter 32.
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
2 Overview (Sequence Program)
2.2 Introduction of Applied Instructions
7. Handy instructions and instructions for external devices
→ Refer to Chapter 10, Chapter 12 and
Chapter 18.
→ Refer to Chapter 11.
Chapter 31 and Chapter 33.
→ Refer to Chapter 14, Chapter 16 and
Chapter 19.
Chapter 26 and Chapter 29.
→ Refer to Chapter 20. → Refer to the Positioning Control Manual.
→ Refer to Chapter 13.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
2 Overview (Sequence Program)
2.3 Analog/Positioning Special Control
For details, refer to the manual of each product.
FX3S/FX3G/FX3GC/FX3U/FX3UC PLCs support the following communication functions:
1. CC-Link The CC-Link system can be constructed with an FX3G/FX3GC/FX3U/FX3UC PLCs working as the master station. An A or QnA PLC can work as the master station, and FX PLCs can be connected as remote device stations. A Q PLC can work as the master station, and FX PLCs can be connected to remote device stations or intelligent device stations. The CC-Link is an open network allowing connection of not only FX PLCs but also inverters, AC servo systems, and sensors.
→ Refer to the Data Communication Edition.
Specified the Device & Constant
→ Refer to the Data Communication Edition.
→ Refer to the respective product manual.
Excel®.
→ Refer to the Data Communication Edition. → For MX Component and MX Sheet, refer to the
built-in type CC-Link/LT master. → Refer to the product manual for the
respective product manual.
FX2N-64CL-M.
→ Refer to the Data Communication Edition.
→ Refer to the respective product manual.
10.Inverter communication An FX PLCs can control up to eight inverters via communication in accordance with RS-485.
FNC10-FNC19 Move & Compare
→ Refer to the Data Communication Edition.
→ Refer to the respective product manual.
11.MODBUS communication MODBUS serial communication is available between an FX PLCs and interface equipment in accordance with RS-232C/RS-485.
→ Refer to the MODBUS Serial Communication
FNC20-FNC29 Arith. & Logic Operation
Edition.
→ Refer to the respective product manual.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
2 Overview (Sequence Program)
2.5 Introduction of Devices Constructing PLC
Many relays, timers, and counters are built into an FX3S/FX3G/FX3GC/FX3U/FX3UC PLCs, with many NO (normally open) contacts and NC (normally closed) contacts. These contacts and coils are connected to make a sequence circuit. A PLC is also equipped with data registers (D) and extension data registers (R) functioning as memory devices to store numeric data values.
Arrows show transfer of signals.
Input terminal or input connector
Input relay: X Input relays function as receiving ports when the PLC receives signals from external input switches. The assigned device mnemonic is "X". The PLC has built-in input relays in accordance with its size.
Counter: C There are many counters inside the PLC. The assigned device mnemonic is "C".
Auxiliary relay: M There are many auxiliary relays inside the PLC. The assigned device mnemonic is "M".
Output relay: Y Output relays function as ports when the PLC drives external loads. There are many output relays inside the PLC. The assigned device mnemonic is "Y".
Timer: T There are many timers inside the PLC. The assigned device mnemonic is "T".
State relay: S There are many state relays inside the PLC. The assigned device mnemonic is "S".
Contact for external output from output relay (one normally open contact) The PLC has built-in output contacts in accordance with its size.
Output terminal or output connector

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
2 Overview (Sequence Program)
→ Refer to Section 4.6. Counters are provided for internal signals of the PLC, and their response speed is usually tens of Hz or less. - 16-bit counter: Provided for up-counting, counting range: 1 to 32767 - 32-bit counter: Provided for up-counting and down-counting, counting range: −2,147,483,648 to +2,147,483,647
→ Refer to Section 4.7 or 4.8. High-speed counters can execute counting at several kHz regardless of operations in the PLC. - 32-bit counter: Provided for up-counting and down-counting, counting range: −2,147,483,648 to +2,147,483,647 (1- phase 1-counting, 1-phase 2-counting and 2-phase 2-counting), assigned to specific input relays
Specified the Device & Constant
6. Data registers (D) → Refer to Section 4.9. Data registers store numeric data values. All data registers in FX PLCs are 16-bit type (whose most significant bit is positive or negative). When two consecutive registers are combined, they can handle 32-bit numeric value (whose most significant bit is positive or negative). (For the numeric value range, refer to "Counter" on the previous page.) In the same way as other devices, data registers are classified into general type and latched type (battery or EEPROM backed).
→ Refer to Section 4.10. Extension registers (R) are the extended form of data registers (D). They are protected by the battery against power failure in FX3U/FX3UC PLCs. In FX3G/FX3GC PLCs, general type devices can be protected against power failure when the optional battery is connected. In FX3G/FX3GC/FX3U/FX3UC PLCs, the contents of extension registers (R) can be stored in extension file registers (ER). In FX3U/FX3UC PLCs, extension file registers (ER) can only be used while a memory cassette is mounted.
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
2 Overview (Sequence Program)
2.5 Introduction of Devices Constructing PLC
10.Constants (K)(H)(E) → Refer to Chapter 5. Constant numerical values used in the PLC, "K" indicates a decimal integer value, "H" indicates a hexadecimal value, and "E" indicates a real number (floating point data). Constants are used as set values or present values of timers and counters, or operands for applied instructions.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
2 Overview (Sequence Program)
2.6 Program Memory and Devices
Built-in device memory (RAM, EEPROM)
Contact image memory · Input relay (X) · Output relay (Y) · Auxiliary relay (M) · State relay (S) Timer contact, time counting coil, and reset coil (T) Counter contact, counting coil, and reset coil (C)
· Data register (D) · Timer present value register (T)
Counter present value register (C) Index register (V, Z)
Specified the Device & Constant
Built-in device memory (RAM, EEPROM)
[Bit device memory] [Data memory]
Contact image memory · Input relay (X) · Output relay (Y) · Auxiliary relay (M) · State relay (S) Timer contact, time counting coil, and reset coil (T) Counter contact, counting coil, and reset coil (C)
· Data register (D) · Timer present value register (T) · Counter present value register (C) · Index register (V, Z)
(EEPROM)
The PLC automatically recognizes attachment of a memory cassette (when the power is turned ON), and disconnects the built-on program memory. (The priority is given to the memory cassette.)
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
2 Overview (Sequence Program)
2.6 Program Memory and Devices

Contact image memory · Input relay (X) · Output relay (Y) · Auxiliary relay (M) · State relay (S) Timer contact, time counting coil, and reset coil (T) Counter contact, counting coil, and reset coil (C) · Extension register (R)
· Data register (D) · Timer present value register (T) · Counter present value register (C) · Index register (V, Z)
Built-in device memory (RAM, EEPROM)
[Bit device memory] [Data memory]
Contact image memory · Input relay (X) · Output relay (Y) · Auxiliary relay (M) · State relay (S) Timer contact, time counting coil, and reset coil (T) Counter contact, counting coil, and reset coil (C)
· Data register (D) · Timer present value register (T) · Counter present value register (C) · Index register (V, Z)
· Extension register (R)
Transfer and initialization by instructions
(EEPROM)
The PLC automatically recognizes attachment of a memory cassette (when the power is turned ON), and disconnects the built-on program memory. (The priority is given to the memory cassette.)
Extension file register (ER)
*1. A memory cassette can be connected only to FX3G PLC.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
2 Overview (Sequence Program)
Built-in device memory (RAM)
Contact image memory · Input relay (X) · Output relay (Y) · Auxiliary relay (M) · State relay (S) Timer contact, time counting coil, and reset coil (T) Counter contact, counting coil, and reset coil (C) · Extension register (R)
· Data register (D) · Timer present value register (T) · Counter present value register (C) · Index register (V, Z)
Specified the Device & Constant
Built-in device memory (RAM)
[Bit device memory] [Data memory]
· Data register (D) · Timer present value register (T) · Counter present value register (C) · Index register (V, Z)
Contact image memory · Input relay (X) · Output relay (Y) · Auxiliary relay (M) · State relay (S) Timer contact, time counting coil, and reset coil (T) Counter contact, counting coil, and reset coil (C)
· Extension register (R)
Transfer and initialization by instructions
FNC10-FNC19 Move & Compare
The PLC automatically recognizes attachment of a memory cassette (when the power is turned ON), and disconnects the built-on program memory. (Priority is given to the memory cassette.)
Extension file register (ER)
*1. Supported in Ver. 3.00 or later.
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
2 Overview (Sequence Program)
2.6 Program Memory and Devices
2.6.2 Memory operations and latched (battery or EEPROM backed) devices (power ON/OFF and RUN/STOP)
Item Power OFF Power OFF→ON STOP→RUN RUN→STOP
Parameter Does not change.*2
Sequence program Does not change.*2
Does not change.*2
Can be secured by parameter setting.
File register Does not change.*2
Special setting Does not change.*2
Symbolic information*1 Does not change.*2
*1. Symbolic information is supported in the FX3U/FX3UC PLCs Ver. 3.00 or later.
*2. The contents of the program memory and device values are not backed up correctly in FX3U/FX3UC PLCs when the battery voltage becomes lower than the holding voltage if a memory cassette is not attached.
Item Power OFF Power OFF→ON STOP→RUN RUN→STOP
Does not change. Cleared.
General type Cleared.
Does not change while M8033 is ON.
Latched (EEPROM backed) type Does not change.
File type Does not change.
Special type Cleared. Set to initial
values.*3 Does not change.*3
Index register (V, Z) V, Z Cleared. Does not change.
Does not change. Cleared.
For 100 ms Cleared.
Does not change while M8033 is ON.
Does not change. Cleared.
For 10 ms Cleared.
Does not change while M8033 is ON.
Timer present value register (T)
Does not change. Cleared.
For 1 ms Cleared.
Does not change while M8033 is ON.
Retentive type for 100 ms (EEPROM backed) Does not change.
Retentive type for 1 ms (EEPROM backed) Does not change.
Does not change. Cleared.
General type Cleared.
Does not change while M8033 is ON.
Counter present value register (C)
Latched (EEPROM backed) type Does not change.
High-speed type (EEPROM backed) Does not change.
Clock data Present value Does not change.*4
*3. Some devices are cleared when the PLC status switches from STOP to RUN.
→ For special data registers, refer to Chapter 37. *4. The clock data is held by the electricity charged in the large-capacity capacitor built in the PLC. When the voltage of the large-capacity capacitor becomes low, the clock data is not held correctly. The capacitor can hold the clock data for 10 days (when the ambient temperature is 25°C) in the full charge state (achieved by powering ON the PLC for 30 minutes or more).
Comment · Data register (D)

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
2 Overview (Sequence Program)
b) FX3G/FX3GC PLCs
Item Power OFF Power OFF→ON STOP→RUN RUN→STOP
General type Cleared.*1 Does not change. Cleared.
Does not change while M8033 is ON.
Latched (EEPROM backed) type Does not change.
File type Does not change.
Special type Cleared. Set to initial
values.*2 Does not change.*2
Extension register (R) General type Cleared.*1 Does not change.
Extension file register (ER) File type Does not change.
Index register (V, Z) V, Z Cleared. Does not change.
Does not change. Cleared.
For 100 ms Cleared.
Does not change while M8033 is ON.
Does not change. Cleared.
For 10 ms Cleared.
Does not change while M8033 is ON.
Timer present value register (T)
Does not change. Cleared.
For 1 ms Cleared.
Does not change while M8033 is ON.
Retentive type for 100 ms (EEPROM backed) Does not change.
Retentive type for 1 ms (EEPROM backed) Does not change.
Does not change. Cleared.
General type Cleared.
Does not change while M8033 is ON.
Specified the Device & Constant
Counter present value register (C)
Latched (EEPROM backed) type Does not change.
High-speed type (EEPROM backed) Does not change.
Clock data Present value Does not change.*3
*1. These registers can be changed from the general type to the latched (battery backed) type by the parameter setting when the optional battery is installed. *2. Some devices are cleared when the PLC status switches from STOP to RUN.
→ For special data registers, refer to Chapter 37. *3. The clock data is held by the electricity charged in the large-capacity capacitor built in the PLC. When the voltage of the large-capacity capacitor becomes low, the clock data is not held correctly. The capacitor can hold the clock data for 10 days (when the ambient temperature is 25°C) in the full charge state (achieved by powering ON the PLC for 30 minutes or more). The clock data is backed up by the battery when the optional battery is installed and the battery mode is selected in the parameter setting.
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
2 Overview (Sequence Program)
2.6 Program Memory and Devices
c) FX3U/FX3UC PLCs
Item Power OFF Power OFF→ON STOP→RUN RUN→STOP
Does not change. Cleared.
General type Cleared.
Does not change while M8033 is ON.
Latched (battery backed) type Does not change.*1
File type Does not change.*2
Special type Cleared. Set to initial
values.*3 Does not change.*3
Extension register (R) Latched (battery backed) type Does not change.*1
(ER)*4 File type Does not change.
Index register (V, Z) V, Z Cleared. Does not change.
Does not change. Cleared.
For 100 ms Cleared.
Does not change while M8033 is ON.
Does not change. Cleared.
For 10 ms Cleared.
Timer present value register (T)
Does not change while M8033 is ON.
Retentive type for 100 ms (battery backed) Does not change.*1
Retentive type for 1 ms (battery backed) Does not change.*1
Does not change. Cleared.
General type Cleared.
Does not change while M8033 is ON.
Counter present value register (C)
Latched (battery backed) type Does not change.*1
High-speed type (battery backed) Does not change.*1
Clock data Present value Does not change.*1
*1. Device values are not backed up correctly when the battery voltage becomes lower than the holding voltage. *2. The contents of the program memory and device values are not backed up correctly when the battery voltage becomes lower than the holding voltage if a memory cassette is not attached. *3. Some devices are cleared when the PLC status switches from STOP to RUN.
→ For special data registers, refer to Chapter 37. *4. An optional memory cassette is required.
Programs (when a memory cassette is not attached), latched (battery backed) type device values and clock data is not backed up correctly when the battery voltage becomes low due to expiration of the battery life or another reason. In such a case, clear latched (battery backed) type devices, transfer programs again (when a memory cassette is not attached), and then set initial values and clock data if necessary.
→ For a rough guide to the life and replacement of the battery, refer to the PLC User’s Manual
[Hardware Edition]. → For the latched type device initialization method, refer to Subsection 2.6.5.
Data register (D) · Extension file register

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
2 Overview (Sequence Program)
Item Power OFF Power OFF→ON STOP→RUN RUN→STOP
change. Cleared.
Input relay (X) Cleared.
Does not change while M8033 is
ON.
change. Cleared.
Output relay (Y) Cleared.
Does not change while M8033 is
ON.
Contact image memory (X, Y, M, S)
change. Cleared.
General type auxiliary relay (M) Cleared.
Does not change while M8033 is
ON.
Latched (EEPROM backed) type auxiliary relay (M) Does not change.
Special type auxiliary relay (M) Cleared. Set to initial
values.*1 Does not change.*1
General type state relay (S) Cleared. Does not change.
Latched (EEPROM backed) type state relay (S) Does not change.
change. Cleared.
For 100 ms Cleared.
Does not change while M8033 is
Specified the Device & Constant
ON.
change. Cleared.
For 10 ms Cleared.
Timer contact Time counting coil Reset coil (T)
Does not change while M8033 is
ON.
change. Cleared.
For 1 ms Cleared.
Does not change while M8033 is
ON.
Retentive type for 100 ms Does not change.
Retentive type for 1 ms Does not change.
change. Cleared.
General type Cleared.
Counter contact Counting coil Reset coil (C)
Does not change while M8033 is
ON.
Latched (EEPROM backed) type Does not change.
High-speed type Does not change.
*1. Some devices are cleared when the PLC status switches from STOP to RUN.
→ For special data registers, refer to Chapter 37.
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
2 Overview (Sequence Program)
2.6 Program Memory and Devices
b) FX3G/FX3GC PLCs
Item Power OFF Power OFF→ON STOP→RUN RUN→STOP
change. Cleared.
Input relay (X) Cleared.
Does not change while M8033 is
ON.
change. Cleared.
Output relay (Y) Cleared.
Does not change while M8033 is
ON.
change. Cleared.
Contact image memory (X, Y, M, S)
General type auxiliary relay (M) Cleared.*1
Does not change while M8033 is
ON.
Latched (EEPROM backed) type auxiliary relay (M) Does not change.
Special type auxiliary relay (M) Cleared. Set to initial
values.*2 Does not change.*2
General type state relay (S) Cleared.*1 Does not change.
Latched (EEPROM backed) type state relay (S) Does not change.
Annunciator (S) Does not change.
change. Cleared.
For 100 ms Cleared.
Does not change while M8033 is
ON.
change. Cleared.
For 10 ms Cleared.
Timer contact Time counting coil Reset coil (T)
Does not change while M8033 is
ON.
change. Cleared.
For 1 ms Cleared.
Does not change while M8033 is
ON.
Retentive type for 100 ms Does not change.
Retentive type for 1 ms Does not change.
change. Cleared.
Counter contact Counting coil Reset coil (C)
General type Cleared.
Does not change while M8033 is
ON.
Latched (EEPROM backed) type Does not change.
High-speed type Does not change.
*1. These registers can be changed from the general type to the latched (battery backed) type by the parameter setting when the optional battery is installed.
*2. Some devices are cleared when the PLC status switches from STOP to RUN.
→ For special data registers, refer to Chapter 37.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
2 Overview (Sequence Program)
c) FX3U/FX3UC PLCs
Item Power OFF Power OFF→ON STOP→RUN RUN→STOP
change. Cleared.
Input relay (X) Cleared.
Does not change while M8033 is
ON.
change. Cleared.
Output relay (Y) Cleared.
Does not change while M8033 is
ON.
change. Cleared.
General type auxiliary relay (M) Cleared.
Does not change while M8033 is
Contact image memory (X, Y, M, S)
ON.
Latched (battery backed) type auxiliary relay (M) Does not change.
Special type auxiliary relay (M) Cleared. Set to initial
values.*1 Does not change.*1
change. Cleared.
General type state relay (S) Cleared.
Does not change while M8033 is
ON.
Latched (battery backed) type state relay (S) Does not change.
Annunciator (S) Does not change.
Specified the Device & Constant
change. Cleared.
For 100 ms Cleared.
Does not change while M8033 is
ON.
Timer contact Time counting coil Reset coil (T)
change. Cleared.
For 10 ms Cleared.
Does not change while M8033 is
ON.
Retentive type for 100 ms Does not change.
Retentive type for 1 ms Does not change.
change. Cleared.
General type Cleared.
Counter contact Counting coil Reset coil (C)
Does not change while M8033 is
ON.
Latched (battery backed) type Does not change.
High-speed type Does not change.
*1. Some devices are cleared when the PLC status switches from STOP to RUN.
→ For special auxiliary relay names and definitions, refer to Chapter 37.
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
2 Overview (Sequence Program)
2.6 Program Memory and Devices
There are the following types of latch (battery backup) for the program memory and built-in PLC devices.
Latched contents The optional battery backs up the RAM memory built in the PLC and clock data.
Maintenance The battery life is around 5 years, (when the ambient temperature is 25°C). For replacement information, refer to the Users Manual [Hardware Edition] of each PLC.
b) FX3U/FX3UC PLCs
Latched contents The battery backs up the RAM memory built in the PLC, latched (battery backed) type devices and clock data.
Maintenance The battery life is around 5 years, (when the ambient temperature is 25°C). For replacement information, refer to the Users Manual [Hardware Edition] of each PLC.
Latched contents The EEPROM memory built in the memory cassette backs up sequence programs.
Maintenance Maintenance is not necessary.
b) FX3U/FX3UC PLCs
Latched contents 1) The flash memory built into the memory cassette backs up sequence programs. 2) A battery is required to back up latched (battery backed) devices and clock data from failure.
Maintenance Maintenance is not necessary.
Latched contents The EEPROM memory built in the PLC backs up latched (EEPROM backed) type devices and sequence programs.
Maintenance Maintenance is not necessary.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
2 Overview (Sequence Program)
Latched type devices can be initialized by clearing the entire PLC memory using peripheral equipment, clearing all latched memory using the special auxiliary relay M8032, or executing the ZRST instruction. This subsection describes two major methods.
When M8032 is turned ON, all latched type devices*1 (including reset coils of timers and counters) are cleared. M8032 can be turned ON and OFF using the forced ON/OFF operation from peripheral equipment or within the sequence program. Note that latched type devices cannot be turned ON while M8032 is ON. When turning ON M8032 within the sequence program, note that latched type devices are cleared during END processing after M8032 is turned ON. Program example: This program clears all latched type devices.
Specified the Device & Constant
M8032
→ For details, refer to Subsection 37.2.12.
*1. Includes general type devices in FX3G/FX3GC PLCs whose type is changed to the latched (battery backed) type when the optional battery is installed.
ZRST M7679
Latched (battery backed) type device range
ZRST S4095
T246 FNC 40
ZRST T255
C100 FNC 40
ZRST C199
C220 FNC 40
ZRST C255
FNC10-FNC19 Move & Compare
ZRST D7999
→ For details on the ZRST (FNC 40) instruction, refer to Section 12.1. → For details on latched type devices, refer to Subsection 2.6.2 and Chapter 4.
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
2 Overview (Sequence Program)
2.7 Types and Setting of Parameters
Setting of parameters means setting the environment where the PLC operates. Almost all FX PLC can be used with factory default values. However, when it is necessary to attach a memory cassette, set the comment capacity, set the communication condition for serial ports, etc., the parameter settings must be changed using a programming tool such as personal computer. Some items cannot be set depending on the used PLC or programming tool. Refer to the manual of the used PLC and programming tool for details.
The following items may be set in the parameter settings.
This parameter specifies the maximum value for the number of steps to which a sequence program can be input. 1) The upper limit is determined by the capacity of the built-in memory or optional memory. 2) The program memory, file register, comment area, and other special setting capacities are contained in this memory capacity.
This parameter incorporates comments into the program memory. 1) Because comments remain in the PLC, the contents can be easily understood at the time of maintenance. 2) Up to 50 comments can be input when one block is specified, but the comment area requires 500 steps in the memory capacity.
This parameter incorporates data registers into the program memory. 1) A sequence program and control data such as machining set values can be handled together, which is convenient. 2) Up to 500 file registers can be created when one block is specified, but the file registers require 500 steps in the memory capacity.
1) This parameter sets whether or not the special unit/block initial value setting function is used. When this function is used, this function requires 4000 steps (8 blocks) in the memory capacity. 2) This parameter sets whether or not the positioning setting (constants and setting table) in TBL (FNC152) instruction is used. When this setting is used, this setting requires 9000 steps (18 blocks) in the memory capacity. 3) This parameter sets whether or not the built-in CC-Link/LT function is used. When this function is used, this function requires 500 steps (1 block) in the memory capacity.
Other special setting capacity
Device setting Latch range setting
This parameter enables to change the latched (battery backed) device range and the non-latch device range inside the PLC.
This setting is not written to the PLC. When the I/O range is set according to the system configuration, however, inputs and outputs are checked by the program check in GX Developer.
This parameter sets the initial values of the buffer memory (BFM) for each special unit/block number. It is necessary to set the memory capacity.
This parameter sets the transmission speed, point mode and station information. The memory capacity setting is required to set the station information.
This parameter sets the PLC operation mode without a battery. When the baterryless mode is set, detection of battery voltage low level error is stopped automatically, and consequently, contents of latched devices becomes inconsistent and are initialized automatically.
This parameter sets the PLC operation mode with a battery. When the check box "Use Battery" is checked, general type devices are changed to latched (battery backed) type devices.
This parameter automatically sends a specified AT command as an initialization command to a modem connected to the serial port.
RUN terminal input setting This parameter sets whether one input terminal in the PLC is used for RUN input.
RUN terminal input number
This parameter specifies the input number of the RUN input described above. X000 to X017 (Up to the built-in input number of main unit)

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
2 Overview (Sequence Program)
This parameter sets the communication setting of the serial port.
Serial port operation setting
Setting of communication format (D8120, D8400 and D8420) Setting of station number (D8121 and D8421) Setting of timeout check (D8129, D8409 and D8429)
This parameter sets interrupt inputs for the maximum speed, bias speed, creep speed, zero return speed, acceleration time, deceleration time, and the DVIT instruction. It is necessary to set the memory capacity.
Detailed setting This parameter sets the operation table. It is necessary to set the memory capacity.
Ethernet port setting Special parameters are used in special adapters, special function blocks, etc. They are stored in the main unit. Network parameter
This parameter sets protection to prevent erroneous read/incorrect write protection of a sequence program. The entry code (8 characters), 2nd entry code (8 characters) and the customer keyword (16 characters) can each be specified in characters in the ranges of A to F and 0 to 9. In addition, a permanent PLC lock can be specified.
Program title This parameter enables a character string to be set as the program title.
Item GX Works2 Initial value
Programming tool Display unit
Specified the Device & Constant
Program capacity (steps) 4000 4000 4000
Refer to Subsection 2.7.3.
Comment capacity (blocks) 24 0 –
File register capacity (blocks) 0 0 0
Program title Not registered
Entry code Not registered Not registered –
Refer to Subsection 2.7.1.
Modem initialization Not set NONE –
RUN terminal input OFF INVALID OFF
Serial port operation setting Not set No –
*1. Parameter values can not be changed by the GT1020 and GT1030.
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
2 Overview (Sequence Program)
2.7 Types and Setting of Parameters
Programming tool Display unit
Item GX Works2 Initial value
FX-PCS/
GOT 1000 *3
GOT-F900
FX-30P
FX-20P
WIN(-E) *2
(-E) *2
Program capacity (steps) 8000 8000
8000 2000 8000 8000 8000
Comment capacity (blocks) 0 – –
File register capacity (blocks) 0
Positioning instruction setting Not used Not used –
Program title Not registered
– – Not registered – –
Entry code Not registered
Not registered – –
Battery mode OFF OFF No – OFF – –
Modem initialization Not set Not set NONE – Not set – –
RUN terminal input OFF OFF INVALID Not used Not used
Serial port operation setting Not set Not set No – Not set – –
*1. In the case of FX3GC PLC, select "FX3G" as the PLC type.
*2. These programming tools are not applicable to FX3G/FX3GC PLCs. The initial values in FX1N PLC are shown above.
*3. Parameter values can not be changed by the GT1020 and GT1030.
*4. Parameter values can be changed only by the F940WGOT, F94 GOT and F94 handy GOT.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
2 Overview (Sequence Program)
Programming tool Display unit
GX Developer Initial value
Item GX Works2 Initial value
FX-PCS/
GOT 1000 *3
GOT-F900
FX-30P
WIN(-E)
FX-20P
(-E) *2
Program capacity (steps) 16000 16000*1
8000 2000 8000 16000 8000
Comment capacity (blocks) 0 – –
File register capacity (blocks) 0
value setting*5 Not used Not used –
setting*5 Not used Not used –
Setup*6 Not used Not used –
Auxiliary relay [M] 500 to 1023 500 to 1023 0 to 1023 500 to 1023
Latch range (battery backed)
State relay [S] 500 to 999 500 to 999 0 to 999 500 to 999
Counter [C] (16 bits) 100 to 199 100 to 199 0 to 199 100 to 199
Counter [C] (32 bits) 220 to 255 220 to 255 200 to 255 220 to 255
Data register [D] 200 to 511 200 to 511 0 to 511 200 to 511
Program title Not registered
– – Not registered – –
Specified the Device & Constant
Entry code Not registered
Not registered – –
Batteryless mode OFF OFF No – OFF – –
Modem initialization Not set Not set NONE – Not set – –
RUN terminal input OFF OFF INVALID Not used Not used
Serial port operation setting Not set Not set No – Not set – –
*1. The initial value is 8000 steps in GX Developer Ver. 8.18U to Ver. 8.22Y.
*2. These programming tools are not applicable to FX3U/FX3UC PLCs. The initial values in FX2N PLC are shown above.
*3. Parameter values can not be changed by the GT1020 and GT1030.
*4. Parameter values can be changed only by the F940WGOT, F94 GOT and F94 handy GOT.
*5. GX Developer Ver. 8.24A or later is applicable.
*6. This item is supported only in the FX3UC-32MT-LT-2, and can be set using GX Developer Ver. 8.68W or later.
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
2 Overview (Sequence Program)
2.7 Types and Setting of Parameters
~ Built-in memory capacity 3 Can be set by changing parameter
File register capacity setting
2000 3 0 to 3 0 to 3
4000 3 0 to 7 0 to 4
16000 ~ 20 to 24 0 to 4
When the memory capacity of the FX3S is 16,000 steps, the program capacity is fixed to 4,000 steps, and the total of the comment capacity and the file register capacity is limited to 12,000 steps (24 blocks). The comment capacity is automatically set when the file register capacity is set.
~ Built-in memory capacity 3 Can be set by changing parameter
File register capacity setting
2000 3 0 to 3 0 to 3 –
4000 3 0 to 7 0 to 7 –
8000 3 0 to 15 0 to 14 –
16000 3 0 to 31 0 to 14 18
32000 ~ 0 to 63 0 to 14 18
FX3G/FX3GC PLCs operate in the extension mode when the program capacity is 16,001 steps or more, and operate in the standard mode when the program capacity is 16,000 steps or less. The instruction execution time is longer in the extension mode than in the standard mode.
Example: Time required to execute the basic instruction "LD" Standard mode: 0.21 µs Extension mode: 0.42 µs

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
2 Overview (Sequence Program)
~ Built-in memory capacity 3 Can be set by changing parameter
File register capacity setting
2000 3 0 to 3 0 to 3 – – 1
4000 3 0 to 7 0 to 7 – – 1
8000 3 0 to 15 0 to 14 8 – 1
16000 3 0 to 31 0 to 14 8 18 1
32000 3 0 to 63 0 to 14 8 18 1
64000 ~ 0 to 127 0 to 14 8 18 1
Symbolic information capacity = Maximum capacity of memory cassette - Memory capacity set by parameters
It is possible to check the symbolic information capacity using the memory capacity calculation (offline) of GX Works2.
→ Refer to the GX Works2 Version 1 Operating Manual (Common) for details.
Specified the Device & Constant
1. FX 3S /FX 3G PLCs
Model name Maximum number of
steps Memory type Allowable number of
times of writing Remarks
memory 10000 times Write-protect switch and loader function are provided.
*1. The FX3S Series PLC can hold 16,000 steps of memory, but user program capacity is limited to 4,000 steps.
Model name Maximum number of
steps Memory type Allowable number of
times of writing Remarks
FX3U-FLROM-64 64000 Flash memory 10000 times Write-protect switch is provided.
FX3U-FLROM-16*2 16000 Flash memory 10000 times Write-protect switch is provided.
FX3U-FLROM-64L*2 64000 Flash memory 10000 times Write-protect switch and loader function are provided.
FX3U-FLROM-1M*3 64000 Flash memory 10000 times Write-protect switch and there is an area (1300 kB) dedicated to the storage of symbolic information.
*2. Can be used with FX3UC PLCs Ver. 2.20 or later.
*3. Ver. 3.00 or later is applicable.
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
2 Overview (Sequence Program)
2.7 Types and Setting of Parameters
By registering the entry code in a PLC, the functions of programming tools, display modules, and display units to change programs, monitor devices, and the current value changing function in the PLC can be restricted (access restriction).
→ For the operations and restricted functions of display modules,
refer to the PLC main unit Hardware Edition. → For the operations and restricted functions of display units,
refer to the respective display unit manual.
Registered entry code Entered entry code Change Cancel Disable Outline
PLC lock – The permanent PLC lock cannot be changed, canceled or reset.
Entry code Entry code 3 3 3 The entry code can be changed, canceled and reset.
Entry code + Second entry
Entry code + Second entry code 3 3 3 The entry code and second entry code can be changed, canceled and reset.
Entry code + Second entry
Entry code + Second entry code 3 3 3 The entry code, second entry code and customer entry code can be changed, canceled and reset.
Customer keyword – – 3 The entry code can be reset.
Applicable PLC GX Works2
(-E) FX-20P
FX-PCS /WIN(-E)
F900 FX-30P
(-E)
FX3S/FX3G/FX3GC (From first product)
Permanent PLC lock – –
Ver. 1.08J
Ver. 8.72A
Not applicable Applicable Not applicable
FX3U/FX3UC (Ver. 2.61 or later)
Entry code 0 to 9 and A to F 8 FX3S/FX3G/FX3GC/
Ver. 1.08J
Ver. 2.00A
FX3U/FX3UC (From first product)
FX3S/FX3G/FX3GC (From first product)
8 (16 total including entry code)
0 to 9 and A to F
Ver. 1.08J
Ver. 8.24A
or later Applicable Not applicable Applicable Not applicable
FX3U/FX3UC (Ver. 2.20 or later)
FX3S/FX3G/FX3GC (From first product)
0 to 9 and A to F 16
Ver. 1.08J
Ver. 8.72A
or later Applicable Not applicable Applicable Not applicable
FX3U/FX3UC (Ver. 2.61 or later)
The security provided by the entry code, second entry code and customer keyword is limited, and is not always perfect.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
2 Overview (Sequence Program)
Setting status Peripheral equipment and access restriction
The programming tool performs the following operations in accordance with the selected registration condition: Once the permanent PLC lock is set, it cannot be reset. To reset the permanent PLC lock or write programs again to the PLC, all-clear the PLC memory.
When the permanent PLC lock is selected
Write prohibited 3 – 3 3
Read and write prohibited – – 3 3
All online operations prohibited –
The programming tool performs the following operations in accordance with the selected registration condition: It is not possible to cancel the entry code using the customer keyword.
When the customer keyword is set
Write prohibited 3 – 3 3
Read and write prohibited – – 3 3
All online operations prohibited –
The programming tool performs the following operations in accordance with the selected registration condition:
When both the entry code and second entry code are set
Write prohibited 3 – 3 3
Read and write prohibited – – 3 3
Specified the Device & Constant
All online operations prohibited –
All operations prohibited A,D to F,0 to 9 –
When only the entry code is set
Read/Incorrect write protection B – – 3 3
Erroneous write prohibited C 3 – 3 3
When no entry code is set All operations are enabled.
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
2 Overview (Sequence Program)
2.7 Types and Setting of Parameters
This section explains the operating procedure of GX Works2, GX Developer.
→ For the entry code registration/change procedure in FX-10P(-E), FX-20P(-E), FX-30P,
and FX-PCS/WIN(-E), refer to the manual of each product.

Set item Contents of setting Remarks
When "Permanent PLC lock" is selected, it cannot be reset. To reset the permanent PLC lock or write programs again to the PLC, all-clear the PLC memory. To use two keywords, select "Keyword Protection(16 digits)".
Keyword(16 digits) Input 16 characters. Available characters are A to F and 0 to 9.
Set 8 characters in the first field, and set 8 characters in the second field.
Keyword(8 digits) Input 8 characters. Available characters are A to F and 0 to 9. Set 8 characters in the first field.
Retype Keyword Set the same keyword. This input is required for confirmation.
Put a check mark in the check box "Customer keyword is used(16 digits)". Set 8 characters in the former area, and set 8 characters in the latter area.
Customer Keyword Input 16 characters. Available characters are A to F and 0 to 9.
Retype Keyword Set a same keyword. This input is required for confirmation.
To select "Protection Level", set "Keyword Protection(16 digits)" or "Permanent PLC Lock" in "Function Selection".
Function Selection · Keyword Input · Protection Level

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
2 Overview (Sequence Program)

Set item Contents of setting Remarks
When "Permanent PLC lock" is selected, it cannot be reset. To reset the permanent PLC lock or write programs again to the PLC, all-clear the PLC memory.
Keyword Input 8 characters. Available characters are A to F and 0 to 9. -
2nd Keyword Input 8 characters. Available characters are A to F and 0 to 9.
Before setting the second entry code, set the entry code first.
Customer keyword Input 16 characters. Available characters are A to F and 0 to 9.
Before setting the customer keyword, set the entry code and second entry code first.
Specified the Device & Constant
Before setting the protection level, set the second entry code or select "Permanent PLC lock" in "Function selection".
The entry codes are provided to restrict access from peripheral equipment to programs created by the users. Keep the entry codes carefully. If a registered entry codes is forgotten, the online operations from a programming tool to the PLC are disabled depending on the programming tool type and the contents of the registered entry code.

FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
2 Overview (Sequence Program)
2.7 Types and Setting of Parameters

When "Permanent PLC Lock" is selected, however, the following dialog box appears when the [Execute] button is clicked. Click the [OK] button to register protection to the PLC.


FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
2 Overview (Sequence Program)
This section explains the operating procedure of GX Works2, GX Developer.
→ For the program reading/writing procedure in FX-10P(-E), FX-20P(-E), FX-30P, and FX-PCS/WIN(-E),
refer to the manual of each product.

Set item Contents of setting Remarks
Enter only the first 8 digits when "Keyword Protection (8 digits)" is registered. When the customer keyword is set, 16 characters for the customer keyword are available.
Keyword Input 16 characters. Available characters are A to F and 0 to 9.
Specified the Device & Constant

Set item Contents of setting Remarks
Keyword Input 8 characters. Available characters are A to F and 0 to 9.
When cancelling the keyword using the customer keyword instead of entering the keyword, enter the former 8 characters of the customer keyword.
2nd Keyword Input 8 characters. Available characters are A to F and 0 to 9.
When cancelling the 2nd keyword using the customer keyword instead of entering the 2nd keyword, enter the latter 8 characters of the customer keyword.
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
2 Overview (Sequence Program)
2.7 Types and Setting of Parameters
This section explains the operating procedure of GX Works2, GX Developer.
→ For the entry code canceling (deletion) procedure in FX-10P(-E), FX-20P(-E), FX-30P, and FX-PCS/WIN(-E),
refer to the manual of each product.

Set item Contents of setting Remarks
Keyword Input 16 characters. Available characters are A to F and 0 to 9.
Enter only the first 8 digits when "Keyword Protection (8 digits)" is registered. It is not possible to cancel the keyword using the customer keyword.

Set item Contents of setting Remarks
Keyword Input 8 characters. Available characters are A to F and 0 to 9.
It is not possible to cancel the keyword using the customer keyword. 2nd Keyword Input 8 characters. Available characters are A to F and 0 to 9.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
2 Overview (Sequence Program)
This section explains the operating procedure of GX Works2, GX Developer.
→ For the entry code reset procedure in FX-10P(-E), FX-20P(-E), FX-30P, and FX-PCS/WIN(-E),
refer to the manual of each product.

Set item Contents of setting Remarks
Specified the Device & Constant
Enter only the first 8 digits when "Keyword Protection (8 digits)" is registered. When cancelling the keyword using the customer keyword instead of entering the keyword, enter the former 8 characters of the customer keyword.
Keyword Disable Keyword Input 16 characters. Available characters are A to F and 0 to 9.
Keyword Protect Reset entry codes are made valid again. -

Set item Contents of setting Remarks
When the customer keyword is set in the FX3S/ FX3G/FX3GC/FX3U/FX3UC PLCs, its former 8 characters are available.
Keyword Input 8 characters. Available characters are A to F and 0 to 9.
When the customer keyword is set in the FX3S/ FX3G/FX3GC/FX3U/FX3UC PLCs, its latter 8 characters are available.
FNC10-FNC19 Move & Compare
2nd Keyword Input 8 characters. Available characters are A to F and 0 to 9.
Keyword Protect Reset entry codes are made valid again. -
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
2 Overview (Sequence Program)
2.7 Types and Setting of Parameters
The initial values of the buffer memory (BFM) in special function units/blocks connected to an FX3UC PLC Ver.2.20 or later and FX3U PLC can be set as a parameter in GX Works2 or GX Developer. When this parameter is used, it is not necessary to execute initial setting in a user program for special function units/ blocks requiring initial setting. The special unit initial value setting uses 4000 steps (8 blocks) in the memory capacity.
→ For the setting procedure, refer to Subsection 2.7.9. → For GX Developer, refer to the GX Developer Version 8 Operating Manual.
In the positioning instruction setting available in all FX3UC PLC Ver. 2.20 or later and FX3G/FX3GC/FX3U PLCs, constants can be set in the table for the TBL (FNC152) instruction. Make sure to set this parameter when using TBL (FNC152) instruction. The positioning instruction setting for TBL (FNC152) instruction uses 9000 steps (18 blocks) in the memory capacity.
→ For details on TBL (FNC152) instruction, refer to the Positioning Control Manual. → For the setting procedure, refer to the Positioning Control Manual or Subsection 2.7.9.
→ For GX Developer, refer to the GX Developer Version 8 Operating Manual.
The set item "Built-in CC-Link/LT Setup" is dedicated to the FX3UC-32MT-LT-2. The CC-Link/LT setting (transmission speed, point mode and station information) is available in the parameter setting using GX Works2 or GX Developer. The built-in CC-Link/LT setup uses 500 steps (1 block) in the memory capacity.
→ For the setting procedure, refer to the FX3UC Hardware Edition or Subsection 2.7.9.
→ For GX Developer, refer to the GX Developer Version 8 Operating Manual.
This subsection explains the parameter setting procedures by GX Works2.
→ For network parameter setting, refer to the GX Works2 Version 1 Operating Manual (Common).
→ For Ethernet adapter setting, refer to FX3U-ENET-ADP User's Manual. 1 Opening the parameter setting screen
In the project view area provided on the navigation window, double-click [Parameter] → [PLC parameter]. If the navigation window is not displayed, select [View] → [Docking Window] → [Navigation] from the menu bar.


FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
2 Overview (Sequence Program)
2 Setting memory capacity

Set item Contents of setting Setting range
Memory Capacity Set the program memory capacity.
Comments Capacity Set the capacity of comments to be stored in the PLC. 50 device comments/block (500 steps)
The symbolic information capacity when the built-in memory or a memory cassette is used is displayed here based on the "Memory Capacity" value. Press the [Check Other Items] button to display the symbolic information capacity when a memory cassette is used.
Refer to Subsection 2.7.2 or Sub- section 2.7.3
Specified the Device & Constant
File Register Capacity Set the file register capacity. 500 file registers/block (500 steps)
Program Capacity The number of steps available for sequence program is displayed here.
Special Function Memory Capacity
Set whether "Special Function Block Settings", "Positioning Instruction Settings", "Built-in CC-Link/LT Settings" should be enabled. –
Special Function Block Settings Selects the initial value setting function for special function unit/block. –
Positioning Instruction Settings Validates the TBL (FNC152) instruction setting function. –
Built-in CC-Link/LT Settings Validates the CC-Link/LT station information setting function. –
Example: Time required to execute the basic instruction "LD" Standard mode: 0.21 µs Extension mode: 0.42 µs
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
2 Overview (Sequence Program)
2.7 Types and Setting of Parameters

Set item Contents of setting Setting range
Supplemental Relay Set the latched (battery backed) auxiliary relay range. Initial value: 500 to 1023 0 to 1023
State Set the latched (battery backed) state relay range. Initial value: 500 to 999 0 to 999
Timer The setting displayed here cannot be changed. –
Counter (16bit) Set the latched (battery backed) 16-bit counter range. Initial value: 100 to 199 0 to 199
Counter (32bit) Set the latched (battery backed) 32-bit counter range. Initial value: 220 to 255 200 to 255
Data Register Set the data register range (battery backed). Initial value: 200 to 511 0 to 511
Extended Register All extension registers are latched (battery backed). This setting is fixed, and cannot be changed. –

Set item Contents of setting Setting range
Title Input the program title in up to 32 half-width characters (or 16 full-width characters).
32 half-width characters (or 16 full-width characters)

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
2 Overview (Sequence Program)
5 Setting special function block

Specified the Device & Constant
Set item Contents of setting Setting range
Unit No. This is the unit number of each special function unit/block. –
32 half-width characters (or 16 full-width
Unit Name Set the name of each special function unit/block whose initial values are to be set.
Special Function Block Settings (It is necessary to set the memory capacity.)
Up This button moves the cursor to the upper line (transposes the upper line). –
Down This button moves the cursor to the lower line (transposes the lower line). –
This button displays Special Function Block Settings dialog box of the selected unit number.
→Refer to the next page.
Delete This button deletes the setting of the selected unit number. –
Delete All This button deletes all existing setting in "Special Unit" field. –
Read PLC Data This button reads "Special Unit" field from the connected PLC. –
Setting This button displays the Built-in CC-Link/LT Setting dialog box. –
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
2 Overview (Sequence Program)
2.7 Types and Setting of Parameters

Set item Contents of setting Setting range
Unit No. tab Select the unit number of a special function unit/block to be set. –
32 half-width characters (or 16 full-width char-
Unit Name Set the name of a special function unit/block whose initial values are to be set.
This column indicates the order of initial value setting in the selected unit number. Numbers 1 to 98 can be set.
No.
Address Set the buffer memory address (BFM number) in a decimal value whose initial value is to be set. *1
This column is displayed when device comments are registered. On the above screen, "Input mode of CH1 to CH4" is registered as the device comment for "U0\G0" (unit No. 0, BFM#0).
Set a value to be set as the initial value of the buffer memory address (BFM number). Set the data length and type of the set value in "Size/Type" column.
Select the size and type of a value set to the buffer memory among the following: 16bit/DEC 32bit/DEC 16bit/HEX 32bit/HEX
Insert This button inserts a line in the currently selected position. –
Delete This button deletes the currently selected line. –
Up This button moves the cursor to the upper line (transposes the upper line). –
Down This button moves the cursor to the lower line (transposes the lower line). –
Check the Identification Code Before Initializing
Check mark this box to check the model code of the special function unit/block before initialization. –
Identification Code Set the model code of the special function unit/block *3
*1. Input buffer memory addresses (BFM numbers) that in the connected special function unit/block hold.
*2. To each buffer memory address (BFM number), set a value within the allowed range in the connected special function unit/block.
*3. Refer to the manual of the connected special function unit/block.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
2 Overview (Sequence Program)
6 Set the Built-in CC-Link/LT

Set item Contents of setting Setting range
Select one of the following supported built-in CC-Link/LT transmission rates: 2.5Mbps 625kbps 156kbps
Select one of the following supported point modes: 16-point mode 4-point mode –
Specified the Device & Constant
Station No. This item indicates the station number of the built-in CC-Link/LT module. Station numbers 1 to 64 are available. –
Select one of the following station type: Remote I/O station (Input) Remote I/O station (Output) Remote I/O station (Input/Output)
Remote device station*1
I/O Points Select one of the following supported I/O point counts for each remote
Specify Reserved Station Select whether or not the Built-in CC-Link/LT station is specified as a reserved station. –
Up This button moves the cursor to the upper line (transposes the upper line). –
Down This button moves the cursor to the lower line (transposes the lower line). –
Insert Row This button inserts a line in the currently selected position. –
Delete Row This button deletes the currently selected line. –
Read Buffer Memory Click this button to read the transmission rate, point mode and station information of the built-in CC-Link/LT module. –
*1. Select 16-point mode when using remote device stations. Remote device stations cannot be set in 4-point mode. Only station numbers 40 to 64 are available for remote device stations.
*2. The station numbers 32, 48 and 64 are available when a remote device station is selected in Station type.
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
2 Overview (Sequence Program)
2.7 Types and Setting of Parameters
Click on the [PLC System(1)] tab to setup "Battery Less Mode", "Battery Mode", "MODEM Initialized", and "RUN Terminal Input".


Set item Contents of setting Setting range
Select this to operate the PLC without using the battery. When a check mark is put here, the battery error indicator lamp is automatically turned off and devices in the latched (battery backed) area are automatically cleared.
Battery Less Mode*1
Battery Mode*2 Select this item to operate the PLC with the battery. –
MODEM Initialized Set this item to automatically initialize a connected modem when the PLC power is turned ON. –
RUN Terminal Input Set this item to use an input terminal (X) to switch the PLC between STOP and RUN.
X000 to X017*3
*1. This area can be set only in FX3U/FX3UC PLCs. *2. This area can be set only in FX3G/FX3GC PLCs. *3. Up to the built-in input number of main unit.
None

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
2 Overview (Sequence Program)
8 Setting the PLC system (2)

Specified the Device & Constant
Set item Contents of setting Setting range
Channel selection Select a channel in which a serial port is set. CH1,CH2*1
Check mark this box when using the selected serial port in "computer link", "non- protocol communication" or "inverter communication". Do not put a check mark when transferring and monitoring sequence programs in GX Works2 or when using the selected serial port in N : N Network, parallel link, MODBUS communication or FX3U-ENET-ADP.
Set each item in accordance with application.
→ For details on each item, refer to the Data Communication Edition manual.
Time Out Judge Time
*1. Ch2 is not available in FX3S PLC.
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
2 Overview (Sequence Program)
2.7 Types and Setting of Parameters


FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
2 Overview (Sequence Program)
Set item Contents of setting Set range
Bias Speed [Hz] Set the bias speed for each set of output pulses. Initial value: 0
1/10 or less of the maximum speed
Max. Speed [Hz] Set the maximum speed for each set of output pulses. Initial value: 100,000 *1
Creep Speed [Hz] Set the creep speed in DSZR (FNC150) instruction for each set of output pulses. Initial value: 1000 10 to 32767*2
Set the zero point return speed in DSZR (FNC150) instruction for each set of output pulses. Initial value: 50000
Zero Return Speed [Hz]
Acceleration Time [ms] Set the acceleration time for each set of output pulses. Initial value: 100 50 to 5000
Deceleration Time [ms] Set the deceleration time for each set of output pulses. Initial value: 100 50 to 5000
Set the interrupt input*3 for DVIT (FNC151) instruction for each set of output pulses. Specify a user interrupt command device (M) for a pulse output destination device not used in DVIT instruction. Initial setting: Setting range: Pulse output destination Y000: X000 X000 to X007, M8460 Pulse output destination Y001: X001 X000 to X007, M8461 Pulse output destination Y002: X002 X000 to X007, M8462
Interruption Input of DVIT
As shown on the left
Y0 Setting for Fixed pulse output destination terminal Y000. –
Y1 Setting for Fixed pulse output destination terminal Y001. –
Y2*5 Setting for Fixed pulse output destination terminal Y002. –
Y3*6 Setting for Fixed pulse output destination terminal Y003. –
This button displays "Positioning instruction settings" dialog box for setting the table used in TBL (FNC152) instruction.
Specified the Device & Constant
→For the setting procedure, refer to the next page.
*1. The setting range is from 10 to 100,000 Hz in FX3G/FX3GC/FX3U/FX3UC PLCs. The setting range is from 10 to 200,000 Hz in FX3U PLC when the pulse output destination is the high-speed output special adapter.
*2. The creep speed should satisfy the relationship "Bias speed ≤ Creep speed ≤ Maximum speed".
*3. An interrupt input set here cannot be used jointly with a high-speed counter, input interrupt, pulse catch input, input in SPD (FNC 67) instruction, or interrupt input in DVIT (FNC151) instruction.
*4. This area can be set only in FX3U/FX3UC PLCs.
*5. Y002 is not set in FX3G PLC (14-point and 24-point type) and FX3GC PLC.
*6. Note that this item can only be set if two high-speed output special adapters are connected to the FX3U PLC.
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
2 Overview (Sequence Program)
2.7 Types and Setting of Parameters

Set item Contents of setting Setting range
Y0 Set the positioning table for the pulse output destination Y000. –
Y1 Set the positioning table for the pulse output destination Y001. –
Y2*1 Set the positioning table for the pulse output destination Y002. –
Y3*2 Set the positioning table for the pulse output destination Y003. –
Set the relay number of the rotation direction output signal. Initial setting: Pulse output destination Y000: Y010 Pulse output destination Y001: Y011
→Refer to the Positioning Control Manual.
Set the head number of devices storing the set data (pulse number and frequency). 1600 devices (FX3U and FX3UC) or 1200 devices (FX3G and FX3GC) are occupied starting from the head device number set here regardless of the number of axes. Initial setting: R0
D0 to D6400 R0 to R31168
D0 to D6400 R0 to R22800
→Refer to the Positioning Control Manual.
No. This column shows the table number. Numbers 1 to 100 can be set. –
Select the positioning type among the following:
DDVIT (Interrupt positioning instruction)*3
DPLSV (Variable speed output pulse instruction) DDRVI (Relative positioning instruction) DDRVA (Absolute positioning instruction)
→Refer to the Positioning Control Manual.
Set the pulse number output by the operation (instruction) set in "Positioning Instruction" column.
Refer to the Positioning Control
→Refer to the Positioning Control Manual.
Manual.
Set the speed (pulse frequency) output by the operation (instruction) set in "Positioning Instruction" column.
Refer to the Positioning Control
→Refer to the Positioning Control Manual.
Manual.
Up This button transposes the selected line to the upper line. –
Down This button transposes the selected line to the lower line. –
Insert Row This button inserts a line in the currently selected position. –
Delete Row This button deletes the currently selected line. –
Delete all Rows This button deletes the entire setting of the positioning table for the selected pulse output destination. –

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
2 Overview (Sequence Program)
Set item Contents of setting Setting range
A check mark here means not to transfer the positioning setting when PLC turns ON. Check mark this box when changing the positioning setting from a display unit, etc., and then using the changed contents even after restoring power. In this case, set a latched (battery backed) type device to "Head Address".
Positioning table settings will not be initialized when the PLC is powered on
This button writes the contents of the positioning table created here to up to 1600 devices (FX3U and FX3UC) or 1200 devices (FX3G and FX3GC) starting from "Head Address".
This button reads the contents of the existing positioning table from all pulse output destinations, up to 1600 devices (FX3U and FX3UC) or 1200 devices (FX3G and FX3GC) starting from "Head Address", but does not read device numbers without the "positioning instruction" setting.
*1. Y002 is not set in FX3G PLC (14-point and 24-point type) and FX3GC PLC.
*2. Note that this item can only be set if two high-speed output special adapters are connected to the FX3U PLC.
*3. This area can be set only in FX3U/FX3UC PLCs. 10 Transferring parameters (and sequence program) to the PLC

Specified the Device & Constant
After changing the memory capacity, make sure to write both the programs and parameters to the PLC. If only the parameters are written to the PLC, program errors (such as parameter error, circuit error and grammar error) may occur in the PLC.
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
3.1 Basic Instructions
This chapter introduces a list of instructions available in programming.
The basic instructions are provided in the following series. The table below shows differences in applicable devices.

Applicable PLC FX3S FX3G FX3GC FX3U FX3UC FX1S FX1N FX1NC FX2N FX2NC
Basic instructions other than MEP and MEF instructions 3
MEP and MEF instructions 3 3 3 Ver. 2.30
Absence/presence of applicable devices (D . b) – – – 3 3 –
Absence/presence of applicable devices (R) – 3 –
Mnemonic Name Symbol Function Applicable devices Reference
Initial logical operation contact type NO (normally open)
X,Y,M,S,D .b,T,C Section 7.1
Initial logical operation contact type NC (normally closed)
X,Y,M,S,D .b,T,C Section 7.1
LDP Load Pulse Initial logical operation of Rising edge pulse X,Y,M,S,D .b,T,C Section 7.5
LDF Load Falling Pulse Initial logical operation of Falling/trailing edge pulse X,Y,M,S,D .b,T,C Section 7.5
AND AND Serial connection of NO (normally open) contacts X,Y,M,S,D .b,T,C Section 7.3
ANI AND Inverse Serial connection of NC (normally closed) contacts X,Y,M,S,D .b,T,C Section 7.3
ANDP AND Pulse Serial connection of Rising edge pulse X,Y,M,S,D .b,T,C Section 7.5
ANDF AND Falling Pulse Serial connection of Falling/trailing edge pulse X,Y,M,S,D .b,T,C Section 7.5
OR OR Parallel connection of NO (normally open) contacts X,Y,M,S,D .b,T,C Section 7.4
ORI OR Inverse Parallel connection of NC (normally closed) contacts X,Y,M,S,D .b,T,C Section 7.4
ORP OR Pulse Parallel connection of Rising edge pulse X,Y,M,S,D .b,T,C Section 7.5
ORF OR Falling Pulse Parallel connection of Falling/trailing edge pulse X,Y,M,S,D .b,T,C Section 7.5

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
Mnemonic Name Symbol Function Applicable devices Reference
ANB AND Block Serial connection of multiple parallel circuits – Section 7.7
ORB OR Block Parallel connection of multiple contact circuits – Section 7.6
Stores the current result of the internal PLC operations
MPS Memory Point Store
Section 7.8
Reads the current result of the internal PLC operations
Section 7.8
Pops (recalls and removes) the currently stored result
Section 7.8
Invert the current result of the internal PLC operations
– Section 7.10
Conversion of operation result to leading edge pulse
– Section 7.11
MEF MEF Conversion of operation result to trailing edge pulse – Section 7.11
Specified the Device & Constant
OUT OUT Final logical operation type coil drive Y,M,S,D .b,T,C Section 7.2
SET SET SET Bit device latch ON Y,M,S,D .b Section 7.13
RST Reset RESET Bit device OFF Y,M,S,D .b,T,C, D,R,V,Z Section 7.13
PLS Pulse Rising edge pulse Y,M Section 7.12
PLF Pulse Falling Falling/trailing edge pulse Y,M Section 7.12
MC Master Control Denotes the start of a master control block Y,M Section 7.9
Applicable devices MC N
MCR Master Control Reset
Denotes the end of a master control block – Section 7.9
NOP No Operation No operation or null step – Section 7.14
END END Program END, I/O refresh and Return to Step 0 – Section 7.15
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
3.2 Step Ladder Instructions

STL Step Ladder Starts step ladder S Chapter 35
Applied instructions such as Arithmetic operation, Rotation and Shift, Handy instructions etc. are used especially when numeric data is handled. *1: The instruction is provided in the FX2N/FX2NC Series Ver. 3.00 or later. *7: The instruction is provided in the FX3U/FX3UC Series Ver. 2.61 or later. *2: The function is changed in the FX3UC Series Ver. 1.30 or later. *8: The instruction is provided in the FX3G Series Ver. 1.40 or later. *3: The instruction is provided in the FX3UC Series Ver. 1.30 or later. *9: The instruction is provided in the FX3U/FX3UC Series Ver. 2.70 or later. *4: The function is changed in the FX3UC Series Ver. 2.20 or later. *10: The instruction is provided in the FX3G Series Ver. 1.30 or later. *5: The instruction is provided in the FX3UC Series Ver. 2.20 or later *11: The instruction is provided in the FX3U/FX3UC Series Ver. 2.40 or later. *6: The instruction is provided in the FX3G Series Ver. 1.10 or later..
No. Mnemonic Symbol Function
FX 3G
FX 3U
FX 3UC
FX 1S
FX 1N
FX 1NC
FX 2N
FX 2NC
00 CJ Conditional Jump 3 Section 8.1
01 CALL Call Subroutine 3 Section 8.2
02 SRET Subroutine Return 3 Section 8.3
03 IRET Interrupt Return 3 Section 8.4
04 EI Enable Interrupt 3 Section 8.5
05 DI Disable Interrupt 3 Section 8.6
06 FEND Main Routine Program End 3 Section 8.7
07 WDT Watchdog Timer Refresh 3 Section 8.8
08 FOR Start a FOR/NEXT Loop 3 Section 8.9
09 NEXT End a FOR/NEXT Loop 3 Section
10 CMP Compare 3 Section 9.1
11 ZCP Zone Compare 3 Section 9.2
12 MOV Move 3 Section 9.3

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
FX 3UC
No. Mnemonic Symbol Function
FX 3G
FX 3U
FX 1NC
FX 2NC
FX 1S
FX 1N
FX 2N
13 SMOV Shift Move 3 – – – 3 3 Section 9.4
SMOV S D n m1 m2
14 CML Complement 3 – – – 3 3 Section 9.5
15 BMOV Block Move 3 Section 9.6
n BMOV S D
16 FMOV Fill Move 3 – – – 3 3 Section 9.7
n FMOV S D
17 XCH Exchange – – – 3 3 – – – 3 3 Section 9.8
18 BCD Conversion to Binary Coded Decimal 3 Section 9.9
19 BIN Conversion to Binary 3 Section
Arithmetic and Logical Operation (+, –, ×, ÷)
20 ADD Addition 3 Section
Specified the Device & Constant
21 SUB Subtraction 3 Section
22 MUL Multiplication 3 Section
23 DIV Division 3 Section
24 INC Increment 3 Section
25 DEC Decrement 3 Section
26 WAND Logical Word AND 3 Section
27 WOR Logical Word OR 3 Section
28 WXOR Logical Exclusive OR 3 Section
29 NEG Negation – – – 3 3 – – – 3 3 Section
Rotation and Shift Operation
30 ROR Rotation Right 3 – – – 3 3 Section
FNC10-FNC19 Move & Compare
31 ROL Rotation Left 3 – – – 3 3 Section
32 RCR Rotation Right with Carry – – – 3 3 – – – 3 3 Section
33 RCL Rotation Left with Carry – – – 3 3 – – – 3 3 Section
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
3.3 Applied Instructions ... in Ascending Order of FNC Number
FX 3UC
No. Mnemonic Symbol Function
FX 3G
FX 3U
FX 1NC
FX 2NC
FX 1S
FX 1N
FX 2N
Rotation and Shift Operation
34 SFTR Bit Shift Right 3 Section
n2 n1 D S SFTR
35 SFTL Bit Shift Left 3 Section
n2 n1 D S SFTL
36 WSFR Word Shift Right 3 – – – 3 3 Section
n2 n1 D S WSFR
37 WSFL Word Shift Left 3 – – – 3 3 Section
n2 n1 D S WSFL
38 SFWR Shift write [FIFO/FILO control] 3 Section
n SFWR D S
39 SFRD Shift Read [FIFO Control] 3 Section
n SFRD D S
40 ZRST Zone Reset 3 Section
41 DECO Decode 3 Section
n DECO D S
42 ENCO Encode 3 Section
n ENCO D S
43 SUM Sum of Active Bits 3 – – – 3 3 Section
44 BON Check Specified Bit Status 3 – – – 3 3 Section
BON D n S
45 MEAN Mean 3 – – – 3 3 Section
MEAN D n S
46 ANS Timed Annunciator Set – 3 – – – 3 3 Section
ANS m D S
47 ANR Annunciator Reset – 3 – – – 3 3 Section
48 SQR Square Root – – – 3 3 – – – 3 3 Section
49 FLT Conversion to Floating Point 3 *6 3 3 3 – – – 3 3 Section
50 REF Refresh 3 Section
51 REFF Refresh and Filter Adjust – – – 3 3 – – – 3 3 Section
52 MTR Input Matrix 3 Section
n MTR D2 D1 S
53 HSCS High-speed Counter Set 3 Section
54 HSCR High-speed Counter Reset 3 Section

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
FX 3UC
No. Mnemonic Symbol Function
FX 3G
FX 3U
FX 1NC
FX 2NC
FX 1S
FX 1N
FX 2N
55 HSZ High-speed Counter Zone Compare 3 – – – 3 3 Section
56 SPD Speed Detection 3 Section
57 PLSY Pulse Y Output 3 Section
58 PWM Pulse Width Modulation 3 Section
59 PLSR Acceleration/Deceleration Setup 3 Section
60 IST Initial State 3 Section
61 SER Search a Data Stack 3 – – – 3 3 Section
n SER D S2 S1
62 ABSD Absolute Drum Sequencer 3 Section
n ABSD D S2 S1
Specified the Device & Constant
63 INCD Incremental Drum Sequencer 3 Section
n INCD D S2 S1
64 TTMR Teaching Timer – – – 3 3 – – – 3 3 Section
65 STMR Special Timer – – – 3 3 – – – 3 3 Section
STMR m D S
66 ALT Alternate State 3 Section
67 RAMP Ramp Variable Value 3 Section
n RAMP D S2 S1
68 ROTC Rotary Table Control – – – 3 3 – – – 3 3 Section
D ROTC m2 m1 S
69 SORT SORT Tabulated Data – – – 3 3 – – – 3 3 Section
n SORT D m2 m1 S
External FX I/O Device
70 TKY Ten Key Input – – – 3 3 – – – 3 3 Section
71 HKY Hexadecimal Input – – – 3 3 – – – 3 3 Section
72 DSW Digital Switch (Thumbwheel Input) 3 Section
n DSW D2 D1 S
FNC10-FNC19 Move & Compare
73 SEGD Seven Segment Decoder – – – 3 3 – – – 3 3 Section
74 SEGL Seven Segment With Latch 3 Section
SEGL D n S
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
3.3 Applied Instructions ... in Ascending Order of FNC Number
FX 3UC
No. Mnemonic Symbol Function
FX 3G
FX 3U
FX 1NC
FX 2NC
FX 1S
FX 1N
FX 2N
75 ARWS Arrow Switch – – – 3 3 – – – 3 3 Section
n ARWS D2 D1 S
76 ASC ASCII Code Data Input – – – 3 3 – – – 3 3 Section
77 PR Print (ASCII Code) – – – 3 3 – – – 3 3 Section
78 FROM Read From A Special Function Block – 3 – 3 Section
n FROM D m2 m1
79 TO Write To A Special Function Block – 3 – 3 Section
n TO S m2 m1
80 RS Serial Communication 3 Section
n RS D m S
81 PRUN Parallel Run (Octal Mode) 3 Section
82 ASCI Hexadecimal to ASCII Conversion 3 Section
ASCI D n S
83 HEX ASCII to Hexadecimal Conversion 3 Section
HEX D n S
84 CCD Check Code 3 Section
CCD D n S
85 VRRD Volume Read 3 *6 – *9 *9 3 3 – 3 – Section
86 VRSC Volume Scale 3 *6 – *9 *9 3 3 – 3 – Section
87 RS2 Serial Communication 2 3 – Section
n1 RS2 n D m S
88 PID PID Control Loop 3 Section
102 ZPUSH Batch Store of Index Register – – – 3 *5 – Section
103 ZPOP Batch POP of Index Register – – – 3 *5 – Section
110 ECMP Floating Point Compare 3 *6 3 3 3 – – – 3 3 Section
111 EZCP Floating Point Zone Compare – – – 3 3 – – – 3 3 Section
112 EMOV Floating Point Move 3 *6 3 3 3 – Section
116 ESTR Floating Point to Character String Conversion – – – 3 3 – Section
117 EVAL Character String to Floating Point Conversion – – – 3 3 – Section

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
FX 3UC
No. Mnemonic Symbol Function
FX 3G
FX 3U
FX 1NC
FX 2NC
FX 1S
FX 1N
FX 2N
118 EBCD Floating Point to Scientific Notation Conversion – – – 3 3 – – – 3 3 Section
119 EBIN Scientific Notation to Floating Point Conversion – – – 3 3 – – – 3 3 Section
120 EADD Floating Point Addition 3 *6 3 3 3 – – – 3 3 Section
121 ESUB Floating Point Subtraction 3 *6 3 3 3 – – – 3 3 Section
122 EMUL Floating Point Multiplication 3 *6 3 3 3 – – – 3 3 Section
123 EDIV Floating Point Division 3 *6 3 3 3 – – – 3 3 Section
124 EXP Floating Point Exponent – – – 3 3 – Section
125 LOGE Floating Point Natural Logarithm – – – 3 3 – Section
126 LOG10 Floating Point Common Logarithm – – – 3 3 – Section
Specified the Device & Constant
127 ESQR Floating Point Square Root 3 *6 3 3 3 – – – 3 3 Section
128 ENEG Floating Point Negation – – – 3 3 – Section
129 INT Floating Point to Integer Conversion 3 *6 3 3 3 – – – 3 3 Section
130 SIN Floating Point Sine – – – 3 3 – – – 3 3 Section
131 COS Floating Point Cosine – – – 3 3 – – – 3 3 Section
132 TAN Floating Point Tangent – – – 3 3 – – – 3 3 Section
133 ASIN Floating Point Arc Sine – – – 3 3 – Section
134 ACOS Floating Point Arc Cosine – – – 3 3 – Section
135 ATAN Floating Point Arc Tangent – – – 3 3 – Section
136 RAD Floating Point Degrees to Radians Conversion – – – 3 3 – Section
FNC10-FNC19 Move & Compare
137 DEG Floating Point Radians to Degrees Conversion – – – 3 3 – Section
140 WSUM Sum of Word Data – – – 3 *5 – Section
WSUM n D S
FNC20-FNC29 Arith. & Logic Operation
141 WTOB WORD to BYTE – – – 3 *5 – Section
WTOB n D S

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
3.3 Applied Instructions ... in Ascending Order of FNC Number
FX 3UC
No. Mnemonic Symbol Function
FX 3G
FX 3U
FX 1NC
FX 2NC
FX 1S
FX 1N
FX 2N
142 BTOW BYTE to WORD – – – 3 *5 – Section
BTOW n D S
143 UNI 4-bit Linking of Word Data – – – 3 *5 – Section
UNI n D S
144 DIS 4-bit Grouping of Word Data – – – 3 *5 – Section
DIS n D S
147 SWAP Byte Swap – – – 3 3 – – – 3 3 Section
149 SORT2 Sort Tabulated Data 2 – – – 3 *5 – Section
SORT2 n m2 m1 S D
150 DSZR DOG Search Zero Return 3 *4 – Section
151 DVIT Interrupt Positioning – – – 3 *2, 4 – Section
152 TBL Batch Data Positioning Mode – 3 3 3 *5 – Section
155 ABS Absolute Current Value Read 3 *1 *1 Section
156 ZRN Zero Return 3 *4 3 3 3 – – Section
157 PLSV Variable Speed Pulse Output 3 – – Section
158 DRVI Drive to Increment 3 – – Section
159 DRVA Drive to Absolute 3 – – Section
Real Time Clock Control
160 TCMP RTC Data Compare 3 Section
161 TZCP RTC Data Zone Compare 3 Section
162 TADD RTC Data Addition 3 Section
163 TSUB RTC Data Subtraction 3 Section
164 HTOS Hour to Second Conversion – – – 3 3 – Section
165 STOH Second to Hour Conversion – – – 3 3 – Section
166 TRD Read RTC data 3 Section
167 TWR Set RTC data 3 Section
169 HOUR Hour Meter 3 *1 *1 Section

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
FX 3UC
No. Mnemonic Symbol Function
FX 3G
FX 3U
FX 1NC
FX 2NC
FX 1S
FX 1N
FX 2N
170 GRY Decimal to Gray Code Conversion 3 – – – 3 3 Section
171 GBIN Gray Code to Decimal Conversion 3 – – – 3 3 Section
176 RD3A Read form Dedicated Analog Block – 3 – 3 3 *1 *1 Section
D RD3A m2 m1
177 WR3A Write to Dedicated Analog Block – 3 – 3 3 *1 *1 Section
S WR3A m2 m1
180 EXTR External ROM Function (FX2N/FX2NC) – *1 *1 –
182 COMRD Read Device Comment Data – – – 3 *5 – Section
184 RND Random Number Generation – – – 3 3 – Section
186 DUTY Timing Pulse Generation – – – 3 *5 – Section
DUTY D n2 n1
Specified the Device & Constant
188 CRC Cyclic Redundancy Check – – – 3 3 – Section
n CRC D S
189 HCMOV High-speed Counter Move – – – 3 *4 – Section
n HCMOV D S
192 BK+ Block Data Addition – – – 3 *5 – Section
n D S2 S1 BK+
193 BK- Block Data Subtraction – – – 3 *5 – Section
n D S2 S1 BK-
– – – 3 *5 – Section
n D S2 S1 BKCMP= S1 S2
– – – 3 *5 – Section
n D S2 S1 BKCMP> S1 S2
– – – 3 *5 – Section
n D S2 S1 BKCMP< S1 S2
– – – 3 *5 – Section
n D S2 S1 BKCMP S1 S2
– – – 3 *5 – Section
n D S2 S1 BKCMP
– – – 3 *5 – Section
n D S2 S1 BKCMP>= S1 S2
FNC10-FNC19 Move & Compare
200 STR BIN to Character String Conversion – – – 3 *5 – Section
201 VAL Character String to BIN Conversion – – – 3 *5 – Section
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
3.3 Applied Instructions ... in Ascending Order of FNC Number
FX 3UC
No. Mnemonic Symbol Function
FX 3G
FX 3U
FX 1NC
FX 2NC
FX 1S
FX 1N
FX 2N
202 $+ Link Character Strings – – – 3 3 – Section
203 LEN Character String Length Detection – – – 3 3 – Section
204 RIGHT Extracting Character String Data from the Right – – – 3 3 – Section
n RIGHT D S
205 LEFT Extracting Character String Data from the Left – – – 3 3 – Section
n LEFT D S
206 MIDR Random Selection of Character Strings – – – 3 3 – Section
207 MIDW Random Replacement of Character Strings – – – 3 3 – Section
208 INSTR Character string search – – – 3 *5 – Section
INSTR S2 n S1 D
209 $MOV Character String Transfer – – – 3 3 – Section
210 FDEL Deleting Data from Tables – – – 3 *5 – Section
FDEL D n S
211 FINS Inserting Data to Tables – – – 3 *5 – Section
FINS D n S
212 POP Shift Last Data Read [FILO Control] – – – 3 3 – Section
n POP D S
213 SFR Bit Shift Right with Carry – – – 3 3 – Section
214 SFL Bit Shift Left with Carry – – – 3 3 – Section
3 Section
225 LD>
3 Section
3 Section
S2 S1 LD< S 1 S 2
3 Section
S2 S1 LD<> S 1 S 2
3 Section
S2 S1 LD <= S 1 S 2
3 Section
S2 S1 LD >= S 1 S 2
3 Section
AND= S2 S1 S 1 S 2
3 Section
AND> S2 S1 S 1 S 2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
FX 3UC
No. Mnemonic Symbol Function
FX 3G
FX 3U
FX 1NC
FX 2NC
FX 1S
FX 1N
FX 2N
3 Section
AND< S2 S1 S 1 S 2
3 Section
AND<> S2 S1 S 1 S 2
3 Section
AND <= S2 S1 S 1 S 2
3 Section
AND >= S2 S1 S 1 S 2
3 Section
S2 S1 OR= S 1 S 2
3 Section
S2 S1 OR> S 1 S 2
3 Section
S2 S1 OR< S 1 S 2
Specified the Device & Constant
3 Section
245 OR<=
3 Section
246 OR>=
3 Section
256 LIMIT Limit Control – – – 3 3 – Section
257 BAND Dead Band Control – – – 3 3 – Section
258 ZONE Zone Control – – – 3 3 – Section
259 SCL Scaling (Coordinate by Point Data) – – – 3 3 – Section
260 DABIN Decimal ASCII to BIN Conversion – – – 3 *5 – Section
261 BINDA BIN to Decimal ASCII Conversion – – – 3 *5 – Section
FNC10-FNC19 Move & Compare
269 SCL2 Scaling 2 (Coordinate by X/Y Data) – – – 3 *3 – Section
270 IVCK Inverter Status Check 3 *6 3 3 3 – Section
n IVCK D S2 S1
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
3.3 Applied Instructions ... in Ascending Order of FNC Number
FX 3UC
No. Mnemonic Symbol Function
FX 3G
FX 3U
FX 1NC
FX 2NC
FX 1S
FX 1N
FX 2N
271 IVDR Inverter Drive 3 *6 3 3 3 – Section
n IVDR S3 S2 S1
272 IVRD Inverter Parameter Read 3 *6 3 3 3 – Section
n IVRD D S2 S1
273 IVWR Inverter Parameter Write 3 *6 3 3 3 – Section
n IVWR S3 S2 S1
274 IVBWR Inverter Parameter Block Write – – – 3 3 – Section
n IVBWR S3 S2 S1
275 IVMC Inverter Multi Command 3 *8 3 *9 *9 – Section
n IVMC D S3 S2 S1
276 ADPRW MODBUS Read / Write 3 * 10 3 * 11 * 11 – Section
278 RBFM Divided BFM Read – – – 3 *5 – Section
RBFM n1 n2 D m2 m1
279 WBFM Divided BFM Write – – – 3 *5 – Section
WBFM n1 n2 S m2 m1
280 HSCT High-speed Counter Compare With Data Table – – – 3 3 – Section
n HSCT D S2 m S1
Extension File Register Control
290 LOADR Load From ER – 3 – Section
291 SAVER Save to ER – – – 3 3 – Section
D SAVER m S
292 INITR Initialize R and ER – – – 3 3 – Section
293 LOGR Logging R and ER – – – 3 3 – Section
D2 LOGR n D1 m S
294 RWER Rewrite to ER – 3 3 3 *3 – Section
295 INITER Initialize ER – – – 3 *3 – Section
FX3U-CF-ADP Applied Instructions
300 FLCRT File create / check – – – *7 *7 – Section
n FLCRT S3 S2 S1
301 FLDEL File delete / CF card format – – – *7 *7 – Section
n FLDEL S2 S1
302 FLWR Data write – – – *7 *7 – Section
n FLWR D S3 S2 S1
303 FLRD Data read – – – *7 *7 – Section
n FLRD D2 D1 S2 S1
304 FLCMD FX3U-CF-ADP command – – – *7 *7 – Section
305 FLSTRD FX3U-CF-ADP status read – – – *7 *7 – Section
n FLSTRD D S

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
4. Devices in Detail
This chapter explains how numeric values are handled in the PLC as well as the roles and functions of various built-in devices including I/O relays, auxiliary relays, state relays, counters and data registers. The following content provides a basis for handling the PLC.
Device numbers are assigned as shown below. For input relay numbers and output relay numbers when I/O extension equipment and special extension equipment are connected to the PLC main unit, refer to the Hardware Edition.
Device name Description Reference
Input relay X000 to X017 16 points Device numbers are octal. Section 4.2 Output relay Y000 to Y015 14 points
General type M0 to M383 384 points
Section 4.3 EEPROM keep type M384 to M511 128 points
General type M512 to M1535 1024 points
Special type*1 M8000 to M8511 512 points Chapter 37
Specified the Device & Constant
Initial state type (EEPROM keep) S0 to S9 10 points
Section 4.4 EEPROM keep type S10 to S127 118 points
General type S128 to S255 128 points
100 ms T0 to T31 32 points 0.1 to 3,276.7 sec
100 ms/10 ms T32 to T62 31 points 0.1 to 3,276.7 sec/0.01 to 327.67 sec They can be switched from 100 ms to 10 ms by driving the special auxiliary relay M8028.
1 ms T63 to T127 65 points 0.001 to 32.767 sec
Section 4.5
Retentive type for 1 ms (EEPROM keep) T128 to T131 4 points 0.001 to 32.767 sec
Retentive type for 100 ms (EEPROM keep) T132 to T137 6 points 0.1 to 3,276.7 sec
General type up counter (16 bits) C0 to C15 16 points Counts 0 to 32,767
Section 4.6 EEPROM keep type up counter (16 bits) C16 to C31 16 points Counts 0 to 32,767
General type bi-directional counter (32 bits)
C200 to C234 35 points −2,147,483,648 to +2,147,483,647 counts
*1. For applicable functions, refer to Chapter 37. For handling of the latched area, refer to Section 2.6.
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
4.1 Device Number List
Device name Description Reference
1-phase 1-counting input Bi-directional (32 bits) (EEPROM keep)
−2,147,483,648 to +2,147,483,647 counts Software counter 1 phase: 60 kHz × 2 points, 10 kHz × 4 points 2 phases: 30 kHz × 1 point, 5 kHz × 1 point
Section 4.7 1-phase 2-counting input Bi-directional (32 bits) (EEPROM keep)
2-phase 2-counting input Bi-directional (32 bits) (EEPROM keep)
Data register (32 bits when used in pair form)
General type (16 bits) D0 to D127 128 points
EEPROM keep type (16 bits) D128 to D255 128 points
General type (16 bits) D256 to D2999 2744 points
Section 4.9
Among 2000 latched type data registers backed up by the EEPROM, D1000 and later can be set as file registers in units of 500 points by the parameter setting.
EEPROM keep type (16 bits) <file register> D1000 to D2999 2000 points
Special type (16 bits)*1 D8000 to D8511 512 points Chapter 37
Index type (16 bits) V0 to V7, Z0 to Z7 16 points Section 4.11
For jump and branch call P0 to P255 256 points For CJ and CALL instructions
Section 4.12 Input interrupt I0 to I5 6 points
Timer interrupt I6 to I8 3 points
For master control N0 to N7 8 points For MC instruction
16 bits −32,768 to +32,767
32 bits −2,147,483,648 to +2,147,483,647
16 bits 0 to FFFF
32 bits 0 to FFFFFFFF
Real number (E) 32 bits −1.0 × 2128 to −1.0 × 2−126, 0, 1.0 × 2−126 to 1.0 × 2128
Both the decimal point expression and the exponent expression are available.
*1. For applicable functions, refer to Chapter 37. For handling of the latched area, refer to Section 2.6.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
Device name Description Reference
Input relay X000 to X177 128 points Device numbers are octal. The total number of inputs and outputs is 128. Section 4.2 Output relay Y000 to Y177 128 points
General type M0 to M383 384 points
Section 4.3 EEPROM keep type M384 to M1535 1152 points
General type*1 M1536 to M7679*2 6144 points
Special type*3 M8000 to M8511 512 points Chapter 37
Initial state type (EEPROM keep) S0 to S9 10 points
Section 4.4 EEPROM keep type S10 to S899 890 points
Annunciator type (EEPROM keep) S900 to S999 100 points
General type*1 S1000 to S4095 3096 points
100 ms T0 to T191 192 points 0.1 to 3,276.7 sec
100 ms [for subroutine or interrupt routine] T192 to T199 8 points 0.1 to 3,276.7sec
10 ms T200 to T245 46 points 0.01 to 327.67 sec
Retentive type for 1 ms (EEPROM keep) T246 to T249 4 points 0.001 to 32.767 sec
Section 4.5
Specified the Device & Constant
Retentive type for 100 ms (EEPROM keep) T250 to T255 6 points 0.1 to 3,276.7 sec
1 ms T256 to T319 64 points 0.001 to 32.767 sec
General type up counter (16 bits) C0 to C15 16 points Counts 0 to 32,767
EEPROM keep type up counter (16 bits) C16 to C199 184 points Counts 0 to 32,767
Section 4.6
General type bi-directional counter (32 bits) C200 to C219 20 points −2,147,483,648 to +2,147,483,647 counts
EEPROM keep bi-directional counter (32 bits) C220 to C234 15 points −2,147,483,648 to +2,147,483,647 counts
1-phase 1-counting input Bi- directional (32 bits) (EEPROM keep)
−2,147,483,648 to +2,147,483,647 counts Software counter 1 phase: 60 kHz × 4 points, 10 kHz × 2 points 2 phases: 30 kHz × 2 points, 5 kHz × 1 point
Section 4.7 1-phase 2-counting input Bi- directional (32 bits) (EEPROM keep)
2-phase 2-counting input Bi- directional (32 bits) (EEPROM keep)
*1. When the optional battery is installed, general type devices can be changed to latched (battery backed) type devices by the parameter setting. However, the latched range cannot be set.
*2. Operation varies when M2800 to M3071 are used in the LDP, LDF, ANDP, ANDF, ORP and ORF instructions. Refer to Section 7.5 for the details.
FNC10-FNC19 Move & Compare
*3. For applicable functions, refer to Chapter 37. For handling of the latched area, refer to Section 2.6.
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
4.1 Device Number List
Device name Description Reference
Data register (32 bits when used in pair form)
General type (16 bits) D0 to D127 128 points
EEPROM keep type (16 bits) D128 to D1099 972 points
General type (16 bits)*1 D1100 to D7999 6900 points
Section 4.9
Among 7000 latched type data registers backed up by the EEPROM, D1000 and later can be set as file registers in units of 500 points by the parameter setting.
EEPROM keep type (16 bits) <file register> D1000 to D7999 7000 points
Special type (16 bits)*2 D8000 to D8511 512 points Chapter 37
Index type (16 bits) V0 to V7, Z0 to Z7 16 points Section 4.11
Extension register/Extension file register
(16 bits)*1 R0 to R23999 24000 points
Section 4.10 Extension file register (16 bits) (EEPROM keep)
ER0 to ER23999 24000 points
For jump and branch call P0 to P2047 2048 points For CJ and CALL instructions
Section 4.12 Input interrupt I0 to I5 6 points
Timer interrupt I6 to I8 3 points
For master control N0 to N7 8 points For MC instruction
16 bits −32,768 to +32,767
32 bits −2,147,483,648 to +2,147,483,647
16 bits 0 to FFFF
32 bits 0 to FFFFFFFF
Real number (E)*3 32 bits −1.0 × 2128 to −1.0 × 2−126, 0, 1.0 × 2−126 to 1.0 × 2128
Both the decimal point expression and the exponent expression are available.
*1. When the optional battery is installed, general type devices can be changed to latched (battery backed) type devices by the parameter setting. However, the latched range cannot be set.
*2. For applicable functions, refer to Chapter 37. For handling of the latched area, refer to Section 2.6.
*3. Available in Ver. 1.10 or later.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
Device name Description Reference
Input relay X000 to X367*1 248 points Device numbers are octal. The total number of inputs and outputs is 256. Section 4.2 Output relay Y000 to Y367*1 248 points
General type [variable] M0 to M499 500 points The setting can be changed between the latched (battery backed) type and the non-latched type using parameters. Section 4.3 Latched (battery backed) type [variable] M500 to M1023 524 points
Latched (battery backed) type [fixed] M1024 to M7679*2 6656 points
Special type*3 M8000 to M8511 512 points Chapter 37
Initial state (general type [variable]) S0 to S9 10 points
General type [variable] S10 to S499 490 points
The setting can be changed between the latched (battery backed) type and the non-latched type using parameters. Section 4.4
Latched (battery backed) type [variable] S500 to S899 400 points
Annunciator (latched (battery backed) type [variable])
S900 to S999 100 points
Latched (battery backed) type [fixed] S1000 to S4095 3096 points
100 ms T0 to T191 192 points 0.1 to 3,276.7 sec
Specified the Device & Constant
100 ms [for subroutine or interrupt routine] T192 to T199 8 points 0.1 to 3,276.7 sec
10 ms T200 to T245 46 points 0.01 to 327.67 sec
Section 4.5
Retentive type for 1 ms T246 to T249 4 points 0.001 to 32.767 sec
Retentive type for 100 ms T250 to T255 6 points 0.1 to 3,276.7 sec
1 ms T256 to T511 256 points 0.001 to 32.767 sec
General type up counter (16 bits) [variable] C0 to C99 100 points Counts 0 to 32,767 The setting can be changed between the latched (battery backed) type and the non-latched type using parameters.
Latched (battery backed) type up counter (16 bits) [variable]
C100 to C199 100 points
General type bi-directional counter (32 bits) [variable]
Section 4.6
C200 to C219 20 points −2,147,483,648 to +2,147,483,647 counts The setting can be changed between the latched (battery backed) type and the non-latched type using parameters.
Latched (battery backed) type bi-directional counter (32 bits) [variable]
C220 to C234 15 points
*1. Available device numbers vary depending on the PLC. For details, refer to Section 4.2.
*2. Operation varies when M2800 to M3071 are used in the LDP, LDF, ANDP, ANDF, ORP and ORF instructions. Refer to Section 7.5 for the details.
*3. For supported functions, refer to Chapter 37. For handling of the latched (battery backed) area, refer to Section 2.6.
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
4.1 Device Number List
Device name Description Reference
8 points maximum can be used among C235 to C255 [latched (battery backed) type]. The setting can be changed between the latched (battery backed) type and the non-latch type using parameters. −2,147,483,648 to +2,147,483,647 counts
1-phase 1-counting input Bi-directional (32 bits) C235 to C245
1-phase 2-counting input Bi-directional (32 bits) C246 to C250
1 phase: 100 kHz × 6 points, 10 kHz × 2 points 2 phases: 50 kHz (1 edge count), 50 kHz (4 edge count) Software counter 1 phase: 40 kHz 2 phases: 40 kHz (1 edge count), 10 kHz (4 edge count)
Section 4.8
2-phase 2-counting input Bi-directional (32 bits) C251 to C255
Data register (32 bits when used in pair form)
General type (16 bits) [variable] D0 to D199 200 points The setting can be changed between the latched (battery backed) type and the non-latched type using parameters.
latched (battery backed) type (16 bits) [variable]
D200 to D511 312 points
Section 4.9
latched (battery backed) type (16 bits) [fixed] <file register>
D512 to D7999
7488 points
Among the 7488 fixed latched (battery backed) type data registers, D1000 and later can be set as file registers in units of 500 points.
Special type (16 bits)*2 D8000 to D8511 512 points Chapter 37
Index type (16 bits) V0 to V7, Z0 to Z7 16 points Section 4.11
Extension register/Extension file register
Extension register (16 bits) R0 to R32767 32768 points latched (battery backed)
Section 4.10 Extension file register (16 bits) ER0 to ER32767 32768 points Available only while a memory cassette is mounted
For jump and branch call P0 to P4095 4096 points For CJ and CALL instructions
Section 4.12 Input interrupt Input delay interrupt I0 to I5 6 points
Timer interrupt I6 to I8 3 points
Counter interrupt I010 to I060 6 points For HSCS instruction
For master control N0 to N7 8 points For MC instruction
16 bits −32768 to +32767
32 bits −2,147,483,648 to +2,147,483,647
16 bits 0 to FFFF
32 bits 0 to FFFFFFFF
Real number (E) 32 bits −1.0 × 2128 to −1.0 × 2−126, 0, 1.0 × 2−126 to 1.0 × 2128
Both the decimal point expression and the exponent expression are available.
Specify characters by quotation marks. In a constant of an instruction, up to 32 half-width characters are available.
Character string (" ") Character string
*1. When the FX3U-4HSX-ADP is connected to an FX3U PLC, the maximum input frequency is set as follows: 1 phase: 200 kHz 2 phases: 100 kHz (1 edge count). 100 kHz (4 edge count)
*2. For supported functions, refer to Chapter 37. For handling of the latched (battery backed) area, refer to Section 2.6.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
4.2 I/O Relays [X, Y]
Some input relays and output relays are secured in the main unit, and others are assigned to extension devices according to the connection order. Because I/O replays are numbered in octal, numeric values such as "8" and "9" do not exist.
The table below shows input relay (X) and output relays (Y) numbering (Relay numbers are assigned in octal.
name FX3S-10M FX3S-14M FX3S-20M FX3S-30M
total Input X000 to X005
6 points X000 to X007
8 points X000 to X013
12 points X000 to X017
Output Y000 to Y003
4 points Y000 to Y005
6 points Y000 to Y007
8 points Y000 to Y015
name FX3G-14M FX3G-24M FX3G-40M FX3G-60M When extended
total Input X000 to X007
8 points X000 to X015
14 points(16)*1 X000 to X027
24 points X000 to X043
36 points(40)*1 X000 to X177
Output Y000 to Y005
6 points(8)*1 Y000 to Y011
10 points(16)*1 Y000 to Y017
16 points Y000 to Y027
24 points Y000 to Y177
FX 3GC PLC
total Input X000 to X017
16 points X000 to X177
Specified the Device & Constant
Output Y000 to Y017
16 points Y000 to Y177
name FX3U-16M FX3U-32M FX3U-48M FX3U-64M FX3U-80M FX3U-128M When extended
total Input X000 to X007
8 points X000 to X017
16 points X000 to X027
24 points X000 to X037
32 points X000 to X047
40 points X000 to X077
64 points X000 to X367
Output Y000 to Y007
8 points Y000 to Y017
16 points Y000 to Y027
24 points Y000 to Y037
32 points Y000 to Y047
40 points Y000 to Y077
64 points Y000 to Y367
name FX3UC-16M FX3UC-32M FX3UC-64M FX3UC-96M When extended
256 points in total Input X000 to X007
8 points X000 to X017
16 points X000 to X037
32 points X000 to X057
48 points X000 to X367
Output Y000 to Y007
8 points Y000 to Y017
16 points Y000 to Y037
32 points Y000 to Y057
48 points Y000 to Y367
total Input X000 to X017
16 points X000 to X357
Output Y000 to Y017
16 points Y000 to Y357
*1. A number inside ( ) indicates the number of occupied points. The difference from the number of valid points is unused.
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
4.2 I/O Relays [X, Y]
Examples of terminal names and wiring (sink input) are for the FX3U Series PLC.
S/S
Y000
Y000
Y000
Y000
Y000
PLC
The PLC receives signals from external switches through input terminals. An input relay (X) connected to an input terminal inside the PLC is an electronic relay isolated optically, and has many NO contacts and NC contacts. These contacts can be arbitrarily used inside the PLC. These input relays cannot be driven by the program.
The PLC outputs signals to external loads through output terminals. Contacts for external output (output devices such as relay contacts, triacs and transistors) of output relays are connected to output terminals inside the PLC. An output relay has many electronic NO contacts and NC contacts. These contacts can be arbitrarily used inside the PLC. Differences in operations between external output contacts (output devices) and internal contacts are explained on the next page.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
The PLC executes sequence control by repeatedly executing the following processing procedure. In this batch I/O method, not only are there driving times of input filters and output devices but also response delays caused by operation cycles. (Refer to Section 6.3.)
Input processing Before executing a program, the PLC reads the ON/ OFF status of all input terminals inside the PLC into the input image memory. Even if inputs change while the program is executed, the contents of the input image memory remain unchanged, but the changes in inputs are read during the input processing in the next cycle. Even if an input contact changes from ON to OFF or from OFF to ON, its ON/OFF status is judged after the response delay (approximately 10 ms) caused by the input filter. (When the input filter is a digital type input terminal , its value can be overwritten by a sequence program.)
Program processing The PLC reads the ON/OFF status of each device from the input image memory and other device image memories according to the contents of instructions in the program memory, executes operations in sequence from step 0, and then writes the operation result to the image memory. Accordingly, the contents of the image memory for each device change as the program is executed. The operation of a contact inside an output relay is determined by the contents of the output image memory.
Specified the Device & Constant
Y000
Repeated operation [The time required for a cyclic operation is called operation cycle (scan time).]
Output processing When execution of all instructions is finished, the ON/OFF status of the image memory of outputs (Y) is transferred to the output latch memory. This is the actual output of the PLC. External output contacts inside the PLC operate after the response delay time of the output devices.
Y001
Y002
The above method is called the batch I/O method (or refresh method).
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
4.3 Auxiliary Relay [M]
There are many auxiliary relays inside the PLC. Coils of auxiliary relays are driven by contacts of various devices inside the PLC in the same way as output relays. Auxiliary relays have many electronically NO contacts and NC contacts which can be used arbitrarily inside the PLC. However, external loads cannot be driven directly by these contacts. External loads should be driven by output relays.
The table below shows auxiliary relay (M) numbers. (Numbers are assigned in decimal.)
General type Fixed latched (EEPROM keep) type General type Special type
384 points M384 to M511
128 points M512 to M1535
1024 points M8000 to M8511
General type Fixed latched (EEPROM keep) type General type Special type
384 points M384 to M1535
1152 points M1536 to M7679
6144 points*1 M8000 to M8511
General type Latched (battery backed) type
Fixed latched (battery backed) type Special type
500 points*2 M500 to M1023
524 points*3 M1024 to M7679
6656 points*4 M8000 to M8511
*1. These registers can be changed to the latched (battery backed) type by the parameter setting when the optional battery is used. However, the latched range cannot be set.
*2. This area is not latched (battery backed). It can be changed to a latched (battery backed) area by setting the parameters.
*3. This area is latched (battery backed). It can be changed to a non-latched (non-battery-backed) area by setting the parameters.
*4. The characteristics of latch (battery backup) cannot be changed in the parameters.
When N : N Network or parallel link is used, some auxiliary relays are occupied for the link.
→ Refer to the Data Communication Edition manual.
M100
M100

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
2. Latched (battery backed) type When the power is turned OFF while the PLC is operating, all of the output relays and general type auxiliary relays turn OFF. When restoring the power again, all of the output relays and general type auxiliary relays remain OFF except those whose input condition is ON. In some output relays and auxiliary relays, however, the ON/OFF status just before power failure should be stored and then replicated when restoring the power, depending on control targets. In such a case, use latched (battery backed) type auxiliary relays. In FX3U/FX3UC PLCs, latched (battery backed) type devices are backed up by the battery built into the PLC. In FX3S/FX3G/FX3GC PLCs, latched type devices are backed up by the EEPROM built into the PLC. When the optional battery is installed in FX3G/FX3GC PLCs, the battery backs up some general type devices.
→ For details on backup method against power failure,
refer to Section 2.6. The figure on the left shows an operation example of M600 (latched [battery backed] type device) in a self-holding circuit. When X000 turns ON and M600 turns ON in this circuit, M600 holds its operation by itself even if X000 is opened. Because M600 is a latched (battery backed) type device, it remains activated when the operation is restarted even after X000 has turned OFF due to power failure. If an NC contact of X001 is opened when the operation is restarted, however, M600 is deactivated.
M600
PLC Backup against power failure
The figure on the left shows a circuit using the SET and RST instructions.
Specified the Device & Constant
PLC Backup against power failure
In some cases, the table should be restarted in the same direction as the direction selected just before power failure.
Left limit Limit switch
LS1 (X000) Right limit Limit switch
Table in reciprocating motion
X000 = ON (at the left limit) → M600 = ON→ The table is driven rightward. → The power is turned OFF. → The table is stopped in an intermediate position. → The table is restarted (M600 = ON). → X001 = ON (at the right limit) → M600 = OFF, M601 = ON → The table is driven leftward.
M600 Rightward drive command
M601 Leftward drive command
FNC10-FNC19 Move & Compare
ZRST M1024 M1999
FNC20-FNC29 Arith. & Logic Operation
M1024 to M1999 are initialized.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
4.4 State Relay [S]
State relays (S) are important devices to program stepping type process control simply, and combined with the step ladder instruction STL. State relays can be used in the SFC (sequential function chart) programming method.
→ For programming by the step ladder instruction and SFC method, refer to Chapter 35.
The table below shows state relay (S) numbers. (Numbers are assigned in decimal.)
Initial state type (EEPROM keep)
Fixed latched (EEPROM keep) type General type
S0 to S9 10 points S10 to S127
118 points S128 to S255
Initial state type (EEPROM keep)
Fixed latched (EEPROM keep) type
(EEPROM keep) General type
S0 to S9 10 points S10 to S899
890 points S900 to S999
100 points S1000 to S4095
Initial state type General type Latched (battery backed) type
Fixed latched (battery backed) type Annunciator type
10 points*2 S0 to S499
500 points*2 S500 to S899
400 points*3 S1000 to S4095
3096 points*4 S900 to S999
*1. These registers can be changed to the latched (battery backed) type by the parameter setting when the optional battery is used. However, the latched range cannot be set.
*2. This area is not latched (battery backed). It can be changed to a latched (battery backed) area by setting the parameters.
*3. This area is latched (battery backed). It can be changed to a non-latched (non-battery-backed) area by setting the parameters.
*4. The characteristics of latch (battery backup) cannot be changed in the parameters.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
1. General type In the stepping type process control shown in the left figure, when the start signal X000 turns ON, the state relay S20 is set (turned ON) and the solenoid valve Y000 for moving down turns on. When the lower limit switch X001 turns ON the state relay S21 is set (turned ON) and the solenoid valve Y001 for clamping turns on. When the clamp confirmation limit switch X002 turns ON, the state relay S22 is set (turned ON). When the operation proceeds to the next step, the state relay in the preceding step is automatically reset (turned OFF).
Y000
TRAN
Y001
When the PLC turns OFF, all of general type state relays are turned OFF. When the ON/OFF status just before power failure is required, use latched (battery backed) type state relays.
Y002
TRAN
State relays have many NO contacts and NC contacts in the same way as auxiliary relays, and such contacts can be used arbitrarily in sequence programs. When state relays (S) are not used for step ladder instructions, they can be used in general sequences in the same way as auxiliary relays (M) (as shown in the figure on the right).
Specified the Device & Constant
Y005
2. Latched (battery backed) type
→ For details on backup against power failure, refer to Chapter 2.6.
Ex. FX3U/FX3UC PLCs
ZRST S1000 S1200 0
S1000 to S1200 are initialized.
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
4.4 State Relay [S]
For example, when an external fault diagnosis circuit shown in the figure below is created and the contents of the special data register D8049 are monitored, the smallest number out of the active state relays S900 to S999 is stored in D8049. If two or more faults have occurred, the smallest state number having a fault is displayed at first. When the fault is cleared, the next smallest state number having a fault is stored.
When the special auxiliary relay M8049 is driven, monitoring becomes valid. •
Y000 X000 FNC 46
If the forward end detection input X000 is not activated within 1 second after the forward output Y000 is driven, S900 is activated.
X002 FNC 46
If both the upper limit detection input X001 and the lower limit detection input X002 are deactivated at the same time for 2 seconds or more, S901 is activated.
X003 X004 FNC 46
In a machine whose tact time is less than 10 seconds, if the switch X004 which is designed to be activated during one-cycle operation of the machine is not activated while the continuous operation mode input X003 is ON, S902 is activated.
M8048
Y010
When any annunciator among S900 to S999 turns ON, the special auxiliary relay M8048 is activated and the fault display output Y010 is activated.
The state relays activated by the external fault diagnosis program can be turned OFF by the reset button X005. Every time X005 is set to ON, the active annunciator with the smallest number is reset in turn.
While the special auxiliary relay M8049 is not driven, annunciator type state relays can be used as latched (battery backed) type state relays in sequence programs in the same way as general type state relays. In the SFC programming mode in the FX-PCS/WIN(-E), however, S900 to S999 cannot be programmed as a processes flow in SFC diagrams.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
4.5 Timer [T]
Timers add and count clock pulses of 1 ms, 10 ms, 100 ms, etc. inside the PLC. When the counted value reaches a specified set value, the output contact of the timer turns on. A set value can be directly specified by a constant (K) in the program memory, or indirectly specified by the contents of a data register (D).
The table below shows timer (T) numbers. (The numbers are assigned in decimal.) 1. FX3S PLC
For 100 ms pulses
pulses 0.1 to 3276.7 sec 0.01 to 327.67 sec
For 1 ms pulses 0.001 to 32.767 sec
1 ms pulses 0.001 to 32.767 sec
100 ms pulses 0.1 to 3276.7 sec
0 to 255 (numeric value)
0.1 to 3276.7 sec
2 built-in points*2
63 points T32 to T62
31 points T63 to T127
4 points Latched type*1
6 points Latched type*1
Stored in D8030 and
For 100 ms pulses
0.1 to 3276.7 sec For 10 ms pulses 0.01 to 327.67 sec
For 1 ms pulses 0.001 to 32.767 sec
1 ms pulses 0.001 to 32.767 sec
100 ms pulses 0.1 to 3276.7 sec
0 to 255 (numeric value)
200 points Routine program
2 built-in points*3
4 points for Interrupt execution
6 points Latched type*1
Stored in D8030 and
type T192 to T199
Specified the Device & Constant
For 100 ms pulses
0.1 to 3276.7 sec For 10 ms pulses 0.01 to 327.67 sec
For 1 ms pulses 0.001 to 32.767 sec
1 ms pulses*4
100 ms pulses*4
0.001 to 32.767 sec
0.1 to 3276.7 sec
200 points Routine program type
4 points for Interrupt execution
6 points Latched (battery
Timer numbers not used for timers can be used as data registers for storing numeric values.
*1. In FX3S/FX3G/FX3GC PLCs, retentive type timers are backed up by the EEPROM memory. *2. This function is not supported in the FX3S-30M /E -2AD PLC. *3. This function is supported only in FX3G PLC. *4. In FX3U/FX3UC PLCs, retentive type timers are backed up by the battery. 4.5.2 Functions and operation examples
1. General type When the drive input X000 of the timer coil T200 turns ON, the current value counter for T200 adds and counts clock pulses of 10 ms. When the counted value becomes equivalent to the set value K123, the output contact of the timer turns on. In other words, the output contact turns on 1.23 seconds after the coil is driven. When the drive input X000 turns OFF or when the power is turned off the timer is reset and the output contact returns.
K123
Set value (constant) A data register can be specified also.
1.23 sec
FNC10-FNC19 Move & Compare
[The program of 100 ms/10 ms type timer of the FX3S PLC]
For FX3S, driving M8028 ON, timers T32 to T62 are changed to 10 ms resolution.
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
4.5 Timer [T]
2. Retentive type When the drive input X001 of the timer coil T250 turns ON, the current value counter for T250 adds and counts clock pulses of 100 ms. When the counted value becomes equivalent to the set value K345, the output contact of the timer turns on. Even if the drive input X001 turns OFF or the power is turned off during counting, the timer continues counting when the operation restarts. The retentive operating time is 34.5 seconds. When the reset input X002 turns ON, the timer is reset and the output contact is returned.
![Mitsubishi Electronics MELSEC FX3S — 4.5 Timer [T] diagram (page 100)](/cdn/reader/06/06b6c5c8bfa3e981e964d8ed7432322fb86c682a85757d292a29f9cec2d4294a/images/fig-100-1.webp)
Set value (constant) A data register can be specified also. X002
t2 t1 Retentive time t1 + t2 = 34.5 sec
Values of variable analog potentiometers built in FX3S/FX3G PLCs as standard are stored as numeric data ranging from 0 to 255 in the following special registers in accordance with the scale position. An obtained numeric value can be specified as the indirectly specified value for a timer to make a variable potentiometer type analog timer.
This register stores the value (0 to 255) of variable analog potentiometer.
0 to 25.5 sec

"D8030 (VR2) value x 2" is transferred to D0 (D1).
The set value range can be changed (up to 32,767) by multiplying the register value by "n".
*1. This function is not supported in the FX3S-30M /E -2AD PLC.
The value of a variable analog potentiometer board which can be built in an FX3S/FX3G/FX3U/FX3UC- 32MT-LT(-2) PLC can be obtained as numeric data ranging from 0 to 255 in accordance with the scale position. An obtained numeric value can be specified as the indirectly specified value for a timer to make a variable potentiometer type analog timer. Use the FNC 85 (VRRD) instruction to take the value of a variable analog potentiometer into the PLC.

→ For FNC 85 (VRRD), refer to Section 16.6. Use the FNC 86 (VRSC) instruction to take the value of a variable analog potentiometer as a numeric value ranging from 0 to 10.
The analog value of the potentiometer No. 0 is converted into binary 8-bit data, and a numeric value ranging from 0 to 255 is transferred to D0. In this application example, the value of D0 is used as the set value of a timer.
→ For FNC 86 (VRSC), refer to Section 16.7.
[Basic example]

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
Constant (decimal integer) 10-second timer
MOV K100 D 5
D5 = K100 10-second timer
4.5.4 Cautions on routines
1) Use timers T192 to T199 in subroutines and interrupt routines. These timers execute counting when a coil instruction or END instruction is executed. When such a timer reaches the set value, its output contact turns on when a coil instruction or END instruction is executed. Because general type timers execute counting only when a coil instruction is executed (Refer to "4.5.5 Details on timer operation and timer accuracy" below), they do not execute counting and do not operate normally if they are used in subroutines or interrupt routines in which a coil instruction is executed only in a certain condition.
Specified the Device & Constant
A timer (except interrupt execution type) starts counting when a coil is driven, and its output contact turns on when the first coil instruction is executed after the timer has reached timeout.
Counting operation (If the operation cycle is long, it automatically counts two or more clocks.) Contact is not
Input processing X010 = OFF→ON
activated at this point
T 0 Contact is activated
K12
1.2 sec time-
Y010 ON
Y010
2nd cycle "n"th cycle "n+1"th cycle
As shown in the above operation diagram, the accuracy of operation of the timer contact after the coil is driven until the contact turns on is shown in the following outline:
α : 0.001 sec (timer for 1 ms), 0.01 sec (timer for 10 ms) or 0.1 sec (timer for 100 ms) T : Timer set value (sec) T0: Operation cycle (sec) T
If the contact is programmed before the timer coil, "+2T0" is obtained in the worst case. When the timer set value is "0", the output contact turns on when a coil instruction is executed in the next cycle. An interrupt execution type timer for 1 ms pulses counts clock pulses of 1 ms as an interrupt processing after a coil instruction has been executed.
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
4.5 Timer [T]
Off-delay timer
![Mitsubishi Electronics MELSEC FX3S — 4.5.6 Program examples [off-delay timer and flicker timer] diagram (page 102)](/cdn/reader/06/06b6c5c8bfa3e981e964d8ed7432322fb86c682a85757d292a29f9cec2d4294a/images/fig-102-1.webp)

In addition, the flicker operation can be performed by the ALT (FNC 66) instruction.
Multi-timer by the applied instruction STMR (FNC 65) <FX3U/FX3UC PLC>
By this instruction, off-delay timers, one-shot timers and flicker timers can be easily created.
→ For details, refer to Section 14.6.

A value specified by "m" becomes the set value of the timer specified by . 10-second in this example.
M1 is a one-shot timer after "ON → OFF" operation. •
M2 and M3 are provided for a flicker timer, and connected as shown in the program example for flicker timer (below).

When M3 is connected as shown in the left figure, M2 and M1 become flicker outputs. •
When X000 is set to OFF, M0, M1 and M3 are turned OFF and T10 is reset after the set time. •
Do not use the timers here in other general circuits again. •
In addition, the timer time can be set according to the switch input time by the teaching timer instruction TTMR (FNC 64).

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
In timers, the output contact operating in accordance with the set value is used in some cases, and the present value is used as numeric data for control in other cases. The figures below show the structure of the timer present value registers. When a timer number is specified in an operand of an applied instruction, the timer is handled as a device storing 16-bit or 32-bit data in the same way as data registers.
Low order 16 bits Available numeric value range 16-bit : 0 to 32,767 32-bit : -2,147,483,648 to +2,147,483,647
1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0
1 2 4 8 16 32 64 128 256 512 1024 2048 4096 8192 16384
*1 The sign is valid only when a timer is handled as a substitute for data register.
High order 32 bits
0 1 0 1
1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0
32768 65536 131,072 262,144 524,288 1,048,576 2,097,152 4,194,304 8,388,608 16,777,216 33,554,432 67,108,864 134,217,728 268,435,456 536,870,912 1,073,741,824
1 2 4 8 16 32 64 128 256 512 1024 2048 4096 8192 16384
Specified the Device & Constant
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
4.6 Counter [C]
The table below shows counter (C) numbers. (Numbers are assigned in decimal.)
32-bit bi-directional counter Counting range: −2,147,483,648 to +2,147,483,647
General type Fixed latched (EEPROM keep) type General type
16 points C16 to C31
16 points C200 to C234
32-bit bi-directional counter Counting range: −2,147,483,648 to +2,147,483,647
General type Fixed latched (EEPROM keep) type General type Fixed latched (EEPROM keep) type
16 points C16 to C199
184 points C200 to C219
20 points C220 to C234
32-bit bi-directional counter Counting range: −2,147,483,648 to +2,147,483,647
Latched (battery backed) type (protected by battery against
Latched (battery backed) type (protected by battery against
100 points*1 C100 to C199
100 points*2 C200 to C219
20 points*1 C220 to C234
*1. This area is not latched (battery backed). It can be changed to a latched (battery backed) area by setting the parameters.
*2. This area is latched (battery backed). It can be changed to a non-latched (non-battery-backed) area by setting the parameters.
Counter numbers not used as counters can be converted as data registers for storing numeric values.
The table below shows the features of 16-bit counters and 32-bit counters. They can be used in accordance with the operating condition such as the counting direction switching and counting range, etc.
Item 16-bit counter 32-bit counter
Counting direction Up-counting Up-counting and down-counting can be switched (as shown in Subsection 4.6.3)
Set value 1 to 32767 −2,147,483,648 to +2,147,483,647
Set value specification Constant (K) or data register Constant (K) or a pair of data registers
Current value change Does not change after counting up Changes even after counting up (ring counter)
Output contact Latches after counting up Latches (in up-counting), or reset (in down-counting)
Reset operation When RST instruction is executed, current value of counter is reset to "0" and output contact returns
Current value register 16 bits 32 bits

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
When an auxiliary relay for switching the counting direction is set to ON, the counter executes down-counting, and when set to OFF, the counter executes up-counting.
Counter No.
Counter No.
Counter No.
Counter No.
C201 M8201 C210 M8210 C219 M8219 C228 M8228
C202 M8202 C211 M8211 C220 M8220 C229 M8229
C203 M8203 C212 M8212 C221 M8221 C230 M8230
C204 M8204 C213 M8213 C222 M8222 C231 M8231
C205 M8205 C214 M8214 C223 M8223 C232 M8232
C206 M8206 C215 M8215 C224 M8224 C233 M8233
C207 M8207 C216 M8216 C225 M8225 C234 M8234
C208 M8208 C217 M8217 C226 M8226
4.6.4 Functions and operation examples
1. General type and latched (battery backed) type 16-bit up counters
Specified the Device & Constant
K10
0 1 2 3 4 5 6 7 8 9 10
Set value (constant) It can be specified indirectly also.
Y000
FNC10-FNC19 Move & Compare
→ For details on backup methods against power failure, refer to Section 2.6.
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
4.6 Counter [C]

0 1 2 3 4 5 4 3 2 1 0
−1−2−3−4−5−6−7−8
When output has been already activated. −7−6−5−4−3
Set value (constant) It can be specified indirectly also.
→ For details on backup methods against power failure, refer to Section 2.6.
1. 16-bit counter

Counts to the indirectly specified value of the defined data register, previously set by a digital switch. Note that the set value of a latched (battery backed) type register is not held correctly sometimes when the battery voltage becomes low.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
Pairs of data registers are used for indirect specification. Use a 32-bit instruction for writing the set value, and make sure that the latter of paired registers (D6 in this example) does not overlap with other programs because it is not shown in ladder format.
C200 D5(D6)
4.6.6 Response speed of counters
Counters execute counting by cyclic operating for contact operations of internal signals X, Y, M, S, C, etc. inside the PLC. For example, when X011 is specified as counting input, its ON duration and OFF duration should be longer than the scan time of the PLC (which is tens of Hz or less usually). On the other hand, high-speed counters described later execute counting as an interrupt processing for specific input, and can execute counting at 5 k to 6 kHz regardless of the scan time.
→ For high-speed counters, refer to Section 4.7 or 4.8.
Specified the Device & Constant
Counters use output contacts operating in accordance with the set value or use the counter value (current value) as numeric data for control. The figure below shows the structure of the current value register of a counter. When a counter number is specified in an operand of an applied instruction in execution, the counter is handled as a device storing 16-bit or 32-bit data in the same way as data register. A 32-bit counter is handled as 32-bit data.
Low order 16 bits Available numeric value range 16-bit counter: 0 to 32767 32-bit counter: −2,147,483,648 to +2,147,483,647
1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0
1 2 4 8 16 32 64 128 256 512 1024 2048 4096 8192 16384
*1. The sign is valid only when a counter is handled as a substitute for data register.
Low order 32 bits
1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0
0 1 0 1
32768 65536 131,072 262,144 524,288 1,048,576 2,097,152 4,194,304 8,388,608 16,777,216 33,554,432 67,108,864 134,217,728 268,435,456 536,870,912 1,073,741,824
1 2 4 8 16 32 64 128 256 512 1024 2048 4096 8192 16384
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
4.6 Counter [C]

A decimal integer "100" is compared with C30 (current value), and the result is output to M0 to M2.
The contents of C10 (current value) are converted into BCD, and output to Y000 to Y007. (Seven-segment display unit is controlled.)
C5 (current value) is multiplied by 2, and transferred to (D5, D4).
C 200 (current value) is transferred to (D1, D0).
C200 (current value) is compared with a decimal integer zone 100 to 20000, and the result is output to M10 and M12.
*1. Make sure to use 32-bit operation instructions for 32-bit counters.

Counting is executed when X000 is ON. OUT instruction
Program in the following way to disable counting after execution of the ZRST instruction:


FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
4.7 High-Speed Counter [C] (FX 3S /FX 3G /FX 3GC PLCs)
→ For the limitation of response frequency depending on the total frequency, refer to Subsection 4.7.7.
Input signal form Counting direction
Down-count or up-count is specified by turning on or off M8235 to M8245. ON: Down-counting OFF: Up-counting
A counter executes up-count or down- count as shown on the left. The counting direction can be checked with M8246 to M8250. ON: Down-counting OFF: Up-counting
−1 −1 −1
Specified the Device & Constant
A counter automatically executes up- count or down-count according to changes in the input status of the A/B phase as shown on the left. The counting direction can be checked with M8251 to M8255. ON: Down-counting OFF: Up-counting
−1 −1
General-purpose inputs X000 to X007 are used for high-speed counter inputs. An encoder*1 adopting the output method shown in the table below can be connected depending on the connected terminal. Encoders adopting the voltage output method and absolute encoders cannot be connected to high-speed counter inputs.
→ For the wiring, refer to the Hardware Edition of the main unit.
Output method of encoder which can be directly connected to input terminal in main unit Open collector transistor output method compatible with 24V DC
*1. A rotary encoder adopting the output method shown above may not operate correctly depending on the electrical compatibility. Check the specifications before connecting an encoder.
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
4.7 High-Speed Counter [C] (FX3S/FX3G/FX3GC PLCs)
Classification Counter No. Data length External reset input terminal
External start input terminal
Not provided Not provided
C244 C245 Provided Provided
Not provided Not provided
C247 C248 Provided Not provided
C249 C250 Provided Provided
Not provided Not provided
C254(OP)*2 32-bit bi-directional
C252 C253 Provided Not provided
C254 C255 Provided Provided
*1. C248 and C253 are usually used as counters having reset input, but can be used as counters C248 (OP) and C253 (OP) not having reset input when used together with special auxiliary relays M8388 and M8392.
→ For the method to switch the counter function, refer to Subsection 4.7.6.
*2. C254 is usually used as a counter having reset input and start input, but can be used as a counter C254 (OP) not having reset input or start input when used together with special auxiliary relays M8388 and M8395. This function is supported only in FX3G/FX3GC PLCs.
→ For the method to switch the counter function, refer to Subsection 4.7.6.
In some high-speed counters in FX3S/FX3G/FX3GC PLCs, the input terminal assignment is changed over when used together with special auxiliary relays. Such high-speed counter devices are classified below. Note that description as (OP) is not available in programming.
Standard Device Numbers Switched Device Numbers
C253 C253(OP)
C254 C254(OP)

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
Inputs X000 to X007 are assigned as shown in the table below according to each high-speed counter number. When a high-speed counter is used, the filter constant of a corresponding input number in the main unit automatically changes.
→ For the input specifications of the main unit, refer to the Hardware Edition of the main unit.
Counter No. Input terminal assignment
C235 U/D
C236 U/D
C237 U/D
C238 U/D
C239 U/D
C240 U/D
C241 U/D R
C242 U/D R
C243 U/D R
C244 U/D R S
C245 U/D R S
Specified the Device & Constant
C247 U D R
C248 U D R
C248(OP) U D
C249 U D R S
C250 U D R S
C251 A B
C252 A B R
C253 A B R
C253(OP) A B
C254 A B R S
C254(OP) A B
C255 A B R S
U: Up-counting input D: Down-counting input A: A phase input B: B phase input R: External reset input S: External start input
Inputs X000 to X007 are used for high-speed counters, input interrupt, pulse catch, SPD/ZRN/DSZR instructions and general-purpose inputs. When assigning functions, there should be no overlap between those input terminals.
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
4.7 High-Speed Counter [C] (FX3S/FX3G/FX3GC PLCs)
High-speed counters in FX3G/FX3GC PLCs operate in the same way as high-speed counters in FX3U/FX3UC PLCs. For details, refer to Subsection 4.8.3.
2. Comparison of the Current value The following two methods are available to compare and output the current value of a high-speed counter. 1) Using the comparison instruction (CMP), zone comparison instruction (ZCP) or comparison contact instruction Use the comparison instruction (CMP), band comparison instruction (ZCP) or contact comparison instruction if the comparison result is necessary at counting. Use these instructions only when high-speed processing is not required because these instructions are processed in the operation cycle of the PLC, and operation delay is generated before the comparison output result is obtained. If it is necessary to execute comparison to update an output contact with the high-speed counter's changing value, use comparison instructions for high-speed counters HSCS, HSCR and HSZ.
2) Using comparison instructions for high-speed counters (HSCS, HSCR or HSZ) The comparison instructions for high-speed counters (HSCS, HSCR and HSZ) execute a comparison and output the comparison result during high-speed counting. These instructions have limitations on the number of simultaneously driven instructions as shown in the following table. When an output relay is specified for the comparison result, the comparison result is directly updated at the ON/ OFF status of the output regardless of the output refresh by END instruction. Mechanical operation delay (about 10 ms) cannot be avoided in a relay output type PLC. Use a transistor output type PLC.
Instruction Limitation in number of instructions driven at same time
HSZ
4.7.5 Related devices
Type Counter No. Specifying device Up-counting Down-counting
C236 M8236
C237 M8237
C238 M8238
C239 M8239
C240 M8240
OFF ON
C241 M8241
C242 M8242
C243 M8243
C244 M8244
C245 M8245
6 instructions HSCR · 1-phase 1-counting input

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
Type Counter No. Monitoring device OFF ON
C247 M8247
C248 M8248
C249 M8249
C250 M8250
C251 M8251
C252 M8252
C253 M8253
C254 M8254
C255 M8255
3. Devices used to switch the high-speed counter function
Device No. Name Description
M8388 Contact for changing function of high-speed counter Changes the function of high-speed counter.
M8392 Function switching device
Switches the function of C248 and C253. (For details, refer to Subsection 4.7.6.)
M8395 Switches the function of C254. (For details, refer to Subsection 4.7.6.)
When the counters C248, C253 and C254 are combined with the following special auxiliary relays, the allocation of the input terminals and functions are changed. In a program, put a special auxiliary relay just before a target counter.
Specified the Device & Constant
Counter No. When using assignment of counter input terminal and
switching of function Description
M8392
C248(OP) • Reset input is not provided.
M8388
M8392
C253(OP) • Reset input is not provided.
M8395
C254(OP)
K {{{
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
4.7 High-Speed Counter [C] (FX3S/FX3G/FX3GC PLCs)
*1. This function is supported only in FX3G/FX3GC PLCs.
Overall frequency determined by condition of used instruction
Counter type Response frequency
When HSCS, HSCR or HSZ
When HSCS, HSCR or HSZ instruction is
instruction is not used
C235, C236, C241 60kHz
C247, C248, C248(OP), C249, C250
- Number of positioned axes*2
- Number of positioned axes*2 x 5 kHz
C252, C253, C254, C253(OP), C255 5kHz
*2. Number of axes used in the following positioning instructions: PLSY (FNC 57), PLSR (FNC 59), DSZR (FNC150), ZRN (FNC156), PLSV (FNC157), DRVI (FNC158), DRVA (FNC159)
Overall frequency determined by condition of used instruction
Counter type Response frequency
When HSCS, HSCR or HSZ
When HSCS, HSCR or HSZ instruction is
instruction is not used
C235, C236, C238, C239, C241 60kHz
C237, C240, C242, C243, C244, C245 10kHz
- (Number of positioned axes*3
- (Number of positioned axes*3 x 5 kHz)
C247, C248, C249,C250 10kHz
+ Number of pulse width/period
- (Number of pulse width/period
measurement inputs x 20 kHz)
C252, C253, C254, C254(OP), C255 5kHz
*3. Number of axes used in the following positioning instructions: PLSY (FNC 57), PLSR (FNC 59), DSZR (FNC150), TBL (FNC152), ZRN (FNC156), PLSV (FNC157), DRVI (FNC158), DRVA (FNC159)
Total frequency ≥ [(Sum of used frequency of 1-phase counters) + (Sum of used frequency of 2-phase counters)]

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
positioning axes (DRVI instruction [Y000], DRVA instruction [Y001]) are used in the FX3G PLC
C235(1-phase 1-counting) 50 kHz is input.
C236(1-phase 1-counting) 50 kHz is input.
C237(1-phase 1-counting) 10 kHz is input.
C253(2-phase 2-counting) 5 kHz is input.
Example2: When the HSCS, HSCR or HSZ instruction is not used, and instructions related to the number of
positioning axes (DRVI instruction [Y000]) and the number of pulse width/pulse period measurement inputs [X003] are used in the FX3G PLC
C235(1-phase 1-counting) 50 kHz is input.
C236(1-phase 1-counting) 50 kHz is input.
Specified the Device & Constant
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
4.7 High-Speed Counter [C] (FX3S/FX3G/FX3GC PLCs)

Program a contact which is normally ON during counting.
If a number of input relay for counting is specified, high-speed counter cannot execute accurate counting.
RST C235 C235 is reset while X010 turns ON.

Current value of C235 1 2 3 The current value does not change even if pulses are input because the C235 reset instruction is valid.
"RST C235" is set to ON because the contact turns ON.
"RST C235" is set to OFF because the contact turns OFF.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
FNC 12 DMOV K0 C235 The current value of C235 is cleared (to "0").
*1. When the driving contact is the continuous execution type, the current value of the counter is reset to "0" at each scan while X010 remains ON.
Current value of C235 1 2 3
Because X010 turns ON, "FNC 12 DMOV" is executed. The current value of C235 is reset to "0".
Because the driving contact is the pulse execution type, C235 executes counting normally after that.
Specified the Device & Constant
RST C235 - - - - - A
M8001
RST C235 - B RUN Monitor (normally OFF)
*2. When the driving contact is the continuous execution type, the current value of the counter is reset to "0" and the counter reset status is cleared at each scan while X010 remains ON.
1 2 3 4
Current value of C235 1 2 3
Because the reset instruction is deactivated, C235 executes counting.
Counter reset instruction is deactivated (part B in above program).
Counter is reset (part A in above program).
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
4.8 High-Speed Counter [C] (FX3U/FX3UC PLC)
High-speed counter only available in DC input type main units.
→ For the condition handled as software counters, refer to Subsection 4.8.9.

Down-count or up-count is specified by turning on or off M8235 to M8245. ON: Down-counting OFF: Up-counting
A counter executes up-count or down- count as shown on the left. The counting direction can be checked with M8246 to M8250. ON: Down-counting OFF: Up-counting
1 edge count A counter automatically executes up- count or down-count according to changes in the input status of the A/B phase as shown on the left. The counting direction can be checked with M8251 to M8255. ON: Down-counting OFF: Up-counting
General-purpose inputs X000 to X007 are used for high-speed counter inputs. An encoder*1 adopting the output method shown in the table below can be connected depending on the connected terminal. Encoders adopting the voltage output method and absolute encoders cannot be connected to high-speed counter inputs.
→ For the wiring, refer to the Hardware Edition of the main unit.
Output method of encoder which can be directly connected to input terminal in main unit Open collector transistor output method compatible with 24V DC
Output method of encoder which can be directly connected to input terminal in FX3U-4HSX-ADP
Differential line driver output method (output voltage: 5V DC or less)
*1. A rotary encoder adopting the output method shown above may not operate correctly depending on the electrical compatibility. Check the specifications before connecting an encoder.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
Classification Counter No. Edge count Data length External reset input terminal
External start input terminal
C236 *2
C237 *2
C238 *2
Not provided Not provided
C240 *2
C244(OP) *3
C245(OP) *3 −
C241 C242 C243
− Provided*5 Not provided
C245*3 − Provided*5 Provided
Hardware counter*1 C246*2
Not provided Not provided
C248*3 − Provided*5 Not provided
C249 C250 − Provided*5 Provided
Not provided 4*4
C253*2 1*4 Provided*5 4*4
C252 1*4 Provided*5
Not provided 4*4
Specified the Device & Constant
C253(OP)*6 1*4 Not provided 4*4
1*4 Provided*5 Provided 4*4
*1. They are handled as software counters depending on the operating condition. When they are handled as software counters, they have limitations on both maximum response frequency and total frequency.
→ For the condition handled as software counters, refer to Subsection 4.8.9.
→ For the total frequency, refer to Subsection 4.8.10.
*2. Cautions on wiring should be considered for these high-speed counters.
→ For the wiring, refer to the Hardware Edition of the main unit.
*3. C244, C245 and C248 are usually used as software counters, but can be used as hardware counters C244 (OP), C245 (OP) and C248 (OP) by combining a special auxiliary relay (M8388, M8390 to M8392).
→ For the method to switch the counter function, refer to Subsection 4.8.7.
*4. 2-phase 2-input counter is usually 1 edge count counter, but can be used as a 4 edge count counter by combining a special auxiliary relay (M8388, M8198 or M8199).
→ For the method to use a 2-phase 2-input 4 edge count counter, refer to Subsection 4.8.8.
*5. The external reset input is usually reset by turning ON, but can be changed to be reset by turning OFF by combining special auxiliary relays (M8388 and M8389).
→ For the method to change the logic of the external reset input, refer to Subsection 4.8.6.
*6. The counter C253 is usually used as a hardware counter, but can be used as the counter C253 (OP) not equipped with reset input by combining special auxiliary relays (M8388 and M8392). In this case, C253 (OP) is handled as a software counter.
For some high-speed counters in FX3U and FX3UC PLCs, the assignment of input terminals will switch when special auxiliary relays are used. Such high-speed counter devices are classified below. Note that description as (OP) is not available in programming.
FNC10-FNC19 Move & Compare
Standard Device Numbers Switched Device Numbers Standard Device Numbers Switched Device Numbers
C245 C245(OP) C253 C253(OP)
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
4.8 High-Speed Counter [C] (FX3U/FX3UC PLC)
Inputs X000 to X007 are assigned as shown in the table below according to each high-speed counter number. When a high-speed counter is used, the filter constant of a corresponding input number in the main unit automatically changes (X000 to X005: 5 µs, X006 and X007: 50 µs). Input terminals not used for high-speed counters, however, can be used as general inputs. When FX3U-4HSX-ADP unit is connected to an FX3U PLC, input terminals inside bold-line frames in the table below are assigned to the first FX3U-4HSX-ADP unit, and other input terminals are assigned to the second FX3U-4HSX-ADP unit.
→ For the input specifications of the FX3U-4HSX-ADP, refer to the FX3U Hardware Edition. → For the input specifications of the main unit, refer to the Hardware Edition of the main unit.

H/W: Hardware counter S/W: Software counter U: Up-counting input D: Down-counting input A: A phase input B: B phase input R: External reset input S: External start input
*1. Cautions on wiring should be considered for these high-speed counters.
→ For the wiring, refer to the Hardware Edition of the main unit.
*2. Hardware counters are switched to software counters when a comparison set/reset instruction for high-speed counter (DHSCS, DHSCR, DHSZ or DHSCT) is used. The counter C253 is switched to a software counter when the logic of the external reset input signal is reversed.
→ For the condition under which it is handled as a software counter, refer to Subsection 4.8.9.
*3. When a special auxiliary relay is driven in a program, the input terminals and their associated functions are switched.
→ For the method to use a software counter as a hardware counter, refer to Subsection 4.8.7.
*4. In a 2-phase 2-count input counter, the edge count is usually 1. But the edge count can be set to 4 by combining a special auxiliary relay.
→ For the method on how to use a 2-phase 2-count input counter with on edge count of 4,
refer to Subsection 4.8.8.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
1. 1-phase 1-count input
Specified the Device & Constant
Set value is (D1, D0)
Operation example The counter C235 shown above operates as follows:
Up counting Down counting Up counting
0 1 2 3 4 5 4 3 2 1 0
−1−2−3−4−5−6−7−8
When output has already been activated
−4−3
−7−6−5
When counting with input X000, C235 executes up-count or down-count as an interrupt.
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
4.8 High-Speed Counter [C] (FX3U/FX3UC PLC)



FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
−1 −1
- When the counter is operating at the 4 edge count
+1
−1
+1
−1
Current value update timing
Hardware counter When OUT or HCMOV instruction is executed for the counter
Specified the Device & Constant
Software counter Every time a pulse is input
*1. If it is necessary to execute comparison to update an output contact with the high-speed counter's changing value, use comparison instructions for high-speed counters (HSCS, HSCR, HSZ or HSCT).
2) Using comparison instructions for high-speed counters (HSCS, HSCR, HSZ or HSCT) The comparison instructions for high-speed counters (HSCS, HSCR, HSZ and HSCT) execute a comparison and output the comparison result during high-speed counting. These instructions have limitations on the number of simultaneously driven instructions as shown in the following table. The HSCT instruction can only be used once in any program. When an output relay is specified for the comparison result, the comparison result is directly updated at the ON/ OFF status of the output regardless of the output refresh by END instruction. Mechanical operation delay (about 10 ms) cannot be avoided in a relay output type PLC. Use a transistor output type PLC.
Instruction Limitation in number of instructions driven at same time
32 instructions including HSCT instruction HSCR
HSCT*2 Only 1 (This instruction can only be used once.)
*2. When HSZ or HSCT instruction is used, the maximum response frequency and total frequency of all software counters are affected.
FNC10-FNC19 Move & Compare
→ For the maximum response frequency and total frequency of software counters,
refer to Subsection 4.8.10.
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
4.8 High-Speed Counter [C] (FX3U/FX3UC PLC)
Type Counter No. Specifying device Up-counting Down-counting
C236 M8236
C237 M8237
C238 M8238
C239 M8239
C240 M8240
OFF ON
C241 M8241
C242 M8242
C243 M8243
C244 M8244
C245 M8245
Type Counter No. Monitoring device OFF ON
C247 M8247
C248 M8248
C249 M8249
C250 M8250
C251 M8251
C252 M8252
C253 M8253
C254 M8254
C255 M8255
3. Devices used to switch the high-speed counter function
Device No. Name Description
M8388 Contact for changing function of high-speed counter Changes the function of high-speed counter.
Switches the logic of the external reset input. (For details, refer to Subsection 4.8.6.)
M8390 Switches the function of C244. (For details, refer to Subsection 4.8.7.)
M8391 Switches the function of C245. (For details, refer to Subsection 4.8.7.)
M8392 Switches the function of C248 and C253. (For details, refer to Subsection 4.8.7.)
M8198 Switches the edge count (between 1 and 4) of C251, C252 and C254. (For details, refer to Subsection 4.8.8.)
M8199 Switches the edge count (between 1 and 4) of C253, C255 and C253 (OP). (For details, refer to Subsection 4.8.8.)
Device No. Name Description ON OFF
Operation status of C235, C241, C244, C246, C247, C249, C251, C252 or C254
M8381*1 Operation status of C236
M8382*1 Operation status of C237, C242 or C245
M8383*1 Operation status of C238, C248, C248(OP), C250, C253 or C255
M8384*1 Operation status of C239 or C243
M8385*1 Operation status of C240
M8386*1 Operation status of C244(OP)
M8387*1 Operation status of C245(OP)
*1. Cleared when the PLC mode switches from STOP to RUN.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
The counters C241 to C245, C247 to C250 and C252 to C255 are usually reset when the external reset input turns ON. By using the program shown below, the logic can be inverted so that these counters are reset when the external reset input turns OFF.
Counter No. When inverting logic of external reset input signal Description
C241 to C245 C247 to C250 C252 to C255
The logic of the external reset input is inverted so that the counters are reset when the input turns OFF. (The logic is inverted for all target counters.)
Caution
The counter C253 is switched to a software counter when the logic of the external reset input signal is inverted.
The assignment of the input terminal and the function of the software counters C244, C245, C248 and C253 are changed as shown below when combined with the following special auxiliary relays. In a program, put a special auxiliary relay just before a target counter.
Counter No. When using software counter as hardware counter Description
C244(OP)
K {{{
Specified the Device & Constant
C245(OP)
K {{{
M8388
M8392
M8388
M8392
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
4.8 High-Speed Counter [C] (FX3U/FX3UC PLC)
4.8.8 How to use 2-phase 2-count input counters C251 to C255 with 4 edge counting
For the 2-phase 2-count input counters C251 to C255, the edge count is usually set to 1. By using the programs shown in the table below, the edge count may be set to 4.

Counter No. When using 2-phase 2-count input counters with 4 edge

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
High-speed counters are classified into hardware counters and software counters. In some conditions, however, hardware counters are handled as software counters. In this case, use hardware counters within the range of maximum response frequency and total frequency as determined for software counters.
Hardware counter No. Condition in which hardware counters are handled as software counters
Because hardware counters execute counting at the hardware level of the FX3U/FX3UC, they can execute counting regardless of the total frequency. However, when hardware counters are handled as software counters with the following conditions, their maximum response frequency and total frequency are limited in the same way as the software counters. Use M8380 to M8387 to verify that high-speed counters are handled as hardware counters or software counters. • When DHSCS (FNC 53), DHSCR (FNC 54), DHSZ (FNC 55) or DHSCT (FNC280) instruction is used for a hardware counter number, the hardware counter is handled as a software counter. Example: C235
C235 C236 C237 C238 C239 C240 C244(OP) C245(OP) C246 C248(OP) C251 C253
In this case, C235 is handled as a software counter.
Specified the Device & Constant
→For logic inversion of the external reset input signal, refer to Subsection 4.8.6.
M8389
K {{{
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
4.8 High-Speed Counter [C] (FX3U/FX3UC PLC)
→ For the conditions in which hardware counters are handled as software counters,
refer to the previous page.
Counter type Counter No.
Main unit FX3U-4HSX-ADP
1-phase 1-counting input C235, C236, C237, C238, C239, C240 100 kHz
200 kHz C244(OP), C245(OP) 10 kHz
1-phase 2-counting input C246, C248(OP) 100 kHz
1 edge count C251, C253
50 kHz 100 kHz
4 edge count 50 kHz 100 kHz
2. Response frequency and total frequency of software counters The table below shows the maximum response frequency and total frequency of software counters. When using the HSZ or HSCT instruction in a program, both the maximum response frequency and the total frequency are limited for all software counters without regarding the operands of the instruction. When examining a system or creating a program, consider the limitations, and use software counters within the allowable range of maximum response frequency and total frequency.
→ For the conditions handled as software counters, refer to the previous page.
Response frequency and total frequency according to instructions used
When HSZ and HSCT
When only HSCT instruction is used
When only HSZ instruction is used
When both HSZ and HSCT
software counter with HSCS, HSCR,
C235, C236, C237, C238, C239, C240
− C244(OP), C245(OP) × 1 10 10
80− 1.5×(Num ber of instruc-
60− 1.5×(Num ber of instruc-
C246, C248(OP) × 1 40 30
1 edge count C252, C253(OP), C254, C255
×1 40 30
4 edge count ×4 10 7.5
ber of instruc- tion) ÷ 4
*1. When an index register is added to a counter number specified by a HSCS, HSCR, HSZ or HSCT instruction, all hardware counters are switched to software counters.
*2. The high-speed counters C244 (OP) and C245 (OP) can count up to 10 kHz.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
Response frequency and total frequency according to instruction use condition
When HSZ and HSCT
When only HSCT instruction is used
When only HSZ instruction is used
When both HSZ and HSCT
software counter with HSCS, HSCR,
C235, C236, C237, C238, C239, C240
50− 1.5×(Num ber of instruc-
50− 1.5×(Num ber of instruc-
1-phase 2-counting input C247, C248, C249, C250
1 edge count C252, C253(OP), C254, C255
×1 30 25
4 edge count ×4 7.5 6.2
ber of instruc- tion) ÷ 4
*1. When an index register is added to a counter number specified by a HSCS, HSCR, HSZ or HSCT instruction, all hardware counters are switched to software counters.
*2. The high-speed counters C244 (OP) and C245 (OP) can count up to 10 kHz.
Total frequency ≥ Sum of "Response frequency of high-speed counter × Magnification for calculating total frequency"
Specified the Device & Constant
Used high-speed counter No. Input frequency
C237 Operates as software counter 30 kHz 40 − 6 (times) = 34 kHz × 1
HSZ instruction × 6
20 kHz 40 − 6(times) = 34 kHz × 1
C253(OP) [4 edge count] 4 kHz {40 − 6(times)} ÷ 4 = 8.5 kHz × 4
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
4.8 High-Speed Counter [C] (FX3U/FX3UC PLC)

Program a contact which is normally ON during counting.
If a number of input relay for counting is specified, high-speed counter cannot execute accurate counting.
RST C235 C235 is reset while X010 turns ON.
RST C235 C235 is reset while X010 turns ON.

Current value of C235 1 2 3 The current value does not change even if pulses are input because the C235 reset instruction is valid.
"RST C235" is set to ON because the contact turns ON.
"RST C235" is set to OFF because the contact turns OFF.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
FNC 12 DMOV K0 C235 The current value of C235 is cleared (to "0").
*1. When the driving contact is the continuous execution type, the current value of the counter is reset to "0" at each scan while X010 remains ON.
Current value of C235 1 2 3
Because X010 turns ON, "FNC 12 DMOV" is executed. The current value of C235 is reset to "0".
Because the driving contact is the pulse execution type, C235 executes counting normally after that.
Specified the Device & Constant
RST C235 - - - - - A
M8001
RST C235 - B RUN Monitor (normally OFF)
*2. When the driving contact is the continuous execution type, the current value of the counter is reset to "0" and the counter reset status is cleared at each scan while X010 remains ON.
1 2 3 4
Current value of C235 1 2 3
Because the reset instruction is deactivated, C235 executes counting.
Counter reset instruction is deactivated (part B in above program).
Counter is reset (part A in above program).
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
4.9 Data Register and File Register [D]
Data registers are devices for storing numeric data. File registers are handled as the initial values of data registers. Each data register or file register stores 16-bit data (whose most significant bit specifies the positive or negative sign). Two data registers combined or file registers can store 32-bit numeric data (whose most significant bit specifies the positive or negative sign).
→ For the functions and operations of file registers, refer to Subsection 4.9.4.
The table below shows numbers of data registers and file registers. (Numbers are assigned in decimal.)
Data registers File registers (latched (EEPROM
keep) type) General type Fixed latched (EEPROM keep) type General type Special type
128 points D128 to D255
128 points D256 to D2999
2744 points D8000 to D8511
512 points D1000*1 and later 2000 points maximum
Data registers File registers (latched (EEPROM
keep) type) General type Fixed latched (EEPROM keep) type General type Special type
972 points D1100 to D7999
512 points D1000*1 and later 7000 points maximum
128 points D128 to D1099
6900 points*2 D8000 to D8511
File registers (latched (battery
Latched (battery backed) type (backed up by battery against power failure)
Fixed latched (battery backed) type (backed up by battery against power failure)
backed) type) General type
200 points*3 D200 to D511
312 points*4 D512 to D7999
7488 points*1*5 D8000 to D8511
512 points D1000*1 and later 7000 points maximum
*1. Data registers D1000 and later can be used as file registers in units of 500 points by setting parameters.
*2. These registers can be changed to the latched type by the parameter setting when the optional battery is used. However, the latched range cannot be set.
*3. This area is not latched (battery backed). It can be changed to the latched (battery backed) area by setting parameters.
*4. This area is latched (battery backed). It can be changed to the non-latched (non-battery-backed) area by setting parameters.
*5. The latch (battery backup) characteristics cannot be changed using parameters.
When N : N Network or parallel link is used, some data registers are occupied for the link.
→ Refer to the Data Communication Edition.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
Low order D 0 (16 bits)
1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0
1 2 4 8 16 32 64 128 256 512 1024 2048 4096 8192 16384
A numeric value can be read from or written to a data register by an applied instruction usually. Or a numeric value can be directly read from or written to a data register from a display unit, display module, or programming tool.
number handles low-order bits. - In the index type, V handles high-order bits, and Z handles low-order bits. Two data registers or file registers can store a numeric value ranging from -2,147,483,648 to +2,147,483,647.
Low order 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0
D1 (high-order 16 bits) D0 (low-order 16 bits)
0 1 0 1
32768 65536 131,072 262,144 524,288 1,048,576 2,097,152 4,194,304 8,388,608 16,777,216 33,554,432 67,108,864 134,217,728 268,435,456 536,870,912 1,073,741,824
1 2 4 8 16 32 64 128 256 512 1024 2048 4096 8192 16384
Specified the Device & Constant
In the case of 32-bit type, when a data register or file register on the low-order side (example: D0) is specified, the subsequent number on the high-order side (example: D1) is automatically occupied. Either an odd or even device number can be specified for the low-order side, but it is recommended to specify an even device number for the low-order side under consideration of the monitoring function of display units, display modules, and programming tools.
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
4.9 Data Register and File Register [D]
Data registers are devices for storing numeric data. Each data register stores 16-bit data (whose most significant bit specifies the positive or negative sign). Two data registers combined can store 32-bit numeric data (whose most significant bit specifies the positive or negative sign).
→ For details on each backup method, refer to Section 2.6.
Ex. FX3U/FX3UC PLCs
ZRST D512 D999 Data stored in D512 to D999 are cleared to "0".
→ For file registers, refer to Subsection 4.9.4.
MOV K250 D8000
The watchdog timer is set to 250 ms.
The watchdog timer is refreshed.
→ For the data backup characteristics of special data registers, refer to Section 2.6 and Chapter 37.
→ For the types and functions of special data registers, refer to Chapter 37.
Initial pulse · Initial pulse

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
A counter or timer operates while regarding the contents of a specified data register as its set value.
MOV D 5 C 2 The current value of the counter C2 is changed to the contents stored in D5.
b) Reading the current value of a timer or counter to a data register
MOV C 10 D 4 The current value of the counter C10 is transferred to D4.
c) Storing a numeric value to data registers
Specified the Device & Constant
"200 (decimal value)" is transferred to D10.
"80000 (decimal value)" is transferred to D10 and D11. Because a numeric value larger than 32767 is 32-bit data, a 32-bit operation is required. When a data register on the low-order side (D10) is specified, a data register on the high-order side (D11) is automatically occupied.
d) Transferring the contents of a data register to another data register
MOV D 10 D 20 The contents of D10 are transferred to D20.
"300 (decimal value)" is transferred to T10.
The contents of T10 are transferred to the current value register of C20. In this case, T10 is not working as a timer, but is working as a data register.
K300 C 20
FNC10-FNC19 Move & Compare
As in the case of data registers, when 16-bit timers or counters are used as 32-bit devices, two timers or two counters (example: C1 and C0) store 32-bit numeric data. One 32-bit counter (example: C200) can store 32-bit numeric data.
FNC20-FNC29 Arith. & Logic Operation
![Page 136 of the Mitsubishi Electronics MELSEC FX3S user manual — [A]](/cdn/reader/06/06b6c5c8bfa3e981e964d8ed7432322fb86c682a85757d292a29f9cec2d4294a/images/page-136.webp?w=400)
FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
4.9 Data Register and File Register [D]
A file register is a device for setting the initial value of a data register with the same number. Each file register stores 16-bit data (whose most significant bit specifies the positive or negative sign). Two file registers combined can store 32-bit numeric data (whose most significant bit specifies the positive or negative sign). Up to 7000 data registers starting from D1000 can be specified as file registers by the parameter setting. The number of file registers varies depending on the model. Refer to Subsection 2.7.3 for the file register setting range.
This section explains how to handle file registers.
When power is turned ON When PLC mode is changed from STOP to RUN
For devices D1000 and later specified as operands in applied instructions other than BMOV (FNC 15) , indirectly specified values for timers, counters or devices in RST instructions can be read from and written to the data register area [B] in the same way as general data registers.
D1000 500 points × 14 blocks maximum (7000 points maximum)
[B]
The remaining area can be used as data registers for general purpose.
Instruction Transferred contents Remarks
BMOV instruction Data can be read from and written to the file register area [A] inside the program memory. −
Applied instructions other than BMOV instruction
Because the data register area [B] is provided inside the system RAM in the PLC, its contents can be arbitrarily changed without being limited by the optional memory format.
Data can be read from and written to the data register area [B] inside the image memory in the same way as general data registers.
The data stored in data registers set as file registers are automatically copied from the file register area [A] to the data register area [B] when restoring the power.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
When the same file register is specified for both and in BOMV (FNC 15) instruction, this instruction specifies the same-number register update mode and executes the following operation:
Read
memory or memory cassette
M8024
S D n
500 points × 14 blocks maximum (7000 points maximum)
Same file register number is specified.
[B]
Write
memory or memory cassette
M8024
ON
S D n
Specified the Device & Constant
Same file register number is specified.
500 points × 14 blocks maximum (7000 points maximum)
M8024
[A]
[B]
D1499 D1499
register numbers at and are equal to each other. Also make sure that the number of transfer points specified by "n" does not exceed the file register area. If the number of transfer points exceeds the file register area, an operation error occurs and the instruction is not executed.
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
4.9 Data Register and File Register [D]

S D n OFF
Write 500 points × 14 blocks maximum (7000 points maximum)
When a file register device is specified for in a general applied instruction, data is transferred to only the data register area [B].
the same as , the same-number register update mode is selected. → For the same-number register update mode, refer
to the previous page.

← Batch transfer of data registers and writing to file register M8024(ON) :D1100 D200
When a file register (D1000 or later) is specified for the source of BMOV (FNC 15) instruction and the same number file register is not specified for the destination, the contents of the file register area [A] inside the program memory are not read.

M8024
S D n OFF
D1100 500 points × 14 blocks maximum (7000 points maximum)
the same as , the same-number register update mode is selected.
→ For the same-number register update mode,
refer to the previous page.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
memory or memory cassette
M8024
S D n OFF
D1100 Write 500 points × 14 blocks maximum (7000 points maximum)
[A]
[B]
D1499 D1499
4.9.5 Cautions on using file registers
Specified the Device & Constant
are equal to each other.
FNC10-FNC19 Move & Compare
When and are indexed, the instruction is executed if the actual device number is within the file register area and the number of transfer points is within the file register area also.
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
4.10 Extension Register [R] and Extension File Register [ER]
Extension registers (R) are the extended form of data registers (D). The contents of extension registers (R) can be stored in extension file registers (ER). In FX3U/FX3UC PLCs, extension file registers (ER) are available only while the memory cassette is attached.
The table below shows numbers of extension registers (R) and extension file registers (ER). (Numbers are assigned in decimal.)
Extension file register (ER)
24000 points*1 ER0 to ER23999
Extension register (R) (latched [battery backed] type)
Extension file register (ER)
32768 points ER0 to ER32767
*1. These registers can be changed to the latched (battery backed) type by the parameter setting when the optional battery is used. However, the latched range cannot be set.
*2. These registers are stored in the EEPROM built in the PLC, or in the EEPROM in the memory cassette when the memory cassette is attached.
*3. Available only while a memory cassette is mounted (because they are stored in the flash memory inside a memory cassette.)
Because the memory for storing data is different between extension registers and extension file registers, the access method is different as shown in the table below:
Device PLC Data storage destination
FX3G/FX3GC Built-in RAM
FX3U/FX3UC Built-in RAM (latched [battery backed] area)
FX3G Built-in EEPROM or EEPROM in memory cassette
FX3GC Built-in EEPROM
FX3U/FX3UC Memory cassette (flash memory)
register Extension file register
Reading in program 3 UOnly dedicated instructions are
Writing in program 3 UOnly dedicated instructions are
Display module 3 3
Test operation in online mode of GX Works2, GX Developer 3 ×
Batch writing by GX Works2, GX Developer 3 3
Computer link function 3 ×

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
One extension register consists of 16 bits. Extension registers can be used in 16-bit and 32-bit applied instructions in the same way as data registers.
Low order R0, ER0 (16 bits)
1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0
1 2 4 8 16 32 64 128 256 512 1024 2048 4096 8192 16384
A numeric value is usually read from and written to an extension register by applied instructions. However, a numeric value can also be directly read from and written to an extension register from a display unit, display module, or programming tool.
Low order 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0
R1, ER1 (high-order 16 bits) R0, ER0 (low-order 16 bits)
0 1 0 1
32768 65536 131,072 262,144 524,288 1,048,576 2,097,152 4,194,304 8,388,608 16,777,216 33,554,432 67,108,864 134,217,728 268,435,456 536,870,912 1,073,741,824
1 2 4 8 16 32 64 128 256 512 1024 2048 4096 8192 16384
Specified the Device & Constant
The contents of extension registers are backed up by the battery even when the power is turned OFF or when the PLC mode switches from STOP to RUN in FX3U/FX3UC PLCs and in FX3G/FX3GC PLCs if extension registers are changed to the latched (battery backed) type and the optional battery is installed. When initializing the contents of extension registers, clear them using a sequence program, GX Works2 or GX Developer.
FNC 16 FMOVP K0 R0 K200 Command
Ex. FX3U/FX3UC PLCs
FNC10-FNC19 Move & Compare
INITRP R0 K2 The current value in Ro to R4095 is initialized to "FFFFH".
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
4.10 Extension Register [R] and Extension File Register [ER]
Extension registers can be used in various controls with numeric data the same as data registers. This subsection explains operations in representative basic instructions and applied instructions among various applications. For the full use of extension registers, refer to the explanation of applied instructions described later.
A counter or timer operates with regards to the contents of a specified extension register as the set value.
The current value of the counter C2 is changed to the contents of R5.
The current value of the counter C10 is transferred to R4.
"200 (decimal value)" is transferred to R10.
"80000 (decimal value)" is transferred to R10 and R11. Because a numeric value larger than 32767, the 32-bit operation (double D instruction) is required. When an extension register on the low-order side (R10) is specified, an extension register on the high-order side (R11) is automatically occupied.
The contents of D10 are transferred to R20.
16 bits · 32 bits

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
Extension file registers (ER) are usually used as log data storage destinations and set data storage destinations. Extension file registers can be handled only with dedicated instructions shown in the table below. When using data contents with other instructions, transfer them to an extension register of the same device number, and then use the extension register. However, extension file registers (ER) are available in FX3U/FX3UC PLCs only when the memory cassette is attached.
LOADR (FNC290) This (transfer) instruction reads data of extension file registers (ER)*1 to extension registers (R).
RWER (FNC294) This (transfer) instruction writes specified extension registers (R) to extension file registers (ER)
Use this instruction to store the contents of any extension register (R) in extension file registers (ER)*1.
*1. When the memory cassette is attached, extension file registers in the memory cassette are accessed. When the memory cassette is not attached, extension file registers in the EEPROM built in the PLC are accessed.
LOADR (FNC290) This (transfer) instruction reads data of extension file registers (ER)*2 to extension registers (R).
This (transfer) instruction writes data of extension registers (R) to extension file registers (ER)*2 in 2048 point (1 sector) units. Use this instruction to store newly created sectors (2048 points) of data to extension file registers
(ER)*2.
This instruction initializes extension registers (R) and extension file registers (ER)*2 in 2048 point (1 sector) units.
Use this instruction to initialize extension registers (R) and extension file registers (ER)*2 before starting to log data by the LOGR instruction.
LOGR (FNC293) This instruction logs specified data, and writes it to extension registers (R) and extension file registers (ER)*2.
Specified the Device & Constant
This (transfer) instruction writes specified extension registers (R) to extension file registers (ER)*2.This instruction is supported in FX3UC PLC Ver. 1.30 or later. Use this instruction to store the contents of any extension register (R) to
extension file register (ER)*2.
This instruction initializes extension file registers (ER)*2 in 2048 point (1 sector) units. This instruction is supported
in FX3UC PLC Ver. 1.30 or later. Use this instruction to initialize extension file registers (ER)*2 before executing SAVER instruction.
*2. Extension file registers are only accessible when a memory cassette is mounted.
a) FX3G/FX3GC PLCs
Extension register (R) Extension file register (ER)
Available in built-in RAM
Available in attached memory cassette or built-in EEPROM*3
General-purpose device (sequence program)
RWER instruction (arbitrary number of points)
LOADR instruction (point units)
FNC10-FNC19 Move & Compare
ER23999
All points are written at one time
FNC20-FNC29 Arith. & Logic Operation
GX Works2, GX Developer
*3. Memory cassette cannot be connected to FX3GC PLCs.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
4.10 Extension Register [R] and Extension File Register [ER]
b) FX3U/FX3UC PLCs
Extension file register (ER) Extension register (R)
Available with a memory
Available in built-in RAM
SAVER instruction (sector units) RWER instruction (point units)
ER0
General-purpose device (sequence program)
ER2048
LOADR instruction (point units)
ER4096
ER6144 INITER instruction (initialization) (sector units) INITER
INITR instruction (initialization) (sector units)
All points are written at one time
R32767
ER32767
GX Works2, GX Developer
Sector No. Head device No. Device range Sector No. Head device No. Device range
Sector 0 R0 ER0 to ER2047, R0 to R2047 Sector 8 R16384 ER16384 to ER18431, R16384 to R18431
Sector 1 R2048 ER2048 to ER4095, R2048 to R4095 Sector 9 R18432 ER18432 to ER20479, R18432 to R20479
Sector 2 R4096 ER4096 to ER6143, R4096 to R6143 Sector 10 R20480 ER20480 to ER22527, R20480 to R22527
Sector 3 R6144 ER6144 to ER8191, R6144 to R8191 Sector 11 R22528 ER22528 to ER24575, R22528 to R24575
Sector 4 R8192 ER8192 to ER10239, R8192 to R10239 Sector 12 R24576 ER24576 to ER26623, R24576 to R26623
Sector 5 R10240 ER10240 to ER12287, R10240 to R12287 Sector 13 R26624 ER26624 to ER28671, R26624 to R28671
Sector 6 R12288 ER12288 to ER14335, R12288 to R14335 Sector 14 R28672 ER28672 to ER30719, R28672 to R30719
Sector 7 R14336 ER14336 to ER16383, R14336 to R16383 Sector 15 R30720 ER30720 to ER32767, R30720 to R32767

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
2. Initialization of extension file registers Because the contents of extension file registers are stored in the memory cassette or built-in EEPROM, use the data clear operation in a sequence program, GX Works2 or GX Developer to initialize them. For writing data to extension file registers in FX3U/FX3UC PLCs, it is necessary to initialize the target area to be written in advance. For writing data to extension file registers in FX3G/FX3GC PLCs, it is not necessary to initialize the target area to be written in advance.
Specified the Device & Constant
FNC295 INITERP R0 K2 The current value is initialized to "FFFFH" in ER0 to ER4095.
b) Initializing extension registers and extension file registers in sector units
Example: When initializing R0 to R4095 and ER0 to ER4095 (initializing two sectors starting from R0 and ER0)
INITRP R0 K2 The current value is initialized to "FFFFH" in R0 to R4095 and ER0 to ER4095.
Execution of the LOADR (FNC290), SAVER (FNC291) or LOGR (FNC293) instruction is not counted as a write to the memory. However, it is necessary to initialize the writing target sector before executing the SAVER (FNC291) or LOGR (FNC293) instruction. Every time the INITR (FNC292) or INITER (FNC295) instruction is executed, it is counted as a write to the memory. Make sure not to exceed the allowable number of writes.
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
4.10 Extension Register [R] and Extension File Register [ER]
This subsection explains the operating procedures of GX Works2.
→ For details on GX Developer operating procedures, refer to GX Developer Version 8 Operating Manual. 1 Setting the project type, PLC type and programming language
Select [Project]→[New].

![Page 147 of the Mitsubishi Electronics MELSEC FX3S user manual — 4.10 Extension Register [R] and Extension File Register [ER] 1](/cdn/reader/06/06b6c5c8bfa3e981e964d8ed7432322fb86c682a85757d292a29f9cec2d4294a/images/page-147.webp?w=400)
FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
2 Creating the device memory
This operation is not required when using the device memory offered as the default.
![Mitsubishi Electronics MELSEC FX3S — 4.10 Extension Register [R] and Extension File Register [ER] 1 diagram (page 147)](/cdn/reader/06/06b6c5c8bfa3e981e964d8ed7432322fb86c682a85757d292a29f9cec2d4294a/images/rimg-26.webp)
![Mitsubishi Electronics MELSEC FX3S — 4.10 Extension Register [R] and Extension File Register [ER] 1 diagram (page 147)](/cdn/reader/06/06b6c5c8bfa3e981e964d8ed7432322fb86c682a85757d292a29f9cec2d4294a/images/rimg-27.webp)
Specified the Device & Constant
![Mitsubishi Electronics MELSEC FX3S — 4.10 Extension Register [R] and Extension File Register [ER] 1 diagram (page 147)](/cdn/reader/06/06b6c5c8bfa3e981e964d8ed7432322fb86c682a85757d292a29f9cec2d4294a/images/rimg-28.webp)
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
4.10 Extension Register [R] and Extension File Register [ER]


![Page 149 of the Mitsubishi Electronics MELSEC FX3S user manual — 4.10 Extension Register [R] and Extension File Register [ER] 1](/cdn/reader/06/06b6c5c8bfa3e981e964d8ed7432322fb86c682a85757d292a29f9cec2d4294a/images/page-149.webp?w=400)
FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
4 Writing (transferring) the data to the PLC
![Mitsubishi Electronics MELSEC FX3S — 4.10 Extension Register [R] and Extension File Register [ER] 1 diagram (page 149)](/cdn/reader/06/06b6c5c8bfa3e981e964d8ed7432322fb86c682a85757d292a29f9cec2d4294a/images/rimg-31.webp)
Specified the Device & Constant
![Mitsubishi Electronics MELSEC FX3S — 4.10 Extension Register [R] and Extension File Register [ER] 1 diagram (page 149)](/cdn/reader/06/06b6c5c8bfa3e981e964d8ed7432322fb86c682a85757d292a29f9cec2d4294a/images/rimg-32.webp)
Click the blank space to change it into " ". 3
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
4.11 Index Register [V and Z]
Index registers can be used in the same way as of data registers. But they are special registers since they can change the contents of device numbers and numeric values by program when combined with another device number or numeric value in operands of applied instructions.
The table below shows numbers of index registers (V and Z). (Numbers are assigned in decimal.) When only "V" or "Z" is specified, it is handled as "V0" or "Z0" respectively.
V0 (V) to V7, Z0 (Z) to Z7
*1. The characteristics related to protection against power failure cannot be changed by parameters.
V 16 bits Z 16 bits
V0 to V7:
8 points Z0 to Z7:
This is because FX PLCs handle Z as the low-order side of a 32-bit register as shown in combinations of V and Z in the figure on the left. Even if V0 to V7 on the high-order side is specified, indexing is not executed. When index registers are specified as a 32-bit device, both V (high- order side) and Z (low-order side) are referred to at the same time. If a numeric value for another purpose remains in V (high-order side), consequently the numeric value here becomes extremely large, thus an operation error occurs. Example of writing to 32-bit index registers
V0 (high-order side) Z0 (low-order side)
V1 (high-order side) Z1 (low-order side)
V2 (high-order side) Z2 (low-order side)
V3 (high-order side) Z3 (low-order side)
V4 (high-order side) Z4 (low-order side)
V5 (high-order side) Z5 (low-order side)
V6 (high-order side) Z6 (low-order side)
V7 (high-order side) Z7 (low-order side)
Even if an index value in a 32-bit applied instruction does not exceed the 16-bit numeric range, use a 32-bit operation instruction such as DMOV for writing a numeric value to Z as shown in the above figure so that both V (high-order side) and Z (low-order side) are overwritten at the same time.
Available devices and the contents of indexing are as described below:
→ For indexing method and cautions, refer to Section 5.7.
Decimal devices/numeric values: M, S, T, C, D, R, KnM, KnS, P and K For example, when "V0 = K5" is specified and "D20V0" is executed, an instruction is executed for the device number D25 (D20 + 5). Constants can be indexed also. When "K30V0" is specified, an instruction is executed for decimal value K35 (30 + 5).
Octal devices: X, Y, KnX and KnY For example, when "Z1 = K8" is specified and "X0Z1" is executed, an instruction is executed for the device number X10 (X0 + 8: addition of octal value). When indexing for a device whose device number is handled in octal, a numeric value converted into octal is added for the contents of V and Z. Accordingly, note that when "Z1 = K10" is specified "X0Z1" indicates that X12 is specified, and X10 is not specified.
Hexadecimal numeric values: H For example, when "V5 = K30" is specified and a constant "H30V5" is specified, it is handled as H4E (30H + K30). When "V5 = H30" is specified and a constant "H30V5" is specified, it is handled as H60 (30H + 30H).

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
4.12 Pointer [P and I]
The table below shows numbers of pointers (P and I). (Numbers are assigned in decimal.) When using a pointer for input interrupt, an input number assigned to it cannot be used together with a "high-speed counter" or "speed detection (FNC 56)" which uses the same input range.
For branch For input interrupt For timer interrupt For jump to END step
I00 (X000) I30 (X003) I10 (X001) I40 (X004) I20 (X002) I50 (X005)
I6 I7 I8 3 points
P0 to P62 P64 to P255
For branch For input interrupt For timer interrupt For jump to END step
P0 to P62 P64 to P2047
I00 (X000) I30 (X003) I10 (X001) I40 (X004) I20 (X002) I50 (X005)
I6 I7 I8 3 points
For branch For input interrupt/input delay
interrupt For timer interrupt For counter
interrupt For jump to END step
Specified the Device & Constant
I00 (X000) I30 (X003) I10 (X001) I40 (X004) I20 (X002) I50 (X005)
I6 I7 I8 3 points
P0 to P62 P64 to P4095
The roles and operations of pointers for branch are as described below. Because all of these pointers are combined with applied instructions, refer to the explanation of each instruction for the detailed method.
→ For details on interrupt function, refer to Chapter 36.
When X001 turns ON, the PLC jumps to a label position specified by CJ (FNC 00) instruction, and executes the subsequent program.
When X001 turns ON, the PLC executes a subroutine in the label position specified by CALL (FNC 01) instruction, and then returns to the original position by SRET (FNC 02) instruction.
FNC10-FNC19 Move & Compare
P1
SRET
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
4.12 Pointer [P and I]
P63 is a special pointer for jumping to the END step when the CJ (FNC 00) instruction is executed. Note that a program error will occur when P63 is programmed as a label.

→ Refer to "5. Label unnecessary for the
pointer P63" in Section 8.1.
→ For details on interrupt function, refer to Chapter 36. There are three types of pointers for interrupt. When in use, they are combined with IRET (FNC 03), EI (FNC 04) and DI (FNC 05) for interrupt return, enabling interrupt and disabling interrupt.
1. Pointers for input interrupt (delay interrupt): 6 points → For details on input interrupt function, refer to Section 36.3 and Section 36.4. The PLC can receive input signals from specific input numbers without influence of the operation cycle of the PLC. By using these input signals as triggers, the PLC executes interrupt routine programs. Because pointers for input interrupt can handle signals shorter than the operation cycle, use them for high priority processing during sequence control and for control handling short pulses.

edge FX3S FX3G/FX3GC FX3U/FX3UC
10 µs or more 10 µs or more
10 µs or more X004 I401 I400 M8054*1
X005 I501 I500 M8055*1 50 µs or more
*1. Cleared when the PLC mode switches from RUN to STOP.
Inputs X000 to X007 are used for high-speed counters, input interrupt, pulse catch, SPD/ZRN/DSZR/DVIT instructions and general-purpose inputs. When assigning functions, there should be no overlap between those input terminals.
This input interrupt has a function to delay the execution of interrupt routine in units of 1ms. The delay time is specified by the following pattern program. This delay function can electrically adjust the mounting position of sensors for input interrupts without shifting the actual position.

MOV K{{{* Delay time specifying program Make sure to describe the delay time specifying program shown on the left at the head of an interrupt routine program. Because this is a pattern program, change only the delay time [1]. Only a constant (K) or data register (D) can be used to specify the delay time*.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
Interrupt is usually disabled in the PLC. If interrupt is enabled by EI instruction, when X000 or X001 turns ON while a program is scanned, the PLC executes the interrupt routine [1] or [2], and then returns to the main program by IRET instruction.
FEND
interrupt Rising edge of X000 is detected
Make sure to program a pointer for interrupt (I***) as a label after FEND instruction. •
interrupt Rising edge of X001 is detected
END
Specified the Device & Constant
Input No. Interrupt cycle (ms) Interrupt disabling flag
I7 M8057 *1
An integer ranging from 10 to 99 is put in " " portion of the pointer name. Ex: I610 = Timer interrupt at every 10 ms
*1. Cleared when the PLC mode switches from RUN to STOP.
It is recommended to set the timer interrupt time to 10 ms or more. When the timer interrupt time is set to 9 ms or less, the timer interrupt processing may not be executed at an accurate cycle in the following cases:
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
4.12 Pointer [P and I]

Timer interrupt is enabled after EI instruction. It is not necessary to program DI (disable interrupt) instruction when no zone to disable timer interrupt is needed.
"FEND" indicates the end of the main program. Make sure to describe an interrupt routine after "FEND".
The PLC executes an interrupt routine at every 20 ms. The PLC returns to main program by IRET instruction.
→ For details on counter interrupt function, refer to Section 36.6. The PLC executes an interrupt routine based on the comparison result obtained by the comparison set instruction for high-speed counter (DHSCS instruction). Use these pointers for control requiring an interrupt routine based on the counting result from high-speed counters.
Pointer No. Interrupt disabling flag Pointer No. Interrupt disabling flag
M8059 *2
I030 I060
*1. This function is supported only in FX3U/FX3UC PLCs.
*2. Cleared when the PLC mode switches from RUN to STOP.

Enable interrupt after EI instruction, and describe the main program. •
Drive the coil of a high-speed counter, and specify an interrupt pointer in DHSCS (FNC 53) instruction.
When the current value of C255 changes from "999" to "1000" or from "1001" to "1000", the interrupt routine is executed. For example of interrupt program, refer to an input interrupt described above.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
5 How to Specify Devices and Constants to Instructions
5.1 Numeric Values Handled in PLC (Octal, Decimal, Hexadecimal and Real Numbers) 1
This chapter explains how to specify sources and destinations in sequence instructions which are the basis for handling PLC instructions.
FX PLCs handle five types of numeric values according to the application and purpose. This section explains the roles and functions of these numeric values.
1. Decimal numbers (DEC)
Specified the Device & Constant
Example of decimal number input K 7 8 9
1 2 4 8 16 32 64 128 256 512 1024 2048 4096 8192 16384
1 0 1 0 1 0 0 0 1 1 0
Automatic conversion 1+4+16+256+512 = 789
(decimal) K 7 8 9 Monitoring in programming tool
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
5 How to Specify Devices and Constants to Instructions
5.1 Numeric Values Handled in PLC (Octal, Decimal, Hexadecimal and Real Numbers)
Numeric values handled in FX PLCs can be converted as shown in the table below:
Decimal number (DEC) Octal number (OCT) Hexadecimal number
(HEX) Binary number (BIN) BCD
0 0 00 0000
1 1 01 0000 0001 0000 0001
2 2 02 0000 0010 0000 0010
3 3 03 0000 0011 0000 0011
4 4 04 0000 0100 0000 0100
5 5 05 0000 0101 0000 0101
6 6 06 0000 0110 0000 0110
7 7 07 0000 0111 0000 0111
8 10 08 0000 1000 0000 1000
9 11 09 0000 1001 0000 1001
11 13 0B 0000 1011 0001 0001
12 14 0C 0000 1100 0001 0010
14 16 0E 0000 1110 0001 0100
15 17 0F 0000 1111 0001 0101
16 20 10 0001 0000 0001 0110
99 143 63 0110 0011 1001 1001
Decimal number (DEC) Octal number (OCT) Hexadecimal number
(HEX) Binary number (BIN) BCD
Constants (K) and numbers of internal devices except I/O relays
BCD digital switches and seven-segment display units
Numbers of internal I/O relays Constants (H) Processing inside PLC

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
5 How to Specify Devices and Constants to Instructions
5.1 Numeric Values Handled in PLC (Octal, Decimal, Hexadecimal and Real Numbers) 1
Handling of numeric values in floating point operations Binary integers are handled inside PLCs. During division of integers, the answer "40 ÷ 3 = 13 ... 1" is obtained, for example. During square root extraction operations, decimal points are ignored. In FX3S, FX3G, FX3GC, FX3U and FX3UC PLCs, floating point operations are available to achieve higher accuracy in such operations.
When handling a binary floating point (real number) in data registers, use a pair of data registers having consecutive device numbers. When D11 and D10 are used, for example, a binary floating point is handled as shown below:
D 11(b15 to b0)
D 10(b15 to b0)
27 26 25 21 20 2-1 2-2 2-3 2-21 2-22 2-23
S E7 E6 E5 E1 E0 A22 A21 A20 A2 A1 A0
b30 b31 b29 b28 b23 b24 b22 b21 b2 b1 b0 b20
23 bits in mantissa part 8 bits in exponent part
E0 to E7 = 0 or 1
A0 to A22 = 0 or 1
0 in case "b0 to b31 = 0"
Specified the Device & Constant
Binary floating point (real number) = ± (20 + A22 × 2−1 + A21 × 2−2 + ... + A0 × 2−23)
× 2 (E7 × 2 + E6 × 2 + ... + E0 × 2 )/2127
Binary floating point (real number) = ± (20 + 1 × 2−1 + 0 × 2−2 + 1 × 2−3 + ... + 0 × 2−23)
× 2 (1 × 2 + 0 × 2 + ... + 1 × 2 )/2127
= ±1.625 × 2129/2127 = ±1.625 × 22
The sign bit b31 states whether data is positive or negative, but is not handled as a complement.
Number of significant figures The number of significant figures of binary floating point is approximately 7 when expressed in decimal. The binary floating point range is as follows:
Handling of the zero (M8020), borrow (M8021) and carry (M8022) flags These flags operate as follows in floating point operations.
- Zero flag : 1 when the result is 0 - Borrow flag : 1 when the result does not reach the minimum unit but is not 0 - Carry flag : 1 when the absolute value of the result exceeds the available numeric value range.
Monitoring of binary floating point (real number) A programming software supporting the display of floating point such as GX Works2 and GX Developer can directly monitor binary floating point (real number). A programming tool not supporting the display of floating point can monitor binary floating point (real number) when it is converted into scientific notation (real number).
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
5 How to Specify Devices and Constants to Instructions
5.1 Numeric Values Handled in PLC (Octal, Decimal, Hexadecimal and Real Numbers)
Because binary floating point (real number) is difficult to understand for users, it can be converted into scientific notation (real number). But internal operations are executed using binary floating point (real number). Scientific notation (real number) is handled by a pair of data registers having serial device numbers. Different from binary floating point (real number), a data register having a smaller device number handles the mantissa part, and the other data register having a larger device number handles the exponent part. For example, when data registers D1 and D0 are used, they handle scientific notation as shown below. Data can be written to D0 and D1 by MOV instruction.
Scientific notation (real number) = [Mantissa D0] × 10 [Exponent D1] Mantissa D0 = ± (1000 to 9999) or 0 Exponent D1 = −41 to +35
The most significant bit of D0 and D1 specifies the positive or negative sign respectively, and is handled as the complement of 2 respectively. The mantissa D0 does not allow "100", for example. In the case of "100", it is handled as "1000 × 10−1". The scientific notation (real number) range is as follows:
Number of significant figures The number of significant figures of scientific notation is approximately 4 when expressed in decimal. The scientific notation range is as described above.
Scientific notation (real number) is valid in the following instructions:
- Conversion from binary floating point (real number) into scientific notation (real number): FNC118 ([D]EBCD) - Conversion from scientific notation (real number) into binary floating point (real number): FNC119 ([D]EBIN)

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
5 How to Specify Devices and Constants to Instructions
5.2 Specification of Constants K, H and E (Decimal, Hexadecimal and Real Number) 1
5.2 Specification of Constants K, H and E (Decimal, Hexadecimal and Real Number)
When handling constants in a sequence program, use constant K (decimal), H (hexadecimal) or E (floating point). In peripheral equipment for programming, add "K" to a decimal number, "H" to a hexadecimal number and "E" to a floating point (real number) for operations associated with numeric values in instructions. (Examples: K100 (decimal number), H64 (hexadecimal number) and E1.23 (or E1.23 + 10) (real number)) The roles and functions of constants are described below.
"K" indicates a decimal integer, and is mainly used to specify the set value of timers and counters and numeric values as operands in applied instructions. (Example: K1234) The decimal constant specification range is as follows:
- When word data (16 bits) is used K-32768 to K32767 - When double data (32 bits) is used ... K-2,147,483,648 to K2,147,483,647
"H" indicates a hexadecimal number, and is mainly used to specify numeric values as operands in applied instructions. (Example: H1234) When using digits 0 to 9, the bit status (1 or 0) of each bit is equivalent to the BCD code, so BCD data can be specified also. (Example: H1234 ... When specifying BCD data, specify each digit of hexadecimal number in 0 to 9.) The hexadecimal constant setting range is as follows:
Specified the Device & Constant
- When word data (16 bits) is used H0 to HFFFF (H0 to H9999 in the case of BCD data) - When double data (32 bits) is used ... H0 to HFFFFFFFF (H0 to H99999999 in the case of BCD data)
"E" indicates a real number (floating point data), and is mainly used to specify numeric values as operands in applied instructions. (Example: E1.234 or E1.234 + 3)
The real number setting range is from −1.0 × 2128 to −1.0 × 2−126, 0 and 1.0 × 2−126 to 1.0 × 2128. In a sequence program, a real number can be specified in two methods, "normal expression" and "exponent expression".
- Normal expression: Specify a numeric value as it is. For example, specify "10.2345" in the form "E10.2345".
- Exponent expression: Specify a numeric value in the format "(numeric value) × 10n". For example, specify "1234" in the form "E1.234 + 3". "+3" in "E1.234 + 3" indicates "103".
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
5 How to Specify Devices and Constants to Instructions
5.3 Character Strings
Character strings are classified into character string constants which directly specify character strings in operands in applied instructions and character string data.
A device "character string" directly specifies a character string in a sequence program. Put half-width characters inside quotation marks (example: "ABCD1234") in specification. JIS8 code is available. Up to 32 characters can be specified as a character string.
With regard to character string data, a specified device to the NULL code (00H) is handled as one character string in 1-byte units. When expressing (recognizing) character string data by bit devices with digit specification, however, 16 bits are required for data including the NULL code (00H) specifying the end of the character string data because the instruction length is 16 bits. (Refer to Example 2 in the step 2 below.) In the following cases, an operation error occurs in the applied instruction (error code: K6706):

"00H" indicating the end of the character string can be detected.
"00H" indicating the end of character string cannot be detected from the specified device to the end device number.

"00H" indicating the end of the character string can be detected.
"00H" indicating the end of character string cannot be detected from the specified device to the end device number.
Because the data "00H" indicating the end of the character string does not reach 16 bits, the end of the character string cannot be recognized.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
5 How to Specify Devices and Constants to Instructions
5.4 Specification of Digits for Bit Devices (Kn[ ]***)
Devices which handle only the ON/OFF information such as X, Y, M and S are called bit devices. On the other hand, devices handling numeric values such as T, C, D and R are called word devices. Even bit devices can handle a numeric value when they are combined. In this case, the number of digits Kn and the head device number are combined. The number of digits is expressed in 4 bit units (digits); K1 to K4 are used for 16-bit data, and K1 to K8 are used for 32- bit data. For example, "K2M0" indicates two-digit data expressed by M0 to M7.
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
Sign bit (0 = Positive, 1: Negative)
0 1 0 1 0 1 0 1
M6 M5 M12 M11 M10 M9 M4 M3 M2 M1 M14 M13
Transferred Sign bit (0 = Positive, 1: Negative)
0 1 0 1 0 1 0 1
When 16-bit data is transferred to K1M0 to K3M0, the highest-order bits are not transferred due to insufficient data length. 32-bit data is transferred in the same way. When the number of digits specified for bit devices is K1 to K3 (or K1 to K7) in a 16-bit (or 32-bit) operation, the insufficient high-order bits are always regarded as "0". It means that such data is always positive.
Specified the Device & Constant
Two-digit BCD data expressed by X004 to X013 is converted into binary data, and then transferred to D0.
A bit device number can be specified arbitrarily, but it is recommended to set the least significant digit to "0" for X or Y. (In other words, it is recommended to specify "X000, X010, X020 ... Y000, Y010, Y020 ...") For M and S, multiples of "8" are ideal, but it is recommended to specify "M0, M10, M20 ..." to prevent confusion.
A series of data registers starting from D1 means "D1, D2, D3, D4 " In the case of word devices with digit specification, when such word devices are handled as a series, they are specified as shown below:
Use the above devices in digit units so that devices are not skipped. When "K4Y000" is used in a 32-bit operation, the high-order 16 bits register as "0". It is necessary to use "K8Y000" when 32-bit data is required.
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation
![Page 162 of the Mitsubishi Electronics MELSEC FX3S user manual — 5.6 Direct Specification of Buffer Memory (U[ ]\G[ ])](/cdn/reader/06/06b6c5c8bfa3e981e964d8ed7432322fb86c682a85757d292a29f9cec2d4294a/images/page-162.webp?w=400)
FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
5 How to Specify Devices and Constants to Instructions
5.5 Bit Specification of a Word Device (D[ ].b)
By specifying a bit of a word device, the specified bit can be used as bit data. When specifying a bit of a word device, use a word device number and bit number (hexadecimal). (Example: D0.0 ... Indicates the bit 0 of data register (D).) Indexing is not available for both device numbers and bit numbers.
![Mitsubishi Electronics MELSEC FX3S — 5.5 Bit Specification of a Word Device (D[ ].b) diagram (page 162)](/cdn/reader/06/06b6c5c8bfa3e981e964d8ed7432322fb86c682a85757d292a29f9cec2d4294a/images/fig-162-1.webp)
D0 F E D C B A 9 8 7 6 5 4 3 2 1 0
A buffer memory (BFM) of a special function units/blocks can be specified directly. BFM is 16-bit or 32-bit word data, and is mainly used for operands in applied instructions. For specifying a BFM, specify the unit number (U) of a special function units/blocks and the BFM number (\G) consecutively. (Example: U0\G0 ... Indicates the BFM #0 in the special function units/blocks whose unit number is 0.) Indexing is available for BFM numbers. The specification range is as follows:
Unit number (U) 0 to 7 BFM number (\G) 0 to 32766
![Mitsubishi Electronics MELSEC FX3S — 5.6 Direct Specification of Buffer Memory (U[ ]\G[ ]) diagram (page 162)](/cdn/reader/06/06b6c5c8bfa3e981e964d8ed7432322fb86c682a85757d292a29f9cec2d4294a/images/fig-162-2.webp)

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
5 How to Specify Devices and Constants to Instructions
5.7 Indexing
The functions and structures of index registers are explained in detail in "4.11 Index Register [V and Z]". Refer to Section 4.11 in advance.
In the case of bit devices
Bit devices [X, Y, M (except special auxiliary relays), T, and C (C0 to C199)] used in LD, LDI, AND, ANI, OR, ORI, OUT, SET, RST, PLS, and PLF instructions can be indexed with index registers. The figure shown on the right explains an indexing operation with the index register Z(0) for X000 and M0 in the LD instruction. Transfer K5 or K10 to the index register Z(0) in advance. If Z(0) is "5", "X(0+5) = X005". When X005 turns ON, Y000 turns ON and "M(0+5) = M5". When M5 turns ON, Y001 turns ON.
MOVP K5 Z(0)
K5 → Z(0)
If Z(0) is "10", "X(0+10) = X012*1". When X012*1 turns ON, Y000 turns ON and "M(0+10) = M10". When M10 turns ON, Y001 turns ON.
MOVP
K10 → Z(0)
*1. Refer to the caution 3) below.
Cautions
Y001
Z(0)=5 : X005=ON → Y000=ON
Specified the Device & Constant
*2 Refer to the caution 3).
3) When an octal device number of X or Y is indexed with an index register, the contents of the index register are converted into octal, and then added to the device number. For example, when the value of an index register added to the input X000 is changed in the order "K0 → K8 → K16", the device number converted into octal is added to the input X000 and the input number is changed in the order "X(000+0) = X000 → X(000+8) = X10 → X(000+16) = X20".
The set value of word devices used in OUT instruction of T and C(0~199) can be indexed with index registers. The indexing operation is explained in an example in which the set value D0 of T0 used in the index register V2 indexes OUT instruction (as shown in the right figure). Transfer K0 or K10 to the index register V2 in advance. When X001 is set to ON, "D(0+0) = D0" if V2 is "0", and T0 operates with the set value D0. When X001 is set to ON, "D(0+10) = D10" if V2 is "10", and T0 operates with the set value D10.
MOVP K0 V2
K0 → V2
K10 V2
MOVP
K10 → V2
Caution
T 0
present value of D0. V2 = 10 : The set value of T0 is the
present value of D10.
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
5 How to Specify Devices and Constants to Instructions
5.7 Indexing
Expression of applied instructions allowing indexing
In the explanation of applied instructions, " " is added to the source or destination symbol to indicate operands allowing indexing as shown in the figure below so that such operands can be discriminated from operands not allowing indexing.

The indexing operation is explained in an example in which the comparison result M0 in CMP (FNC 10) instruction is indexed with the index register V1 (as shown in the figure on the right). Transfer K0 or K10 to the index register V1 in advance. When X001 is set to ON, "M(0+0) = M0" and the comparison result is output to M0 to M2 if V1 is "0". On the other hand, "M(0+10) = M10" and the comparison result is output to M10 to M12 if V1 is "10".

V1=0 V1=10 D0>D1 →M0=ON M10=ON D0=D1 →M1=ON M11=ON D0
1. indexing operands in 16-bit instructions The indexing operation is explained in an example in which the transfer destination D0 in MOV instruction is indexed with the index register V3 (as shown in the figure on the right). Transfer K0 or K10 to the index register V3 in advance. When X001 is set to ON, "D(0+0) = D0" if V3 is "0", and K500 is transferred to D0. When X001 is set to ON, "D(0+10) = D10" if V3 is "10", and K500 is transferred to D10.

2. indexing operands in 32-bit instructions In a 32-bit instruction, it is also necessary to specify a 32-bit index register in the instruction. When an index register Z (Z0 to Z7) is specified in a 32-bit instruction, the specified Z and its counterpart V (V0 to V7) work together as 32-bit registers. The indexing operation is explained in an example in which the transfer destinations [D1, D0] in DMOV instruction are indexed with the index registers [V4, Z4] (as shown in the figure on the right). Transfer K0 or K10 to the index registers [V4, Z4] in advance. When X003 is set to ON, "[D(1+0), D(0+0)] = [D1, D0]" if [V4, Z4] is "0", and K69000 is transferred to [D1, D0]. When X003 is set to ON, "[D(1+10), D(0+10)] = [D11, D10]" if [V4, Z4] is "10", and K69000 is transferred to [D11, D10].


FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
5 How to Specify Devices and Constants to Instructions
6) Indexing of I/O relays (octal device numbers) When octal device numbers of X, Y, KnX, and KnY are indexed with index register, the contents of an index register are converted into octal, and then added to the device number. In the example shown in the figure on the right, Y007 to Y000 are output by MOV instruction, and inputs are switched by indexing X007 to X000, X017 to X010, and X027 to X020. When rewriting the index value as "K0", "K8", "K16", the device number converted into octal is added "X000 + 0 = X000", "X000 + 8 = X10", "X000 + 16 = X20", and the input terminal working as the source is changed accordingly.
MOVP K 0 V 3
K 0 → V 3
MOVP K 8 V 3
K 8 → V 3
MOVP K 16 V 3
K16 → V 3
X033 FNC 12
Specified the Device & Constant
V3=0 : X7 to X0 → Y7 to Y0 V3=8 : X17 to X10 → Y7 to Y0 V3=16 : X27 to X20 → Y7 to Y0
A sequence to display the present value of the timers T0 to T9 can be programmed index registers.
Digital switch input for setting timer number X003 to X000
(X003 to X000)BCD→(Z0)BIN
BCD T 0Z0 K4Y000
(T0Z0)BIN→(Y017 to Y000)BCD
"T0Z0 = T0 to T9" according to "Z0 = 0 to 9"
Seven-segment display unit output for displaying timer current value Y017 to Y000
The indexing operation is explained in an example in which the transfer destination in MOV instruction is indexed with the index register V6 (as shown in the figure on the right). Transfer K0 or K20 to the index register V6 in advance. When X005 is set to ON, "K(6+0) = K6" if V6 is "0", and K6 is transferred to D10. When X005 is set to ON, "K(6+20) = K26" if V6 is "20", and K26 is transferred to D10.
MOVP
FNC10-FNC19 Move & Compare
K20 V6
MOVP
K20 → V6
K6V6 D10
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
5 How to Specify Devices and Constants to Instructions
5.7 Indexing
5.7.3 Indexing example for instruction with limited number of use.
By modifying the target device numbers using index registers V and Z, the target device numbers can be changed using the program. In this way, an instruction with a limited number of uses per program can be used with multiple devices.
Example using the TKY instruction (FNC 70) Two groups of key entries (numeric keypad from 0 to 9) store the input data to D0 and D2. Although the TKY instruction (FNC 70) can only be programmed once, modifying the head device number of the input data, storage destination and pressed key information, the information can be input from the two groups of keys (numeric keypad from 0 to 9). Furthermore, even if V is changed while this instruction is being executed, this change is invalid. The change is invalid until the instruction is no longer being driven.


FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
5 How to Specify Devices and Constants to Instructions
MEMO
Specified the Device & Constant
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
6 What to Understand before Programming
6.1 How to Read Explanation of Instructions
This chapter explains the I/O processing, relationship among instructions and programming method which should be understood before creating sequence programs.
In this manual, applied instructions are explained in the following form. For the expression methods and basic rules for applied instructions, read in advance "6.5 General rules for applied instructions" described later.
FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
10 Arithmetic and Logical Operation (, , u, y) – FNC 20 to FNC 29
10.1 FNC 20 – ADD / Addition 1
Indicates applicable PLC versions.
10.1 FNC 20 – ADD / Addition
This instruction executes addition by two values to obtain the result (A + B = C).
oFor the floating point addition instruction EADD (FNC120), refer to Section 18.8.
Expression of applicable versions – → Ver. 2.20: before Ver. 2.20 – Ver. 2.20 →: Ver. 2.20 or later
Mnemonic Operation Condition P FNC 20
Continuous Operation Pulse (Single) Operation
Continuous Operation Pulse (Single) Operation
DADDP
Operand type Description Data type
Data for addition or word device number storing data 16- or 32-bit binary
Data for addition or word device number storing data 16- or 32-bit binary
Word device number storing the addition result 16- or 32-bit binary
Bit Devices Word Devices Others
System User Digit Specification System User Special
Specified the Device & Constant
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 S1 S2 3
3 S1 S2 3
3 S1 S2 3 3 3
S1: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S2: This function is supported only in FX3U/FX3UC PLCs.
Explanation of function and operation
The contents of are added to in binary format, and the addition result is transferred to .
input D S1 S2 D
ADD S1 S2 + o
The contents of [ +1, ] are added to [ +1, ] in binary format, and the addition result is
transferred to [ +1, ].
input D S1 S2 D S1 S2 D
DADD S1 S2 [ +1, ] + [ +1, ] o>1, ]
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation
The above is different from the actual page, as it is provided for explanation only.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
6 What to Understand before Programming
1. Instruction format
No.
Dotted lines on the upper left and lower left sides indicate an independent instruction not associated with the 16-bit or 32-bit type. WDT (FNC 07)
No.
Continuous lines on the upper left side indicates that 16-bit type is available. "D" on the lower left side indicates that the 32-bit type is available. MOV (FNC 12)
No.
Dotted lines on the lower left side indicate that the 32-bit type does not exist. Continuous lines on the upper left side indicate that only the 16-bit type is available. CJ (FNC 00)
P FNC 12 MOV D
No.
Dotted lines on the upper left side indicate that the 16-bit type does not exist. "D" on the lower left side indicates that only the 32-bit type is available. HSCS (FNC 53)
No.
Continuous lines on the upper right side indicate that the continuous operation type is available. "P" on the lower right side indicates that the pulse operation type is available. CMP (FNC 10)
Specified the Device & Constant
No.
Dotted lines on the lower right side indicate that the pulse operation type does not exist. Continuous line on the upper right side indicate that only the continuous operation type is available.
" "on the upper right side indicates that the contents of the destination change in every operation cycle when the continuous operation type is used. When operation should be executed only during the driving of an instruction, use the pulse operation type indicated by "P" on the lower right side.
No.
S S 1
3) Data types - Bit : Bit device - 16-bit BIN : 16-bit binary code - 32-bit BIN : 32-bit binary code - 64-bit BIN : 64-bit binary code - 16/32-bit BIN : 16-bit or 32-bit binary code - 32/64-bit BIN : 32-bit or 64-bit binary code - 4-digit BCD : 4-digit (16-bit) BCD code - 8-digit BCD : 8-digit (32-bit) BCD code - 4/8-digit BCD : 4-digit (16-bit) or 8-digit (32-bit) BCD code - Character string : Character code such as ASCII code and shift JIS code - Character string (only ASCII) : ASCII code - Real number (binary) : Binary floating point - Real number (decimal) : Scientific notation
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
6 What to Understand before Programming
6.1 How to Read Explanation of Instructions
Devices which can be specified in operands of instructions are shown. When a device supports an instruction, "3" is added to the device.
*1. Kn without specification indicates K1 to K4 for 16 bits, and K1 to K8 for 32 bits.
The function of each instruction is explained.
Major errors that are possible to occur in each instruction are described. For details on errors, refer to "Chapter 38. Error Check Method and Error Code List".
Concrete program examples using each instruction are described.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
6 What to Understand before Programming
6.2 Cautions on Creation of Fundamental Programs
This section explains cautions on programming.
(1)LD
(2)AND
(5)OUT
(4)OUT
(2)LD (3)AND
(3)OR
(4)ORB
ORB instruction is not necessary
(2)LD (1)LD
(3)AND
(5)OUT (4)ANB
(4)OUT
Specified the Device & Constant
(2)OR
ANB instruction is not necessary
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
6 What to Understand before Programming
6.2 Cautions on Creation of Fundamental Programs
Suppose that the same coil Y003 is used in two positions as shown in the figure on the right. For example, suppose the X001 is ON and X002 is OFF.

In the first coil Y003, the image memory turns ON and the output Y004 turns ON also because the input X001 is ON. In the second coil Y003, however, the image memory is set to OFF because the input X002 is OFF. Accordingly, the actual output to the outside is "Y003 = OFF, Y004 = ON".

SET, RST or jump instruction can be used instead, or the same output coil can be programmed at each state by step ladder instructions. When step ladder instructions are used, if an output coil located in the main routine is also used in a state, it is handled as a double coil. It is better to avoid such programming.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
6 What to Understand before Programming
C E
B
F
F
A
E
A E
2. Coil connection position
A
E
B
C D
E
Specified the Device & Constant
[Input processing] Input image memory is read
The ON/OFF status of input terminals is received at one time.
Input image is read, and operation is executed according to program.
Acquiring the latest I/O information For acquiring the latest input information or immediately outputting the operation result in the middle of the operation cycle shown above, the I/O refresh instruction is available.
Output devices are driven Batch I/O method (refresh method)
Result is transferred to
2. Short pulses cannot be received. The ON duration and OFF duration of inputs in PLCs require longer time than "PLC scan time + Input filter response delay". When the response delay of the input filter "10 ms" is considered and the scan time is supposed as "10 ms", the ON duration and OFF duration should be at least 20 ms respectively. Accordingly, PLCs cannot handle input pulses at 25 Hz (1000 / (20 + 20) = 25) or more. However, the situation can be improved by PLC special functions and applied instructions.
Convenient functions for improvement By using the following functions, PLCs can receive pulses shorter than the operation cycle:
FNC10-FNC19 Move & Compare
This "input ON" can be received
"Input ON" cannot be received
This "input OFF" cannot be received
FNC20-FNC29 Arith. & Logic Operation
( Time) Output processing Operation cycle

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
6 What to Understand before Programming
6.4 Mutual Relationship Among Program Flow Control Instructions
The table below shows the mutual relationship among various program flow control instructions.
In the table below, " " indicates containment relationship, and " " indicates that zones are partially overlapped.


FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
6 What to Understand before Programming
3:This combination can be used without any problem. ×:This combination is not allowed; Operation error may be occurs. U:This combination is allowed, but is better not to be used because the operation will be complicated.
The DI skip status occurs, but this is not an error.
The operation indicated by continuous lines is described.
The first FEND or END is valid, but the intended processes will not occur. But this is not an error.
Specified the Device & Constant
Instructions having containment relationship can be combined except some combinations as follows:
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
6 What to Understand before Programming
6.5 General Rules for Applied Instructions
Instructions and operands
- Both a function number FNC 00 to FNC and a symbol (mnemonic) indicating the contents are given to each applied instruction. For example, a mnemonic "SMOV (shift move)" is assigned to FNC 13 instruction. - Some applied instructions function only with their instruction part, but many instructions consist of the instruction part and following operands.

: An operand whose contents do not change by execution of the instruction is called "source", and is
indicated by this symbol.
When a device number can be indexed with index registers, the source is expressed as with addition of " ".
When there are two or more sources, they are expressed as , , etc.
: An operand whose contents change by execution of the instruction is called "destination", and
indicated by this symbol.
When indexing is allowed and there are two or more destinations, they are expressed as ,
, etc. in the same way as sources. m, n : Operands not falling under source or destination are expressed as m and n.
When indexing is allowed and there are two or more such operands, they are expressed as m1 , m2 , n1 , n2 ,etc. in the same way as sources and destinations.
- In applied instructions, the program step of the instruction part always occupies 1 step, but each operand occupies 2 or 4 steps depending on whether the instruction is 16-bit type or 32-bit type.
- Bit devices themselves such as X, Y, M and S may be handled. - Combined bit devices, KnX, KnY, KnM, KnS, etc, may be handled as numeric value data.
→ Refer to Section 5.4. - Data registers (D) and current value registers for timers (T) and counters (C) may be handled. - Though data registers (D) are the 16-bit type, two serial data registers are combined when 32-bit data is handled. For example, when a data register D0 is specified as an operand in a 32-bit instruction, D1 and D0 are combined to handle 32-bit data. (D1 handles high-order 16 bits, and D0 handles low-order 16 bits.) When current value registers for T and C are used as general data registers, they are handled in the same way. However, each of 32-bit counters C200 to C255 can handle 32-bit data, and cannot be specified as an operand in a 16-bit instruction.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
6 What to Understand before Programming
Applied instructions are classified into "16-bit type" or "32-bit type" by the size of handled numeric values. And by the operation type, applied instructions are classified into "continuous operation type" or "pulse operation type". Some applied instructions have every combination of this form and type, and others do not.
Command 1 FNC 12
This instruction transfers the contents of D10 to D12.
This instruction transfers the contents of D21 and D20 to D23 and D22.
- In a 32-bit type instruction, the symbol "D" is added (example: DMOV). - Either an odd or even device number can be specified, and a specified device is combined with a device having the subsequent larger number (in the case of word devices such as T, C and D). For avoiding confusion, it is recommended to specify an even device number (which will be the low-order side) for an operand in a 32-bit instruction. - 32-bit counter (C200 to C255) is regarded as 32 bits, and cannot be used as an operand in a 16-bit instruction.
In the example shown in the figure on the right, when X000 turns from OFF to ON , the instruction is executed only once, and is not executed in any other case. When it is not necessary to continually execute an instruction, use the pulse operation type. The symbol "P" indicates the pulse operation type. "DMOVP" indicates also the pulse operation type.
MOVP D10 D12
Specified the Device & Constant
X001 FNC 12
The figure on the right shows a continuous operation type instruction. While X001 is ON, the instruction is executed in every operation cycle.
In the continuous operation type of some instructions such as INC (FNC 24) and DEC (FNC 25), the contents of the destination change in every operation cycle.
For applied instructions requiring attention in using the continuous operation type, the symbol " " is added to the title of the explanation of such instructions as shown in the figure below.
No.
In any case, instructions are not executed while the drive input X000 or X001 is OFF. And the destinations do not change except when instructions specify otherwise.
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
6 What to Understand before Programming
6.5 General Rules for Applied Instructions
In some types of applied instructions, the following flags operate: Examples: M8020: Zero flag M8021: Borrow flag M8022: Carry flag M8029: Instruction execution complete flag M8090: Block comparison signal M8328: Instruction non-execution flag M8329: Instruction execution abnormal complete flag M8304: Zero Flag M8306:Carry Flag These flags turn ON or OFF every time various instructions turn ON, but do not change when various instructions turn OFF not driven or when errors have occurred. Because these flags turn ON or OFF in many instructions, the ON/OFF status of flags change every time such instructions are executed. Program flag contacts directly under each instruction while referring to the examples below.

M8029 works as a flag to indicate that execution of DSW is completed.
M8029 works as a flag to indicate that execution of DPLSY is completed.
M8029 works as a flag to indicate that execution of the second DPLSY is completed.
M8029 works as a flag to indicate that execution of DSW is completed.
M8029 works as a flag to indicate that execution of the first DPLSY is completed.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
6 What to Understand before Programming

DSW execution complete flag M8029 is changed to M100.
DPLSY execution complete flag M8029 is changed to M200.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
6 What to Understand before Programming
6.5 General Rules for Applied Instructions
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.
Error detected step number storage device
Error flag Error code storage device
FX3S/FX3G/FX3GC PLCs FX3U/FX3UC PLCs
Error detected step number storage device
Error flag Error code storage device
FX3S/FX3G/FX3GC PLCs FX3U/FX3UC PLCs
In some applied instructions, the function can be extended by combining a specific special auxiliary relay determined for each applied instruction. An example is explained below.
- When X000 turns ON, this instruction exchanges the contents of D10 and D11 with each other.
XCHP D10 D11
- If M8160 has been driven before the XCH instruction and the source and destination of the XCH instruction are specified to the same device, high-order 8 bits and low- order 8 bits are exchanged with each other inside the device.
Function extension flag for the XCH instruction
XCHP D10 D10
- For returning this XCH instruction to the normal XCH instruction, it is necessary to set M8160 to OFF.
When using an instruction requiring the function extension flag in an interrupt program, program DI instruction (for disabling interrupt) before driving the function extension flag, and program EI instruction (for enabling interrupt) after turning OFF the function extension flag.
Same number

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
6 What to Understand before Programming
6.5.5 Limitation in the number of instructions and limitation in simultaneous instruction instances
Some applied instructions can only be used up to the specified number of times.
Instruction name Allowable number of times of
FNC 52 (MTR) 1 MTR instruction can only be used once in program.
FNC 56 (SPD) 8 (1 instruction/1 input or less) Pay attention so that this instruction does not overlap the input numbers of in DVIT
instruction, DOG inputs in ZRN instruction, zero point signal in DSZR instruction,
input interrupt numbers and high-speed counter input numbers.
FNC 69 (SORT) 1 −
FNC 70 (TKY) 1 −
FNC 71 (HKY) 1 −
FNC 75 (ARWS) 1 −
FNC 77 (PR) 2 −
FNC149 (SORT2) 2 −
FNC186 (DUTY) 5 (1 instruction/1 input or less) −
When using above instructions beyond the allowable number of times of use For instructions whose operands allow indexing, device numbers and numeric values in such instructions can be changed by index registers. By indexing, when driving multiple instances simultaneously is not required, such instruction can be used as if they were used beyond the allowable number of times.
Specified the Device & Constant
→ Refer to "Subsection 5.7.3. Indexing example for instruction with limited number of use.".
Some applied instructions can be programmed two or more times, but the number of simultaneous instances is limited. Even in instructions not shown below, if two or more instructions are driven at the same time for the same I/O number, it is regarded as double outputs. In some combinations of instructions, the operation may be disrupted, or the instructions cannot be executed. For details, refer to the caution described in each instruction page. For combinations of instructions, refer to "6.4 Mutual Relationship Among Program Flow Control Instructions".
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
6 What to Understand before Programming
6.6 Symbolic information storage and block password
The FX3U/FX3UC PLC Ver. 3.00 or later can store symbolic information (data indicating the program configuration such as structure and labels). By using this function, you can read symbolic information from the PLC, and edit labels, function blocks, etc. GX Works2 Ver. 1.62Q or later is required to store symbolic information.
→ Refer to the GX Works2 Version 1 Operating Manual (Common) for the details on symbolic information.
In GX Works2, program parts can be protected by setting the block password. In the FX3U/FX3UC PLC Ver. 3.00 or later, the setting "Read-protect the execution program" is available for the block password.
→ Refer to the GX Works2 Version 1 Operating Manual (Common) for the details on the block password.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
This chapter explains types and functions of basic sequence instructions. For beginners to sequence control, we offer "Introduction Course" and "Relay Ladder Course" learning texts for reference. We can also offer the PLC learning software "Beginner Course".
Mnemonic Name Symbol Function Applicable devices Reference
Initial logical operation contact type NO (normally open)
X,Y,M,S,D .b,T,C Section 7.1
Initial logical operation contact type NC (normally closed)
X,Y,M,S,D .b,T,C Section 7.1
LDP Load Pulse Initial logical operation of rising edge pulse X,Y,M,S,D .b,T,C Section 7.5
LDF Load Falling Pulse Initial logical operation of falling/trailing edge pulse X,Y,M,S,D .b,T,C Section 7.5
AND AND Serial connection of NO (normally open) contacts X,Y,M,S,D .b,T,C Section 7.3
ANI AND Inverse Serial connection of NC (normally closed) contacts X,Y,M,S,D .b,T,C Section 7.3
Specified the Device & Constant
ANDP AND Pulse Serial connection of rising edge pulse X,Y,M,S,D .b,T,C Section 7.5
ANDF AND Falling Pulse Serial connection of falling/ trailing edge pulse X,Y,M,S,D .b,T,C Section 7.5
OR OR Parallel connection of NO (normally open) contacts X,Y,M,S,D .b,T,C Section 7.4
ORI OR Inverse Parallel connection of NC (normally closed) contacts X,Y,M,S,D .b,T,C Section 7.4
ORP OR Pulse Parallel connection of rising edge pulse X,Y,M,S,D .b,T,C Section 7.5
ORF OR Falling Pulse Parallel connection of falling/ trailing edge pulse X,Y,M,S,D .b,T,C Section 7.5
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
Mnemonic Name Symbol Function Applicable devices Reference
ANB AND Block Serial connection of multiple parallel circuits − Section 7.7
ORB OR Block Parallel connection of multiple contact circuits − Section 7.6
MPS Memory Point Store
Stores the current result of the internal PLC operations
Section 7.8
MRD Memory Read Reads the current result of the initial PLC operations Section 7.8
MPP Memory POP Pops (recalls and removes) the currently stored result Section 7.8
Invert the current result of the internal PLC operations
− Section 7.10
Conversion of operation result to leading edge pulse
− Section 7.11
Conversion of operation result to trailing edge pulse
− Section 7.11
OUT OUT Final logical operation type coil drive Y,M,S,D .b,T,C Section 7.2
SET SET Set bit device latch ON Y,M,S,D .b Section 7.13
RST Reset Reset bit device OFF Y,M,S,D .b,T,C, D,R,V,Z Section 7.13
PLS Pulse Rising edge pulse Y,M Section 7.12
PLF Pulse Falling Falling/trailing edge pulse Y,M Section 7.12
MC Master Control Denotes the start of a master control block Y,M Section 7.9
Applicable devices MC N
MCR Master Control Reset
Denotes the end of a master control block − Section 7.9
NOP No Operation No operation or null step − Section 7.14
END END Program end, I/O refresh and return to step 0 − Section 7.15

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
7.1 LD, LDI
LD and LDI instructions are contacts connected to bus lines. When combined with ANB instruction described later, LD and LDI instructions can be used for the start of branches.
LD
Continuous Operation Pulse (Single) Operation
Continuous Operation Pulse (Single) Operation
→ For the number of instruction steps, refer to Section 7.16.
Bit Devices Word Devices Others
System User Digit Specification System User Special
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
LD 3 3 S 1 3 S 1 S
Specified the Device & Constant
LDI 3 3 S 1 3 S 1 S
S1: Special auxiliary relays (M) and 32-bit counters (C) cannot be indexed with index registers (V and Z). S2: State relays (S) cannot be indexed with index registers (V and Z). S3: "D .b" is available only in FX3U and FX3UC PLCs. However, index modifiers (V and Z) are not available. S4: This function is supported only in FX3U/FX3UC PLCs.
1. LD instruction (initial logical operation, NO contact type)
Circuit program List program
Connection to bus line
ON ON X000
ON ON Y000
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
2. LDI instruction (initial logical operation, NC contact type)
Circuit program List program
Connection to bus line
ON ON X000
Y000
ON ON
3. Indexing *1
Devices used in LD and LDI instructions allow indexing with index registers (V and Z). (State relays (S), special auxiliary relays (M), 32-bit counters (C), and "D .b" cannot be indexed.)
V0 to V7 and Z0 to Z7 are available in indexing. When used devices are inputs (X) and outputs (Y), values of index registers (V and Z) are converted into octal numbers, and then added. Example: When the value of V0 is 10, LD contact
Circuit program List program
Y000
is set to ON (becomes conductive) or OFF (becomes non-conductive) by X012.
*1. This function is supported only in FX3U/FX3UC PLCs.
When specifying a bit in data register, input "." after a data register (D) number, and then input a bit number (0 to F) consecutively. Only 16-bit data registers are available. Specify a bit number as "0, 1, 2, ... 9, A, B, ... F" from the least significant bit. Example: In the example shown on the left, LD
Circuit program List program
Y000
contact is set to ON (becomes conductive) or OFF (becomes non- conductive) by bit 3 of D0.
*1. This function is supported only in FX3U/FX3UC PLCs.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
7.2 OUT
OUT instruction drives coils of output relays (Y), auxiliary relays (M), state relays (S), timers (T) and counters (C).
OUT
Continuous Operation Pulse (Single) Operation
→ For the number of instruction steps, refer to Section 7.16.
Bit Devices Word Devices Others
System User Digit Specification System User Special
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
2 S 3 S 5
Set value 3 S
S1: Special auxiliary relays (M) and 32-bit counters (C) cannot be indexed with index registers (V and Z). S2: State relays (S) cannot be indexed with index registers (V and Z). S3: "D .b" is available only in FX3U and FX3UC PLCs. However, index modifiers (V and Z) are not available. S4: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S5: This function is supported only in FX3U/FX3UC PLCs.
Specified the Device & Constant
Circuit program List program
Drive contact of OUT instruction
0000 0001 0002 0003 0004
X000 Y000 X001 M100 M101
Y000
M100
Program step numbers are automatically controlled.
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition


The set value of a timer or counter can be specified directly by a decimal number (K).

The set value of a timer or counter can be set by a data register (D) or extension data register (R). At this time, the current value of the data register (D) or extension register (R) is regarded as the set value of the timer or counter. It is necessary to write the set value to a data register (D) or extension register (R) used for the set value by MOV instruction, DSW instruction or display unit before driving the timer or counter.

Timer/counter Setting range (Value of K or current value of D or R) Actual set value Number of steps
1 ms timer 1 to 32767 0.001 to 32.767 sec 3
10 ms timer 1 to 32767 0.01 to 327.67 sec 3 100 ms timer 0.1 to 3276.7 sec
16-bit counter 1 to 32767 Same as left 3
32-bit counter −2,147,483,648 to +2,147,483,647 Same as left 5
7 Basic Instruction

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
Devices used in OUT instruction can be indexed with index registers (V and Z). (State relays (S), special auxiliary relays (M), 32-bit counters (C), and "D .b" cannot be indexed.)
The index registers V0 to V7 and Z0 to Z7 are available for indexing. When a used device is an input (X) or output (Y), the value of an index register (V or Z) is converted into an octal number, and then added. Example: When the value of Z0 is "20", Y024
Circuit program List program
Y000Z0
turns ON or OFF.
*1. This function is supported only in FX3U/FX3UC PLCs.
A bit in data register (D) can be specified as a device used in OUT instruction.
Circuit program List program
When specifying a bit in data register, input "." after a data register (D) number, and then input a bit number (0 to F) consecutively. Only 16-bit data registers are available. Specify a bit number as "0, 1, 2, ... 9, A, B, ... F" from the least significant bit. Example: In the example shown on the left, the
bit 3 of D0 turns ON or OFF when X000 turns ON or OFF.
*1. This function is supported only in FX3U/FX3UC PLCs.
Specified the Device & Constant
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
7.3 AND, ANI
Outline
AND and ANI instructions connect one contact in series. The number of contacts connected in series is not limited, so AND and ANI instructions can be used consecutively as many times as necessary. Output to another coil by way of a contact after the OUT instruction is called cascade output. Such a cascade output can be repeated as many times as necessary as long as the order is correct.

→ For the number of instruction steps, refer to Section 7.16.

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
AND 3 3 S 1 3 S 1 S
ANI 3 3 S 1 3 S 1 S
S1: Special auxiliary relays (M) and 32-bit counters (C) cannot be indexed with index registers (V and Z). S2: State relays (S) cannot be indexed with index registers (V and Z). S3: "D .b" is available only in FX3U and FX3UC PLCs. However, index modifiers (V and Z) are not available. S4: This function is supported only in FX3U/FX3UC PLCs.
1. AND instruction (serial connection of NO (normally open) contacts)

7 Basic Instruction

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
Circuit program List program
X002 X000 Y003
Contact connected in series
ON ON X002
ON ON X000
ON Y003
ON
3. Indexing *1
Devices used in AND and ANI instruction can be indexed with index registers (V and Z). (State relays (S), special auxiliary relays (M), 32-bit counters (C), and "D .b" cannot be indexed.)
The index registers V0 to V7 and Z0 to Z7 are available for indexing. When a used device is an input (X) or output (Y), the value of an index register (V, Z) is converted into an octal number, and then added. Example: When the value of V0 is "10", AND
Circuit program List program
Specified the Device & Constant
X002 X000V0 Y003
Y003
contact is set to ON or OFF by X012.
*1. This function is supported only in FX3U/FX3UC PLCs.
A bit in data register (D) can be specified as a device used in AND and ANI instructions.
When specifying a bit in data register, input "." after a data register (D) number, and then input a bit number (0 to F) consecutively. Only 16-bit data registers are available. Specify a bit number as "0, 1, 2, ... 9, A, B, ... F" from the least significant bit. Example: In the example shown on the left, AND
Circuit program List program
X002 D0.3 Y003
Y003
contact turns ON (becomes conductive) when the bit 3 of D0 turns ON.
*1. This function is supported only in FX3U/FX3UC PLCs.
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
Program examples
Circuit program List program
0000 0001 0002 0003 0004 0005 0006 0007
LD AND OUT LD ANI OUT AND OUT (SP) LD ANI OUT
X000 X001 Y003 X002 X003 Y004 X004 T0 K30 X005 T0 Y005
Contact connected in series X001
Contact connected in series
Contact connected in series
Contact connected in series
T0
T0
Y005

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
7.4 OR, ORI
OR and ORI instructions are used to connect one contact in parallel. If two or more contacts are connected in series, use ORB instruction described later to connect such a serial circuit block to another circuit in parallel. A step containing OR or ORI instruction is connected in parallel to a preceding step containing LD or LDI instruction. There is no limitation in the number of times of parallel connection.
OR
Continuous Operation Pulse (Single) Operation
ORI
ORI
Continuous Operation Pulse (Single) Operation
→ For the number of instruction steps, refer to Section 7.16.
Bit Devices Word Devices Others
System User Digit Specification System User Special
Specified the Device & Constant
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
OR 3 3 S 1 3 S 1 S
ORI 3 3 S 1 3 S 1 S
S1: Special auxiliary relays (M) and 32-bit counters (C) cannot be indexed with index registers (V and Z). S2: State relays (S) cannot be indexed with index registers (V and Z). S3: "D .b" is available only in FX3U and FX3UC PLCs. However, index modifiers (V and Z) are not available. S4: This function is supported only in FX3U/FX3UC PLCs.
1. OR instruction (parallel connection of NO (normally open) contacts)
Circuit program List program
LD OR OUT
ON ON
FNC10-FNC19 Move & Compare
ON ON
ON
Y000
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
2. ORI instruction (parallel connection of NC (normally closed) contacts)


Devices used in OR and ORI instruction can be indexed with index registers (V and Z). (State relays (S), special auxiliary relays (M), 32-bit counters, and "D .b" cannot be indexed.)

The index registers V0 to V7 and Z0 to Z7 are available for indexing. When the used device is an input (X) or output (Y), the value of an index register (V or Z) is converted into an octal number, and then added. Example: When the value of V0 is "10", OR
contact is set to ON (becomes conductive) or OFF (becomes non- conductive) by X013.
*1. This function is supported only in FX3U/FX3UC PLCs.
7 Basic Instruction

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
A bit in data register (D) can be specified as a device used in OR and ORI instructions.
When specifying a bit in data register, input "." after a data register (D) number, and then input a bit number (0 to F) consecutively. Only 16-bit data registers are available. Specify a bit number as "0, 1, 2, ... 9, A, B, ... F" from the least significant bit. Example: In the example shown on the left, OR
Circuit program List program
LD OR OUT
contact is set to ON (becomes conductive) or OFF (becomes non- conductive) by bit 3 of D0.
*1. This function is supported only in FX3U/FX3UC PLCs.
Specified the Device & Constant
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
7.5 LDP, LDF, ANDP, ANDF, ORP, ORF
Outline
LDP, ANDP, and ORP instructions for contacts detect the rising edge, and become active during one operation cycle only at the rising edge of a specified bit device (that is, when the bit device turns from OFF to ON). Contact instructions LDF, ANDF and ORF detect the falling edge, and become active during one operation cycle only at the falling edge of a specified bit device (that is, when the bit device turns from ON to OFF).

→ For the number of instruction steps, refer to Section 7.16.

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
S: This function is supported only in FX3U/FX3UC PLCs.
7 Basic Instruction

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition

0000 LDP X000 0002 ORP X001 0004 OUT M0 0005 LD M8000 0006 ANDP X002 0008 OUT M1 M8000 X002
In the example shown above, M0 or M1 is ON during only one operation cycle when X000 to X002 turn from OFF to ON.
7 Basic Instruction

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition

0000 LDF X000 0002 ORF X001 0004 OUT M0 0005 LD M8000 0006 ANDF X002 0008 OUT M1
In the example shown above, M0 or M1 is ON during only one operation cycle when X000 to X002 turn OFF from ON.
A bit in data register (D) can be specified as a device used in LDP, LDF, ANDP, ANDF, ORP and ORF instructions.

When specifying a bit in a data register, input "." after a data register (D) number, and then input a bit number (0 to F) consecutively. Only 16-bit data registers are available. Specify a bit number as "0, 1, 2, ... 9, A, B, ... F" from the least significant bit. Example: In the example shown on the left, LDP
contact turns ON (becomes conductive) or OFF (becomes non- conductive) when bit 3 of D0 turns ON or OFF.
*1. This function is supported only in FX3U/FX3UC PLCs.
7 Basic Instruction

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition

In each circuit, M6 is ON during only one operation cycle when X010 turns from OFF to ON.
In each circuit, MOV instruction is executed only once when X020 turns from OFF to ON.
7 Basic Instruction

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition

After M0 is driven by X000, all contacts [1] to [4] corresponding to M0 are activated.
From M2800 driven by X000, the program is divided into the upper block (block A) and the lower block (block B). In each of the blocks A and B, only the first contact which detects the rising or falling edge is activated. Because of LD instruction, the contact in the block C is conductive while M2800 is ON. By utilizing these characteristics, "transition of state by same signal" in a step ladder circuit can be efficiently programmed.

7 Basic Instruction ·

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
Operation
1) Instructions for falling edge pulse When writing is completed during RUN for a circuit including an instruction for falling edge pulse (LDF, ANDF, or ORF instruction), the instruction for falling edge pulse is not executed regardless of the ON/OFF status of the target device of the instruction for falling edge pulse. When writing is completed during RUN for a circuit including an instruction for falling edge pulse (PLF instruction), the instruction for falling edge pulse is not executed regardless of the ON/OFF status of the operation condition device. It is necessary to set to ON the target device or operation condition device once and then set it to OFF for executing the instruction for falling edge pulse.
Specified the Device & Constant
Contact ON/OFF status (while writing is executed during RUN) Instruction for rising edge pulse Instruction for falling edge pulse
OFF Not executed Not executed
ON Executed*1 Not executed
*1. PLS instruction is not executed.
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
7.6 ORB
Outline
A circuit in which two or more contacts are connected in series is called serial circuit block.
ORB
Continuous Operation Pulse (Single) Operation

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

Appropriate program 0000 LD X000 0001 AND X001 0002 LD X002 0003 AND X003 0004 0005 LDI X004 0006 AND X005 0007 0008 OUT Y006
Inappropriate program 0000 LD X000 0001 AND X001 0002 LD X002 0003 AND X003 0004 LDI X004 0005 AND X005 0006 0007 0008 OUT Y006
There is no limitation in the number of parallel circuits which can be connected by ORB instructions (in the case of appropriate program shown above). Though ORB instructions can be used at one time, note that the repeated use of LD or LDI instruction is limited to 8 or less (in the case of inappropriate program shown above).

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
7.7 ANB
Use ANB instruction to connect a branch circuit (parallel circuit block) to the preceding circuit in series. Use LD or LDI instruction at the start of branch. After completing a parallel circuit block, connect the parallel circuit block to the preceding circuit in series by ANB instruction. When there are many parallel circuits, ANB instruction can be used in each circuit block to connect them.
ANB
Continuous Operation Pulse (Single) Operation
Bit Devices Word Devices Others
System User Digit Specification System User Special
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
ANB There are no applicable devices.
1. ANB instruction (serial connection of multiple parallel circuits)
Specified the Device & Constant
Circuit program List program
ANB
X000 X002
0000 LD X000 0001 OR X001 0002 LD X002 Branch start point 0003 AND X003 0004 LDI X004 0005 AND X005 0006 ORB Parallel block is completed. 0007 OR X006 0008 It is connected to the 0009 OR X003 preceding circuit in series. 0010 OUT Y007
X004 X005
ORB
ANB
OR instruction before ANB instruction
OR instruction after ANB instruction
There is no limitation in the number of ANB instruction. Though ANB instructions can be used at one time, note that the repeated use of LD or LDI instruction is limited to 8 or less in the same way as ORB instruction.
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
7.8 MPS, MRD, MPP
Outline
FX3G, FX3U FX3GC and FX3UC PLCs have 11 memories called "Stack" which store the intermediate result (ON or OFF) of operations.


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
These instructions are convenient in programming branched multi-output circuits.

0018 LD X004 0019 0020 AND X005 0021 OUT Y002 0022 0023 AND X006 0024 OUT Y003 0025 0026 OUT Y004 0027 0028 AND X007 0029 OUT Y005 0030 END
MPS instruction can be used two or more times. However, the difference between number of MPS instructions and the number of MPP instructions should be 11 or less, and should be 0 at the end.
7 Basic Instruction

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
Circuit program List program
X000 X001 X002
0000 LD X000 0001 AND X001 0002 0003 AND X002 0004 OUT Y000 0005 0006 OUT Y001 0007 LD X003 0008 0009 AND X004 0010 OUT Y002 0011 0012 AND X005 0013 OUT Y003 0014 LD X006 0015 0016 AND X007 0017 OUT Y004 0018 0019 AND X010 0020 OUT Y005 0021 0022 AND X011 0023 OUT Y006 0024 0025 AND X012 0026 OUT Y007
MPS
Y001
MPP
MPP
MPS
X003 X004
Y002
MPS
Y003 X005
MPP
MPP
MPS
MPS
X006 X007
Y004
Y005 X010
MRD
Specified the Device & Constant
Y006 X011
MRD
MRD
Y007 X012
MPP
MPP
Circuit program List program
X000 X001
Y000
0000 LD X000 0001 0002 LD X001 0003 OR X002 0004 ANB 0005 OUT Y000 0006 0007 LD X003 0008 AND X004 0009 LD X005 0010 AND X006 0011 ORB 0012 ANB 0013 OUT Y001 0014 0015 AND X007 0016 OUT Y002 0017 LD X010 0018 OR X011 0019 ANB 0020 OUT Y003
Y001 X004
X005 X006
MRD
MRD
Y002
MPP
Y003 X010
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition

0000 LD X000 0001 0002 AND X001 0003 0004 AND X002 0005 OUT Y000 0006 0007 AND X003 0008 OUT Y001 0009 0010 AND X004 0011 0012 AND X005 0013 OUT Y002 0014 0015 AND X006 0016 OUT Y003

0000 LD X000 0001 0002 AND X001 0003 0004 AND X002 0005 0006 AND X003 0007 0008 AND X004
0009 OUT Y000 0010 0011 OUT Y001 0012 0013 OUT Y002 0014 0015 OUT Y003 0016 0017 OUT Y004
0000 LD X000 0001 OUT Y004 0002 AND X001 0003 OUT Y003 0004 AND X002 0005 OUT Y002 0006 AND X003 0007 OUT Y001 0008 AND X004 0009 OUT Y000
In programming a circuit on the upper side, it is necessary to MPS instruction three times. By changing the circuit on the upper side into the circuit on the lower side, the same contents can be programmed easily without MPS instruction.
7 Basic Instruction

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
7.9 MC, MCR
When MC instruction is executed, the bus line (LD or LDI point) is moved to a position after MC contact. The bus line can be returned to the original position by MCR instruction. By changing a device (Y or M) number, MC instruction can be used as many times as necessary. If the same device number is used twice, however, it results in the double coil operation in the same way as OUT instruction.
MC
Continuous Operation Pulse (Single) Operation
Continuous Operation Pulse (Single) Operation
→ For the number of steps of MC instruction, refer to Section 7.16.
Bit Devices Word Devices Others
System User Digit Specification System User Special
Specified the Device & Constant
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
MCR There are no applicable devices.
1. MC and MCR instructions (denotes the start of a master control block and denotes the end of a master control block) When MC instruction is executed, the bus line is moved to a position after MC contact. Drive instructions connected to the bus line after the MC contact execute each operation only when the MC instruction is executed, and execute each operation in the contact OFF status regardless of the contact status before drive instructions when a MC instruction is not executed. If an instruction (such as FOR/NEXT, EI and DI instruction) not requiring a contact instruction exists in a circuit using master control, such an instruction is executed regardless of the MC instruction execution command. In the program example below, the instructions from MC to MCR are executed as they are while the input X000 is ON. However, while the input X000 is OFF, each driven device offers the following operation:
Timers (except retentive type timers) and devices driven by OUT instruction: Turn OFF. Retentive type timers, counters and devices driven by SET/RST instruction: Hold the current status. The expressions of circuit programs used to explain operations are circuits (for reading or monitoring) of GX Works2 and GX Developer.
Circuit program List program
0000 LD X000 0001 MC N000 SP M100 0004 LD X001 0005 OUT Y000 0006 LD X002 0007 OUT Y001 0008 MCR N 0 ← Two-step instruction
FNC10-FNC19 Move & Compare
Y000
X002 Y001
FNC20-FNC29 Arith. & Logic Operation
← Write MCR N0 instruction.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
Caution

0000 LD X000 0001 MC N000 SP M100 0004 LD X001 0005 OUT Y000 0006 LD X002 0007 OUT Y001 0008 MCR N000 ← Two-step instruction
←Return to the bus line ("N0" shows the
use "N0" again. There is no limitation in the number of "N0". Only in the nesting structure, increase the nest level "N" in the way "N0 → N1 ... N6 → N7" as shown in the example 2 on the next page.
7 Basic Instruction
![Page 209 of the Mitsubishi Electronics MELSEC FX3S user manual — [A]](/cdn/reader/06/06b6c5c8bfa3e981e964d8ed7432322fb86c682a85757d292a29f9cec2d4294a/images/page-209.webp?w=400)
FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
2) When the nesting structure is adopted When using MC instructions inside MC instruction, increase the nest level "N" in turn in the way "N0 → N1 → N2 → N3 → N4 → N5 → N6 → N7". For returning from the nesting structure, reset the nest levels from the highest one in turn using MCR instruction in the way "N7 → N6 → N5 → N4 → N3 → N2 → N1 → N0". For example, if "MCR N5" is programmed without programming "MCR N6" and "MCR N7", the nest level is returned to 5 immediately. Available nest levels are from N0 to N7 (eight layers).
While X000 is OFF
MC N 0 M100
[A]
N 0 M100
Level N0 The bus line B is active while X000 is ON.
[B]
While X002 is OFF
MC N 1 M101
N 1 M101
Level N1 The bus line C is active while both X000 and X002 are ON.
[C]
Specified the Device & Constant
While X004 is OFF
MC N 2 M102
N 2 M102
Level N2 The bus line D is active while all of X000, X002 and X004 are ON.
MCR N 2
N 2
Y003
Level N1 The bus line returns to the status of the bus line C by "MCR N2".
MCR N 1
N 1
Y004
Level N0 The bus line returns to the status of the bus line B by "MCR N1".
FNC10-FNC19 Move & Compare
N 0
Initial status The bus line returns to the initial status of the bus line A by "MCR N0". Accordingly, Y005 turns ON or OFF by turning ON or OFF of X010 regardless of X000, X002 and X004.
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
7.10 INV
Outline
Continuous Operation Pulse (Single) Operation

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
1. INV instruction (inverts the result of operations)

OFF 0 LD X000 1 INV 2 OUT Y000
In the figure above, Y000 turns ON when X000 is OFF, and Y000 turns OFF when X000 is ON. INV instruction can be used in the same position as serial contact instructions (AND, ANI, ANDP and ANDF). Different from LD, LDI, LDP and LDF instructions shown in the list, INV instruction cannot execute connection to bus lines. Different from OR, ORI, ORP and ORF instructions, INV instruction cannot be used independently in parallel to a contact instruction.

INV instruction inverts the operation result after LD, LDI, LDP or LDF instruction located before INV instruction. Accordingly, if INV instructions are used inside ORB and ANB instructions, blocks after LD, LDI, LDP or LDF instruction seen from each INV instruction are regarded as the target of INV operation.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
7.11 MEP, MEF
MEP and MEF commands are instructions that change the operation results to pulses so that device numbers do not have to be specified.
MEP
− Continuous Operation Pulse (Single) Operation
MEP
MEF
− Continuous Operation Pulse (Single) Operation
MEF
Specified the Device & Constant
Bit Devices Word Devices Others
System User Digit Specification System User Special
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
MEP There are no applicable devices.
MEF There are no applicable devices.
1. MEP instruction (ON during rising edge of driving contacts results)
Circuit Program List program
0 1 2 3
X000 X001
OFF
ON X000
M0 SET
M0
ON X001 OFF
ON M0 OFF
2. MEF instruction (ON during falling edge of driving contacts results)
Circuit program List program
0 1 2 3
X000 X001
ON X000
OFF
OFF
FNC10-FNC19 Move & Compare
M0
ON X001 OFF
OFF
ON M0 OFF
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
Caution
Circuit program List program
0 1 2 3
M0 M1
Y001 SET
M2
M2
SET 5 Y001 ANB 4
Judges the rising/falling edge based on the rung status in this range.
Operation Results up to MEP/MEF Instruction
(while writing is executed during RUN) MEP Instruction MEF Instruction
OFF OFF (non-conductive) OFF (non-conductive)
ON ON (conductive) OFF (non-conductive)
7 Basic Instruction

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
7.12 PLS, PLF
When PLS instruction is executed, an applicable device is activated during only one operation cycle after a drive input turns ON. When PLF instruction is executed, an applicable device is activated during only one operation cycle after a drive input turns OFF.
PLS
− Continuous Operation Pulse (Single) Operation
PLF
− Continuous Operation Pulse (Single) Operation
→ For the number of instruction steps, refer to Section 7.16.
Bit Devices Word Devices Others
System User Digit Specification System User Special
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
Specified the Device & Constant
PLF 3 S 1 S 2
S1: Except special auxiliary relays (M) S2: This function is supported only in FX3U/FX3UC PLCs.
1. PLS instruction (rising edge pulse)
Circuit program List program Timing chart
0000 LD X000 0001 PLS M 0 X000
M0 PLS
ON during one operation cycle
M 0 PLS instruction
In the figure above, M0 is ON during only one operation cycle when X000 changes from OFF to ON.
Circuit program List program Timing chart
0000 LD X000 0001 PLF M 1 X000
M1 PLF
ON during one operation
M 1 PLF instruction
In the figure above, M1 is ON during only one operation cycle when X000 changes from ON to OFF.
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition

In each case, M0 is ON during only one operation cycle when X000 changes from OFF to ON.

In each case, MOV instruction is executed only once when X000 changes from OFF to ON.
1. Cautions on writing during RUN
1) Instructions for falling edge pulse When writing is completed during RUN for a circuit including an instruction for falling edge pulse (LDF, ANDF, or ORF instruction), the instruction for falling edge pulse is not executed regardless of the ON/OFF status of the target device of the instruction for falling edge pulse. When writing is completed during RUN for a circuit including an instruction for falling edge pulse (PLF instruction), the instruction for falling edge pulse is not executed regardless of the ON/OFF status of the operation condition device. It is necessary to set to ON the target device or operation condition device once and then set it to OFF for executing the instruction for falling edge pulse.

Contact ON/OFF status (while writing is executed during RUN) Instruction for rising edge pulse Instruction for falling edge pulse
*1. PLS instruction is not executed.
7 Basic Instruction

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
ZRST
M100 M0
M0 PLS
M 0
Please program in the following way to turn on M0 only once.
Specified the Device & Constant
M100 M0 ZRST
M0
When the PLC mode is switched in the way "RUN → STOP → RUN (or power supply ON (RUN) → power supply OFF → power supply ON (RUN))" while a drive input remains ON, PLS M600 does not operate. However, it is possible to operate PLS M600 (latched device) by resetting once using the ZRST instruction.
M700 M600 ZRST
RUN/STOP
RUN STOP RUN
M600 PLS
M600 (latched device) PLS instruction
ON during one operation cycle
ON during one operation cycle
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
7.13 SET, RST
Outline
3) Clearing the present value of a word device (RST instruction reset bit device OFF)) RST instruction clears the current value of a timer (T), counter (C), data register (D), extension register (R) or index register (V)(Z). RST instruction can be used to clear to "0" the contents of a data register (D) or index register (V)(Z). (The same result can be obtained by MOV instruction which transfers the constant K0.) RST instruction can be used also to reset the current value and return the contact of retentive type timers T246 to T255. SET and RST instructions can be used for the same device as many times as necessary in an arbitrary order.

→ For the number of instruction steps, refer to Section 7.16.

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
S1: Special auxiliary relays (M) and 32-bit counters (C) cannot be indexed with index registers (V and Z). S2: Index modifiers (V and Z) are not available. S3: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S4: This function is supported only in FX3U/FX3UC PLCs.
7 Basic Instruction

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
SET instruction drives the coil for an output relay (Y), auxiliary relay (M), state relay (S) and bit specification of data register (D).
Circuit program List program Timing chart
0 LD X000 1 SET Y000 2 LD X001 3 RST Y000
ON
RST Y000
Y000
ON
C0 up-counts the number of times X011 turns from OFF to ON. When the counting result reaches the set value K10, the output contact C0 is activated. Even if X011 changes from OFF to ON after that, the current value of the counter remains unchanged and the output contact remains activated. For clearing the counter and returning the output contact, X010 is set to ON. It is necessary to specify a constant K or data register number for indirect specification after OUT C instruction. In the case of latched (battery backed) type counters, the current value and the operation status/reset status of the output contact are latched even after power failure.
K10
Y000 C 0
Specified the Device & Constant
For 1-phase 1-input counters C235 to C245, use special auxiliary relays M8235 to M8245 for specifying the counting direction. X010 in ON status: Specifies down counting. X010 in OFF status: Specifies up counting. When X011 turns ON, the output contact of the counter CUUU is returned and the current value of the counter CUUU is reset to "0". In counters with reset input (C241, C242 ...), the same situation is achieved by interrupt operation when the corresponding reset input turns ON, but any program is not required for this operation. When X012 turns ON, turning ON/OFF of a counting input X000 to X005 determined according to the counter number is counted. In counters having start input (C244, C245 ...), counting is started only after the corresponding input turns ON. When the current value of a counter increases and reaches the set value (K or contents of D), the output contact is set. When the current value decreases and reaches the set value, the output contact is reset.
RST C UUU
C UUU
C UUU
Y002
FNC10-FNC19 Move & Compare
As a contact driving the counting coil of a high-speed counter, program a contact which is normally ON when high- speed counting is executed. If an input relay (X000 to X005) assigned for high-speed counters is used for driving the counting coil, accurate counting cannot be achieved.
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
When RST instruction for a timer or counter is executed in a jumped program, subroutine program or interrupt program, the timer or counter may be kept in the reset status and the timer or counter may be disabled. For details, refer to the following sections:
→ For a jumped program, refer to Subsection 8.1.1. → For a subroutine program, refer to Subsection 8.2.1. → For an interrupt program, refer to Subsection 36.2.3.
Devices used in SET and RST instructions can be indexed with index registers (V)(Z). (State relays (S), special auxiliary relays (M), 32-bit counters, "D .b", and word devices cannot be indexed.)
V0 to V7 and Z0 to Z7 are available for indexing. When a used device is an input (X) or output (Y), the value of an index register (V or Z) is converted into octal, and then added. Example: When Z0 is "20", Y024 turns ON or
Circuit program List program
0000 0001 0004 0005
X000 Y000Z0 X001 Y000Z0
Y000Z0 SET
OFF.
*1. This function is supported only in FX3U/FX3UC PLCs.
A bit in data register (D) can be specified as a device used in SET or RST instruction.
When specifying a bit in data register, input "." after a data register (D) number, and then input a bit number (0 to F) consecutively. Only 16-bit data registers are available. Specify a bit number as "0, 1, 2, ... 9, A, B, ... F" from the least significant bit. Example: In the example shown on the left, when
Circuit program List program
0000 0001 0004 0005
X000 D0.3 X001 D0.3
D0.3 SET
D0.3 RST
X000 turns ON once, the bit 3 of D0 turns ON. When X001 turns ON, the bit 3 of D0 turns OFF.
*1. This function is supported only in FX3U/FX3UC PLCs.
When SET and RST instructions are executed for an output relay (Y) in the same operation, the result of the instruction located nearest the END instruction (which specifies the end of program) is output.
7 Basic Instruction

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
7.14 NOP
NOP instruction specifies no operation. When a program is erased completely, all steps are replaced with NOP instructions. When NOP instruction is located between general instructions, PLCs ignore NOP instruction. If NOP instructions are put in the middle of a program, fluctuation of step numbers is minimized when the program is changed or added. But excessive program steps are required. Note that circuits are considerably changed if already written instructions are replaced with NOP instructions.
NOP
Continuous Operation Pulse (Single) Operation
2. Applicable devices
Bit Devices Word Devices Others
System User Digit Specification System User Special
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
NOP There are no applicable devices.
Specified the Device & Constant
OUT → NOP (error)
OR → NOP Circuit is
Contact becomes short-circuit.
disconnected. ORI → NOP
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
7.15 END
Outline
END instruction specifies the end of a program. (Do not write the END instruction in the middle of a program.)
END
Continuous Operation Pulse (Single) Operation
END
2. Applicable devices

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
1. END instruction (program end, I/O refresh and return to step 0) PLCs repeat "input processing → program execution → output processing". When END instruction is written at the end of a program, PLCs immediately execute the output processing without executing steps after END instruction. If END instruction is not written at the end of a program, PLCs execute the program until the END step, and then execute the output processing. At the first execution after the PLC mode is changed from STOP to RUN, PLCs start from END instruction. When END instruction is executed, the watchdog timer (which checks the operation cycle) is refreshed.

Do not write END instruction in the middle of a program. When a program is transferred from a programming tool, all steps after END instruction are replaced with NOP (no operation) instructions.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
7.16 Number of Instruction Steps and Specified Devices
The table below shows the number of steps of basic instructions. Available devices and device ranges vary depending on the PLC. For details on devices, refer to Chapter 4. For ORB, ANB, MPS, MRD, MPP, MCR, INV, MEP, MEF, NOP and END instructions, refer to pages explaining these instructions.
LD, LDI, AND, ANI,
OUT SET RST PLS, PLF
ANDP, ANDF, ORP,
MC
OR, ORI
ORF
X000 to X357 1 − 2 −
Y000 to Y357 1 2 2 3
M0 to M1535 1 2 2 3
M1536 to M3583 2 3
M3584 to M7679 3 4
S0 to S1023 1 2 2 2 − 2 −
S1024 to S4095 2 − 2 −
T0 to T191, T200 to T245 1 3 − 2 − 2 −
T192 to T199, T246 to T511 1 3 − 2 − 2 −
C0 to C199 1 3 − 2 − 2 −
C200 to C255 1 5 − 2 − 2 −
Special auxiliary relays M8000 to M8255 1 2 2 2 − 2 −
Specified the Device & Constant
Special auxiliary relays M8256 to M8511 2 − 2 −
X000 to X357 3 −
Y000 to Y357 3 − −
M0 to M7679 3 − −
T0 to T511 3 4 −
Bit devices with index
S0 to S4095 −
C0 to C199 3 4 − 3 − − −
C200 to C255 −
Special auxiliary relays M8000 to M8511 3 − − −
D0 to D7999, Special data registers D8000 to D8511
− − − 3 − − −
R0 to R32767 − − − 3 − − −
D0 to D7999, Special data registers D8000 to D8511, R0 to R32767
Word devices with index
−
Bit specification in word device
D .b, Special auxiliary relays D .b
3 − 3 −
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
8 Program Flow – FNC 00 to FNC 09
FNC 00 to FNC 09 provide instructions mainly related to control flow of sequence programs such as conditional program execution and priority processing.


FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
8 Program Flow – FNC 00 to FNC 09
8.1 FNC 00 – CJ / Conditional Jump
CJ or CJP instruction jumps to a pointer (P); The sequence program steps between CJ or CJP instruction and the pointer are not executed. CJ and CJP instructions reduce the scan time, and allow programs with double coils.
P FNC 00
Mnemonic Operation Condition Mnemonic Operation Condition 32-bit Instruction
Continuous Operation Pulse (Single) Operation
−
2. Set data
Operand type Description Data type
Pointer number (P) indicating the label number for the jump destination (FX3S: n=0 to 255, FX3G/FX3GC: n=0 to 2047, FX3U/FX3UC: n=0 to 4095) (P63 jumps to END instruction.)
Bit Devices Word Devices Others
System User Digit Specification System User Special
Specified the Device & Constant
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
Jumps to the pointer while the
command is ON.
Executed in every scan.
User program which is skipped and is not executed when the command turns ON
FNC10-FNC19 Move & Compare
Jumps to the pointer only in one operation while the command is ON.
User program which is skipped and is not executed in one operation cycle
Executed in one scan.
when the command turns ON
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
8 Program Flow – FNC 00 to FNC 09
8.1 FNC 00 – CJ / Conditional Jump

LD X031 OUT Y010 P 20 LD X032 OUT Y011


Label P 10

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
8 Program Flow – FNC 00 to FNC 09

User program (It is skipped, and is not executed.)

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
8 Program Flow – FNC 00 to FNC 09
8.1 FNC 00 – CJ / Conditional Jump
CJ P7 M0
P7
Label · User program

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
8 Program Flow – FNC 00 to FNC 09
In the program example shown below, when X000 turns ON, the program execution jumps from CJ instruction in the first circuit to the label P8. While X000 is OFF, jump is not executed; The program is executed from the 1st step in turn, and then the program execution jumps from CJ instruction in the 11th circuit to the label P9. Instructions skipped by jump are not executed.
Y001
M 1
T 0
K 10
T246
K1000
RST C 0
Specified the Device & Constant
MOV K 3 D 0
CJ P 9
Y001
RST T246
RST C 0
When each input changes during jump in the above program, each coil executes the following operation:
Classification Contact status before jump Coil operation during jump
X001, X002, X003 OFF Y001, M1 and S1 turn OFF.
X001, X002, X003 ON Y001, M1 and S1 turn ON
10 ms timer and 100 ms timer (T0) X004 OFF Timer is not activated.
X004 ON Counting is paused (, and is restarted after X000 turns OFF).
Timer is not activated. The deactivation status is reset when X013 turns ON.
1 ms timer (T246)
X005 OFF X006 ON Counting is continued (, and the contact is activated after X000 turns OFF).
Counting is not activated. The deactivation status is reset when X013 turns ON.
FNC10-FNC19 Move & Compare
X007 OFF X010 ON Counting is paused (, and is restarted after X000 turns OFF).
X011 OFF FNC instruction is not executed during jump. But instructions FNC 52 to FNC 58 continue their operations. X011 ON
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
8 Program Flow – FNC 00 to FNC 09
8.1 FNC 00 – CJ / Conditional Jump
When X011 turns ON while the RST instruction for the counter C0 is operating (X010 is ON), the program execution jumps past the RST instruction due to the CJ (FNC 00) instruction. In this jump status, the counter C0 remains reset. Accordingly, the current value of C0 remains "0" even if X012 turns ON. To clear this reset status, it is necessary to turn OFF the RST instruction for counter C0. (Refer to the program shown below.)


Because C0 remains reset, its current value remains unchanged even if X012 turns ON.
Current value of C0 1 2 3 Counter is reset.

RST C0 Clears the reset status of counter C0 during jump.

Current value of C0 1 2 3 Counter is reset.
*1 In the same operation cycle as the reset, the reset status of counter C0 is cleared.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
8 Program Flow – FNC 00 to FNC 09
The figure below shows the contents of operation and the relationship between the master control instruction. Avoid using [2], [4] and [5] because the operation will be complicated.
[1] Jump from outside MC
to outside MC Jump is available arbitrarily.
Master control Master control
[2] Jump from outside MC
to inside MC Jump is executed regardless of the MC operation. Even if M0 is OFF, M0 is regarded as ON after P1.
CJ P 4
P 1
inside MC to inside another MC
MC N 0 M 2
[3] Jump from inside MC to
inside MC Jump is disabled while M0 is OFF.
P 2
MCR N 0
[4] Jump from inside MC to
outside MC Jump is disabled while M0 is OFF. Jump is executed while M0 is ON, but MCR is invalid.
Jump is enabled while M1 is ON. In circuits after jump, M2 is regarded as ON regardless of the actual ON/OFF status of M2. And the first MCR N0 is ignored.
Specified the Device & Constant
P 3
P 0
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
8 Program Flow – FNC 00 to FNC 09
8.2 FNC 01 – CALL / Call Subroutine
This instruction calls and executes a program which should be processed commonly in a sequence program. This instruction reduces the number of program steps, and achieves efficient program design. For creating a subroutine program, FEND (FNC 06) and SRET (FNC 02) instructions are required.

Operand type Description Data type
Pointer number (P) indicating the label number for the jump destination (FX3S: P0 to P62 and P64 to P255, FX3G/FX3GC: P0 to P62 and P64 to P2047, FX3U/FX3UC: P0 to P62 and P64 to P4095)
P63 is dedicated to CJ (FNC 00) instruction (for jump to END step), it cannot be used as a pointer for CALL (FNC 01) instruction.

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
. Then, a subroutine program with the label is executed. When SRET (FNC 02) instruction is executed, the program execution returns to the step after CALL instruction.

Main program Program area from the step 0 to FEND instruction
Subroutine program Program area from a label to SRET instruction

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
8 Program Flow – FNC 00 to FNC 09
CJ P 9
CALLP P 9 X030
Bad
P 9
Program examples
1. Example of fundamental use (no nesting)
CALL P 10
Main program While X000 is ON, the program execution jumps to a step with the label P10.
P 10
Specified the Device & Constant
Subroutine program When SRET instruction is executed after the subroutine program has executed, the program execution returns to the original step +1.
END
Main program When X001 turns from OFF to ON, the program execution jumps to the label P11 only once.
P 11
Subroutine program 1 When SRET instruction is executed, the program execution returns to the main program. If X002 is ON while the subroutine program 1 is executed, the program execution jumps to a step with the label P12.
SRET
P 12
Subroutine program 2 The subroutine program with P12 is executed, and then the program execution returns to the subroutine program with P11 by SRET instruction.
FNC10-FNC19 Move & Compare
END
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
8 Program Flow – FNC 00 to FNC 09
8.2 FNC 01 – CALL / Call Subroutine
This section explains cautions on creating programs in subroutines and interrupt routines. The explanation below is given for subroutines, but the situation also applies to interrupt routines.
1. When using timers in subroutines (or interrupt routines) Use retentive type timers T192 to T199 in subroutines. These timers execute counting when the coil instruction or END instruction is executed. After a timer reaches the set value, the output contact is activated when the coil instruction or END instruction is executed. Because general timers execute counting only when the coil instruction is executed, they do not execute counting if they are used in subroutines in which the coil instruction is executed only under some conditions.
3. Countermeasures against latches of devices used in subroutines (or interrupt routines) Devices which were set to ON in a subroutine are latched in the ON status even after the subroutine is finished. (Refer to the program example shown below.) When RST instruction for a timer or counter is executed, the reset status of the timer or counter is latched also. For turning OFF such a device latched in the ON status or for canceling such a timer or counter latched in the reset status, reset such a device in the main program after the subroutine is finished, or program a sequence for resetting such a device or for deactivating RST instruction in the subroutine. (Refer to the program example shown on the next page.)
Example in which outputs are latched In the following program example, the counter C0 is provided to count X001. When X000 is input, the subroutine P0 is executed only in one scan, and then the counter is reset and Y007 is output.


Because the reset instruction for C0 is valid, the current value of C0 remains unchanged even if pulses are input.
Current value of C0 1 2 3 Counter is reset.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
8 Program Flow – FNC 00 to FNC 09

RST Y007 Y007 is reset at an arbitrary timing.
The preceding RST C0 instruction is deactivated in the subroutine.
Counter reset instruction is deactivated (part B in above program). Counter is reset (part A in above program).

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
8 Program Flow – FNC 00 to FNC 09
8.3 FNC 02 – SRET / Subroutine Return
This instruction returns the program execution from a subroutine to the main program.
Independent Inst.
1 step SRET This instruction is the independent type, and does not require drive contact.
Operand type Description Data type
– There is no set data. –

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
When CALL instruction in the main program is executed, the program execution jumps to a subroutine. SRET instruction returns the program execution to the main routine.
→ Refer to Section 8.2.
Mnemonic Operation Condition · Continuous Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
8 Program Flow – FNC 00 to FNC 09
8.4 FNC 03 – IRET / Interrupt Return
This instruction returns the program execution from an interrupt routine to the main program.
Independent Inst.
1 step This instruction is the independent type, and does not require drive contact.
Operand type Description Data type
– There is no set data. –
Bit Devices Word Devices Others
System User Digit Specification System User Special
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
– There are no applicable devices.
Specified the Device & Constant
When an interrupt (input, timer or counter) is generated while the main program is executed, the program execution jumps to an interrupt (I) routine. IRET instruction returns the program execution to the main routine. The table below shows three types of jump to an interrupt routine.
Function Interrupt No. Description Reference
Input interrupt I00* to I50* Executes the interrupt processing when an input (X) signal turns ON or OFF.
Section 36.3 and
Section 36.4
Timer interrupt I6** to I8** Executes the interrupt processing at a specified time interval (constant cycle). Section 36.5
Counter interrupt*1 I010 to I060 Executes the interrupt processing when a high-speed counter reaches it’s set value. Section 36.6
*1. This function is supported only in FX3U/FX3UC PLCs.
→ For the interrupt function, refer to Chapter 36.
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
8 Program Flow – FNC 00 to FNC 09
8.4 FNC 03 – IRET / Interrupt Return

Interrupts are usually disabled in PLCs. Use EI instruction to enable interrupts. When X000 turns ON while the main program is executed, instructions after the interrupt routine pointer I001 are executed, and the program execution returns to the original main program by IRET instruction.
The timer interrupt of the pointer I620 is executed every timer time of 20 ms, and the program execution is returned to the original main program by IRET instruction each time.
The high-speed counter interrupt of the pointer I010 is executed when the current value of a high-speed counter becomes equivalent to a value specified by DHSCS (FNC 53) instruction. The program execution returns to the original main program by IRET instruction.
Make sure to program an interrupt pointer (I***) as a label after FEND instruction.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
8 Program Flow – FNC 00 to FNC 09

Interrupts are usually disabled in PLCs. This instruction enables interrupts in PLCs. Use this instruction for using the input interrupt, timer interrupt and counter interrupt functions.
1 step This instruction is the independent type, and does not require drive contact.
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
EI instruction is the independent type, and does not require command (drive) contact.
→ For the interrupt function, refer to Chapter 36.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
8 Program Flow – FNC 00 to FNC 09
8.6 FNC 05 – DI / Disable Interrupt
This instruction disables interrupts after interrupts were enabled by EI (FNC 04) instruction.
Independent Inst.
1 step This instruction is the independent type, and does not require drive contact.
Operand type Description Data type
– There is no set data. –

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
DI instruction is the independent type, and does not require command (drive) contact.
→ For the interrupt function, refer to Chapter 36.
Interrupts (requests) generated after DI instruction are processed after EI (FNC 04) instruction is executed
Mnemonic Operation Condition · Continuous Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
8 Program Flow – FNC 00 to FNC 09

This instruction indicates the end of the main program.
1 step This instruction is the independent type, and does not require drive contact.
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
FEND instruction works in the same way as END instruction. When FEND instruction is executed, output processing, input processing and watchdog timer refresh are executed, and then the program execution returns to the step 0. FEND instruction is required in creating subroutine programs and interrupt programs.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
8 Program Flow – FNC 00 to FNC 09
8.7 FNC 06 – FEND / Main Routine Program End


FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
8 Program Flow – FNC 00 to FNC 09
8.8 FNC 07 – WDT / Watchdog Timer Refresh
This instruction refreshes the watchdog timer in a sequence program.
P FNC 07
Mnemonic Operation Condition Independent Inst.
2. Set data
Operand type Description Data type
– There is no set data. –
Bit Devices Word Devices Others
System User Digit Specification System User Special
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
– There are no applicable devices.
When the operation cycle (time until END or FEND instruction is executed after the step 0) of a PLC exceeds 200 ms, a watchdog timer error (indicating abnormal operation) occurs; The ERROR (ERR) LED lights, and the PLC stops. When the operation cycle is long, insert WDT instruction in the middle of the program to avoid the watchdog timer error.
Specified the Device & Constant
One scan is executed.
executed.
D8000 Watchdog timer time Up to 32767 ms can be set in units of ms (initial value: 200 ms).
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
8 Program Flow – FNC 00 to FNC 09
8.8 FNC 07 – WDT / Watchdog Timer Refresh

Watchdog timer refresh If WDT (FNC 07) instruction is not programmed, the value of D8000 is valid during END processing.

If an input relay (X) is used as the command contact, input refresh is disabled, so the program execution cannot be returned from the area between P and CJ. As the command contact, use such device that can be set to OFF in a program being jumped.



FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
8 Program Flow – FNC 00 to FNC 09
8.9 FNC 08 – FOR / Start a FOR/NEXT Loop
FOR instruction specifies the number of repetition of the loop between FOR and NEXT (FNC 09) instructions.
Mnemonic Operation Condition Mnemonic Operation Condition
−
2. Set data
Operand type Description Data type
Number of repetition of the loop between FOR and NEXT instructions
[ = K1 to K32767] (A value from −32768 to 0 is handled as "1".)
Bit Devices Word Devices Others
System User Digit Specification System User Special
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 S1 S2 3
Specified the Device & Constant
S1: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S2: This function is supported only in FX3U/FX3UC PLCs.
→ For details, refer to NEXT (FNC 09) instruction.
FOR instruction and NEXT (FNC 09) instruction are set as a pair in programming.
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
8 Program Flow – FNC 00 to FNC 09
8.10 FNC 09 – NEXT / End a FOR/NEXT Loop
NEXT instruction specifies the end position of the loop.
Independent Inst.
1 step This instruction is the independent type, and does not require drive contact.
Operand type Description Data type
– There is no set data. –

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
The loop between FOR and NEXT instructions is repeated "n" times (which is specified by the source data). After the loop is repeated by the specified number of times, steps after NEXT instruction are executed.

NEXT instruction and FOR (FNC 08) instruction are set as a pair in programming.

Mnemonic Operation Condition · Continuous Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
8 Program Flow – FNC 00 to FNC 09
→ For details on changing the watchdog timer time, refer to Subsection 37.2.2.
→ For resetting the watchdog timer, refer to WDT (FNC 07) instruction.
When NEXT instruction does not exist When NEXT instruction is located before FOR instruction
FOR
FOR
NEXT
When number of FOR instructions is not equivalent to the number of NEXT instructions
When NEXT instruction is located after FEND or END instruction
FOR
FOR
FEND
NEXT
NEXT
Specified the Device & Constant
END
NEXT
Program example
1. Program with three FOR-NEXT loops
FOR K 4
The loop [3] is repeated 4 times.
When the data value (current value) of D0Z (D4 when Z is "4") is "6", the loop [2] is repeated 6 times.
When X010 is OFF
When K1X000 is "7", the loop [1] is repeated 7 times. When X010 is ON
FNC10-FNC19 Move & Compare
The program execution jumps to the pointer P22, and the loop [1] is skipped.
Number of times of repeating the loops [1], [2] and [3]
X010 = ON X010 = OFF 7 × 6 × 4 =168 times 6 × 4 = 24 times 4 times
0 time 24 times 4 times
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
9 Move and Compare – FNC 10 to FNC 19
FNC 10 to FNC 19 provide fundamental data processing instructions such as data transfer and data comparison which are regarded as most important in applied instructions.

18 BCD Conversion to Binary Coded Decimal Section 9.9

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
9 Move and Compare – FNC 10 to FNC 19
9.1 FNC 10 – CMP / Compare
This instruction compares two values, and outputs the result (smaller, equal or larger) to bit devices (3 points).
→ For the contact comparison instruction, refer to Chapter 28.
→ For floating point comparison, refer to Section 18.1.
Mnemonic Operation Condition P FNC 10
CMP D
Continuous Operation Pulse (Single) Operation
Continuous Operation Pulse (Single) Operation
DCMPP
2. Set data
Operand Type Description Data Type
Data or device number handled as comparison value 16- or 32-bit binary
Data or device number handled as comparison source 16- or 32-bit binary
Head bit device number to which comparison result is output Bit
Bit Devices Word Devices Others
System User Digit Specification System User Special
Specified the Device & Constant
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 S2 S3
3 S2 S3
S1: "D .b" is available only in FX3U and FX3UC PLCs. However, index modifiers (V and Z) are not available. S2: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S3: This function is supported only in FX3U/FX3UC PLCs.
1. 16-bit operation (CMP and CMPP)
The comparison value and the comparison source are compared with each other. According to the
result (smaller, equal or larger), either one among , +1 or +2 turns ON.
S 2 D
48 49 50 51
> S1 S2 ] ". Turns ON in the case of " [
= S1 S2 ] ". Turns ON in the case of " [
FNC10-FNC19 Move & Compare
< S1 S2 ] ". Turns ON in the case of " [
FNC20-FNC29 Arith. & Logic Operation
Even if the command input turns OFF and CMP instruction is not executed, , +1 and +2 latch the status just before the command input turns OFF from ON.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
9 Move and Compare – FNC 10 to FNC 19
9.1 FNC 10 – CMP / Compare
The comparison value [ +1, ] and the comparison source [ +1, ] are compared with each other.
According to the result (smaller, equal or larger), either , +1 or +2 turns ON.

> ] ". Turns ON in the case of
+1, " [ ] S1 S1 +1, [ S2 S2
= +1, ] S1 S1 Turns ON in the case of
+1, [ S2 S2 " [ ] ".
+1, ] S1 S1 +1, [ S2 S2 " [ ] ".
Even if the command input turns OFF and DCMP instruction is not executed, , +1 and +2 latch the status just before the command input turns OFF from ON.
1. Number of occupied devices
From the device specified as , three devices are occupied. Make sure not to use those devices in another control.
1. When comparing the current value of a counter

Turns ON in the case of "K100 > C20 (Current value)" .
Turns ON in the case of "K100 = C20 (Current value)" .
Turns ON in the case of "K100 < C20 (Current value)" .
If it is necessary to clear the comparison result when the instruction is not executed, add the following contents under the above program.
RST M1
RST M2
ZRST M0 M2 M0 to M2 are reset.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
9 Move and Compare – FNC 10 to FNC 19
9.2 FNC 11 – ZCP / Zone Compare
This instruction compares two values (zone) with the comparison source, and outputs the result (smaller, equal or larger) to bit devices (3 points).
→ For the contact comparison instruction, refer to Chapter 28.
→ For floating point comparison, refer to Section 18.2.
Mnemonic Operation Condition P FNC 11
ZCP D
Continuous Operation Pulse (Single) Operation
Continuous Operation Pulse (Single) Operation
DZCPP
2. Set data
Operand Type Description Data Type
Data or device number handled as lower comparison value 16- or 32-bit binary
Data or device number handled as upper comparison value 16- or 32-bit binary
Data or device number handled as comparison source 16- or 32-bit binary
Head bit device number to which comparison result is output Bit
Bit Devices Word Devices Others
Specified the Device & Constant
System User Digit Specification System User Special
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 S2 S3
3 S2 S3
3 S2 S3
S1: "D .b" is available only in FX3U and FX3UC PLCs. However, index modifiers (V and Z) are not available. S2: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S3: This function is supported only in FX3U/FX3UC PLCs.
1. 16-bit operation (ZCP and ZCPP)
The lower comparison value and upper comparison value are compared with the comparison source
S D D D
. According to the result (smaller, within zone or larger), either , +1 or +2 turns ON.
ZCP
Turns ON in the case of
S1 > S ] ". " [
FNC10-FNC19 Move & Compare
Turns ON in the case of
S1 ≤ S S2 ≤ ] ". " [
Turns ON in the case of
S S2 > ] ". " [
FNC20-FNC29 Arith. & Logic Operation
Even if the command input turns OFF and ZCP instruction is not executed, , +1 and +2 latch the status just before the command input turns OFF from ON.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
9 Move and Compare – FNC 10 to FNC 19
9.2 FNC 11 – ZCP / Zone Compare
The lower comparison value [ +1, ] and upper comparison value [ +1, ] are compared with the
comparison source [ +1, ]. According to the result (smaller, within zone or larger), either , +1
or +2 turns ON.

S1 S2 S D
+1, [ S S +1, ] S1 S1 ] ". " [
+1, [ S S ] +1, ] S1 S1 ≤ +1, [ S2 S2 ] ". " [
+1, S S ] > +1, [ S2 S2 ] ". " [
Even if the command input turns OFF and DZCP instruction is not executed, , +1 and +2 latch the status just before the command input turns OFF from ON.
1. Number of occupied devices
From the device specified as , three devices are occupied. Make sure not to use devices used in another control.
The lower comparison value should be smaller than the upper comparison value .
S1 S2 S D
M 3
Turns ON in the case of "K100 > C30 (Current value)" .
Turns ON in the case of "K100 ≤ C30 (Current value) ≤ K120" .
M 5
M4
Turns ON in the case of "K120 < C30 (Current value)" .
S1 S2 S D
It is handled as K120 .
Turns ON in the case of "K120 > C30 (Current value)" .
M 4
Turns ON in the case of "K120 = C30 (Current value)" .
M 5
M5
Turns ON in the case of "K120 < C30 (Current value)" .

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
9 Move and Compare – FNC 10 to FNC 19
9.3 FNC 12 – MOV / Move
This instruction transfers (copies) the contents of a device to another device.
Mnemonic Operation Condition P FNC 12
MOV D
Continuous Operation Pulse (Single) Operation
Continuous Operation Pulse (Single) Operation
DMOVP
2. Set data
Operand Type Description Data Type
Transfer source data or device number storing data 16- or 32-bit binary
Transfer destination device number 16- or 32-bit binary
Bit Devices Word Devices Others
System User Digit Specification System User Special
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 S1 S2 3
Specified the Device & Constant
3 S1 S2 3 3 3
S1: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S2: This function is supported only in FX3U/FX3UC PLCs.
1. 16-bit operation (MOV and MOVP)
The contents of the transfer source are transferred to the transfer destination .
S D
When specifying digits of a bit device (K1X000 → K1Y000) The bit device transfers a maximum of 16 points(multiple of 4).
:K1X000 S :K1Y000 D X3 X2 X1 X0
ON OFFOFF ON OFF Y3 Y2 Y1 Y0
FNC10-FNC19 Move & Compare
OFF X002
X3 X2 X1 X0
ON OFFOFF ON ON OFFOFF ON Y3 Y2 Y1 Y0
ON Y000 OFF
ON Y001 OFF
FNC20-FNC29 Arith. & Logic Operation
ON Y003

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
9 Move and Compare – FNC 10 to FNC 19
9.3 FNC 12 – MOV / Move
When a word device is specified The word device transfers 1 point.

The contents of the transfer source [ +1, ] are transferred to the transfer destination [ +1, ].

+1, [ S S ]→ +1, [ ] D D
When specifying digits of a bit device (K8X000 → K8Y000) The bit device transfers a maximum of 32 points (multiple of 4).

When a word device is specified The word device transfers 1 point.


FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
9 Move and Compare – FNC 10 to FNC 19
1. When reading the current value of a timer and counter
MOV T 0 D 20 (Current value of T0) → (D20) The operation is the same as a counter.
(K100) → (D 10)
MOV K100 D 10
X002 FNC 12
MOV K 50 D 10 (K50) → (D 10)
T 20
When X002 is ON, D10 = K100 (10-second timer). When X002 is OFF, D10 = K50 (5-second timer). D 10
Y001
Specified the Device & Constant
Y002
Y003
DMOV D0(D1) D10(D11) (D 1,D 0) → (D 11,D 10)
(Current value of C235) → (D21, D20)
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
9 Move and Compare – FNC 10 to FNC 19
9.4 FNC 13 – SMOV / Shift Move
This instruction distributes and composes data in units of digit (4 bits).


Word device number storing data whose digits will be moved 16-bit binary
m1 Head digit position to be moved 16-bit binary
m2 Number of digits to be moved 16-bit binary
Word device number storing data whose digits are moved 16-bit binary
n Head digit position of movement destination 16-bit binary

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 S1 S2 3 3 3
3 S1 S2 3 3 3
S1: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S2: This function is supported only in FX3U/FX3UC PLCs.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
9 Move and Compare – FNC 10 to FNC 19
1. 16-bit operation (SMOV and SMOVP)
The contents of the transfer source and transfer destination are converted into 4-digit BCD (0000 to
9999) respectively. "m2" digits starting from the "m1"th digit are transferred to the transfer destination starting
from the "n"th digit, converted into binary, and then stored to the transfer destination .
transfer source and unspecified digits in the transfer destination do not change.
SMOV m1 m2 n S D
In the case of "m1 = 4, m2 = 2, n = 3".
[1] is converted from binary into BCD.
4th digit 1st digit 2nd digit 3rd digit
[2] "m2" digits starting from the "m1"th digit are
transferred to ’ starting from the "n"th digit.
Data is automatically converted. [1]
The digits of 103 and 100 of ’ are not affected even if data is transferred from
100 101 102 103
' (4-digit BCD data)
Command contact = ON
Digits are moved. [2]
’.
' (4-digit BCD data)
[3] The composed data (BCD) is converted into
100 101 102 103
binary, and stored to .
Data is automatically converted. [3]
Do not change.
Specified the Device & Constant
SMOV D 1 K 4 K 2 D 2 K 3
M8168 is used for other instructions also.
After using M8168 for SMOV instruction, return it to OFF.
The data on three-digit digital switches are composed, and stored as binary data to D2.
102 101 100
BIN K2X020 D 2
(X020 to X027) 2-digit BCD → D2 (binary)
(X000 to X003) 1-digit BCD → D1 (binary)
8 1 8 1 8 1
SMOV D 1 K 1 K 1 D 2 K 3
X003 to X000 X027 to X020
FNC10-FNC19 Move & Compare
1-digit BCD data of D1 is transferred to the 3rd digit (BCD data) of D2, and automatically converted into binary data.
Data on three digital switches connected to non-consecutive input terminals are composed.
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
9 Move and Compare – FNC 10 to FNC 19
9.5 FNC 14 – CML / Complement
This instruction inverts data in units of bit, and then transfers (copies) the inverted data.

Operand Type Description Data Type
Data to be inverted or word device number storing data 16- or 32-bit binary
Word device number storing inverted data 16- or 32-bit binary

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 S1 S2 3
3 S1 S2 3 3 3
S1: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S2: This function is supported only in FX3U/FX3UC PLCs.
1. 16-bit operation (CML and CMLP)

Each bit of a device specified as is inverted (from 0 to 1 or from 1 to 0), and then transferred to .
b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 n5 b4 b3 b2 b1 b0
0 1 0 1 1 1 0 0 0 1 0 1 0 1 0 1
0 1 0 1 0 1 0 1 1 1 0 0 0 1 0 1

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
9 Move and Compare – FNC 10 to FNC 19
Each bit of devices specified as [ +1, ] is inverted (from 0 to 1 or from 1 to 0), and then transferred to
[ +1, ].
S D S S D D
b31 b30 b29 b28 b27 b26 b25 to b7 b6 n5 b4 b3 b2 b1 b0
0 1 0 1 1 1 0 0 1 0 1 0 1 0 1
When command contact turns ON
0 1 0 1 0 1 0 1 1 0 0 0 1 0 1
Inverted data is transferred.
M 0
Specified the Device & Constant
M 1
M 2
M 2
M 3
M 3
M8000
CML K1X000 K1M0
2. When four bits are specified for a device with digit specification
S D
X000 FNC 14
CML D 0 K1Y000 (D 0) → (K1Y000)
b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 n5 b4 b3 b2 b1 b0
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
FNC10-FNC19 Move & Compare
0 1 0 1 Y016 Y015 Y014 Y013 Y012 Y011 Y010 Y007 Y006 Y005 Y004 Y003 Y002 Y001 Y000
Y017
Do not change.
Inverted data is transferred.
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
9 Move and Compare – FNC 10 to FNC 19
9.6 FNC 15 – BMOV / Block Move
This instruction transfers (copies) a specified number of data all at once.


Transfer source data or device number storing data 16-bit binary
n Number of transferred points [n ≤ 512] 16-bit binary

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 S1 S2 3
3 S1 S2 3
S1: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S2: This function is supported only in FX3U/FX3UC PLCs.
BMOV instruction transfers "n" points of data from to all at once.

Transfer is enabled even if the transfer number range is overlapped.
To prevent overwriting before transfer of source data, data is automatically transferred in the order "[1] → [2] → [3]" according to the number overlap status.


FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
9 Move and Compare – FNC 10 to FNC 19

By controlling the direction inverse flag M8024*1 for BMOV (FNC 15) instruction, data can be transferred in two directions in one program.
D5 → D10 D6 → D11 D7 → D12
D5 ← D10 D6 ← D11 D7 ← D12
*1. M8024 is cleared when the PLC mode is changed from RUN to STOP.
When specifying digits of bit devices, specify the same number of digits for and .

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
9 Move and Compare – FNC 10 to FNC 19
9.6 FNC 15 – BMOV / Block Move
BMOV (FNC 15) instruction has a special function for file registers (D1000 and later).
→ For details on file registers, refer to Section 4.9.
1 to 14 blocks*1 (each of which has 500 file registers) can be set. 1 block occupies 500 steps in the program memory area.
*1. 1 to 4 blocks in the FX3S PLC.

BMOV instruction Can read from and write to the file register area [A] inside the program memory. −
Can read from and write to the data register area [B] inside the program memory in the same way as general data registers.
Because the data register area [B] is provided inside the system RAM in PLCs, its contents can be arbitrarily changed regardless of the memory cassette format
When restoring the power, data registers set as file registers are automatically copied from the file register area [A] to the data register area [B].

When power is turned ON When PLC mode is changed from STOP to RUN
Devices D1000 and later specified as operands in applied instructions other than BMOV (FNC 15) , indirectly specified values for timers or counters or devices in RST instruction are read from and written to the area [B] in the same way as general data registers.
D1000 500 points × 14 blocks maximum (7000 points maximum)
The remaining area can be used as general purpose data registers.
sure that the file register number is equivalent between and .
When and are indexing with index, the instruction is executed if the actual device number is within the file register area and the number of transfer points does not exceed the file register area.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
9 Move and Compare – FNC 10 to FNC 19
6) Execution time for writing data to file registers - In FX3U/FX3UC PLCs It takes 66 to 132 ms to write data in one continuous block (500 points) to the memory cassette (flash memory). Execution of the program is paused during this period. Because the watchdog timer is not refreshed during this period, it is necessary to take proper countermeasures such as inserting the WDT instruction into the sequence program. It takes longer time to write data to file registers stored in a memory cassette (flash memory) compared to writing data to file registers stored in the built-in memory. - In FX3S/FX3G/FX3GC PLCs It takes 80 ms to write data in one continuous block (500 points) to file registers. Note that execution of the program is paused during this period, but the watchdog timer is automatically refreshed. The time for writing data is same between file registers stored in the built-in memory and file registers stored in a memory cassette (EEPROM).
7) Allowable number of times of writing to the memory Data can be written to the memory cassette up to 10,000 times, and to the memory (EEPROM) built in FX3S/ FX3G/FX3GC PLCs up to 20,000 times. When a continuous operation type instruction is used for data writing in a program, data is written to the memory in every operation cycle of the PLC. To prevent this, make sure to use a pulse operation type instruction (BMOVP).
Specified the Device & Constant
RAM Inside built-in memory
D1100 500 points × 14 blocks maximum (7000 points maximum)
[B]
When X000 is set to ON, the data register area [B] is read.
n S D
FNC10-FNC19 Move & Compare
A file register can be specified as . But if the same number with is specified, the same-number register update mode is selected.
However, even if a file register having different number is specified for and respectively, data cannot be transferred from the file register area to another file register area. In such a case, read the contents
of a file register specified as in the same-number register update mode to the data register area [B] once, and then write the data.
FNC20-FNC29 Arith. & Logic Operation
→ For the same-number register update mode of file registers, refer to Subsection 4.9.4.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
9 Move and Compare – FNC 10 to FNC 19
9.7 FNC 16 – FMOV / Fill Move
This instruction transfers same data to specified number of devices.


Transfer source data or device number storing data 16- or 32-bit binary
Head word device number of transfer destination (Same data is transferred from the transfer source at one time.) 16- or 32-bit binary
n Number of transfer points [K1≤n≤K512, H1≤n≤H1FF] 16-bit binary

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 S1 S2 3
3 S1 S2 3
S1: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S2: This function is supported only in FX3U/FX3UC PLCs.
1. 16-bit operation (FMOV and FMOVP)


FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
9 Move and Compare – FNC 10 to FNC 19
The contents of [ +1, ] are transferred to "n" 32-bit devices starting from [ +1, ].
X000 FNC 16 DFMOV n S D
S D
Specified the Device & Constant
1. When writing specified data to two or more devices
n S D
FMOV K 0 D 0 K 5
S D
K 3 …… K 0
→
K 0 K 0 D 0
……
K 0 D 1
→
K 5 K 0
……
→
K 0 D 2
K 65 K 0
……
→
K 0 D 3
K 7 K 0
……
K100 → K 0
K 0 D 4
Values before execution are shown as examples.
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
9 Move and Compare – FNC 10 to FNC 19
9.8 FNC 17 – XCH / Exchange
This instruction exchanges data between two devices.

Operand Type Description Data Type
Device number storing data to be exchanged. 16- or 32-bit binary
Device number storing data to be exchanged. 16- or 32-bit binary

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
1. 16-bit operation (XCH and XCHP)


Data is exchanged between [ +1, ] and [ +1, ].
FNC 17 DXCHP +1, +1, D1 D2 D1 D2 D1 D2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
9 Move and Compare – FNC 10 to FNC 19
Extension function (function compatible between the FX2 Series and the FX2C Series)
When the instruction is executed while M8160 is ON, high-order 8 bits (byte) and low-order 8 bits (byte) of a word device are exchanged with each other. Because this instruction works in the same way as SWAP (FNC147) instruction, use SWAP instruction when programming a new exchange. In a 32-bit operation, high-order 8 bits (byte) and low-order 8 bits (byte) of each word device are exchanged for each other.
M8160
DXCH D10 D10
M8000
M8160
High-order 8 bits Low-order 8 bits
High-order 8 bits Low-order 8 bits
An operation error occurs in the following case. The error flag M8067 turns ON, and the error code is stored in D8067.
Specified the Device & Constant
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
9 Move and Compare – FNC 10 to FNC 19
9.9 FNC 18 – BCD / Conversion to Binary Coded Decimal
This instruction converts binary (BIN) data into binary-coded decimal (BCD) data. Binary data is used in operations in PLCs. Use this instruction to display numeric values on the seven-segment display unit equipped with BCD decoder.

Operand Type Description Data Type
Word device number storing the conversion source (binary) data 16- or 32-bit binary
Word device number of the conversion destination (binary-coded decimal) data 16- or 32-bit binary

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 S1 S2 3 3 3
3 S1 S2 3 3 3
S1: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S2: This function is supported only in FX3U/FX3UC PLCs.
1. 16-bit operation (BCD and BCDP)
This instruction converts the binary (BIN) data of into binary-coded decimal (BCD) data, and transfers the
converted BCD data to .


FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
9 Move and Compare – FNC 10 to FNC 19
This instruction converts the binary (BIN) data of [ +1, ] into binary-coded decimal (BCD) data, and
transfers the converted BCD data to [ +1, ].
PLC DBCD (FNC 18)
BIN
S D
DBCD
Y034 Y030 Y024 Y020 Y014 Y010 Y004 Y000 Y037 Y033 Y027 Y023 Y017 Y013 Y007 Y003
When "K8Y000" is specified
[ +1, ] Number of digits Data range
K1Y000 1 0 to 9
K2Y000 2 00 to 99
K3Y000 3 000 to 999
K4Y000 4 0000 to 9999
K5Y000 5 00000 to 99999
Specified the Device & Constant
K6Y000 6 000000 to 999999
K7Y000 7 0000000 to 9999999
K8Y000 8 00000000 to 99999999
BIN (FNC 19) Converts binary-coded decimal (BCD) data into binary (BIN) data.
In BCD or BCDP (16-bit type) instructions, an operation error occurs when the value is outside the range from 0 to 9999.
FNC10-FNC19 Move & Compare
In DBCD or DBCDP (32-bit type) instructions, an operation error occurs when the value is outside the range from 0 to 99,999,999.
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
9 Move and Compare – FNC 10 to FNC 19
9.9 FNC 18 – BCD / Conversion to Binary Coded Decimal
1. When the seven-segment display unit has 1 digit


Output destination In the case of 2 digits: K2 In the case of 3 digits: K3 In the case of 4 digits: K4

Output destination In the case of 5 digits: K5 In the case of 6 digits: K6 In the case of 7 digits: K7 In the case of 8 digits: K8

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
9 Move and Compare – FNC 10 to FNC 19
9.10 FNC 19 – BIN / Conversion to Binary
This instruction converts binary-coded decimal (BCD) data into binary (BIN) data. Use this instruction to convert a binary-coded decimal (BCD) value such as a value set by a digital switch into binary (BIN) data and to receive the converted binary data so that the data can be handled in operations in PLCs.
P FNC 19
Mnemonic Operation Condition 16-bit Instruction
Continuous Operation Pulse (Single) Operation
Continuous Operation Pulse (Single) Operation
DBINP
2. Set data
Operand Type Description Data Type
Word device number storing the conversion source (binary-coded decimal) data 16- or 32-bit binary
Word device number of the conversion destination (binary) 16- or 32-bit binary
Bit Devices Word Devices Others
System User Digit Specification System User Special
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
Specified the Device & Constant
3 S1 S2 3 3 3
3 S1 S2 3 3 3
S1: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S2: This function is supported only in FX3U/FX3UC PLCs.
1. 16-bit operation (BIN and BINP)
This instruction converts the binary-coded decimal (BCD) data of into binary (BIN) data, and transfers the
converted binary data to .
BCD
9 7 8 6 S D
BIN
When "K4X000" is specified
BIN (FNC 19)
PLC
FNC10-FNC19 Move & Compare
Number of digits Data range
K1X000 1 0 to 9
K2X000 2 00 to 99
K3X000 3 000 to 999
FNC20-FNC29 Arith. & Logic Operation
K4X000 4 0000 to 9999

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
9 Move and Compare – FNC 10 to FNC 19
9.10 FNC 19 – BIN / Conversion to Binary
This instruction converts the binary-coded decimal (BCD) data of [ +1, ] into binary (BIN) data, and
transfers the converted binary data to [ +1, ].

X034 X030 X024 X020 X014 X010 X004 X000 X037 X033 X027 X023 X017 X013 X007 X003

BCD (FNC 18) Converts binary (BIN) data into binary-coded decimal (BCD) data.
When the data of is not binary-coded decimal (BCD), M8067 (operation error) turns ON. But M8068 (operation error latch) does not turn ON.
Instruction Function

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
9 Move and Compare – FNC 10 to FNC 19

In the case of 2 digits: K2 In the case of 3 digits: K3 In the case of 4 digits: K4
K4 K3 K2 K1 K8 K7 K6 K5 FNC 19
Output destination In the case of 5 digits: K5 In the case of 6 digits: K6 In the case of 7 digits: K7 In the case of 8 digits: K8

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
10 Arithmetic and Logical Operation (+, −, ×, ÷) – FNC 20 to FNC 29
FNC 20 to FNC 29 provide instructions for arithmetic operations and logical operations of numeric data.

Floating point operation instructions FX3S, FX3G, FX3GC, FX3U and FX3UC PLCs offer not only arithmetic operation instructions in binary format but also arithmetic operation instructions in the floating point format.

For details, refer to the explanation of each instruction.
→ For the floating point operation, refer to Chapter 18.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
10 Arithmetic and Logical Operation (+, −, ×, ÷) – FNC 20 to FNC 29
10.1 FNC 20 – ADD / Addition
This instruction executes addition by two values to obtain the result (A + B = C).
→ For the floating point addition instruction EADD (FNC120), refer to Section 18.8.
Mnemonic Operation Condition P FNC 20
ADD D
Continuous Operation Pulse (Single) Operation
Continuous Operation Pulse (Single) Operation
DADDP
2. Set data
Operand type Description Data type
Data for addition or word device number storing data 16- or 32-bit binary
Data for addition or word device number storing data 16- or 32-bit binary
Word device number storing the addition result 16- or 32-bit binary
Bit Devices Word Devices Others
System User Digit Specification System User Special
Specified the Device & Constant
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 S1 S2 3
3 S1 S2 3
3 S1 S2 3 3 3
S1: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S2: This function is supported only in FX3U/FX3UC PLCs.
1. 16-bit operation (ADD and ADDP)
The contents of are added to in binary format, and the addition result is transferred to .
input D S1 S2 D
ADD S1 S2 + →
2. 32-bit operation (DADD and DADDP)
The contents of [ +1, ] are added to [ +1, ] in binary format, and the addition result is
transferred to [ +1, ].
input D S1 S2 D S1 S2 D
FNC10-FNC19 Move & Compare
DADD S1 S2 [ +1, ] + [ +1, ] → [ +1, ]
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
10 Arithmetic and Logical Operation (+, −, ×, ÷) – FNC 20 to FNC 29
10.1 FNC 20 – ADD / Addition
M8020 Zero ON : When the operation result is 0 OFF : When the operation result is not 0
M8021 Borrow ON : When the operation result is less than −32768 (in 16-bit operation) or −2,147,483,648 (in 32-bit operation) OFF : When the operation result is not less than −32768 (in 16-bit operation) or −2,147,483,648 (in 32-bit operation)
M8022 Carry ON : When the operation result is more than 32767 (in 16-bit operation) or 2,147,483,647 (in 32-bit operation) OFF : When the operation result is not more than 32767 (in 16-bit operation) or 2,147,483,647 (in 32-bit operation)
−2, −1, 0, −32768
−1, 0, 1
32767, 0, 1, 2
The most significant bit of data becomes "1".
The most significant bit of data becomes "0".
−2, −1, 0, −2,147,483,648
−1, 0, 1
2,147,483,647, 0, 1, 2
(D 0) + 25 → (D 0)
Program example

Flag (zero, borrow or carry) Operates Does not operate
+(+1)= +32767→0→+1→+2→ +32767→−32768→−32767
+(−1)= ←−2←−1←0←−32768 ⎯
+(+1)= +2,147,483,647→0→+1→+2→ +2,147,483,647→−2,147,483,648→−2,147,483,647
+(−1)= ←−2←−1←0←−2,147,483,648 ⎯

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
10 Arithmetic and Logical Operation (+, −, ×, ÷) – FNC 20 to FNC 29
10.2 FNC 21 – SUB / Subtraction
This instruction executes subtraction using two values to obtain the result (A − B = C).
→ For the floating point subtraction instruction ESUB (FNC121), refer to Section 18.9.
Mnemonic Operation Condition P FNC 21
SUB D
Continuous Operation Pulse (Single) Operation
Continuous Operation Pulse (Single) Operation
SUBP
DSUBP
2. Set data
Operand type Description Data type
Data for subtraction or word device number storing data 16- or 32-bit binary
Data for subtraction or word device number storing data 16- or 32-bit binary
Word device number storing the subtraction result 16- or 32-bit binary
Bit Devices Word Devices Others
System User Digit Specification System User Special
Specified the Device & Constant
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 S1 S2 3
3 S1 S2 3
3 S1 S2 3 3 3
S1: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S2: This function is supported only in FX3U/FX3UC PLCs.
1. 16-bit operation (SUB and SUBP)
The contents of are subtracted from in binary format, and the subtraction result is transferred to .
input D S1 S2 D
SUB S1 S2 − →
2. 32-bit operation (DSUB and DSUBP)
The contents of [ +1, ] are subtracted from [ +1, ] in binary format, and the subtraction result
is transferred to [ +1, ].
input D S1 S2 D S1 S2 D
FNC10-FNC19 Move & Compare
DSUB S1 S2 [ +1, ] − [ +1, ] → [ +1, ]
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
10 Arithmetic and Logical Operation (+, −, ×, ÷) – FNC 20 to FNC 29
10.2 FNC 21 – SUB / Subtraction
M8020 Zero ON : When the operation result is 0 OFF : When the operation result is other than 0
M8021 Borrow ON : When the operation result is less than −32768 (in 16-bit operation) or −2,147,483,648 (in 32-bit operation) OFF : When the operation result is not less than −32768 (in 16-bit operation) or −2,147,483,648 (in 32-bit operation)
M8022 Carry ON : When the operation result is more than 32767 (in 16-bit operation) or 2,147,483,647 (in 32-bit operation) OFF : When the operation result is not more than 32767 (in 16-bit operation) or 2,147,483,647 (in 32-bit operation)
−2, −1, 0, −32768
−1, 0, 1
32767, 0, 1, 2
The most significant bit of data becomes "1".
The most significant bit of data becomes "0".
−2, −1, 0, −2,147,483,648
−1, 0, 1
2,147,483,647, 0, 1, 2
(D 0) − 25 → (D 0)
Program example

Flag (zero, borrow or carry) Operates Does not operate
−(+1)= ←−2←−1←0←−32768 −32,768→+32,767→+32,766
−(−1)= +32767→0→+1→+2→ ⎯
−(+1)= ←−2←−1←0←−2,147,483,648 −2,147,483,648→+2,147,483,647→+2,147,483,646
−(−1)= +2,147,483,647→0→+1→+2→ ⎯

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
10 Arithmetic and Logical Operation (+, −, ×, ÷) – FNC 20 to FNC 29
10.3 FNC 22 – MUL / Multiplication
This instruction executes multiplication by two values to obtain the result (A x B = C).
→ For the floating point multiplication instruction EMUL (FNC122), refer to Section 18.10.
Mnemonic Operation Condition P FNC 22
MUL D
Continuous Operation Pulse (Single) Operation
Continuous Operation Pulse (Single) Operation
DMULP
2. Set data
Operand type Description Data type
Data for multiplication or word device number storing data 16- or 32-bit binary
Data for multiplication or word device number storing data 16- or 32-bit binary
Head word device number storing the multiplication result 32- or 64-bit binary
Bit Devices Word Devices Others
System User Digit Specification System User Special
Specified the Device & Constant
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 S1 S2 3
3 S1 S2 3
3 S1 S2 S3 3
S1: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S2: This function is supported only in FX3U/FX3UC PLCs. S3: Available only in 16-bit operations (Not available in 32-bit operations)
1. 16-bit operation (MUL and MULP)
The contents of are multiplied by in binary format, and the multiplication result is transferred to 32-bit
[ +1, ] .
BIN BIN BIN ( ) × ( ) → ( +1, ) 16 bits 16 bits 32 bits D S1 S2 D S1 S2 D
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
10 Arithmetic and Logical Operation (+, −, ×, ÷) – FNC 20 to FNC 29
10.3 FNC 22 – MUL / Multiplication

Y027 Y026 Y025 … Y013 Y012 Y011 Y010 Y007 Y006 Y005 Y004 Y003 Y002 Y001 Y000
0 0 0 … 0 0 1 1 0 0 0 1 1 0 1 1

The contents of [ +1, ] are multiplied by [ +1, ] in binary format, and the multiplication result is
transferred to 64-bit [ +3, +2, +1, ] (four word devices).
D D D D BIN BIN [ +1, ] × [ +1, ] 32 bits 32 bits
BIN → [ +3, +2, +1, ] 64 bits

DMOV D100 K8Y000 D100 is output to Y017 to Y000 D101 is output to Y037 to Y020
DMOV D102 K8Y040 D102 is output to Y057 to Y040 D103 is output to Y077 to Y060
1. Relationship between flag operation and numeric value
M8304 Zero ON: When the operation result is 0. OFF: When the operation result is a number other than 0.
Device Name Description

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
10 Arithmetic and Logical Operation (+, −, ×, ÷) – FNC 20 to FNC 29
1. Devices specified in
→ For the floating point operation, refer to Chapter 18.
1. 16-bit operation
MUL D 0 D 2 D 4
(D 0) × (D 2) → (D 5,D 4) 8 9 72
X001 FNC 22
(D 1,D 0) × (D 3,D 2) → (D 7,D 6,D 5,D 4) 1756 327 574,212
Function Changes According to Versions
Specified the Device & Constant
The function of the FNC 22 instruction varies depending on the PLC version shown in the table below.
Item Function Summary FX3S FX3G FX3GC FX3U FX3UC
Ver. 1.00
Ver. 1.00
Ver. 1.40
Ver. 2.30
Ver. 2.30
or later Zero Flag Turns M8304 ON when the operation result of MUL instruc- tion is 0.
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
10 Arithmetic and Logical Operation (+, −, ×, ÷) – FNC 20 to FNC 29
10.4 FNC 23 – DIV / Division
This instruction executes division by two values to obtain the result (A ÷ B = C ... ).
→ For the floating point division instruction EDIV (FNC123), refer to Section 18.11.


Data for division or word device number storing data (dividend) 16- or 32-bit binary
Data for division or word device number storing data (divisor) 16- or 32-bit binary
Head word device number storing the division result (quotient and remainder) 32- or 64-bit binary

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 S1 S2 3
3 S1 S2 3
3 S1 S2 S3 3
S1:This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S2:This function is supported only in FX3U/FX3UC PLCs. S3: Available only in 16-bit operations (Not available in 32-bit operations)
1. 16-bit operation (DIV and DIVP)
indicates the dividend, indicates the divisor, the quotient is transferred to , and the remainder is

Dividend Divisor Quotient Remainder BIN ( ) ÷ ( ) → ( ) ... ( +1) 16 bits 16 bits 16 bits 16 bits
DIV D S1 S2
D S1 S2 D

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
10 Arithmetic and Logical Operation (+, −, ×, ÷) – FNC 20 to FNC 29
[ +1, ] indicates the dividend, [ +1, ] indicates the divisor, the quotient is transferred to
[ +1, ]), and the remainder is transferred to [ +3, +2].
DDIV D
S 1 S 2
Dividend Divisor BIN BIN [ +1, ] ÷ [ +1, ] 32 bits 32 bits
Quotient Remainder BIN BIN → [ +1, ] ... [ +3, +2] 32 bits 32 bits
D D D D S1 S2 S1 S2
Related devices
M8304 Zero ON : When the operation result is 0. OFF : When the operation result is a number other than 0.
(32-bit operation).
Specified the Device & Constant
1. Operation result
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
10 Arithmetic and Logical Operation (+, −, ×, ÷) – FNC 20 to FNC 29
10.4 FNC 23 – DIV / Division
1. 16-bit operation
Dividend Divisor Quotient Remainder (D 0) ÷ (D 2) → (D 4) ... (D 5) 100 33 3 1
2. 32-bit operation
S 1 S 2 D
X001 FNC 23
Dividend Divisor Quotient Remainder (D 1,D 0) ÷ (D 3,D 2) → (D 5,D 4) ... (D 7,D 6) 100,000 3333 30 10
Function Changes According to Versions
The function of the FNC 23 instruction varies depending on the PLC version shown in the table below.

Item Function Summary FX3S FX3G FX3GC FX3U FX3UC
Zero Flag Turns M8304 ON when the operation result of DIV instruction is 0.
Turns M8306 ON when the operation result of DIV instruction overflows. 16-bit operation: Only when the maximum negative value (-32,768) is divided by -1. 32-bit operation: Only when the maximum negative value (-2,147,483,648) is divided by -1.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
10 Arithmetic and Logical Operation (+, −, ×, ÷) – FNC 20 to FNC 29
10.5 FNC 24 – INC / Increment
This instruction increments the data of a specified device by "1".
Mnemonic Operation Condition P FNC 24
INC D
Continuous Operation Pulse (Single) Operation
Continuous Operation Pulse (Single) Operation
INCP
DINCP
2. Set data
Operand type Description Data type
Word device number storing data to be incremented by "1" 16- or 32-bit binary
Bit Devices Word Devices Others
System User Digit Specification System User Special
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 S1 S2 3 3 3
S1: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S2: This function is supported only in FX3U/FX3UC PLCs.
Specified the Device & Constant
1. 16-bit operation (INC and INCP)
The contents of are incremented by "1", and the increment result is transferred to .
INCP + 1 → D D D
The contents of [ +1, ] are incremented by "1", and the increment result is transferred to [ +1,
].
DINCP D D [ +1, ] + 1 → [ + 1, ] D D D
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
10 Arithmetic and Logical Operation (+, −, ×, ÷) – FNC 20 to FNC 29
10.5 FNC 24 – INC / Increment
0 → (Z)
Z is cleared by the reset input X010.
The current values of counters C0 to C9 are converted into BCD format, and output to K4Y000.
BCDP C 0Z K4Y000
Every time X011 is set to ON, the current values of C0, C1 ... C9 are output one at a time.
(Z) + 1 → (Z)
When Z is "10", M1 turns ON.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
10 Arithmetic and Logical Operation (+, −, ×, ÷) – FNC 20 to FNC 29
10.6 FNC 25 – DEC / Decrement
This instruction decrements the data of a specified device by "1".
Mnemonic Operation Condition P FNC 25
DEC D
Continuous Operation Pulse (Single) Operation
Continuous Operation Pulse (Single) Operation
DECP
DDECP
2. Set data
Operand type Description Data type
Word device number storing data to be decremented by "1" 16- or 32-bit binary
Bit Devices Word Devices Others
System User Digit Specification System User Special
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 S1 S2 3 3 3
S1: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S2: This function is supported only in FX3U/FX3UC PLCs.
Specified the Device & Constant
1. 16-bit operation (DEC and DECP)
The contents of are decremented by "1", and the decremented result is transferred to .
DECP D − 1 → D D
The contents of [ +1, ] are decremented by "1", and the decremented result is transferred to [ +1,
].
input FNC 25 DDECP D D [ +1, ] − 1 → [ + 1, ] D D D
1. Flag operations
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
10 Arithmetic and Logical Operation (+, −, ×, ÷) – FNC 20 to FNC 29
10.7 FNC 26 – WAND / Logical Word AND
This instruction executes the logical product (AND) operation of two numeric values.


Data used for logical product or word device number storing data 16- or 32-bit binary
Data used for logical product or word device number storing data 16- or 32-bit binary
Word device number storing the logical product result 16- or 32-bit binary

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 S1 S2 3
3 S1 S2 3
3 S1 S2 3 3 3
S1: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S2: This function is supported only in FX3U/FX3UC PLCs.
1. 16-bit operation (WAND and WANDP)
The logical product (AND) operation is executed to the contents of and in units of bit, and the result is

S1 S2 ∧ → D S1 S2 D


FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
10 Arithmetic and Logical Operation (+, −, ×, ÷) – FNC 20 to FNC 29
The logical product (AND) operation is executed to the contents of [ +1, ] and [ +1, ] in units of
bit, and the result is transferred to [ +1, ].
S1 S2 +1, ∧ +1, → +1, D S1 S2 D S1 S2 D
S 1 S 1 S 2 S 2
DAND (FNC 26) instruction
Specified the Device & Constant
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
10 Arithmetic and Logical Operation (+, −, ×, ÷) – FNC 20 to FNC 29
10.8 FNC 27 – WOR / Logical Word OR
This instruction executes the logical sum (OR) operation of two numeric values.


Data used for logical sum or word device number storing data 16- or 32-bit binary
Data used for logical sum or word device number storing data 16- or 32-bit binary
Word device number storing the logical sum result 16- or 32-bit binary

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 S1 S2 3
3 S1 S2 3
3 S1 S2 3 3 3
S1: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S2: This function is supported only in FX3U/FX3UC PLCs.
1. 16-bit operation (WOR and WORP)
The logical sum (OR) operation is executed to the contents of and in units of bit, and the result is

S1 S2 D ∨ → S1 S2 D


FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
10 Arithmetic and Logical Operation (+, −, ×, ÷) – FNC 20 to FNC 29
The logical sum (OR) operation is executed to the contents of [ +1, ] and [ +1, ] in units of bit,
and the result is transferred to [ +1, ].
S1 S2 D +1, ∨ +1, → +1, S1 S2 D S1 S2 D
S 1 S 1 S 2 S 2
DOR (FNC 27) instruction
Specified the Device & Constant
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
10 Arithmetic and Logical Operation (+, −, ×, ÷) – FNC 20 to FNC 29
10.9 FNC 28 – WXOR / Logical Exclusive OR
This instruction executes the exclusive logical sum (XOR) operation of two numeric values.


Data used for exclusive logical sum or word device number storing data 16- or 32-bit binary
Data used for exclusive logical sum or word device number storing data 16- or 32-bit binary
Word device number storing the exclusive logical sum result 16- or 32-bit binary

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 S1 S2 3
3 S1 S2 3
3 S1 S2 3 3 3
S1: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S2: This function is supported only in FX3U/FX3UC PLCs.
1. 16-bit operation (WXOR and WXORP)
The exclusive logical sum (XOR) operation is executed to the contents of and in units of bit, and the

S1 S2 D ∀ → S1 S2 D


FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
10 Arithmetic and Logical Operation (+, −, ×, ÷) – FNC 20 to FNC 29
The exclusive logical sum (XOR) operation is executed to the contents of [ +1, ] and [ +1, ] in
units of bit, and the result is transferred to [ +1, ].
S1 S2 D +1, ∀ +1, → +1, S1 S2 D S1 S2 D
S 1 S 1 S 2 S 2
DXOR (FNC 28) instruction
By combining WXOR and CML (FNC 14) instructions, the exclusive logical sum not (XORNOT) operation can be executed.
Specified the Device & Constant
WXOR D 10 D 12 D 14
CML D 14 D 14
FNC10-FNC19 Move & Compare
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
10 Arithmetic and Logical Operation (+, −, ×, ÷) – FNC 20 to FNC 29
10.10 FNC 29 – NEG / Negation
This instruction obtains the complement of a numeric value (by inverting each bit and adding "1"). This instruction can be used to negate the sign of a numeric value.
→ For the Floating point negation ENEG (FNC128), refer to Section 18.16.

Operand type Description Data type
Word device number which stores data for obtaining complement and will store the operation result (The operation result will be stored in the same word device number.) 16- or 32-bit binary

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
1. 16-bit operation (NEG and NEGP)
Each bit of is inverted (0 → 1, 1 → 0), "1" is added, and then the result is stored in the original device.
NEGP D ( )+1 → D D
Each bit of [ +1, ] is inverted (0 → 1, 1 → 0), "1" is added, and then the result is stored in the original device.
input FNC 29 DNEGP
( + 1, ) +1 = ( + 1, ) D D D D D
Command · input FNC 29 · Command

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
10 Arithmetic and Logical Operation (+, −, ×, ÷) – FNC 20 to FNC 29
The program examples below are provided to obtain the absolute value of a negative binary value.
In BON (ON bit check) instruction, M0 turns ON when the bit 15 (b15 among b0 to b15) of D10 is "1".
BON D 10 M 0 K 15 RUN monitor
NEGP instruction is executed for D10 only when M0 turns ON. D10 → D10
CMP D 10 D 20 M 10 (D 10) > (D 20) (D10) = (D 20) (D 10) < (D 20) M 10 = ON M 11 = ON M 12 = ON
In the case of "D10 ≥ D20", D10 − D20 → D30.
M 11
M 12
SUB D 20 D 10 D 30
In the case of "D10 < D20", D20 − D10 → D30.
Specified the Device & Constant
In PLCs, a negative value is expressed in 2’s complement. When the most significant bit is "1", it is a negative value, and its absolute value can be obtained by NEG instruction.
0 1 0
0 1
0
1
0 1
1 0
0 1 0
1 0 1
0 1
FNC10-FNC19 Move & Compare
1 0
1 0
The absolute value can be obtained up to 32767.
FNC20-FNC29 Arith. & Logic Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
11 Rotation and Shift Operation – FNC 30 to FNC 39
FNC 30 to FNC 39 provide instructions for rotating and shifting bit data and word data in specified directions.


FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
11 Rotation and Shift Operation – FNC 30 to FNC 39
11.1 FNC 30 – ROR / Rotation Right
FNC30-FNC39 Rotation and Shift
This instruction shifts and rotates the bit information rightward by the specified number of bits without the carry flag.
P FNC 30
Mnemonic Operation Condition 32-bit Instruction
Continuous Operation Pulse (Single) Operation
9 steps Continuous Operation Pulse (Single) Operation
RORP
DRORP
2. Set data
Operand Type Description Data Type
Word device number storing data to be rotated rightward 16- or 32-bit binary
n Number of bits to be rotated
[n ≤ 16 (16-bit instruction), n ≤ 32 (32-bit instruction)]*1 16- or 32-bit binary
*1. Do not set a negative value to the number of bits to be rotated.
Bit Devices Word Devices Others
System User Digit Specification System User Special
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
FNC70-FNC79 External FX I/O Device
S1 S1 S1 3 3 3 S2 S3
n 3 S2 3 3
S1: In 16-bit operations, K4Y{{{, K4M{{{ and K4S{{{ are valid.
In 32-bit operations, K8Y{{{, K8M{{{ and K8S{{{ are valid. S2: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S3: This function is supported only in FX3U/FX3UC PLCs.
FNC80-FNC89 External FX Device
input FNC 30 RORP n D
FNC100-FNC109 Data Transfer 2
"n" bits (in the case of K4)
b15b14b13b12b11b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0 Before execution
1 0
After the instruction is executed once
"n−1" bits
b0 to b3 (n−1) are moved.
Rightward rotation "n" bits The status of the bit "n−1" is copied.
FNC140-FNC149 Data Operation 2
High order Low order b15b14b13b12b11b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
0 1 0 Carry flag M8022
The contents of b3 are stored.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
11 Rotation and Shift Operation – FNC 30 to FNC 39
11.1 FNC 30 – ROR / Rotation Right
input FNC 30 DRORP n D

b15b14b13b12b11b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0 1 0
1 0
The status of the bit "n−1" is copied.
"n" bits The status of the bit "n−1" is
b15b14b13b12b11b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
0 1 0
0 1 0 Carry flag M8022
→ For the carry flag use method, refer to Subsection 6.5.2.
M8022 Carry Turns ON when the bit shifted last from the lowest position is "1".
Command · Device Name Description

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
11 Rotation and Shift Operation – FNC 30 to FNC 39
11.2 FNC 31 – ROL / Rotation Left
FNC30-FNC39 Rotation and Shift
This instruction shifts and rotates the bit information leftward by the specified number of bits without the carry flag.
P FNC 31
Mnemonic Operation Condition 32-bit Instruction
Continuous Operation Pulse (Single) Operation
9 steps Continuous Operation Pulse (Single) Operation
ROLP
DROLP
2. Set data
Operand Type Description Data Type
Word device number storing data to be rotated leftward 16- or 32-bit binary
n Number of bits to be rotated
[n ≤ 16 (16-bit instruction), n ≤ 32 (32-bit instruction)]*1 16- or 32-bit binary
*1. Do not set a negative value to the number of bits to be rotated.
Bit Devices Word Devices Others
System User Digit Specification System User Special
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
FNC70-FNC79 External FX I/O Device
S1 S1 S1 3 3 3 S2 S3
n 3 S2 3 3
S1: In 16-bit operations, K4Y{{{, K4M{{{ and K4S{{{ are valid.
In 32-bit operations, K8Y{{{, K8M{{{ and K8S{{{ are valid. S2: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S3: This function is supported only in FX3U/FX3UC PLCs.
FNC80-FNC89 External FX Device
input FNC 31 ROLP n D
FNC100-FNC109 Data Transfer 2
"n" bits (in the case of K4)
b15b14b13b12b11b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
1 0
After the instruction is executed once
b12 (16−n) to b15 are moved.
"n" bits The status of the bit "16−n" is copied.
FNC140-FNC149 Data Operation 2
High order Low order
b15b14b13b12b11b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0 1 Carry flag M8022
1 0 1
b15 to b12 Before shift
The contents of b12 are stored.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
11 Rotation and Shift Operation – FNC 30 to FNC 39
11.2 FNC 31 – ROL / Rotation Left
input FNC 31 DROLP n D

b15b14b13b12b11b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
1 0
1 0
The status of the bit "32−n" is copied.
b15b14b13b12b11b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
1 0 1
1 0 1
→ For the carry flag use method, refer to Subsection 6.5.2.
M8022 Carry Turns ON when the bit shifted last from the highest position is "1".
Command · Device Name Description

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
11 Rotation and Shift Operation – FNC 30 to FNC 39
11.3 FNC 32 – RCR / Rotation Right with Carry
FNC30-FNC39 Rotation and Shift
This instruction shifts and rotates the bit information rightward by the specified number of bits together with the carry flag.
P FNC 32
Mnemonic Operation Condition 32-bit Instruction
Continuous Operation Pulse (Single) Operation
9 steps Continuous Operation Pulse (Single) Operation
RCRP
DRCRP
2. Set data
Operand Type Description Data Type
Word device number storing data to be rotated rightward 16- or 32-bit binary
n Number of bits to be rotated
[n ≤ 16 (16-bit instruction), n ≤ 32 (32-bit instruction)]*1 16- or 32-bit binary
*1. Do not set a negative value to the number of bits to be rotated.
Bit Devices Word Devices Others
System User Digit Specification System User Special
FNC70-FNC79 External FX I/O Device
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
S S S 3
n 3
S: In 16-bit operations, K4Y{{{, K4M{{{ and K4S{{{ are valid.
In 32-bit operations, K8Y{{{, K8M{{{ and K8S{{{ are valid.
FNC80-FNC89 External FX Device
input FNC 32 RCRP n D
FNC100-FNC109 Data Transfer 2
"n" bits (in the case of K4)
b15b14b13b12b11b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
1 0
When M8022 is ON
After the instruction is executed once
b3 (n−1) to b0 are moved.
b3 (n−1)
b2 (n−2) to b0 and the head bit indicating the carry flag ON/OFF status are moved.
The status of the final bit b3 (bit "n−1") is stored.
High order Low order b15b14b13b12b11b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
0 0 0 1 0
Before shift b3 Carry flag M8022
FNC140-FNC149 Data Operation 2
Before shift b2 to b0
Before shift b15 to b4
Before shift Carry flag M8022
The carry flag is intervened in the rotation loop. If M8022 has been set to ON or OFF before the rotation instruction, the carry flag is transferred to the destination.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
11 Rotation and Shift Operation – FNC 30 to FNC 39
11.3 FNC 32 – RCR / Rotation Right with Carry

b15b14b13b12b11b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0 1 0
1 0 1 0 0 0
b2 (n−2) to b0 and the head bit indicating the carry flag ON/OFF status are moved.
The status of the final bit b3 (bit "n−1") is stored.
Low order b15b14b13b12b11b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
0 1 0
0 1 0
→ For the carry flag use method, refer to Subsection 6.5.2.
M8022 Carry Turns ON when the bit shifted last from the lowest position is "1".
Device Name Description

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
11 Rotation and Shift Operation – FNC 30 to FNC 39
11.4 FNC 33 – RCL / Rotation Left with Carry
FNC30-FNC39 Rotation and Shift
This instruction shifts and rotates the bit information leftward by the specified number of bits together with the carry flag.
P FNC 33
Mnemonic Operation Condition 32-bit Instruction
Continuous Operation Pulse (Single) Operation
9 steps Continuous Operation Pulse (Single) Operation
RCLP
DRCLP
2. Set data
Operand Type Description Data Type
Word device number storing data to be rotated leftward 16- or 32-bit binary
n Number of bits to be rotated
[n ≤ 16 (16-bit instruction), n ≤ 32 (32-bit instruction)]*1 16- or 32-bit binary
*1. Do not set a negative value to the number of bits to be rotated.
Bit Devices Word Devices Others
System User Digit Specification System User Special
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
FNC70-FNC79 External FX I/O Device
S S S 3
n 3
S: In 16-bit operations, K4Y{{{, K4M{{{ and K4S{{{ are valid.
In 32-bit operations, K8Y{{{, K8M{{{ and K8S{{{ are valid.
FNC80-FNC89 External FX Device
input FNC 33 RCLP n D
FNC100-FNC109 Data Transfer 2
"n" bits (in the case of K4)
b15b14b13b12b11b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
b15 to b12 (16−n) are moved.
1 1 1 0 1 0
After the instruction is executed once
When M8022 is ON b15 to b13 (16−n+1) and the head bit indicating the carry flag ON/OFF status are moved.
High order Low order
b15b14b13b12b11b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
The status of the final bit b12 (bit "16−n") is stored.
1 0 1
FNC140-FNC149 Data Operation 2
Before shift b15 to b13 Before shift b11 to b0
Carry flag M8022 Before shift Carry flag M8022 Before shift b12
The carry flag is intervened in the rotation loop. If M8022 has been set to ON or OFF before the rotation instruction, the carry flag is transferred to the destination.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
11 Rotation and Shift Operation – FNC 30 to FNC 39
11.4 FNC 33 – RCL / Rotation Left with Carry

b15b14b13b12b11b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0 1 1 1 0 1 0
1 0
b31 to b29 (32−n+1) and the head bit indicating the carry flag ON/OFF status are moved.
Low order b15b14b13b12b11b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
The status of the final bit b28 (bit "32−n") is stored.
1 0 1
1 0 1
→ For the carry flag use method, refer to Subsection 6.5.2.
M8022 Carry Turns ON when the bit shifted last from the highest position is "1".
Device Name Description

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
11 Rotation and Shift Operation – FNC 30 to FNC 39
11.5 FNC 34 – SFTR / Bit Shift Right
FNC30-FNC39 Rotation and Shift
This instruction shifts bit devices of the specified bit length rightward by the specified number of bits. After shift, the bit device is transferred by "n2" bits from the most significant bit.
P FNC 34
Mnemonic Operation Condition 32-bit Instruction
Continuous Operation Pulse (Single) Operation
SFTRP
2. Set data
Operand Type Description Data Type
Head bit device number to be stored to the shift data after rightward shift Bit
Head bit device number to be shifted rightward Bit
n1 Bit length of the shift data n2 ≤ n1 ≤ 1024 16-bit binary
n2 Number of bits to be shifted rightward n2 ≤ n1 ≤ 1024*1 16-bit binary
*1. Do not set a negative value to the number of bits to be shifted rightward.
Bit Devices Word Devices Others
FNC70-FNC79 External FX I/O Device
System User Digit Specification System User Special
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
FNC80-FNC89 External FX Device
n2 3 S2 3 3
S1: "D .b" is available only in FX3U and FX3UC PLCs. However, index modifiers (V and Z) are not available. S2: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs.
FNC100-FNC109 Data Transfer 2
FNC140-FNC149 Data Operation 2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
11 Rotation and Shift Operation – FNC 30 to FNC 39
11.5 FNC 34 – SFTR / Bit Shift Right

input FNC 34 SFTRP n1 n2 D S
D D D D D D D
+7 D +6 +5 +4 +3 D +1
+8 D +7 +6 +5 D +4 D +3 D +2 D +1 D D
+2 to before shift (n2=3) S S
+8 to +3 before shift (n2=3) D D
If the transfer source is equivalent to the shifted device in FX3U/FX3UC PLCs, an operation error occurs (error code: K6710). An operation error does not occur in FX3S/FX3G/FX3GC PLCs.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
11 Rotation and Shift Operation – FNC 30 to FNC 39
11.6 FNC 35 – SFTL / Bit Shift Left
FNC30-FNC39 Rotation and Shift
This instruction shifts bit devices of the specified bit length leftward by the specified number of bits. After shift, the bit device is transferred by "n2" bits from the least significant bit.
P FNC 35
Mnemonic Operation Condition 32-bit Instruction
Continuous Operation Pulse (Single) Operation
2. Set data
Operand Type Description Data Type
Head bit device number to be stored to the shift data after leftward shift Bit
Head bit device number to be shifted leftward Bit
n1 Bit length of the shift data n2 ≤ n1 ≤ 1024 16-bit binary
n2 Number of bits to be shifted leftward n2 ≤ n1 ≤ 1024*1 16-bit binary
*1. Do not set a negative value to the number of bits to be shifted leftward.
Bit Devices Word Devices Others
System User Digit Specification System User Special
FNC70-FNC79 External FX I/O Device
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
FNC80-FNC89 External FX Device
n2 3 S2 3 3
S1: "D .b" is available only in FX3U and FX3UC PLCs. However, index modifiers (V and Z) are not available. S2: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs.
FNC100-FNC109 Data Transfer 2
input FNC 35 SFTLP n1 n2 D S
n2 (in the case of "n2=3")
n1 (in the case of "n1=9")
+5 D +4 +3 +8 D +7 +6
D D D D D D D
FNC140-FNC149 Data Operation 2
[1] Overflow (data to
[2] "n2" bits are shifted rightward (n2=3).
D D D D D D D
to +5 before shift (n2=3) D
+2 to before shift (n2=3) S

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
11 Rotation and Shift Operation – FNC 30 to FNC 39
11.6 FNC 35 – SFTL / Bit Shift Left
If the transfer source is equivalent to the shifted device in FX3U/FX3UC PLCs, an operation error occurs (error code: K6710). An operation error does not occur in FX3S/FX3G/FX3GC PLCs.
Program example (conditional stepping of 1-bit data)
By setting X000 to X007 to ON in turn, Y000 to Y007 are activated in turn. If the order is wrong, activation is disabled.

Bit 1 of M0 is regarded as the head input, and 8-bit shift register is constructed by S0 to S7.
*1 By using a state relay (S), the state under operation can be monitored by the dynamic monitoring function of the state relay.
Even if X000 is set to ON, Y000 is not activated.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
11 Rotation and Shift Operation – FNC 30 to FNC 39

SFT instruction in F1/F2 PLCs corresponds to SFTL (FNC 35) instruction in FX3S/FX3G/FX3GC/FX3U/FX3UC PLCs as shown below:
Shift registers M101 to M115 are reset at one time.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
11 Rotation and Shift Operation – FNC 30 to FNC 39
11.7 FNC 36 – WSFR / Word Shift Right
This instruction shifts word devices with "n1" data length rightward by "n2" words.


Head device number to be stored to the shift data after rightward shift 16-bit binary
Head word device number storing data to be shifted rightward 16-bit binary
n1 Word data length of the shift data n2 ≤ n1 ≤ 512 16-bit binary
n2 Number of words to be shifted rightward n2 ≤ n1 ≤ 512*1 16-bit binary
*1. Do not set a negative value to the number of words to be shifted rightward.

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 S1 S2 3
3 S1 S2 3
S1: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S2: This function is supported only in FX3U/FX3UC PLCs.

input FNC 36 WSFRP n1 n2 D S
D +7 +6 +5 +4 +3 D +1
D D D D D D D
+8 D +7 +6 +5 D +4 +3 +2 +1
D D D D D D D

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
11 Rotation and Shift Operation – FNC 30 to FNC 39

If the transfer source is equivalent to the shifted device , an operation error occurs (error code: K6710).
X000 FNC 36 WSFRP K1X000 K1Y000 K 4 K 2
Specify the same digit for devices with digit specification.
Make sure that the number of digits is equivalent (Kn).
Y017 Y016 Y015 Y014 Y013 Y012 Y011Y010 Y007 Y006 Y005 Y004 Y003 Y002 Y001 Y000

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
11 Rotation and Shift Operation – FNC 30 to FNC 39
11.8 FNC 37 – WSFL / Word Shift Left
This instruction shifts the word data information leftward by the specified number of words.


Head device number to be stored to the shift data after leftward shift 16-bit binary
Head word device number storing data to be shifted leftward 16-bit binary
n1 Word data length of the shift data n2 ≤ n1 ≤ 512 16-bit binary
n2 Number of words to be shifted leftward n2 ≤ n1 ≤ 512*1 16-bit binary
*1. Do not set a negative value to the number of words to be shifted leftward.

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 S1 S2 3
3 S1 S2 3
S1: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S2: This function is supported only in FX3U/FX3UC PLCs.
input FNC 37 WSFLP n1 n2 D S
Command

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
11 Rotation and Shift Operation – FNC 30 to FNC 39

D D D D D D D
D D D D D D D
If the transfer source is equivalent to the shifted device , an operation error occurs (error code: K6710).
X000 FNC 37 WSFLP K1X000 K1Y000 K 4 K 2
Specify the same digit for devices with digit specification.
Make sure that the number of digits is equivalent (Kn).
Y017 Y016Y015 Y014 Y013 Y012 Y011 Y010 Y007 Y006 Y005 Y004 Y003 Y002 Y001Y000

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
11 Rotation and Shift Operation – FNC 30 to FNC 39
11.9 FNC 38 – SFWR / Shift Write [FIFO/FILO Control]
This instruction writes data for first-in first-out (FIFO) and last-in first-out (LIFO) control.


Word device number storing data to be put in first 16-bit binary
Head word device number storing data (The first word device works as the pointer, and
data is stored in +1 and later) 16-bit binary
n Number of store points plus "1"*1 2 n 512 16-bit binary
*1. "+1" is required for the pointer.

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 S1 S2 3
3 S1 S2 3
S1: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S2: This function is supported only in FX3U/FX3UC PLCs.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
11 Rotation and Shift Operation – FNC 30 to FNC 39
FNC30-FNC39 Rotation and Shift
D S D D S
input FNC 38 SFWRP D S
D D+n ... D+2 D+10 D+9 D+8 D+7 D+6 D+5 D+4 D+3 D+1
Executed at the 1st time ( = 0) D
D D+n ... D+2 D+10 D+9 D+8 D+7 D+6 D+5 D+4 D+3 S
Executed at the 2nd time
(K2) (K1)
D D+n ... S D+10 D+9 D+8 D+7 D+6 D+5 D+4 D+3 S
FNC70-FNC79 External FX I/O Device
FNC80-FNC89 External FX Device
→ For the carry flag use method, refer to Subsection 6.5.2.
FNC100-FNC109 Data Transfer 2
M8022 Carry When the contents of the pointer exceeds "n-1", no operation is executed (so data is not written) and the carry flag M8022 turns ON.
SFRD (FNC 39) Shift read (for FIFO control)
POP (FNC212) Shift last data read (for FILO control)
FNC140-FNC149 Data Operation 2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
11 Rotation and Shift Operation – FNC 30 to FNC 39
11.9 FNC 38 – SFWR / Shift Write [FIFO/FILO Control]

Button for request to put a product into warehouse
The product number is input from X000 to X017, and transferred to D256.
Button for request to take a product out of warehouse
The product number of a product put into first is output to D357 in response to the request to put a product out of the warehouse.
The product number to be taken out is output to Y000 to Y017 in a four-digit hexadecimal number.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
11 Rotation and Shift Operation – FNC 30 to FNC 39
11.10 FNC 39 – SFRD / Shift Read [FIFO Control]
FNC30-FNC39 Rotation and Shift
This instruction reads data for first-in first-out control.
P FNC 39
Mnemonic Operation Condition 32-bit Instruction
Continuous Operation Pulse (Single) Operation
2. Set data
Operand Type Description Data Type
Head word device number storing data
(The first word device works as the pointer, and data is stored in +1 and later.) 16-bit binary
Word device number storing data taken out first 2 ≤ n ≤ 512 16-bit binary
n Number of store points plus "1"*1 2 ≤ n ≤ 512 16-bit binary
*1. "+1" is required for the pointer.
Bit Devices Word Devices Others
System User Digit Specification System User Special
FNC70-FNC79 External FX I/O Device
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 S1 S2 3
3 S1 S2 3 3 3
S1: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S2: This function is supported only in FX3U/FX3UC PLCs.
FNC80-FNC89 External FX Device
FNC100-FNC109 Data Transfer 2
input FNC 39 SFRDP D S
FNC140-FNC149 Data Operation 2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
11 Rotation and Shift Operation – FNC 30 to FNC 39
11.10 FNC 39 – SFRD / Shift Read [FIFO Control]
![Mitsubishi Electronics MELSEC FX3S — 11.10 FNC 39 – SFRD / Shift Read [FIFO Control] diagram (page 316)](/cdn/reader/06/06b6c5c8bfa3e981e964d8ed7432322fb86c682a85757d292a29f9cec2d4294a/images/fig-316-1.webp)
S S+n ... S+2 S+10 S+9 S+8 S+7 S+6 S+5 S+4 S+3 S+1
S S+n ... S+2 S+10 S+9 S+8 S+7 S+6 S+5 S+4 S+3 S+n
S S+n ... S+10 S+9 S+8 S+7 S+6 S+5 S+4 S+3 S+n S+n
→ For the zero flag use method, refer to Subsection 6.5.2.
M8020 Zero Data is always read from +1. When the contents of the pointer become "0", the zero flag M8020 turns ON.
Related instructions
SFWR (FNC 38) Shift write (for FIFO/FILO control)
POP (FNC212) Shift last data read (for FILO control)
Refer to the program example provided for SFWR (FNC 38) instruction.
→ For the program example, refer to Section 11.9.
Device Name Description · Instruction Description

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
12 Data Operation – FNC 40 to FNC 49

FNC 40 to FNC 49 provide instructions for executing complicated processing for fundamental applied instructions FNC 10 to FNC 39 and for executing special processing.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
12 Data Operation – FNC 40 to FNC 49
12.1 FNC 40 – ZRST / Zone Reset
This instruction resets devices located in a zone between two specified devices at one time. Use this instruction for restarting operation from the beginning after pause or after resetting control data.


S1 D1 S1 D1 D2
Head bit or word device number to be reset at one time ≤ Specify same type of devices.
Last bit or word device number to be reset at one time 16-bit binary

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 S1 S2 3
3 S1 S2 3
S1: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S2: This function is supported only in FX3U/FX3UC PLCs.
1. 16-bit operation (ZRST and ZRSTP)
Same type of devices from to are reset at one time.
When and are bit devices
D 1 D 1 D 1 D 2

ZRST Devices through are reset at one time. D2 D1 D2 D1
… +2 +9 +8 +7 +6 +5 +4 +3 +1 D1 D2 D1 D1 D1 D1 D1 D1 D1 D1 D1
OFF OFF … OFF

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
12 Data Operation – FNC 40 to FNC 49
D 1 D 1 D 1 D 2
FNC30-FNC39 Rotation and Shift
"K0" is written to the entire range from to at one time.
ZRST Devices through are reset at one time. D2 D1 D2 D1
… +2 +9 +8 +7 +6 +5 +4 +3 +1 D1 D2 D1 D1 D1 D1 D1 D1 D1 D1 D1
K0 K0 … K0
M0 is reset.
The current value of T0 is reset.
FNC70-FNC79 External FX I/O Device
D0 RST
D0 is reset.
FNC80-FNC89 External FX Device
K0 K0 is written to D0 to D99 at one time. FNC 16
FNC100-FNC109 Data Transfer 2
1. Caution on specifying devices
Specify same type of devices in and . The device number of should be smaller than or equal to the
D1 D1 D1 D2 D1 D1
device number of .
D1 D1 D1 D2 D1 D1
If the device number of is larger than the device number of , only one device specified in is reset.
The ZRST instruction is handled as the 16-bit type, but 32-bit counters can be specified in and .
However, it is not possible to specify a 16-bit counter in and specify a 32-bit counter in ; and should be the same type.
D1 D1 D1 D2 D1 D1 D1 D2
FNC140-FNC149 Data Operation 2
ZRST C180 C199
ZRST C200 C230

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
12 Data Operation – FNC 40 to FNC 49
12.1 FNC 40 – ZRST / Zone Reset
M100 M0
ZRST
M0 PLS
M0
Please program in the following way to turn on M0 only once.
M100 M0 FNC 40
ZRST
M0

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
12 Data Operation – FNC 40 to FNC 49
FNC30-FNC39 Rotation and Shift
C100 C0 FNC 40
ZRST
M0 RST
K10
ON
ON
OFF
OFF ON
M0
OFF
Current value of C0
Counting is executed when X000 is ON. OUT instruction
FNC70-FNC79 External FX I/O Device
Program in the following way to disable counting after execution of the ZRST instruction:
FNC80-FNC89 External FX Device
ZRST
M0 RST
K10
FNC100-FNC109 Data Transfer 2
M8002 FNC 40
ZRST M500 M599 Initial pulse
M500 to M599 are reset at one time.
FNC140-FNC149 Data Operation 2
C235 to C255 are reset at one time. ("0" is written to them, and their contacts are reset.)
D 1 D 2
ZRST S500 S599
S500 to S599 are reset at one time.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
12 Data Operation – FNC 40 to FNC 49
12.2 FNC 41 – DECO / Decode
This instruction converts numeric data into ON bit. A bit number which is set to ON by this instruction indicates a numeric value.


Data to be decoded or word device number storing data 16-bit binary
Bit or word device number storing the decoding result 16-bit binary
n Number of bits of device storing the decoding result (n = 1 to 8) (No processing is executed in the case of "n = 0".) 16-bit binary

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 S1 S2 3
3 S1 S2 3
S1: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S2: This function is supported only in FX3U/FX3UC PLCs.
D1 D D1 D D1 S
D 1 S D 1 D
-When all bits of are "0", the bit device turns ON. -When "n" is "8", 28 points (= 256 bits which is the maximum value) are occupied.

When it is Y, M or S (1 ≤ n ≤ 8)
M63 Up to M127 Up to M255 … … …
When is M0 1 0
M255 M0 M1 M2 M3 M4 M5 M6 M7 M8 M9 M10 M11 M12 M13 M14 M15
Up to 256 bits (The number of occupied bits varies depending on the specified "n" value.)

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
12 Data Operation – FNC 40 to FNC 49

The numeric value (expressed in 2n on the low-order side) of is decoded to .
-When all bits of are "0", b0 of the word device turns ON.
-In the case of "n ≤ 3", all of high-order bits of become "0" (turn OFF).
b0 b1 b2 b3 b4 b5 b6 b7 b8 b9 b10 b11 b12 b13 b14 b15
1 0 1 0 0 1
0 1
b0 b1 b2 b3 b4 b5 b6 b7 b8 b9 b10 b11 b12 b13 b14 b15

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
12 Data Operation – FNC 40 to FNC 49
12.2 FNC 41 – DECO / Decode

0 1 1 1 0 b0 1 2 3 4 5 6 7
When the value of b0 to b3 of D0 is "14"
M63 Up to M127 Up to M255 … … …
0 1 0
M255 M0 M1 M2 M3 M4 M5 M6 M7 M8 M9 M 10 M 11 M 12 M 13 M 14 M 15
Up to 256 bits (The number of occupied bits varies depending on the specified "n" value.)
However, because the device range of is occupied for decoding accordingly, such device range should not be used for another control.

0 0 0 1 0
b0 b1 b2 b3 b4 b5 b6 b7 b8 b9 b10 b11 b12 b13 b14 b15

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
12 Data Operation – FNC 40 to FNC 49
12.3 FNC 42 – ENCO / Encode
FNC30-FNC39 Rotation and Shift
This instruction obtains positions in which bits are ON in data.
P FNC 42
Mnemonic Operation Condition 16-bit Instruction
Continuous Operation Pulse (Single) Operation
2. Set data
Operand type Description Data type
Data to be encoded or word device number storing data 16-bit binary
Word device number storing the encoding result 16-bit binary
n Number of bits of device storing the encoding result (n = 1 to 8) (When "n" is "0", no processing is executed.) 16-bit binary
Bit Devices Word Devices Others
System User Digit Specification System User Special
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
FNC70-FNC79 External FX I/O Device
3 S1 S2 3 3 3
3 3 3 S1 S2 3 3 3
S1: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S2: This function is supported only in FX3U/FX3UC PLCs.
FNC80-FNC89 External FX Device
1. 16-bit operation (ENCO and ENCOP)
The 2n bit of is encoded, and the result value is stored to . This instruction converts data into binary data according to a bit position in the ON status.
FNC100-FNC109 Data Transfer 2
ON bit positions among "2n" bits (1 ≤ n ≤ 8) from are encoded to .
-When "n" is "8", 28 = 256 bits (which is the maximum value) are occupied.
-The encoding result of is "0" (OFF) from the most significant bit to the low-order bit "n".
When it is Y, M or S
ENCO n S D
(1 ≤ n ≤ 8)
M17 M16 M15 M14 M13 M12 M11 M10 When "n" is 3
7 0 1 0 1 2 (3) 4 5 6
FNC140-FNC149 Data Operation 2
1 1 0 b15 D10 (1) (2) 4
All of them are "0".

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
12 Data Operation – FNC 40 to FNC 49
12.3 FNC 42 – ENCO / Encode
ON bit positions among "2n" bits (1 ≤ n ≤ 4) from a device specified in are encoded to .

-The encoding result of is "0" (OFF) from the most significant bit to the low-order bit "n".
When it is T, C, D, R, U \G , V or Z
0 0 0 1 0 1 0 1 0 1 0 1 0 b15
0 1 2 (3) 4 5 6 7 Ignored
1 1 0 b15 (1) (2) 4

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
12 Data Operation – FNC 40 to FNC 49
12.4 FNC 43 – SUM / Sum of Active Bits
FNC30-FNC39 Rotation and Shift
This instruction counts the number of "1" (ON) bits in the data of a specified device.
Mnemonic Operation Condition P FNC 43
SUM D
Continuous Operation Pulse (Single) Operation
9 steps Continuous Operation Pulse (Single) Operation
SUMP
DSUMP
2. Set data
Operand type Description Data type
Word device number storing the source data 16- or 32-bit binary
Word device number storing the result data 16- or 32-bit binary
Bit Devices Word Devices Others
System User Digit Specification System User Special
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 S1 S2 3
FNC70-FNC79 External FX I/O Device
3 S1 S2 3 3 3
S1: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S2: This function is supported only in FX3U/FX3UC PLCs.
FNC80-FNC89 External FX Device
The number of bits in the ON status in is counted, and stored to .
SUM S D
Number of bits in the ON status in → S D
FNC100-FNC109 Data Transfer 2
b0 b1 b2 b3 b4 b5 b6 b7 b8 b9 b10 b11 b12 b13 b14 b15
0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 1
1 2 3 ← 4 ← 5 ← 6 ← 7 ← 8 ← 9 (Number of "1" (ON))
0
b0 b1 b2 b3 b4 b5 b6 b7 b8 b9 b10 b11 b12 b13 b14 b15
0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 1
32 16 8 4 2 1
1 0 0 1 0
FNC140-FNC149 Data Operation 2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
12 Data Operation – FNC 40 to FNC 49
12.4 FNC 43 – SUM / Sum of Active Bits
The number of bits in the ON status in [ +1, ] is counted, and stored to .
D1 S D1 S D1 D
D Number of bits in the ON status in D +1,
[ +1, ] S S
32-bit data K0 is written
b16 b17 b31 … b0 b1 b2 b3 b4 b5 b6 b7 b8 b9 b10 b11 b12 b13 b14 b15
0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 1 0
1 2 3 ← 4 ← 5 ← 6 ← 7 ← 8 ← 9 (Number of "1" (ON))
K0
0
b16 b17 b31 … b0 b1 b2 b3 b4 b5 b6 b7 b8 b9 b10 b11 b12 b13 b14 b15
0
0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 1
32 16 8 4 2 1
K9
1 0 0 1 0
1 0 0 1 0
M8020
flag) Bit device Word device
b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0 Decimal Hexadecimal
0000 0 ON
0 1 1 0001 1 OFF
0 1 0 2 0002 1 OFF
0 1 1 3 0003 2 OFF
0 1 0 0 4 0004 1 OFF
0 1 0 1 5 0005 2 OFF
0 1 1 0 6 0006 2 OFF
0 1 1 1 7 0007 3 OFF
0 1 0 0 0 8 0008 1 OFF
0 1 0 0 1 9 0009 2 OFF
0 1 0 1 0 10 000A 2 OFF
0 1 0 1 1 11 000B 3 OFF
1 0 1 1 −5 FFFB 15 OFF
1 0 0 −4 FFFC 14 OFF
1 0 1 −3 FFFD 15 OFF
1 0 −2 FFFE 15 OFF
1 −1 FFFF 16 OFF

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
12 Data Operation – FNC 40 to FNC 49

While the command input is OFF, the instruction is not executed. The output of the number of bits in the ON status is latched in the previous status.
When X000 is ON, the number of bits in the ON status in D0 is counted, and stored to D2.
The number of "1" in D0 is stored to D2. FNC 43
0
0
0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 1
0 1 0 0 1

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
12 Data Operation – FNC 40 to FNC 49
12.5 FNC 44 – BON / Check Specified Bit Status
This instruction checks whether a specified bit position in a specified device is ON or OFF.


Word device number storing the source data 16- or 32-bit binary
n Bit position to be checked [n: 0 to 15 (16-bit instruction), 0 to 31 (32-bit instruction)] 16- or 32-bit binary

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 S2 S3
S1: "D .b" is available only in FX3U and FX3UC PLCs. However, index modifiers (V and Z) are not available. S2: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S3: This function is supported only in FX3U/FX3UC PLCs.
1. 16-bit operation (BON and BONP)
The status (ON or OFF) of the bit "n" in is output to .
[When the bit "n" is ON, is set to ON. When the bit "n" is OFF, is set to OFF.]

BON S D n S = ON/OFF status of bit "n" D
b0 b1 b2 b3 b4 b5 b6 b7 b8 b9 b10 b11 b12 b13 b14 b15
0 1 0 0 1 0 1 0 1 0 0 0
K4 K5 K6 K7 K0 K1 K2 K3 K8 K9 K10 K11 K12 K13 K14 K15 D

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
12 Data Operation – FNC 40 to FNC 49
FNC30-FNC39 Rotation and Shift
The status (ON or OFF) of the bit "n" in [ +1, ] is output to .
D1 S D1 S D1 D
[When the bit "n" is ON, is set to ON. When the bit "n" is OFF, is set to OFF.]
DBON S D n
S = ON/OFF status of bit "n" D S
(n = K0 to K31)
b16 b17 … b29 b30 b31
b0 b1 b2 b3 b4 b5 b6 b7 b8 b9 b10 b11 b12 b13 b14 b15
0 1 … 1 1 1
0 1 0 0 1 0 1 0 1 0 0 0
K4 K5 K6 K7 K0 K1 K2 K3 K8 K9 K10 K11 K12 K13 K14 K15
(ON)
Caution
FNC70-FNC79 External FX I/O Device
When the bit 9 (n = 9) in D10 is "1" (ON), M0 is set to "1" (ON).
S D n
FNC80-FNC89 External FX Device
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
0 1 0 1 0 1 0 1 0 1 0 0
FNC100-FNC109 Data Transfer 2
FNC140-FNC149 Data Operation 2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
12 Data Operation – FNC 40 to FNC 49
12.6 FNC 45 – MEAN / Mean
This instruction obtains the mean value of data.


Head word device number storing data to be averaged 16- or 32-bit binary
Word device number storing the mean value result 16- or 32-bit binary
n Number of data to be averaged (n = 1 to 64) 16- or 32-bit binary

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 S1 S2 3
3 S1 S2 3 3 3
S1: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S2: This function is supported only in FX3U/FX3UC PLCs.
1. 16-bit operation (MEAN and MEANP)
The mean value of "n" 16-bit data from is stored to .
S S S + + 1 + ……… + + n − 1
MEAN n S D n
The mean value of "n" 32-bit data from [ +1, ] is stored to [ +1, ].
D1 S D1 S D1 D D1 D

[ + 1, ] + [ + 3, + 2] + ……… + [{ + n × 2 − 1}, { + n × 2 − 2}]
S S S S S S
Command · input FNC 45

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
12 Data Operation – FNC 40 to FNC 49

When "n" is any value outside the range from "1" to "64", an operation error (M8067) is caused.
The data of D0, D1 and D2 are summed, divided by "3", and then stored to D10.
(D 0) + (D 1) + (D 2) FNC 45

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
12 Data Operation – FNC 40 to FNC 49
12.7 FNC 46 – ANS / Timed Annunciator Set
This instruction sets a state relay as an annunciator (S900 to S999).
Mnemonic Operation Condition 16-bit Instruction
2. Set data

m Evaluation time data [m = 1 to 32767 (unit: 100 ms)] 16-bit binary

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
1. 16-bit operation
When the command input remains ON for equivalent to or longer than the evaluation time [m × 100 ms, timer ],
is set. When the command input remains ON for less than the evaluation time [m × 100 ms] and then turns OFF, the current
value of the timer for evaluation is reset and is not set. When the command input turns OFF, the timer for evaluation is reset.

Equivalent to or longer than evaluation time (m × 100 ms)

M8049 Enable annunciator When M8049 is set to ON, M8048 and D8049 are valid.
M8048 Annunciator ON When M8049 is ON and one of the state relays S900 to S999 is ON, M8048 turns ON.
D8049 Smallest state relay number in ON status Among S900 to S999, the smallest state relay number in the ON status is stored.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
12 Data Operation – FNC 40 to FNC 49
FNC30-FNC39 Rotation and Shift
M8049
When M8049 turns ON, monitoring becomes valid.
X000 FNC 46
If the forward end detection input X000 does not turn ON within 1 second after the forward movement output Y005 is driven, S900 turns ON.
If both the upper limit input X001 and the lower limit input X002 are OFF for 2 seconds or more due to a dog error, S901 turns ON.
ANS
The switch X004 is set to ON in one operation cycle of the machine. If the switch X004 is not set to ON while the continuous operation mode input X003 is ON in the machine whose tact time is less than 10 seconds, S902 turns ON.
ANS
Y005 X005
M8048
FNC70-FNC79 External FX I/O Device
When one among S900 to S999 turns ON, M8048 turns ON and the fault display output Y006 turns ON.
A state relay which was set to ON by the external fault diagnosis program is set to OFF by the reset button X007. Every time X007 is set to ON, an operation state relay in the ON status with the smallest device number is reset (set to OFF) in turn.
FNC80-FNC89 External FX Device
FNC100-FNC109 Data Transfer 2
FNC140-FNC149 Data Operation 2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
12 Data Operation – FNC 40 to FNC 49
12.8 FNC 47 – ANR / Annunciator Reset
This instruction resets an annunciator (S900 to S999) in the ON status with the smallest number.

Operand type Description Data type
⎯ There is no set data. ⎯

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
Related devices

M8049 Enable annunciator When M8049 is set to ON, M8048 and D8049 are valid.
M8048 Annunciator ON When M8049 is ON and either one among the state relays S900 to S999 is ON, M8048 turns ON.
D8049 Minimum state relay number in ON status Among S900 to S999, the minimum number in the ON status is stored.
1. Execution in each operation cycle
Refer to ANS (FNC 46) instruction.
→ For a program example, refer to Section 12.7.
Command · input FNC 47

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
12 Data Operation – FNC 40 to FNC 49
12.9 FNC 48 – SQR / Square Root
FNC30-FNC39 Rotation and Shift
This instruction obtains the square root. The ESQR (FNC127) instruction obtains the square root in floating point operation.
→ For ESQR (FNC127) instruction, refer to Section 18.15.
Mnemonic Operation Condition P FNC 48
SQR D
Continuous Operation Pulse (Single) Operation
9 steps Continuous Operation Pulse (Single) Operation
SQRP
DSQRP
2. Set data
Operand type Description Data type
Word device number storing data whose square root is obtained 16- or 32-bit binary
Data register number storing the square root operation result 16- or 32-bit binary
: K0 to K32767 in 16-bit operation, K0 to K2,147,483,647 in 32-bit operation
Bit Devices Word Devices Others
System User Digit Specification System User Special
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
FNC70-FNC79 External FX I/O Device
3
3
FNC80-FNC89 External FX Device
The square root of the data stored in is calculated, and stored to .
SQR S D S D
FNC100-FNC109 Data Transfer 2
The square root of the data stored in [ +1, ] is calculated, and stored to [ +1, ].
D1 S D1 S D1 D D1 D Command
DSQR S D S D S → + 1, D
1. Operation result
FNC140-FNC149 Data Operation 2
The square root of D10 is stored to D12. The value of D10 is "100".
D 10 → D 12 FNC 48
SQR D 10 D 12
100 → 10 =

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
12 Data Operation – FNC 40 to FNC 49
12.10 FNC 49 – FLT / Conversion to Floating Point
This instruction converts a binary integer into a binary floating point (real number).

Operand type Description Data type
Data register number storing binary integer 16- or 32-bit binary
Data register number storing binary floating point (real number) Real number (binary)

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
S1: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S2: This function is supported only in FX3U/FX3UC PLCs.
1. 16-bit operation (FLT and FLTP)
The binary integer data of is converted into binary floating point (real number), and stored to [ +1, ].

D1 S D1 D D1 D
The binary integer data of [ +1, ] is converted into binary floating point (real number), and stored to

DFLT S D ( + 1, ) → ( +1, ) S S D D
INT (FNC129) Inverse of the FLT instruction, converts binary floating point into binary integer.
Instruction Description

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
12 Data Operation – FNC 40 to FNC 49

(D0) ÷ (X017 to X010) 16-bit binary 2-digit BCD
(D0) → (D21, D20) BIN Binary floating point operation
(D22) → (D25, D24) BIN Binary floating point operation
DEDIV K345 K10 D26 (4) K345 ÷ K 10 → (D27, D26)
(D29, D28) × (D27, D26) → (D11, D10) Binary floating point multiplication

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
13 High-Speed Processing – FNC 50 to FNC 59
FNC 50 to FNC 59 provide interrupt processing type high-speed instructions that execute sequence control using the latest I/O information and utilize the high-speed processing performance of the PLC.


FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
13 High-Speed Processing – FNC 50 to FNC 59
13.1 FNC 50 – REF / Refresh
FNC30-FNC39 Rotation and Shift
This instruction immediately outputs the latest input (X) information or the current output (Y) operation result in the middle of a sequence program.
P FNC 50
Mnemonic Operation Condition 16-bit Instruction
Continuous Operation Pulse (Single) Operation
2. Set data
Operand Type Description Data Type
Head bit device (X or Y) number to be refreshed Bit
n Number of bit devices to be refreshed 16-bit binary
Bit Devices Word Devices Others
System User Digit Specification System User Special
Unit Index Constant Real Number
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
FNC70-FNC79 External FX I/O Device
n S3 S3
S1: X000, X010 or X020: Up to the final input number (whose least significant digit number is "0") S2: Y000, Y010 or Y020: Up to the final output number (whose least significant digit number is "0") S3: FX3S PLC: K8 (H8) or K16 (H10) FX3G/FX3GC PLCs: K8 (H8) or K16 (H10): Up to K128 (H80) (which is a multiple of 8) FX3U/FX3UC PLCs: K8 (H8) or K16 (H10): Up to K256 (H100) (which is a multiple of 8)
FNC80-FNC89 External FX Device
FNC100-FNC109 Data Transfer 2
FNC140-FNC149 Data Operation 2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
13 High-Speed Processing – FNC 50 to FNC 59
13.1 FNC 50 – REF / Refresh
1. 16-bit operation (REF and REFP)

"n" points are refreshed from the output specified in . ("n" must be a multiple of 8.)
- When this instruction is executed, the output latch memory is refreshed to the output status in the specified range.


"n" points are refreshed from the input specified in . ("n" must be a multiple of 8.)
- If the input information is turned ON approximately 10 ms (response delay time of the input filter) before the instruction is executed, the input image memory turns ON when the instruction is executed.
- In X000 to X017*1, the response delay time of the input filter can be changed.
*1. X000 to X007 in the FX3G/FX3GC.
→ For details, refer to "13.1.1 What should be understood before using the REF instruction".

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
13 High-Speed Processing – FNC 50 to FNC 59


FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
13 High-Speed Processing – FNC 50 to FNC 59
13.1 FNC 50 – REF / Refresh
Target range: X000 to X017 (In inputs X020 and later, the input filter value is fixed at 10 ms and cannot be changed.) (The target range is X000 to X007 in the FX3G/FX3GC.)
→ For details, refer to the respective PLC Hardware Edition manual.
- Y000 and Y001: 5 µs or less (load current = 10 mA or more, 5 to 24V DC) - Y002 and higher: 0.2 ms or less (load current = 200 mA, 24V DC) b) FX3G PLC (14-point and 24-point type)
- Y000 and Y001: 5 µs or less (load current = 10 mA or more, 5 to 24V DC) - Y002 and higher: 0.2 ms or less (load current = 200 mA, 24V DC) c) FX3G PLC (40-point and 60-point type)
- Y000, Y001 and Y002: 5 µs or less (load current = 10 mA or more, 5 to 24V DC) - Y003 and higher: 0.2 ms or less (load current = 200 mA, 24V DC) d) FX3GC PLC
- Y000 and Y001: 5 µs or less (load current = 10 mA or more, 5 to 24V DC) - Y002 and higher: 0.2 ms or less (load current = 100 mA, 24V DC) e) FX3U PLC
- Y000, Y001 and Y002: 5 µs or less (load current = 10 mA or more, 5 to 24V DC) - Y003 and higher: 0.2 ms or less (load current = 200 mA, 24V DC) f) FX3UC(D, DSS) PLCs - Y000, Y001 and Y002: 5 µs or less (load current = 10 mA or more, 5 to 24V DC) - Y003 and higher: 0.2 ms or less (load current = 100 mA, 24V DC) g) FX3UC -32MT-LT(-2) PLC
- Y000, Y001, Y002 and Y003: 5 µs or less (load current = 10 mA or more, 5 to 24V DC) - Y004 and higher: 0.2 ms or less (load current = 100 mA, 24V DC)

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
13 High-Speed Processing – FNC 50 to FNC 59
13.2 FNC 51 – REFF / Refresh and Filter Adjust
FNC30-FNC39 Rotation and Shift
The digital input filter time of the inputs X000 to X017 can be changed using this instruction or D8020. Using this instruction, the status of inputs X000 to X017 can be refreshed at an arbitrary step in the program for the specified input filter time, and then transferred to the image memory.
P FNC 51
Mnemonic Operation Condition 16-bit Instruction
Continuous Operation Pulse (Single) Operation
2. Set data
Operand Type Description Data Type
n Digital input filter time [K0 to K60 (H0 to H3C) × 1 ms] 16-bit binary
Bit Devices Word Devices Others
System User Digit Specification System User Special
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
n 3 3 S S
FNC70-FNC79 External FX I/O Device
FNC80-FNC89 External FX Device
K0 to K60 (Filter constant from 0 to 60 ms)
FNC100-FNC109 Data Transfer 2
FNC140-FNC149 Data Operation 2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
13 High-Speed Processing – FNC 50 to FNC 59
13.2 FNC 51 – REFF / Refresh and Filter Adjust

Input number Input filter value when set to "0"
*1. When setting the input filter time to "5 µs", perform the following actions: - Make sure that the wiring length is 5 m or less. - Connect a bleeder resistor of 1.5 kΩ (1 W or more) to the input terminal, and make sure that the load current in the open collector transistor output of the external equipment is 20 mA or more including the input current of the main unit.
*2. The filter time is fixed to 10 ms for X010 to X017 in 16-point type FX3U PLCs and 16-point type FX3UC PLCs.
1. Relationship between the program and the filter time

When X010 is ON The image memory of X000 to X017 is refreshed with an input filter of 1 ms.
The image memory of X000 to X017 is refreshed with an input filter of 20 ms.
The image memory is refreshed with the input filter value set in D8020.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
13 High-Speed Processing – FNC 50 to FNC 59
FNC30-FNC39 Rotation and Shift
Generally, a C-R filter of approximately 10 ms is provided for inputs in PLCs as countermeasures against chattering and noise at the input contacts. A digital filter is provided for the inputs X000 to X017 in FX3U/FX3UC PLC. The digital filter value can be changed ranging from 0 to 60 ms using applied instructions.
The input filter initial value (10 ms) for X000 to X017 is set in special data register D8020. By changing this value using the MOV instruction, etc., the input filter value for X000 to X017 which is used during execution of the END instruction can be changed.
When the command is ON
When the END instruction is executed
C-R filter Fixed to 10 ms
*1. This function is supported only in DC input type.
2. Instruction in which the digital filter is automatically changed Regardless of the change in the filter time executed by the REFF instruction, when the following functions and instruction are executed, the input filter value is automatically changed (to 5 µs in X000 to X005 and 50 µs in X006 and X007). However, if the digital filter is used in any other functions or instructions than the ones listed, the digital filter uses the time set in D8020. As a result, the program will not run correctly if the ON or OFF duration of the corresponding input signal is less than the input filter time.
FNC70-FNC79 External FX I/O Device
FNC80-FNC89 External FX Device
FNC100-FNC109 Data Transfer 2
FNC140-FNC149 Data Operation 2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
13 High-Speed Processing – FNC 50 to FNC 59
13.3 FNC 52 – MTR / Input Matrix
This instruction reads matrix input as 8-point input × "n"-point output (transistor) in the time division method.
Mnemonic Operation Condition 32-bit Instruction
Continuous Operation −
2. Set data
Operand Type Description Data Type
Input device (X) number of matrix signal input X000, X010, X020 … final input device number (Only "0" is allowed in the least significant digit of device numbers.)
Head device (Y) number of matrix signal output Y000, Y010, Y020 … final output device number (Only "0" is allowed in the least significant digit of device numbers.)
Head bit device (Y, M or S) number of ON output destination Y000, Y010, Y020 … final Y number, M000, M010, M020 … final M number or S000, S010, S020 … final S number (Only "0" is allowed in the least significant digit of device numbers.)
n Number of columns in matrix input (K2 to K8 or H2 to H8) 16-bit binary

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
1. 16-bit operation (MTR)
An input signal of 8 points × "n" columns is controlled in the time division method using 8 inputs and "n"
transistor outputs . Each column is read in turn, and then output to .


FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
13 High-Speed Processing – FNC 50 to FNC 59
The figure below shows an example of the FX3U series main unit (sink input/sink output). For wiring details, refer to the Hardware Edition of each PLC.
FNC30-FNC39 Rotation and Shift
Diode 0.1A(50V) 2nd column
1st column input is received.
2nd column input is received.
S S S S S S S S
Input (X) [sink] Output (Y) [sink]
COM +1 +2 +3 +4 +5 +6 +7
D1 D1 D1 D1 D1 D1 D1 D1
are occupied.
FNC70-FNC79 External FX I/O Device
M8029 Instruction execution complete Turns ON after the first cycle operation.
FNC80-FNC89 External FX Device
When specifying the output in , make sure that "n" output numbers specified in does not overlap the
output specified in .
FNC100-FNC109 Data Transfer 2
FNC140-FNC149 Data Operation 2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
13 High-Speed Processing – FNC 50 to FNC 59
13.3 FNC 52 – MTR / Input Matrix
n=Three outputs (Y020, Y021 and Y022) are set to ON in turn repeatedly. Every time an output is set to ON, eight inputs in the 1st, 2nd and 3rd columns are received in turn repeatedly, and stored to M30 to M37, M40 to M47 and M50 to M57 respectively. In this program example, the FX3U series main unit (sink input/sink output) is used. For wiring details, refer to the Hardware Edition of each PLC.


FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
13 High-Speed Processing – FNC 50 to FNC 59
FNC30-FNC39 Rotation and Shift
M{{ (normally Open) FNC 52
2. Input numbers used in the MTR instruction
The receiving speed is higher. Because the output transistor recovery time is long and the input sensitivity is high, however, erroneous input pulses may be counted. To prevent erroneous input pulses, connect pull-up resistors (3.3 kΩ/0.5 W) to transistor outputs used in MTR instruction. For pull-up resistors, use the power supply shown in the table below.
Power supply used for pull-up resistors transistor output
AC power type PLC Service power supply
DC power type PLC Power supply for driving PLC
The figure below shows an example of the FX3U Series main unit (sink input/sink output).
FNC70-FNC79 External FX I/O Device
Refer to the previous page. 24V S/S
0V X000 X001 X002 X003 X004 X005 X006 X007
FNC80-FNC89 External FX Device
COM5 Y020 Y021 Y022 Y023 Y024 Y025 Y026 Y027
3.3k /0.5W
FNC100-FNC109 Data Transfer 2
*1. X000 to X007 in the FX3G/FX3GC.
When inputs X000 to X017*2 are used
When inputs X020*3 or later are used
FNC140-FNC149 Data Operation 2
80 ms 80 ms
160 ms 160 ms
*2. X000 to X007 in the FX3G/FX3GC.
*3. X010 and later in the FX3G/FX3GC.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
13 High-Speed Processing – FNC 50 to FNC 59
13.4 FNC 53 – HSCS / High-Speed Counter Set
This instruction compares a value counted by a high-speed counter with a specified value, and immediately sets an external output (Y) if the two values are equivalent each other.
→ For the counter interrupt using HSCS instruction, refer to Section 36.6.
16-bit Instruction Mnemonic Operation Condition
Mnemonic Operation Condition 32-bit Instruction
13 steps DHSCS Continuous Operation
2. Set data

Data to be compared with the current data value of a high-speed counter or word device number. 32-bit binary
Device number of a high-speed counter [C235 to C255] 32-bit binary
Bit device number to be set to ON when the compared two values are equivalent to each other Bit

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 S2 S3
S1: "D .b" is available only in FX3U and FX3UC PLCs. However, index modifiers (V and Z) are not available. S2: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S3: This function is supported only in FX3U/FX3UC PLCs. S4: When using the counter interrupt function in FX3U/FX3UC PLCs, specify an interrupt pointer.
→ For counter interrupt using HSCS instruction, refer to Section 36.6.
1. 32-bit operation (DHSCS)
When the current value of a high-speed counter (C235 to C255) specified in becomes the comparison value
[ +1, ] (for example, when the current value changes from "199" to "200" or from "201" to "200" if the
comparison value is K200), the bit device is set to ON regardless of the operation cycle. This instruction is executed after the counting processing in the high-speed counter.

D S1 S2 D S2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
13 High-Speed Processing – FNC 50 to FNC 59
Operation When the current value of the high-speed counter C255 changes from "99" to "100" or from "101" to "100", Y010 is set to ON (output refresh).
FNC30-FNC39 Rotation and Shift
C255 K2,147,483,647
Set to ON.
FNC 53 DHSCS K100 C255 Y010 = K100 C255 Y010 →
The following instructions can be combined with high-speed counters:
Instruction FNC No. Instruction name
DHSCS FNC 53 High-speed counter set
DHSCR FNC 54 High-speed counter reset
DHSZ FNC 55 High-speed counter zone compare
DHCMOV FNC189 High-speed counter move
DHSCT FNC280 High-speed counter compare with data table
1. Selection of the count comparison method
1) FX3U/FX3UC PLC When the HSCS instruction is used in FX3U/FX3UC PLCs, hardware counters (C235, C236, C237, C238, C239, C240, C244 (OP), C245 (OP), C246, C248 (OP), C251 and C253) are automatically switched to software counters, and the maximum frequency and total frequency of each counter are affected. Refer to the counting operation described below, and select according to the contents of control whether to use HSCS instruction or general-purpose comparison instruction. a) Case to select DHSCS instruction
FNC70-FNC79 External FX I/O Device
- When the output should be given when the counting result becomes equivalent to the comparison value regardless of the scan time of the PLC b) Cases to select a general-purpose comparison instruction
FNC80-FNC89 External FX Device
- When the frequency is beyond the counting performance of software counters (and below the counting performance of hardware counters) - When counting is regarded as important, but the effect of the scan time can be ignored in operations according to the counting result - When one instruction is executed in 33 or more positions at the same time
FNC100-FNC109 Data Transfer 2
LDD<= K100 D100
REF Y010 K8
FNC140-FNC149 Data Operation 2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
13 High-Speed Processing – FNC 50 to FNC 59
13.4 FNC 53 – HSCS / High-Speed Counter Set
- When the output should be given if the counting result becomes equivalent to the comparison value regardless of the scan time of the PLC b) Cases to select a general-purpose comparison instruction
- When counting is regarded as important, but the effect of the scan time can be ignored in operations according to the counting result - When one instruction is executed in 7 or more positions at the same time

Only high-speed counters (C235 to C255) can be specified as .
→ For details, refer to "6. Priority order in operations among HSCS (FNC 53), HSCR (FNC 54), and HSZ (FNC
With regard to the current value of a counter, different outputs (Y) are arbitrary set to ON by two values.

FNC 53 DHSCS K100 C255 Y010 C255 = K100 → Y010 = ON
FNC 53 DHSCS K150 C255 Y011 C255 = K150 → Y011 = ON
0 … 99 100 101 … 149 150 151

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
13 High-Speed Processing – FNC 50 to FNC 59
FNC30-FNC39 Rotation and Shift
DHSCS (FNC 53), DHSCR (FNC 54), DHSZ (FNC 55) and DHSCT (FNC280) instructions are provided for high-speed counters. This section explains common cautions for these instructions.
Instruction Limitation in number of instructions driven at same time
32 instructions including DHSCT instruction DHSCR
DHSCT Only 1 (This instruction can only be used once.)
Instruction Limitation in number of instructions driven at same time
DHSZ
FNC70-FNC79 External FX I/O Device
→ For the total frequency in FX3S/FX3G/FX3GC PLCs, refer to Subsection 4.7.7. → For the maximum response frequency and total frequency in FX3U/FX3UC PLCs, refer to Subsection 4.8.10.
FNC80-FNC89 External FX Device
FNC100-FNC109 Data Transfer 2
FNC 53 DHSCS K100 C255 Y010
When C255 reaches K100, the output Y000 is driven by interrupt. Y010 is driven when END processing is executed. If interrupt drive is required, use an output number ranging from Y001 to Y007 whose high-order two digits are equivalent.
FNC140-FNC149 Data Operation 2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
13 High-Speed Processing – FNC 50 to FNC 59
13.4 FNC 53 – HSCS / High-Speed Counter Set
If an instruction for the high-speed counter is used while M8025*1 is driven, the instruction is executed again when the current value of the high-speed counter C241 is cleared by an external reset terminal. And the comparison result is output even if a counting input is not given.
M8025 *1 External reset mode
External reset terminal for C241
FNC 54 DHSCR K0 C241 Y000
*1. M8025 is cleared when the PLC mode is changed from RUN to STOP. It is not necessary to drive M8025 in FX3S/FX3G/FX3GC PLCs.
RUN monitor X001

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
13 High-Speed Processing – FNC 50 to FNC 59
FNC30-FNC39 Rotation and Shift
1) FX3U/FX3UC PLCs When the same comparison value is used for the same high-speed counter in the HSCS, HSCR and HSZ instructions, reset (self-reset) of the comparison target high-speed counter for the HSCR instruction is executed with the highest priority (as shown in the table below). In this case, the comparison results do not change in HSCS, HSCR, and HSZ instructions whose comparison value is programmed to be the same as the comparison value for self-reset by HSCR instruction. To change the comparison results, set the comparison value to "K0". 2) FX3S/FX3G/FX3GC PLCs In FX3S/FX3G/FX3GC PLCs, the HSCS, HSCR and HSZ instructions are executed in the order of programming.
C235 K10000
FX 3S / FX 3G /FX 3GC /
FX 3U /FX 3UC
FX 1N /FX 1NC /
FX 1S
FX 2N /FX 2NC
FNC 53 DHSCS K500 C235 Y000
DHSCS (1) DHSCR (6) (self-reset) DHSCS (1) DHSCS (1)
DHSCS (2) DHSZ (4) DHSCS (2) DHSCS (2)
K500 C235 Y001
DHSCR (3) DHSCS (1) DHSCR (3) DHSCR (3)
DHSZ (4) DHSCS (2) DHSZ (4) (Not supported)
DHSCR (5) DHSCR (3) DHSCR (5) DHSCR (5)
K500 C235 Y002
DHSCR (6) (self-reset) DHSCR (5) DHSCR (6) (self-reset)
DHSZ K250 K500 C235
Y003
K250 K500 C235 FNC 11 DZCPP
FNC70-FNC79 External FX I/O Device
M8000
(5) FNC 54 DHSCR K500 C235
Y006
K500 C235 FNC 54 DHSCR
FNC80-FNC89 External FX Device
Operation of FX3S/FX3G/FX3GC/ FX1S/FX1N/FX1NC/FX2N/FX2NC PLCs [reference]
FNC100-FNC109 Data Transfer 2
Y000 to Y002 and Y006 do not change.*1
ON
Y003
ON ON
Y002
OFF
Present value:1
OFF
Y003
ON ON
OFF It does not change.*2
Y004
ON
*1. To change the comparison results by the instructions (1) to (3) and (5), change the comparison value "K500" in the instructions (1) to (3) and (5) to "K0". *2. To set Y005 to ON in the HSZ instruction (4), set a value smaller than the comparison value "K500". However, due to the response delay at the output, the output may not operate within the short time before the counter's present value is reset to "0".
Present value:1
FNC140-FNC149 Data Operation 2
*3. Due to the response delay at the output, the output may not operate within the short time before the counter's present value is reset to "0".

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
13 High-Speed Processing – FNC 50 to FNC 59
13.5 FNC 54 – HSCR / High-Speed Counter Reset
This instruction compares the value counted by a high-speed counter with a specified value at each count, and immediately resets an external output (Y) when both values become equivalent to each other.
16-bit Instruction Mnemonic Operation Condition
Mnemonic Operation Condition 32-bit Instruction
−
13 steps DHSCR Continuous Operation

Data to be compared with the current value of a high-speed counter or word device number storing the data to be compared 32-bit binary
Device number of a high-speed counter [C235 to C255] 32-bit binary
Bit device number to be reset (set to OFF) when both values become equivalent each other. Bit

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 S3 S4 3
S1: "D .b" is available only in FX3U and FX3UC PLCs. However, index modifiers (V and Z) are not available.
S2: The same counter as can be specified also. (Refer to the program example shown later.) S3: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S4: This function is supported only in FX3U/FX3UC PLCs.
1. 32-bit operation (DHSCR)
When the current value of a high-speed counter (C235 to C255) specified in becomes the comparison value
[ +1, ] (for example, when the current value changes from "199" to "200" or from "201" to "200" if the
comparison value is K200), the bit device is reset (set to OFF) regardless of the operation cycle. In this instruction, the comparison processing is executed after the counting processing in the high-speed counter.

Operation When the present value of the high-speed counter C255 changes (counts) from "99" to "100" or from "101" to "100", Y010 is reset (output refresh).


FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
13 High-Speed Processing – FNC 50 to FNC 59
FNC30-FNC39 Rotation and Shift
The following instructions can be combined with high-speed counters:
Instruction FNC No. Instruction name
DHSCS FNC 53 High-speed counter set
DHSCR FNC 54 High-speed counter reset
DHSZ FNC 55 High-speed counter zone compare
DHCMOV FNC189 High-speed counter move
DHSCT FNC280 High-speed counter compare with data table
1. Selection of the count comparison method
1) FX3U/FX3UC PLCs When the HSCR instruction is used in FX3U/FX3UC PLCs, hardware counters (C235, C236, C237, C238, C239, C240, C244 (OP), C245 (OP), C246, C248 (OP), C251 and C253) are automatically switched to software counters, and the maximum frequency and total frequency of each counter are affected. Refer to the counting operation described below, and select according to the contents of control whether to use HSCR instruction or general-purpose comparison instruction. a) Case to select DHSCR instruction
- When the output should be given when the counting result becomes equivalent to the comparison value regardless of the scan time of the PLC b) Cases to select a general-purpose comparison instruction
- When the frequency is beyond the counting performance of software counters (and below the counting performance of hardware counters) - When counting is important, but the effect of the scan time can be ignored in operations depending on the counting result - When one instruction is executed in 33 or more positions at the same time
FNC70-FNC79 External FX I/O Device
RST Y010 FNC229
LDD<= K10000 D100
FNC80-FNC89 External FX Device
REF Y010 K8
FNC100-FNC109 Data Transfer 2
- When the output should be given if the counting result becomes equivalent to the comparison value regardless of the scan time of the PLC b) Cases to select a general-purpose comparison instruction
- When counting is regarded as important, but the effect of the scan time can be ignored in operations according to the counting result - When one instruction is executed in 7 or more positions at the same time
M8000
FNC140-FNC149 Data Operation 2
REF

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
13 High-Speed Processing – FNC 50 to FNC 59
13.5 FNC 54 – HSCR / High-Speed Counter Reset
→ For details, refer to "6. Priority order in operations among HSCS (FNC 53), HSCR (FNC 54), and HSZ (FNC
in Subsection 13.4.1.
Reset value of DHSCR
C255 K300
FNC 54 DHSCR K400 C255 C255
Current value of C255
Output contact of C255

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
13 High-Speed Processing – FNC 50 to FNC 59
13.6 FNC 55 – HSZ / High-Speed Counter Zone Compare
FNC30-FNC39 Rotation and Shift
This instruction compares the current value of a high-speed counter with two values (one zone), and outputs the comparison result to three bit devices (refresh).
→ For the table high-speed comparison mode, refer to Subsection 13.6.2.
→ For the frequency control mode, refer to Subsection 13.6.3.
16-bit Instruction Mnemonic Operation Condition
Mnemonic Operation Condition 32-bit Instruction
17 steps DHSZ Continuous Operation
2. Set data
Operand Type Description Data Type
Data to be compared with the current value of a high-speed counter or word device number storing data to be compared (comparison value 1) 32-bit binary
Data to be compared with the current value of a high-speed counter or word device number storing data to be compared (comparison value 2) 32-bit binary
Device number of a high-speed counter [C235 to C255] 32-bit binary
Head bit device number to which the comparison result is output based on upper and lower comparison values Bit
FNC70-FNC79 External FX I/O Device
Bit Devices Word Devices Others
System User Digit Specification System User Special
Unit Index Constant Real Number
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 S2 S3
FNC80-FNC89 External FX Device
3 S2 S3
S1: "D .b" is available only in FX3U and FX3UC PLCs. However, index modifiers (V and Z) are not available. S2: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S3: This function is supported only in FX3U/FX3UC PLCs.
FNC100-FNC109 Data Transfer 2
1. 32-bit operation (DHSZ)
The current value of a high-speed counter (C235 to C255) specified in is compared with two comparison points (comparison value 1 and comparison value 2). Based on the comparison result, "smaller than the lower comparison
value", "inside the comparison zone" or "larger than the upper comparison value", one among , +1 and
+2 is set to ON regardless of the operation cycle. In this instruction, the comparison processing is executed after the count processing in the high-speed counter.
FNC140-FNC149 Data Operation 2
Set to ON. Comparison
S1 D S2 S S
S 1 S

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
13 High-Speed Processing – FNC 50 to FNC 59
13.6 FNC 55 – HSZ / High-Speed Counter Zone Compare
Comparison points Make sure that the comparison value 1 and the comparison value 2 have the following relationship:
[ +1, ] ≤ [ +1, ]
Comparison point Contents (32 bits)
Comparison value 1 +1,
Comparison value 2 +1,
Operation When the current value of the high-speed counter C251 changes (counts) as shown below, the comparison result is output to one of the outputs Y000, Y001 or Y002.

999 → 1000 ON → OFF OFF → ON OFF
999 ← 1000 OFF → ON ON → OFF OFF
999 → 1000 ON → OFF OFF → ON OFF
999 ← 1000 OFF → ON ON → OFF OFF
2000 → 2001 OFF ON → OFF OFF → ON
2000 ← 2001 OFF OFF → ON ON → OFF
2000 → 2001 OFF ON → OFF OFF → ON
2000 ← 2001 OFF OFF → ON ON → OFF
The following instructions can be combined with high-speed counters:


FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
13 High-Speed Processing – FNC 50 to FNC 59
FNC30-FNC39 Rotation and Shift
1) FX3U/FX3UC PLCs When the HSZ instruction is used in FX3U/FX3UC PLCs, hardware counters (C235, C236, C237, C238, C239, C240, C244 (OP), C245 (OP), C246, C248 (OP), C251 and C253) are automatically switched to software counters, and the maximum frequency and total frequency of each counter are affected. Refer to the counting operation described below, and select according to the contents of control whether to use the DHSZ instruction or general-purpose comparison instruction. a) Case to select the DHSZ instruction
- When the output should be given when the counting result becomes equivalent to the comparison value regardless of the scan time of the PLC b) Cases to select a general-purpose comparison instruction
- When the frequency is beyond the counting performance of software counters (and below the counting performance of hardware counters) - When counting is important, but the effect of the scan time can be ignored in operations depending on the counting result - When one instruction is executed in 33 or more positions at the same time
K0
LDD > K10000 D100
Y010
LDD = K20000 D100
LDD < K20000 D100
FNC70-FNC79 External FX I/O Device
M8000 FNC 50
REF Y010 K8
FNC80-FNC89 External FX Device
- When the output should be given if the counting result becomes equivalent to the comparison value regardless of the scan time of the PLC b) Cases to select a general-purpose comparison instruction
FNC100-FNC109 Data Transfer 2
- When counting is regarded as important, but the effect of the scan time can be ignored in operations according to the counting result - When one instruction is executed in 7 or more positions at the same time
Y010
LDD>
FNC238 ANDD>=
K10000
K20000
Y011
LDD<=
K20000
Y012
LDD<
FNC140-FNC149 Data Operation 2
Y010 K8 FNC 50
REF

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
13 High-Speed Processing – FNC 50 to FNC 59
13.6 FNC 55 – HSZ / High-Speed Counter Zone Compare
Only high-speed counters (C235 to C255) can be specified as .
Make sure that is smaller than or equivalent to .
5. Relationship between the comparison timing and the result output
(When is "1000" and is "1999", the output is set to ON as soon as the current value of C235 changes from "999" to "1000" or from "1999" to "2000".)
→ For details, refer to "13.6.1. Program in which comparison result is set to ON when power is turned ON
[ZCP (FNC 11) instruction]".
→ For details, refer to "6. Priority order in operations among HSCS (FNC 53), HSCR (FNC 54), and HSZ (FNC
in Subsection 13.4.1.
9. When an output (Y) is specified in (FX3G/FX3GC/FX3U/FX3UC) When Y 6 or Y 7 is specified as an output (Y), the refresh timing of the three outputs (Y) occupied by the DHSZ instruction is different for each output. To make the refresh timing of three points simultaneous, specify Y 0 to Y 5. Example: When Y006 is specified as an output (Y), the refresh timing is different between Y006, Y007 and Y010.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
13 High-Speed Processing – FNC 50 to FNC 59
13.6.1 Program in which comparison result is set to ON when power is turned ON [ZCP (FNC 11) instruction]
FNC30-FNC39 Rotation and Shift
DHSZ instruction outputs the comparison result only when a counting pulse is input. Even if the current value of C235 is "0", Y010 remains OFF at the time of startup. For initializing Y010, compare the current value of C235 with K1000 and K1200 and drive Y010 by DZCPP instruction (for general zone comparison) as pulse operation only at the time of startup. Refer to the program example shown below.
The outputs Y010 to Y012 are as shown below:
Y010 = ON Y011 = ON Y012 = ON
1000 1200 Current value of C235 0
ZRST Y010 Y012 Y010 to Y012 are reset.
FNC70-FNC79 External FX I/O Device
Immediately after start, comparison is executed only once. K1000 > C235 :Y010 ON K1000 ≤ C235 ≤ K1200 :Y011 ON K1200 < C235 :Y012 ON
S1 D S2 S
After start, comparison is executed when each pulse is input from X000. K1000 > C235 :Y010 ON K1000 ≤ C235 ≤ K1200 :Y011 ON K1200 < C235 :Y012 ON
FNC80-FNC89 External FX Device
FNC100-FNC109 Data Transfer 2
FNC140-FNC149 Data Operation 2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
13 High-Speed Processing – FNC 50 to FNC 59
13.6 FNC 55 – HSZ / High-Speed Counter Zone Compare
In the part [1] in the timing chart, Y010 remains OFF if the current value of a high-speed counter (C235 in the example below) is "0" when restoring the power.


FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
13 High-Speed Processing – FNC 50 to FNC 59
FNC30-FNC39 Rotation and Shift
This section explains the table high-speed comparison mode (high-speed pattern output) of the DHSZ instruction. When two or more outputs should be activated at one time, use the HSCT instruction which can change up to 16 outputs.
Operand Type Description Data Type
Head word device number storing the data table (only data register D) 32-bit binary
Number of lines in the table (only K or H) … K1 to K128 or H1 to H80 32-bit binary
Device number of a high-speed counter [C235 to C255] 32-bit binary
M8130 (special auxiliary relay for declaring the table high-speed comparison mode) Bit
1. 32-bit operation (DHSZ)
When the special auxiliary relay M8130 for declaring the table high-speed comparison mode is specified as in the DHSZ instruction, the special function shown below is provided.
FNC70-FNC79 External FX I/O Device
S 1 S 2 S
Table high-speed comparison mode
FNC80-FNC89 External FX Device
Comparison data (32 bits) Output (Y) number SET/RST Table counter (D8130)
+ 1, + 2 + 3
+ 5, + 4 + 6 + 7
+ 9, + 8 + 10 + 11
FNC100-FNC109 Data Transfer 2
+ [ × 4 - 3], + [ × 4 - 4] + [ × 4 - 2] +[ × 4 - 1] − 1 ↓ Repeated from "0".
S1 S2 S1 S2 S1 S2 S1 S2 S2
Because one line in the comparison table uses four devices, × 4 devices are occupied from .
The created table starts from the head register , and has the number of lines specified in .
FNC140-FNC149 Data Operation 2
When specifying Y020, specify "H20".

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
13 High-Speed Processing – FNC 50 to FNC 59
13.6 FNC 55 – HSZ / High-Speed Counter Zone Compare

Output is set or reset. K1: Output is set.
Output is set or reset. K0: Output is reset.
Output is set or reset. K1: Output is set.
Output is set or reset. K0: Output is reset.
Output is set or reset. K1: Output is set.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
13 High-Speed Processing – FNC 50 to FNC 59
FNC30-FNC39 Rotation and Shift
Present value of C251
number SET/RST Table counter
A program to reset the counter is required.
H10
K1
D205,D204
K234
H10
K0
D209,D208
K345
H11
K1
D213,D212
K456
H11
K0
4 ↓ Repeated from "0".
K567
H11
K1
A program to reset the output is required.
FNC70-FNC79 External FX I/O Device
FNC80-FNC89 External FX Device
FNC100-FNC109 Data Transfer 2
FNC140-FNC149 Data Operation 2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
13 High-Speed Processing – FNC 50 to FNC 59
13.6 FNC 55 – HSZ / High-Speed Counter Zone Compare

When the special auxiliary relay M8132 for declaring the frequency control mode is specified as in the DHSZ instruction, the special function shown below is provided if DPLSY instruction is combined.
At this time, only a data register D can be specified as , and a constant K or H can be specified as . The available range is limited to "1 ≤ K, H ≤ 128".
A high-speed counter C235 to C255 can be specified as . This function is different from the zone comparison described above. PLSY instruction is as shown on the next page, and only the pulse output can be changed by users.


Head device (32 bits) specified as S1

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
13 High-Speed Processing – FNC 50 to FNC 59


FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
13 High-Speed Processing – FNC 50 to FNC 59
13.6 FNC 55 – HSZ / High-Speed Counter Zone Compare

speed counter specified in becomes equivalent to (D301, D300). (D302 specifies low-order 16 bits. D303 specifies high-order 16 bits, but is always "0".)
Data can be written to the table in a program as shown in this example or directly using keys in peripheral equipment.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
13 High-Speed Processing – FNC 50 to FNC 59
13.7 FNC 56 – SPD / Speed Detection
FNC30-FNC39 Rotation and Shift
This instruction counts the input pulse for a specified period of time as interrupt input. The function of this instruction varies depending on the version.
16-bit Instruction Mnemonic Operation Condition FNC 56
Mnemonic Operation Condition 32-bit Instruction
13 steps DSPD Continuous Operation 7 steps SPD Continuous Operation
Operand Type Description Data Type
Device number of pulse input (X) Bit
Time data (ms) or word device number storing the data 16- or 32-bit binary
Head word device number storing the pulse density data 16- or 32-bit binary
Bit Devices Word Devices Others
System User Digit Specification System User Special
Unit Index Constant Real Number
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
FNC70-FNC79 External FX I/O Device
3 S2 S3
S1: Specify X000 to X007 in FX3G/FX3GC/FX3U/FX3UC PLCs.
Specify X000 to X005 in FX3S PLC. S2: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S3: This function is supported only in FX3U/FX3UC PLCs.
FNC80-FNC89 External FX Device
FNC100-FNC109 Data Transfer 2
FNC140-FNC149 Data Operation 2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
13 High-Speed Processing – FNC 50 to FNC 59
13.7 FNC 56 – SPD / Speed Detection
1. 16-bit operation (SPD)
The input pulse is counted only for × 1 ms. The measured value is stored in , the present value is
stored in +1, and the remaining time is stored in +2 (ms).
By repeating this operation, the measured value will store the pulse density (which is proportional to the rotation speed).
SPD S1 D S2

D + 1 counts "OFF → ON" operation of .
ms later, the counting result is stored to .
then counting of the "OFF → ON" operation of is
+ 2 is used to measure the remaining time. D
t: Measurement time duration specified as (ms) S2
Command · input

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
13 High-Speed Processing – FNC 50 to FNC 59

The input pulse is counted only for [ +1, ] x 1 ms. The measured value is stored in [ +1,
], the present value is stored in [ +3, +2], and the remaining time is stored in [ +5, +4] (ms).
By repeating this operation, the measured value [ +1, ] will store the pulse density (which is proportional to the rotation speed).
DSPD S1 D S2
of . [ +1, ] ms later, the counting result is
reset, and then counting of the "OFF → ON" operation of
[ +1, ] S2 S2 ms [ +1, ] S2 S2
[ +5, +4] is used to measure the remaining
[ +1, ] S2 S2
t: Measurement time duration specified as [ +1, ] (ms)

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
13 High-Speed Processing – FNC 50 to FNC 59
13.7 FNC 56 – SPD / Speed Detection
1. Input specifications of the input
Used input number Maximum input frequency
- FX3G/FX3GC PLCs
Used input number Maximum input frequency
- FX3U/FX3UC PLCs

X000 to X005 100 kHz*1 100 kHz*1 200 kHz X006,X007 10 kHz 10 kHz
*1. When receiving pulses within the response frequency range of 50 k to 100 kHz, perform the following actions: - Make sure that the wiring length is 5 m or less. - Connect a bleeder resistor of 1.5 kΩ (1 W or more) to the input terminal, and make sure that the load current in the open collector transistor output of the external equipment is 20 mA or more.
Three devices are occupied from a device specified in *2.
Six devices are occupied from a device specified in *2.
*2. The value is updated by interrupt processing from the CPU, not every scan time (operation cycle) of the PLC.
- FX3U/FX3UC PLCs The changed value of the word device is reflected on the operation at every scan time (operation cycle). - FX3S/FX3G/FX3GC PLCs The changed value of the word device is not reflected on the operation at every scan time (operation cycle), and the PLC operates using the value specified when execution of the SPD instruction started. The PLC operates using the changed value after the command input of the SPD instruction is turned OFF once and turned ON again.
The function of the FNC 56 instruction varies depending on the PLC version shown in the table below.

Item Outline of function FX3S FX3G FX3GC FX3U FX3UC
or later Addition of 32-bit instruction 32-bit operations (DSPD) are enabled.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
13 High-Speed Processing – FNC 50 to FNC 59
13.8 FNC 57 – PLSY / Pulse Y Output
FNC30-FNC39 Rotation and Shift
This instruction generates a pulse signal.
→ For the frequency control mode, refer to Subsection 13.6.3.
16-bit Instruction Mnemonic Operation Condition
Mnemonic Operation Condition 32-bit Instruction
13 steps DPLSY Continuous Operation 7 steps PLSY Continuous Operation
Operand Type Description Data Type
Output pulse frequency 16- or 32-bit binary
Number of output pulses 16- or 32-bit binary
Device number (Y) from which pulses are output Bit
Bit Devices Word Devices Others
System User Digit Specification System User Special
Unit Index Constant Real Number
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
FNC70-FNC79 External FX I/O Device
3 S2 S3
3 S2 S3
S1: Specify a transistor output on the main unit or Y000 or Y001 on a special high-speed output adapter*1. S2: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S3: This function is supported only in FX3U/FX3UC PLCs. *1. High-speed output special adapters can be connected only to FX3U PLC.
FNC80-FNC89 External FX Device
1. 16-bit operation (PLSY)
FNC100-FNC109 Data Transfer 2
A pulse train of frequency is output in the quantity from the output (Y) .
S1 D S2 D
FNC140-FNC149 Data Operation 2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
13 High-Speed Processing – FNC 50 to FNC 59
13.8 FNC 57 – PLSY / Pulse Y Output
A pulse train at the frequency [ +1, ] is output by the quantity [ +1, ] from the output (Y)

S1 D S2 D
→ For the method to output pulses without any limitation, refer to the program example later.
→ For the instruction execution complete flag use method, refer to Subsection 6.5.2.
M8029 Instruction execution com-
ON: Generation of specified number of pulses is completed. OFF: Generation of pulses is paused before the specified number of pulses is reached or the continuous pulse generation operation is stopped.

M8029 ° Changes by DPSLY instruction corresponding to the command input 2.
Device Name Description · plete

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
13 High-Speed Processing – FNC 50 to FNC 59
FNC30-FNC39 Rotation and Shift
Description Contents of data High order
D8141 D8140 Accumulated number of pulses output from Y000
Accumulated number of pulses output from Y000 by PLSY and PLSR instructions
D8143 D8142 Accumulated number of pulses output from Y001
Accumulated number of pulses output from Y001 by PLSY and PLSR instructions
D8137 D8136 Total accumulated number of pulses output from Y000 and Y001
Total accumulated number of pulses output from Y000 and Y001 by PLSY and PLSR instructions
The contents of each data register can be cleared using the following program:
DMOV K0 Low-order device shown in
Description FX3S/FX3G/FX3GC FX3U/FX3UC
M8145, M8349 M8349 Immediately stops pulse output from Y000.
M8146, M8359 M8359 Immediately stops pulse output from Y001.
FNC70-FNC79 External FX I/O Device
To restart pulse output, set the device (FX3S/FX3G/FX3GC : M8145, M8146, M8349, M8359 FX3U/FX3UC : M8349, M8359) corresponding to the output signal to OFF, and then drive the pulse output instruction again.
FNC80-FNC89 External FX Device
FNC100-FNC109 Data Transfer 2
When using transistor outputs in the main unit, set the output frequency to "100,000 Hz" or less. If the load is operated using pulses at a frequency higher than 100,000 Hz, the PLC may be damaged. Do not set the output frequency to "0".
in . When using the PLSY (FNC 57) instruction with a relay output type or triac output type FX3U PLC, a special high- speed output adapter is required.
*1. High-speed output special adapters can be connected only to FX3U PLC. • The duty cycle of the pulse ON/OFF time is 50 % inside the PLC. However, 50 % may not be output depending on the frequency due to the effect of the output circuit.
FNC140-FNC149 Data Operation 2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
13 High-Speed Processing – FNC 50 to FNC 59
13.8 FNC 57 – PLSY / Pulse Y Output

When the load is smaller, connect a dummy resistor in parallel to the outside of a used output terminal (Y000 or Y001) as shown in the circuit diagram below so that the specified current shown above flows in the output transistor.

= Y000 Y004 While Y004 is ON, pulses are output from Y000 in the high-speed output adapter. While Y004 is OFF, pulses are output from Y004 in the high-speed output adapter.
= Y001 Y005 While Y005 is ON, pulses are output from Y001 in the high-speed output adapter. While Y005 is OFF, pulses are output from Y005 in the high-speed output adapter.

switch Signal name Setting name in each positioning instruction
chain (FP) Pulse output destination Y000 Y001 Y002 Y003
chain (RP) Rotation direction signal Y004 Y005 Y006 Y007
Pulse chain Pulse output destination Y000 Y001 Y002 Y003

While instruction is activated, relevant output is ON. (LED is also ON.) Use a special high-speed adapter.
Special high-speed output adapter Operated. (LED is also operated.) Set the output frequency to "200kHz" or less.
Transistor output type main unit Operated. (LED is ON.) Set the output frequency to "100kHz" or less.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
13 High-Speed Processing – FNC 50 to FNC 59
FNC30-FNC39 Rotation and Shift
Classification Instruction Instruction name Target output numbers
PLSY (FNC 57) Pulse Y output Y000,Y001
PLSR (FNC 59) Acceleration/deceleration setup Y000,Y001
DSZR (FNC150) DOG search zero return Y000,Y001,Y002*1,Y003*2
DVIT (FNC151)*3 Interrupt positioning Y000,Y001,Y002,Y003*2
ZRN (FNC156) Zero return Y000,Y001,Y002*1,Y003*2
PLSV (FNC157) Variable speed pulse output Y000,Y001,Y002*1,Y003*2
DRVI (FNC158) Drive to increment Y000,Y001,Y002*1,Y003*2
DRVA (FNC159) Drive to absolute Y000,Y001,Y002*1,Y003*2
High-speed processing PWM (FNC 58) Pulse width modulation Y000,Y001,Y002*1,Y003*2
*1. Y002 is not available in FX3G PLC (14-point and 24-point type) and FX3S/FX3GC PLCs.
*2. Y003 is available only when two high-speed output special adapters are connected to the FX3U PLC.
*3. This function is supported only in FX3U/FX3UC PLCs.
2) When using the same output relay (Y000 or Y001) in several instructions. While a pulse output monitor (BUSY/READY) flag is ON a pulse output instruction and positioning instruction for the same output relay cannot be executed. While a pulse output monitor flag is ON even after the instruction drive contact is set to OFF, a pulse output instruction or positioning instruction for the same output relay cannot be executed. Before executing such an instruction, wait until the pulse output monitor flag turns OFF and one or more operation cycles pass.
FNC70-FNC79 External FX I/O Device
Pulse output destination device Pulse output monitor flag
Y001 M8350
FNC80-FNC89 External FX Device
When is set to K0, pulses are output without any limitation.
Y000
FNC100-FNC109 Data Transfer 2
FNC140-FNC149 Data Operation 2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
13 High-Speed Processing – FNC 50 to FNC 59
13.9 FNC 58 – PWM / Pulse Width Modulation
This instruction outputs pulses with a specified period and ON duration.
16-bit Instruction Mnemonic Operation Condition FNC 58
Mnemonic Operation Condition 32-bit Instruction
7 steps PWM Continuous Operation
2. Set data

Device number (Y) from which pulses are to be output Bit

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 S2 S3
3 S2 S3
S1: Specify transistor output Y000, Y001, or Y002*1 on the main unit or Y000, Y001, Y002, or Y003 on a special high-
speed output adapter*2. S2: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S3: This function is supported only in FX3U/FX3UC PLCs. *1. Y002 is not available in FX3G PLC (14-point and 24-point type) and FX3S/FX3GC PLCs. *2. High-speed output special adapters can be connected only to FX3U PLC.
1. 16-bit operation (PWM)
Pulses whose ON pulse width is ms are output in periods of ms.

PWM S1 D S2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
13 High-Speed Processing – FNC 50 to FNC 59
FNC30-FNC39 Rotation and Shift
Make sure that the pulse width and period satisfy the relationship " ≤ ".
2. Pulse output
- When using special high-speed output adapters*1: Y000, Y001, Y002*2, or Y003*2
- When transistor outputs in the main unit are used: Y000, Y001, or Y002*3
*1. High-speed output special adapters can be connected only to FX3U PLC. Use a transistor output type PLC.
*2. When specifying Y002 or Y003 on a special high-speed output adapter, a second special high-speed output adapter is required.
*3. Y002 is not available in FX3G PLC (14-point and 24-point type) and FX3S/FX3GC PLCs.
Pulse output destination device Pulse output monitor flag
Y001 M8350
FNC70-FNC79 External FX I/O Device
Y003 M8370
3. Cautions on using special high-speed output adapters
FNC80-FNC89 External FX Device
FNC100-FNC109 Data Transfer 2
= Y000 Y004 While Y004 is ON, pulses are output from Y000 on the high-speed output adapter. While Y004 is OFF, pulses are output from Y004 on the high-speed output adapter.
= Y001 Y005 While Y005 is ON, pulses are output from Y001 on the high-speed output adapter. While Y005 is OFF, pulses are output from Y005 on the high-speed output adapter.
= Y002 Y006 While Y006 is ON, pulses are output from Y002 on the high-speed output adapter. While Y006 is OFF, pulses are output from Y006 on the high-speed output adapter.
= Y003 Y007 While Y007 is ON, pulses are output from Y003 on the high-speed output adapter. While Y007 is OFF, pulses are output from Y007 on the high-speed output adapter.
FNC140-FNC149 Data Operation 2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
13 High-Speed Processing – FNC 50 to FNC 59
13.9 FNC 58 – PWM / Pulse Width Modulation

setting switch Signal name Setting name in each positioning instruction
chain (FP) Pulse output destination Y000 Y001 Y002 Y003
chain (RP) Rotation direction signal Y004 Y005 Y006 Y007
Pulse chain Pulse output destination Y000 Y001 Y002 Y003

Do not use the PWM (FNC 58) instruction with relay-output type main units. (Considerable output response delay may be generated, chattering may occur in contacts, or the contact life may be shortened.)
Triac output type main unit Do not use the PWM (FNC 58) instruction with triac-output type main units. (Considerable output response delay may be generated.)
Special high-speed output adapter Use a transistor output type main unit.
When the contents of D10 are changed ranging from "0" to "50" in the program example shown below, the average output from Y000 will be ranging from 0 to 100%. An error will occur if the contents of D10 exceed 50. In this program example the FX3U series main unit (sink output) is used. For wiring details, refer to the Hardware Edition of each PLC.


R >> P τ = P(kΩ) ° C(µF) = 470ms >> T0 The time constant of the filter should be considerably larger than the pulse cycle T0. The ripple value "∆e" in the mean output current "e" is approximately "∆e/e ≤ T0/τ"

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
13 High-Speed Processing – FNC 50 to FNC 59
13.10 FNC 59 – PLSR / Acceleration/Deceleration Setup
FNC30-FNC39 Rotation and Shift
This pulse output instruction has the acceleration/deceleration function.
16-bit Instruction Mnemonic Operation Condition FNC 59
Mnemonic Operation Condition 32-bit Instruction
17 steps DPLSR Continuous Operation 9 steps PLSR Continuous Operation
Operand Type Description Data Type
Maximum frequency (Hz) 16- or 32-bit binary
Total number of output pulses (PLS) 16- or 32-bit binary
Acceleration/deceleration time (ms) 16- or 32-bit binary
Device number (Y) from which pulses are to be output Bit
Bit Devices Word Devices Others
System User Digit Specification System User Special
Unit Index Constant Real Number
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 S2 S3
FNC70-FNC79 External FX I/O Device
3 S2 S3
3 S2 S3
S1: Specify a transistor output on the main unit or Y000 or Y001 on a special high-speed output adapter*1. S2: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S3: This function is supported only in FX3U/FX3UC PLCs. *1. High-speed output special adapters can be connected only to FX3U PLC.
FNC80-FNC89 External FX Device
1. 16-bit operation (PLSR)
FNC100-FNC109 Data Transfer 2
Pulses are output from output (Y) by the specified number with acceleration/deceleration to the
maximum frequency over the time (ms).
Maximum frequency S1
S1 D S2 S3
Total number of output
(Y000,
Y001)
(PLS)
(PLS)
: Maximum frequency (Hz) Allowable setting range: 10 to 32767 (Hz)
FNC140-FNC149 Data Operation 2
: Total number of output pulses (PLS) Allowable setting range: 1 to 32767 (PLS)
S3 Acceleration/ deceleration time S3
: Acceleration/deceleration time (ms) Allowable setting range: 50 to 5000 (ms)
: Pulse output number Allowable setting range: Y000, Y001

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
13 High-Speed Processing – FNC 50 to FNC 59
13.10 FNC 59 – PLSR / Acceleration/Deceleration Setup
Pulses are output from the output (Y) by the specified number [ +1, ] with acceleration/deceleration

to the maximum frequency [ +1, ] for the time [ +1, ](ms).
S1 D S2 S3
- When special high-speed output adapters are used Allowable setting range: 10 to 200,000 (Hz) - When the FX3S/FX3G/FX3GC/FX3U/FX3UC PLCs main unit is used Allowable setting range: 10 to 100,000 (Hz)
: Pulse output number Allowable setting range: Y000, Y001

Maximum frequency (Hz) 16-bit operation: 10 to 32767 Hz 32-bit operation: 10 to 200,000 Hz Pulse frequency (Hz)

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
13 High-Speed Processing – FNC 50 to FNC 59
FNC30-FNC39 Rotation and Shift
OFF: The input command is OFF, or pulses are being output. (This flag does not turn ON if the pulse output is interrupted in the middle of output.)
M8029 Instruction execution com-
ON: Output of the number of pulses set in is completed.
Description Contents of data High order
D8141 D8140 Accumulated number of pulses output from Y000
Accumulated number of pulses output from Y000 by PLSY and PLSR instructions
D8143 D8142 Accumulated number of pulses output from Y001
Accumulated number of pulses output from Y001 by PLSY and PLSR instructions
D8137 D8136 Total accumulated number of pulses output from Y000 and Y001
Total accumulated number of pulses output from Y000 and Y001 by PLSY and PLSR instructions
The contents of each data register can be cleared using the following program:
DMOV K0 Low-order device shown in
FNC70-FNC79 External FX I/O Device
Description FX3S/FX3G/FX3GC FX3U/FX3UC
FNC80-FNC89 External FX Device
M8145,M8349 M8349 Immediately stops pulse output from Y000.
M8146,M8359 M8359 Immediately stops pulse output from Y001.
To restart pulse output pulses again, set the device (FX3S/FX3G/FX3GC : M8145, M8146, M8349, M8359 FX3U/FX3UC : M8349, M8359) corresponding to the output signal to OFF, and then drive the pulse output instruction again.
FNC100-FNC109 Data Transfer 2
1. Frequency
When using transistor outputs on the main unit, set the output frequency to "100,000 Hz" or less. If the load is operated using pulses at a frequency higher than 100,000 Hz from transistor outputs in the main unit, the PLC may be damaged.
FNC140-FNC149 Data Operation 2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
13 High-Speed Processing – FNC 50 to FNC 59
13.10 FNC 59 – PLSR / Acceleration/Deceleration Setup
Operating voltage range 5 to 24V DC
Operating current range 10 to 100 mA
Output frequency 100 kHz or less
When the load is smaller, connect a dummy resistor in parallel to the outside of a used output terminal (Y000 or Y001) as shown in the circuit diagram below so that the specified current shown above flows in the output transistor.


= Y000 Y004 While Y004 is ON, pulses are output from Y000 in the high-speed output adapter. While Y004 is OFF, pulses are output from Y004 in the high-speed output adapter.
= Y001 Y005 While Y005 is ON, pulses are output from Y001 in the high-speed output adapter. While Y005 is OFF, pulses are output from Y005 in the high-speed output adapter.

setting switch Signal name Setting name in each positioning instruction
chain (FP) Pulse output destination Y000 Y001 Y002 Y003
chain (RP) Rotation direction signal Y004 Y005 Y006 Y007
Pulse chain Pulse output destination Y000 Y001 Y002 Y003

While instruction is active, associated output is ON. (LED is also ON.) Use a special high-speed adapter.
Special high-speed output adapter Operated. (LED is also operated.) Set the output frequency to "200kHz" or less.
Transistor output type main unit Operated. (LED is ON.) Set the output frequency to "100kHz" or less.
Item Description

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
13 High-Speed Processing – FNC 50 to FNC 59
FNC30-FNC39 Rotation and Shift
Classification Instruction Instruction name Target output numbers
PLSY (FNC 57) Pulse Y output Y000,Y001
PLSR (FNC 59) Acceleration/deceleration setup Y000,Y001
DSZR (FNC150) DOG search zero return Y000,Y001,Y002*1,Y003*2
DVIT (FNC151)*3 Interrupt positioning Y000,Y001,Y002,Y003*2
ZRN (FNC156) Zero return Y000,Y001,Y002*1,Y003*2
PLSV (FNC157) Variable speed pulse output Y000,Y001,Y002*1,Y003*2
DRVI (FNC158) Drive to increment Y000,Y001,Y002*1,Y003*2
DRVA (FNC159) Drive to absolute Y000,Y001,Y002*1,Y003*2
High-speed processing PWM (FNC 58) Pulse width modulation Y000,Y001,Y002*1,Y003*2
*1. Y002 is not available in FX3G PLC (14-point and 24-point type) and FX3S/FX3GC PLCs.
*2. Y003 can be used only when two special high-speed output adapters are connected to an FX3U PLC.
*3. This function is supported only in FX3U/FX3UC PLCs.
2) When using the same output relay (Y000 or Y001) in several instructions. While a pulse output monitor (BUSY/READY) flag is ON, a pulse output or positioning instruction for the same output relay cannot be executed. While a pulse output monitor flag is ON, even after the instruction drive contact is set to OFF, a pulse output or positioning instruction for the same output relay cannot be executed. Before executing a pulse output or positioning instruction, wait until the pulse output monitor flag turns OFF and one or more operation cycles pass.
FNC70-FNC79 External FX I/O Device
Pulse output destination device Pulse output monitor flag
Y001 M8350
FNC80-FNC89 External FX Device
FNC100-FNC109 Data Transfer 2
FNC140-FNC149 Data Operation 2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
14 Handy Instruction – FNC 60 to FNC 69
FNC 60 to FNC 69 provide handy instructions which achieve complicated control in a minimum sequence program.


FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
14 Handy Instruction – FNC 60 to FNC 69
14.1 FNC 60 – IST / Initial State
FNC30-FNC39 Rotation and Shift
This instruction automatically controls the initial state and special auxiliary relays in a step ladder program.
→ For SFC programs and step ladder, refer to Chapter 35.
Mnemonic Operation Condition 16-bit Instruction
2. Set data
Operand type Description Data type
Head bit device number of the selector switch in the operation mode Bit
Smallest state relay number of practical state relays in the automatic mode
( < ) Bit
Largest state relay number of practical state relays in the automatic mode
( < ) Bit
Bit Devices Word Devices Others
System User Digit Specification System User Special
FNC70-FNC79 External FX I/O Device
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
S 2 D 1
FNC80-FNC89 External FX Device
S1: "D .b" is available only in FX3U and FX3UC PLCs. However, index modifiers (V and Z) are not available. S2: S20 to S899 and S1000 to S4095 in the FX3G, FX3GC, FX3U and FX3UC PLCs.
S20 to S255 in the FX3S PLC.
FNC100-FNC109 Data Transfer 2
IST S D1 D2
Selector switches in the operation mode occupy eight devices from the head device , and the switch functions shown in the table below are assigned to each of them. When X020 is assigned as shown below, it is necessary to set X020 to X024 as rotary switches so that they do not turn ON at the same time. It is not necessary to wire unused switches, but they cannot be used for any other purpose because they are occupied by IST instruction.
Source Device number (example) Switch function X020 Individual operation
+ 1 X021 Return to zero point
+ 2 X022 Stepping
FNC140-FNC149 Data Operation 2
+ 3 X023 Cycle operation
+ 4 X024 Continuous operation
+ 5 X025 Zero return start
+ 6 X026 Automatic start
+ 7 X027 Stop

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
14 Handy Instruction – FNC 60 to FNC 69
14.1 FNC 60 – IST / Initial State
Device number Operation function Device number Operation function
M8040 STL transfer disable S0 Individual operation initial state
M8041*1 Transfer start S1 Zero return initial state
M8042 Start pulse S2 Automatic operation initial state
M8043*1 Zero return complete
M8045 All output reset disable
M8047*2 Enable STL monitoring
*1.Cleared when the PLC mode is changed from RUN to STOP.
*2.Set to ON when END instruction is executed.
Do not program the following state relays as general state relays;
Device number Operation function
S10 to S19 Occupied for zero return
If the devices are switched among individual operation (X020), zero return (X021) and automatic operation (X022, X023 and X024) while the zero return complete device (M8043) is OFF, all outputs are set to OFF. Automatic operation can be started again after zero return is completed.
→ For introducing IST instruction, refer to "14.1.2 Example of IST instruction introduction (example of
workpiece transfer mechanism)".
D 1 S
S0 to S9

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
14 Handy Instruction – FNC 60 to FNC 69
FNC30-FNC39 Rotation and Shift
The details on special auxiliary relays (M) and initial state relays (S0 to S9) which are automatically controlled by the IST instruction are as shown in the equivalent circuit below. (Refer to the equivalent circuit below for reference.) This equivalent circuit cannot be programmed.
X027 M8041 is set to ON when the start button is pressed in the automatic mode. Especially in the continuous mode, M8041 holds its status by itself, and is reset when the stop button is pressed.
start X026 Automatic start
X026 Automatic start X020
M8042
Individual operation Start pulse X025 Zero return start
M8040 is set to ON in the stepping mode, and set to OFF every time the start button is pressed. In the zero return operation or cycle operation, M8040 holds its status by itself when the stop button is pressed, and is reset when the start button is pressed.
FNC70-FNC79 External FX I/O Device
Enable STL monitoring X020 Individual
The initial state is switched according to each mode input, and M8043 is controlled at the same time. However, it is necessary to control M8044 and M8043 in user programs also.
FNC80-FNC89 External FX Device
complete X021 Zero return
Zero return start Zero return complete signal is reset
Transfer start S 2
FNC100-FNC109 Data Transfer 2
*1. Because the above equivalent circuit is provided only for explanation, it cannot be actually programmed.
Switched to X020 (individual operation)
Conventional states and corresponding outputs are reset at one time.
Automatic X022 to X024
All output reset disable
FNC140-FNC149 Data Operation 2
Switched to X021 (zero return operation)
S2 When M8045 is OFF, all outputs are reset.
Automatic X022 to X024
Even if the mode is switched from automatic operation to zero return operation while S2 is ON, state relays (except initial state relays) and outputs are not reset.
*2. All outputs: Outputs (Y) not driven by state relays and outputs (Y) driven by state relays in OUT and SET instructions

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
14 Handy Instruction – FNC 60 to FNC 69
14.1 FNC 60 – IST / Initial State
1. Operation mode
Mechanism for transferring a workpiece from the point A to the point B using the robot hand
Zero return Zero return operation mode
Y003 Rightward Right limit X003
Left limit X004 Y004
Upper limit X002 Moving down
PB PB PB
PB
Y002 Y000
X005 X006 X007
PB PB PB
PB PB
X010 X011 X012
Pushbutton switches for individual operations of the robot hand shown in the figure on the right
Pushbutton switches for the external circuit to
Point A Point B
turn ON and OFF the load power supply
Operation mode Contents of operation
Individual operation mode Each load is turned ON and OFF by an individual pushbutton switch.
Zero return operation mode When the pushbutton switch for zero return is pressed, the machine automatically returns to the zero point.
Stepping operation mode Every time the start button is pressed, the machine performs one process.
When the start button is pressed while the machine is located at the zero point, the machine performs one cycle of automatic operation and stops at the zero point. If the stop button is pressed in the middle of one cycle, the machine stops immediately. When the start button is pressed after that, the machine performs the continuous operation from the last position, and automatically stops at the zero point.
When the start button is pressed while the machine is located at the zero point, the machine starts continuous operation. When the stop button is pressed, the machine finishes the current cycle until the zero point, and then stops at the zero point.

What is the zero point condition? Upper limit X002 is ON, left limit X004 is ON and unclamping Y001 is OFF.
The upper left position is regarded as the zero point. The machine transfers a workpiece from the left to the right in the order "moving down → clamping → moving up → rightward travel → moving down → unclamping → moving up → leftward travel". Double-solenoid type solenoid valves (with two inputs for driving and non-driving) are adopted for moving down, moving up, leftward travel and rightward travel. Single type solenoid valves (which operate only while the power is ON) are adopted for clamping.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
14 Handy Instruction – FNC 60 to FNC 69
FNC30-FNC39 Rotation and Shift
- X020: Individual operation mode - X021: Zero return operation mode - X022: Stepping operation mode - X023: Cycle operation mode - X024: Continuous operation - X025: Zero return start - X026: Automatic mode start - X027: Stop
When only the continuous operation mode and zero return
When only the continuous operation mode and individual
When inputs do not have consecutive device numbers
operation mode are used
operation mode are used
Example: X030:Individual operation mode X035:Zero return operation mode X033:Stepping operation mode X040:Cycle operation mode X032:Continuous operation mode X034:Zero return start X026:Automatic mode start X041:Stop
return start X033:Stop
FNC70-FNC79 External FX I/O Device
M 0 X030
M 0 Individual operation mode
M 0 Does not operate
M 1 Zero return operation mode
M 1 Zero return operation mode
FNC80-FNC89 External FX Device
M 2 Stepping operation mode
M 2 Does not operate
M 3 Cycle operation mode
M 3
M 4 Continuous operation
M 4 Continuous operation
M 4 Continuous operation
FNC100-FNC109 Data Transfer 2
M 5 Zero return start
M 5 Zero return start
M 6 Automatic mode start
M 6 Automatic mode start
M 6 Automatic mode start X033
In this example, M0 is used as the head input for mode specification.
IST M 0 S 20 S 29
FNC140-FNC149 Data Operation 2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
14 Handy Instruction – FNC 60 to FNC 69
14.1 FNC 60 – IST / Initial State
When this special auxiliary relay turns ON, transfer of every state is disabled. Individual operation mode:
M8040 is always effective. Zero return operation mode and cycle operation mode:
When the stop button is pressed, the operation is held until the start button is pressed. Stepping operation mode:
M8040 is always effective except when the start button is pressed. When the start button is pressed, M8040 is not effective and transfer of states is allowed. Others: The operation is latched when the PLC mode switches from STOP to RUN, and reset when the start button is pressed. Even in the transfer disabled status, the operation is held for outputs in the states. b) M8041: Transfer start
This special auxiliary relay allows transfer from the initial state S2 to the next state. Individual operation mode and zero return operation mode:
M8041 is not effective. Stepping operation mode and cycle operation mode:
M8041 is effective only while the start button is pressed and held. Continuous operation mode:
The operation is latched when the start button is pressed, and cleared when the stop button is pressed. c) M8042: Start pulse
M8042 is activated instantaneously only when the start button is pressed. d) M8047: Enable STL monitoring
When IST instruction is executed, M8047 is set to ON. When the M8047 turns ON, STL monitoring becomes valid, and state relay numbers (S0 to S899) in the ON status are stored in turn in the ascending order of device number to the special data register D8040 to D8047. Up to eight state relay numbers in the ON status can be monitored. If either state relay is ON, the special auxiliary relay M8046 is set to ON.
→ For details on these controls, refer to the next page. a) M8043: Zero return complete
Set this special auxiliary relay (M) to ON by a user program when the machine returns to the zero point in the zero return operation mode. b) M8044: Zero point condition
Detect the zero point condition of the machine, and drive this special auxiliary relay. This signal is effective in every mode. c) M8045: All output reset disable
When the mode is switched among individual operation mode, zero return operation mode and automatic mode, all outputs and operation state relays are reset if the machine is not located at the zero point. If M8045 has been set to ON in advance, however, only operation state relays are reset.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
14 Handy Instruction – FNC 60 to FNC 69
FNC30-FNC39 Rotation and Shift
While the machine is operating, the operation mode can be switched arbitrarily (among stepping operation, cycle operation and continuous operation) in the automatic mode. When the operation mode is switched between the individual operation mode, zero return operation mode and automatic mode while the machine is operating, all outputs are reset once to assure safety, after which the following mode becomes valid. (While M8045 (All output reset disable) is ON, outputs are not reset at all.)
Detects that the machine is located at the zero point, and regards it as the condition to start the automatic mode.
Y001
M8044 Left limit Upper
b) Individual operation mode
Programming is not required when the individual operation mode is not provided.
FNC70-FNC79 External FX I/O Device
Unclamping command RST Y001
Initial state for individual operation
FNC80-FNC89 External FX Device
Leftward travel command Y003
Rightward travel command Y004
Rightward travel Upper limit
FNC100-FNC109 Data Transfer 2
FNC140-FNC149 Data Operation 2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
14 Handy Instruction – FNC 60 to FNC 69
14.1 FNC 60 – IST / Initial State
c) Zero return operation mode
Programming is not required when the zero return operation mode is not provided. It is necessary to set M8043 (zero return complete) to ON before starting the automatic mode.

Make sure to use the state relays S10 to S19 for the zero return operation. In the final state, drive M8043, and then reset the final state.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
14 Handy Instruction – FNC 60 to FNC 69

d) Automatic mode (stepping operation mode, cycle operation mode or continuous operation mode)

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
14 Handy Instruction – FNC 60 to FNC 69
14.1 FNC 60 – IST / Initial State
0 LD X 004 1 AND X 002 2 ANI Y 001 3 OUT M8044 5 LD M8000 6 IST 60 (SP) X 020 (SP) S 20 (SP) S 27 13 STL S 0 14 LD X 012 15 SET Y 001 16 LD X 007 17 RST Y 001 18 LD X 005 19 ANI Y 000 20 OUT Y 002 21 LD X 010 22 ANI Y 002 23 OUT Y 000 24 LD X 006 25 AND X 002 26 ANI Y 003 27 OUT Y 004 28 LD X 011 29 AND X 002 30 ANI Y 004 31 OUT Y 003 (RET)
32 STL S 1 33 LD X 025 34 SET S 10 36 STL S 10 37 RST Y 001 38 RST Y 000 39 OUT Y 002 40 LD X 002 41 SET S 11 43 STL S 11 44 RST Y 003 45 OUT Y 004 46 LD X 004 47 SET S 12 49 STL S 12 50 SET M8043 52 LD M8043 53 RST S 12 (RET) 55 STL S 2 56 LD M8041 57 AND M8044 58 SET S 20 60 STL S 20 61 OUT Y 000 62 LD X001 63 SET S 21 65 STL S 21 66 SET Y 001 67 OUT T 0 (SP) K 10
70 LD T 0 71 SET S 22 73 STL S 22 74 OUT Y 002 75 LD X 002 76 SET S 23 78 STL S 23 79 OUT Y 003 80 LD X 003 81 SET S 24 83 STL S 24 84 OUT Y 000 85 LD X 001 86 SET S 25 88 STL S 25 89 RST Y 001 90 OUT T 1 (SP) K 10 93 LD T 1 94 SET S 26 96 STL S 26 97 OUT Y 002 98 LD X 002 99 SET S 27 101 STL S 27 102 OUT Y 004 103 LD X 004 104 OUT S 2 106 RET 107 END
Programming is not required.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
14 Handy Instruction – FNC 60 to FNC 69
14.2 FNC 61 – SER / Search a Data Stack
FNC30-FNC39 Rotation and Shift
This instruction searches for the same data, maximum value and minimum value in a data table.
Mnemonic Operation Condition P FNC 61
SER D
Continuous Operation Pulse (Single) Operation
Continuous Operation Pulse (Single) Operation
SERP
DSERP
2. Set data
Operand type Description Data type
Head device number in which same data, maximum value and minimum value are searched 16- or 32-bit binary
Data to be searched for or device number storing data 16- or 32-bit binary
Head device number storing number of same data, maximum value and minimum value detected by search 16- or 32-bit binary
n Number of data in which same data, maximum value and minimum value are searched [16-bit instruction: 1 to 256, 32-bit instruction: 1 to 128] 16- or 32-bit binary
Bit Devices Word Devices Others
FNC70-FNC79 External FX I/O Device
System User Digit Specification System User Special
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 S1 S2 3
3 S1 S2 3
FNC80-FNC89 External FX Device
3 S1 S2 3
n 3 S1 3 3
S1: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S2: This function is supported only in FX3U/FX3UC PLCs.
FNC100-FNC109 Data Transfer 2
In "n" data starting from , same data as is searched, and the search result is stored to to
+4.
SER n S1 S2 D
Five devices starting from store the number of same data, first position, last position, maximum value position and minimum value position. b) When same data was not detected
FNC140-FNC149 Data Operation 2
Five devices starting from store the number of same data, first position, last position, maximum value position and minimum value position.
In this case, however, "0" is stored in three devices starting from (which store the number of same data, first position and last position).

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
14 Handy Instruction – FNC 60 to FNC 69
14.2 FNC 61 – SER / Search a Data Stack

b) Search result table


In "n" data starting from [ +1, ], same data as [ +1, ] is searched, and the search result is
stored to [ +1, ] to [ +9, +8].
DSER n S1 S2 D
Five 32-bit devices starting from [ +1, ] store the number of same data, first position, last position, maximum value position and minimum value position. b) When same data was not detected
Five 32-bit devices starting from [ +1, ] store the number of same data, first position, last position, maximum value position and minimum value position.
In this case, however, "0" is stored in three devices starting from [ +1, ] (which store the number of same data, first position and last position).

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
14 Handy Instruction – FNC 60 to FNC 69
FNC30-FNC39 Rotation and Shift
D D D
0 3 (first position)
S 1 S 1
[ + 3, + 2] K110100 1
S 1 S 1
[ + 5, + 4] K100000 2 3
S 1 S 1
[ + 7, + 6] K 98000 3
S 1 S 1
[ + 9, + 8] K123000 4
S 1 S 1
K100000
[ + 11, + 10] K 66000 5 3
[ + 13, + 12] K100000 6 3 (last position)
[ + 15, + 14] K 95000 7
S 1 S 1
[ + 17, + 16] K910000 8 3
S 1 S 1
[ + 19, + 18] K910000 9 3
S 1 S 1
b) Search result table
Device number Contents Search result item
[ + 1, ] 3 Number of same data
[ + 3, + 2] 0 Same data position (first position)
FNC70-FNC79 External FX I/O Device
[ + 5, + 4] 6 Same data position (last position)
[ + 7, + 6] 5 Minimum value position (last position)
[ + 9, + 8] 9 Maximum value position (last position)
Cautions
FNC80-FNC89 External FX Device
FNC100-FNC109 Data Transfer 2
When this instruction is driven, the following number of devices are occupied for storing the search result . Make sure that such devices are not used in other controls for the machine.
1)In the case of 16-bit operation
D1 D D1 D D1 D D1 D D1 D
Five devices, , +1, +2, +3 and +4, are occupied.
2)In the case of 32-bit operation
Ten devices, [ +1, ], [ +3, +2], [ +5, +4], [ +7, +6] and [ +9,
D1 D D1 D D1 D D1 D D1 D D1 D D1 D D1 D D1 D
+8], are occupied.
FNC140-FNC149 Data Operation 2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
14 Handy Instruction – FNC 60 to FNC 69
14.3 FNC 62 – ABSD / Absolute Drum Sequencer
This instruction creates many output patterns corresponding to the current value of a counter.
32-bit Instruction D 17 steps DABSD Continuous Operation
Mnemonic Operation Condition 16-bit Instruction
2. Set data

Head device number storing the data table (with rising and falling point data) 16- or 32-bit binary
Counter number for monitoring the current value compared with the data table 16- or 32-bit binary
n Number of lines in the table and the number of output bit devices [1 ≤ n ≤ 64] 16-bit binary

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 S2 S3 3
S1: "D .b" is available only in FX3U and FX3UC PLCs. However, index modifiers (V and Z) are not available. S2: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S3: This function is supported only in FX3U/FX3UC PLCs.
The current value of the counter is compared with the data table with "n" lines starting from (which
occupies "n" lines × 2 devices), and consecutive "n" outputs starting from are controlled to ON or OFF during one rotation.

ABSD n S1 S2 D
Mnemonic Operation Condition · 9 steps ABSD · Continuous Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
14 Handy Instruction – FNC 60 to FNC 69
FNC30-FNC39 Rotation and Shift
Rising point Falling point
Target output Data value (example) Data value (example)
40 + 1 140
+ 2 100 + 3 200 + 1
+ 4 160 + 5 60 + 2
+ 6 240 + 7 280 + 3
S 1 S 1 D
+ 2n-2 + 2n - 1 + n − 1
For example, store rising point data and falling point data alternately.
When the command input is set to ON, "n" points starting from change as shown below.
Each rising point/falling point can be changed respectively by overwriting the data in to +2n − 1.
FNC70-FNC79 External FX I/O Device
FNC80-FNC89 External FX Device
The present value of the counter is compared with the data table having "n" lines starting from [ +1,
] (which occupies "n" lines × 4 devices), and consecutive "n" outputs starting from are controlled to ON or OFF during one rotation.
input FNC 62 DABSD n S1 S2 D
FNC100-FNC109 Data Transfer 2
RST
K360
Rotation angle signal of 1°/pulse
FNC140-FNC149 Data Operation 2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
14 Handy Instruction – FNC 60 to FNC 69
14.3 FNC 62 – ABSD / Absolute Drum Sequencer

D1 S1 D1 S1 D1 S1 D1 S1
[ + 1, ] 40 [ + 3, + 2] 140
S1 D
[ + 5, + 4] 100 [ + 7, + 6] 200 +1
S1 D
[ + 9, + 8] 160 [ + 11, + 10] 60 +2
S1 D
[ + 13, + 12] 240 [ + 15, + 14] 280 +3
S1 D
[ + 4n - 3, + 4n - 4] [ + 4n - 1, + 4n - 2] + n − 1
S1 D
For example, store rising point data and falling point data alternately.
When the command input is set to ON, "n" points starting from change as shown below.
Each rising point/falling point can be changed respectively by overwriting the data in [ +1, ] to

1. Specifying a high-speed counter (C235 to C255)
In DABSD instruction, a high-speed counter can be specified as . When the high-speed counter is specified, the output pattern contains response delay caused by the scan cycle with regard to the current value of a counter. When high responsivity is required in FX3U/FX3UC PLCs, use the table high-speed comparison function offered by the HSZ instruction, or use the HSCT instruction.
2. When specifying digits of a bit device as
D 1 S 1

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
14 Handy Instruction – FNC 60 to FNC 69
14.4 FNC 63 – INCD / Incremental Drum Sequencer
FNC30-FNC39 Rotation and Shift
This instruction creates many output patterns using a pair of counters.
Mnemonic Operation Condition 16-bit Instruction
2. Set data
Operand type Description Data type
Head word device number storing the set value 16-bit binary
Head number of counters whose current value is monitored 16-bit binary
Head bit device number to be output Bit
n Number of output bit devices [1 ≤ n ≤ 64] 16-bit binary
Bit Devices Word Devices Others
System User Digit Specification System User Special
FNC70-FNC79 External FX I/O Device
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 S2 S3 3
S 2 D
FNC80-FNC89 External FX Device
S1: "D .b" is available only in FX3U and FX3UC PLCs. However, index modifiers (V and Z) are not available. S2: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S3: This function is supported only in FX3U/FX3UC PLCs.
FNC100-FNC109 Data Transfer 2
The current value of a counter is compared with the data table having "n" lines starting from (which
occupies "n" lines x 1 device). When is equivalent to the table data, the current output is reset, and the next output is set to ON. In this way, the ON/OFF status of specified outputs is controlled in turn.
INCD n S1 S2 D
FNC140-FNC149 Data Operation 2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
14 Handy Instruction – FNC 60 to FNC 69
14.4 FNC 63 – INCD / Incremental Drum Sequencer


+ n − 1 ⎯ + n − 1 ⎯
2. Number of occupied devices
Two devices are occupied from a device specified as . Make sure not to use devices used in another control.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
14 Handy Instruction – FNC 60 to FNC 69
14.5 FNC 64 – TTMR / Teaching Timer
FNC30-FNC39 Rotation and Shift
This instruction measures the period of time in which TTMR instruction is ON. Use this instruction to adjust the set value of a timer by a pushbutton switch.
Mnemonic Operation Condition 16-bit Instruction
2. Set data
Operand type Description Data type
Device number storing the teaching data 16-bit binary
n Magnification by which the teaching data is multiplied [K0 to K2/H0 to H2] 16-bit binary
Bit Devices Word Devices Others
System User Digit Specification System User Special
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
FNC70-FNC79 External FX I/O Device
n 3
FNC80-FNC89 External FX Device
by the magnification (10n), and then transferred to .
TTMR n D
FNC100-FNC109 Data Transfer 2
τ0 τ0
Pressing and holding time Pressing and holding time
The table below shows the actual value indicated by depending on the magnification n and the pressing and holding time t0 (unit: 1 sec).
K0 τ0 × 1
K1 10τ0 × 10
FNC140-FNC149 Data Operation 2
K2 100τ0 × 100
There is a handy instruction as follows:
HOUR (FNC169) Measures the input contact ON time in 1-hour units, and outputs alarm when the measurement result reaches a specified value.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
14 Handy Instruction – FNC 60 to FNC 69
14.5 FNC 64 – TTMR / Teaching Timer
1. When the command contact turns OFF
The current value [ +1] of the pressing and holding time is reset, and the teaching time will not change any more.
Two devices are occupied from a device specified as the teaching time . Make sure that these devices are not used in other controls for the machine.
Program example

10 timers to be set Because the timers T0 to T9 are the 100 ms type, the actual operating time (sec) is 1/10 of the teaching data.
Selecting a timer by a digital switch An input to the 1-digit digital switch connected to X000 to X003 is converted into binary format, and transferred to Z.
Measuring the teaching time The time (sec) in which X010 is pressed and held is stored to D300.
Writing the set value of a timer The teaching time (D300) is transferred to the register D400Z for setting a timer selected by the digital switch.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
14 Handy Instruction – FNC 60 to FNC 69
14.6 FNC 65 – STMR / Special Timer
FNC30-FNC39 Rotation and Shift
This instruction can easily make off-delay timers, one-shot timers and flicker timers.
Mnemonic Operation Condition 16-bit Instruction
2. Set data
Operand type Description Data type
Used timer number [T0 to T199 (100 ms timer)] 16-bit binary
m Set value of the timer [1 to 32,767] 16-bit binary
Head bit number to which the set value is output (Four devices are occupied.) Bit
Bit Devices Word Devices Others
System User Digit Specification System User Special
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
FNC70-FNC79 External FX I/O Device
m 3
S: "D .b" cannot be indexed with index registers (V and Z).
FNC80-FNC89 External FX Device
1. 16-bit operation (STMR)
The value specified in "m" is handled as the set value of a timer specified in , and output to four devices starting
from . Create a proper program according to the purpose while referring to the example shown below.
FNC100-FNC109 Data Transfer 2
STMR m S D
When T10 is set to , and M0 is set to
STMR T10 K100 M0
FNC140-FNC149 Data Operation 2
after the timer set value

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
14 Handy Instruction – FNC 60 to FNC 69
14.6 FNC 65 – STMR / Special Timer

In the program shown below which turns OFF STMR instruction at the NC contact of +3, flicker is output to

Four devices are occupied from a device specified in . Make sure that these devices are not used in other controls for the machine.

D1 D D1 D D1 D D1 D D1 S
, +1 and +3 will turn OFF after the set time. +2 and the timer are immediately reset.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
14 Handy Instruction – FNC 60 to FNC 69

This instruction alternates a bit device (from ON to OFF or from OFF to ON) when the input turns ON.
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
S: "D .b" is available only in FX3U and FX3UC PLCs. However, index modifiers (V and Z) are not available.
Every time the command input turns from OFF to ON, a bit device specified in is alternated (from ON to OFF or from OFF to ON).
Dividing output (by 2-step alternating output) Multi-step dividing outputs are achieved by combination of two or more ALTP instructions.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
14 Handy Instruction – FNC 60 to FNC 69
14.7 FNC 66 – ALT / Alternate State
1. When using (continuous operation type) ALT instruction
1. Start and stop by one input


5 sec 5 sec 5 sec 5 sec 5 sec 5 sec 5 sec
M 0
M 1
M 0 Y000
Y000
M 0 Y000

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
14 Handy Instruction – FNC 60 to FNC 69
14.8 FNC 67 – RAMP / Ramp Variable Value
FNC30-FNC39 Rotation and Shift
This instruction obtains the data which changes between the start value (initial value) and the end value (target value) over the specified "n" times.
Mnemonic Operation Condition 16-bit Instruction
2. Set data
Operand type Description Data type
Device number storing the initial value of ramp 16-bit binary
Device number storing the target value of ramp 16-bit binary
Device number storing the current value of ramp 16-bit binary
n Ramp transfer time (scan) [1 to 32, 767] 16-bit binary
Bit Devices Word Devices Others
System User Digit Specification System User Special
FNC70-FNC79 External FX I/O Device
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
S 2 D
n 3 S 3 3
FNC80-FNC89 External FX Device
S: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs.
1. 16-bit operation (RAMP)
When the start value and the end value have been specified and the command input is set to ON, the
value obtained by adding a value divided equally by "n" times to in every operation cycle is stored to . By combining this instruction and an analog output, the cushion start/stop command can be output.
FNC100-FNC109 Data Transfer 2
RAMP n S1 S2 D
S 2 S 2
FNC140-FNC149 Data Operation 2
Number of scans +1
D Number of scans +1 D
in is held, and the number of scans stored in +1 is cleared.) When the command input is set to ON
again, is cleared, and the operation is started from .

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
14 Handy Instruction – FNC 60 to FNC 69
14.8 FNC 67 – RAMP / Ramp Variable Value

For example, when "20 ms" is written to D8039 and "n" is set to 100, the value will change from to
D 1 S 2
in 2 seconds.
In FX3U/FX3UC PLCs, the contents of are changed as follows depending on the ON/OFF status of the mode flag M8026.
In FX3S/FX3G/FX3GC PLCs, the contents of are same as the case "2) When M8026 is ON" below regardless of the ON/OFF status of the mode flag M8026.


→ For the instruction execution complete flag use method, refer to Subsection 6.5.2.

M8029 Instruction execution complete Turns ON when becomes equivalent to after "n" operation cycles.
M8026*1 RAMP mode Refer to the operation of the mode flag M8026 described above.
*1. M8026 is available only in FX3U/FX3UC PLCs, and is cleared when the PLC mode switches from RUN to STOP.
1. When specifying a latched (battery backed) type device as
D 1 D
When setting PLC to the RUN mode while the command input is ON, clear in advance.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
14 Handy Instruction – FNC 60 to FNC 69

This instruction is suitable for efficient control of the rotary table for putting/taking a product into/out of the rotary table.
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
S: "D .b" cannot be indexed with index registers (V and Z).

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
14 Handy Instruction – FNC 60 to FNC 69
14.9 FNC 68 – ROTC / Rotary Table Control
1. 16-bit operation (ROTC)
The table rotation is controlled by "m2", and so that a product can be efficiently put into or taken out of the rotary table divided into "m1" (=10) sections as shown in the figure below.

Set them in advance using a transfer instruction. + 1 Sets the port No. to be called.
+ 2 Sets the product No. to be called.
Construct an internal contact circuit in advance which is driven by the input signal (X)

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
14 Handy Instruction – FNC 60 to FNC 69
FNC30-FNC39 Rotation and Shift
The conditions required to use this instruction are as shown in the example below.
M0
Up-counting signal during forward rotation
M2
Zero point detection switch
X000 to X002 are replaced with internal contacts of to +2. An arbitrary head device number can be specified by X or .
The counter detects which number of product is located at the port No. 0.
a) Set the port No. to be called in +1.
b) Set the product No. to be called in +2.
FNC70-FNC79 External FX I/O Device
When the above conditions are specified, forward/backward rotation and high-speed/low-speed/stop are output to
D1 D D1 D D1 D
+3 to +7 specified by the head device .
FNC80-FNC89 External FX Device
1. Operations caused by the command input ON/OFF status
+3 to +7.
FNC100-FNC109 Data Transfer 2
For example, when the rotation detection signal ( to +2) is activated 10 times in one division, set a value multiplied by "10" to each division, port No. to be called and product No. to be called. As a result, an intermediate value of the division number can be set to a low-speed section.
counting are cleared to "0". This clear operation should be executed before starting the operation.
FNC140-FNC149 Data Operation 2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
14 Handy Instruction – FNC 60 to FNC 69
14.10 FNC 69 – SORT / SORT Tabulated Data
This instruction sorts a data table consisting of data (lines) and group data (columns) based on a specified group data (column) sorted by line in ascending order. This instruction stores the group data (columns) in serial devices. On the other hand, SORT2 (FNC149) instruction stores the data (lines) in serial devices facilitating the addition of data (lines), and sorts a table in either ascending or descending order.
→ For SORT2 (FNC149) instruction, refer to Section 19.7.
Mnemonic Operation Condition 16-bit Instruction
2. Set data

Head device number storing the data table [which occupies m1 × m2 points]
m2 Number of group data (columns) [1 to 6]
Head device number storing the operation result [which occupies m1 × m2 points]
n Column number of the group data (column) used as the basis of sorting [1 to m2]

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
1. 16-bit operation (SORT)
In the data table (sorting source) having (m1 × m2) points from , data lines are sorted in the ascending order based on the group data in the column No. "n", and the result is stored in the data table (sorting result) having (m1 ×
m2) points from .
→ For operation examples, refer to the next page.

M{{ Instruction execution complete flag for SORT instruction

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
14 Handy Instruction – FNC 60 to FNC 69
FNC30-FNC39 Rotation and Shift
columns (m1 = K3, m2 = K4). For the sorting result data table, understand as .
Column No. Number of groups (m2 = K4)
1 2 3 4
Line No. Control number Height Weight Age
1 +3 +6 +9
data m1 = K3
2 +1 +4 +7 +10
3 +2 +5 +8 +11
→ For the instruction execution complete flag use method, refer to Subsection 6.5.2.
Column No. Number of groups (m2 = K4)
1 2 3 4
Line No. Control number Height Weight Age
1 + 5 + 10 + 15
1 150 45 20
FNC70-FNC79 External FX I/O Device
2 + 1 + 6 + 11 + 16
2 180 50 40
data m1 = K5
3 + 2 + 7 + 12 + 17
3 160 70 30
4 + 3 + 8 + 13 + 18
4 100 20 8
FNC80-FNC89 External FX Device
5 + 4 + 9 + 14 + 19
5 150 50 45
Column No. 1 2 3 4
Line No. Control number Height Weight Age
FNC100-FNC109 Data Transfer 2
1 + 5 + 10 +15
4 100 20 8
2 + 1 + 6 + 11 + 16
1 150 45 20
3 + 2 + 7 + 12 + 17
5 150 50 45
4 + 3 + 8 + 13 + 18
3 160 70 30
5 + 4 + 9 + 14 + 19
2 180 50 40
FNC140-FNC149 Data Operation 2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
14 Handy Instruction – FNC 60 to FNC 69
14.10 FNC 69 – SORT / SORT Tabulated Data

2 + 1 + 6 + 11 + 16
3 + 2 + 7 + 12 + 17
4 + 3 + 8 + 13 + 18
5 + 4 + 9 + 14 + 19
→ For the instruction execution complete flag use method, refer to Subsection 6.5.2.
M8029 Instruction execution complete Turns ON when sorting is completed.
Take special care so that the contents of are not changed until execution is completed.
Device Name Description

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
15 External FX I/O Device – FNC 70 to FNC 79
FNC30-FNC39 Rotation and Shift
FNC 70 to FNC 79 provide instructions to receive data from and send data to external devices mainly using inputs and outputs in PLC. Because these instructions easily achieve complicated controls with a minimum required sequence program and external wiring, they are similar to handy instructions described in the preceding chapter. FROM and TO instructions, essential for controlling special units and special blocks, are included in this group. (In FX3U and FX3UC PLCs, transfer can be also executed using a MOV instruction.)
FNC No. Mnemonic Symbol Function Reference
70 TKY Ten Key Input Section 15.1
71 HKY Hexadecimal Input Section 15.2
72 DSW Digital switch (thumbwheel input) Section 15.3
n DSW D2 D1 S
73 SEGD Seven Segment Decoder Section 15.4
74 SEGL Seven Segment With Latch Section 15.5
SEGL D n S
FNC70-FNC79 External FX I/O Device
75 ARWS Arrow Switch Section 15.6
n ARWS D2 D1 S
76 ASC ASCII code data input Section 15.7
FNC80-FNC89 External FX Device
77 PR Print (ASCII Code) Section 15.8
78 FROM Read From A Special Function Block Section 15.9
n FROM D m2 m1
79 TO Write To A Special Function Block Section
n TO S m2 m1
FNC100-FNC109 Data Transfer 2
FNC140-FNC149 Data Operation 2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
15 External FX I/O Device – FNC 70 to FNC 79
15.1 FNC 70 – TKY / Ten Key Input
This instruction sets data for timers and counters through ten key inputs ranging from "0" to "9".
TKY D TKY
2. Set data

Head bit device number from which one of the ten keys is input [10 devices are occupied] Bit
Word device number storing the data 16- or 32-bit binary
Head bit device number storing the key pressing information [11 devices are occupied] Bit

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
S: "D .b" cannot be indexed with index registers (V and Z).
1. 16-bit operation (TKY)
stores a numeric value input from to +9 connected to the ten keys. Output information for key
pressing and key sensing are output to to +10.
is stored in .

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
15 External FX I/O Device – FNC 70 to FNC 79
FNC30-FNC39 Rotation and Shift
- For the key pressing information, to +9 turn ON or OFF according to the pressed keys.
- For the key sensing output, +10 turns ON when any key is pressed.
TKY D1 S D2
Input form ten keys
The figure below shows an example of FX3U PLC (sink input). For wiring details, refer to the following manual.
→ FX3U Hardware Edition. → FX3UC Hardware Edition.
5 6 7 8 1 2 3 4 0 9
S S
Output information for key
PLC
FNC70-FNC79 External FX I/O Device
[1] [2] [3] [4]
"2130" is stored in .
FNC80-FNC89 External FX Device
[ +1, ] store a numeric value input from to +9 connected to the ten keys.
Output information for key pressing and key sensing are output to to +10.
FNC100-FNC109 Data Transfer 2
- For the key pressing information, to +9 turn ON or OFF according to the pressed keys.
- For the key sensing output, +10 turns ON when any key is pressed.
DTKY D1 S D2
For the ten-key connection example and key pressing information, refer to the 16-bit operation (TKY) shown above.
FNC140-FNC149 Data Operation 2
Though the contents of do not change, all of to +10 turn OFF.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
15 External FX I/O Device – FNC 70 to FNC 79
15.1 FNC 70 – TKY / Ten Key Input
- to +9: Turn ON or OFF according to input of the ten keys "0" to "9".
- +10: Is ON while either one among "0" to "9" keys is pressed (key sensing output).
In the program example shown below, the input X000 is set as the head bit device, and the ten keys "0" to "9" are connected.
X000 D0 M10 FNC 70
TKY

S/S X000 X001 X002 X003 X005 X004 X006 X007


FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
15 External FX I/O Device – FNC 70 to FNC 79
15.2 FNC 71 – HKY / Hexadecimal Input
FNC30-FNC39 Rotation and Shift
This instruction multiplexes four X-devices and four Y-devices to allow for 16 key (0 to F) 4-digit (byte) input. Keys 0 to 9 stores numerical values, and keys A to F represent function keys. When the extension function is set to ON, hexadecimal keys 0 to F all store their corresponding numerical values.
HKY D
2. Set data
Operand Type Description Data Type
Head X device number to be used (Four devices occupied.) Bit
Head Y device number to be used (Four devices occupied.) Bit
Device number storing the numerical input from the 16 keys 16- or 32-bit binary
Head bit device number storing the key pressing information (Eight devices are occupied.) Bit
Bit Devices Word Devices Others
FNC70-FNC79 External FX I/O Device
System User Digit Specification System User Special
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
FNC80-FNC89 External FX Device
S: "D .b" cannot be indexed with index registers (V and Z).
FNC100-FNC109 Data Transfer 2
signals [ to +3] and [ to +3] connected to the 16 key input (0 to F) are scanned.
When a key 0 to 9 is pressed, the corresponding numeric value is shifted into from the least significant byte, and
+7 turns ON.
When a key A to F is pressed, the corresponding key press information bit [ to +5] turns ON, and +6 turns ON.
HKY D1 S D2 D3
FNC140-FNC149 Data Operation 2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
15 External FX I/O Device – FNC 70 to FNC 79
15.2 FNC 71 – HKY / Hexadecimal Input
- The numeric value input is stored to in binary.
- The key sensing output +7 turns ON when any key 0 to 9 is pressed.
- Six devices starting from corresponding to keys A through F turn ON.

- The key sensing output +6 turns ON when any key A through F is pressed.
Signals [ to +3] and [ to +3] connected to the 16 key input (0 to F) are scanned.
When a key 0 to 9 is pressed, the corresponding numeric value is shifted into [ +1, ] from the least
significant byte, and +7 turns ON.
When a key A to F is pressed, the corresponding key press information bit [ to +5] turns ON. and
+6 turns ON.
DHKY D1 S D2 D3
- The numeric value input is stored to [ +1, ] in binary.
- The key sensing output +7 turns ON when any key 0 to 9 is pressed.
Six devices starting from corresponding to keys A to F turn ON.
The key sensing output +6 turns ON when any key A to F is pressed.
When M8167 is set to ON making the extension function valid, the numerical values for keys 0 to F are stored in binary. When the extension function is valid, the function and operation are the same except for the following.
Hexadecimal numerical value data input using keys 0 to F is shifted into from the least significant byte.
When "1 → 2 → 3 → B → F" is input, numerical value "23BF" is stored in in binary. "1" overflows when "F" is input.

D1 S D2 D3
Command · input FNC 71

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
15 External FX I/O Device – FNC 70 to FNC 79
FNC30-FNC39 Rotation and Shift
Hexadecimal numerical value data input using keys 0 to F is shifted into [ +1, ] from the least significant byte.
When "9 → 2 → 3 → B → F → A → F" is input, numerical value "923BFAF" is stored in [ +1, ] in binary.
M8167
D1 S D2 D3
Related devices
→ For the instruction execution complete flag use method, refer to Subsection 6.5.2.
Turns ON/OFF the hexadecimal data handling function of HKY (FNC 71) instruction. OFF: Ten-keys and function keys ON: Hexadecimal keys
M8167 Extension function flag
M8029 Instruction execution com-
OFF: Data is being output to to +3 or the instruction is not executed yet.
ON: A cycle operation of outputting data to to +3 (scan of the keys 0 to F) is completed.
FNC70-FNC79 External FX I/O Device
FNC80-FNC89 External FX Device
Though the contents of do not change, to +7 turn OFF.
4. Number of devices occupied
FNC100-FNC109 Data Transfer 2
FNC140-FNC149 Data Operation 2
→ For details, refer to Subsection 36.5.2.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
15 External FX I/O Device – FNC 70 to FNC 79
15.2 FNC 71 – HKY / Hexadecimal Input
D1 S D2 D3
HKY X000 Y000 D 0 M 0
The figure below shows an example of the FX3U series main unit (sink input/sink output). For wiring details, refer to the following manual.


FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
15 External FX I/O Device – FNC 70 to FNC 79
15.3 FNC 72 – DSW / Digital Switch (Thumbwheel Input)
FNC30-FNC39 Rotation and Shift
This instruction reads the set value of digital switches. This instruction can read a set of 4 digits (n = K1) or two sets of 4 digits (n = K2).
32-bit Instruction Mnemonic Operation Condition
Continuous Operation −
2. Set data
Operand Type Description Data Type
Head device (X) number connected to a digital switch (Four devices are occupied.) Bit
Head device (Y) number to which the strobe signal is output (Four devices are occupied.) Bit
Device number storing the numeric value of a digital switch ("n" devices are occupied.) 16-bit binary
n Total number of 4-digit switch sets (4 digits/set) (n = 1 or 2) 16-bit binary
Bit Devices Word Devices Others
System User Digit Specification System User Special
FNC70-FNC79 External FX I/O Device
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 S1 S2 3 3 3
FNC80-FNC89 External FX Device
S1: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S2: This function is supported only in FX3U/FX3UC PLCs.
FNC100-FNC109 Data Transfer 2
The value of each digital switch connected to is input by the time division method (in which the value is input in
turn from the 1st digit by the output signal at the interval of 100 ms), and stored to .
- The first set is stored to , and the second set is stored to +1.
FNC140-FNC149 Data Operation 2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
15 External FX I/O Device – FNC 70 to FNC 79
15.3 FNC 72 – DSW / Digital Switch (Thumbwheel Input)
A 4-digit BCD digital switch connected to to +3 is read in turn by the strobe signal to
+3, and stored in binary format to . - When using two sets of 4 digits [n = k2]
A 4-digit BCD digital switch connected to to +3 is read in turn by the strobe signal to
D 1 D 2
+3, and stored in binary format to .
A 4-digit BCD digital switch connected to +4 to +7 is read in turn by the strobe signal to
D 1 D 2
+3, and stored in binary format to +1.
→ For the instruction execution complete flag use method, refer to Subsection 6.5.2.

OFF: Data is being output to to +3 or the instruction is not executed yet.
ON: A cycle operation of outputting data to to +3 (scan of the 1st to 4th digits) is completed.
1. When the command contact turns OFF
Though the contents of do not change, all of to +3 turn OFF.
2. Number of occupied devices
used, eight devices are occupied starting from .
It is not necessary to wire the strobe signal (output for digit specification) to unused digits. Because unused digits are occupied also by this instruction, however, they cannot be used for any other purpose. Make sure to leave unused outputs are left vacant.
→ For a relay type PLC, refer to "4. How to use this instruction in a relay output type PLC" later.
In the program example shown below, digital switches are connected to inputs starting from X010 and outputs from Y010.
n D1 S D2
DSW X010 Y010 D 0 K 1

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
15 External FX I/O Device – FNC 70 to FNC 79
FNC30-FNC39 Rotation and Shift
103 102 101 100 To second set
103 102 101 100 BCD type digital switch
BCD type digital switch
Diode of 0.1 A, 50 V is required.
4 3 2 1 To second set 8 4 2 1
1 2 4 8
Inputs of second set 0V 24V
S/S X010 X011 X012 X013 X015 X014 X016 X017
Inputs of first set
COM3 Y010 Y011 Y012 Y013
103 102 101 100
FNC70-FNC79 External FX I/O Device
operation 0.1 sec 0.1 sec 0.1 sec
0.1 sec
0.1 sec
FNC80-FNC89 External FX Device
0.1 sec
While X000 is ON, Y010 to Y013 turn ON in turn at every 100 ms. After one cycle is finished, the execution complete flag M8029 turns ON.
FNC100-FNC109 Data Transfer 2
M 0
DSW X010 Y010 D 0 K 1
M8029
RST M 0
FNC140-FNC149 Data Operation 2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
15 External FX I/O Device – FNC 70 to FNC 79
15.4 FNC 73 – SEGD / Seven Segment Decoder
This instruction decodes data, and turns the seven-segment display unit (1 digit) ON.

Operand Type Description Data Type
Head word device to be decoded 16-bit binary
Word device number storing the data to be displayed in the seven-segment display unit 16-bit binary

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
1. 16-bit operation (SEGD and SEGDP)
"0" to "F" (hexadecimal numbers) in low-order 4 bits (1 digit) of are decoded to data for the seven-segment
display unit, and stored in the low-order 8 bits of .
Command · input FNC 73

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
15 External FX I/O Device – FNC 70 to FNC 79
FNC30-FNC39 Rotation and Shift
b3 b2 b1 b0 B15 ... B8 B7 B6 B5 B4 B3 B2 B1 B0
0 − − 0 0 1
1 0 0 0 1 − − 0 1 1 0
2 0 0 1 0 − − 0 1 0 1 1 0 1 1
3 0 0 1 1 − − 0 1 0 0 1
4 0 1 0 0 − − 0 1 1 0 0 1 1 0
5 0 1 0 1 − − 0 1 1 0 1 1 0 1
6 0 1 1 0 − − 0 1 0 1
7 0 1 1 1 − − 0 0 1 0 0 1 1 1
8 1 0 0 0 − − 0 1
9 1 0 0 1 − − 0 1 1 0 1
A 1 0 1 0 − − 0 1 1 1 0 1 1 1
FNC70-FNC79 External FX I/O Device
B 1 0 1 1 − − 0 1 0 0
C 1 1 0 0 − − 0 0 1 1 1 0 0 1
FNC80-FNC89 External FX Device
E 1 1 1 0 − − 0 1 0 0 1
F 1 − − 0 1 1 1 0 0 0 1
The head bit device or the least significant bit of a word device is handled as B0.
FNC100-FNC109 Data Transfer 2
1. Number of occupied devices
Low-order 8 bits of are occupied, and high-order 8 bits do not change.
FNC140-FNC149 Data Operation 2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
15 External FX I/O Device – FNC 70 to FNC 79
15.5 FNC 74 – SEGL / Seven Segment With Latch
This instruction controls one or two sets of 4-digit seven-segment display units having the latch function.
32-bit Instruction Mnemonic Operation Condition FNC 74
SEGL SEGL
−
2. Set data

Head word device converted into the BCD format 16-bit binary

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 S1 S2 3
S1: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S2: This function is supported only in FX3U/FX3UC PLCs.
1. 16-bit operation (SEGL)
The 4-digit numeric value stored in is converted into BCD data, and each digit is output to the seven-segment display unit with the BCD decoder by the time division method.
SEGL n S D
→ For selection of "n", refer to Subsection 15.5.2.
A 4-digit numeric value stored in is converted from binary into BCD, and each digit is output in turn from
to +3 by the time division method.
The strobe signal is output in turn from +4 to +7 by the time division method also to latch one set of 4-digit seven-segment display unit.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
15 External FX I/O Device – FNC 70 to FNC 79
FNC30-FNC39 Rotation and Shift
PLC (transistor output type)
D D D D D D D D
100 4 2 8 1
101 102 103
103 102 101 100
1 2 4 8
→ For selection of "n", refer to Subsection 15.5.2.
A 4-digit numeric value stored in is converted from binary into BCD, and its each digit is output in turn
from to +3 by the time division method.
The strobe signal is output in turn from +4 to +7 by the time division method also to latch the first set of 4-digit seven-segment display unit. b) 2nd set of 4 digits
FNC70-FNC79 External FX I/O Device
A 4-digit numeric value stored in +1 is converted from binary into BCD, and its each digit is output in
turn from +10 to +13 by the time division method.
The strobe signal is output in turn from +4 to +7 by the time division method also to latch the
second set of 4-digit seven-segment display unit. (The strobe signal outputs +4 to +7 are shared by the 1st and 2nd sets.)
FNC80-FNC89 External FX Device
FNC100-FNC109 Data Transfer 2
PLC (transistor output type)
+2 +3 +4 +6 +7 +5 D D D D D D D D
+10 +11 +12 +13 D D D D COM
100 4 2 8 1
101 102 103
4 2 8 1
103 102 101 100
103 102 101 100
V+ 1 2 4 8
1 2 4 8
FNC140-FNC149 Data Operation 2
→ For the instruction execution complete flag use method, refer to Subsection 6.5.2.
M8029 Instruction execution com-
plete flag Turns ON when output of 4 digits is finished.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
15 External FX I/O Device – FNC 70 to FNC 79
15.5 FNC 74 – SEGL / Seven Segment With Latch
When one set of 4 digits is used: 1 device is occupied from the head device specified in .
8 devices are occupied from the head device specified in . Even if the number of digits is smaller than 4, unused devices cannot be used for any other purpose.
When two sets of 4 digits are used: 2 devices are occupied from the head device specified in .
Twelve devices are occupied from the head device specified in . Even if the number of digits is smaller than 4, unused devices cannot be used for any other purpose.
→ For details, refer to Subsection 36.5.2.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
15 External FX I/O Device – FNC 70 to FNC 79
FNC30-FNC39 Rotation and Shift
When selecting a seven-segment display unit based on its electrical characteristics, refer to the manual below:
→ For the wiring, refer to the Hardware Edition of the PLC used.
The value set to the parameter "n" varies depending on the signal logic of the seven-segment display. Select "n" as described below. The check column is provided at the bottom of the table. Check a corresponding type of logic (positive or negative), and utilize it for parameter setting.
Logic Negative logic Positive logic
FNC70-FNC79 External FX I/O Device
Output type Sink output (− common) Source output (+ common)
+V0
ON
HIGH
FNC80-FNC89 External FX Device
Y000
ON
LOW
COM1
PLC
PLC
Because transistor output (sink) is provided, the output becomes low level (0 V) when the internal logic is "1 (ON output)". This is called "negative logic".
Because transistor output (source) is provided, the output becomes high level (V+) when the internal logic is "1 (ON output)". This is called "positive logic".
FNC100-FNC109 Data Transfer 2
FNC140-FNC149 Data Operation 2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
15 External FX I/O Device – FNC 70 to FNC 79
15.5 FNC 74 – SEGL / Seven Segment With Latch

Description BCD data at low level BCD data at high level

Description Data latched at low level is held. Data latched at high level is held.

4 digits × 1 set 4 digits × 2 sets

4 digits × 1 set 4 digits × 2 sets

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
15 External FX I/O Device – FNC 70 to FNC 79
15.6 FNC 75 – ARWS / Arrow Switch
FNC30-FNC39 Rotation and Shift
This instruction inputs data through arrow switches used for shifting the digit and incrementing/decrementing the numeric value in each digit.
32-bit Instruction Mnemonic Operation Condition
Continuous Operation −
2. Set data
Operand Type Description Data Type
Head bit device number to be input Bit
Word device number storing data converted into BCD 16-bit binary
Head bit device (Y) number connected to seven-segment display unit Bit
n Number of digits of seven-segment display unit [setting range: K0 to K3] 16-bit binary
Bit Devices Word Devices Others
System User Digit Specification System User Special
FNC70-FNC79 External FX I/O Device
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
FNC80-FNC89 External FX Device
S: "D .b" cannot be indexed with index registers (V and Z).
Four arrow switches are connected to the inputs to +3, a seven-segment display unit having the BCD
decoder is connected to the outputs to +7, and a numeric value is input to .
FNC100-FNC109 Data Transfer 2
actually stores a 16-bit binary value ranging from 0 to 9999, but the value is expressed in the BCD format in the explanation below for convenience. When the command input is set to ON, the ARWS instruction executes the following operation.
ARWS n D1 S D2
FNC140-FNC149 Data Operation 2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
15 External FX I/O Device – FNC 70 to FNC 79
15.6 FNC 75 – ARWS / Arrow Switch

Seven-segment display unit Equipped with the latch function so that a numeric value being set can be seen.
Arrow switches Provided to select a digit and increment or decrement the numeric value in the selected digit.
2) Operation of the digit selection switches ( +2 and +3) - Operation when the lower digit input +2 turns ON Every time the lower digit switch is pressed, the digit specification changes in the way "103 → 102 → 101 → 100 → 103". - Operation when the higher digit input +3 turns ON Every time the higher digit switch is pressed, the digit specification changes in the way "103 → 100 → 101 → 102 → 103".
A specified digit can be displayed by the LED offered by the strobe signals +4 to +7.
Every time the increment switch is pressed, the contents of change in the way "0 → 1 → 2 → ... → 8 → 9 → 0 → 1". - When the decrement input turns ON
Every time the decrement switch is pressed, the contents of change in the way "0 → 9 → 8 → 7 ... 1 → 0 → 9". The contents can be displayed in the seven-segment display unit.
As described above, a target numeric value can be written to using a series of operation while looking at the seven-segment display unit.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
15 External FX I/O Device – FNC 70 to FNC 79
FNC30-FNC39 Rotation and Shift
→ For the parameter setting, refer to Subsection 15.5.2.
1. When changing the timer number and displaying the current value
FNC70-FNC79 External FX I/O Device
FNC80-FNC89 External FX Device
Y011
Y010
Y004
FNC100-FNC109 Data Transfer 2
Y014
Y002
Y015
Set Write X004 X003 X002 X000
Explanation of operation Every time the read/write key is pressed, the read/write LED lights alternately.
FNC140-FNC149 Data Operation 2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
15 External FX I/O Device – FNC 70 to FNC 79
15.6 FNC 75 – ARWS / Arrow Switch

Digital switch → Z 4 digits × 1 set
(M 0 to M 3) → (D511) → (Y000 to Y007) → Seven-segment display unit

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
15 External FX I/O Device – FNC 70 to FNC 79
15.7 FNC 76 – ASC / ASCII Code Data Input
FNC30-FNC39 Rotation and Shift
This instruction converts a half-width alphanumeric character string into ASCII codes. Use this instruction for selecting one among two or more messages and displaying it on an external display unit.
32-bit Instruction Mnemonic Operation Condition
2. Set data
Operand Type Description Data Type
Eight half-width alphanumeric characters input from a personal computer*1 Character string (only ASCII codes)
Head word device number storing ASCII data 16-bit binary
*1. The number of characters is fixed to 8. When ASCII code less than 8 characters is input, the space character (H20) is stored in remaining .
Bit Devices Word Devices Others
System User Digit Specification System User Special
FNC70-FNC79 External FX I/O Device
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
*2. It is not necessary to attach quotes (" ") to the character string specified in .
FNC80-FNC89 External FX Device
1. 16-bit operation (ASC)
The half-width alphanumeric characters specified in are converted into ASCII codes, and each ASCII code is
transferred in turn to .
FNC100-FNC109 Data Transfer 2
D 42 (B) 41 (A)
46 (F) 45 (E)
48 (H) 47 (G)
FNC140-FNC149 Data Operation 2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
15 External FX I/O Device – FNC 70 to FNC 79
15.7 FNC 76 – ASC / ASCII Code Data Input
When M8161 is set to ON for making the extension function valid, a half-width alphanumeric character string specified
in is converted into ASCII codes, and transferred in turn only to low-order 8 bits (1 byte) of .

"H00" is stored in high-order 8 bits.


8-bit processing mode for ASC (FNC 76), RS (FNC 80), ASCI (FNC 82), HEX (FNC 83) and CCD (FNC 84) instructions OFF: Two characters are stored to low-order 8 bits and high-order 8 bits in this order at one time (2 characters/word). ON: One character is stored to low-order 8 bits at one time (1 character/word).
1. Number of occupied devices
- Four devices are occupied from .
- Eight devices are occupied from .

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
15 External FX I/O Device – FNC 70 to FNC 79
15.8 FNC 77 – PR / Print (ASCII Code)
FNC30-FNC39 Rotation and Shift
This instruction outputs ASCII code data to outputs (Y) in parallel.
32-bit Instruction Mnemonic Operation Condition
2. Set data
Operand Type Description Data Type
Head device number storing ASCII code data Character string (only ASCII codes)
Head output (Y) number to which ASCII code data is output Bit
Bit Devices Word Devices Others
System User Digit Specification System User Special
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
FNC70-FNC79 External FX I/O Device
1. 16-bit operation (PR)
ASCII codes stored of to +3 are output to to +7 in turn by one character at a time in the time division method.
FNC80-FNC89 External FX Device
Eight bytes are sent from the low-order 8 bits (1 byte) of first to the high-order 8 bits (1 byte) of +3 at the end.
When data is stored from to +3 as shown in the table below, data is sent in the order of A to H of "2. Timing chart".
FNC100-FNC109 Data Transfer 2
+1 +2 +3 high-order 8 bits low-order 8 bits high-order 8 bits low-order 8 bits high-order 8 bits low-order 8 bits high-order 8 bits low-order 8 bits B (H42) A (H41) D (H44) C (H43) F (H46) E (H45) H (H48) G (H47)
2. Timing chart
A B C D H
D D
T0: Scan time (ms)
FNC140-FNC149 Data Operation 2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
15 External FX I/O Device – FNC 70 to FNC 79
15.8 FNC 77 – PR / Print (ASCII Code)
A6FD*1, for example). It is supposed that data to be displayed is stored in hexadecimal codes in D300 to D307.
D300 Y020
PR
The PLC shown in the example below is the FX2N-16EYT (sink output) connected to the FX3U-32M .

Y033 COM1 Y020 Y021 Y022 Y023 Y024 Y025 Y026 Y027 COM2 Y030
D 0 D 1 D 2 D 3 D 4 D 5 D 6 D 7
*1. A6FD was distributed only inside Japan, however, production of the external display unit A6FD was terminated in November 2002.

Operation is started when X000 turns ON from OFF.
*2. If "H00 (NULL code)" is contained in the data (16 characters), the character just before "H00 (NULL code)" is handled as the last character.
M8027*3 PR mode OFF: 8-byte serial output (fixed to 8 characters) ON: 16-byte serial output (1 to 16 characters)
*3. Cleared when the PR mode is changed from RUN to STOP.
Device Name Description

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
15 External FX I/O Device – FNC 70 to FNC 79
FNC30-FNC39 Rotation and Shift
→ For details, refer to Subsection 36.5.2.
FNC70-FNC79 External FX I/O Device
FNC80-FNC89 External FX Device
FNC100-FNC109 Data Transfer 2
FNC140-FNC149 Data Operation 2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
15 External FX I/O Device – FNC 70 to FNC 79
15.9 FNC 78 – FROM / Read From A Special Function Block
This instruction reads the contents of buffer memories (BMF) in a special function unit/block attached to a PLC. When a large capacity of buffer memory (BFM) data is read by this instruction, a watchdog timer error may occur. When bad effect is not given to the control even if data to be read is divided, use RBFM (FNC278) instruction.
→ For RBFM (FNC278) instruction, refer to Section 31.1.


m1 Unit number of a special extension unit/block (K0 to K7 from the right side of the main unit) 16- or 32-bit binary
m2 Transfer source buffer memory (BFM) number 16- or 32-bit binary

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
refer to Subsection 15.9.1.
Special extension unit/block (BFM) → PLC (word device) "n"-point 16-bit data starting from the buffer memory (BFM) # m2 inside a special function unit/block No. m1 are
transferred (read) to "n"-point 16-bit data starting from inside a PLC.

Number of transfer points n = 1 to 32767
Transfer source BFM# (Special extension unit/block) m2 = 0 to 32766

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
15 External FX I/O Device – FNC 70 to FNC 79
15.9 FNC 78 – FROM / Read From A Special Function Block 11
FNC30-FNC39 Rotation and Shift
Special extension unit/block (BFM) → PLC (word device) "n" 32-bit data starting from the buffer memory (BFM) # [m2+1, m2] inside a special extension unit/block No. m1 are
transferred (read) to "n" devices starting from [ +1, ] inside a PLC.
input FNC 78 DFROM m1 m2 n D
Number of transfer points n = 1 to 16383
Transfer source BFM# (Special extension unit/block) m2 = 0 to 32765
Unit No. m1 = 0 to 7
Disables or enables interrupts while FROM/TO instruction is executed. → For details, refer to "Acceptance of interrupts while FROM/TO instruction is executed
(M8028)" on the next page. OFF: Disables interrupts. (Interrupts are executed after FROM/TO instruction is executed.) ON: Enables interrupts.
M8028 Enable interrupt flag
FNC70-FNC79 External FX I/O Device
FNC80-FNC89 External FX Device
FNC100-FNC109 Data Transfer 2
FNC140-FNC149 Data Operation 2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
15 External FX I/O Device – FNC 70 to FNC 79
15.9 FNC 78 – FROM / Read From A Special Function Block
In programs, the contents of buffer memories (BFMs) in special extension units/blocks are read (transferred) to data registers (D), extension registers (R) and auxiliary relays (M) with digit specification using the FROM instruction and
direct specification of buffer memories*1.
*1. This function is supported only in FX3U/FX3UC PLCs.
Example: When the BFM#4 (abnormal station information) in the CC-Link/LT master unit (whose unit number is fixed
to "0") built in the FX3UC-32MT-LT(-2) is read to D0 -In case of FROM instruction
FROM K0 K4 D0 K1
Unit No. 0
-In case of MOV instruction
MOV U0\G4 D0
Unit No. 0
Example: When the BFMs#0 to 3 (remote station connection information) in the CC-Link/LT master unit (whose unit
number is fixed to "0") built in the FX3UC-32MT-LT(-2) are read to D10 to D13 -In case of FROM instruction
FNC 78 FROMP K0 K0 D10 K4
Unit No. 0
-In case of BMOV instruction
FNC 15 BMOVP U0\G0 D10
K4
Unit No. 0

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
15 External FX I/O Device – FNC 70 to FNC 79
15.9 FNC 78 – FROM / Read From A Special Function Block 11
FNC30-FNC39 Rotation and Shift
Unit No. 0 Built-in CC-Link/LT
Unit No.1
Unit No.2
Unit No.3
FX3UC- 32MT- LT(-2) main unit
A unit number is automatically assigned to each special extension unit/block connected to a PLC. The unit number is assigned in the way "No. 0 → No. 1 → No. 2 ..." starting from the equipment nearest to the main unit. When the main unit is the FX3UC-32MT-LT(-2), the unit number is assigned in the way "No. 1 → No. 2 → No. 3 ..." starting from the equipment nearest to the main unit because the CC-Link/LT master is built into the FX3UC-32MT-LT (-2).
FNC70-FNC79 External FX I/O Device
16 bits ← Specified BFM number
FNC80-FNC89 External FX Device
Specify the number of transferred word devices in "n". "n =2" in a 16-bit instruction indicates the same meaning with "n = 1" in a 32-bit instruction.
Specified devices Specified BFMs
Specified devices Specified BFMs
FNC100-FNC109 Data Transfer 2
BFM#5
D100 D101 D102 D103
BFM#5
#6 #7 #8 #9
In the case of "n = 5" in a 16-bit
In the case of "n = 2" in a 32-bit
FNC140-FNC149 Data Operation 2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
15 External FX I/O Device – FNC 70 to FNC 79
15.9 FNC 78 – FROM / Read From A Special Function Block
→ For divided BFM read [RBFM (FNC278) instruction], refer to Section 31.1. → For divided BFM write [WBFM (FNC279) instruction], refer to Section 31.2.
Watchdog timer refresh If WDT (FNC 07) instruction is not programmed, the value of D8000 is valid during END processing.
For the special extension unit/block connection method, number of connectable special extension units/blocks and handling of I/O numbers, refer to the manuals of the PLC and each special extension unit/block.
Initial pulse

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
15 External FX I/O Device – FNC 70 to FNC 79
15.10 FNC 79 – TO / Write To A Special Function Block 11
FNC30-FNC39 Rotation and Shift
This instruction writes data from a PLC to buffer memories (BFM) in a special function unit/block. When a large capacity of data is written to buffer memories (BFM) by this instruction, a watchdog timer error may occur. When splitting the data to be written does not affect the control, use WBFM (FNC279) instruction.
→ For WBFM (FNC279) instruction, refer to Section 31.2.
P FNC 79
Mnemonic Operation Condition 32-bit Instruction
Continuous Operation Pulse (Single) Operation
17 steps Continuous Operation Pulse (Single) Operation
DTOP
2. Set data
Operand Type Description Data Type
m1 Unit number of a special extension unit/block (K0 to K7 from the right side of the main unit) 16- or 32-bit binary
m2 Transfer destination buffer memory (BFM) number 16- or 32-bit binary
Device number storing the transfer source data 16- or 32-bit binary
n Number of transfer points 16- or 32-bit binary
Bit Devices Word Devices Others
FNC70-FNC79 External FX I/O Device
System User Digit Specification System User Special
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
m1 3
m2 3
3
FNC80-FNC89 External FX Device
n 3
FNC100-FNC109 Data Transfer 2
PLC (word device) → Special extension unit/block (BFM)
"n"-point 16-bit data starting from inside a PLC are transferred (written) to "n"-point buffer memories starting from the buffer memory (BFM) # m2 inside a special function unit/block No. m1.
TO m1 m2 n S
Number of transfer points n = 1 to 32767
Transfer destination (Special extension unit/block) BFM# m2 = 0 to 32766
Unit No. m1 = 0 to 7
FNC140-FNC149 Data Operation 2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
15 External FX I/O Device – FNC 70 to FNC 79
15.10 FNC 79 – TO / Write To A Special Function Block
PLC (word device) → Special extension unit/block (BFM)
"n"-point 32-bit data starting from [ , +1] inside a PLC are transferred (written) to "n"-point buffer memories starting from the buffer memory (BFM) # [m2+1, m2] inside a special extension unit/block No. m1.

Number of transfer points n = 1 to 16383
Transfer destination (Special extension unit/block) BFM# m2 = 0 to 32765

Disables or enables interrupts while FROM/TO instruction is executed.
→ For details, refer to "Acceptance of interrupt while FROM/TO instruction is executed
(M8028)" in Subsection 15.9.1. OFF: Disables interrupts. (Interrupts are executed after FROM/TO instruction is executed.) ON: Enables interrupts.
In programs, the contents of data registers (D), extension registers (R), auxiliary relays (M) with digit specification and constants (K and H) are written (transferred) to buffer memories (BFMs) in special extension units/blocks using the TO
instruction and direct specification of buffer memories*1.
*1. This function is supported only in FX3U/FX3UC PLCs.
Example: When writing "H0" to the BFM#27 (command) in the CC-Link/LT master unit (whose unit number is fixed to
"0") built in the FX3UC-32MT-LT(-2) -In case of TO instruction
TOP K0 K27 H0 K1
Unit No. 0
-In case of MOV instruction
MOVP H0 U0\G27
Unit No. 0

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
16 External FX Device – FNC 80 to FNC 89

FNC 80 to FNC 89 provide control instructions for special adapters mainly connected to serial ports. PID control loop instruction is included in this group.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
16 External FX Device – FNC 80 to FNC 89
16.1 FNC 80 – RS / Serial Communication
This instruction sends and receives data using non-protocol communication by way of a serial port (only ch1) in accordance with RS-232C or RS-485 provided in the main unit.
Mnemonic Operation Condition 16-bit Instruction
2. Set data

Head device of data registers storing data to be sent 16-bit binary or character string
m Number of bytes of data to be sent [setting range: 0 to 4096] 16-bit binary
Head device of data registers storing received data when receiving is completed 16-bit binary or character string
n Number of bytes to be received [setting range: 0 to 4096] 16-bit binary

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
S: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs.
→ For detailed explanation, refer to the Data Communication Edition manual.
input D n
RS m S

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
16 External FX Device – FNC 80 to FNC 89
FNC30-FNC39 Rotation and Shift
→ For detailed explanation, refer to the Data Communication Edition manual.
Device Name Device Name
M8063*1 Serial communication error 1 D8063*1 Error code number of serial communication error
M8121*2 Sending wait flag D8120*3 Communication format setting
M8122*2 Sending request D8122*4 Remaining amount of data to be sent
M8123*2 Receiving complete flag D8123*4 Amount of data already received
M8124 Carrier detection flag D8124 Header
M8129 Time-out check flag D8125 Terminator
M8161*4 8-bit processing mode D8129*3 Time-out time setting
D8405 Communication parameter display
D8419 Operation mode display
*1. Cleared when PLC power supply is turned from OFF to ON (in FX3S, FX3G, FX3GC, FX3U and FX3UC PLCs). Cleared when the PLC mode is changed from STOP to RUN (in other PLCs).
*3. Latched (battery or EEPROM backed).
*4. Cleared when the PLC mode is changed from RUN to STOP.
To use this instruction, it is necessary to attach one of the products shown in the table below to the main unit.
→ For the system configuration, refer to the respective PLC Hardware Edition manual.
→ For detailed explanation, refer to the Data Communication Edition manual.
FNC70-FNC79 External FX I/O Device
PLC Communication type Option
RS-232C communication FX3G-232-BD or FX3U-232ADP(-MB) (with FX3S-CNV-ADP)
RS-485 communication FX3G-485-BD(-RJ) or FX3U-485ADP(-MB) (with FX3S-CNV-ADP)
RS-232C communication FX3G-232-BD or FX3U-232ADP(-MB) (with FX3G-CNV-ADP)
RS-485 communication FX3G-485-BD(-RJ) or FX3U-485ADP(-MB) (with FX3G-CNV-ADP)
FNC80-FNC89 External FX Device
RS-232C communication FX3U-232ADP(-MB)
RS-485 communication FX3U-485ADP(-MB)
RS-232C communication FX3U-232-BD or FX3U-232ADP(-MB) (with FX3U-CNV-BD)
RS-485 communication FX3U-485-BD or FX3U-485ADP(-MB) (with FX3U-CNV-BD)
FNC100-FNC109 Data Transfer 2
Header size 1 to 4 characters (bytes) Up to 1 character (byte) For the RS2 instruction, up to 4 characters (bytes) can be specified as a header or terminator. Terminator size 1 to 4 characters (bytes) Up to 1 character (byte)
For the RS2 instruction, the check sum can be automatically attached to the sent and received data. In this case, however, make sure to use a terminator with the communication frame to be sent and received.
The check sum should be attached by a user program.
Attachment of check sum
The check sum can be automatically attached.
For the RS2 instruction: Ch0 is available only in FX3G/FX3GC PLCs. Ch2 is not available in FX3G PLC (14-point and 24-point type) and FX3S PLC.
Used channel number ch0, ch1, ch2 ch1
FNC140-FNC149 Data Operation 2
→ For other cautions, refer to the Data Communication Edition manual.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
16 External FX Device – FNC 80 to FNC 89
16.2 FNC 81 – PRUN / Parallel Run (Octal Mode)

This instruction handles the device number of with digit specification and the device number of as octal numbers, and transfers data.

Operand type Description Data type
Digit specification*1 16- or 32-bit binary
Device number of transfer destination*1 16- or 32-bit binary
*1. Make sure that the least significant digit of a specified device number is "0".

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
1. 16-bit operation (PRUN and PRUNP)
Octal bit device → Decimal bit device

X000 to X017 → M0 to M7, M10 to M17
X17 X16 X15 X14 X13 X12 X11 X10 X7 X6 X5 X4 X3 X2 X1 X0
M15 M14 M13 M12 M11 M9 M8 M7 M6 M5 M4 M3 M2 M1 M0 M17 M16 M10
M8 and M9 do not change Decimal bit device (M)

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
16 External FX Device – FNC 80 to FNC 89

M0 to M7, M10 to M17 → Y0 to Y17
M15 M14 M13 M12 M11 M9 M8 M7 M6 M5 M4 M3 M2 M1 M0 M17 M16 M10
Y17 Y16 Y15 Y14 Y13 Y12 Y11 Y10 Y7 Y6 Y5 Y4 Y3 Y2 Y1 Y0
X000 to X027 → M0 to M7, M10 to M17, M20 to M27
X27 … X20 X17 … X10 X7 X6 X5 X4 X3 X2 X1 X0
M19 M18 M17 … M9 M8 M7 M6 M5 M4 M3 M2 M1 M0 M27 …
M18 and M19 do not change Decimal bit device (M)
M0 to M7, M10 to M17, M20 to M27 → Y000 to Y027
M19 M18 M17 … M9 M8 M7 M6 M5 M4 M3 M2 M1 M0 M27 …
Y27 … Y20 Y17 … Y10 Y7 Y6 Y5 Y4 Y3 Y2 Y1 Y0

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
16 External FX Device – FNC 80 to FNC 89
16.3 FNC 82 – ASCI / Hexadecimal to ASCII Conversion
This instruction converts hexadecimal code into ASCII code. On the other hand, BINDA (FNC261) instruction converts binary data into ASCII code, and ESTR (FNC116) instruction converts binary floating point data into ASCII code.
→ For BINDA (FNC261) instruction, refer to Section 29.6.
→ For ESTR (FNC116) instruction, refer to Section 18.4.


Head device number storing hexadecimal code to be converted 16-bit binary
Head device number storing converted ASCII code Character string (only ASCII code)
n Number of characters (digits) of hexadecimal code to be converted [setting range: 1 to 256] 16-bit binary

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 S1 S2 3
3 S1 S2 3
S1: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S2: This function is supported only in FX3U/FX3UC PLCs.
1. 16-bit operation (ASCI and ASCIP)
"n" hexadecimal code characters (digits) stored in and later are converted into ASCII code, and then stored to
the devices and later. The 16-bit mode and 8-bit mode options are available for this instruction. For operation in each mode, refer to the proceeding pages.
ASCI n S
Command · input D
![Page 463 of the Mitsubishi Electronics MELSEC FX3S user manual — [C] → 43H [B] → 42H](/cdn/reader/06/06b6c5c8bfa3e981e964d8ed7432322fb86c682a85757d292a29f9cec2d4294a/images/page-463.webp?w=400)
FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
16 External FX Device – FNC 80 to FNC 89
FNC30-FNC39 Rotation and Shift
Each digit of hexadecimal data stored in and later is converted into ASCII code, and transferred to the high-
order 8 bits and low-order 8 bits of each device and later. The number of digits (characters) to be converted is specified by "n".
Each ASCII code is stored in either the high-order 8 bits or low-order 8 bits of each device and later. M8161 is used also for RS, HEX, CCD and CRC instructions. When using the 16-bit mode, set M8161 to normally OFF. M8161 is cleared when the PLC mode is changed from RUN to STOP.
ASCI n S
Operation In the following program, conversion is executed as follows:
ASCI D100 D200 K4 X010
Devices after D100 = 0ABCH D101 = 1234H D102 = 5678H
FNC70-FNC79 External FX I/O Device
K1 K2 K3 K4 K5 K6 K7 K8 K9
Low-order 8 bits of D200 [C] [B] [A] [0] [4] [3] [2] [1] [8]
FNC80-FNC89 External FX Device
High-order 8 bits of D200 [C] [B] [A] [0] [4] [3] [2] [1]
Low-order 8 bits of D201 [C] [B] [A] [0] [4] [3] [2]
High-order 8 bits of D201 [C] [B] [A] [0] [4] [3]
Low-order 8 bits of D202 [C] [B] [A] [0] [4]
High-order 8 bits of D202 [C] [B] [A] [0]
Low-order 8 bits of D203 Does not change [C] [B] [A]
FNC100-FNC109 Data Transfer 2
High-order 8 bits of D203 [C] [B]
Low-order 8 bits of D204 [C]
0 0 1 0 1 0 1 0 1 0 D 100 = 0ABCH
ASCII code [0] = 30H [1] = 31H [5] = 35H [A] = 41H [2] = 32H [6] = 36H [B] = 42H [3] = 33H [7] = 37H [C] = 43H [4] = 34H [8] = 38H
0 1 1 0 0 1 0 1 0
0 1 0 1 0 1 1 0 1 0
FNC140-FNC149 Data Operation 2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
16 External FX Device – FNC 80 to FNC 89
16.3 FNC 82 – ASCI / Hexadecimal to ASCII Conversion
Each digit of hexadecimal data stored in and later is converted into an ASCII code, and transferred to low-order
8 bits of each device and later. The number of digits (characters) to be converted is specified by "n". "0" is
stored in high-order 8 bits of each device and later. M8161 is used also for the RS, HEX, CCD and CRC instructions. When using the 8-bit mode, set M8161 to normally ON. M8161 is cleared when the PLC mode is changed from RUN to STOP.

When M8161 is set to ON, the 8-bit mode is selected. The conversion processing is executed as follows
Operation In the following program, conversion is executed as follows:

Devices after D100 = 0ABCH D101 = 1234H D102 = 5678H

K1 K2 K3 K4 K5 K6 K7 K8 K9
D 200 [C] [B] [A] [0] [4] [3] [2] [1] [8]
D 201 [C] [B] [A] [0] [4] [3] [2] [1]
D 202 [C] [B] [A] [0] [4] [3] [2]

0 0 1 0 1 0 1 0 1 0
ASCII codes [0] = 30H [1] = 31H [5] = 35H [A] = 41H [2] = 32H [6] = 36H [B] = 42H [3] = 33H [7] = 37H [C] = 43H [4] = 34H [8] = 38H
0 1 0 1 0
1 1 0 1 0

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
16 External FX Device – FNC 80 to FNC 89
16.4 FNC 83 – HEX / ASCII to Hexadecimal Conversion
FNC30-FNC39 Rotation and Shift
This instruction converts ASCII codes into hexadecimal codes. On the other hand, DABIN (FNC260) instruction converts ASCII codes into binary data, and EVAL (FNC117) instruction converts ASCII codes into binary floating point data.
→ For DABIN (FNC260) instruction, refer to Section 29.5.
→ For EVAL (FNC117) instruction, refer to Section 18.5.
P FNC 83
Mnemonic Operation Condition 16-bit Instruction
Continuous Operation Pulse (Single) Operation
2. Set data
Operand type Description Data type
Head device number storing ASCII code to be converted Character string
(only ASCII code)*1
Head device number storing converted hexadecimal code 16-bit binary
n Number of ASCII codes (bytes) to be converted [setting range: 1 to 256] 16-bit binary
*1. Make sure to use only ASCII codes "0" to "9" and "A" to "F".
FNC70-FNC79 External FX I/O Device
Bit Devices Word Devices Others
System User Digit Specification System User Special
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
FNC80-FNC89 External FX Device
3 S1 S2 3 3 3
3 S1 S2 3 3 3
n 3 S1 3 3
S1: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S2: This function is supported only in FX3U/FX3UC PLCs.
FNC100-FNC109 Data Transfer 2
1. 16-bit operation (HEX and HEXP)
Among the ASCII codes stored in and later, "n" characters are converted into hexadecimal codes, and then
stored to the devices and later. The 16-bit mode and 8-bit mode are available for this instruction. For operation in each mode, refer to the proceeding pages.
HEX n S
FNC140-FNC149 Data Operation 2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
16 External FX Device – FNC 80 to FNC 89
16.4 FNC 83 – HEX / ASCII to Hexadecimal Conversion
Each ASCII code stored in high-order 8 bits and low-order 8 bits of devices and later is converted into a
hexadecimal code, and transferred to devices and later in units of 4 digits. The number of characters to be converted is specified by "n". M8161 is used also for the RS, ASCI, CCD and CRC instructions. When using the 16-bit mode, set M8161 to normally OFF. M8161 is cleared when the PLC mode is changed from RUN to STOP.

Operation In the following program, conversion is executed as follows:


Number of specified characters and conversion result " • " indicates "0".

hexadecimal code is disabled. Especially, note that ASCII code should be stored in high-order 8 bits of also when M8161 is OFF.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
16 External FX Device – FNC 80 to FNC 89
FNC30-FNC39 Rotation and Shift
Each ASCII code stored in the low-order 8 bits of each device and later is converted into a hexadecimal code,
and transferred to device and later in 4-digits units. The number of characters to be converted is specified by "n". M8161 is also used for the RS, ASCI, CCD and CRC instructions. When using the 8-bit mode, set M8161 to normally ON. M8161 is cleared when the PLC mode is changed from RUN to STOP.
Ignored Low-order 8 bits
HEX n S
Operation In the following program, conversion is executed as follows:
HEX D200 D100 K4 X010
Conversion source data
ASCII code Hexadecimal code
D 201 41H A
FNC70-FNC79 External FX I/O Device
D 203 43H C
D 204 31H 1
D 205 32H 2
D 206 33H 3
D 207 34H 4
FNC80-FNC89 External FX Device
Number of specified characters and conversion result " • " indicates "0".
In the case of "n = K2"
D 102 D 101 D 100 n
FNC100-FNC109 Data Transfer 2
4 0ABCH
41H → [A]
7 • 0ABH C123H
8 0ABCH 1234H
FNC140-FNC149 Data Operation 2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
16 External FX Device – FNC 80 to FNC 89
16.5 FNC 84 – CCD / Check Code
This instruction calculates the horizontal parity value and sum check value in the error check methods used in communication. There is another check method, CRC (cyclic redundancy check) also. For obtaining CRC value, use CRC instruction.
→ For CRC instruction, refer to Section 24.4. → For complement [NEG (FNC 29) instruction], refer to Section 10.10.


Head device number of applicable device 16-bit binary or character string
Head device number storing the calculated data 16-bit binary or character string
n Number of data [setting range: 1 to 256] 16-bit binary

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 S1 S2 3
S1: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S2: This function is supported only in FX3U/FX3UC PLCs.
1. 16-bit operation (CCD and CCDP)
The addition data and horizontal parity value of data stored in to +n-1 are calculated. The addition data is
stored to , and the horizontal parity value is stored to +1. The 16-bit mode and 8-bit mode are available in this instruction. For the operation in each mode, refer to the proceeding pages.
CCD n S
Command · input

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
16 External FX Device – FNC 80 to FNC 89
FNC30-FNC39 Rotation and Shift
With regard to "n" data starting from , the addition data and horizontal parity data of high-order 8 bits and low-
order 8 bits are stored to and +1 respectively. M8161 is used also for the RS, ASCI, HEX and CRC instructions. When using the 16-bit mode, set M8161 to normally OFF. M8161 is cleared when the PLC mode is changed from RUN to STOP.
M8161 M8000
CCD n S
Example of 16-bit conversion In the following program, conversion is executed as follows:
CCD D100 D0 K10 X010
Example of data contents
Low-order 8 bits of D100 K100 = 01100100
High-order 8 bits of D100 K111 = 0110111 (1) ←
Low-order 8 bits of D101 K100 = 01100100
High-order 8 bits of D101 K 98 = 01100010
FNC70-FNC79 External FX I/O Device
Low-order 8 bits of D102 K123 = 0111101 (1) ←
High-order 8 bits of D102 K 66 = 01000010
Low-order 8 bits of D103 K100 = 01100100
High-order 8 bits of D103 K 95 = 0101111 (1) ←
Low-order 8 bits of D104 K210 = 11010010
FNC80-FNC89 External FX Device
High-order 8 bits of D104 K 88 = 01011000
Horizontal parity 1000010 (1) ← When the number of "1" is odd, the horizontal parity is "1". When the number of "1" is even, the horizontal parity is "0".
FNC100-FNC109 Data Transfer 2
1 1 0 1 0 0 0 1 0 D 0 "1091" in BCD
1 0 1 0 1 0 D 1 Horizontal parity
FNC140-FNC149 Data Operation 2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
16 External FX Device – FNC 80 to FNC 89
16.5 FNC 84 – CCD / Check Code
With regard to "n" data starting from , the addition data and horizontal parity data of only low-order 8 bits are
stored to and +1 respectively. M8161 is also used for the RS, ASCI, HEX and CRC instructions. When using the 8-bit mode, set M8161 to normally ON. M8161 is cleared when the PLC mode is changed from RUN to STOP.

Example of 8-bit conversion In the following program, conversion is executed as follows:

Horizontal parity 1000010 (1) ← When the number of "1" is odd, the horizontal parity is "1". When the number of "1" is even, the horizontal parity is "0".
1 1 0 1 0 0 0 1 0 D 0 "1091" in BCD
1 0 1 0 1 0 D 1 Horizontal parity

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
16 External FX Device – FNC 80 to FNC 89
16.6 FNC 85 - VRRD / Volume Read
FNC30-FNC39 Rotation and Shift
This instruction reads the analog value of a variable analog potentiometer board attached to the PLC main unit.
32-bit Instruction P FNC 85
Mnemonic Operation Condition 16-bit Instruction
Continuous Operation Pulse (Single) Operation
VRRDP
2. Set data
Operand type Description Data type
Device to which the read analog value is transferred 16-bit binary
Bit Devices Word Devices Others
System User Digit Specification System User Special
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
FNC70-FNC79 External FX I/O Device
S: This function is supported only in FX3G/FX3U/FX3UC PLCs.
This instruction reads the analog value of a variable analog potentiometer board attached the PLC main unit.
FNC80-FNC89 External FX Device
This instruction converts the analog value of the variable analog potentiometer specified in into binary 8-bit
data, and transfers the numeric value ranging from 0 to 255 to .
VRRD
FNC100-FNC109 Data Transfer 2
FNC140-FNC149 Data Operation 2
When a value larger than 255 is required as the set value of a timer, the read value multiplied by a constant using the MUL (FNC 22) instruction can be set indirectly as the timer constant.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
16 External FX Device – FNC 80 to FNC 89
16.6 FNC 85 - VRRD / Volume Read
K0 to K7 are specified in of the VRRD instruction in accordance with the values of the variable potentiometers VR0 to VR7. Index (Z = 0 to 7) is used for indexing in the sequence below, and K0Z indicates K0 to K7.

The routine "FOR ~ NEXT" is repeated 8 times.
Analog values of variable potentiometers are stored in data registers D200 to D207.
Because T0 to T7 are 100 ms timers, 0 to 25.5 sec are obtained from the set values 0 to 255.
→ For details, refer to the Data Communication Edition manual.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
16 External FX Device – FNC 80 to FNC 89
16.7 FNC 86 - VRSC / Volume Scale
FNC30-FNC39 Rotation and Shift
This instruction reads the value of a variable analog potentiometer on the variable analog potentiometer board attached to the PLC main unit as a numeric value ranging from 0 to 10.
32-bit Instruction P FNC 86
Mnemonic Operation Condition 16-bit Instruction
Continuous Operation Pulse (Single) Operation
VRSCP
2. Set data
Operand type Description Data type
Device to which the read analog value is transferred 16-bit binary
Bit Devices Word Devices Others
System User Digit Specification System User Special
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
FNC70-FNC79 External FX I/O Device
S 2 D
S: This function is supported only in FX3G/FX3U/FX3UC PLCs.
FNC80-FNC89 External FX Device
This instruction reads the value of a variable analog potentiometer on the variable analog potentiometer board attached to the main unit as a numeric value ranging from 0 to 10. However, the actual scale value does not always correspond to the switching position of the variable analog potentiometer scale (0 to 10).
This instruction converts into a binary value the scale value of a variable analog potentiometer specified in , and
transfers the converted binary value to .
FNC100-FNC109 Data Transfer 2
VRSC
FNC140-FNC149 Data Operation 2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
16 External FX Device – FNC 80 to FNC 89
16.7 FNC 86 - VRSC / Volume Scale
VRSC
DECO D1 M0 K4 X001
The FNC 41 (DECO) instruction occupies auxiliary relays M0 to M15.
M0 turns ON when the scale value is "0".
M0 turns ON when the scale value is "1".
M0 turns ON when the scale value is "10".
→ For details, refer to the Data Communication Edition manual.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
16 External FX Device – FNC 80 to FNC 89
16.8 FNC 87 – RS2 / Serial Communication 2
FNC30-FNC39 Rotation and Shift
This instruction sends and receives data using non-protocol communication by way of serial ports in accordance with RS-232C or RS-485 provided in the main unit. In FX3G/FX3GC PLCs, data can be sent and received using non-protocol communication by way of the standard built- in port (RS-422).
Mnemonic Operation Condition 16-bit Instruction
2. Set data
Operand type Description Data type
Head device of data registers storing data to be sent 16-bit binary or character string
m Number of bytes of data to be sent [setting range: 0 to 4,096] 16-bit binary
Head device of data registers storing received data when receiving is completed 16-bit binary or character string
n Number of bytes to be received [setting range: 0 to 4,096] 16-bit binary
n1 Used channel number [contents of setting: K0 = ch0, K1 = ch1, K2 = ch2]*1 16-bit binary
FNC70-FNC79 External FX I/O Device
*1. Ch0 is available only in FX3G/FX3GC PLCs. Ch2 is not available in FX3G PLC (14-point and 24-point type) and FX3S PLC.
Bit Devices Word Devices Others
System User Digit Specification System User Special
FNC80-FNC89 External FX Device
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
m 3 S 3 3
FNC100-FNC109 Data Transfer 2
n 3 S 3 3
S: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs.
→ For detailed explanation, refer to the Data Communication Edition.
input D n n1
RS2 m S
FNC140-FNC149 Data Operation 2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
16 External FX Device – FNC 80 to FNC 89
16.8 FNC 87 – RS2 / Serial Communication 2
→ For detailed explanation, refer to the Data Communication Edition.
Name ch0*1 ch1 ch2*1 ch0*1 ch1 ch2*1
M8371 M8401 M8421 Sending wait flag*2 D8370 D8400 D8420 Communication format setting
M8372 M8402 M8422 Sending request*2 – − − −
M8373 M8403 M8423 Receiving complete flag*2 D8372 D8402 D8422 Remaining number of data to be sent*2
– M8404 M8424 Carrier detection flag D8373 D8403 D8423 Monitor for number of received data*2
– M8405 M8425 Data Set Ready (DSR) Flag*3 – D8405 D8425 Communication parameter display
– D8379 D8409 D8429 Time-out time setting
M8379 M8409 M8429 Time-out check flag D8380 D8410 D8430 Header 1, 2
D8381 D8411 D8431 Header 3, 4
D8382 D8412 D8432 Terminator 1, 2
D8383 D8413 D8433 Terminator 3, 4
– − − −
D8384 D8414 D8434 Receiving sum (received data)
D8385 D8415 D8435 Receiving sum (calculation result)
D8386 D8416 D8436 Sending sum
D8389 D8419 D8439 Operation mode display
M8062 M8063 M8438 Serial communication error*4 D8062 D8063 D8438 Serial communication error code*4
*1. Ch0 is available only in FX3G/FX3GC PLCs. Ch2 is not available in FX3G PLC (14-point and 24-point type) and FX3S PLC.
*2. Cleared when the PLC mode is changed from RUN to STOP.
*3. Available in all FX3G/FX3GC PLCs and FX3U/FX3UC PLCs Ver. 2.30 or later.
*4. Cleared when PLC power supply is turned from OFF to ON.
For using this instruction, it is necessary to attach one of the products shown in the table below to the main unit.
→ For the system configuration, refer to the respective PLC Hardware Edition manual.
→ For detailed explanation, refer to the Data Communication Edition manual.
PLC Communication type Option
FX3S RS-232C communication FX3G-232-BD or FX3U-232ADP(-MB) (with FX3S-CNV-ADP)
RS-485 communication FX3G-485-BD(-RJ) or FX3U-485ADP(-MB) (with FX3S-CNV-ADP)
FX3G-232BD or FX3U-232ADP(-MB) (which requires FX3G-CNV-ADP)
FX3G RS-232C communication
RS-232C/RS-422 converter*5 (FX-232AW, FX232AWC and FX-232AWC-H)
RS-485 communication FX3G-485-BD(-RJ) or FX3U-485ADP(-MB) (which requires FX3G-CNV-ADP)
FX3GC RS-232C communication
RS-232C/RS-422 converter*5 (FX-232AW, FX232AWC and FX-232AWC-H)
RS-485 communication FX3U-485ADP(-MB)
RS-232C communication FX3U-232-BD or FX3U-232ADP(-MB)
RS-485 communication FX3U-485-BD or FX3U-485ADP(-MB)
FX3UC(D,DS,DSS) RS-232C communication FX3U-232ADP(-MB)
RS-485 communication FX3U-485ADP(-MB)
*5. Required to use ch0 (standard built-in RS-422 port) in FX3G/FX3GC PLCs.
Device · Device · Name

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
16 External FX Device – FNC 80 to FNC 89
FNC30-FNC39 Rotation and Shift
Item RS2 instruction RS instruction Remarks
Header size 1 to 4 characters (bytes) Up to 1 character (byte) For the RS2 instruction, up to 4 characters (bytes) can be specified as a header or terminator. Terminator size 1 to 4 characters (bytes) Up to 1 character (byte)
For the RS2 instruction, the check sum can be automatically attached to the sent and received data. In this case, however, make sure to use a terminator in the communication frame to be sent and received.
The check sum should be attached by a user program.
Attachment of check sum
The check sum can be automatically attached.
For the RS2 instruction: Ch0 is available only in FX3G/FX3GC PLCs. Ch2 is not available in FX3G PLC (14-point and 24-point type) and FX3S PLC.
Used channel number ch0, ch1, ch2 ch1
The function of the FNC 87 instruction varies depending on the PLC version shown in the table below.
Item Function Summary FX3S FX3G FX3GC FX3U FX3UC
ch1 Data Set Ready (DSR) Flag
Turns M8405 ON when the DR (DSR) signal of ch1 is ON.
Ver. 1.00
Ver. 1.00
Ver. 1.40
Ver. 2.30
Ver. 2.30
FNC70-FNC79 External FX I/O Device
ch2 Data Set Ready (DSR) Flag
Turns M8425 ON when the DR (DSR) signal of ch2 is ON.
FNC80-FNC89 External FX Device
FNC100-FNC109 Data Transfer 2
FNC140-FNC149 Data Operation 2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
16 External FX Device – FNC 80 to FNC 89
16.9 FNC 88 – PID / PID Control Loop
This instruction executes PID control which changes the output value according to the input variation.
→ For details, refer to the Analog Control Edition.
Mnemonic Operation Condition 16-bit Instruction
2. Set data

Data register number storing the target value (SV) 16-bit binary
Data register number storing the measured value (PV) 16-bit binary
Data register number storing the output value (MV) 16-bit binary

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
S1: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S2: This function is supported only in FX3U/FX3UC PLCs.
1. 16-bit operation (PID)

When the target value , measured value , and parameters to +6 are set and a program is
executed, the operation result (MV) is stored to the output value at every sampling time .
Target value (SV) Measured value (PV) Parameter Output value (MV)

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
16 External FX Device – FNC 80 to FNC 89
FNC30-FNC39 Rotation and Shift
Measured value (PV) This is the input value in PID control loop. 1
Twenty-nine devices are occupied from the head device specified in . 2) Auto tuning: In the case of step response method a) Operation setting (ACT): When bits 1, 2 and 5 are not all "0"
Twenty-five devices are occupied from the head device specified in . b) Operation setting (ACT): When bits 1, 2 and 5 are all "0"
Twenty devices are occupied from the head device specified in .
1) In case of PID control (normal processing) Before driving PID instruction, the user should set the initial output value. After that, the operation result is stored. 2) Auto tuning: In the case of limit cycle method During auto tuning, the ULV or LLV value is output automatically. When auto tuning is finished, the specified MV value is set. 3) Auto tuning: In the case of step response method Before driving PID instruction, the user should set the initial output value. During auto tuning, PID instruction does not change the MV output.
*1. When auto tuning is not used, the number of points is the same as the number in the step response method are occupied.
FNC70-FNC79 External FX I/O Device
Set item Setting Value Remarks
Sampling time (Ts) 1 to 32767 (ms) It cannot be shorter than the operation cycle.
FNC80-FNC89 External FX Device
bit1 0: Input variation alarm is invalid. 1: Input variation alarm is valid.
bit2 0: Output variation alarm is invalid. 1: Output variation alarm is valid. Do not set to ON bit 2 and bit 5 at the same time.
FNC100-FNC109 Data Transfer 2
bit4 0: Auto tuning is not executed. 1: Auto tuning is executed.
Do not set to ON bit 2 and bit 5 at the same time.
bit6 0: Step response method 1: Limit cycle method Select the auto tuning mode.
bit7 to bit15 Not available
+2 Input filter constant (α) 0 to 99 (%) When "0" is set, the input filter is not provided.
+3 Proportional gain (KP) 1 to 32767 (%)
+4 Integral time (TI) 0 to 32767 (× 100 ms) When "0" is set, it is handled as "\" (no integration).
FNC140-FNC149 Data Operation 2
+5 Derivative gain (KD) 0 to 100 (%) When "0" is set, the derivative gain is not provided.
+6 Derivative time (TD) 0 to 32767 (× 10 ms) When "0" is set, the derivative operation is not executed.
+7 :
These devices are occupied for internal processing in PID control loop. Do not change the data.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
16 External FX Device – FNC 80 to FNC 89
16.9 FNC 88 – PID / PID Control Loop
Set item Setting Value Remarks
+20*1 Input variation (incremental) alarm set value 0 to 32767 It is valid when bit 1 is set to "1" in +1 for the operation setting (ACT).
S 3 S 3
+21*1 Input variation (decremental) alarm set value 0 to 32767 It is valid when bit 1 is set to "1" in +1 for the operation setting (ACT).
Output variation (incremental) alarm set value 0 to 32767 It is valid when bit 2 is set to "1" and bit 5 is set to
"0" in +1 for the operation setting (ACT).
It is valid when bit 2 is set to "0" and bit 5 is set to
Output upper limit set value −32768 to 32767
"1" in +1 for the operation setting (ACT).
Output variation (decremental) alarm set value 0 to 32767 It is valid when bit 2 is set to "1" and bit 5 is set to
"0" in +1 for the operation setting (ACT).
It is valid when bit 2 is set to "0" and bit 5 is set to
Output lower limit set value −32768 to 32767
"1" in +1 for the operation setting (ACT).
It is valid when bit 1 is set to "1" or bit 2 is set to
+24*1 Alarm output
"1" in +1 for the operation setting (ACT).
The setting below is required when the limit cycle method is used (when bit 6 is set to "ON" in the operation setting (ACT)).
PV value threshold (hysteresis) width (SHPV)
Set it according to the fluctuation of the measured value (PV).
+26 Output value upper limit (ULV) Set the maximum value (ULV) of the
output value (MV).
They are occupied when bit 6 is set to "ON (limit cycle method)" in the operation setting (ACT).
+27 Output value lower limit (LLV) Set the minimum value (LLV) of the output value (MV).
Wait setting from end of tuning cycle to start of PID control (Kw)
−50 to 32717%
*1. +20 to +24 are occupied when any bit 1, 2 or 5 is set to "1" in +1 for operation setting (ACT).

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
16 External FX Device – FNC 80 to FNC 89
FNC30-FNC39 Rotation and Shift
However, make sure that , and other operands specified in each instruction are different to each other.
2. Number of devices occupied for parameters starting from
- Twenty-nine devices are occupied from the head device specified in .
Twenty-five devices are occupied from the head device specified in . - Operation setting (ACT): When bits 1, 2 and 5 are all "0"
Twenty devices are occupied from the head device specified in .
RST D***
Data register number in the latched area specified in D
FNC70-FNC79 External FX I/O Device
When an operation error occurs, the special auxiliary relay M8067 turns ON, and the error code is stored in the special data register D8067.
→ For the error code, refer to Section 38.4.
FNC80-FNC89 External FX Device
FNC100-FNC109 Data Transfer 2
FNC140-FNC149 Data Operation 2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
17 Data Transfer 2 – FNC100 to FNC109
FNC100 to FNC109 provide instructions for executing complicated processing for fundamental applied instructions and for executing special processing.
FNC No. Mnemonic Symbol Function Reference
102 ZPUSH Batch Store of Index Register Section 17.1
103 ZPOP Batch POP of Index Register Section 17.2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
17 Data Transfer 2 – FNC100 to FNC109
17.1 FNC102 – ZPUSH/Batch Store of Index Register
FNC30-FNC39 Rotation and Shift
This instruction temporarily batch-stores the present value of the index registers V0 to V7 and Z0 to Z7. For restoring the present value of temporarily batch-stored index registers, use the ZPOP (FNC103) instruction.
→ For the ZPOP (FNC103) instruction, refer to Section 17.2.
P FNC 102
Mnemonic Operation Condition Mnemonic Operation Condition 32-bit Instruction
Continuous Operation Pulse (Single) Operation
−
2. Set data
Operand Type Description Data Type
Head device number batch-storing the present value of the index registers V0 to V7 and Z0 to Z7
: Number of times of batch-storage
+1 to +16 × Number of times of batch-storage: Batch-stored data storage destination
3. Applicable devices
Bit Devices Word Devices Others
FNC70-FNC79 External FX I/O Device
System User Digit Specification System User Special
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
FNC80-FNC89 External FX Device
1. 16-bit operation (ZPUSH/ZPUSHP)
FNC100-FNC109 Data Transfer 2
the contents of index registers are batch-stored, the number of times of batch-storage is incremented by "1".
In this case, the occupied points are incremented by "16" after every time the ZPUSH (FNC102) instruction is executed. Secure sufficient area for the number of the next structure in advance.
FNC140-FNC149 Data Operation 2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
17 Data Transfer 2 – FNC100 to FNC109
17.1 FNC102 – ZPUSH/Batch Store of Index Register
· When the nest structure is not used Index register Batch- stored data
· When the nest structure is used Index register
[1] ZPUSH instruction Number of times of batch-storage is incremented by "1". 16 points for 1 nesting
D D
Z0 V0 Z1 V1 Z2
[1] ZPUSH instruction Number of times of batch-storage : 0 → 1
Z0 V0 Z1 V1 Z2
1st nesting Number of
[4] ZPOP instruction Number of times of batch-storage : → 0
[2] ZPOP instruction Number of times of batch-storage is decremented by "1".
Z7 V7
Z7 V7
Z7 V7
[2] ZPUSH instruction Number of times of batch-storage : 1 → 2
2nd nesting Number of
[3] ZPOP instruction Number of times of batch-storage : 2 → 1
*1 Number of times of batch-storage
ZPOP (FNC103) Restores the index registers V0 to V7 and Z0 to Z7 which were batch-stored temporarily by the ZPUSH (FNC102) instruction.
An operation error is caused in the following cases; The error flag M8067 turns ON, and the error code is stored in D8067.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
17 Data Transfer 2 – FNC100 to FNC109

In the program shown below, the contents of the index registers Z0 to Z7 and V0 to V7 before execution of subroutine program are batch-stored in D0 and later when index registers are used in the subroutine after the pointer P0.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
17 Data Transfer 2 – FNC100 to FNC109
17.2 FNC103 – ZPOP/Batch POP of Index Register
This instruction restores the contents of the index registers V0 to V7 and Z0 to Z8 which were batch-stored temporarily by ZPUSH (FNC102) instruction.
→ For ZPUSH (FNC102) instruction, refer to Section 17.1.


Head device number temporarily batch-storing the contents of the index registers V0 to V7 and Z0 to Z7
+1 to +16 × Number of times of batch-storage: Batch-stored data storage destination

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
times of batch-storage is decremented by "1".
ZPUSH (FNC102) Temporarily batch-stores the present value of the index registers V0 to V7 and Z0 to Z7.
An operation error is caused in the following cases; The error flag M8067 turns ON, and the error code is stored in D8067.
→ For a program example, refer to Section 17.1.
Command · input FNC103 · Instruction Description

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
18 Floating Point – FNC110 to FNC139

FNC110 to FNC119, FNC120 to FNC129 and FNC130 to FNC139 provide instructions for conversion, comparison, arithmetic operations, square root operation, trigonometry, etc. for floating point operations.
116 ESTR Floating Point to Character String Conversion Section 18.4
117 EVAL Character String to Floating Point Conversion Section 18.5
118 EBCD Floating Point to Scientific Notation Conversion Section 18.6
119 EBIN Scientific Notation to Floating Point Conversion Section 18.7

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
18 Floating Point – FNC110 to FNC139


FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
18 Floating Point – FNC110 to FNC139
18.1 FNC110 – ECMP / Floating Point Compare
FNC30-FNC39 Rotation and Shift
This instruction compares two data values (binary floating point), and outputs the result (larger, same or smaller) to three consecutive bit devices.
→ For handling of floating point, refer to Subsection 5.1.3. 1. Instruction format
Mnemonic Operation Condition 16-bit Instruction
Mnemonic Operation Condition 32-bit Instruction
13 steps Continuous Operation Pulse (Single) Operation
DECMPP
2. Set data
Operand Type Description Data Type
Device number storing binary floating point data to be compared
Real number (binary)*1 Device number storing binary floating point data to be compared
Head bit device number to which the comparison result is output (Three devices are occupied.) Bit
*1. When a constant (K or H) is specified, it is automatically converted from binary into binary floating point (real number) when the instruction is executed. 3. Applicable devices
Bit Devices Word Devices Others
System User Digit Specification System User Special
FNC70-FNC79 External FX I/O Device
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 S2 S3
3 S2 S3
FNC80-FNC89 External FX Device
S1: "D .b" is available only in FX3U/FX3UC PLCs, and cannot be indexed with index registers (V and Z). S2: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S3: This function is supported only in FX3U/FX3UC PLCs.
FNC100-FNC109 Data Transfer 2
S 1 S 2 D
Turns ON in the case of
] ". +1, " [ ] S1 S1 +1, [ S2 S2 >
Turns ON in the case of
= +1, ] S1 S1 +1, [ S2 S2 " [ ] ".
Turns ON in the case of
FNC140-FNC149 Data Operation 2
+1, ] S1 S1 +1, [ S2 S2 " [ ] ".
Even if the command input turns OFF before the DECMP instruction is fully executed, to +2 hold the status.
Caution

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
18 Floating Point – FNC110 to FNC139
18.2 FNC111 – EZCP / Floating Point Zone Compare
This instruction compares data (binary floating point) with two values (one zone), and outputs the comparison result to three consecutive bit devices.
→ For handling of floating point, refer to Subsection 5.1.3.


Data register number storing binary floating point data to be compared
Real number (binary)*1 Data register number storing binary floating point data to be compared
Data register number storing binary floating point data to be compared
Head bit device number to which the comparison result is output (Three devices are occupied.) Bit
*1. When a constant (K or H) is specified, it is automatically converted from binary into binary floating point (real number) when the instruction is executed.

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
S: "D .b" cannot be indexed with index registers (V and Z).

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
18 Floating Point – FNC110 to FNC139
FNC30-FNC39 Rotation and Shift
The comparison values [ +1, ], [ +1, ] are compared with the comparison source [ +1,
S1 S1 S2 S2 S
] as floating point data, and one of the bits among , +1, and +2 turns ON according to the result (smaller, same or larger).
S1 S1 S2 S2 S S
S1 S2 S D
Turns ON in the case of
+1, [ S S +1, ] S1 S1 ] ". " [ >
Turns ON in the case of
+1, [ S S ] +1, ] S1 S1 +1, [ S2 S2 ] ". " [
Turns ON in the case of
+1, S S ] +1, [ S2 S2 ] ". " [
Even if the command input turns OFF before the DEZCP instruction is fully executed, to +2 will hold their previous status.
Cautions
FNC70-FNC79 External FX I/O Device
Three devices are occupied from ( , +1 and +2). Make sure that these devices are not used for any other purpose.
FNC80-FNC89 External FX Device
[ +1, ] ≤ [ +1, ]
In the case of "[ +1, ] > [ +1, ]", the value [ +1, ] is regarded as [ +1, ] value during comparison.
S1 S1 S2 S1 S1
FNC100-FNC109 Data Transfer 2
FNC140-FNC149 Data Operation 2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
18 Floating Point – FNC110 to FNC139
18.3 FNC112 – EMOV / Floating Point Move
This instruction transfers binary floating point data.
→ For handling of floating point, refer to Subsection 5.1.3.

Operand Type Description Data Type
Binary floating point data (transfer source) or device number storing data
Real number (binary) Device number receiving floating point data

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
S1: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S2: This function is supported only in FX3U/FX3UC PLCs.
1. 32 bit operation (DEMOV and DEMOPV)
The contents (binary floating point data) of the transfer source [ +1, ] are transferred to [ +1, ].
A real number (E) can be directly specified as .

+1 +1 S D S D Command



FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
18 Floating Point – FNC110 to FNC139
18.4 FNC116 – ESTR / Floating Point to Character String Conversion
FNC30-FNC39 Rotation and Shift
This instruction converts binary floating point data into a character string (ASCII codes) having a specified number of digits. On the other hand, STR (FNC200) instruction converts binary data into a character string (ASCII codes).
→ For a character string, refer to Section 5.3. → For handling of floating point, refer to Subsection 5.1.3.
→ For STR (FNC200) instruction, refer to Section 26.1.
P FNC 116
Mnemonic Operation Condition 16-bit Instruction
Mnemonic Operation Condition 32-bit Instruction
− −
13 steps Continuous Operation Pulse (Single) Operation
DESTRP
2. Set data
Operand Type Description Data Type
Binary floating point data to be converted or device storing data Real number (binary)
Head device number storing the display specification of a numeric value to be converted 16-bit binary
Head device number storing converted character string Character string
FNC70-FNC79 External FX I/O Device
Bit Devices Word Devices Others
System User Digit Specification System User Special
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
FNC80-FNC89 External FX Device
3
3
1. 32-bit operation (DESTR and DESTRP)
FNC100-FNC109 Data Transfer 2
The contents (binary floating point data) of [ +1, ] are converted into a character string according to the
contents specified by , +1 and +2, and then stored to devices and later. A real number can
be directly specified as .
DESTR S1 S2 D
The data after conversion varies depending on the display specification stored in .
digits Number of digits
2 to 24 can be set.
FNC140-FNC149 Data Operation 2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
18 Floating Point – FNC110 to FNC139
18.4 FNC116 – ESTR / Floating Point to Character String Conversion

ASCII code in "(specified total number of digits - 1)"th
ASCII code in "(specified total number of digits - 3)"th
ASCII code in "(specified total number of digits - 2)"th
ASCII code in "(specified total number of digits - 5)"th
ASCII code in "(specified total number of digits - 7)"th
ASCII code in "(specified total number of digits - 6)"th
0000H is automatically stored at the end of the character string.
For example, when the total number of digits is "8", the number of digits of the decimal part is "3", and
"-1.23456" is specified, data is stored in and later as shown below:

0000H is automatically stored at the end of the character string.


FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
18 Floating Point – FNC110 to FNC139
- When the number of digits of the decimal part is set to any value other than "0", "2EH (.)" is automatically stored in "specified number of digits of decimal part + 1"th digit. When the number of digits of the decimal part is "0", "2EH (.)" is not stored.
FNC30-FNC39 Rotation and Shift
8 (Total number of digits)
2 (Number of digits of decimal part)
Low-order digits of decimal part
Automatically added. +1
−1.23456
- When the total number of digits subtracted by the digits for sign, decimal point and decimal part is larger than the integer part of the binary floating point data, "20H (space)" is stored between the sign and the integer part.
Low-order digits of decimal part
"20H (space)" is stored. +1
−1.23456
- "00H" or "0000H" is automatically stored at the end of the converted character string.
FNC70-FNC79 External FX I/O Device
ASCII code in "(specified total number of digits - 1)"th
ASCII code for sign
digits Number of digits
ASCII code for decimal point
ASCII code in "(specified total number of digits - 2)"th
ASCII code in "(specified total number of digits - 5)"th
ASCII code in "(specified total number of digits - 4)"th
FNC80-FNC89 External FX Device
ASCII code in "(specified total number of digits - 7)"th
ASCII code in "(specified total number of digits - 6)"th
ASCII code of sign
Automatically added.
ASCII code in "(specified
ASCII code in "(specified
FNC100-FNC109 Data Transfer 2
total number of digits - 10)"th digit (exponent part) +5
total number of digits - 11)"th digit (exponent part)
0000H is automatically stored at the end of the character string.
FNC140-FNC149 Data Operation 2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
18 Floating Point – FNC110 to FNC139
18.4 FNC116 – ESTR / Floating Point to Character String Conversion
For example, when the total number of digits is "12", the number of digits of the decimal part is "4", and
"-12.34567" is specified, data is stored in and later as shown below:

0000H is automatically stored at the end of the character string.

- If the decimal part of the binary floating point data cannot be accommodated in the number of digits of the decimal part, low-order digits of the decimal part are rounded.

0 2 3 4 6 E + 1 1 6 7
- When the number of digits of the decimal part is set to any value other than "0", "2EH (.)" is automatically stored in "specified number of digits of decimal part + 1"th digit. When the number of digits of the decimal part is "0", "2EH (.)" is not stored.

0 2 3 4 6 E + 1 1
Number of digits of decimal part (4) Automatically added. +1
- For the sign of the exponent part, "2BH (+)" is stored when the exponent is positive, and "2DH (-)" is stored when the exponent is negative.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
18 Floating Point – FNC110 to FNC139
- The exponent part is fixed to 2 digits. When the exponent part is 1 digit, "30H (0)" is stored after the sign of the exponent part.
FNC30-FNC39 Rotation and Shift
Total number of digits (12)
Fixed to 2 digits.
S 1 S 1
"30H (0)" is stored.
−12.34567
- "00H" or "0000H" is automatically stored at the end of the converted character string.
EVAL (FNC117) Converts a character string (ASCII codes) into binary floating point data.
STR (FNC200) Converts binary data into a character string (ASCII codes).
VAL (FNC201) Converts a character string (ASCII codes) into binary data.
An operation error is caused in the following cases; The error flag M8067 turns ON, and the error code is stored in D8067.
0, ±2−126 ≤ < ±2128
FNC70-FNC79 External FX I/O Device
When the number of digits of the decimal part is "0", Total number of digits ≥ 2 When the number of digits of the decimal part is any value other than "0", Total number of digits ≥ (Number of digits of decimal part + 3) In the case of exponent format:
FNC80-FNC89 External FX Device
When the number of digits of the decimal part is "0", Total number of digits ≥ 6 When the number of digits of the decimal part is any value other than "0", Total number of digits ≥ (Number of digits of decimal part + 7)
FNC100-FNC109 Data Transfer 2
FNC140-FNC149 Data Operation 2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
18 Floating Point – FNC110 to FNC139
18.4 FNC116 – ESTR / Floating Point to Character String Conversion

Conversion format Total number of digits Number of digits of decimal part
00H is automatically stored at the end of the character string.

Conversion format Total number of digits Number of digits of decimal part
Number of digits of decimal part Space R1 R0 0.0327457 20H(space)
0000H is automatically stored at the end of the character string.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
18 Floating Point – FNC110 to FNC139
18.5 FNC117 – EVAL / Character String to Floating Point Conversion
FNC30-FNC39 Rotation and Shift
This instruction converts a character string (ASCII codes) into binary floating point data. On the other hand, the VAL (FNC201) instruction converts a character string (ASCII codes) into binary data.
→ For a character string, refer to Section 5.3. → For handling of floating point, refer to Subsection 5.1.3.
→ For VAL (FNC201) instruction, refer to Section 26.2.
P FNC 117
Mnemonic Operation Condition 16-bit Instruction
Mnemonic Operation Condition 32-bit Instruction
− −
9 steps Continuous Operation Pulse (Single) Operation
DEVALP
2. Set data
Operand Type Description Data Type
Head device number storing character string data to be converted into binary floating point data Character string
Head device number storing converted binary floating point data Real number (binary)
Bit Devices Word Devices Others
FNC70-FNC79 External FX I/O Device
System User Digit Specification System User Special
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
FNC80-FNC89 External FX Device
1. 32-bit operation (DEVAL and DEVALP)
A character string stored in and later is converted into binary floating point, and stored to [ +1, ].
FNC100-FNC109 Data Transfer 2
A specified character string may be in the decimal point format or exponent format. A character string in either format can be converted into binary floating point data.
b15 b8 b7 b0
ASCII code for 1st character
ASCII code for sign
ASCII code for 3rd character
ASCII code for 2nd character
ASCII code for 5th character
ASCII code for 4th character
ASCII code for 7th character
ASCII code for 6th character
FNC140-FNC149 Data Operation 2
Indicates the end of the character string.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
18 Floating Point – FNC110 to FNC139
18.5 FNC117 – EVAL / Character String to Floating Point Conversion
a) In the case of decimal point format

b) In the case of exponent format

3 2 0 1 1 + 1 0 E
a) In the case of decimal point format

3 0 1 1 5 8 1 2 6

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
18 Floating Point – FNC110 to FNC139
b) In the case of exponent format
FNC30-FNC39 Rotation and Shift
b15 b8 b7 b0
2DH(-)
2EH(.)
31H(1)
35H(5)
33H(3)
D D
33H(3)
30H(0)
− 1.35034E − 2
Up to 6 digits are securely equivalent.
34H(4)
45H(E) 32H(2)
30H(0) 2DH(-)
00H
32H(2)
5 0 3 3 4 2 E 1 1 0 2
Rounded.
, "20H" or "30H" is ignored during conversion.
FNC70-FNC79 External FX I/O Device
b15 b8 b7 b0
31H(1)
30H(0)
D D
32H(2)
2EH(.)
−1.231
FNC80-FNC89 External FX Device
33H(3)
00H
2 3 1 1 0
Ignored.
FNC100-FNC109 Data Transfer 2
b15 b8 b7 b0
2EH(.)
31H(1)
34H(4)
30H(0)
D D
33H(3)
35H(5)
− 1.0453E+3
2BH(+)
45H(E)
33H(3) 30H(0)
FNC140-FNC149 Data Operation 2
4 5 3 0 E 0 3 + 1
Ignored.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
18 Floating Point – FNC110 to FNC139
18.5 FNC117 – EVAL / Character String to Floating Point Conversion
→ For the use methods of the zero, borrow and carry flags, refer to Subsection 6.5.2.

M8020 Zero flag The conversion result is true "0". (The mantissa part is "0".) The zero flag M8020 turns ON.
M8021 Borrow flag The absolute value of the conversion result
The value of is the minimum value (2−126) of 32-bit real numbers and the borrow flag M8021 turns ON.
M8022 Carry flag The absolute value of the conversion result
The value of is the maximum value (2128) of 32-bit real numbers and the carry flag M8022 turns ON.

ESTR (FNC116) Converts binary floating point data into a character string (ASCII codes).
STR (FNC200) Converts binary data into a character string (ASCII codes).
VAL (FNC201) Converts a character string (ASCII codes) into binary data.
An operation error is caused in the following cases; The error flag M8067 turns ON, and the error code is stored in D8067.


FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
18 Floating Point – FNC110 to FNC139

The value of is the minimum value (2−126) of 32-bit real numbers and the borrow flag M8021 turns ON.
The value of is the maximum value (2128) of 32-bit real numbers and the carry flag M8022 turns ON.
The conversion result is true "0". (The mantissa part is "0".) The zero flag M8020 turns ON.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
18 Floating Point – FNC110 to FNC139
18.6 FNC118 – EBCD / Floating Point to Scientific Notation Conversion
This instruction converts binary floating point into scientific notation.
→ For handling of floating point, refer to Subsection 5.1.3.

Operand Type Description Data Type
Data register number storing binary floating point Real number (binary)
Data register number storing converted scientific notation Real number (decimal)

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
1. 32-bit operation (DEBCD and DEBCDP)
Binary floating point stored in [ +1, ] is converted into scientific notation, and transferred to [ +1, ].

S D [ +1, ] → [ +1, ] S S D D
b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0 b31 b30 b29 b28 b27 b26 b25 b24 b23 b22 b21 b20 b19 b18 b17 b16 Before execution Mantissa part (23 bits)
Low order b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0 High order
b31 b30 b29 b28 b27 b26 b25 b24 b23 b22 b21 b20 b19 b18 b17 b16 After execution Mantissa part Exponent part

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
18 Floating Point – FNC110 to FNC139
18.7 FNC119 – EBIN / Scientific Notation to Floating Point Conversion
FNC30-FNC39 Rotation and Shift
This instruction converts scientific notation stored in devices into binary floating point.
→ For handling of floating point, refer to Subsection 5.1.3.
P FNC 119
Mnemonic Operation Condition 16-bit Instruction
Mnemonic Operation Condition 32-bit Instruction
9 steps Continuous Operation Pulse (Single) Operation
DEBINP
2. Set data
Operand Type Description Data Type
Data register number storing scientific notation data Real number
Data register number storing converted binary floating point. Real number (binary)
Bit Devices Word Devices Others
System User Digit Specification System User Special
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
FNC70-FNC79 External FX I/O Device
3
3
FNC80-FNC89 External FX Device
Scientific notation stored in [ +1, ] is converted into binary floating point, and transferred to [ +1,
].
S D [ +1, ] → [ +1, ] S S D D
FNC100-FNC109 Data Transfer 2
Scientific notation Binary floating point
Low order b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0 High order
b31 b30 b29 b28 b27 b26 b25 b24 b23 b22 b21 b20 b19 b18 b17 b16 Before execution Mantissa part Exponent part
FNC140-FNC149 Data Operation 2
High order Low order
b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0 b31 b30 b29 b28 b27 b26 b25 b24 b23 b22 b21 b20 b19 b18 b17 b16 After execution
Mantissa part (23 bits) Exponent part (8 bits)

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
18 Floating Point – FNC110 to FNC139
18.7 FNC119 – EBIN / Scientific Notation to Floating Point Conversion
By DEBIN instruction, a numeric value containing the decimal point can be directly converted into binary floating point.
3.14 = 314 × 10−2 (scientific notation)
MOVP K314 D 0 K314 → D0
314 × 10−2
K -2 → D1
(D1,D0) → (D11,D10) 314 × 10−2 Binary floating point
→ For program examples of floating point operations, refer to Section 12.10.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
18 Floating Point – FNC110 to FNC139
18.8 FNC120 – EADD / Floating Point Addition
FNC30-FNC39 Rotation and Shift
This instruction executes addition of two binary floating point data.
→ For program examples of floating point operations, refer to Section 12.10.
→ For handling of floating point, refer to Subsection 5.1.3.
→ For flag operations, refer to Subsection 6.5.2.
P FNC 120
Mnemonic Operation Condition 16-bit Instruction
Mnemonic Operation Condition 32-bit Instruction
13 steps Continuous Operation Pulse (Single) Operation
DEADDP
2. Set data
Operand Type Description Data Type
Word device number storing binary floating point data used in addition
(binary)*1 Word device number storing binary floating point data used in addition
Data register number storing the addition result
*1. When a constant (K or H) is specified, it is automatically converted into binary floating point (real number) when the instruction is executed.
FNC70-FNC79 External FX I/O Device
Bit Devices Word Devices Others
System User Digit Specification System User Special
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 S1 S2 3
FNC80-FNC89 External FX Device
3 S1 S2 3
S1: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S2: This function is supported only in FX3U/FX3UC PLCs.
FNC100-FNC109 Data Transfer 2
1. 32-bit operation (DEADD and DEADDP)
Binary floating point data [ +1, ] is added to binary floating point data [ +1, ], and the addition
result in the binary floating point format is transferred to [ +1, ].
S1 S2 D [ +1, ] + [ +1, ] → [ +1, ]
Binary floating point Binary floating point Binary floating point S1 S1 S2 S2 D D
When a constant (K or H) is specified as [ +1, ] or [ +1, ], it is automatically converted into binary floating point.
S1 S2 D [ +1, ] + [ K2346 ] → [ +1, ]
Binary floating point S1 S1 D D
FNC140-FNC149 Data Operation 2
Binary floating point Automatically converted into binary
1. When the same device is specified
The same device number can be specified in [ +1, ],[ +1, ] and [ +1, ]. In this case, note that the addition result changes in every operation cycle when the continuous operation type instruction (DEADD) is used.
S1 S1 S2 S2 D D

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
18 Floating Point – FNC110 to FNC139
18.9 FNC121 – ESUB / Floating Point Subtraction
This instruction executes subtraction of two binary floating point data.
→ For program examples of floating point operations, refer to Section 12.10.
→ For handling of floating point, refer to Subsection 5.1.3.
→ For flag operations, refer to Subsection 6.5.2.


Word device number storing binary floating point data used in subtraction
Real number (binary)*1 Word device number storing binary floating point data used in subtraction
*1. When a constant (K or H) is specified, it is automatically converted into binary floating point (real number) when the instruction is executed.

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 S1 S2 3
3 S1 S2 3
S1: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S2: This function is supported only in FX3U/FX3UC PLCs.
1. 32-bit operation (DESUB and DESUBP)
Binary floating point data [ +1, ] is subtracted from binary floating point data [ +1, ], and the
subtraction result in the binary floating point format is transferred to [ +1, ].

S1 S2 D [ +1, ] − [ +1, ] → [ +1, ]
Binary floating point Binary floating point Binary floating point S1 S1 S2 S2 D D
When a constant (K or H) is specified as [ +1, ] or [ +1, ], it is automatically converted into binary floating point.
S1 S2 D [ +1, ] − [ K2346 ] → [ +1, ]
Binary floating point S1 S1 D D
1. When the same device is specified
The same device number can be specified in [ +1, ],[ +1, ] and [ +1, ]. In this case, note that the subtraction result changes in every operation cycle when the continuous operation type instruction (DESUB) is used.
S1 S1 S2 S2 D D

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
18 Floating Point – FNC110 to FNC139
18.10 FNC122 – EMUL / Floating Point Multiplication
FNC30-FNC39 Rotation and Shift
This instruction executes multiplication of two binary floating point data.
→ For program examples of floating point operations, refer to Section 12.10.
→ For handling of floating point, refer to Subsection 5.1.3.
P FNC 122
Mnemonic Operation Condition 16-bit Instruction
Mnemonic Operation Condition 32-bit Instruction
13 steps Continuous Operation Pulse (Single) Operation
DEMULP
2. Set data
Operand Type Description Data Type
Word device number storing binary floating point data used in multiplication
Real number (binary)*1 Word device number storing binary floating point data used in multiplication
Data register number storing the multiplication result
*1. When a constant (K or H) is specified, it is automatically converted into binary floating point (real number) when the instruction is executed.
FNC70-FNC79 External FX I/O Device
Bit Devices Word Devices Others
System User Digit Specification System User Special
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 S1 S2 3
FNC80-FNC89 External FX Device
3 S1 S2 3
S1: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S2: This function is supported only in FX3U/FX3UC PLCs.
FNC100-FNC109 Data Transfer 2
Binary floating point data [ +1, ] is multiplied by binary floating point data [ +1, ], and the
multiplication result in the binary floating point format is transferred to [ +1, ].
DEMUL S1 S2 D [ +1, ] × [ +1, ] → [ +1, ]
Binary floating point Binary floating point Binary floating point S1 S1 S2 S2 D D
When a constant (K or H) is specified as [ +1, ] or [ +1, ], it is automatically converted into binary floating point.
DEMUL S1 S2 D [ +1, ] × [ K100 ] → [ +1, ]
Binary floating point S1 S1 D D
FNC140-FNC149 Data Operation 2
Binary floating point Automatically converted into binary

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
18 Floating Point – FNC110 to FNC139
18.11 FNC123 – EDIV / Floating Point Division
This instruction executes division of two binary floating point.
→ For program examples of floating point operations, refer to Section 12.10.
→ For handling of floating point, refer to Subsection 5.1.3.
→ For flag operations, refer to Subsection 6.5.2.


Word device number storing binary floating point data used in division
Real number (binary)*1 Word device number storing binary floating point data used in division
Data register number storing binary floating point data obtained by division
*1. When a constant (K or H) is specified, it is automatically converted into binary floating point (real number) when the instruction is executed.

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 S1 S2 3
3 S1 S2 3
S1: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S2: This function is supported only in FX3U/FX3UC PLCs.
1. 32-bit operation (DEDIV and DESDIVP)
Binary floating point data [ +1, ] is divided by binary floating point data [ +1, ], and the division

result in the binary floating point format is transferred to [ +1, ].
DEDIV S1 S2 D [ +1, ] ÷ [ +1, ] → [ +1, ]
Binary floating point Binary floating point Binary floating point S1 S1 S2 S2 D D
When a constant (K or H) is specified as [ +1, ] or [ +1, ], it is automatically converted into binary floating point.
DEDIV K100 S1 D [ +1, ] ÷ [ K100 ] → [ +1, ]
Binary floating point S1 S1 D D
Binary floating point Automatically converted into binary

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
18 Floating Point – FNC110 to FNC139

This instruction executes exponential operation whose base is "e (2.71828)".
→ For handling of floating point, refer to Subsection 5.1.3.
Head device number storing binary floating point data used in exponential operation.
Real number (binary) Head device number storing the operation result.
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
The exponent of [ +1, ] is calculated, and the operation result is stored to [ +1, ].
A real number can be directly specified as .
An operation error occurs in the following case; The error flag M8067 turns ON, and the error code is stored in D8067.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
18 Floating Point – FNC110 to FNC139
18.12 FNC124 – EXP / Floating Point Exponent
In the program example shown below, the exponential operation is executed for a value set in the 2-digit BCD format in X020 to X027, and the operation result is stored in the binary floating point format to D0 and D1 when X000 turns ON.

Data used in the exponential operation is input ([1]).
The range of the value to be operated is checked. (Refer to 1) in "Points" below.)
The input data is converted into binary floating point (real number) ([2]).

"loge2128 = 88.7". If a value "89" or more is set, an operation error occurs. To prevent this operation error, when a value more than "89" is set, M0 is set to ON so that the exponential operation is not executed.
[ +1, ].
10 X = e 0.4342945 X

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
18 Floating Point – FNC110 to FNC139
18.13 FNC125 – LOGE / Floating Point Natural Logarithm
FNC30-FNC39 Rotation and Shift
This instruction executes the natural logarithm operation.
→ For handling of floating point, refer to Subsection 5.1.3.
P FNC 125
Mnemonic Operation Condition 16-bit Instruction
Mnemonic Operation Condition 32-bit Instruction
9 steps Continuous Operation Pulse (Single) Operation
DLOGEP
2. Set data
Operand Type Description Data Type
Head device number storing binary floating point data used in the natural logarithm operation Real number (binary) Head device number storing the operation result
Bit Devices Word Devices Others
System User Digit Specification System User Special
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
FNC70-FNC79 External FX I/O Device
3
3
FNC80-FNC89 External FX Device
Natural logarithm [logarithm whose base is "e (2.71828)"] of [ +1, ] is calculated, and the operation result
is stored to [ +1, ]. A real number can be directly specified as .
S S D D
DLOGE S D
FNC100-FNC109 Data Transfer 2
Errors
An operation error is caused in the following cases; The error flag M8067 turns ON, and the error code is stored in D8067.
FNC140-FNC149 Data Operation 2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
18 Floating Point – FNC110 to FNC139
18.13 FNC125 – LOGE / Floating Point Natural Logarithm
In the program example shown below, natural logarithm of "10" set in D50 is calculated, and stored to D30 and D31 when X000 turns ON.

Data used in the natural logarithm operation is set ([1]).
The data to be used is converted into binary floating point (real number) ([2]).

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
18 Floating Point – FNC110 to FNC139
18.14 FNC126 – LOG10 / Floating Point Common Logarithm
FNC30-FNC39 Rotation and Shift
This instruction executes the common logarithm operation.
→ For handling of floating point, refer to Subsection 5.1.3.
P FNC 126
Mnemonic Operation Condition 16-bit Instruction
Mnemonic Operation Condition 32-bit Instruction
9 steps Continuous Operation Pulse (Single) Operation
DLOG10P
2. Set data
Operand Type Description Data Type
Head device number storing binary floating point data used in the common logarithm operation Real number (binary) Head device number storing the operation result
Bit Devices Word Devices Others
System User Digit Specification System User Special
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
FNC70-FNC79 External FX I/O Device
3
3
FNC80-FNC89 External FX Device
Common logarithm [logarithm whose base is "10"] of [ +1, ] is calculated, and the operation result is
stored to [ +1, ]. A real number can be directly specified as .
S D S D
input FNC126 DLOG10 S D
FNC100-FNC109 Data Transfer 2
Errors
An operation error occurs in the following cases; The error flag M8067 turns ON, and the error code is stored in D8067.
FNC140-FNC149 Data Operation 2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
18 Floating Point – FNC110 to FNC139
18.14 FNC126 – LOG10 / Floating Point Common Logarithm
In the program example shown below, common logarithm of "15" set in D50 is calculated, and stored to D30 and D31 when X000 turns ON.

Data used in the common logarithm operation is set ([1]).
The data to be used is converted into binary floating point (real number) ([2]).

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
18 Floating Point – FNC110 to FNC139
18.15 FNC127 – ESQR / Floating Point Square Root
FNC30-FNC39 Rotation and Shift
This instruction obtains the square root of binary floating point.
→ For handling of floating point, refer to Subsection 5.1.3.
P FNC 127
Mnemonic Operation Condition 16-bit Instruction
Mnemonic Operation Condition 32-bit Instruction
9 steps Continuous Operation Pulse (Single) Operation
−
DESQRP
2. Set data
Operand Type Description Data Type
Word device number storing binary floating point data whose square root is calculated
Real number (binary)*1 Data register number storing the square root of binary floating point data
*1. When a constant (K or H) is specified, it is automatically converted into binary floating point (real number) when the instruction is executed.
Bit Devices Word Devices Others
System User Digit Specification System User Special
FNC70-FNC79 External FX I/O Device
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 S1 S2 3
S1: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S2: This function is supported only in FX3U/FX3UC PLCs.
FNC80-FNC89 External FX Device
1. 32-bit operation (DESQR and DESQRP)
The square root of [ +1, ] is calculated (in the binary floating point operation), and the result is transferred
FNC100-FNC109 Data Transfer 2
to [ +1, ].
→ [ +1, ] Binary floating point [ +1, ] Binary floating point S D S D S D
Related device
→ For the zero flag use method, refer to Subsection 6.5.2.
M8020 Zero flag Turns ON when the operation result is true "0".
FNC140-FNC149 Data Operation 2
The contents of [ +1, ] are valid only when a positive value is set. When a negative value is set, the operation error flag M8067 turns ON, and the instruction is not executed.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
18 Floating Point – FNC110 to FNC139
18.16 FNC128 – ENEG / Floating Point Negation
This instruction inverts the sign of binary floating point (real number) data.
→ For handling of floating point, refer to Subsection 5.1.3.

Operand Type Description Data Type
Head device number storing binary floating data whose sign is to be inverted Real number (binary)

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
1. 32-bit operation (DENEG and DENEGP)
The sign of binary floating point stored in [ +1, ] is inverted, and the negation result is stored to [ +1,
].
Program example
In the program example shown below, the sign of floating point data stored in D100 and D101 is inverted, and the negation result is stored to D100 and D101 when X000 turns ON.

Command · input FNC128

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
18 Floating Point – FNC110 to FNC139
18.17 FNC129 – INT / Floating Point to Integer Conversion
FNC30-FNC39 Rotation and Shift
This instruction converts binary floating point data into a binary integer which is a normal data format inside PLCs (binary floating point → binary integer).
→ For program examples of floating point operations, refer to Section 12.10.
→ For handling of floating point, refer to Subsection 5.1.3.
P FNC 129
Mnemonic Operation Condition 32-bit Instruction
Continuous Operation Pulse (Single) Operation
9 steps Continuous Operation Pulse (Single) Operation
DINT
INTP
DINTP
2. Set data
Operand Type Description Data Type
Data register number storing binary floating point data to be converted into a binary integer Real number (binary)
Data register number storing a converted binary integer 16- or 32-bit binary
Bit Devices Word Devices Others
System User Digit Specification System User Special
FNC70-FNC79 External FX I/O Device
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 S 1 S 2 3
S1: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S2: This function is supported only in FX3U/FX3UC PLCs.
FNC80-FNC89 External FX Device
1. 16-bit operation (INT and INTP)
Binary floating point stored in [ +1, ] is converted into a binary integer, and transferred to .
FNC100-FNC109 Data Transfer 2
INT S D → 16-bit binary integer The decimal part is cut.
+1, Binary floating point
Instruction for inverse conversion The inverse conversion is executed by FLT (FNC 49) instruction.
→ For FLT (FNC 49) instruction, refer to Section 12.10.
Binary floating point stored in [ +1, ] is converted into a binary integer, and transferred to [ +1,
].
FNC140-FNC149 Data Operation 2
DINT S D → +1, 32-bit binary integer The decimal part is cut.
+1, Binary floating point
Instruction for inverse conversion The inverse conversion is executed by DFLT (FNC 49) instruction.
→ For FLT (FNC 49) instruction, refer to Section 12.10.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
18 Floating Point – FNC110 to FNC139
18.17 FNC129 – INT / Floating Point to Integer Conversion
→ For the methods of zero, borrow and carry flags, refer to Subsection 6.5.2.
M8020 Zero flag Turns ON when the operation result is 0
M8021 Borrow flag Turns ON when the conversion result is cut in the decimal part.
Turns ON when the operation result is outside the range from −32768 to 32767 (in 16-bit operation) or from −2,147,483,583 to 2,147,483,583 (in 32-bit operation) and overflow occurs. (The operation result is not reflected.)
1. Caution in the operation
Device Name Description · M8022 Carry flag

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
18 Floating Point – FNC110 to FNC139
18.18 FNC130 – SIN / Floating Point Sine
FNC30-FNC39 Rotation and Shift
This instruction obtains the sine value of an angle (in radians).
→ For handling of floating point, refer to Subsection 5.1.3.
P FNC 130
Mnemonic Operation Condition 16-bit Instruction
Mnemonic Operation Condition 32-bit Instruction
−
9 steps Continuous Operation Pulse (Single) Operation
DSINP
2. Set data
Operand Type Description Data Type
Device number storing an angle (in radians) in binary floating point
Real number (binary) Device number storing the sine value in binary floating point
Bit Devices Word Devices Others
System User Digit Specification System User Special
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
FNC70-FNC79 External FX I/O Device
1. 32-bit operation (DSIN and DSINP)
A value of angle (binary floating point) specified in [ +1, ] is converted into the sine value, and transferred
to [ +1, ].
FNC80-FNC89 External FX Device
[ +1, ] RAD → [ +1, ] SIN Binary floating point Binary floating point
DSIN S D
Value in radians (Value in degrees × π /180) Binary floating point
FNC100-FNC109 Data Transfer 2
Sine value Binary floating point
MOVP K 45 D 0 (K45) → (D 0)
An angle is selected by the inputs X001 and X002.
MOVP K 90 D 0 (K90) → (D 0)
FLTP D 0 D 4 (D 0) → (D5, D4) Binary floating point
value RUN monitor FNC123
FNC140-FNC149 Data Operation 2
DEDIV K31415926 K1800000000 D 20 (π/180) → (D21, D20) Binary floating point
(D5, D4) Degrees × (π/180) → (D31, D30) Radians Binary floating point
S D
DSIN D 30 D100 (D31, D30) RAD → (D101, D100) SIN Binary floating point

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
18 Floating Point – FNC110 to FNC139
18.19 FNC131 – COS / Floating Point Cosine
This instruction obtains the cosine value of an angle (in radians).
→ For handling of floating point, refer to Subsection 5.1.3.

Operand Type Description Data Type
Device number storing an angle (in radians) in binary floating point
Real number (binary) Device number storing the cosine value in binary floating point

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
1. 32-bit operation (DCOS and DCOSP)
A value of angle (binary floating point) specified in [ +1, ] is converted into the cosine value, and

DCOS S D [ +1, ] RAD → [ +1, ] COS Binary floating point Binary floating point
Value in radians (Value in degrees × π /180) Binary floating point

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
18 Floating Point – FNC110 to FNC139

This instruction obtains the tangent value of an angle (in radians).
→ For handling of floating point, refer to Subsection 5.1.3.
Device number storing an angle (in radians) in binary floating point
Real number (binary) Device number storing the tangent value in binary floating point
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
A value of angle (binary floating point) specified in [ +1, ] is converted into the tangent value, and
DTAN S D [ +1, ] RAD → [ +1, ] TAN Binary floating point Binary floating point
Value in radians (Value in degrees × π /180) Binary floating point

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
18 Floating Point – FNC110 to FNC139
18.21 FNC133 – ASIN / Floating Point Arc Sine
This instruction executes SIN−1 (arc sine) operation.
→ For handling of floating point, refer to Subsection 5.1.3.

Operand Type Description Data Type
Head device number storing a sine value used in SIN−1 (arc sine) operation.
Real number (binary) Head device number storing the operation result

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
1. 32-bit operation (DASIN and DASINP)
An angle is obtained from the sine value stored in [ +1, ], and stored to [ +1, ].

A real number can be directly specified as .
→ For the RAD (FNC136) instruction, refer to Section 18.24. → For the DEG (FNC137) instruction, refer to Section 18.25.
An operation error is caused in the following case; The error flag M8067 turns ON, and the error code is stored in D8067.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
18 Floating Point – FNC110 to FNC139

In the program example shown below, the SIN−1 value of data (binary floating point) stored in D0 and D1 is calculated, and the angle is output in 4-digit BCD to Y040 to Y057 when X000 turns ON.
The angle (in radians) is calculated by the SIN−1
The value in radians is converted into the value in degrees ([2]).
The angle expressed in binary floating point (real number) is converted into an integer (binary) ([3]).
The angle expressed in integer (binary) is output to the display unit ([4]). FNC 18

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
18 Floating Point – FNC110 to FNC139
18.22 FNC134 – ACOS / Floating Point Arc Cosine
This instruction executes COS−1 (arc cosine) operation.
→ For handling of floating point, refer to Subsection 5.1.3.

Operand Type Description Data Type
Head device number storing a cosine value used in COS−1 (arc cosine) operation
Real number (binary) Head device number storing the operation result

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
1. 32-bit operation (DACOS and DACOSP)
An angle is obtained from the cosine value stored in [ +1, ], and stored to [ +1, ].
A real number can be directly specified as .

→ For the RAD (FNC136) instruction, refer to Section 18.24. → For the DEG (FNC137) instruction, refer to Section 18.25.
An operation error is caused in the following case; The error flag M8067 turns ON, and the error code is stored in D8067.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
18 Floating Point – FNC110 to FNC139

In the program example shown below, the COS−1 value of data (binary floating point) stored in D0 and D1 is calculated, and the angle is output in 4-digit BCD to Y040 to Y057 when X000 turns ON.
The angle (in radians) is calculated by the COS−1
The value in radians is converted into the value in degrees ([2]). D20
The angle expressed in the binary floating point (real number) is converted into an integer (binary) ([3]).
The angle expressed in integer (binary) is output to the display unit ([4]). FNC 18

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
18 Floating Point – FNC110 to FNC139
18.23 FNC135 – ATAN / Floating Point Arc Tangent
This instruction executes the TAN−1 (arc tangent) operation.
→ For handling of floating point, refer to Subsection 5.1.3.

Operand Type Description Data Type
Head device number storing a tangent value used in the TAN−1 (arc tangent) operation
Real number (binary) Head device number storing the operation result

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
1. 32-bit operation (DATAN and DATANP)
An angle is obtained from the tangent value stored in [ +1, ], and stored to [ +1, ].
A real number can be directly specified as .

→ For RAD (FNC136) instruction, refer to Section 18.24. → For DEG (FNC137) instruction, refer to Section 18.25.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
18 Floating Point – FNC110 to FNC139

In the program example shown below, the TAN−1 value of data (binary floating point) stored in D0 and D1 is calculated, and the angle is output in 4-digit BCD to Y040 to Y057 when X000 turns ON.
The angle (in radians) is calculated by the TAN−1
The value in radians is converted into the value in degrees ([2]). D20
The angle expressed in binary floating point (real number) is converted into an integer (binary) ([3]).
The angle expressed in integer (binary) is output to the display unit ([4]). FNC 18

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
18 Floating Point – FNC110 to FNC139
18.24 FNC136 – RAD / Floating Point Degrees to Radians Conversion
This instruction converts a value in degrees into a value in radians.
→ For handling of floating point, refer to Subsection 5.1.3.

Operand Type Description Data Type
Head device number storing a value in degrees to be converted into a value in radians
Real number (binary) Head device number storing a value in radians acquired by conversion

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
1. 32-bit operation (DRAD and DRADP)
The unit of [ +1, ] is converted from degrees into radians, and the operation result is stored to [ +1,
].
A real number can be directly specified as .

Radians = Degrees ×
180 π

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
18 Floating Point – FNC110 to FNC139

In the program example shown below, a 4-digit BCD value set in degrees in X020 to X037 is converted into a binary floating point value in radians, and stored to D20 and D21 when X000 turns ON.
Angle to be converted into radians is input ([1]).
The input angle is converted into binary floating point (real number) ([2]).
The angle is converted from degrees into radians ([3]).

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
18 Floating Point – FNC110 to FNC139
18.25 FNC137 – DEG / Floating Point Radians to Degrees Conversion
This instruction converts a value in radians into a value in degrees.
→ For handling of floating point, refer to Subsection 5.1.3.

Operand Type Description Data Type
Head device number storing a value in radians to be converted into a value in degrees
Real number (binary) Head device number storing a value in degrees acquired by conversion

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
S S D D
DDEG S D
Degrees = Radians ×
In the program example shown below, a binary floating point value set in radians in D20 and D21 is converted into a BCD value in degrees, and stored to Y040 and Y057 when X000 turns ON.

A value in radians is converted into a value in degrees ([1]).
The angle in binary floating point (real number) is converted into an integer ([2]).
The converted integer is output to the display unit ([3]).


FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
19 Data Operation 2 – FNC140 to FNC149

FNC140 to FNC149 provide instructions for executing complicated processing for fundamental applied instructions and for executing special processing.
143 UNI 4-bit Linking of Word Data Section 19.4
144 DIS 4-bit Grouping of Word Data Section 19.5

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
19 Data Operation 2 – FNC140 to FNC149
19.1 FNC140 – WSUM / Sum of Word Data
This instruction calculates the sum of consecutive 16-bit or 32-bit data. When calculating the addition data (sum value) in units of byte (8 bits), use the CCD (FNC 84) instruction.
→ For CCD (FNC 84) instruction, refer to Section 16.5.


Head device number storing data whose sum is calculated 16- or 32-bit binary
n Number of data (0 < n) 16- or 32-bit binary

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
1. 16-bit operation (WSUM and WSUMP)

The sum of "n" 16-bit data starting from is stored as 32-bit data in [ +1, ].
D D Sum of "n" data "n" points (n = 6)
The sum of "n" 32-bit data starting from [ +1, ] is stored as 64-bit data in [ +3, +2, +1,

[ +1, ] [ +3, +2] [ +5, +4] [ +7, +6] [ +9, +8]
Sum of "n" data "n" points (n = 5)

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
19 Data Operation 2 – FNC140 to FNC149
FNC30-FNC39 Rotation and Shift
CCD (FNC 84) Check code Calculates the sum of 16-bit data in units of byte (8 bits) and the horizontal parity.
An operation error is caused in the following cases; The error flag M8067 turns ON, and the error code is stored in D8067.
In the program shown below, the sum of 16-bit data stored in D10 to D14 is stored in [D101, D100].
K4500 K2500 K-3276
[D101,D100] K5 WSUMP instruction
FNC70-FNC79 External FX I/O Device
K6780 K4444
FNC80-FNC89 External FX Device
FNC100-FNC109 Data Transfer 2
FNC140-FNC149 Data Operation 2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
19 Data Operation 2 – FNC140 to FNC149
19.2 FNC141 – WTOB / WORD to BYTE
This instruction separates consecutive 16-bit data in byte units (8 bits).


Head device number storing data to be separated in byte units
16-bit binary Head device number storing result of separation in byte units
n Number of byte data to be separated (0 ≤ n)

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
1. 16-bit operation (WTOB and WTOBP)

00H 00H Low-order byte High-order byte 00H 00H Low-order byte High-order byte
*1 When "n" is an odd number, "n/2" is rounded up. When "n" is "5", for example, " +3" is used.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
19 Data Operation 2 – FNC140 to FNC149
FNC30-FNC39 Rotation and Shift
For example, when "n" is "5", the data from to the low-order byte (8 bits) of +2 is stored in to
+4.
b15 b8 b7 b0
b15 b8 b7 b0
39H 78H DCH
00H 00H 39H 12H 00H 00H 78H 56H 00H DCH
When "n" is "5"
It is ignored when "n" is "5".
"00H" is stored.
BTOW (FNC142) Combines the low-order 8 bits (low-order byte) of consecutive 16-bit data.
Devices storing the separation source data can overlap devices storing the separated data. When "n" is an odd number, however, the high-order byte (8 bits) of the final separation source device is overwritten and erased.
b15 b8 b7 b0 b15 b8 b7 b0
32H 34H 36H
31H 33H 35H
D =D12
00H 00H 31H 32H 00H 00H 33H 34H 00H 35H
When "n" is "5"
FNC70-FNC79 External FX I/O Device
"36H" is ignored when "n" is "5". Because D14 is also used in the separation result destination devices D and later, "36H" is erased and overwritten.
"00H" is stored.
FNC80-FNC89 External FX Device
An operation error is caused in the following cases; The error flag M8067 turns ON, and the error code is stored in D8067.
FNC100-FNC109 Data Transfer 2
In the program shown below, the data stored in D10 to D12 is separated in byte units, and stored in D20 to D25.
END
b15 b8 b7 b0 b15 b8 b7 b0
FDH
58H E2H 44H
00H 00H 58H FDH 00H 00H E2H 57H 00H 44H
57H 34H
FNC140-FNC149 Data Operation 2
"00H" is stored.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
19 Data Operation 2 – FNC140 to FNC149
19.3 FNC142 – BTOW / BYTE to WORD
This instruction combines the low-order 8 bits (low-order byte) of consecutive 16-bit data.


Head device number storing data to be combined in byte units
16-bit binary Head device number storing data acquired by combination in byte units
n Number of byte data to be combined (0 ≤ n)

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
1. 16-bit operation (BTOW and BTOWP)

1st byte data 2nd byte data 3rd byte data
*1 When "n" is an odd number, refer to "3)" below

"00H" is stored in the high-order byte (8 bits) of +2.
CDH 9AH +3 +4 When "n" is "5", "00H" is stored.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
19 Data Operation 2 – FNC140 to FNC149
FNC30-FNC39 Rotation and Shift
WTOB (FNC141) Separates consecutive 16-bit data in byte units (8 bits).
Devices storing the combination source data may be equivalent to devices storing the combined data. After combination, however, the high-order byte (8 bits) of the combination source data stored in the devices used for the combination destination data is erased and overwritten with the data acquired by combining the high-order byte (8 bits).
b15 b8 b7 b0 b15 b8 b7 b0
ABH CDH
12H 34H
D =D10 34H 78H 12H 56H 9AH
D11 D12 D13 D14 D15
When "n" is "6"
78H EFH 56H
BCH
ABH
EFH ABH
56H 78H 9AH
CDH 9AH
EFH BCH
CDH
EFH BCH D16
The high-order bytes is ignored.
It is not changed.
Because these combination source devices are also used for the combination destination, "ABH" and "CDH" are erased and overwritten.
An operation error is caused in the following cases; The error flag M8067 turns ON, and the error code is stored in D8067.
FNC70-FNC79 External FX I/O Device
FNC80-FNC89 External FX Device
In the program shown below, the low-order byte (8 bits) data stored in D20 to D25 is combined, and stored in D10 to D12.
FNC100-FNC109 Data Transfer 2
b15 b8 b7 b0 b15 b8 b7 b0
00H 31H
78H 12H
D10 D11 D12
12H 55H 78H 49H 67H
55H 36H 49H
31H
48H 67H D23 D24
44H
49H 31H D25
The high-order bytes is ignored.
FNC140-FNC149 Data Operation 2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
19 Data Operation 2 – FNC140 to FNC149
19.4 FNC143 – UNI / 4-bit Linking of Word Data
This instruction combines the low-order 4 bits of consecutive 16-bit data.


n Number of data to be combined (0 to 4, When "n" is "0", UNI instruction is not executed.)

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
1. 16-bit operation (UNI/UNIP)

Low-order 4 bits Low-order 4 bits Low-order 4 bits Low-order 4 bits
For example, when "n" is "3", the low-order 4 bits of to +2 are stored in b0 to b11 of , and the

Low-order 4 bits Low-order 4 bits Low-order 4 bits
When "n" is "3", b12 to b15 are set to "0".

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
19 Data Operation 2 – FNC140 to FNC149

An operation error occurs in the following cases; The error flag M8067 turns ON, and the error code is stored in D8067.
In the program below, the low-order 4 bits of D0 to D2 are combined and stored in D10 when X000 turns ON.
1 0 0 0 1 0 1 0 1 0 0 1 0 1 0
1 0 1 0
1 0 0 1 0
Because "n" is "K3", they are set to "0".

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
19 Data Operation 2 – FNC140 to FNC149
19.5 FNC144 – DIS / 4-bit Grouping of Word Data
This instruction separates 16-bit data into 4 bit units.


n Number of data to be separated (0 to 4) (When "n" is "0", DIS instruction is not executed.)

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
1. 16-bit operation (DIS and DISP)

Low-order 4 bits Low-order 4 bits Low-order 4 bits Low-order 4 bits
UNI (FNC143) Combines low-order 4 bits of 16-bit data.
Instruction Description

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
19 Data Operation 2 – FNC140 to FNC149
FNC30-FNC39 Rotation and Shift
An operation error occurs in the following cases; The error flag M8067 turns ON, and the error code is stored in D8067.
In the program below, D0 is separated into 4 bit units and stored in D10 to D13 when X000 turns ON.
DISP D0 D10 K4
END
b15 b4 b3 b0 b2 b1 D10
b15 b12b11 b4 b3 b0
1 0 0 0 1 0 1 0 1 0 0 1 0 0 1 1 1 0
1 0 1 0
1 0 0 1 0
0 0 1 1 0
They are set to "0".
FNC70-FNC79 External FX I/O Device
FNC80-FNC89 External FX Device
FNC100-FNC109 Data Transfer 2
FNC140-FNC149 Data Operation 2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
19 Data Operation 2 – FNC140 to FNC149
19.6 FNC147 – SWAP / Byte Swap
This instruction swaps the high-order 8 bits and low-order 8 bits of a word device.

Operand type Description Data type
Word device whose high-order 8 bits and low-order 8 bits are swapped for each other 16- or 32-bit binary
3. Applicable devices

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
input FNC147 SWAPP S
High-order 8 bits Low-order 8 bits
+1 S S Command
input FNC147 DSWAPP S
High-order 8 bits Low-order 8 bits , High-order 8 bits Low-order 8 bits
When the continuous operation type instruction is used, swapping is executed in each operation cycle. This instruction works in the same way as the extension function of the XCH (FNC 17) instruction.
S Command

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
19 Data Operation 2 – FNC140 to FNC149
19.7 FNC149 – SORT2 / Sort Tabulated Data 2
FNC30-FNC39 Rotation and Shift
This instruction sorts a data table consisting of data (lines) and group data (columns) based on a specified group data (column) sorted by line in either ascending or descending order. This instruction stores the data (lines) in serial devices facilitating the addition of data (lines). On the other hand, the SORT (FNC 69) instruction stores the group data (columns) in serial devices, and sorts a table in ascending order only.
→ For SORT (FNC 69) instruction, refer to Section 14.10.
Mnemonic Operation Condition 16-bit Instruction
21 steps DSORT2 Continuous Operation
Operand type Description Data type
Head device number storing the data table [which occupies m1 × m2 points]
m1 Number of data (lines) [1 to 32]
m2 Number of group data (columns) [1 to 6]
Head device number storing the operation result [which occupies m1 × m2 points]
FNC70-FNC79 External FX I/O Device
n Column number of group data (column) used as the basis of sorting [1 to m2]
Bit Devices Word Devices Others
System User Digit Specification System User Special
FNC80-FNC89 External FX Device
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
m1 3
n 3
FNC100-FNC109 Data Transfer 2
1. 16-bit operation (SORT2)
In the data table (sorting source) having (m1 x m2) points from , data lines are sorted in the ascending or descending order based on the group data in column No. "n", and the result is stored in the data table (occupying m1
x m2 points) from .
→ For operation examples, refer to Page 545.
SORT2 m1 m2 S n D
Instruction execution complete flag
FNC140-FNC149 Data Operation 2
M{{ Instruction execution complete flag for SORT2 instruction

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
19 Data Operation 2 – FNC140 to FNC149
19.7 FNC149 – SORT2 / Sort Tabulated Data 2
The data table configuration is explained in an example in which the sorting source data table has 3 lines and 4
columns (m1 = K3, m2 = K4). For the sorting result data table, understand as .

→ For the instruction execution complete flag use method, refer to Subsection 6.5.2.
In the data table (sorting source) having (m1 × m2) points from [ +1, ], data lines are sorted in the ascending or descending order based on the group data in the column No. "n", and the result is stored in the data table
(sorting result) having (m1 × m2) points from [ +1, ].
→ For operation examples, refer to next page.

M{{ Instruction execution complete flag for SORT2 instruction
The data table configuration is explained in an example in which the sorting source data table has 3 lines and 4
columns (m1 = K3, m2 = K4). For the sorting result data table, understand as .

1 [ +1, ] [ +3, +2] [ +5, +4] [ +7, +6]
2 [ +9, +8] [ +11, +10] [ +13, +12] [ +15, +14]
3 [ +17, +16] [ +19, +18] [ +21, +20] [ +23, +22]
→ For the instruction execution complete flag use method, refer to Subsection 6.5.2.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
19 Data Operation 2 – FNC140 to FNC149
3. Operation examples When the instruction is executed with "n = K2 (column No. 2)" and "n = K3 (column No. 3)" for the following sorting source data, the operations shown below result. The operation examples below indicate 16-bit operations. In the case of 32-bit operation, construct the data table with 32-bit binary data. It is recommended to put a serial number such as a control number in the first column so that the original line number can be estimated based on the contents.
FNC30-FNC39 Rotation and Shift
Column No. Number of groups (m2 = K4)
1 2 3 4
Line No. Control number Height Weight Age
1 +1 +2 +3
1 150 45 20
2 +4 +5 +6 +7
2 180 50 40
3 +8 +9 +10 +11
3 160 70 30
4 +12 +13 +14 +15
4 100 20 8
5 +16 +17 +18 +19
5 150 50 45
FNC70-FNC79 External FX I/O Device
Column No. 1 2 3 4
Line No. Control number Height Weight Age
1 +1 +2 +3
4 100 20 8
2 +4 +5 +6 +7
FNC80-FNC89 External FX Device
1 150 45 20
3 +8 +9 +10 +11
5 150 50 45
4 +12 +13 +14 +15
3 160 70 30
5 +16 +17 +18 +19
FNC100-FNC109 Data Transfer 2
2 180 50 40
Column No. 1 2 3 4
Line No. Control number Height Weight Age
1 +1 +2 +3
3 160 70 30
2 +4 +5 +6 +7
2 180 50 40
3 +8 +9 +10 +11
FNC140-FNC149 Data Operation 2
5 150 50 45
4 +12 +13 +14 +15
1 150 45 20
5 +16 +17 +18 +19
4 100 20 8

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
19 Data Operation 2 – FNC140 to FNC149
19.7 FNC149 – SORT2 / Sort Tabulated Data 2
→ For the instruction execution complete flag use method, refer to Subsection 6.5.2.

M8029 Instruction execution complete Turns ON when data sorting is completed.
M8165 Descending order Sorts data in the descending order when set to ON. Sorts data in the ascending order when set to OFF.

Sort tabulated data This instruction sorts a data table consisting of data (lines) and group data (columns) based on a specified group data (column) sorted by line in ascending order. This instruction stores the group data (columns) in serial devices.
Pay close attention not to change the contents of until execution of SORT2 instruction is completed.


FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
20 Positioning Control – FNC150 to FNC159

FNC150 to FNC159 provide positioning instructions using the built-in pulse output function of the PLC.
→ For details, refer to the Positioning Control Edition manual.
During RUN, avoid writing while any positioning control instruction (FNC150, FNC151, or FNC156 to FNC159) is executed (that is, while pulses are output). If program write is executed during RUN to a circuit block including a target instruction below while pulses are being output, the PLC executes the operation shown below.
Target instruction PLC operation when writing executed during RUN while instruction is
During operation with acceleration/deceleration Decelerates and stops pulse output.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
20 Positioning Control – FNC150 to FNC159
20.1 FNC150 – DSZR / Dog Search Zero Return
This instruction executes a zero return, and aligns the mechanical position with a present value register inside the PLC. In addition, this instruction enables the following functions not supported by the ZRN (FNC156) instruction:
→ For explanation of the instruction, refer to the Positioning Control Edition manual.
→ For cautions on using special high-speed output adapters,
refer to the Positioning Control Edition manual.
Mnemonic Operation Condition 16-bit Instruction
2. Set data

Device number (Y) from which pulses are to be output
Device number to which rotation direction signal is output

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
S1 : "D .b" is available only in FX3U/FX3UC PLCs. However, index modifiers (V and Z) are not available. S2 : In the case of FX3G/FX3GC/FX3U/FX3UC PLCs, specify X000 to X007.
In the case of FX3S PLC, specify X000 to X005. S3 : 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 FX3G PLC (14-point and 24-point type) and FX3S/FX3GC PLCs.
*2. High-speed output special adapters can be connected only to FX3U PLC.
*3. To use Y002 and Y003 with a high-speed output special adapter, connected a second high-speed output special adapter. Points

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
20 Positioning Control – FNC150 to FNC159
S4 : When using a special high-speed output adapter for the pulse output destination in an FX3U PLC, the rotation
FNC30-FNC39 Rotation and Shift
direction signal must be used by the following table output. When using a built-in transistor output for the pulse output destination in an FX3S/FX3G/FX3GC/FX3U/FX3UC PLCs, the rotation direction signal must use transistor output.
Special high-speed output adapter No. Pulse output Rotation direction output
=Y000 =Y004
No. 1 (1st unit)
=Y001 =Y005
D 1 D 2
=Y002 =Y006
No. 2 (2nd unit)
=Y003 =Y007
Explanation of function and operation
DSZR S2 S1 D1 D2
During RUN, avoid writing while the DSZR (FNC150) instruction is executed (that is, while a pulse is output). Note that if writing is executed during RUN to a circuit block including the FNC150 instruction while pulses are output, the PLC decelerates and stops pulse output.
The function of FNC150 instruction is changed depending on the version as shown in the table below.
→ For explanation of the instruction and the contents of function change,
refer to the Positioning Control Edition.
FNC70-FNC79 External FX I/O Device
Item Outline of function FX3S FX3G FX3GC FX3U FX3UC
When a special auxiliary relay corresponding to is set to ON, the clear signal output destination is changed to an output number specified by a special data register
Ver. 1.00
Ver. 1.00
Ver. 1.40
Ver. 2.20
Ver. 2.20
Clear signal output destination specification function
FNC80-FNC89 External FX Device
corresponding to .
FNC100-FNC109 Data Transfer 2
FNC140-FNC149 Data Operation 2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
20 Positioning Control – FNC150 to FNC159
20.2 FNC151 – DVIT / Interrupt Positioning
This instruction executes one-speed interrupt constant quantity feed.
→ For explanation of the instruction, refer to the Positioning Control Edition manual.
→ For cautions on using special high-speed output adapters,
refer to the Positioning Control Edition manual.
DVIT D DVIT
2. Set data

Number of output pulses (incremental address) after interrupt*1
Device number (Y) from which pulses are to be output
Bit Device number to which rotation direction signal is output
*1. Setting range: −32768 to +32767 (except 0) in 16-bit operation −999,999 to +999,999 (except 0) in 32-bit operation
Pulse output destination Setting range
FX3U PLC Special high-speed output adapter 10 to 200,000 (Hz)
FX3U/FX3UC PLC Main unit (transistor output) 10 to 100,000 (Hz)

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
S1 : Specify Y000, Y001 or Y002 transistor output from the main unit, or specify Y000, Y001, Y002*4 or Y003*4 from
a high-speed output special adapter*3.
*3. High-speed output special adapters can be connected only to FX3U PLC.
*4. To use Y002 and Y003 with a high-speed output special adapter, connected a second high-speed output special adapter. Points

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
20 Positioning Control – FNC150 to FNC159
S2 : When using a special high-speed output adapter for the pulse output destination in an FX3U PLC, the rotation
FNC30-FNC39 Rotation and Shift
direction signal must be used by the following table output. When using a built-in transistor output for the pulse output destination in an FX3U/FX3UC PLC, the rotation direction signal must use transistor output.
Special high-speed output adapter No. Pulse output Rotation direction output
=Y000 =Y004
No. 1 (1st unit)
=Y001 =Y005
D 1 D 2
=Y002 =Y006
No. 2 (2nd unit)
=Y003 =Y007
S3 : "D .b" cannot be indexed with index registers (V and Z).
DVIT S2 S1 D1 D2
During RUN, avoid writing while the DVIT (FNC151) instruction is executed (that is, while a pulse is output). Note that if writing is executed during RUN to a circuit block including the FNC151 instruction while pulses are output, the PLC decelerates and stops pulse output.
The functions of FNC151 instruction are changed depending on the version as shown in the table below.
FNC70-FNC79 External FX I/O Device
→ For explanation of the instruction and the contents of function change,
refer to the Positioning Control Edition.
Item Outline of function FX3U FX3UC
When M8336 is set to ON, the interrupt input signal corresponding to Y000 to Y003 is changed to an input number (X000 to X007) specified by D8336. When using a transistor output in the main unit, Y003 cannot be specified.
Ver. 2.20 or later Ver. 1.30 or later Interrupt input signal
FNC80-FNC89 External FX Device
When "8" is specified by D8336 to the interrupt input signal corresponding to Y000 to Y003 and M8336 is set to ON, the interrupt input signal is changed to a special auxiliary relay. When this changed special auxiliary relay is set to from OFF to ON in an input interrupt program, the PLC starts the interrupt operation. When this function is used, however, the logic of the interrupt input cannot be inverted. In addition, when using a transistor output in the main unit, Y003 cannot be specified.
Ver. 2.20 or later Ver. 2.20 or later User interrupt mode
FNC100-FNC109 Data Transfer 2
FNC140-FNC149 Data Operation 2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
20 Positioning Control – FNC150 to FNC159
20.3 FNC152 – TBL / Batch Data Positioning Mode
This instruction executes one specified table operation from the data table set in GX Works2 etc.
→ For explanation of the instruction, refer to the Positioning Control Edition manual.
→ For cautions on using special high-speed output adapters,
refer to the Positioning Control Edition manual.
DVIT (FNC151)*1 Interrupt positioning
PLSV (FNC157) Variable speed pulse output
DRVI (FNC158) Drive to increment
DRVA (FNC159) Drive to absolute
*1. This function is supported only in FX3U/FX3UC PLCs.
16-bit Instruction Mnemonic Operation Condition FNC 152
TBL D
2. Set data
Operand type Description Data type
Device number (Y) from which pulses are to be output Bit
n Table entry number [1 to 100] to be executed 32-bit binary

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
S1 : Specify Y000, Y001 or Y002*2 transistor output from the main unit, or specify Y000, Y001, Y002*4 or Y003*4
from a high-speed output special adapter*3.
*2. Y002 is not available in FX3G PLC (14-point and 24-point type) and FX3GC PLC.
*3. High-speed output special adapters can be connected only to FX3U PLC.
*4. To use Y002 and Y003 with a high-speed output special adapter, connected a second high-speed output special adapter. Points
Caution on writing during RUN
Writing is disabled to a circuit block including the TBL (FNC152) instruction during RUN.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
20 Positioning Control – FNC150 to FNC159
20.4 FNC155 – ABS / Absolute Current Value Read
FNC30-FNC39 Rotation and Shift
This instruction reads the absolute position (ABS) data when the servo amplifier (equipped with the absolute position detection function) MR-J4 A, MR-J3 A, MR-J2(S) A, or MR-H A is connected. The data is converted into a pulse when being read.
→ For explanation of the instruction, refer to the Positioning Control Edition.
16-bit Instruction Mnemonic Operation Condition
2. Set data
Operand type Description Data type
Head device number inputting absolute (ABS) data output signal sent from servo amplifier
Three points are occupied from .
Bit Head device number outputting absolute (ABS) data control signal to servo amplifier
Three points are occupied from .
Device number storing absolute (ABS) data (32-bit value) 32-bit binary
FNC70-FNC79 External FX I/O Device
Bit Devices Word Devices Others
System User Digit Specification System User Special
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
FNC80-FNC89 External FX Device
3 S3 S4 3 3
S1: Specify a transistor output. S2: "D .b" is available only in FX3U and FX3UC PLCs. However, index modifiers (V and Z) are not available. S3: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S4: This function is supported only in FX3U/FX3UC PLCs.
FNC100-FNC109 Data Transfer 2
DABS S D1 D2
FNC140-FNC149 Data Operation 2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
20 Positioning Control – FNC150 to FNC159
20.5 FNC156 – ZRN / Zero Return
This instruction executes a zero return, and aligns the mechanical position with a present value register inside the PLC. When the dog search function is required, use DSZR (FNC150) instruction.
→ For explanation of the instruction, refer to the Positioning Control Edition manual.
→ For cautions on using special high-speed output adapters,
refer to the Positioning Control Edition manual.
ZRN D ZRN
2. Set data

16- or 32-bit binary Creep speed [10 to 32767 Hz]
Bit Device number (Y) from which pulses are to be output
Following range for 32-bit operation
Pulse output destination Setting range
FX3U PLC Special high-speed output adapter 10 to 200,000 (Hz)
FX3S/FX3G/FX3GC/FX3U/FX3UC PLCs Main unit (transistor output) 10 to 100,000 (Hz)

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 S3 S4 3
3 S3 S4 3
S1 : "D .b" is available only in FX3U and FX3UC PLCs. However, index modifiers (V and Z) are not available.
S2 : Specify Y000, Y001 or Y002*2 transistor output from the main unit, or specify Y000, Y001, Y002*4 or Y003*4
from a high-speed output special adapter*3.
*2. Y002 is not available in FX3G PLC (14-point and 24-point type) and FX3S/FX3GC PLCs.
*3. High-speed output special adapters can be connected only to FX3U PLC.
*4. To use Y002 and Y003 with a high-speed output special adapter, connected a second high-speed output special adapter. Points

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
20 Positioning Control – FNC150 to FNC159
FNC30-FNC39 Rotation and Shift
ZRN S1 S2 S3 D
During RUN, avoid writing while the ZRN (FNC156) instruction is executed (that is, while pulses are output). Note that if writing is executed during RUN to a circuit block including the FNC156 instruction while pulses are output, the PLC decelerates and stops pulse output.
The function of FNC156 instruction is changed depending on the version as shown in the table below.
→ For explanation of the instruction and the contents of function change,
refer to the Positioning Control Edition.
Item Outline of function FX3S FX3G FX3GC FX3U FX3UC
When a special auxiliary relay corresponding to is set to ON, the clear signal output destination is changed to an output number specified by a special data register
Ver. 1.00
Ver. 1.00
Ver. 1.40
Ver. 2.20
Ver. 2.20
Clear signal output destination specification function
corresponding to .
FNC70-FNC79 External FX I/O Device
FNC80-FNC89 External FX Device
FNC100-FNC109 Data Transfer 2
FNC140-FNC149 Data Operation 2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
20 Positioning Control – FNC150 to FNC159
20.6 FNC157 – PLSV / Variable Speed Pulse Output
This instruction outputs variable speed pulses with an assigned rotation direction.
→ For explanation of the instruction, refer to the Positioning Control Edition manual.
→ For cautions on using special high-speed output adapters,
refer to the Positioning Control Edition manual.
PLSV D PLSV
2. Set data

Device number for output pulse frequency*1 16- or 32-bit binary
Device number (Y) from which pulses are to be output
Bit Device number to which rotation direction signal is output
*1. Setting range: −32768 to −1, +1 to +32767 (except 0) Hz*2 for 16-bit operation
Following range for 32-bit operation
Pulse output destination Setting range
FX3U PLC Special high-speed output adapter −200,000 to −1, +1 to 200,000 (Hz)
FX3S/FX3G/FX3GC/FX3U/FX3UC PLCs Main unit (transistor output) −100,000 to −1, +1 to 100,000 (Hz)*3
*2. When operation without acceleration/deceleration (M8338 = OFF), setting range of FX3S/FX3G/FX3GC PLC is -32,768 to -10 Hz, +10 to 32,767 Hz.
*3. When operation without acceleration/deceleration (M8338 = OFF), setting range of FX3S/FX3G/FX3GC PLC is -100,000 to -10 Hz, +10 to 100,000 Hz.

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 S4 S5 3
S1 : Specify Y000, Y001 or Y002*4 transistor output from the main unit, or specify Y000, Y001, Y002*6 or Y003*6
from a high-speed output special adapter*5.
*4. 002 is not available in FX3G PLC (14-point and 24-point type) and FX3S/FX3GC PLC. *5. High-speed output special adapters can be connected only to FX3U PLC. *6. To use Y002 or Y003 with a high-speed output special adapter, connected a second high-speed output special adapter. Points
direction signal must be used by the following table output. When using a built-in transistor output for the pulse output destination in an FX3S/FX3G/FX3GC/FX3U/FX3UC PLCs, the rotation direction signal must use transistor output.

Special high-speed output adapter No. Pulse output Rotation direction output

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
20 Positioning Control – FNC150 to FNC159
S3 : "D .b" is available only in FX3U and FX3UC PLCs. However, index modifiers (V and Z) are not available. S4 : This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S5 : This function is supported only in FX3U/FX3UC PLCs.
FNC30-FNC39 Rotation and Shift
PLSV S1 D1 D2
During RUN, avoid writing while PLSV (FNC157) instruction is executed (that is, while pulses are output). Note that if writing is executed during RUN to a circuit block including FNC157 instruction while pulses are output, the PLC executes the operation shown below.
PLC operation when writing is executed during RUN while instruction is
During operation with acceleration/deceleration*1 Decelerates and stops pulse output.
During operation without acceleration/deceleration Immediately stops pulse output.
*1. Only available for FX3UC PLC Ver. 2.20 or later and FX3S/FX3G/FX3GC/FX3U PLCs.
The function of the FNC157 instruction is changed depending on the version as shown in the table below.
→ For explanation of the instruction and the contents of function change,
refer to the Positioning Control Edition.
Item Outline of function FX3S FX3G FX3GC FX3U FX3UC
FNC70-FNC79 External FX I/O Device
When M8338 is set to ON, the PLC accelerates or
Acceleration/ deceleration operation function
Ver. 1.00
Ver. 1.00
Ver. 1.40
Ver. 2.20
Ver. 2.20
decelerates up to in the acceleration or deceleration
time corresponding to if changes.
FNC80-FNC89 External FX Device
FNC100-FNC109 Data Transfer 2
FNC140-FNC149 Data Operation 2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
20 Positioning Control – FNC150 to FNC159
20.7 FNC158 – DRVI / Drive to Increment
This instruction executes one-speed positioning by incremental drive. The movement distance from the present position can be specified, positive or negative.
→ For explanation of the instruction, refer to the Positioning Control Edition manual.
→ For cautions on using special high-speed output adapters,
refer to the Positioning Control Edition manual.
DRVI D DRVI
2. Set data

Device number (Y) from which pulses are to be output
Bit Device number to which rotation direction signal is output
*1. Setting range: −32768 to +32767 (except 0) for 16-bit operation −999,999 to +999,999 (except 0) for 32-bit operation
Following range for 32-bit operation
Pulse output destination Setting range
FX3U PLC Special high-speed output adapter 10 to 200,000 (Hz)
FX3S/FX3G/FX3GC/FX3U/FX3UC PLCs Main unit (transistor output) 10 to 100,000 (Hz)

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 S4 S5 3
3 S4 S5 3
S1 : Specify Y000, Y001 or Y002*3 transistor output from the main unit, or specify Y000, Y001, Y002*5, or Y003*5
from a high-speed output special adapter*4.
*3. Y002 is not available in FX3G PLC (14-point and 24-point type) and FX3S/FX3GC PLC.
*4. High-speed output special adapters can be connected only to FX3U PLC.
*5. To use Y002 or Y003 with a high-speed output special adapter, connected a second high-speed output special adapter. Points

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
20 Positioning Control – FNC150 to FNC159
S2 :When using a special high-speed output adapter for the pulse output destination in an FX3U PLC, the rotation
FNC30-FNC39 Rotation and Shift
direction signal must be used by the following table output. When using a built-in transistor output for the pulse output destination in an FX3S/FX3G/FX3GC/FX3U/FX3UC PLCs, the rotation direction signal must use transistor output.
Special high-speed output adapter No. Pulse output Rotation direction output
=Y000 =Y004
No. 1 (1st unit)
=Y001 =Y005
D 1 D 2
=Y002 =Y006
No. 2 (2nd unit)
=Y003 =Y007
S3 : "D .b" is available only in FX3U and FX3UC PLCs. However, index modifiers (V and Z) are not available. S4 : This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S5 : This function is supported only in FX3U/FX3UC PLCs.
DRVI S1 S2 D1 D2
During RUN, avoid writing while DRVI (FNC158) instruction is executed (that is, while pulses are output). Note that if writing is executed during RUN to a circuit block including FNC158 instruction while pulses are output, the PLC decelerates and stops pulse output.
FNC70-FNC79 External FX I/O Device
FNC80-FNC89 External FX Device
FNC100-FNC109 Data Transfer 2
FNC140-FNC149 Data Operation 2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
20 Positioning Control – FNC150 to FNC159
20.8 FNC159 – DRVA / Drive to Absolute
This instruction executes one-speed positioning by absolute drive. The movement distance from the zero point can be specified.
→ For explanation of the instruction, refer to the Positioning Control Edition manual.
→ For cautions on using special high-speed output adapters,
refer to the Positioning Control Edition manual.
DRVA D DRVA
2. Set data

Device number (Y) from which pulses are to be output
Bit Device number to which rotation direction signal is output
Following range for 32-bit operation
Pulse output destination Setting range
FX3U PLC Special high-speed output adapter 10 to 200,000 (Hz)
FX3S/FX3G/FX3GC/FX3U/FX3UC PLCs Main unit (transistor output) 10 to 100,000 (Hz)

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 S4 S5 3
3 S4 S5 3
S1 : Specify Y000, Y001 or Y002*3 transistor output from main unit, or specify Y000, Y001, Y002*5 or Y003*5 from a
high-speed output special adapter*4.
*3. Y002 is not available in FX3G PLC (14-point and 24-point type) and FX3S/FX3GC PLC.
*4. High-speed output special adapters can be connected only to FX3U PLC.
*5. To use Y002 or Y003 with a high-speed output special adapter, connected a second high-speed output special adapter. Points

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
20 Positioning Control – FNC150 to FNC159
S2 : When using a special high-speed output adapter for the pulse output destination in an FX3U PLC, the rotation
FNC30-FNC39 Rotation and Shift
direction signal must be used by the following table output. When using a built-in transistor output for the pulse output destination in an FX3S/FX3G/FX3GC/FX3U/FX3UC PLCs, the rotation direction signal must use transistor output.
Special high-speed output adapter No. Pulse output Rotation direction output
=Y000 =Y004
No. 1 (1st unit)
=Y001 =Y005
D 1 D 2
=Y002 =Y006
No. 2 (2nd unit)
=Y003 =Y007
S3 : "D .b" is available only in FX3U and FX3UC PLCs. However, index modifiers (V and Z) are not available. S4 : This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S5 : This function is supported only in FX3U/FX3UC PLCs.
DRVA S1 S2 D1 D2
During RUN, avoid writing while DRVA (FNC159) instruction is executed (that is, while pulses are output). Note that if writing is executed during RUN to a circuit block including FNC159 instruction while pulses are output, the PLC decelerates and stops pulse output.
FNC70-FNC79 External FX I/O Device
FNC80-FNC89 External FX Device
FNC100-FNC109 Data Transfer 2
FNC140-FNC149 Data Operation 2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
21 Real Time Clock Control – FNC160 to FNC169
FNC160 to FNC169 provide operation and comparison instructions for the time data. These instructions can set the time of the built-in PLC real time clock, and converts the format of the time data.


FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
21 Real Time Clock Control – FNC160 to FNC169
21.1 FNC160 – TCMP / RTC Data Compare
FNC160-FNC169 Real Time Clock Control
This instruction compares the comparison time with the time data, and turns ON or OFF bit devices according to the comparison result.
P FNC 160
Mnemonic Operation Condition 16-bit Instruction
Continuous Operation Pulse (Single) Operation
2. Set data
Operand type Description Data type
Specifies "hour" of the comparison time [setting range: 0 to 23]. 16-bit binary
Specifies "minute" of the comparison time [setting range: 0 to 59]. 16-bit binary
Specifies "second" of the comparison time [setting range: 0 to 59]. 16-bit binary
Specifies "hour" of the time data (hour, minute, and second). (Three devices are occupied.) 16-bit binary
Turns ON or OFF according to the comparison result. (Three devices are occupied.) Bit
FNC190-FNC199 Block Data Operation
Bit Devices Word Devices Others
System User Digit Specification System User Special
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 S2 S3
3 S2 S3
FNC200-FNC209 Character String Control
3 S2 S3
S 2 D
S1: "D .b" is available only in FX3U and FX3UC PLCs. However, index modifiers (V and Z) are not available. S2: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S3: This function is supported only in FX3U/FX3UC PLCs.
FNC210-FNC219 Data Operation 3
FNC250-FNC269 Data Table Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
21 Real Time Clock Control – FNC160 to FNC169
21.1 FNC160 – TCMP / RTC Data Compare
1. 16-bit operation (TCMP)
The comparison time (hour, minute, and second) stored in , , and is compared with the time data

(hour, minute, and second) stored in , +1, and +2. Three devices starting from turn ON or OFF according to the comparison result.
TCMP S1 S2 S3 S D
↑ Even if the command contact turns OFF from ON and TCMP instruction is not executed, , +1 and +2 hold the status before the command contact turned OFF.
1. Number of occupied devices
Three devices are occupied respectively by and . Make sure that these devices are not used in other controls for the machine.

S1 S2 S3 S D
Turns ON in the case of "10:30:50 > "
: Specifies "hour" of the comparison time. : Specifies "minute" of the comparison time.
Turns ON in the case of "10:30:50 = "
Turns ON in the case of "10:30:50 < "
↑ Even if X000 is OFF and TCMP instruction is not executed, M0 to M2 hold the status before X000 turned OFF.
D +1, D +2 D ,
: Three bit devices turn ON or OFF according to the comparison result.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
21 Real Time Clock Control – FNC160 to FNC169
21.2 FNC161 – TZCP / RTC Data Zone Compare
FNC160-FNC169 Real Time Clock Control
This instruction compares two comparison time (comparison time zone) with the time data, and turns ON or OFF the specified bit devices according to the comparison results. 1. Instruction format
Mnemonic Operation Condition 16-bit Instruction
Continuous Operation Pulse (Single) Operation
2. Set data
Operand type Description Data type
Specifies "hour" of the lower limit comparison time (hour, minute, and second). (Three devices are occupied.) 16-bit binary
Specifies "hour" of the upper limit comparison time (hour, minute, and second). (Three devices are occupied.) 16-bit binary
Specifies "hour" of the time data (hour, minute, and second). (Three devices are occupied.) 16-bit binary
Turns ON or OFF according to the comparison result. (Three devices are occupied.) Bit
Bit Devices Word Devices Others
System User Digit Specification System User Special
FNC190-FNC199 Block Data Operation
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 S 2 S 3 3
3 3 3 S 2 S 3 3
3 3 3 S 2 S 3 3
S 2 D
FNC200-FNC209 Character String Control
S1: "D .b" is available only in FX3U and FX3UC PLCs. However, index modifiers (V and Z) are not available. S2: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S3: This function is supported only in FX3U/FX3UC PLCs.
FNC210-FNC219 Data Operation 3
This instruction compares the comparison time zone specified by two points with the time data.
TZCP S1 S2 S D
Turns ON in the case of " ".
Turns ON in the case of " ".
FNC250-FNC269 Data Table Operation
Turns ON in the case of " ".
Even if the command contact turns OFF from ON and TZCP instruction is not executed, , +1 and +2 hold the status before the command contact turned OFF.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
21 Real Time Clock Control – FNC160 to FNC169
21.2 FNC161 – TZCP / RTC Data Zone Compare
1. Number of occupied devices
Three devices are occupied respectively by , , , and . Make sure that these devices are not used in other controls for the machine.

S1 S2 S D
TZCP D 20 D 30 D 0 M 3
↑ Even if X000 is OFF and TZCP instruction is not executed, M0 to M2 hold the status before X000 turned OFF.
S1 : Specify the lower limit of the comparison time zone in "hour", "minute" and "second. S1 +1 and +2 S1 ,
S2 S2 +1 and S2 +2 , : Specify the upper limit of the comparison time zone in "hour", "minute" and "second.
S S +1 and +2 S , : Specify the time data in "hour", "minute" and "second.
+1 and +2 D D D , : Turn ON or OFF according to the comparison result.
The setting range of "hour" is from 0 to 23.
The setting range of "minute" is from 0 to 59.
The setting range of "second" is from 0 to 59.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
21 Real Time Clock Control – FNC160 to FNC169
21.3 FNC162 – TADD / RTC Data Addition
FNC160-FNC169 Real Time Clock Control
This instruction executes addition of two time data, and stores the addition result to word devices.
P FNC 162
Mnemonic Operation Condition 16-bit Instruction
Continuous Operation Pulse (Single) Operation
2. Set data
Operand type Description Data type
Specifies "hour" of the first time data (hour, minute, and second) used in addition. (Three devices are occupied.) 16-bit binary
Specifies "hour" of the second time data (hour, minute, and second) used in addition. (Three devices are occupied.) 16-bit binary
Stores the addition result (hour, minute, and second) of two time data. (Three devices are occupied.) 16-bit binary
Bit Devices Word Devices Others
System User Digit Specification System User Special
FNC190-FNC199 Block Data Operation
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 S 1 S 2 3
3 3 3 S 1 S 2 3
S 2 D
3 3 3 S 1 S 2 3
S1: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S2: This function is supported only in FX3U/FX3UC PLCs.
FNC200-FNC209 Character String Control
1. 16-bit operation (TADD)
The time data (hour, minute, and second) stored in , +1, and +2 is added to the time data (hour,
FNC210-FNC219 Data Operation 3
minute, and second) stored in , +1, and +2, and the addition result (hour, minute, and second) is
stored in , +1, and +2.
( , +1, +2)+( , +1, +2)
S1 S1 S1 S2 S2 S2
TADD S1 S2 D
→( , +1, +2)
The setting range of "hour" is from 0 to 23.
The setting range of "minute" is from 0 to 59.
The setting range of "second" is from 0 to 59.
FNC250-FNC269 Data Table Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
21 Real Time Clock Control – FNC160 to FNC169
21.3 FNC162 – TADD / RTC Data Addition
1. Number of occupied devices
Three devices are occupied by , and respectively. Make sure that these devices are not used in other controls for the machine.



FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
21 Real Time Clock Control – FNC160 to FNC169
21.4 FNC163 – TSUB / RTC Data Subtraction
FNC160-FNC169 Real Time Clock Control
This instruction executes subtraction of two time data, and stores the subtraction result to word devices.
P FNC 163
Mnemonic Operation Condition 16-bit Instruction
Continuous Operation Pulse (Single) Operation
2. Set data
Operand type Description Data type
Specifies "hour" of the time data (hour, minute, and second) used in subtraction. (Three devices are occupied.) 16-bit binary
Specifies "hour" of the time data (hour, minute, and second) used in subtraction. (Three devices are occupied.) 16-bit binary
Stores the subtraction result (hour, minute, and second) of two time data. (Three devices are occupied.) 16-bit binary
Bit Devices Word Devices Others
System User Digit Specification System User Special
FNC190-FNC199 Block Data Operation
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 S 1 S 2 3
3 3 3 S 1 S 2 3
S 2 D
3 3 3 S 1 S 2 3
S1: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S2: This function is supported only in FX3U/FX3UC PLCs.
FNC200-FNC209 Character String Control
1. 16-bit operation (TSUB)
The time data (hour, minute, and second) stored in , +1, and +2 is subtracted from the time data
FNC210-FNC219 Data Operation 3
(hour, minute, and second) stored in , +1, and +2, and the subtraction result (hour, minute, and
second) is stored in , +1, and +2.
( , +1, +2)−( , +1, +2)
S1 S1 S1 S2 S2 S2
TSUB S1 S2 D
→ ( , +1, +2)
The setting range of "hour" is from 0 to 23.
The setting range of "minute" is from 0 to 59.
The setting range of "second" is from 0 to 59.
When the operation result is smaller than 0 hour, the borrow flag turns ON, and the value simply acquired by subtraction added by 24 hours is stored as the operation result. When the operation result becomes "0" (0:0:0), the zero flag turns ON.
FNC250-FNC269 Data Table Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
21 Real Time Clock Control – FNC160 to FNC169
21.4 FNC163 – TSUB / RTC Data Subtraction
1. Number of occupied devices
Three devices are occupied by , and respectively. Make sure that these devices are not used in other controls for the machine.



FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
21 Real Time Clock Control – FNC160 to FNC169

This instruction converts the time data in units of "hour, minute, and second" into data in units of "second".
Head device number storing the time data (hour, minute and second) before conversion 16-bit binary
Device number storing the time data (second) after conversion 16- or 32-bit binary
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
The time data (hour, minute, and second) stored in , +1, and +2 is converted into data in units of
For example, when "4 hours 29 minutes 31 seconds" is specified, the operation is as follows:

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
21 Real Time Clock Control – FNC160 to FNC169
21.5 FNC164 – HTOS / Hour to Second Conversion
The time data (hour, minute, and second) stored in , +1, and +2 is converted into data in units of
"second", and stored to +1, .
DHTOS S D

For example, when "35 hours 10 minutes 58 seconds" is specified, the operation is as follows:

An operation error is caused in the following case; The error flag M8067 turns ON, and the error code is stored in D8067.
Program example
In the program shown below, the time data read from the built-in PLC real time clock is converted into data in units of "second", and stored to D100 and D101 when X020 turns ON.


Command · input FNC164

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
21 Real Time Clock Control – FNC160 to FNC169

This instruction converts the time data in units of "second" into data in units of "hour, minute, and second".
Device number storing the time data (second) before conversion 16- or 32-bit binary
Head device number storing the time data (hour, minute and second) after conversion 16-bit binary
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
The time data in units of "second" stored in is converted into data in units of "hour, minute, and second", and
stored to , +1, and +2 (hour, minute, and second).
For example, when "29,011 seconds" is specified, the operation is as follows:

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
21 Real Time Clock Control – FNC160 to FNC169
21.6 FNC165 – STOH / Second to Hour Conversion

The time data in units of "second" stored in +1 and is converted into data in units of "hour, minute, and
second", and stored to three devices , +1, and +2 (hour, minute, and second).
For example, when "45,325 seconds" is specified, the operation is as follows:
An operation error is caused in the following case; The error flag M8067 turns ON, and the error code is store in D8067.
In the program shown below, the time data in units of "second" stored in D0 and D1 is converted into data in units of "hour, minute, and second", and stored to D100, D101, and D102 when X020 turns ON.

+1 · +2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
21 Real Time Clock Control – FNC160 to FNC169
21.7 FNC166 – TRD / Read RTC data
FNC160-FNC169 Real Time Clock Control
This instruction reads the clock data of the built-in PLC real time clock.
P FNC 166
Mnemonic Operation Condition 16-bit Instruction
Continuous Operation Pulse (Single) Operation
2. Set data
Operand type Description Data type
Specifies the head device number storing the clock data. (Seven devices are occupied.) 16-bit binary
Bit Devices Word Devices Others
System User Digit Specification System User Special
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 S 1 S 2 3
S1: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S2: This function is supported only in FX3U/FX3UC PLCs.
FNC190-FNC199 Block Data Operation
to to +6.
FNC200-FNC209 Character String Control
This instruction reads the real time clock data in a PLC, and transfers it to seven data registers.
Device Item Clock data Device Item
FNC210-FNC219 Data Operation 3
D8016 Day 1 to 31 → D 2 Day
D8015 Hour 0 to 23 → D 3 Hour
D8014 Minute 0 to 59 → D 4 Minute
D8013 Second 0 to 59 → D 5 Second
FNC250-FNC269 Data Table Operation
D8019 Day of week 0 (Sunday) to 6 (Saturday) → D 6 Day of week
1. Number of occupied devices
Seven devices are occupied by . Make sure that these devices are not used in other controls for the machine.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
21 Real Time Clock Control – FNC160 to FNC169
21.8 FNC167 – TWR / Set RTC data
This instruction writes the clock data to the built-in PLC real time clock.

Operand type Description Data type
Specifies the head device number to which the clock data is written. (Seven devices are occupied.) 16-bit binary

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
S1: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S2: This function is supported only in FX3U/FX3UC PLCs.
The clock data stored in to +6 is written to D8013 to D8019 for the built-in PLC real time clock.
TWRP S
- D8018 (year data) can be converted into the 4-digit mode. (Refer to the program example shown later.)


D 11 Month 1 to 12 → D8017 Month
D 12 Day 1 to 31 → D8016 Day
D 13 Hour 0 to 23 → D8015 Hour
D 14 Minute 0 to 59 → D8014 Minute
D 15 Second o to 59 → D8013 Second
D 16 Day of week 0 (Sunday) to 6 (Saturday) → D8019 Day of week
- When TWR (FNC167) instruction is executed, the clock data of the real time clock is immediately changed.
Accordingly, transfer the clock data several minutes ahead to to +6 in advance, and then execute FNC167 instruction when the accurate time has come. - When setting the clock data (time) using this instruction, it is not necessary to control the special auxiliary relay M8015 (time stop and time setting). - If a numeric value indicating impossible date/time is set, the clock data is not changed. Set the correct clock data, and then write it. - The day of the week (D8019) is automatically corrected in accordance with the date without regard to the written numeric value.
Command · input FNC167

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
21 Real Time Clock Control – FNC160 to FNC169
FNC160-FNC169 Real Time Clock Control
Seven devices are occupied by . Make sure that these devices are not used in other controls for the machine.
Year (lower two digits)
D1 K4 FNC 12
MOV
D2 K25 FNC 12
MOV
D3 K15 FNC 12
MOV
D4 K20 FNC 12
MOV
D5 K30 FNC 12
MOV
D6 K2 FNC 12
FNC190-FNC199 Block Data Operation
The current value of the built-in real time clock is updated.
M8017 X001 The current value is corrected by ±30 seconds.
FNC200-FNC209 Character String Control
FNC210-FNC219 Data Operation 3
MOV K2000 D8018 Initial pulse
- A PLC is normally operating in the 2-digit year mode. When the above instruction is executed and "K2000 (fixed value)" is transferred to D8018 (year) in only one operation cycle after the PLC mode was changed to RUN, the year mode is switched to the 4-digit mode. - Execute this program every time the PLC mode is changed to RUN. Even if "K2000" is transferred, only the display format is changed to the 4-digit year mode. The current date and time are not affected. - In the 4-digit year mode, the set values "80 to 99" correspond to "1980 to 1999", and "00 to 79" correspond to "2000 to 2079". Examples: "80" indicates 1980. "99" indicates 1999. "00" indicates 2000. "79" indicates 2079.
FNC250-FNC269 Data Table Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
21 Real Time Clock Control – FNC160 to FNC169
21.9 FNC169 – HOUR / Hour Meter
This instruction measures the ON time of the input contact in units of hour.
Mnemonic Operation Condition 16-bit Instruction
HOUR
2. Set data

Time after which is set to ON (unit: hour) 16- or 32-bit binary
Head device number to which alarm is output Bit

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 S2 S3
S1: D .b is available only in FX3U and FX3UC PLCs. However, index modifiers (V and Z) are not available. S2: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S3: This function is supported only in FX3U/FX3UC PLCs.

or exceeds the time stored in , is set to ON.
HOUR S D1 D2
The current value less than one hour is stored in +1 (unit: second).
: Time after which is set to ON Specify a value in units of hour.
It turns ON when the current value reaches or exceeds the time specified in .
To begin measuring the ON time again, clear the current value stored in and +1. When the current value is cleared, alarm output is turned OFF.
For continuing the measurement, clear the current value stored in and +1.
Mnemonic Operation Condition · 7 steps HOUR · Continuous Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
21 Real Time Clock Control – FNC160 to FNC169
FNC160-FNC169 Real Time Clock Control
input FNC169 DHOUR S D1 D2
Specify the high-order side in +1, and the low-order side in .
The high-order side is stored in +1, and the low-order side is stored in .
: Alarm output destination
It turns ON when the current value and +1 reaches or exceeds the time specified in
When measures the ON time beginning again, clear the current value stored in to +2. When the current value is clear, alarm output is turned OFF.
For continuing the measurement, clear the current value stored in to +2.
Caution
FNC190-FNC199 Block Data Operation
Two (16-bit operation) or three (32-bit operation) devices are occupied by . Make sure that these devices are not used in other controls for the machine.
In the program example shown below, when the accumulated X000 ON time exceeds 300 hours, Y005 turns ON. The current value less than one hour is stored in D201 in units of second.
FNC200-FNC209 Character String Control
HOUR K300
Y005
FNC210-FNC219 Data Operation 3
: Time after which is set to ON Specify a value in units of hour.
: Current value in units of hour
: Alarm output destination
It turns ON when the current value reaches or exceeds the time specified in . (In this example, it turns ON when the current value becomes 300 hours.)
FNC250-FNC269 Data Table Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
22 External Device – FNC170 to FNC179
FNC170 to FNC179 provide conversion instructions for gray codes used in absolute type rotary encoders and instructions dedicated to analog blocks.

170 GRY Decimal to Gray Code Conversion Section 22.1
171 GBIN Gray Code to Decimal Conversion Section 22.2
176 RD3A Read form Dedicated Analog Block Section 22.3
177 WR3A Write to Dedicated Analog Block Section 22.4

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
22 External Device – FNC170 to FNC179
22.1 FNC170 – GRY / Decimal to Gray Code Conversion
FNC160-FNC169 Real Time Clock Control
This instruction converts a binary value into a gray code, and transfers it.
Mnemonic Operation Condition P FNC 170
GRY D
Continuous Operation Pulse (Single) Operation
Continuous Operation Pulse (Single) Operation
DGRYP
2. Set data
Operand Type Description Data Type
Conversion source data or word device storing conversion source data 16- or 32-bit binary
Word device storing data after conversion 16- or 32-bit binary
Bit Devices Word Devices Others
System User Digit Specification System User Special
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 S1 S2 3
FNC190-FNC199 Block Data Operation
3 S1 S2 3 3 3
S1: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S2: This function is supported only in FX3U/FX3UC PLCs.
FNC200-FNC209 Character String Control
This instruction converts and transfers data from the source (binary) to the destination (gray code). FNC170
GRY
When is K1234 and is K3Y10
FNC210-FNC219 Data Operation 3
0 1 0 0 1 0 1 1 0 0 1 0
1 1 0 1 1 1 0 1 0 1 1 0
- can store a value from 0 to 32767.
- can store a value from 0 to 2,147,483,647.
FNC250-FNC269 Data Table Operation
The data conversion speed depends on the scan time of the PLC.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
22 External Device – FNC170 to FNC179
22.2 FNC171 – GBIN / Gray Code to Decimal Conversion
This instruction converts a gray code into a binary value, and transfers it.

Operand Type Description Data Type
Conversion source data or word device storing conversion source data 16- or 32-bit binary
Word device storing data after conversion 16- or 32-bit binary

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 S1 S2 3
3 S1 S2 3 3 3
S1: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S2: This function is supported only in FX3U/FX3UC PLCs.
1. 16-bit operation (GBIN and GBINP)

input This instruction converts and transfers data from the source (gray code) to the destination (binary).
1 1 0 1 1 1 0 1 0 1 1 0
0 1 0 0 1 0 1 1 0 0 1 0
- This instruction can be used for detecting an absolute position by a gray code type encoder.
- can store a value from 0 to 32,767.
- can store a value from 0 to 2,147,483,647.
When an input relay (X) is specified as , the response relay will be “Scan time of PLC + Input filter constant”.
The input filter value in X000 to X017*1 can be converted using the REFF (FNC51) instruction or D8020 (filter adjustment) so that the delay caused by the filter constant is eliminated.
*1. X000 to X007 in FX3G/FX3GC PLCs

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
22 External Device – FNC170 to FNC179
22.3 FNC176 – RD3A / Read form Dedicated Analog Block
FNC160-FNC169 Real Time Clock Control
This instruction reads an analog input value from the analog block FX0N-3A*1 or FX2N-2AD.
P FNC 176
Mnemonic Operation Condition 16-bit Instruction
Continuous Operation Pulse (Single) Operation
2. Set data
Operand Type Description Data Type
- FX3G/FX3GC/FX3U/FX3UC (D, DS, DSS) PLCs: K0 to K7 - FX3UC-32MT-LT(-2) : K1 to K7
m2 Analog input channel number 16-bit binary
Word device storing the read data 16-bit binary
Bit Devices Word Devices Others
System User Digit Specification System User Special
FNC190-FNC199 Block Data Operation
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
m1 3
m2 3
3
FNC200-FNC209 Character String Control
1. 16-bit operation (RD3A)
RD3A m1 m2
FNC210-FNC219 Data Operation 3
m1 : Special block number FX3G/FX3GC/FX3U/FX3UC (D, DS, DSS) PLCs : K0 to K7 FX3UC-32MT-LT(-2) : K1 to K7 (K0 indicates the built-in CC-Link/LT master.) m2 : Analog input channel number
FX0N-3A*1 : K1 (ch 1) or K2 (ch 2) FX2N-2AD : K21 (ch 1) or K22 (ch 2)
: Read data A value read from the analog block is stored.
*1. The FX0N-3A is available only for the FX3U and FX3UC PLCs.
FNC250-FNC269 Data Table Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
22 External Device – FNC170 to FNC179
22.4 FNC177 – WR3A / Write to Dedicated Analog Block
This instruction writes a digital value to the analog block FX0N-3A*1 or FX2N-2DA.


- FX3G/FX3GC/FX3U/FX3UC (D, DS, DSS) PLCs: K0 to K7 - FX3UC-32MT-LT(-2) : K1 to K7
Data to be written or word device storing data to be written 16-bit binary

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
m1 3
m2 3
3
1. 16-bit operation (WR3A)
WR3A m1 m2
m1 : Special block number FX3G/FX3GC/FX3U/FX3UC (D, DS, DSS) PLCs : K0 to K7 FX3UC-32MT-LT(-2) : K1 to K7 (K0 indicates the built-in CC-Link/LT master.) m2 : Analog output channel number
: Data to be written Specify a value output to the analog block.
*1. The FX0N-3A is available only for the FX3U and FX3UC PLCs.
Command · input

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
23 Introduction of Alternate Instructions – FNC180
FNC160-FNC169 Real Time Clock Control
23.1 Instruction correspondence table
EXTR instruction is provided for FX2N/FX2NC PLCs. For FX3S/FX3G/FX3GC/FX3U/FX3UC PLCs equipped with the built-in inverter communication function, dedicated instructions shown below are provided. (EXTR instruction is not provided.)
FX2N/FX2NC FX3S/FX3G/FX3GC/FX3U/FX3UC Description
EXTR K10 → FNC270 IVCK Inverter status check
EXTR K11 → FNC271 IVDR Inverter drive
EXTR K12 → FNC272 IVRD Inverter parameter read
EXTR K13 → FNC273 IVWR Inverter parameter write
– – FNC274 IVBWR*1 Inverter parameter block write
– – FNC275 IVMC Inverter multi command
*1. This function is supported only in FX3U/FX3UC PLCs.
→ For details, refer to the Data Communication Edition manual.
FNC190-FNC199 Block Data Operation
FNC200-FNC209 Character String Control
FNC210-FNC219 Data Operation 3
FNC250-FNC269 Data Table Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
24 Others – FNC181 to FNC189
FNC181 to FNC189 provide instructions for generating random numbers, executing CRC data operations, and processing data in high-speed counter operations.


FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
24 Others – FNC181 to FNC189
24.1 FNC182 – COMRD / Read Device Comment Data
FNC160-FNC169 Real Time Clock Control
This instruction reads the comment data for registered devices written to the PLC by programming software such as GX Works2.
P FNC 182
Mnemonic Operation Condition 16-bit Instruction
Continuous Operation Pulse (Single) Operation
2. Set data
Operand Type Description Data Type
Device number for which comment to be read is registered Device name
Head device number storing read comment Character string
Bit Devices Word Devices Others
System User Digit Specification System User Special
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
FNC190-FNC199 Block Data Operation
1. 16-bit operation (COMRD and COMRDP)
FNC200-FNC209 Character String Control
input FNC182 COMRDP S D
b15 b8 b7 b0
ASCII code of 2nd character
ASCII code of 1st character
ASCII code of 4th character
ASCII code of 3rd character ASCII code of 5th character
Comment of device specified in 16 characters can be stored.
ASCII code of 6th character
FNC210-FNC219 Data Operation 3
ASCII code of 8th character ASCII code of 7th character
ASCII code of 16th character ASCII code of 14th character ASCII code of 13th character
ASCII code of 15th character 0000H
- When M8091 is OFF, "0000H" is written to the device following the final character. - When M8091 is ON, the device following the final character does not change.
For example, when the comment of is "LineNo.1Start", it is stored in and later as shown below.
b15 b8 b7 b0
69H(i) 65H(e) 4CH(L) 6EH(n) 4EH(N) 31H(1) 2EH(.)
FNC250-FNC269 Data Table Operation
LineNo.1Start
74H(t) 72H(r) 53H(S) 61H(a) 74H(t) 20H(space) 20H(space) +7 +8 0000H
- When M8091 is OFF, "0000H" is written to the next device following the final character. - When M8091 is ON, the device following the final character does not change.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
24 Others – FNC181 to FNC189
24.1 FNC182 – COMRD / Read Device Comment Data

M8091 = OFF When M8091 is OFF, "0000H" is written to in the device following the final character.
M8091 = ON When M8091 is ON, the device following the final character does not change.
M8091 Output character number selector signal Refer to the above explanation.
If a comment is not registered for the device , "20H" (space) is stored in and later for the number of characters in the comment (16 half-width characters).
Errors
An operation error is caused in the following cases; The error flag M8067 turns ON, and the error code is stored in D8067.
In the program shown below, the comment "Target Line A" registered to D100 is stored in ASCII code in D0 and later when X010 is set to ON. And since M8091 is OFF "0000H" is written to the device following the last character.

Device Name Description

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
24 Others – FNC181 to FNC189
24.2 FNC184 – RND / Random Number Generation
FNC160-FNC169 Real Time Clock Control
This instruction generates random numbers.
P FNC 184
Mnemonic Operation Condition 16-bit Instruction
Continuous Operation Pulse (Single) Operation
2. Set data
Operand Type Description Data Type
Head device number storing a random number 16-bit binary
Bit Devices Word Devices Others
System User Digit Specification System User Special
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
FNC190-FNC199 Block Data Operation
. In the pseudo-random number sequence, the source value of a random number is calculated at every time, and this instruction calculates a pseudo-random number using the source value.
FNC200-FNC209 Character String Control
Pseudo-random number calculation equation:
(D8311, D8310) = (D8311, D8310) *1 × 1103515245 + 12345 (1)
= “([D8311, D8310]>>16)&00007FFFh”
*1. To (D8311, D8310), write a non-negative value (0 to 2,147,483,647) only once when the PLC mode switches from STOP to RUN. [K1 is written to (D8311, D8310) as the initial value when the power is restored.]
FNC210-FNC219 Data Operation 3
In the program example shown below, a random number is stored to D100 every time X010 turns ON. When the PLC mode switches from STOP to RUN, the time data converted into seconds and added by the value “(Year + Month) × Day” is written to D8311 and D8310.
TRD D0
The clock data is read.
Data in hour, minute and second → Data in second
FNC250-FNC269 Data Table Operation
The data in second is added by the value “(Year + Month) × Day”, and written to D8311 and D8310. FNC 23
DADD D8310 D12 D14
X010 FNC184
RNDP D100
END

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
24 Others – FNC181 to FNC189
24.3 FNC186 – DUTY / Timing Pulse Generation
This instruction generates the timing signal whose one cycle corresponds to the specified number of operation cycles.
Mnemonic Operation Condition 16-bit Instruction
2. Set data

n1 Number of scans (operation cycles) to remain ON [n1 > 0]
16-bit binary n2 Number of scans (operation cycles) to remain OFF [n2 > 0]

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
S: Specify either one among M8330 to M8334.
1. 16-bit operation (DUTY)

destination device . The counted number of scans stored among D8330 to D8334 is reset when the counted value reaches "n1+n2" or when the command input (instruction) is set to ON.


FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
24 Others – FNC181 to FNC189
FNC160-FNC169 Real Time Clock Control
n1/n2 status ON/OFF status
n1 = 0, n2 ≥ 0 Fixed to OFF
n1 > 0, n2 = 0 Fixed to ON
M8330 Timing clock output 1
M8331 Timing clock output 2
M8332 Timing clock output 3
Timing clock output in the DUTY (FNC186) instruction
M8333 Timing clock output 4
M8334 Timing clock output 5
D8330 Counted number of scans for timing clock output 1 Counted number of scans for timing clock output 1 in the DUTY (FNC186) instruction
D8331 Counted number of scans for timing clock output 2 Counted number of scans for timing clock output 2 in the DUTY (FNC186) instruction
D8332 Counted number of scans for timing clock output 3 Counted number of scans for timing clock output 3 in the DUTY (FNC186) instruction
D8333 Counted number of scans for timing clock output 4 Counted number of scans for timing clock output 4 in the DUTY (FNC186) instruction
FNC190-FNC199 Block Data Operation
D8334 Counted number of scans for timing clock output 5 Counted number of scans for timing clock output 5 in the DUTY (FNC186) instruction
FNC200-FNC209 Character String Control
It is not permitted, however, to use the same timing clock output destination device for two or more DUTY (FNC186) instructions.
An operation error is caused in the following cases; The error flag M8067 turns ON, and the error code is stored in D8067.
FNC210-FNC219 Data Operation 3
In the program shown below, when X000 is set to ON, M8330 is set to ON for 1 scan and OFF for 3 scans.
DUTY K3 M8330
K1
END
FNC250-FNC269 Data Table Operation
OFF
M8330
OFF ON
1 scan 3 scans
0 1 2 3
0 1 D8330 current value

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
24 Others – FNC181 to FNC189
24.4 FNC188 – CRC / Cyclic Redundancy Check
This CRC instruction calculates the CRC (cyclic redundancy check) value which is an error check method used in communication. In addition to CRC value, there are other error check methods such as parity check and sum check. For obtaining the horizontal parity value and sum check value, CCD (FNC 84) instruction is available.
For the generation of CRC value (CRC-16), the CRC instruction uses “X16 + X15 + X2 + 1” as a polynomial and uses "FFFFH" as a default value.
→ For CCD instruction (check code), refer to Section 16.5.


Head device number storing data for which the CRC value is generated
16-bit binary Device number storing the generated CRC value
n Number of 8-bit (1-byte) data for which the CRC value is generated or the device number storing the number of data

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
S 3
S S S 3
S: Make sure to specify four digits (K4 {{{) when specifying the digits of a bit device.
1. 16-bit operation
CRC value is generated for “n” 8-bit data (unit: byte) starting from a device specified in , and stored to . The 8-bit conversion mode and 16-bit conversion mode are available in this instruction, and the mode can be switched by turning ON or OFF M8161. For the operation in each mode, refer to the following pages.
D S
Command · input · CRC n

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
24 Others – FNC181 to FNC189
16-bit conversion mode (while M8161 is OFF) In this mode, the operation is executed for high-order 8 bits (1 byte) and low-order 8 bits (1 byte) of a device specified
FNC160-FNC169 Real Time Clock Control
in .
The operation result is stored to one 16-bit device specified in .
D S
= D0 n = 6
Contents of target data
8 bits 16 bits
Low-order byte Low-order bits of D100 01H 0301H High-order byte High-order bits of D100 03H
Low-order byte Low-order bits of D101 03H 0203H High-order byte High-order bits of D101 02H
Device storing data for which the CRC value is generated
Low-order byte Low-order bits of D102 00H 1400H High-order byte High-order bits of D102 14H
Low-order byte Low-order bits of D0 E4H
FNC190-FNC199 Block Data Operation
Device storing the generated CRC value
41E4H High-order byte High-order bits of D0 41H
In this mode, the operation is executed only for low-order 8 bits (low-order 1 byte) of a device specified by .
With regard to the operation result, low-order 8 bits (1 byte) are stored to a device specified by , and high-order
8 bits (1 byte) are stored to a device specified by +1.
FNC200-FNC209 Character String Control
8-bit conversion mode Command
FNC210-FNC219 Data Operation 3
= D0 n = 6
Device Contents of target data
Low-order byte Low-order bits of D100 01H
+1 Low-order byte Low-order bits of D101 03H
+2 Low-order byte Low-order bits of D102 03H
Device storing data for which the CRC value is generated
+3 Low-order byte Low-order bits of D103 02H
+4 Low-order byte Low-order bits of D104 00H
+5 Low-order byte Low-order bits of D105 14H
FNC250-FNC269 Data Table Operation
+n-1 Low-order byte –
Low-order byte Low-order bits of D0 E4H
Device storing the generated CRC value
+1 Low-order byte Low-order bits of D1 41H

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
24 Others – FNC181 to FNC189
24.4 FNC188 – CRC / Cyclic Redundancy Check
M8161*1 ON CRC instruction operates in the 8-bit mode.
OFF CRC instruction operates in the 16-bit mode.
*1. Cleared when the PLC mode is changed from RUN to STOP.
In this instruction, “X16 + X15 + X2 + 1” is used as a polynomial for generating the CRC value (CRC-16). There are many other standard polynomials for generating the CRC value. Note that the CRC value completely differs if an adopted polynomial is different.

CRC-12 X12 + x11 + X3 + X2 + X + 1
CRC-16 X16 + X15 + X2 + 1
CRC-32 X32 + X26 + X23 + X22 + X16 + X12 + X11 + X10 + X8 + X7 + X5 + X4 + X2 + X + 1
CRC-CCITT X16 + X12 + X5 + 1
An operation error is caused in the following cases; The error flag M8067 turns ON, and the error code is stored in D8067.
Related device Description

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
24 Others – FNC181 to FNC189

In the program example shown below, the CRC value of the ASCII code “0123456” stored in D100 to D106 is generated and stored to D0 when M0 turns ON.
Device storing data for which CRC value is generated
Device storing generated CRC value D0 2ACFH Low-order byte CFH
Device storing data for which the CRC value is generated

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
24 Others – FNC181 to FNC189
24.5 FNC189 – HCMOV / High-Speed Counter Move
This instruction updates the current value of a specified high-speed counter or ring counter. The function of this instruction varies depending on the PLC version.


Device number of high-speed counter or ring counter*1 handled as transfer source
n Specification to clear the current value of high-speed counter or ring counter*1 (transfer source) after transfer [clear (K1), no clear (K0)] 16-bit binary
*1. Ring counters (D8099 and D8398) cannot be specified in FX3UC PLCs before Ver. 2.20.

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
S: Only high-speed counters (C235 to C255) and ring counters (D8099 and D8398) can be specified.
1. 32-bit operation (DHCMOV)
FNC189 DHCMOV n S D

High-speed counter C235 to C255 Current value of high-speed counter → [ +1, ]
D8398 Current value of [D8399, D8398] → [ +1, ]
"n" set value Operation
K0 (H0) Does not clear the current value (no processing).
K1 (H1) Clears the current value to "0".
Command · input

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
24 Others – FNC181 to FNC189
FNC160-FNC169 Real Time Clock Control
Current value update timing
Hardware counter When OUT instruction for the counter is executed
Software counter Every time a pulse is input
By using DHCMOV instruction, the current value can be updated and transferred when it is executed.
→ Refer to the Program example 2.
- When the number of high-speed software counter comparison instructions is reduced, the total frequency limitation is decreased.
→ For the limitation in software counters by the total frequency, refer to Subsection 4.8.10. - When it is necessary to execute comparison and change an output contact (Y) as soon as the current value of a high-speed counter changes, use a designated high-speed counter comparison instruction (HSCS, HSCR or HSZ). - DHCMOV instruction can be used as many times as necessary.
FNC190-FNC199 Block Data Operation
When programming DHCMOV instruction in an input interrupt program, the following points should be observed. For assignment of pointers for input interrupt and inputs, refer to the table shown in 5) below.
FNC200-FNC209 Character String Control
→ For EI (FNC 04) and FEND (FNC 06) instructions, refer to Section 8.5 and Section 8.7.
FNC210-FNC219 Data Operation 3
I Pattern program for using the DHCMOV instruction in an interrupt program
S D
Program to be processed as input interrupt
FNC250-FNC269 Data Table Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
24 Others – FNC181 to FNC189
24.5 FNC189 – HCMOV / High-Speed Counter Move

When the input X003 turns from OFF to ON (that is, when input interrupt is accepted): → [ +1, ]
When this instruction is executed in interrupt program: ' → [ ' +1, ' ]


Interrupt disable flag Corresponding interrupt pointer Input number corresponding to interrupt pointer
*1.Cleared when the PLC mode is changed from RUN to STOP.
The function of FNC189 instruction changes depending on the version as shown in the table below.

later Target device Ring counter (D8099 and D8398) can be specified in .
An operation error occurs in the following case; The error flag M8067 turns ON, and the error code is stored in D8067.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
24 Others – FNC181 to FNC189
FNC160-FNC169 Real Time Clock Control
The current value of C235 is transferred to D1 and D0. (The current value of C235 is not cleared.)
D0 K0* 1 FNC189 DHCMOV C235
Y000 K500 FNC238 DAND>= D0
In the case of "(D1, D0) ≥ K500", Y000 is set to ON.
*1. K0: The current value of the high-speed counter is not cleared when DHCMOV instruction is executed. K1: The current value of the high-speed counter is cleared when DHCMOV instruction is executed.
FEND
FNC190-FNC199 Block Data Operation
D200 K1 *2 FNC189 DHCMOV C235
When X001 turns from OFF to ON, the
interrupt program from I101 to IRET is executed. The current value of C235 is
transferred to D201 and D200. (The current value of C235 is cleared to “0”.)
FNC200-FNC209 Character String Control
*2. K0: The current value of the high-speed counter is not cleared when DHCMOV instruction is executed. K1: The current value of the high-speed counter is cleared when DHCMOV instruction is executed.
FNC210-FNC219 Data Operation 3
FNC250-FNC269 Data Table Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
25 Block Data Operation – FNC190 to FNC199
FNC190 to FNC199 provide instructions for adding, subtracting and comparing block data.

n D S2 S1 BKCMP= S1 S2
n D S2 S1 BKCMP> S1 S2
n D S2 S1 BKCMP< S1 S2
n D S2 S1 BKCMP S1 S2
n D S2 S1 BKCMP
n D S2 S1 BKCMP>= S1 S2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
25 Block Data Operation – FNC190 to FNC199

16- or 32-bit binary Added constant or head device number storing addition data
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
BK+ S1 S2 n D
operation result is stored in "n" points starting from .

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
25 Block Data Operation – FNC190 to FNC199
25.1 FNC192 – BK+ / Block Data Addition

DBK+P S1 S2 n D
[ +1, ], and the operation result is stored in "2n" points starting from [ +1, ].
BK- (FNC193) Subtracts binary block data.
K-32768(H8000) + K-2(HFFFE) → K32766(H7FFE)
- In the case of 32-bit operation
K-2,147,483,648(H80000000) + K-2(HFFFFFFFE) → K2,147,483,646(H7FFFFFFE)
Instruction Description

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
25 Block Data Operation – FNC190 to FNC199
FNC160-FNC169 Real Time Clock Control
An operation error is caused in the following cases; The error flag M8067 turns ON, and the error code is stored in D8067.
In the program shown below, the specified number of data stored in D150 to D0 are added to the specified number of data stored in D100 to D0 when X020 is set to ON, and the operation result is stored in D200 and later.
BK+ D100 D150 D200
D0 When D0 is "4"
b15 b0 1234 2032
b15 b0 8023 9853
+
-1000 -3252 D151 D152 D153
2520 2180 D201 D202 D203
FNC190-FNC199 Block Data Operation
FNC200-FNC209 Character String Control
FNC210-FNC219 Data Operation 3
FNC250-FNC269 Data Table Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
25 Block Data Operation – FNC190 to FNC199
25.2 NFC193 – BK– / Block Data Subtraction
This instruction subtracts binary block data.


16- or 32-bit binary Subtracted constant or head device number storing subtraction data

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
1. 16-bit operation (BKand BK-P)

BK-P S1 S2 n D
operation result is stored in "n" points starting from .

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
25 Block Data Operation – FNC190 to FNC199
FNC160-FNC169 Real Time Clock Control
DBK-P S1 S2 n D
[ +1, ], and the operation result is stored in "2n" points starting from [ +1, ].
K8765 K8888
K1234 K5678
S1 S1 S1
[ +3, +2] [ +5, +4]
[ +3, +2] [ +5, +4]
K9325
"n" points −
K9876
[ +2n-3, +2n-4] [ +2n-1, +2n-2]
[ +2n-3, +2n-4] [ +2n-1, +2n-2]
S 1 S 1
K4352
S 2 S 2
K4000
K7531 K3210
[ +3, +2] [ +5, +4]
D D
K-551
[ +2n-3, +2n-4] [ +2n-1, +2n-2]
K352
FNC190-FNC199 Block Data Operation
K8765 K8888
[ +3, +2] [ +5, +4]
"n" points −
K8880
[ +2n-3, +2n-4] [ +2n-1, +2n-2]
K4352
K-115
FNC200-FNC209 Character String Control
[ +3, +2] [ +5, +4]
D D
D D
K445
[ +2n-3, +2n-4] [ +2n-1, +2n-2]
K-4528
FNC210-FNC219 Data Operation 3
BK+ (FNC192) Adds binary block data.
K32767(H7FFF) – K-2(HFFFE) → K-32767(H8001)
FNC250-FNC269 Data Table Operation
- In the case of 32-bit operation
K2,147,483,647(H7FFFFFFF) – K-2(HFFFFFFFE) → K-2,147,483,647(H80000001)

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
25 Block Data Operation – FNC190 to FNC199
25.2 NFC193 – BK– / Block Data Subtraction
An operation error is caused in the following cases; The error flag M8067 turns ON, and the error code is stored in D8067.
In the program shown below, the constant "8765" is subtracted from the data stored in D100 to D102 when X010 is set to ON, and the operation result is stored in D200 and later.


FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
25 Block Data Operation – FNC190 to FNC199
25.3 FNC194~199 – BKCMP=, >, <, < >, <=, >= / Block Data Compare 21

25.3 FNC194~199 – BKCMP=, >, <, < >, <=, >= / Block Data Compare
These instructions compare block data in the comparison condition set in each instruction.
16- or 32-bit binary Head device number storing comparison source data
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
S: "D .b" cannot be indexed with index registers (V and Z).

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
25 Block Data Operation – FNC190 to FNC199
25.3 FNC194~199 – BKCMP=, >, <, < >, <=, >= / Block Data Compare

comparison result is stored in "n" points starting from .
*1 The number out of 194 to 199 is put in "OOO". *2 The symbol out of "=", ">", "
S1 S2 n D
*3 An operation example of BKCMP> (FNC195) instruction is shown here.
*4 An operation example of BKCMP= (FNC194) instruction is shown here.

Instruction Comparison result ON (1) condition Comparison result OFF (0) condition

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
25 Block Data Operation – FNC190 to FNC199
25.3 FNC194~199 – BKCMP=, >, <, < >, <=, >= / Block Data Compare 21
FNC160-FNC169 Real Time Clock Control
[ +1, ], and the comparison result is stored in "n" points starting from [ +1, ].
*1 The number out of 194 to 199 is put in "OOO". *2 The symbol out of "=", ">", "
input FNCOOO*1 DBKCMP *2 S1 S2 n D
K5321 K3399
[ +3, +2] [ +5, +4]
S 1 S 1
[ +3, +2] [ +5, +4]
S 2 S 2
K5000
K5678
>
[ +2n-3, +2n-4] [ +2n-1, +2n-2]
[ +2n-3, +2n-4] [ +2n-1, +2n-2]
K4321
K1200
*3 An operation example of DBKCMP> (FNC195) instruction is shown here.
ON(1)
OFF(0)
ON(1)
ON(1)
K32000
[ +3, +2] [ +5, +4]
S2
FNC190-FNC199 Block Data Operation
=
K32000
[ +2n-3, +2n-4] [ +2n-1, +2n-2]
*4 An operation example of DBKCMP= (FNC194) instruction is shown here.
ON(1) OFF(0)
FNC200-FNC209 Character String Control
OFF(0)
OFF(0)
FNC210-FNC219 Data Operation 3
Instruction Comparison result ON (1) condition Comparison result OFF (0) condition
DBKCMP= (FNC194) [ +1, ] = [ +1, ] [ +1, ] ≠ [ +1, ]
S1 S1 S2 S2 S1 S1 S2 S2
DBKCMP> (FNC195) [ +1, ] > [ +1, ] [ +1, ]
S1 S1 S2 S2 S1 S1 S2 S2
DBKCMP< (FNC196) [ +1, ]< [ +1, ] [ +1, ] >= [ +1, ]
S1 S1 S2 S2 S1 S1 S2 S2
DBKCMP (FNC197) [ +1, ] ≠ [ +1, ] [ +1, ] = [ +1, ]
S1 S1 S2 S2 S1 S1 S2 S2
DBKCMP
S1 S1 S2 S2 S1 S1 S2 S2
DBKCMP>= (FNC199) [ +1, ] >= [ +1, ] [ +1, ] < [ +1, ]
S1 S1 S2 S2 S1 S1 S2 S2
FNC250-FNC269 Data Table Operation
→ For the block comparison signal use method, refer to Subsection 6.5.2.
Turns ON when all comparison results are "ON (1)" in a block data instruction. DBKCMP= (FNC194), DBKCMP> (FNC195), DBKCMP< (FNC196), DBKCMP (FNC197), DBKCMP= (FNC199)
M8090 Block comparison signal

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
25 Block Data Operation – FNC190 to FNC199
25.3 FNC194~199 – BKCMP=, >, <, < >, <=, >= / Block Data Compare
An operation error is caused in the following cases; The error flag M8067 turns ON, and the error code is stored in D8067.
Program example

(When all of M10 to M13 are ON, Y000 is set to ON.)

b15 b7 b4 b0 D0 before operation 0 1 0 0 0 1 0 1 0
b15 b7 b4 b0 D0 after operation 0 1 0 0 1 0 1 0 1 0

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
26 Character String Control – FNC200 to FNC209

FNC200 to FNC209 provide instructions for controlling character strings such as linking character string data, replacing some characters and extracting character string data.
200 STR BIN to Character String Conversion Section 26.1
201 VAL Character String to BIN Conversion Section 26.2
204 RIGHT Extracting Character String Data from the Right Section 26.5
205 LEFT Extracting Character String Data from the Left Section 26.6
206 MIDR Random Selection of Character Strings Section 26.7
207 MIDW Random Replacement of Character Strings Section 26.8

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
26 Character String Control – FNC200 to FNC209
26.1 FNC200 – STR / BIN to Character String Conversion
This instruction converts binary data into character strings (ASCII codes). On the other hand, the ESTR (FNC116) instruction converts floating point data into character strings.
→ For character strings, refer to Section 5.3. → For ESTR (FNC116) instruction, refer to Section 18.4.


Head device number storing the number of digits of a numeric value to be converted 16-bit binary
Device number storing binary data to be converted 16- or 32-bit binary
Head device number storing converted character string Character string

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

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
26 Character String Control – FNC200 to FNC209
FNC160-FNC169 Real Time Clock Control
( +1), and stored in and later.
STR S2 S1 D
+0 Number of all
ASCII code in "(Value specifying number of all
ASCII code indicating sign
digits Number of digits
digits - 1)"th digit ASCII code in "(Value specifying number of all
ASCII code in "(Value specifying number of all
+1 For number of all digits For value stored in S1
digits - 3)"th digit ASCII code in "(Value specifying number of all
digits - 2)"th digit ASCII code in "(Value specifying number of all
digits - 5)"th digit ASCII code in "(Value specifying number of all
digits - 4)"th digit ASCII code in "(Value specifying number of all
digits - 7)"th digit
digits - 6)"th digit 0000H
S2 16-bit binary data
0000H is automatically stored at the end of a character string.
2DH(-)
For number of all digits
32H(2)
FNC190-FNC199 Block Data Operation
- 1 2 3
33H(3)
00H is automatically stored at the end of a character string.
FNC200-FNC209 Character String Control
- As the sign, "space" (20H) is stored when the 16-bit binary data stored in is positive, and "-" (2DH) is
stored when the 16-bit binary data stored in is negative. - When the number of digits of the decimal
FNC210-FNC219 Data Operation 3
Number of all digits
part +1 is set to any value other than "0", the decimal point "." (2EH) is automatically added in "number of digits of decimal part + 1"th digit. When the number of digits of the decimal
Number of digits of decimal part 16-bit binary data
1 2 3 Number of digits of decimal part
It is automatically added.
part +1 is set to "0", the decimal point is not added. - When the number of digits of the decimal
Number of all digits Number of digits of decimal part 16-bit binary data It is automatically added.
part +1 is larger than the number of digits of 16-bit binary data stored in
0 0 1 2
, "0" (30H) is automatically added, and the data is shifted to the right end during conversion.
FNC250-FNC269 Data Table Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
26 Character String Control – FNC200 to FNC209
26.1 FNC200 – STR / BIN to Character String Conversion
- When the number of all digits stored in

Number of all digits Number of digits of decimal part 16-bit binary data
excluding the sign and decimal point is larger than the number of digits of
16-bit binary data stored in , "space" (20H) is stored in each digit between the sign and the numeric value. When the number of all digits stored in
excluding the sign and decimal point is smaller than the number of digits of 16-bit binary data stored in
, an error is caused. - "00H" indicating the end of a character string is automatically stored at the end of a converted character string. When the number of all digits is even, "0000H" is stored in the device after the last character. When the number of all digits is odd, "00H" is stored in the high-order byte (8 bits) of the device storing the final character.
part ( +1), and stored in and later.
DSTR S2 S1 D
ASCII code in "(Value specifying number of all
digits Number of digits
ASCII code indicating sign
digits - 1)"th digit ASCII code in "(Value specifying number of all
ASCII code in "(Value specifying number of all
digits - 3)"th digit ASCII code in "(Value specifying number of all
digits - 2)"th digit ASCII code in "(Value specifying number of all
For number of all digits For value stored in S1
digits - 5)"th digit ASCII code in "(Value specifying number of all
digits - 4)"th digit ASCII code in "(Value specifying number of all
digits - 7)"th digit
digits - 6)"th digit
ASCII code in "(Value specifying number of all
ASCII code in "(Value specifying number of all
digits - 8)"th digit +4 b31 b16 b15 b0 S2 +1 S2
digits - 9)"th digit
00H Low-order 16 bits ASCII code in "(Value specifying number of all
S2 High-order 16 bits
digits - 10)"th digit
00H is automatically stored at the end of a character string.
2DH(-)
34H(4)
35H(5)
For number of all digits
4 3 2 1
S2 S2 32-bit binary data +4
32H(2)
0000H
0000H is automatically stored at the end of a character string.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
26 Character String Control – FNC200 to FNC209
FNC160-FNC169 Real Time Clock Control
- For the sign, "space" (20H) is stored when the 32-bit binary data stored in is positive, and "- (2DH)" is
stored when the 32-bit binary data stored in is negative. - When the number of digits of the
Number of all digits Number of digits of decimal part 32-bit binary data
decimal part +1 is set to any value other than "0", the decimal point "." (2EH) is automatically added in "number of digits of decimal part + 1"th digit. When the number of digits of the
1 2 6 7
3 4 5 8
Number of digits of decimal part It is automatically added.
decimal part +1 is set to "0", the decimal point is not added. - When the number of digits of the decimal
Number of all digits Number of digits of decimal part 16-bit binary data
part +1 is larger than the number of digits of 32-bit binary data stored in
0 1 0 5
0 0 0 4 0 3 2
[ +1, ], "0" (30H) is automatically added, and the data is shifted to the right end during conversion.
It is automatically added.
- When the number of all digits stored in
Number of all digits Number of digits of decimal part 32-bit binary data
excluding the sign and decimal point is larger than the number of digits of 32-bit
0 4 3 2 1 -
binary data stored in [ +1, ], "space" (20H) is stored in each digit between the sign and the numeric value. When the number of all digits stored in
"20H" (space) is stored in each digit.
excluding the sign and decimal point is smaller than the number of digits of 32-bit binary data stored in
FNC190-FNC199 Block Data Operation
[ +1, ], an error is caused. - "00H" indicating the end of a character string is automatically stored at the end of a converted character string. When the number of all digits is even, "0000H" is stored in the device after the last character. When the number of all digits is odd, "00H" is stored in the high-order byte (8 bits) of the device storing the final character.
FNC200-FNC209 Character String Control
ESTR (FNC116) Converts binary floating point data into a character string (ASCII codes) with a specified number of digits.
EVAL (FNC117) Converts a character string (ASCII codes) into binary floating point data.
VAL (FNC201) Converts a character string (ASCII codes) into binary data.
FNC210-FNC219 Data Operation 3
An operation error is caused in the following cases; The error flag M8067 turns ON, and the error code is stored in D8067.
16-bit operation 2 to 8
32-bit operation 2 to 13
16-bit operation 0 to 5
32-bit operation 0 to 10
FNC250-FNC269 Data Table Operation
stored in +1 does not satisfy the following (error code: K6706) (Number of all digits -3) ≥ Number of digits of decimal part
than the number of digits of the binary data stored in [ +1, ] (error code: K6706)

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
26 Character String Control – FNC200 to FNC209
26.1 FNC200 – STR / BIN to Character String Conversion
In the program below, the 16-bit binary data stored in D10 is converted into a character string in accordance with the digit specification by D0 and D1 when X000 is set to ON, and then stored in D20 to D23.

The number of digits of the decimal part is set.
Number of all digits Number of digits of decimal part

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
26 Character String Control – FNC200 to FNC209
26.2 FNC201 – VAL / Character String to BIN Conversion
FNC160-FNC169 Real Time Clock Control
This instruction converts a character string (ASCII codes) into binary data. On the other hand, EVAL (FNC117) instruction converts a character string (ASCII codes) into floating point data.
→ For character strings, refer to Section 5.3. → For EVAL (FNC117) instruction, refer to Section 18.5.
Mnemonic Operation Condition P FNC 201
VAL D
Continuous Operation Pulse (Single) Operation
13 steps Continuous Operation Pulse (Single) Operation
VALP
DVALP
2. Set data
Operand Type Description Data Type
Head device number storing a character string to be converted into binary data Character string
Head device number storing the number of all digits of the binary data acquired by conversion 16-bit binary
Head device number storing the binary data acquired by conversion 16- or 32-bit binary
Bit Devices Word Devices Others
FNC190-FNC199 Block Data Operation
System User Digit Specification System User Special
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
FNC200-FNC209 Character String Control
3
1. 16-bit operation (VAL and VALP)
FNC210-FNC219 Data Operation 3
binary data acquired for conversion is stored in , the number of digits of the decimal part is stored in
+1, and the converted binary data is stored in .
In converting a character string into binary data, the data from to a device number storing "00H" is handled as a character string in byte units.
VAL D1 S D2
digits Number of digits
ASCII code of 1st character
ASCII code indicating sign
ASCII code of 3rd character
ASCII code of 2nd character
ASCII code of 5th character
ASCII code of 4th character
which decimal point is ignored
FNC250-FNC269 Data Table Operation
ASCII code of 7th character
ASCII code of 6th character
1st character 2nd character
It indicates the end of character string.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
26 Character String Control – FNC200 to FNC209
26.2 FNC201 – VAL / Character String to BIN Conversion
For example, when a character string "-123.45" is specified in and later, the conversion result is stored in


Number of characters (digits) of decimal part 0 to 5 and smaller than "number of all digits -3"
Numeric range when decimal point is ignored −32768 to +32767 Example: 123.45 → 12345
b) Character types used in characters to be converted

Number "0" (30H) to "9" (39H)
In the character string located in and later, "space" (20H) and "0" (30H) characters between the sign and the first number other than "0" are ignored in the conversion to 16-bit binary data.

Number of all digits Number of digits of decimal part 16-bit binary data
Number of digits of decimal part 16-bit binary data

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
26 Character String Control – FNC200 to FNC209
FNC160-FNC169 Real Time Clock Control
binary data acquired for conversion is stored in , the number of digits of the decimal part is stored in
+1, and the binary data is stored in [ +1, ].
In conversion from a character string into binary data, the data from to a device number storing "00H" is handled as a character string in byte units.
DVAL D1 S D2
digits Number of digits
ASCII code of 1st character
ASCII code indicating sign
ASCII code of 3rd character
ASCII code of 2nd character
ASCII code of 5th character
ASCII code of 4th character
which decimal point is ignored
ASCII code of 7th character
ASCII code of 6th character
1st character 2nd character
ASCII code of 9th character
ASCII code of 8th character
ASCII code of 11th character
ASCII code of 10th character
ASCII code of 12th character
It indicates the end of character string.
For example, when a character string "-12345.678" is specified in and later, the conversion result is stored
in and as shown below.
FNC190-FNC199 Block Data Operation
2DH(-)
33H(3)
32H(2)
35H(5)
34H(4)
- 2 3 5 6
7 4 8 1 -12345678 D2 +1 D2
2EH(.)
38H(8) 37H(7)
FNC200-FNC209 Character String Control
Number of all characters (digits) 2 to 13
FNC210-FNC219 Data Operation 3
Number of characters (digits) of decimal part 0 to 10 and smaller than "number of all digits −3"
Numeric range when decimal point is ignored −2,147,483,648 to +2,147,483,647 Example: 12345.678 → "12345678"
b) Character types used in characters to be converted
Positive numeric value "Space" (20H)
Negative numeric value "–" (2DH)
Decimal point "." (2EH)
Number "0" (30H) to "9" (39H)
FNC250-FNC269 Data Table Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
26 Character String Control – FNC200 to FNC209
26.2 FNC201 – VAL / Character String to BIN Conversion

Total number of digits Number of digits after the decimal point
Total number of digits Number of digits after the decimal point

ESTR (FNC116) Converts binary floating point data into a character string (ASCII code) with a specified number of digits.
EVAL (FNC117) Converts a character string (ASCII code) into binary floating point data.
STR (FNC200) Converts binary data into a character string (ASCII code).
Store sign data, "space (20H)" or "- (2DH)", must be stored in the 1st byte (lower order 8 bits of the head device set in ). Only the ASCII code data "0 (30H)" to "9 (39H)", "space (20H)" and "decimal point (2EH)" can be stored from the 2nd byte to the "00H" at the end of the character string in . If "- (2DH)" is stored in the 2nd byte or later, an operation error (error code: K6706) occurs.
An operation error is caused in the following cases; The error flag M8067 turns ON, and the error code is stored in D8067.
16-bit operation 2 to 8
32-bit operation 2 to 13
16-bit operation 0 to 5
32-bit operation 0 to 10
16-bit operation −32768 to 32767
32-bit operation −2,147,483,648 to 2,147,483,647
Setting range · Setting range · Setting range

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
26 Character String Control – FNC200 to FNC209

Number of all digits Number of digits of decimal part
Number of all digits Number of digits of decimal part 36H(6) 2EH(.) 31H(1) 31H(1) D24 D25

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
26 Character String Control – FNC200 to FNC209
26.3 FNC202 – $+ / Link Character Strings
This instruction links a character string to another character string.
→ For handling of character strings, refer to Section 5.3.


Head device number storing the link source data (character string) or directly specified character string
Character string Head device number storing the link data (character string) or directly specified character string
Head device number storing the linked data (character string)

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
1. 16-bit operation ($+ and $+P)
The character string data stored in and later is linked to the end of the character string data stored in and
later, and the linked data is stored to devices starting from .
A character string stored in or or later indicates the data from the specified device to the first "00H" in units of byte.

specified in is linked to the last character specified in . When a character string is linked, “00H” is automatically added at the end. - When the number of characters after linking is odd, “00H” is stored in the high-order byte of the device storing the last character. - When the number of characters after linking is even, “0000H” is stored in the device after the last character.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
26 Character String Control – FNC200 to FNC209
FNC160-FNC169 Real Time Clock Control
However, this limitation in the number of characters is not applied when a word device is specified in or
is stored in .
An operation error is caused in the following cases; The error flag M8067 turns ON, and the error code is stored in D8067.
Program example
In the program example shown below, a character string stored in D10 to D12 (abcde) is linked to the character string “ABCD”, and the result is stored to D100 and later when X000 turns ON.
FNC190-FNC199 Block Data Operation
00H +
65H(e) “ABCD”
FNC200-FNC209 Character String Control
43H(C) 42H(B)
00H 44H(D)
“00H” is automatically stored.
FNC210-FNC219 Data Operation 3
FNC250-FNC269 Data Table Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
26 Character String Control – FNC200 to FNC209
26.4 FNC203 – LEN / Character String Length Detection
This instruction detects the number of characters (bytes) of a specified character string.
→ For handling of character strings, refer to Section 5.3.

Operand Type Description Data Type
Head device number storing a character string whose length is to be detected Character string
Device number storing the detected character string length (number of bytes) 16-bit binary

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
1. 16-bit operation (LEN and LENP)
The length of a character string stored in and later is detected, and stored to . Data starting from until the first device storing "00H" is handled as a character string in units of byte.

For example, when “ABCDEFGHI” is stored in and later as shown below, K9 is stored to .

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
26 Character String Control – FNC200 to FNC209
FNC160-FNC169 Real Time Clock Control
An operation error is caused in the following cases; The error flag M8067 turns ON, and the error code is stored in D8067.
In the program example shown below, the length of a character string stored in D0 and later is output in 4-digit BCD to Y040 to Y057 when X000 turns ON.
LEN D0
The length of the character string is output to the display unit.
BCD D10
END
49H(I) 4DH(M)
FNC190-FNC199 Block Data Operation
42H(B) 55H(U)
0 0 0 1
BCD
49H(I) 48H(H)
“ ABC.......”
41H(A) 00H
after “00H” are ignored.)
FNC200-FNC209 Character String Control
42H(B)
FNC210-FNC219 Data Operation 3
FNC250-FNC269 Data Table Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
26 Character String Control – FNC200 to FNC209
26.5 FNC204 – RIGHT / Extracting Character String Data from the Right
This instruction extracts a specified number of characters from the right end of a specified character string.
→ For handling of character strings, refer to Section 5.3.


Character string Head device number storing extracted character string
n Number of characters to be extracted 16-bit binary

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
1. 16-bit operation (RIGHT and RIGHTP)
“n” characters are extracted from the right end (that is, from the end) of the character string data stored in and
later, and stored to and later.
If the number of characters specified by “n” is “0”, the NULL code (0000H) is stored to . When characters are extracted from a character string, “00H" is automatically added at the end of the extracted characters.
- When the number of extracted characters is odd, “00H” is stored in the high-order byte of a device storing the last character. - When the number of extracted characters is even, “0000H” is stored in the device after the last character.


FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
26 Character String Control – FNC200 to FNC209
26.5 FNC204 – RIGHT / Extracting Character String Data from the Right 21
FNC160-FNC169 Real Time Clock Control
In the case of “n = 5”
32H(2) 31H(1)
44H(D) 43H(C)
34H(4)
33H(3)
46H(F) 45H(E)
+2 00H “12345”
35H(5)
31H(1) 32H(2)
34H(4) 33H(3)
35H(5) ASCII code for 5th character
ASCII code for 1st character
When handling character codes other than ASCII codes, note the following contents:
An operation error is caused in the following cases; The error flag M8067 turns ON, and the error code is stored in D8067.
FNC190-FNC199 Block Data Operation
FNC200-FNC209 Character String Control
In the program example shown below, 4 characters are extracted from the right end of the character string data stored in R0 and later, and stored to D0 and later when X000 turns ON.
FNC210-FNC219 Data Operation 3
K4
END
R0 D0
41H(A) 42H(B)
45H(E) 30H(0)
R1
31H(1) 32H(2)
41H(A) 46H(F)
R2
45H(E) 30H(0)
D2 0000H “0EFA”
R3
41H(A)
46H(F)
00H
R4
ASCII code for 4th character
FNC250-FNC269 Data Table Operation
ASCII code for 1st character

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
26 Character String Control – FNC200 to FNC209
26.6 FNC205 – LEFT / Extracting Character String Data from the Left
This instruction extracts a specified number of characters from the left end of a specified character string.
→ For handling of character strings, refer to Section 5.3.


Character string Head device number storing extracted character string
n Number of characters to be extracted 16-bit binary

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
1. 16-bit operation (LEFT and LEFTP)
“n” characters are extracted from the left end (that is, from the head) of the character string data stored in and
later and stored to and later.
If the number of characters specified by “n” is “0”, the NULL code (0000H) is stored to . When characters are extracted from a character string, "00H” is automatically added at the end of the extracted characters.
- When the number of extracted characters is odd, “00H” is stored in the high-order byte of a device storing the last character. - When the number of extracted characters is even, “0000H” is stored in the device after the last character.


FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
26 Character String Control – FNC200 to FNC209
26.6 FNC205 – LEFT / Extracting Character String Data from the Left 21
FNC160-FNC169 Real Time Clock Control
ASCII code for 1st character
In the case of "n = 7"
42H(B) 41H(A)
44H(D) 43H(C)
44H(D) 43H(C)
46H(F) 45H(E)
46H(F) 45H(E)
32H(2)
31H(1)
00H +3 D
31H(1)
34H(4) 33H(3)
"ABCDEF1"
ASCII code for 7th character
When handling character codes other than ASCII codes, note the following contents:
An operation error is caused in the following cases; The error flag M8067 turns ON, and the error code is stored in D8067.
FNC190-FNC199 Block Data Operation
FNC200-FNC209 Character String Control
In the program example shown below, the number of characters which is equivalent to the number stored in D0 are extracted from the left end of the character string data stored in D100 and later, and stored to R10 and later when X010 turns ON.
FNC210-FNC219 Data Operation 3
LEFTP D100
END
ASCII code for 1st character
51H(Q) 53H(S)
51H(Q) 53H(S)
4EH(N) 4FH(O)
R11
4EH(N) 4FH(O)
48H(H) 44H(D)
R12
44H(D) 48H(H)
42H(B) 41H(A)
R13
0000H “SQONHD”
FNC250-FNC269 Data Table Operation
“SQONHDAB”
ASCII code for 6th character

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
26 Character String Control – FNC200 to FNC209
26.7 FNC206 – MIDR / Random Selection of Character Strings
This instruction extracts a specified number of characters from arbitrary positions of a specified character string.
→ For handling of character strings, refer to Section 5.3.


Character string Head device number storing extracted character string
Head device number specifying the head position and number of characters to be extracted

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

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
26 Character String Control – FNC200 to FNC209
FNC160-FNC169 Real Time Clock Control
" +1" characters are extracted leftward from the position specified by of the character string data stored
in and later, and stored to and later. When characters are extracted from a character string, "00H" is automatically added at the end of the extracted characters.
- When the number of extracted characters specified by +1 is odd, "00H" is stored in the high-order byte of a device storing the last character.
- When the number of extracted characters specified by +1 is even, "0000H" is stored in the device after the last character.
MIDR S1 D S2
1st character Target character string (extraction source) Extracted character string
46H(F) 45H(E)
44H(D) 43H(C)
48H(H) 47H(G)
46H(F) 45H(E)
00H "EFGHI"
49H(I)
48H(H)
47H(G)
4AH(J)
49H(I)
S1 5 characters starting from 5th character +1
"ABCDEFGHIJK"
FNC190-FNC199 Block Data Operation
FNC200-FNC209 Character String Control
and later is stored to and later.
46H(F) 45H(E)
FNC210-FNC219 Data Operation 3
48H(H) 47H(G)
46H(F) 45H(E)
4AH(J) 49H(I)
48H(H)
47H(G)
00H +3 D
4BH(K)
4AH(J) 49H(I)
“FEGHIJK”
S 1 S 2
00H
4BH(K)
“ABCDEFGHIJK”
Cautions
FNC250-FNC269 Data Table Operation
When handling character codes other than ASCII codes, note the following contents:

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
26 Character String Control – FNC200 to FNC209
26.7 FNC206 – MIDR / Random Selection of Character Strings
An operation error is caused in the following cases; The error flag M8067 turns ON, and the error code is stored in D8067.
required to store extracted characters as many as the number specified by +1 (that is, when “00H” cannot be stored after all character strings and the last character) (error code: K6706)
Program example
In the program example shown below, four characters are extracted from the 3rd character from the left end of the character string data stored in D10 and later, and then stored to D0 and later when X000 turns ON.


FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
26 Character String Control – FNC200 to FNC209
26.8 FNC207 – MIDW / Random Replacement of Character Strings
FNC160-FNC169 Real Time Clock Control
This instruction replaces the characters in arbitrary positions inside designated character string with a specified character string.
→ For handling of character strings, refer to Section 5.3.
P FNC 207
Mnemonic Operation Condition 16-bit Instruction
Continuous Operation Pulse (Single) Operation
2. Set data
Operand Type Description Data Type
Head device number storing a character string used in overwriting
Character string Head device number storing character string to be overwritten
Head device number specifying the head position and number of characters to be overwritten
: Head character position to be overwritten
Bit Devices Word Devices Others
System User Digit Specification System User Special
FNC190-FNC199 Block Data Operation
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
FNC200-FNC209 Character String Control
1. 16-bit operation (MIDW and MIDWP)
“ +1” characters are extracted from the left end (that is, the head) of the character string data stored in and later, and stored to the position specified by and later of the character string data stored in and later.
S 2 D
FNC210-FNC219 Data Operation 3
MIDW S1 D S2
42H(B) 41H(A)
33H(3) 32H(2)
44H(D) 43H(C)
35H(5) 34H(4)
46H(F) 45H(E)
37H(7) 36H(6)
48H(H) 47H(G)
00H 38H(8)
+4 D 00H 49H(I)
“ABCDEFGHI”
After execution 6th character
3 Position from the left end in the character string stored in and later Number of characters from the left end in the character string stored in and later
FNC250-FNC269 Data Table Operation
31H(1) 30H(0)
33H(3)
32H(2)
35H(5) 34H(4)
+4 D 00H 49H(I)
“AB012345I”
Six characters starting from 3rd character (overwritten character string)

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
26 Character String Control – FNC200 to FNC209
26.8 FNC207 – MIDW / Random Replacement of Character Strings
string stored in and later, data is stored up to the last character.
42H(B) 41H(A)
33H(3) 32H(2)
44H(D) 43H(C)
35H(5) 34H(4)
46H(F) 45H(E)
37H(7)
36H(6)
48H(H) 47H(G)
00H 38H(8)
+4 00H
49H(I)
“ABCDEFGHI”
Position from the left end in the character string stored in and later Number of characters from the left end in the character string stored in and later
44H(D) 43H(C)
31H(1) 30H(0)
33H(3)
32H(2)
+4 00H
34H(4)
“ABCD01234”
Characters from the 5th character to the last character are overwritten. Excessive characters, “35H (5)” to “37H (7)” , are not stored.
later is stored to and later.
31H(1) 30H(0)
44H(D) 43H(C)
33H(3) 32H(2) +1
46H(F) 45H(E)
35H(5) 34H(4)
48H(H)
47H(G)
00H
4AH(J) 49H(I)
+5 00H 4BH(K)
D Position from the left end in the character string stored in and later Number of characters from the left end in the character string stored in and later
30H(0)
41H(A)
32H(2) 31H(1)
34H(4) 33H(3)
48H(H)
35H(5)
+4 4AH(J) 49H(I)
+5 00H 4BH(K)
“A012345HIJK”
Six characters from the 2nd character are overwritten.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
26 Character String Control – FNC200 to FNC209
FNC160-FNC169 Real Time Clock Control
This instruction can handle character codes other than ASCII codes, but please note the following:
An operation error is caused in the following cases; The error flag M8067 turns ON, and the error code is stored in D8067.
In the program example shown below, 4 characters are extracted from the character string data stored in D0 and later, and stored to the 3rd character (from the left end) and later for the character string data stored in D100 and later when X010 turns ON.
FNC190-FNC199 Block Data Operation
MIDWP D0
R0
END
Before execution 4th character
FNC200-FNC209 Character String Control
1st character 3rd character
53H(S) 55H(U)
45H(E) 46H(F)
59H(Y) 43H(C)
33H(3) 30H(0)
31H(1) 5AH(Z)
00H
D103 42H(B) 30H(0)
FNC210-FNC219 Data Operation 3
0000H
R0
“USCYZ10B”
R1 4
53H(S) 55H(U)
31H(1) 32H(2)
45H(E) 46H(F)
42H(B) 30H(0)
0000H
“US21FE0B”
FNC250-FNC269 Data Table Operation
The 1st to 4th characters are stored.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
26 Character String Control – FNC200 to FNC209
26.9 FNC208 – INSTR / Character string search
This instruction searches a specified character string within another character string.


Head device number storing a character string Character string
Head device number storing a character string to be searched Character string

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
1. 16-bit operation (INSTR and INSTRP)
search begins at the "n"th character from the left end (head character) of and the search result is stored in

. The search result provides the first matching character (located from the left end (head character)) in
INSTR S2 S1 D n
Search is started from the 3rd character (n = 3). Fifth character from the head character 46H(F) 48H(H) 45H(E) 47H(G)
The position where the first detected character is located from the head character in the character string data stored in .

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
26 Character String Control – FNC200 to FNC209
FNC160-FNC169 Real Time Clock Control
Character string Character string to be searched S1 S2
32H(2) 34H(4)
31H(1) 33H(3)
Search is started from the 3rd character (n = 3). Fifth character from the head character
36H(6)
35H(5) 42H(B) 41H(A)
00H
"1234AB56AB"
Errors
An operation error is caused in the following cases; The error flag M8067 turns ON, and the error code is stored in D8067.
FNC190-FNC199 Block Data Operation
END
Character string to be searched R0 Character string D0
b15 b8 b7 b0
FNC200-FNC209 Character String Control
These characters are not searched because the search start position is "5". The search source character string is searched from the 5th character.
49H(I) 33H(3) 43H(C) 32H(2)
49H(I) 33H(3) 43H(C) 32H(2) 00H
R1
D1 D2
R2 R3 R4
32H(2) 49H(I) 31H(1) 43H(C)
"CI23"
00H 4DH(M)
"CI2312CIM"
FNC210-FNC219 Data Operation 3
0 Because the searched character string is not detected, "0" is stored.
FNC250-FNC269 Data Table Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
26 Character String Control – FNC200 to FNC209
26.10 FNC209 – $MOV / Character String Transfer
This instruction transfers character string data.
→ For handling of character strings, refer to Section 5.3.


Directly specified character string (up to 32 characters) or head device number storing character string which is handled as the transfer source Character string Head device number storing transferred character string

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
1. 16-bit operation ($MOV and $MOVP)
The character string data stored in the device specified by and later is transferred to the device specified by
and later.
From the device number specified by to a device after that which stores “00H” in its high-order or low-order byte are transferred at one time.

Even if the device range “ to +n” storing the transfer source character string data overlaps the device
range “ to +n/2” storing the transferred character string data, transfer is executed. For example, when a character string stored in D10 to D13 is transferred to D11 to D14, the transfer is executed as shown below:
Command · input

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
26 Character String Control – FNC200 to FNC209
FNC160-FNC169 Real Time Clock Control
b15 b8 b7 b0
b15 b8 b7 b0
31H(1)
D10 32H(2)
31H(1)
It is the same as the character string before transfer.
33H(3)
32H(2) 31H(1)
36H(6)
35H(5)
34H(4)
33H(3)
00H
36H(6)
35H(5)
0000H
Caution
When “00H” is stored in the low-order byte of +n, “00H” is stored to both the high-order byte and low-order byte
of +n.
b15 b8 b7 b0
b15 b8 b7 b0
41H(A)
42H(B)
41H(A)
44H(D)
43H(C)
44H(D)
43H(C)
45H(E)
00H
00H
00H
The high-order byte is not transferred.
“00H” is automatically stored in the high-order byte.
FNC190-FNC199 Block Data Operation
An operation error is caused in the following cases; The error flag M8067 turns ON, and the error code is stored in D8067.
FNC200-FNC209 Character String Control
In the program example shown below, character string data stored in D10 to D12 is transferred to D20 through D22.
FNC210-FNC219 Data Operation 3
$MOV D10 D20
END
b15 b8 b7 b0
b15 b8 b7 b0
2AH(*)
4DH(M)
2AH(*)
45H(E)
45H(E)
45H(E)
45H(E)
00H
0000H
FNC250-FNC269 Data Table Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
27 Data Operation 3 – FNC210 to FNC219
FNC210 to FNC219 provide instructions for reading last-in data and controlling leftward/rightward shift instructions with carry.

212 POP Shift Last Data Read [FILO Control] Section 27.3
213 SFR 16-bit data n Bit Shift Right with Carry Section 27.4
214 SFL 16-bit data n Bit Shift Left with Carry Section 27.5

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
27 Data Operation 3 – FNC210 to FNC219
27.1 FNC210 – FDEL / Deleting Data from Tables
FNC160-FNC169 Real Time Clock Control
This instruction deletes an arbitrary data value from a data table.
⎯ ⎯ P FNC 210
Mnemonic Operation Condition 16-bit Instruction
Continuous Operation Pulse (Single) Operation
2. Set data
Operand Type Description Data Type
Device number storing deleted data value
16-bit binary Head device number in data table
n Position of deleted data in table
Bit Devices Word Devices Others
System User Digit Specification System User Special
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
FNC190-FNC199 Block Data Operation
3
3
n 3
FNC200-FNC209 Character String Control
The "n"th data value is deleted from a data table (stored in and later), and the deleted value is stored in . "n+1"th data value and later in the data table are shifted forward one by one, and the number of stored data is subtracted by "−1".
FDELP S D n
FNC210-FNC219 Data Operation 3
Number of stored data Number of stored data
When "n" is "2"
Device range used in data table
Data table (having data starting from +1)
"0" is stored.
Deleted data S
FNC250-FNC269 Data Table Operation
The device range used in a data table should be controlled by the user. The data table has number of stored data starting from ( +1).
→ Refer to the program example.
FINS (FNC211) Inserts data into an arbitrary position in a data table.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
27 Data Operation 3 – FNC210 to FNC219
27.1 FNC210 – FDEL / Deleting Data from Tables
An operation error is caused in the following cases; The error flag M8067 turns ON, and the error code is stored in D8067.
In the program shown below, the 2nd data value entry is deleted from the data table stored in D100 to D105, and the deleted data is stored in D0. When the amount of data stored is "0", however, the FDEL (FNC210) instruction is not executed. (The device range used in the data table is D100 to D107).

Amount of data stored D101 D102 D103 D104 D105 D106 D107
Data table range Device range used in data table

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
27 Data Operation 3 – FNC210 to FNC219

This instruction inserts a data value into an arbitrary position in a data table.
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
16-bit data is inserted in the "n"th position in a data table (stored in and later). "n"th data and later in the data table are shifted backward one by one, and the number of stored data is added by "1".
Data table range Device range used in data table
The device range used in a data table should be controlled by the user. The data table has number of stored data starting from ( +1).
FDEL (FNC210) Deletes an arbitrary data entry from a data table.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
27 Data Operation 3 – FNC210 to FNC219
27.2 FNC211 – FINS / Inserting Data to Tables
An operation error is caused in the following cases; The error flag M8067 turns ON, and the error code is stored in D8067.
In the program shown below, data stored in D100 is inserted into the 3rd position of the data table stored in D0 to D4. When the amount of data stored exceeds "7", however, the FINS (FNC211) instruction is not executed. (The device range used in the data table is D0 to D7).

Amount of data stored D0 D1 D2 D3 D4 D5 D6 D7
Data table range Device range used in data table

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
27 Data Operation 3 – FNC210 to FNC219
27.3 FNC212 – POP / Shift Last Data Read [FILO Control]
FNC160-FNC169 Real Time Clock Control
This instruction reads the last data written by a shift write (SFWR) instruction for FILO control.
→ For SFWR (FNC 38) instruction, refer to Section 11.9.
⎯ ⎯ P FNC 212
Mnemonic Operation Condition 16-bit Instruction
Continuous Operation Pulse (Single) Operation
2. Set data
Operand Type Description Data Type
Head device number storing first-in data (including pointer data)
16-bit binary Device number storing last-out data
Length of data array (Add "1" because pointer data is also included.) 2 ≤ n ≤ 512
Bit Devices Word Devices Others
FNC190-FNC199 Block Data Operation
System User Digit Specification System User Special
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
FNC200-FNC209 Character String Control
1. 16-bit operation (POP and POPP)
FNC210-FNC219 Data Operation 3
POPP S D n
Pointer data (amount of data stored)
Data area (First-in data written by shift write (SFWR) instruction)
FNC250-FNC269 Data Table Operation
S D
” is read to . (The last data entry written by the shift write (SFWR) instruction for first-in first-out control
is read to .) Specify “n” ranging from “2” to “512”.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
27 Data Operation 3 – FNC210 to FNC219
27.3 FNC212 – POP / Shift Last Data Read [FILO Control]
![Mitsubishi Electronics MELSEC FX3S — 27.3 FNC212 – POP / Shift Last Data Read [FILO Control] diagram (page 648)](/cdn/reader/06/06b6c5c8bfa3e981e964d8ed7432322fb86c682a85757d292a29f9cec2d4294a/images/fig-648-1.webp)
S +n-2 S +n-1 S +6 S +5 S +3 S +2 S +1 S
S +n-2 S +n-1 S +6 S +5 S +3 S +2 S +1 S D
→ For the zero flag use method, refer to Subsection 6.5.2.
M8020 Zero flag Turns ON when the instruction is executed while the pointer is “0”.
SFWR (FNC 38) Shift write [for FIFO/FILO control]
SFRD (FNC 39) Shift read [for FIFO control]
Check in advance using a comparison instruction whether the current value of satisfies “1 ≤ ≤ n-1”, and then execute this instruction.
Error
An operation error is caused in the following cases; The error flag M8067 turns ON, and the error code is stored in D8067.
Device Name Description · Instruction Description
![Page 649 of the Mitsubishi Electronics MELSEC FX3S user manual — 27.3 FNC212 – POP / Shift Last Data Read [FILO Control] 21](/cdn/reader/06/06b6c5c8bfa3e981e964d8ed7432322fb86c682a85757d292a29f9cec2d4294a/images/page-649.webp?w=400)
FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
27 Data Operation 3 – FNC210 to FNC219
![Mitsubishi Electronics MELSEC FX3S — 27.3 FNC212 – POP / Shift Last Data Read [FILO Control] 21 diagram (page 649)](/cdn/reader/06/06b6c5c8bfa3e981e964d8ed7432322fb86c682a85757d292a29f9cec2d4294a/images/fig-649-1.webp)
Among values stored in D20 input first to D101 to D106, the last value input is stored to D10, and “1” is subtracted from the number of stored data (pointer D100) every time X000 turns ON.
When the first-in data is as shown in the table below
H0000 H0000 H0000 HABCD H5678 H1234 K3→K2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
27 Data Operation 3 – FNC210 to FNC219
27.4 FNC213 – SFR / Bit Shift Right with Carry
This instruction shifts 16 bits stored in a word device rightward by “n” bits.

Operand Type Description Data Type
Device number storing data to be shifted
16-bit binary n Number of times of shift (0 ≤ n ≤ 15)

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
n 3
1. 16-bit operation (SFR and SFRP)
SFRP D n

Command · input

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
27 Data Operation 3 – FNC210 to FNC219
When a bit device is specified by digit specification 4°K bits are shifted according to the data bit specification.
FNC160-FNC169 Real Time Clock Control
1 M11
0 1 0 M8
M7 M4 M3 M0
1 0 1 0 1 0 1 0
0 1 0 1 0 1 0 1 0 M11 M8 M7 M4 M3 M0
Become “0”.
→ For the carry flag use method, refer to Subsection 6.5.2.
M8022 Carry flag Shifts the ON/OFF status of bit “n-1”.
An operation error is caused in the following cases; The error flag M8067 turns ON, and the error code is stored in D8067.
FNC190-FNC199 Block Data Operation
In the program example shown below, the contents of Y010 to Y023 are shifted rightward by the number of bits specified by D0 when X020 turns ON.
FNC200-FNC209 Character String Control
SFRP K3Y010 D0
END
FNC210-FNC219 Data Operation 3
0 1 0 Y20
Y17 Y14 Y13 Y10
1 0 1 0 1 0 1 0
0 1 0 1 0 1 0 1 0 Y23 Y20 Y17 Y14 Y13 Y10
Become “0”.
FNC250-FNC269 Data Table Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
27 Data Operation 3 – FNC210 to FNC219
27.5 FNC214 – SFL / Bit Shift Left with Carry
This instruction shifts 16 bits stored in a word device leftward by “n” bits.

Operand Type Description Data Type
Device number storing data to be shifted
16-bit binary n Number of times of shift (0 ≤ n ≤ 15)

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
n 3
1. 16-bit operation (SFL and SFLP)
SFLP D n

Command · input

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
27 Data Operation 3 – FNC210 to FNC219

When a bit device is specified by digit specification 4°K bits are shifted according to the data of bit specification.
1 0 0 1 1 0 0 0 1
→ For the carry flag use method, refer to Subsection 6.5.2.
M8022 Carry flag Shifts the ON/OFF status of bit “n”.
An operation error is caused in the following cases; The error flag M8067 turns ON, and the error code is stored in D8067.
In the program example shown below, the contents of Y010 to Y017 are shifted leftward by the number of bits specified by D0 when X020 turns ON.
1 0 0 1 1 0 0 0 1

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
28 Data Comparison – FNC220 to FNC249
FNC220 to FNC249 provide data comparison instructions which can be handled as contact symbols in programming such as LD, AND and OR.


FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
28 Data Comparison – FNC220 to FNC249


FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
28 Data Comparison – FNC220 to FNC249
28.1 FNC224~230 – LD =, >, <, <>, <=, >= / Data Comparison
28.1 FNC224~230 – LD =, >, <, <>, <=, >= / Data Comparison
These instructions compare numeric values, and set a contact to ON when the condition agrees so that an operation is started.

Operand Type Description Data Type
Device number storing comparison data 16- or 32-bit binary
Device number storing comparison data 16- or 32-bit binary

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 S1 S2 3
3 S1 S2 3
S1: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S2: This function is supported only in FX3U/FX3UC PLCs.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
28 Data Comparison – FNC220 to FNC249
28.1 FNC224~230 – LD =, >, <, <>, <=, >= / Data Comparison 21
FNC160-FNC169 Real Time Clock Control
FNC224 to FNC230 are data comparison instructions connected to bus lines. The contents of are compared with the contents of in binary format, and a contact becomes conductive (ON) or non-conductive (OFF) depending on the comparison result.
FNC No. 16-bit instruction 32-bit instruction ON condition OFF condition
S 1 S 2 S 1 S 2
225 LD> LDD> > <=
S 1 S 2 S 1 S 2
226 LD< LDD< < >=
S 1 S 2 S 1 S 2
228 LD<> LDD<> ≠ =
S 1 S 2 S 1 S 2
229 LD<= LDD<= <= >
S 1 S 2 S 1 S 2
230 LD>= LDD>= >= <
S 1 S 2 S 1 S 2
Cautions
1. Negative value
FNC190-FNC199 Block Data Operation

FNC200-FNC209 Character String Control

FNC210-FNC219 Data Operation 3
C10 FNC224
When the current value of the counter C10 is "200", Y010 is driven.
Y10
K-30 FNC225
When the contents of D200 are "-29" or higher and X001 is ON, Y011 is set.
SET Y11
FNC250-FNC269 Data Table Operation
When the contents of the counter C200 are less than "K678,493" or when M3 turns ON, M50 is driven.
M3

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
28 Data Comparison – FNC220 to FNC249
28.2 FNC232~238 – AND=, >, <, < >, <=, >= / Data Comparison
28.2 FNC232~238 – AND=, >, <, < >, <=, >= / Data Comparison
These instructions compare numeric values, and set a contact to ON when the condition agrees.

Operand Type Description Data Type
Device number storing comparison data 16- or 32-bit binary
Device number storing comparison data 16- or 32-bit binary

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 S1 S2 3
3 S1 S2 3
S1: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S2: This function is supported only in FX3U/FX3UC PLCs.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
28 Data Comparison – FNC220 to FNC249
28.2 FNC232~238 – AND=, >, <, < >, <=, >= / Data Comparison 21
FNC160-FNC169 Real Time Clock Control
FNC232 to FNC237 are data comparison instructions connected to other contacts in series. The contents of are compared with the contents of in binary format, and a contact becomes conductive (ON) or non-conductive (OFF) depending on the comparison result.
FNC No. 16-bit instruction 32-bit instruction ON condition OFF condition
S 1 S 2 S 1 S 2
233 AND> ANDD> > <=
S 1 S 2 S 1 S 2
234 AND< ANDD< < >=
S 1 S 2 S 1 S 2
236 AND<> ANDD<> ≠ =
S 1 S 2 S 1 S 2
237 AND<= ANDD<= <= <
S 1 S 2 S 1 S 2
238 AND>= ANDD>= >= >
S 1 S 2 S 1 S 2
Cautions
FNC190-FNC199 Block Data Operation

FNC200-FNC209 Character String Control

FNC210-FNC219 Data Operation 3
C10 FNC232
AND= K200 Y10
When X000 is ON and the current value of the counter C10 is "200" Y010 is driven.
When X001 is OFF and the contents of the data register D0 are not "-10", Y011 is set.
AND<> K-10
SET Y11
FNC250-FNC269 Data Table Operation
When X002 is ON, and the contents of the data registers D11 and D10 are less than "K678,493", or when M3 turns ON, M50 is driven.
ANDD> K678493 M50
M3

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
28 Data Comparison – FNC220 to FNC249
28.3 FNC240~246 – OR=, >, <, < >, <=, >= / Data Comparison
28.3 FNC240~246 – OR=, >, <, < >, <=, >= / Data Comparison
These instructions compare numeric values, and set a contact to ON when the condition agrees.

Operand Type Description Data Type
Device number storing comparison data 16- or 32-bit binary
Device number storing comparison data 16- or 32-bit binary

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 S1 S2 3
3 S1 S2 3
S1: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S2: This function is supported only in FX3U/FX3UC PLCs.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
28 Data Comparison – FNC220 to FNC249
28.3 FNC240~246 – OR=, >, <, < >, <=, >= / Data Comparison 21
FNC160-FNC169 Real Time Clock Control
FNC240 to 246 are data comparison instructions connected to other contacts in parallel. The contents of are compared with the contents of in binary format, and a contact becomes conductive (ON) or non-conductive (OFF) depending on the comparison result.
FNC No. 16-bit instruction 32-bit instruction ON condition OFF condition
S 1 S 2 S 1 S 2
241 OR> ORD> > <=
S 1 S 2 S 1 S 2
242 OR< ORD< < >=
S 1 S 2 S 1 S 2
244 OR<> ORD<> ≠ =
S 1 S 2 S 1 S 2
245 OR<= ORD<= <= >
S 1 S 2 S 1 S 2
246 OR>= ORD>= >= <
S 1 S 2 S 1 S 2
Cautions
FNC190-FNC199 Block Data Operation

FNC200-FNC209 Character String Control

FNC210-FNC219 Data Operation 3
When X001 turns ON or when the current value of the counter C10 is "200", Y000 is driven.
C10 FNC240
OR= K200
FNC250-FNC269 Data Table Operation
When X002 and M30 turn ON or when the contents of the data registers D101 and D100 are more than "K100,000" M60 is driven.
ORD>= D100

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
29 Data Table Operation – FNC250 to FNC269

259 SCL Scaling (Coordinate by Point Data) Section 29.4
260 DABIN Decimal ASCII to BIN Conversion Section 29.5
261 BINDA BIN to Decimal ASCII Conversion Section 29.6
269 SCL2 Scaling 2 (Coordinate by X/Y Data) Section 29.7

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
29 Data Table Operation – FNC250 to FNC269
29.1 FNC256 – LIMIT / Limit Control
FNC160-FNC169 Real Time Clock Control
This instruction provides the upper limit value and lower limit value for an input numeric value, and controls the output value using these limit values.
P FNC 256
Mnemonic Operation Condition 16-bit Instruction
Continuous Operation Pulse (Single) Operation
Continuous Operation Pulse (Single) Operation
DLIMITP
2. Set data
Operand Type Description Data Type
Lower limit value (minimum output value)
16- or 32-bit binary Upper limit value (maximum output value)
Input value controlled by the upper and lower limit values
Head device number storing the output value controlled by the upper and lower limit values
Bit Devices Word Devices Others
System User Digit Specification System User Special
FNC190-FNC199 Block Data Operation
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
FNC200-FNC209 Character String Control
3
1. 16-bit operation (LIMIT and LIMITP)
Depending on how the input value (16-bit binary value) specified by compares to the range between
FNC210-FNC219 Data Operation 3
and , the output value is controlled. The output value is controlled as shown below:
LIMIT S1 S2 D S3
In the case of “ Lower limit value > Input value” Lower limit value → Output value
In the case of “ Upper limit value < Input value” Upper limit value → Output value
S2 S3 S2 D
In the case of “ Lower limit value ≤ Input value ≤ Upper limit value” S1
Input value → Output value S3 D
FNC250-FNC269 Data Table Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
29 Data Table Operation – FNC250 to FNC269
29.1 FNC256 – LIMIT / Limit Control
in .
Depending on how the input value (32-bit binary value) specified by [ +1, ] compares to the range
between [ +1, ] and [ +1, ], the output value [ +1, ] is controlled.
S1 S1 S2 S2 D D
S1 S2 S3 D
S1 S1 S3 S3
D D
In the case of “Lower limit value > Input value” Lower limit value → Output value
S2 S2 S3 S3
+1, D D
In the case of “Upper limit value < Input value” Upper limit value → Output value
+1, S1 S1 +1, S3 S3 S2 S2
+1, D D
In the case of “Lower limit value ≤ Input value ≤ Upper limit value” Input value → Output value
+1, S 2 S 2
+1, S 3 S 3
+1, S 1 S 1
specified in [ +1, ].
specified in [ +1, ].
Error
An operation error is caused when the instruction is executed in the setting status shown below; The error flag M8067 turns ON, and the error code (K6706) is stored in D8067.
32-bit operation [ +1, ] ≤ [ +1, ]

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
29 Data Table Operation – FNC250 to FNC269
FNC160-FNC169 Real Time Clock Control
BIN
K500 K5000 D0 D1 FNC256
LIMIT
END
Operation
FNC190-FNC199 Block Data Operation
DBIN
K10000 K1000000 D0 D10 FNC256
DLIMIT
FNC200-FNC209 Character String Control
Operation
FNC210-FNC219 Data Operation 3
FNC250-FNC269 Data Table Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
29 Data Table Operation – FNC250 to FNC269
29.2 FNC257 – BAND / Dead Band Control
This instruction provides the upper limit value and lower limit value of the dead band for an input numeric value, and controls the output value using these limit values.


Lower limit value of the dead band (no-output band)
16- or 32-bit binary Upper limit value of the dead band (no-output band)
Device number storing the output value controlled by the dead band

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
1. 16-bit operation (BAND and BANDP)
Depending on how the input value (16-bit binary value) specified by compares to the dead band range between

S1 S2 D S3
S3 S1 S3 S1
D S3 S2 S3 S2
D S3 S1 S2
Upper limit value of dead band ( ) S2 Output value = 0

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
29 Data Table Operation – FNC250 to FNC269
FNC160-FNC169 Real Time Clock Control
Depending on how the input value (32-bit binary value) specified by [ +1, ] compares to the dead band
range between [ +1, ] and [ +1, ], the output value [ +1, ] is controlled. The output value is controlled as shown below:
S1 S1 S2 S2 D D
S1 S2 S3 D
S1 S1 S3 S3
+1,
S 1 S 1
D D
In the case of “Lower limit value > Input value” Input value − Lower limit value → Output value
S2 S2 S3 S3
S 2 S 2
+1,
In the case of “Upper limit value < Input value” Input value − Upper limit value → Output value
S3 S3 S1 S1 S2 S2
+1,
In the case of “Lower limit value ≤ Input value ≤ Upper limit value” 0 → Output value
Lower limit value of dead band
[ ] +1, S1 S1
Upper limit value of dead band [ ] +1, S2 S2
Output value = 0
FNC190-FNC199 Block Data Operation
FNC200-FNC209 Character String Control
Lower limit value of dead band = 10
Output value = -32768-10 = 8000H-AH = 7FF6H = 32758
Input value = -32768
FNC210-FNC219 Data Operation 3
- In the 32-bit operation The output value is a 32-bit binary value with sign. Accordingly, if the operation result is outside the range from - 2,147,483,648 to +2,147,483,647, it is handled as follows:
Lower limit value of dead band [ +1, ] = 1000
Output value = -2,147,483,648-1000 = 80000000H-000003E8H = 7FFFFC18H = 2,147,482,648
Input value [ +1, ] = -2,147,483,648
An operation error is caused when the instruction is executed in the setting status shown below; The error flag M8067 turns ON, and the error code (K6706) is stored in D8067.
FNC250-FNC269 Data Table Operation
32-bit operation [ +1, ] > [ +1, ]

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
29 Data Table Operation – FNC250 to FNC269
29.2 FNC257 – BAND / Dead Band Control





FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
29 Data Table Operation – FNC250 to FNC269
29.3 FNC258 – ZONE / Zone Control
FNC160-FNC169 Real Time Clock Control
Depending on how the input value compares to positive or negative, the output value is controlled by the bias value specified.
P FNC 258
Mnemonic Operation Condition 16-bit Instruction
Continuous Operation Pulse (Single) Operation
Continuous Operation Pulse (Single) Operation
DZONEP
2. Set data
Operand Type Description Data Type
Negative bias value to be added to the input value
16- or 32-bit binary Positive bias value to be added to the input value
Input value controlled by the zone
Head device number storing the output value controlled by the zone
Bit Devices Word Devices Others
FNC190-FNC199 Block Data Operation
System User Digit Specification System User Special
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
FNC200-FNC209 Character String Control
3
3
1. 16-bit operation (ZONE and ZONEP)
FNC210-FNC219 Data Operation 3
The bias value specified by or is added to the input value specified by , and output to the device
specified by . The bias value is added as shown below:
S1 S2 D S3
In the case of “ Input value < 0” Input value + Negative bias value → Output value
In the case of “ Input value = 0” 0 → Output value
In the case of “ Input value > 0” Input value + Positive bias value → Output value
Output value ( ) D
FNC250-FNC269 Data Table Operation
Input value ( ) S3
Negative bias value ( ) S1

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
29 Data Table Operation – FNC250 to FNC269
29.3 FNC258 – ZONE / Zone Control
The bias value specified by [ +1, ] or [ +1, ] is added to the input value specified by [ +1,
S1 S1 S2 S2 S3
], and output to the device specified by [ +1, ]. The bias value is added as shown below:

In the case of “Input value < 0” Input value + Negative bias value → Output value
In the case of “Input value = 0” 0 → Output value
In the case of “Input value > 0” Input value + Positive bias value → Output value
+1, [ ] S2 S2
+1, [ ] S1 S1
Negative bias value = -100
Output value = -32768+(-100) = 8000H+FF9CH = 7F9CH = 32668
Input value = -32768
- In the 32-bit operation The output value is a 32-bit binary value with sign. Accordingly, if the operation result is outside the range from -2,147,483,648 to +2,147,483,647, it is handled as follows:
Negative bias value [ +1, ] = -1000
Output value = -2,147,483,648+(-1000) = 80000000H+FFFFFC18H = 7FFFFC18H = 2,147,482,648
Input value [ +1, ] = -2,147,483,648

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
29 Data Table Operation – FNC250 to FNC269
FNC160-FNC169 Real Time Clock Control
BIN
K-1000 K1000 D0 D1 FNC258
ZONEP
END
Operation
FNC190-FNC199 Block Data Operation
DBIN
FNC200-FNC209 Character String Control
END
Operation
FNC210-FNC219 Data Operation 3
FNC250-FNC269 Data Table Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
29 Data Table Operation – FNC250 to FNC269
29.4 FNC259 – SCL / Scaling (Coordinate by Point Data)
This instruction executes scaling of the input value using a specified data table, and outputs the result. SCL2 (FNC269) is also available with a different data table configuration for scaling.
→ For SCL2 (FNC269) instruction, refer to Section 29.7.


Input value used in scaling or device number storing the input value
16- or 32-bit binary Head device number storing the conversion table used in scaling
Device number storing the output value controlled by scaling

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
1. 16-bit operation (SCL and SCLP)
The input value specified in is processed by scaling for the specified conversion characteristics, and stored to a
device number specified in . Conversion for scaling is executed based on the data table stored in a device
specified in and later. If the output data is not an integer, however, the number in the first decimal place is rounded.
→ For the method to set the conversion table for scaling, refer to the next page.

Number of coordinate points (“5” in the case shown in the left figure)

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
29 Data Table Operation – FNC250 to FNC269
FNC160-FNC169 Real Time Clock Control
The input value specified in [ +1, ] is processed by scaling for the specified conversion characteristics,
and stored to a device number specified in [ +1, ]. Conversion for scaling is executed based on the data
table stored in a device specified in [ +1, ] and later. If the output data is not an integer, however, the number in the first decimal place is rounded.
Conversion setting data table for scaling
Set item Device assignment in
DSCL
Number of coordinate points (“5” in the case shown in the left figure)
Y
X coordinate [ +3, +2]
Y coordinate [ +5, +4]
value ( ) D
X coordinate [ +7, +6]
Point 4 Point 1
Y coordinate [ +9, +8]
X coordinate [ +11, +10]
Input value ( ) S1
Y coordinate [ +13, +12]
Operation error Operation is enabled.
X coordinate [ +15, +14]
Y coordinate [ +17, +16]
X coordinate [ +19, +18]
Y coordinate [ +21, +20]
3. Setting the conversion table for scaling
FNC190-FNC199 Block Data Operation
The conversion table for scaling is set based on the data table stored in a device specified in [ +1, ] and later. The data table has the following configuration:
→ For a setting example, refer to the following.
Device assignment in setting data table
16-bit operation 32-bit operation
FNC200-FNC209 Character String Control
Number of coordinate points [ +1, ]
X coordinate +1 [ +3, +2]
Y coordinate +2 [ +5, +4]
X coordinate +3 [ +7, +6]
FNC210-FNC219 Data Operation 3
Y coordinate +4 [ +9, +8]
X coordinate +2n-1 [ +4n-1, +4n-2]
Y coordinate +2n [ +4n+1, +4n]
Setting example of the conversion table for scaling A setting example for the 16-bit operation is shown below. For the 32-bit operation, set each item using a 32-bit binary value. In the case of the conversion characteristics for scaling shown in the figure below, set the following data table.
FNC250-FNC269 Data Table Operation
Point 7 (250,90) Point 8(350,90)
Point 9 (350,30) Point 10(400,7)

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
29 Data Table Operation – FNC250 to FNC269
29.4 FNC259 – SCL / Scaling (Coordinate by Point Data)

When coordinates are specified using three points in this way, the output value can be set to an intermediate value. In this example, the output value (intermediate value) is specified by the Y coordinate of the point 5. If the X coordinate is the same at three points or more, the value at the second point is also output.
When coordinates are specified using two points in this way, the output value is the Y coordinate at the next point. In this example, the output value is specified by the Y coordinate of the point 9.
An operation error is caused in the following cases; The error flag M8067 turns ON, and the error code is stored in D8067.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
29 Data Table Operation – FNC250 to FNC269

In the program example shown below, the value input to D0 is processed by scaling based on the conversion table for scaling set in R0 and later, and output to D10.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
29 Data Table Operation – FNC250 to FNC269
29.5 FNC260 – DABIN / Decimal ASCII to BIN Conversion
This instruction converts numeric data expressed in decimal ASCII codes (30H to 39H) into binary data.

Operand Type Description Data Type
Head device number storing data (ASCII codes) to be converted into binary data Character string
Device number storing conversion result 16- or 32-bit binary

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
1. 16-bit operation (DABIN and DABINP)

D ASCII code for 1's digit ASCII code for 10's digit
For example, when to +2 store ASCII codes expressing "-25108", 16-bit binary data is stored in

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
29 Data Table Operation – FNC250 to FNC269
FNC160-FNC169 Real Time Clock Control
data, and stored in [ +1, ].
input FNC260 DDABINP S D
ASCII code for 1,000,000,000's digit
b0 b15 D +1 D
ASCII code for 10,000,000's digit
ASCII code for 100,000,000's digit
ASCII code for 100,000's digit ASCII code for 1,000,000's digit
ASCII code for 1000's digit
ASCII code for 10000's digit
ASCII code for 10's digit
ASCII code for 100's digit
(Ignored) ASCII code for 1's digit
For example, when to +5 store ASCII codes expressing "-1,234,543,210", 32-bit binary data is
stored in [ +1, ] as follows:
31H(1) 33H(3) 2DH(-) 32H(2)
D +1 D
35H(5) 34H(4)
33H(3) 31H(1) 34H(4) 32H(2)
FNC190-FNC199 Block Data Operation
The high-order byte of +5 is ignored.
FNC200-FNC209 Character String Control
ASCI (FNC 82) Converts hexadecimal codes into ASCII codes.
HEX (FNC 83) Converts ASCII codes into hexadecimal codes.
STR (FNC200) Converts binary data into a character string (ASCII codes).
FNC210-FNC219 Data Operation 3
VAL (FNC201) Converts a character string (ASCII codes) into binary data.
BINDA (FNC261) Converts binary data into decimal ASCII codes (30H to 39H).
An operation error is caused in the following cases; The error flag M8067 turns ON, and the error code is stored in D8067.
FNC250-FNC269 Data Table Operation
16-bit operation −32768 to 32767
32-bit operation −2,147,483,648 to 2,147,483,647

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
29 Data Table Operation – FNC250 to FNC269
29.5 FNC260 – DABIN / Decimal ASCII to BIN Conversion
In the program below, the sign and decimal ASCII codes in five digits stored in D20 to D22 are converted into a binary value and stored in D0 when X000 is set to ON.
END
b15 b8 b7 b0
20H(space) 32H(2) 2DH(-) 20H(space)
D21 D22 (It is regarded as
"-00276".) "- 276"
value 36H(6) 37H(7) · Binary

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
29 Data Table Operation – FNC250 to FNC269
29.6 FNC261 – BINDA / BIN to Decimal ASCII Conversion
FNC160-FNC169 Real Time Clock Control
This instruction converts binary data into decimal ASCII codes (30H to 39H).
P FNC 261
Mnemonic Operation Condition 16-bit Instruction
Continuous Operation Pulse (Single) Operation
Continuous Operation Pulse (Single) Operation
DBINDAP
2. Set data
Operand Type Description Data Type
Device number storing binary data to be converted into ASCII codes 16- or 32-bit binary
Head device number storing conversion result Character string
Bit Devices Word Devices Others
System User Digit Specification System User Special
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
FNC190-FNC199 Block Data Operation
3
1. 16-bit operation (BINDA and BINDAP)
FNC200-FNC209 Character String Control
and later.
input FNC261 BINDAP S D
b8 b7 b0 D
FNC210-FNC219 Data Operation 3
ASCII code for 10000's digit
Sign data ASCII code for 1000's digit
ASCII code for 100's digit
ASCII code for 1's digit ASCII code for 10's digit
+3 M8091=OFF: 0000H M8091=ON: Does not change.
0000H or source data
For example, when stores "-12345", the conversion result is stored in and later as follows:
b8 b7 b0 D
b0 b15 S 35H(5) 34H(4)
FNC250-FNC269 Data Table Operation
0000H or source data +3 M8091=OFF: 0000H M8091=ON: Does not change.
a) As "sign data" (low-order byte of ), "20H (space)" is set when the 16-bit binary data stored in is
positive, and "2DH (-)" is set when 16-bit binary data stored in is negative.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
29 Data Table Operation – FNC250 to FNC269
29.6 FNC261 – BINDA / BIN to Decimal ASCII Conversion
b) "20H (space)" is stored for "0" on the left side of the effective digits (zero suppression).

c) +3 is set as follows depending on the ON/OFF status of M8091.

ASCII code for 100,000's digit ASCII code for 1,000,000's digit
For example, when [ +1, ] stores "-12,345,678", the conversion result is stored in and later as follows:

a) "sign data" (low-order byte of ) "20H (space)" is set when the 32-bit binary data stored in [ +1,
] is positive, and "2DH (-)" is set when 32-bit binary data stored in [ +1, ] is negative. b) "20H (space)" is stored for "0" on the left side of the effective digits (zero suppression).

0 0 1 2 0 3 4 5 6 0
c) The high-order byte of +5 is set as follows depending on the ON/OFF status of M8091.
M8091=OFF The high-order byte of +5 is set to "00H (NULL)".
M8091=ON The high-order byte of +5 is set to "20H (space)".

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
29 Data Table Operation – FNC250 to FNC269
FNC160-FNC169 Real Time Clock Control
- When M8091 is OFF, +3 is set to "0000H (NULL)".
M8091 Output character quantity selector signal
- When M8091 is ON, +3 does not change. • For 32-bit operation
- When M8091 is OFF, the high-order byte of +5 is set to "00H (NULL)".
- When M8091 is ON, the high-order byte of +5 is set to "20H (space)".
ASCI (FNC 82) Converts hexadecimal values into ASCII code.
HEX (FNC 83) Converts ASCII code into hexadecimal values.
STR (FNC200) Converts binary data into a character string (ASCII code).
VAL (FNC201) Converts a character string (ASCII code) into binary data.
DABIN (FNC260) Converts numeric data expressed in decimal ASCII code (30H to 39H) into binary data.
1. Occupied device points
The table below shows the occupied device points of for 16-bit operation(BINDA/BINDAP) when M8091 is ON/ OFF and 32-bit operation (DBINDA/DBINDAP).
16-bit operation M8091=ON 3
FNC190-FNC199 Block Data Operation
An operation error is caused in the following case; The error flag M8067 turns ON, and the error code is stored in D8067.
FNC200-FNC209 Character String Control
In the program below, 16-bit binary data stored in D1000 is converted into decimal ASCII codes when X000 is set to ON, and the ASCII codes converted by the PR (FNC 77) instruction are output one by one by the time division method to Y040 to Y051. By turning to OFF the output character selector signal M8091 and setting to ON PR mode flag M8027, ASCII codes up to "00H" are output.
FNC210-FNC219 Data Operation 3
→ For PR mode flag and the PR (FNC 77) instruction, refer to Section 15.8.
M8027 SET
FNC261 BINDAP D1000 D0
PR D0 Y040
FNC250-FNC269 Data Table Operation
b15 b8 b7 b0
20H(space) 31H(1) 20H(space) 35H(5)
D1 D2
36H(6) 32H(2)
0000H D3
output.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
29 Data Table Operation – FNC250 to FNC269
29.7 FNC269 – SCL2 / Scaling 2 (Coordinate by X/Y Data)
This instruction executes scaling of the input value using a specified data table, and outputs the result. SCL (FNC259) is also available with a different data table configuration for scaling. SCL2 instruction is supported in the FX3UC Series Ver. 1.30 or later.
→ For SCL (FNC259) instruction, refer to Section 29.4.


Input value used in scaling or device number storing the input value
16- or 32-bit binary Head device number storing the conversion table used in scaling
Device number storing the output value controlled by scaling

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
1. 16-bit operation (SCL2 and SCL2P)
The input value specified in is processed by scaling for the specified conversion characteristics, and stored to a
device number specified in . Conversion for scaling is executed based on the data table stored in a device
specified in and later. If the output data is not an integer, however, the number in the first decimal place is rounded.
→ For the method to set the conversion table for scaling, refer to the next page.

Number of coordinate points (“5” in the case shown in the left figure)

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
29 Data Table Operation – FNC250 to FNC269
FNC160-FNC169 Real Time Clock Control
The input value specified in [ +1, ] is processed by scaling for the specified conversion characteristics,
and stored to a device number specified in [ +1, ]. Conversion for scaling is executed based on the data
table stored in a device specified in [ +1, ] and later. If the output data is not an integer, however, the number in the first decimal place is rounded.
Conversion setting data table for scaling
Set item Device assignment in
DSCL2
Number of coordinate points (“5” in the case shown in the left figure)
Y
Point 1 [ +3, +2]
Point 2 [ +5, +4]
value ( ) D
Point 3 [ +7, +6]
Point 4 Point 1
Point 4 [ +9, +8]
Point 5 [ +11, +10]
Input value ( ) S1
Point 1 [ +13, +12]
Operation error Operation is enabled.
Point 2 [ +15, +14]
Point 3 [ +17, +16]
Point 4 [ +19, +18]
Point 5 [ +21, +20]
3. Setting the conversion table for scaling
FNC190-FNC199 Block Data Operation
The conversion table for scaling is set based on the data table stored in a device specified in [ +1, ] and later. The data table has the following configuration:
→ For a setting example, refer to the next page.
Device assignment in setting data table
16-bit operation 32-bit operation
FNC200-FNC209 Character String Control
Number of coordinate points [ +1, ]
Point 1 +1 [ +3, +2]
Point 2 +2 [ +5, +4]
Point n (last) +n [ +2n+1, +2n]
FNC210-FNC219 Data Operation 3
Point 1 +n+1 [ +2n+3, +2n+2]
Point 2 +n+2 [ +2n+5, +2n+4]
Point n (last) +2n [ +4n+1, +4n]
Setting example of the conversion table for scaling A setting example for the 16-bit operation is shown below. For the 32-bit operation, set each item using 32-bit binary value. In the case of the conversion characteristics for scaling shown in the figure below, set the following data table.
FNC250-FNC269 Data Table Operation
Point 7 (250,90) Point 8(350,90)
Point 9 (350,30) Point 10(400,7)

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
29 Data Table Operation – FNC250 to FNC269
29.7 FNC269 – SCL2 / Scaling 2 (Coordinate by X/Y Data)

*1. When coordinates are specified using three points as shown in the points 4, 5 and 6, the output value can be set to an intermediate value. In this example, the output value (intermediate value) is specified by the Y coordinate of the point 5. If the X coordinate is same at three points or more, the value at the second point is output also.
*2. When coordinates are specified using two points as shown in the points 8 and 9, the output value is the Y coordinate at the next point. In this example, the output value is specified by the Y coordinate of the point 9.
An operation error is caused in the following cases; The error flag M8067 turns ON, and the error code is stored in D8067.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
29 Data Table Operation – FNC250 to FNC269

In the program example shown below, the value input to D0 is processed by scaling based on the conversion table for scaling set in R0 and later, and output to D10.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
30 External Device Communication – FNC270 to FNC276
FNC270 to FNC276 provide instructions for executing inverter communication and MODBUS communication.


FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
30 External Device Communication – FNC270 to FNC276
30.1 FNC270 – IVCK / Inverter Status Check
FNC160-FNC169 Real Time Clock Control
This instruction reads the operation status of an inverter to a PLC using the computer link operation function of the inverter. Applicable inverters vary depending on the version. This instruction corresponds to the EXTR (K10) instruction in the FX2N/FX2NC Series.
→ For detailed explanation of the instruction, refer to the Data Communication Edition manual.
Mnemonic Operation Condition 16-bit Instruction
2. Set data
Operand Type Description Data Type
Inverter station number (K0 to K31)
16-bit binary Inverter instruction code (shown on the next page)
Device number storing the read value
n Channel to be used (K1: ch 1, K2: ch 2)*1
*1. Ch2 is not available in FX3G PLC (14-point and 24-point type) and FX3S PLC.
FNC190-FNC199 Block Data Operation
Bit Devices Word Devices Others
System User Digit Specification System User Special
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
FNC200-FNC209 Character String Control
3 S 1 S 2 3 3 3
3 S1 S2 3
S1: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S2: This function is supported only in FX3U/FX3UC PLCs.
FNC210-FNC219 Data Operation 3
→ For detailed explanation of the instruction, refer to the Data Communication Edition manual.
The operation status corresponding to the instruction code*2 specified in of an inverter connected to
communication port n whose station number is specified in is read and transferred to .
S 1 S 2 D
FNC250-FNC269 Data Table Operation
*2. Refer to the instruction code list shown on the next page. Refer to the pages in the inverter manual on which the computer link function is explained in detail.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
30 External Device Communication – FNC270 to FNC276
30.1 FNC270 – IVCK / Inverter Status Check
Inverter Instruction code (hexadecimal)
F700 A700 E700 D700 V500 F500 A500 E500 S500
H7B Operation mode 3
H6F Output frequency (speed) 3*1 3
H70 Output current 3
H71 Output voltage 3 –
H72 Special monitor 3 – –
H73 Special monitor selection No. 3 – –
H74 Alarm definition 3
H75 Alarm definition 3
H76 Alarm definition 3 –
H77 Alarm definition 3 –
H79 Inverter status monitor (expansion) 3 –
H7A Inverter status monitor 3
H6E Set frequency (EEPROM) 3*1 3
H6D Set frequency (RAM) 3*1 3
H7F Link parameter extended setting These codes cannot be specified in of the IVCK instruction. They are automatically processed when a "second parameter specification code" is specified the IVRD instruction. H6C Second parameter changing
*1. Please write "0" to instruction code HFF (Link parameter expansion setting) just before the IVCK instruction when reading frequency. When "0" is not written, reading of the frequency may not be executed normally.
Number Description Number Description ch1 ch2 ch1 ch2
M8029 Instruction execution complete D8063 D8438 Error code of serial communication error*2
M8063 M8438 Serial communication error*2 D8150 D8155 Response wait time in inverter communication*2
M8151 M8156 Inverter communicating D8151 D8156 Step number in inverter communication*4
M8152 M8157 Inverter communication error*3 D8152 D8157 Error code of inverter communication error*3
M8153 M8158 Inverter communication error latch*3 D8153 D8158 Latch of inverter communication error occurrence
M8154 M8159 IVBWR instruction error*3 D8154 D8159 IVBWR instruction error parameter number*3*4
*2. Cleared when PLC power supply is turned from OFF to ON. *3. Cleared when the PLC mode switches from STOP to RUN. *4. Initial value: -1
The table below shows PLC versions applicable to each inverter.

FX3U Ver. 2.20 or later Ver. 2.32 or later
FX3UC Ver. 1.00 or later Ver. 2.20 or later Ver. 2.32 or later
Applicable inverter · Read contents · step*3*4

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
30 External Device Communication – FNC270 to FNC276
30.2 FNC271 – IVDR / Inverter Drive
FNC160-FNC169 Real Time Clock Control
This instruction writes a inverter operation required control value to an inverter using the computer link operation function of the inverter. This instruction corresponds to the EXTR (K11) instruction in the FX2N/FX2NC Series.
→ For detailed explanation of the instruction, refer to the Data Communication Edition manual.
Mnemonic Operation Condition 16-bit Instruction
2. Set data
Operand Type Description Data Type
Inverter station number (K0 to K31)
16-bit binary Inverter instruction code (shown on the next page)
Set value to be written to the inverter parameter or device number storing the data to be set
n Channel to be used (K1: ch 1, K2: ch 2)*1
*1. Ch2 is not available in FX3G PLC (14-point and 24-point type) and FX3S PLC.
FNC190-FNC199 Block Data Operation
Bit Devices Word Devices Others
System User Digit Specification System User Special
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
FNC200-FNC209 Character String Control
3 S 1 S 2 3 3 3
3 S1 S2 3
S1: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S2: This function is supported only in FX3U/FX3UC PLCs.
FNC210-FNC219 Data Operation 3
→ For detailed explanation of the instruction, refer to the Data Communication Edition manual.
The control value specified in is written to the instruction code*2 specified in of an inverter connected to
a communication port n whose station number is specified in .
IVDR S1 S2 S3 n
FNC250-FNC269 Data Table Operation
*2. Refer to the instruction code list shown on the next page. Refer to the pages in the inverter manual on which the computer link function is explained in detail.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
30 External Device Communication – FNC270 to FNC276
30.2 FNC271 – IVDR / Inverter Drive
The table below shows inverter instruction codes which can be specified in . For instruction codes, refer to the pages explaining computer link in detail in each inverter manual.

F700 A700 E700 D700 V500 F500 A500 E500 S500
HFB Operation mode 3
HF3 Special monitor selection number 3 – –
HF9 Run command (expansion) 3 –
HFA Run command 3
HEE Set frequency (EEPROM) 3*3
HED Set frequency (RAM) 3*3
HFD*1 Inverter reset*2 3
HF4 Alarm definition batch clear 3 – 3
HFC Parameter all clear 3
HFC User clear – 3 3 – –
HFF Link parameter extended setting 3
*1. The instruction code "HFD (inverter reset)" does not request a response from the inverter. Accordingly, even if inverter reset is executed to a station number at which an inverter is not connected, error does not occur. It takes about 2.2 seconds to complete execution of inverter reset.
*2. When resetting the inverter, please specify H9696 as the operand of the IVDR instruction. Do not use H9966. *3. Please write "0" to instruction code HFF (Link parameter expansion setting) just before the IVDR instruction when writing frequency. When "0" is not written, writing of the frequency may not be executed normally.
Number Description Number Description ch1 ch2 ch1 ch2
M8029 Instruction execution complete D8063 D8438 Error code of serial communication error*4
M8063 M8438 Serial communication error*4 D8150 D8155 Response wait time in inverter communication*4
M8151 M8156 Inverter communicating D8151 D8156 Step number in inverter communication*6
M8152 M8157 Inverter communication error*5 D8152 D8157 Error code of inverter communication error*5
M8153 M8158 Inverter communication error latch*5 D8153 D8158 Latch of inverter communication error occurrence
M8154 M8159 IVBWR instruction error*5 D8154 D8159 IVBWR instruction error parameter number*5*6
*4. Cleared when PLC power supply is turned from OFF to ON. *5. Cleared when the PLC mode switches from STOP to RUN. *6. Initial value: -1
The table below shows PLC versions applicable to each inverter.

FX3U Ver. 2.20 or later Ver. 2.32 or later
FX3UC Ver. 1.00 or later Ver. 2.20 or later Ver. 2.32 or later
step*5*6

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
30 External Device Communication – FNC270 to FNC276
30.3 FNC272 – IVRD / Inverter Parameter Read
FNC160-FNC169 Real Time Clock Control
This instruction reads an inverter parameter to the PLC using the computer link operation function of the inverter. This instruction corresponds to the EXTR (K12) instruction in the FX2N/FX2NC Series.
→ For detailed explanation of the instruction, refer to the Data Communication Edition manual.
Mnemonic Operation Condition 16-bit Instruction
2. Set data
Operand Type Description Data Type
Inverter station number (K0 to K31)
16-bit binary Inverter parameter number
Device number storing the read value
n Channel to be used (K1: ch 1, K2: ch 2)*1
*1. Ch2 is not available in FX3G PLC (14-point and 24-point type) and FX3S PLC.
FNC190-FNC199 Block Data Operation
Bit Devices Word Devices Others
System User Digit Specification System User Special
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
FNC200-FNC209 Character String Control
3 S 1 S 2 3
S1: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S2: This function is supported only in FX3U/FX3UC PLCs.
FNC210-FNC219 Data Operation 3
→ For detailed explanation of the instruction, refer to the Data Communication Edition manual.
The value of the parameter is read from an inverter connected to a communication port n whose station
number is , and output to .
IVRD S1 S2 D n
FNC250-FNC269 Data Table Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
30 External Device Communication – FNC270 to FNC276
30.3 FNC272 – IVRD / Inverter Parameter Read
Description ch1 ch2 ch1 ch2
M8029 Instruction execution complete D8063 D8438 Error code of serial communication error*1
M8063 M8438 Serial communication error *1 D8150 D8155 Response wait time in inverter communication*1
M8151 M8156 Inverter communicating D8151 D8156 Step number in inverter communication*3
M8152 M8157 Inverter communication error*2 D8152 D8157 Error code of inverter communication error*2
M8153 M8158 Inverter communication error latch*2 D8153 D8158 Latch of inverter communication error occurrence
M8154 M8159 IVBWR instruction error*2 D8154 D8159 IVBWR instruction error parameter number*2*3
*1. Cleared when PLC power supply is turned from OFF to ON.
*2. Cleared when the PLC mode switches from STOP to RUN.
→ For other cautions, refer to the Data Communication Edition manual.
The table below shows PLC versions applicable to each inverter.
FX3S Ver. 1.00 or later
FX3G Ver. 1.10 or later
FX3GC Ver. 1.40 or later
FX3U Ver. 2.20 or later Ver. 2.32 or later
FX3UC Ver. 1.00 or later Ver. 2.20 or later Ver. 2.32 or later

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
30 External Device Communication – FNC270 to FNC276
30.4 FNC273 – IVWR / Inverter Parameter Write
FNC160-FNC169 Real Time Clock Control
This instruction writes an inverter parameter of an inverter using the computer link operation function of the inverter. This instruction corresponds to the EXTR (K13) instruction in the FX2N/FX2NC Series.
→ For detailed explanation of the instruction, refer to the Data Communication Edition manual.
Mnemonic Operation Condition 16-bit Instruction
2. Set data
Operand Type Description Data Type
Inverter station number (K0 to K31)
16-bit binary Inverter parameter number
Set value to be written to the inverter parameter or device number storing the data to be set
n Channel to be used (K1: ch 1, K2: ch 2)*1
*1. Ch2 is not available in FX3G PLC (14-point and 24-point type) and FX3S PLC.
FNC190-FNC199 Block Data Operation
Bit Devices Word Devices Others
System User Digit Specification System User Special
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
FNC200-FNC209 Character String Control
3 S 1 S 2 3 3 3
S1: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S2: This function is supported only in FX3U/FX3UC PLCs.
FNC210-FNC219 Data Operation 3
→ For detailed explanation of the instruction, refer to the Data Communication Edition manual.
A value specified in is written to a parameter in an inverter connected to a communication port n whose
station number is .
IVWR S1 S2 S3 n
FNC250-FNC269 Data Table Operation

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
30 External Device Communication – FNC270 to FNC276
30.4 FNC273 – IVWR / Inverter Parameter Write
Number Description Number Description ch1 ch2 ch1 ch2
M8029 Instruction execution complete D8063 D8438 Error code of serial communication error*1
M8063 M8438 Serial communication error*1 D8150 D8155 Response wait time in inverter communication*1
M8151 M8156 Inverter communicating D8151 D8156 Step number in inverter communication*3
M8152 M8157 Inverter communication error*2 D8152 D8157 Error code of inverter communication error*2
M8153 M8158 Inverter communication error latch*2 D8153 D8158 Latch of inverter communication error occurrence
M8154 M8159 IVBWR instruction error*2 D8154 D8159 IVBWR instruction error parameter number*2*3
*1. Cleared when PLC power supply is turned from OFF to ON. *2. Cleared when the PLC mode switches from STOP to RUN. *3. Initial value: -1
communication up to 3 times*4. Accordingly, note that the number of times of password reset error displayed in accordance with the setting of Pr297 may not agree with the actual number of times of password input error as described below when a
password reset error occurs in the D700 Series in which "display of the number of times of password reset error"*5
is made valid using Pr297. Do not execute automatic retry (re-driving of an inverter instruction) using a sequence program when writing data to Pr297.
Cases in which a password reset error occurs in an inverter communication instruction, and the actual number of times of reset error in such cases.
- When a wrong password is written to Pr297 due to a password input error When the writing instruction is executed once, a password reset error occurs 3 times. - When the password cannot be written correctly to Pr297 due to noise, etc. A password reset error occurs up to 3 times.
password to Pr297, read Pr297, and then confirm that registration of the password is completed normally*6. If writing of the password to Pr297 is not completed normally due to noise, etc., the FX PLC automatically retries writing, and the registered password may be reset by the retry.
*4. The FX PLC executes the first communication, and then retries communication twice (3 time in total).
*5. When "display of the number of times of password reset error" is made valid in the D700 Series using Pr297 and when a password reset error occurs 5 times, the "reading/writing restriction" cannot be reset even if the right password is input. For recovery from this status, it is necessary to all-clear all parameters in the D700 Series.
*6. When the value given as a result of reading Pr297 is "0" to "4", registration of the password is completed normally.
The table below shows PLC versions applicable to each inverter.
FX3S Ver. 1.00 or later
FX3G Ver. 1.10 or later
FX3GC Ver. 1.40 or later
FX3U Ver. 2.20 or later Ver. 2.32 or later
FX3UC Ver. 1.00 or later Ver. 2.20 or later Ver. 2.32 or later
step*2*3

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
30 External Device Communication – FNC270 to FNC276
30.5 FNC274 – IVBWR / Inverter Parameter Block Write
FNC160-FNC169 Real Time Clock Control
This instruction writes parameters of an inverter at one time using the computer link operation function of the inverter.
→ For detailed explanation of the instruction, refer to the Data Communication Edition manual.
Mnemonic Operation Condition 16-bit Instruction
2. Set data
Operand Type Description Data Type
Station number of an inverter (K0 to K31)
16-bit binary Number of parameters in an inverter to be written at one time
Head device number of a parameter table to be written to an inverter
Bit Devices Word Devices Others
System User Digit Specification System User Special
FNC190-FNC199 Block Data Operation
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
FNC200-FNC209 Character String Control
→ For detailed explanation of the instruction, refer to the Data Communication Edition manual.
A data table*1 (parameter numbers and set values) specified in and is written to an inverter connected to
FNC210-FNC219 Data Operation 3
a communication port n whose station number is all at once.
IVBWR S1 S2 S3 n
*1. The table below shows the data table format.
: Number of parameters to be written
: Head device number of data table
Device Parameter numbers to be written and set values
1st parameter Parameter number
2nd parameter Parameter number
FNC250-FNC269 Data Table Operation
S 2 S 3 S 2
+2 -3 Set value
S 2 S 3 S 2
+2 -1 Set value

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
30 External Device Communication – FNC270 to FNC276
30.5 FNC274 – IVBWR / Inverter Parameter Block Write
Description ch1 ch2 ch1 ch2
M8029 Instruction execution complete D8063 D8438 Error code of serial communication error*1
M8063 M8438 Serial communication error*1 D8150 D8155 Response wait time in inverter communication*1
M8151 M8156 Inverter communicating D8151 D8156 Step number in inverter communication*3
M8152 M8157 Inverter communication error*2 D8152 D8157 Error code of inverter communication error*2
M8153 M8158 Inverter communication error latch*2 D8153 D8158 Latch of inverter communication error occurrence
M8154 M8159 IVBWR instruction error*2 D8154 D8159 IVBWR instruction error parameter number*2*3
*1. Cleared when PLC power supply is turned from OFF to ON.
*2. Cleared when the PLC mode switches from STOP to RUN.
→ For other cautions, refer to the Data Communication Edition manual.
The table below shows PLC versions applicable to each inverter.
FX3U Ver. 2.20 or later Ver. 2.32 or later
FX3UC Ver. 1.00 or later Ver. 2.20 or later Ver. 2.32 or later

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
30 External Device Communication – FNC270 to FNC276
30.6 FNC275 – IVMC / Inverter Multi Command
FNC160-FNC169 Real Time Clock Control
This instruction writes 2 types of settings (operation command and set frequency) to the inverter, and reads 2 types of data (inverter status monitor, output frequency, etc.) from the inverter at the same time.
→ For detailed explanation of the instruction, refer to the Data Communication Edition manual.
Mnemonic Operation Condition 32-bit Instruction Mnemonic Operation Condition
11 steps IVMC Continuous Operation
Operand Type Description Data Type
Inverter station number (K0 to K31)
Head device which stores data to be written to the inverter (Occupies 2 points.)
Head device which stores values to be read from the inverter (Occupies 2 points.)
n Channel to be used (K1: ch1, K2: ch2)*1
*1. Ch2 is not available in FX3G PLC (14-point and 24-point type) and FX3S PLC.
Bit Devices Word Devices Others
FNC190-FNC199 Block Data Operation
System User Digit Specification System User Special
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 S 1 S 2 3 3 3
FNC200-FNC209 Character String Control
3 S 1 S 2 3
S1: This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. S2: This function is supported only in FX3U/FX3UC PLCs.
FNC210-FNC219 Data Operation 3
→ For detailed explanation of the instruction, refer to the Data Communication Edition manual.
number is specified in . Specify the send/receive data type using , the head device which stores data to
be written to the inverter using , and the head device which stores values to be read from the inverter using .
IVMC S1 S2 S3 n D
FNC250-FNC269 Data Table Operation
Send data (Write contents to Inverter)
Receive data (Read contents from Inverter)
Data 1 ( ) Data 2 ( +1) Data 1 ( ) Data 2 ( +1)
H0000
H0010 Set frequency (RAM, EEPROM)

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
30 External Device Communication – FNC270 to FNC276
30.6 FNC275 – IVMC / Inverter Multi Command
Description ch1 ch2 ch1 ch2
M8029 Instruction execution complete D8063 D8438 Error code of serial communication error*1
M8063 M8438 Serial communication error*1 D8150 D8155 Response wait time in inverter communication*1
M8151 M8156 Inverter communicating D8151 D8156 Step number in inverter communication*3
M8152 M8157 Inverter communication error*2 D8152 D8157 Error code of inverter communication error*2
M8153 M8158 Inverter communication error latch*2 D8153 D8158 Latch of inverter communication error occurrence step*2*3
M8154 M8159 Inverter instruction error*2 D8154 D8159 IVBWR instruction error parameter number*2*3
*1. Cleared when PLC power supply is turned from OFF to ON.
*2. Cleared when the PLC mode switches from STOP to RUN.
→ For other cautions, refer to the Data Communication Edition manual.
is not stored in . However, values set in and +1 may be written to the inverter.
of and +1 may be updated.
This instruction is applicable to the following inverters:
→ For details, refer to the respective inverter manual
This instruction is applicable to the following programming tools:
Product name Model name Compatible Versions Remarks
GX Works2 SWDNC-GXW2-E Ver. 1.492N or later - FX-30P Ver. 1.50 or later
Product name Model name Compatible Versions Remarks
GX Works2 SWDNC-GXW2-E Ver. 1.62Q or later - FX-30P Ver. 1.50 or later
Product name Model name Compatible Versions Remarks
GX Works2 SWDNC-GXW2-E Ver. 1.77F or later - FX-30P Ver. 1.50 or later

GX Works2 SWDNC-GXW2-E Ver. 1.48A or later - FX-30P Ver. 1.20 or later
Number · Number · Description

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
30 External Device Communication – FNC270 to FNC276
30.7 FNC276 - MODBUS Read/Write Instruction
FNC160-FNC169 Real Time Clock Control
This instruction allows the MODBUS Master to communicate (read/write data) with its associated Slaves.
→ For explanation of the instruction, refer to the MODBUS Communication Edition.
Mnemonic Operation Condition 32-bit Instruction Mnemonic Operation Condition
11 steps ADPRW Continuous Operation
Slave Node Address (K0 to K32) 16-bit binary
Command Code 16-bit binary
Command Parameter depending on the Command Code (See Subsection 30.7.1) 16-bit binary
Command Parameter depending on the Command Code (See Subsection 30.7.1) 16-bit binary
/ Command Parameter depending on the Command Code (See Subsection 30.7.1) Bit or 16-bit binary
3. Applicable Devices
FNC190-FNC199 Block Data Operation
System User Digit Specification System User Special
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
S 1 S 2 3 3 3
FNC200-FNC209 Character String Control
S 1 S 2 3 3 3
/ 3 3 S1 3 S1 S2 3 3 3
S1: Except special auxiliary relay (M) and special data register (D). S2: Only available for FX3G/FX3GC/FX3U/FX3UC PLCs.
FNC210-FNC219 Data Operation 3
1. 16-bit operation (ADPRW)
Command Code is operated on Slave Node according to Parameters , , and / . Use 0 as the Slave Node Address for Broadcast commands.
S1 S S2 S3 S4 D
input FNC276 ADPRW S
S1 S2 S3 S4 D
FNC250-FNC269 Data Table Operation
Command Parameters depending on the Command Code
Slave Node Address K0 to K32 (00H to 20H)

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
30 External Device Communication – FNC270 to FNC276
30.7 FNC276 - MODBUS Read/Write Instruction
The following table shows the required command parameters for each command code.

S1 S2 S3 S4 D
7H Read Exception State (Available only in FX3U and FX3UC PLCs.)
8H Diagnosis (Available only in FX3U and FX3UC PLCs.)
Sub-function Data (ASCII Mode End of Message Character): 00H~FFH

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
30 External Device Communication – FNC270 to FNC276

/ S1 S2 S3 S4 D
(Available only in FX3U and FX3UC PLCs.)
(Available only in FX3U and FX3UC PLCs.)
CH Get Comm. Event Log (Available only in FX3U and FX3UC PLCs.)

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
30 External Device Communication – FNC270 to FNC276
30.7 FNC276 - MODBUS Read/Write Instruction

/ S1 S2 S3 S4 D
11H Report Slave ID (Available only in FX3U and FX3UC PLCs.)
16H Mask Write Register (Available only in FX3U and FX3UC PLCs.)
17H Read/Write Multiple Registers (Available only in FX3U and FX3UC PLCs.)
*1. This calculation formula is applicable when the applicable device is D or R.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
31 Data Transfer 3 – FNC277 to FNC279

FNC277 to FNC279 provide instructions for executing more complicated processing for fundamental applied instructions and for special processing.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
31 Data Transfer 3 – FNC277 to FNC279
31.1 FNC278 – RBFM / Divided BFM Read
This instruction reads data from continuous buffer memories (BFM) in a special function unit/block over several operation cycles by the time division method. This instruction is convenient for reading receive data, etc. stored in buffer memories in a special function unit/block for communication by the time division method. FROM (FNC 78) instruction is also available to read the buffer memory (BFM) data.
→ For FROM (FNC 78) instruction, refer to Section 15.9.
Mnemonic Operation Condition 32-bit Instruction
Continuous Operation −
2. Set data

m2 Head buffer memory (BFM) number [0 to 32766]
Head device number storing data to be read from buffer memory (BFM)
n1 Number of all buffer memories (BFM) to be read [1 to 32767]
n2 Number of points transferred in one operation cycle [1 to 32767]

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
1. 16-bit operation (RBFM)
"n1" buffer memory (BFM) units at location # "m2" in special function unit/block No. "m1" are read to in the PLC. While transferring, "n1" is divided by "n2" so n1/n2 buffer memories (rounded up when there is a remainder) are transferred per scan time.
→ For the unit No., buffer memory (BFM) #, cautions, and program example,
refer to Subsection 31.1.1.

*1 "n2" buffer memories are read in each operation cycle. Reading is executed in "n1/n2" times. ("n1/n2" is rounded up if it is not an integer.)
16-bit Instruction · Mnemonic Operation Condition · 11 steps RBFM

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
31 Data Transfer 3 – FNC277 to FNC279
FNC277-FNC279 Data Transfer 3
→ For the flag use methods for instruction execution complete and instruction execution
abnormally complete, refer to Subsection 6.5.2.
M8029 Instruction execution complete Turns ON when an instruction is finished normally.
M8328 Instruction non-execution Turns ON when RBFM (FNC278) or WBFM (FNC279) instruction in another step is executed for the same unit number.
FNC280-FNC289 High-Speed Processing 2
M8329 Instruction execution abnormally complete Turns ON when an instruction is finished abnormally.
FROM (FNC 78) Read from a special function block
FNC290-FNC299 Extension File Register Control
TO (FNC 79) Write to a special function block
WBFM (FNC279) Divided BFM write
An operation error is caused in the following case; The error flag M8067 turns ON, and the error code is stored in D8067.
Specification of unit number of special function unit/block and buffer memory
→ For the connection method of special function units/blocks, number of connectable units/blocks,
and handling of I/O numbers, refer to the manual of the PLC used and special function unit/block.
Unit No. 0
Unit No. 1
Unit No. 2
Unit No. 3
FX3UC- 32MT-LT (-2) main unit
A unit number is automatically assigned to each special function unit/block connected to the PLC. The unit number is assigned in the way "No. 0 → No. 1 → No. 2 ..." starting from the equipment nearest the main unit. When the main unit is the FX3UC-32MT-LT(-2), the unit number is assigned in the way "No. 1 → No. 2 → No. 3 ..." starting from the equipment nearest to the main unit because the CC-Link/LT master is built into the FX3UC-32MT-LT (-2).
→ For the contents of buffer memories, refer to the manual of the special function unit/block used.
B

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
31 Data Transfer 3 – FNC277 to FNC279
31.1 FNC278 – RBFM / Divided BFM Read

Watchdog timer refresh When WDT (FNC 07) instruction is not programmed, the value of D8000 becomes valid during END processing.
- Change the number of transferred points "n2" in each operation cycle Change the number of transferred points "n2" in each operation cycle to a smaller value.

execution of the instruction is completed, execute another instruction for "n1" devices starting from .

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
31 Data Transfer 3 – FNC277 to FNC279
FNC277-FNC279 Data Transfer 3
In the example shown below, data is read from and written to the buffer memories (BFM) in the unit No. 2 as follows:
FNC280-FNC289 High-Speed Processing 2
SET M0 The BFM write start flag is set to ON.
D100 to D179 (80 points) are written to the buffer memories #1001 to 1080 in the unit No. 2 (in 5 operation cycles).
WBFM K2 K1001 D100 K80 K16
BFM write start M8029
FNC290-FNC299 Extension File Register Control
The BFM write start flag is set to OFF.
Execution of the WBFM instruction is waited.
FNC300-FNC305 FX 3U -CF-ADP
RST M0
The BFM write start flag is set to OFF.
Instruction execution abnormally complete
SET M5 BFM read start
The BFM read start flag is set to ON.
The buffer memories #2001 to 2080 (80 points) in the unit No. 2 are read to D200 to D279 (in 5 operation cycles).
BFM read start M8029
The BFM read start flag is set to OFF.
Execution of the RBFM instruction is waited.
RST M5
The BFM read start flag is set to OFF.
Instruction execution abnormally complete
A
B

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
31 Data Transfer 3 – FNC277 to FNC279
31.2 FNC279 – WBFM / Divided BFM Write
This instruction writes data to continuous buffer memories (BFM) in a special function unit/block over several operation cycles by the time division method. This instruction is convenient for writing send data, etc. to buffer memories in a special function unit/block for communication by the time division method. TO (FNC 79) instruction is also available for writing data to the buffer memory (BFM).
→ For TO (FNC 79) instruction, refer to Section 15.10.
Mnemonic Operation Condition 32-bit Instruction
Continuous Operation −
2. Set data

m2 Head buffer memory (BFM) number [0 to 32766]
Head device number storing data to be written to buffer memory (BFM)
n1 Number of all buffer memories (BFM) to be written [1 to 32767]
n2 Number of points transferred in one operation cycle [1 to 32767]

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
1. 16-bit operation (WBFM)
"n1" word units from in the PLC are written to buffer memory (BFM) location # "m2" in special function unit/ block No. "m1". While transferring, "n1" is divided by "n2" so n1/n2 words (rounded up when there is a remainder) are transferred per scan time.
→ For the unit No., buffer memory (BFM) No., cautions, and program example,
refer to Subsection 31.1.1.

*1 "n2" points are written in each operation cycle. Writing is executed in "n1/n2" transfers. ("n1/n2" is rounded up if it is not an integer.)
16-bit Instruction · Mnemonic Operation Condition · 11 steps WBFM

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
31 Data Transfer 3 – FNC277 to FNC279
FNC277-FNC279 Data Transfer 3
→ For the flag use methods for instruction execution complete and instruction execution
abnormally complete, refer to Subsection 6.5.2.
M8029 Instruction execution complete Turns ON when an instruction is finished normally.
M8328 Instruction non-execution Turns ON when the RBFM (FNC278) or WBFM (FNC279) instruction in another step is executed for the same unit number.
FNC280-FNC289 High-Speed Processing 2
M8329 Instruction execution abnormally complete Turns ON when an instruction is finished abnormally.
FROM (FNC 78) Read from a special function block
FNC290-FNC299 Extension File Register Control
TO (FNC 79) Write to a special function block
RBFM (FNC278) Divided BFM read
An operation error is caused in the following case; The error flag M8067 turns ON, and the error code is stored in D8067.
B

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
32 High-Speed Processing 2 – FNC280 to FNC289
FNC No. Mnemonic Symbol Function Reference
280 HSCT High-Speed Counter Compare With Data Table Section 32.1
n HSCT D S2 m S1

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
32 High-Speed Processing 2 – FNC280 to FNC289
32.1 FNC280 – HSCT / High-Speed Counter Compare With Data Table
FNC277-FNC279 Data Transfer 3
This instruction compares the current value of a high-speed counter with a data table of comparison points, and then sets or resets up to 16 output devices.
FNC280-FNC289 High-Speed Processing 2
Mnemonic Operation Condition 16-bit Instruction
FNC290-FNC299 Extension File Register Control
Operand Type Description Data Type
Head device number storing the data table 16- or 32-bit binary
m Number of comparison points in data table [1≤m≤128] 16-bit binary
High-speed counter number (C235 to C255) 32-bit binary
Head device number to which the operation status is output Bit
n Number of devices to which the operation status is output [1≤n≤16] 16-bit binary
Bit Devices Word Devices Others
System User Digit Specification System User Special
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
Only a high-speed counter C235 to C255 can be specified in "S".
1. 32-bit operation (DHSCT)
The current value of a high-speed counter specified in is compared with the data table shown below which has
(3±m) points stored in and later, and the operation output set value (ON or OFF) specified in the data table is
output to to +n-1.
DHSCT S1 m D n S2
A
Comparison point number Comparison value Operation output set value
(SET [1] or RESET [0]) Operation output destination
1 +4, +3 +5
2 +7 +6 +8
D D
B
m-2 +3m-5, +3m-6 +3m-4
m-1 +3m-2, +3m-3 +3m-1

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
32 High-Speed Processing 2 – FNC280 to FNC289
32.1 FNC280 – HSCT / High-Speed Counter Compare With Data Table
![Mitsubishi Electronics MELSEC FX3S — Operation output setting (SET [1] or RESET [0]) [Up to 16 points] diagram (page 712)](/cdn/reader/06/06b6c5c8bfa3e981e964d8ed7432322fb86c682a85757d292a29f9cec2d4294a/images/fig-712-1.webp)
Operation output setting 1 0 1 0 0 1 1 1 0 0 0 1 0 1 1 0
Operation output setting = HA716 When the current value of the high-speed counter becomes equivalent to the comparison value, the operation output setting pattern is output. In the case of " = Y000, n = K10"
to +n-1.
If an output (Y) is specified in , the output processing is executed immediately without waiting for the output refresh executed by the END instruction. When specifying an output (Y), make sure that the least significant digit of the device number is “0”. Examples: Y000, Y010 and Y020

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
32 High-Speed Processing 2 – FNC280 to FNC289
FNC277-FNC279 Data Transfer 3
DHSCT D200 K5 C235 Y010 K3
FNC 54 DHSCR C235 C235 M8000
K900
FNC280-FNC289 High-Speed Processing 2
Comparison data SET/RESET pattern
Table counter D8138 Device Comparison
value Device Operation output
1 D204,D203 K432 D205 H0007 1 ↓
2 D207,D206 K543 D208 H0002 2 ↓
FNC290-FNC299 Extension File Register Control
4 D213,D212 K800 D214 H0003 4↓ (Repeated from “0↓”)
OFF ON
Y010
OFF *1
ON
Because DHSCT instruction is not executed, the operation outputs are not changed by this instruction.
OFF *1
ON
Y012
OFF *1
ON
1 2 3 4
0 1 2 3
ON OFF
*1. If this instruction is not executed, no processing is executed for outputs. In the operation example shown above, the command contact is “OFF”.
A
M8138 HSCT (FNC280) instruction execution complete flag Turns ON when the operation for the final table No. "m-1" is completed.
D8138 HSCT (FNC280) table counter Stores the comparison point number handled as the comparison target.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
32 High-Speed Processing 2 – FNC280 to FNC289
32.1 FNC280 – HSCT / High-Speed Counter Compare With Data Table
An operation error occurs in the following cases; The error flag M8067 turns ON, and the error code is stored in D8067.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
32 High-Speed Processing 2 – FNC280 to FNC289

In the program shown below, the current value of C235 (counting X000) is compared with the comparison data table set in R0 and later, and a specified pattern is output to Y010 to Y013.
4 R13,R12 K300 R14 H0008 4↓ (Repeated from “0↓”)

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
33 Extension File Register Control – FNC290 to FNC299


FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
33 Extension File Register Control – FNC290 to FNC299
33.1 FNC290 – LOADR / Load From ER
FNC277-FNC279 Data Transfer 3
This instruction reads the current values of extension file registers (ER) stored in the attached memory cassette (flash memory or EEPROM) or EEPROM built into the PLC, and transfers them to extension registers (R) stored in the RAM in the PLC.
FNC280-FNC289 High-Speed Processing 2
32-bit Instruction P
Mnemonic Operation Condition 16-bit Instruction
5 steps LOADR LOADRP
Continuous Operation Pulse (Single) Operation
FNC290-FNC299 Extension File Register Control
Operand Type Description Data Type
Device number of extension register to which data is to be transferred (The extension file register with the same number is handled as the data transfer source.)
16-bit binary n Number of points to be read (transferred) [FX3G/FX3GC: 1 ≤ n ≤ 24000, FX3U/FX3UC: 0 ≤ n ≤ 32767]
3. Applicable devices
Bit Devices Word Devices Others
System User Digit Specification System User Special
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
n 3 3 3
1. 16-bit operation (LOADR and LOADRP)
same numbers as the extension registers specified by to +n-1 are read, and transferred to the
extension registers specified by to +n-1 stored in the PLC's built-in RAM.
FNC290 LOADRP S n
Extension file registers (ER) inside memory cassette
Extension registers (R) inside built-in RAM
E +1
E +2
E +3
A
S S

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
33 Extension File Register Control – FNC290 to FNC299
33.1 FNC290 – LOADR / Load From ER
The contents (current values) of extension file registers (ER) stored in a memory cassette (EEPROM) with the
same numbers as the extension registers specified by to +n-1 are read, and
transferred to the extension registers specified by to +n-1 stored in the PLC's built-in RAM.

b) When a memory cassette is not connected
In the program example below, the contents (current value) of extension file registers (ER) which are stored in
the EEPROM built in the PLC and have the same device numbers as extension registers to +n- 1 are read, and transferred to extension registers (R) which are stored in the RAM built in the PLC and have


FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
33 Extension File Register Control – FNC290 to FNC299
FNC277-FNC279 Data Transfer 3
FNC280-FNC289 High-Speed Processing 2
Execution of the LOADR (FNC290), SAVER (FNC291) or LOGR (FNC293) instruction is not counted as a write to the memory. However, it is necessary to initialize the writing target sector before executing the SAVER (FNC291) or LOGR (FNC293) instruction. Every time the INITR (FNC292) or INITER (FNC295) instruction is executed, it is counted as a number of times of writing to the memory. Make sure not to exceed the allowable number of writes.
FNC290-FNC299 Extension File Register Control
Errors
An operation error is caused in the following cases; The error flag M8067 turns ON, and the error code is stored in D8067.
*1. An operation error is not caused in FX3G PLC because the contents of extension file registers stored in the EEPROM built in the PLC are read if a memory cassette is not connected.
In the program example shown below, the contents (current value) of 4,000 extension file registers ER1 to ER4000 inside the memory cassette are read, and transferred to 4,000 extension registers R1 to R4000 inside the built-in RAM.
LOADR R1 K4000
Extension file registers (ER) inside memory cassette
Extension registers (R) inside built-in RAM
R1 K100
ER2 K50
R2 K50
ER3 H0003
R3 H0003
ER4 H0101
R4 H0101
A
ER3999 K55
R3999 K55
ER4000 K59
R4000 K59
B

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
33 Extension File Register Control – FNC290 to FNC299
33.2 FNC291 – SAVER / Save to ER
This instruction writes the current values of the extension registers (R) stored in the PLC's built-in RAM to extension file registers (ER) stored in a memory cassette (flash memory) in sector units (2048 points). The RWER (FNC294) instruction provided in FX3UC PLC Ver. 1.30 or later and FX3U PLC only writes (transfers) a arbitrary number of points. It is not necessary to execute the INITR (FNC292) or the INITER (FNC295) instruction when RWER instruction is used.
→ For RWER instruction, refer to Section 33.5.


Head device number of extension register sector to which data is to be written (Only the head device number of a sector of extension registers can be specified.)
16-bit binary n Number of points written (transferred) in one operation cycle [0 ≤ n ≤ 2048]
Device number storing the number of already written points

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
1. 16-bit operation (SAVER)
The contents (current values) of extension registers (R) specified by to +2047 are written (transferred) to extension file registers (ER) inside a memory cassette (flash memory) with the same device numbers in “2048/n” operation cycles (“2048/n+1” cycles if there is a remainder).

While the instruction is being executed, the number of points already written is stored in .
Extension file registers (ER) inside memory cassette Extension registers (R) inside built-in RAM *1
*1 “n” points are written (transferred) in each operation cycle.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
33 Extension File Register Control – FNC290 to FNC299
FNC277-FNC279 Data Transfer 3
Sector number Head device number Written device range Sector number Head device number Written device range
Sector 0 R0 ER0 to ER2047 Sector 8 R16384 ER16384 to ER18431
Sector 1 R2048 ER2048 to ER4095 Sector 9 R18432 ER18432 to ER20479
Sector 2 R4096 ER4096 to ER6143 Sector 10 R20480 ER20480 to ER22527
FNC280-FNC289 High-Speed Processing 2
Sector 3 R6144 ER6144 to ER8191 Sector 11 R22528 ER22528 to ER24575
Sector 4 R8192 ER8192 to ER10239 Sector 12 R24576 ER24576 to ER26623
Sector 5 R10240 ER10240 to ER12287 Sector 13 R26624 ER26624 to ER28671
Sector 6 R12288 ER12288 to ER14335 Sector 14 R28672 ER28672 to ER30719
Sector 7 R14336 ER14336 to ER16383 Sector 15 R30720 ER30720 to ER32767
FNC290-FNC299 Extension File Register Control
Device number Name Description
When execution of the target instruction is completed, the instruction execution complete flag M8029 turns ON. In a program, however, there may be two or more instructions which use the flag M8029. To avoid confusion, make sure to use the NO contact of this flag immediately under the SAVER instruction so that this flag works only for the SAVER instruction.
M8029 Instruction execution complete flag
M FNC295 INITERP S n
SAVER S n D
Instruction execution complete flag
A
RST M
B
![Page 722 of the Mitsubishi Electronics MELSEC FX3S user manual — [1] When storing sectors of 2,048 extension registers (R) to extension file](/cdn/reader/06/06b6c5c8bfa3e981e964d8ed7432322fb86c682a85757d292a29f9cec2d4294a/images/page-722.webp?w=400)
FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
33 Extension File Register Control – FNC290 to FNC299
33.2 FNC291 – SAVER / Save to ER
registers (ER) 1) Execute the INITER (FNC295) instruction to the target extension file registers (ER) specified as targets in the SAVER instruction. 2) Execute the SAVER instruction.
[2] When storing an arbitrary number of extension registers (R) to extension file registers (ER)
Use the RWER instruction.
→ For RWER (FNC294) instruction, refer to Section 33.5.
[1] When storing sectors of 2,048 extension registers (R) in one sector to
extension file registers (ER) If the extension registers (R) have data to be stored in extension file registers (ER), use the procedure [2]. 1) Execute the INITR (FNC292) instruction to extension registers (R) and extension file registers (ER) specified as targets of the SAVER instruction. 2) Store data to extension registers (R) specified as targets. 3) Execute the SAVER instruction.
[2] When storing sector of 2,048 extension registers (R) in one sector to extension file registers (ER)
1) Temporarily withdraw the data of the extension registers (R) specified as targets of the SAVER instruction to data registers or 2048 unused extension registers (R) by using the BMOV (FNC 15) instruction. 2) Execute the INITR (FNC292) instruction to extension registers (R) and extension file registers (ER) specified as targets of the SAVER instruction. 3) Return the data of 2048 points temporarily withdrawn in step 1) to extension registers (R) specified as targets by using the BMOV (FNC 15) instruction. 4) Execute the SAVER instruction.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
33 Extension File Register Control – FNC290 to FNC299
FNC277-FNC279 Data Transfer 3
An operation error is caused in the following cases; The error flag M8067 turns ON, and the error code is stored in D8067.
FNC280-FNC289 High-Speed Processing 2
FNC290-FNC299 Extension File Register Control

display the Online Data Operation dialog box. [2] Click "PLC Parameter/Network Parameter"
and "Device Data/File Register" to check mark each of them. [3] Click [Execute] button. [4] When reading is completed, save the project.

the Online Data Operation dialog box. [2] Click "PLC Parameter/Network Parameter"
and “MAIN” to check mark each of them. [3] Click [Execute] button.
B

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
33 Extension File Register Control – FNC290 to FNC299
33.2 FNC291 – SAVER / Save to ER
In the example shown below, only extension registers R10 to R19 (in sector 0) need to be updated in the extension file registers (ER). When X000 is set to ON, sector 0 (head device R0) is written to the extension file registers 128 points at a time. (128 points are written in one operation cycle)



FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
33 Extension File Register Control – FNC290 to FNC299


FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
33 Extension File Register Control – FNC290 to FNC299
33.2 FNC291 – SAVER / Save to ER
In the example shown below, only extension registers R10 to R19 (in sector 0) need to be updated in the extension file registers (ER). When X000 is set to ON, sector 0 (head device R0) is written to the extension file registers 128 points at a time. (128 points are written in one operation cycle)



FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
33 Extension File Register Control – FNC290 to FNC299


FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
33 Extension File Register Control – FNC290 to FNC299
33.3 FNC292 – INITR / Initialize R and ER
This instruction initializes extension registers (R) to “HFFFF” () in the RAM built into the PLC and extension file registers in a memory cassette (flash memory) before data logging using the LOGR (FNC293) instruction. In FX3UC PLC before Ver. 1.30, use this instruction to initialize extension file registers (ER) before writing data to them using SAVER (FNC291) instruction. In FX3UC PLC Ver. 1.30 or later and FX3U PLC, the INITER (FNC295) instruction is also provided to initialize only extension file registers (ER) to "HFFFF" () in a memory cassette (flash memory) in units of sector.
→ For the SAVER (FNC291) instruction, refer to Section 33.2.
→ For the LOGR (FNC293) instruction, refer to Section 33.4. → For the INITER (FNC295) instruction, refer to Section 33.6.


Head device number of extension register and extension file register*1 sector to be initialized It is possible to specify only the head device number in a sector of extension registers. 16-bit binary
n Number of sectors of extension registers and extension file registers to be initialized
*1. When a memory cassette is not used, extension file registers (ER) are not initialized.

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
1. 16-bit operation (INITR and INITRP)
“n” sectors of extension registers in the PLC’s built-in RAM starting from the one specified by and “n” sectors of extension file registers in a memory cassette (flash memory) having the same device numbers are initialized to “HFFFF” (). Initialization is executed in sector units.
INITRP S n
Command · input

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
33 Extension File Register Control – FNC290 to FNC299
The table below shows the head device number in each sector:
FNC277-FNC279 Data Transfer 3
number Initialized device range Sector number
number Initialized device range
Sector 0 R0 R0 to R2047, ER0 to ER2047 Sector 8 R16384 R16384 to R18431, ER16384 to ER18431
Sector 1 R2048 R2048 to R4095, ER2048 to ER4095 Sector 9 R18432 R18432 to R20479, ER18432 to ER20479
FNC280-FNC289 High-Speed Processing 2
Sector 2 R4096 R4096 to R6143, ER4096 to ER6143 Sector 10 R20480 R20480 to R22527, ER20480 to ER22527
Sector 3 R6144 R6144 to R8191, ER6144 to ER8191 Sector 11 R22528 R22528 to R24575, ER22528 to ER24575
Sector 4 R8192 R8192 to R10239, ER8192 to ER10239 Sector 12 R24576 R24576 to R26623, ER24576 to ER26623
Sector 5 R10240 R10240 to R12287, ER10240 to ER12287 Sector 13 R26624 R26624 to R28671, ER26624 to ER28671
FNC290-FNC299 Extension File Register Control
Sector 6 R12288 R12288 to R14335, ER12288 to ER14335 Sector 14 R28672 R28672 to R30719, ER28672 to ER30719
Sector 7 R14336 R14336 to R16383, ER14336 to ER16383 Sector 15 R30720 R30720 to R32767, ER30720 to ER32767
Before execution After execution Before execution After execution
H0010 HFFFF H1234 HFFFF
S S
+1 H0020 HFFFF +1 H5678 HFFFF
S S
+2 H0011 HFFFF +2 H90AB HFFFF
+(2048×n)-1 HABCD HFFFF +(2048×n)-1 HCDEF HFFFF
Caution
MOV K {{{ D8000
Guideline of the watchdog timer set value
A value acquired by the following procedure can be regarded as the guideline of the watchdog timer set value. If an acquired value is 200 ms or less, however, it is not necessary to change the watchdog timer set value.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
33 Extension File Register Control – FNC290 to FNC299
33.3 FNC292 – INITR / Initialize R and ER

If the processing time of the INITR command exceeds 200ms, set the watchdog timer value D8000 (unit: ms) to the processing time or more.
An operation error is caused in the following cases; The error flag M8067 turns ON, and the error code is stored in D8067.
In the program example shown below, the extension registers R0 to R2047 in the sector 0 are initialized. Note that the extension file registers ER0 to ER2047 are also initialized if a memory cassette is attached.



FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
33 Extension File Register Control – FNC290 to FNC299
33.4 FNC293 – LOGR / Logging R and ER
FNC277-FNC279 Data Transfer 3
This instruction logs specified devices, and stores the logged data to extension registers (R) in the RAM and extension file registers (ER) in a memory cassette.
FNC280-FNC289 High-Speed Processing 2
P FNC 293
Mnemonic Operation Condition 16-bit Instruction
⎯ ⎯ LOGRP Pulse (Single) Operation
FNC290-FNC299 Extension File Register Control
Operand Type Description Data Type
Head device number to be logged*1
m Number of devices to be logged [1 ≤ m ≤ 8000]
Head device number used in logging
n Number of destination sectors of used for logging [1 ≤ n ≤ 16]
Number of logged data
*1. C200 to C255 cannot be set.
Bit Devices Word Devices Others
System User Digit Specification System User Special
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
m 3 3 3
1. 16-bit operation (LOGR and LOGRP)
While the instruction is driven, “m” devices starting from are logged until “n” sectors of extension registers (R)
starting from and extension file registers (ER) in a memory cassette are filled.
The number of logged data is stored to . If a memory cassette is not used, data is not written to extension file registers (ER).
LOGRP m D1 n D2 S
B

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
33 Extension File Register Control – FNC290 to FNC299
33.4 FNC293 – LOGR / Logging R and ER

Writing position control area (Every time one word is used in the data writing area, bits are set to OFF (0) from ON (1) in turn from bit 0 of [ + (1926 × n) -1]. After bit 15 of [ + (1926 × n) -1] is set to OFF (0), bit 0 of the next device [ + (1926 × n)] is set to OFF (0) in the next logging.
The table below shows the head device number in each sector:
number Written device range Sector number

Sector 0 R0 R0 to R2047, ER0 to ER2047 Sector 8 R16384 R16384 to R18431, ER16384 to ER18431
Sector 1 R2048 R2048 to R4095, ER2048 to ER4095 Sector 9 R18432 R18432 to R20479, ER18432 to ER20479
Sector 2 R4096 R4096 to R6143, ER4096 to ER6143 Sector 10 R20480 R20480 to R22527, ER20480 to ER22527
Sector 3 R6144 R6144 to R8191, ER6144 to ER8191 Sector 11 R22528 R22528 to R24575, ER22528 to ER24575
Sector 4 R8192 R8192 to R10239, ER8192 to ER10239 Sector 12 R24576 R24576 to R26623, ER24576 to ER26623
Sector 5 R10240 R10240 to R12287, ER10240 to ER12287 Sector 13 R26624 R26624 to R28671, ER26624 to ER28671
Sector 6 R12288 R12288 to R14335, ER12288 to ER14335 Sector 14 R28672 R28672 to R30719, ER28672 to ER30719
Sector 7 R14336 R14336 to R16383, ER14336 to ER16383 Sector 15 R30720 R30720 to R32767, ER30720 to ER32767
Sector number · Head device

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
33 Extension File Register Control – FNC290 to FNC299
FNC277-FNC279 Data Transfer 3
Logging data storage area initialization command input *1 *2
FNC280-FNC289 High-Speed Processing 2
*1 Specify the same device as in LOGR instruction. *2 Specify the same number as (n) in LOGR instruction. D1
FNC290-FNC299 Extension File Register Control
Errors
An operation error is caused in the following cases; The error flag M8067 turns ON, and the error code is stored in D8067.
display Online Data Operation dialog box. [2] Click "PLC Parameter/Network Parameter"
and "Device Data/File Register" to check mark each of them. [3] Click [Execute] button. [4] When reading is completed, save the project.
B

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
33 Extension File Register Control – FNC290 to FNC299
33.4 FNC293 – LOGR / Logging R and ER

the Online Data Operation dialog box. [2] Click "PLC Parameter/Network Parameter"
and "MAIN" to check mark each of them. [3] Click [Execute] button to execute writing.
In the program example shown below, D1 and D2 are logged to the area from R2048 to R6143 every time X001 turns ON.

Because two words are used, low-order two bits are set to OFF (0).
Because two words are used, low-order two bits are set to OFF (0).

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
33 Extension File Register Control – FNC290 to FNC299
33.5 FNC294 – RWER / Rewrite to ER
FNC277-FNC279 Data Transfer 3
This instruction writes the current values of an arbitrary number of extension registers (R) stored in the RAM in the PLC to extension file registers (ER) stored in a memory cassette (flash memory or EEPROM) or the EEPROM built into the PLC. Because RWER (FNC294) instruction is not supported in FX3UC PLC before Ver. 1.30, use the SAVER (FNC291) instruction instead.
FNC280-FNC289 High-Speed Processing 2
→ For the SAVER (FNC291) instruction, refer to Section 33.2.
P FNC 294
Mnemonic Operation Condition 16-bit Instruction
FNC290-FNC299 Extension File Register Control
⎯ ⎯ RWERP Pulse (Single) Operation
Operand Type Description Data Type
Device number of extension register storing data
16-bit binary n Number of devices [FX3G/FX3GC: 1 ≤ n ≤ 24000, FX3U/FX3UC: 0 ≤ n ≤ 32767] to be written (transferred)
Bit Devices Word Devices Others
System User Digit Specification System User Special
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
n 3 3 3
1. 16-bit operation (RWER)
The contents (current values) of “n” extension registers (R) starting from are written (transferred) to extension file registers with the same device numbers in a memory cassette (flash memory).
FNC294 RWERP n S
Extension file registers (ER) inside memory cassette Extension registers (R) inside built-in RAM
E +1
E +2
A
*1. All points specified by the instruction are written (transferred).

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
33 Extension File Register Control – FNC290 to FNC299
33.5 FNC294 – RWER / Rewrite to ER
The contents (current values) of “n” extension registers (R) starting from are written (transferred) to extension file registers having with same device numbers in a memory cassette (flash memory).
FNC290 RWERP S n
Extension file registers (ER) inside memory cassette Extension registers (R) inside built-in RAM

*1. All points specified by the instruction are written (transferred). b) When a memory cassette is not connected
The contents (current values) of "n" extension registers (R) starting from are written (transferred) to extension file registers which are stored in the EEPROM built into the PLC and have the same device numbers.
FNC290 RWERP S n

*2. All points specified by the instruction are written (transferred).

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
33 Extension File Register Control – FNC290 to FNC299
FNC277-FNC279 Data Transfer 3
FNC280-FNC289 High-Speed Processing 2
M100 FNC 12
MOV D8000 D200
FNC290-FNC299 Extension File Register Control
*1 Number of sectors to be written × 47 ms
FNC300-FNC305 FX 3U -CF-ADP
RWER R1000 K100
The contents of R1000 to R1099 in the sector 0 are written to ER1000 to ER1099.
WDT
The table below shows the head device number in each sector:
Sector number Device range Sector number Device range
Sector 0 ER0 to ER2047 Sector 8 ER16384 to ER18431
Sector 1 ER2048 to ER4095 Sector 9 ER18432 to ER20479
Sector 2 ER4096 to ER6143 Sector 10 ER20480 to ER22527
Sector 3 ER6144 to ER8191 Sector 11 ER22528 to ER24575
Sector 4 ER8192 to ER10239 Sector 12 ER24576 to ER26623
Sector 5 ER10240 to ER12287 Sector 13 ER26624 to ER28671
Sector 6 ER12288 to ER14335 Sector 14 ER28672 to ER30719
Sector 7 ER14336 to ER16383 Sector 15 ER30720 to ER32767
→ For the backup method, refer to the next page.
→ For the backup method, refer to the next page.
B

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
33 Extension File Register Control – FNC290 to FNC299
33.5 FNC294 – RWER / Rewrite to ER
Execution of the LOADR (FNC290), SAVER (FNC291) or LOGR (FNC293) instruction is not counted as a write to the memory. However, it is necessary to initialize the writing target sector before executing the SAVER (FNC291) or LOGR (FNC293) instruction. Every time the INITR (FNC292) or INITER (FNC295) instruction is executed, it is counted as a write to the memory. Make sure not to exceed the allowable number of writes.
When the contents of extension file registers (ER) and extension registers (R) should not be lost, back up the current values (data) of extension file registers (ER) and extension registers (R) in advance using the following procedure:
[3] Click the [Detail] button of the device memory to display the "Device Data Detail Setting" dialog box. [4] Enter the file name to be saved to "Device Data Name". [5] Check "Ext. register" and "Ext. file register"*1

of "Device Data Name", and click the [OK] button. [6] Click [Execute] button to execute reading. [7] When reading is completed, save the project.
*1. The extension file register range cannot be set in GX Developer whose version is earlier than Ver. 8.18U or in GX Works2.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
33 Extension File Register Control – FNC290 to FNC299
FNC277-FNC279 Data Transfer 3
An operation error is caused in the following cases; The error flag M8067 turns ON, and the error code is stored in D8067.
FNC280-FNC289 High-Speed Processing 2
*1. The last device number is 23,999 in FX3G/FX3GC PLCs. *2. An operation error is not caused in FX3G PLC because the contents of extension file registers stored in the EEPROM built into the PLC are read if a memory cassette is not connected.
In the program example shown below, the contents of extension registers R10 to R19 (sector 0) are transferred to extension file registers (ER) when X000 turns ON.
FNC290-FNC299 Extension File Register Control
PLS M0
M0
MOV D8000 D200
FNC300-FNC305 FX 3U -CF-ADP
ADD D8000
K47 D8000
WDT
RWER R10 K10
MOV D200 D8000
WDT
END
Operation
Setting backup data Extension file registers
R0 K100
ER0 K100
R1 K105
ER1 K105
ER10 K200
R11 K215
ER11 K215
R12 K400
ER12 K400
A
ER19 K350
ER99 K1000
B
R100 HFFFF
ER100 HFFFF
HFFFF ER2047

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
33 Extension File Register Control – FNC290 to FNC299
33.6 FNC295 – INITER / Initialize ER
This instruction initializes extension file registers (ER) to “HFFFF” () in a memory cassette (flash memory) before executing the SAVER (FNC291) instruction. Because the INITER (FNC295) instruction is not supported in FX3UC PLC earlier than Ver. 1.30, use INITR (FNC292) instruction instead.
→ For SAVER (FNC291) instruction, refer to Section 33.2.
→ For INITR (FNC292) instruction, refer to Section 33.3.


Head device number of extension register sector with the same device number as the extension file register to be initialized 16-bit binary n Number of sectors of extension file registers to be initialized

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
are initialized to “HFFFF” (). Initialization is executed in sectors.
FNC295 INITERP n S
The table below shows the head device number in each sector:


Sector 0 R0 ER0 to ER2047 Sector 8 R16384 ER16384 to ER18431
Sector 1 R2048 ER2048 to ER4095 Sector 9 R18432 ER18432 to ER20479
Sector 2 R4096 ER4096 to ER6143 Sector 10 R20480 ER20480 to ER22527
Sector 3 R6144 ER6144 to ER8191 Sector 11 R22528 ER22528 to ER24575
Sector 4 R8192 ER8192 to ER10239 Sector 12 R24576 ER24576 to ER26623
Sector 5 R10240 ER10240 to ER12287 Sector 13 R26624 ER26624 to ER28671
Sector 6 R12288 ER12288 to ER14335 Sector 14 R28672 ER28672 to ER30719
Sector 7 R14336 ER14336 to ER16383 Sector 15 R30720 ER30720 to ER32767
Command · input

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
33 Extension File Register Control – FNC290 to FNC299
FNC277-FNC279 Data Transfer 3
Before execution After execution
+1 H5678 HFFFF
FNC280-FNC289 High-Speed Processing 2
+(2048×n)-1 HCDEF HFFFF
FNC290-FNC299 Extension File Register Control
About 25 ms is required to initialize one sector. When initializing two or more sectors, take either measure shown below.
MOV K {{{ D8000
FNC300-FNC305 FX 3U -CF-ADP
Guideline of the watchdog timer set value
A value acquired by the following procedure can be regarded as the guideline of the watchdog timer set value. If an acquired value is 200 ms or less, however, it is not necessary to change the watchdog timer set value.
WDT The watchdog timer is reset.
The watchdog timer is reset.
If the processing time of the INITER command exceeds 200 ms, set the watchdog timer value D8000 (unit: ms) to the processing time or more.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
33 Extension File Register Control – FNC290 to FNC299
33.6 FNC295 – INITER / Initialize ER
An operation error is caused in the following cases; The error flag M8067 turns ON, and the error code is stored in D8067.
In the program example shown below, the extension file registers ER0 to ER2047 in sector 0 are initialized.
R0 K1
INITER
WDT
END
Before execution After execution
ER1 H5678 HFFFF
ER2 H90AB HFFFF
ER2047 HCDEF HFFFF
Current value · Device number

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
34 FX3U-CF-ADP Applied Instructions – FNC300 to FNC305

301 FLDEL File delete / CF card format Section 34.2
305 FLSTRD FX3U-CF-ADP status read Section 34.6

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
34 FX3U-CF-ADP Applied Instructions – FNC300 to FNC305
34.1 FNC300 – FLCRT / File create•check
The FLCRT instruction creates a file inside the CompactFlashTM card mounted in the FX3U-CF-ADP. When executed after creation of a new file, the FLCRT instruction checks the association with the file ID, and evaluates it.
→ For explanation of the instruction, refer to the CF-ADP Manual.


File creation parameter (Refer to Subsection 34.1.1) 16-bit binary
n Used channel number [contents of setting : K1 = ch1, K2 = ch2] 16-bit binary

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
1. 16-bit operation (FLCRT)

When is "K0", the FLCRT instruction creates a FIFO file. When the PLC creates two or more files for FIFO file, and executes FIFO (first in, first out) in units of files. The PLC keeps the latest file, and deletes older files so that the total capacity of FIFO files and other files does not exceed the specified capacity.
When is "K1" to "K63", the FLCRT instruction creates a file having the specified file name.
Sequence programs use the file ID for specifying a file. Accordingly, each file name saved in the CompactFlashTM card is associated with the file ID, and controlled by the file ID table. If a file having the specified file name already exists and is registered in the file ID table, the PLC finishes the FLCRT instruction without executing any processing. If a file having the specified name already exists but is not registered in the file ID table, the PLC only registers the existing file to the file ID table.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
34 FX3U-CF-ADP Applied Instructions – FNC300 to FNC305
FNC277-FNC279 Data Transfer 3
Details on the setting data in the FLCRT instruction are as shown below.
Setting items Description Data Type
File ID This ID number is associated with the file name. The FLCRT instruction creates a file, and associates the file name with the file ID at the same time. The user should use the file ID for specifying a file after that. Allowable setting range : K0 to K63 ("K0" indicates "FIFO file".)
FNC280-FNC289 High-Speed Processing 2
When is "K0 (FIFO file)" Not used (ignored) Use an unused device. (D or R)
When is "K1" to "K63" Specify the file name in up to 8 characters until "null" or "null + null". Half-width alphanumeric characters and half-width symbols permitted in the MS-DOS are available. Half-width symbols : !, #, $, %, &, ', (, ), +, -, @, ^, _, ', ~ The extension is fixed to "CSV"
FNC290-FNC299 Extension File Register Control
Time stamp setting Set whether or not the time stamp is added to the file. Specify the format when adding the time stamp. K0 : None (NULL) K1 : yyyy/mm/dd hh:mm:ss K2 : yy/mm/dd hh:mm:ss K3 : dd/mm/yyyy hh:mm:ss K4 : dd/mm/yy hh:mm:ss K5 : mm/dd/yyyy hh:mm:ss K6 : mm/dd/yy hh:mm:ss K7 : hh:mm:ss
Data type Set the data type to be saved. K0 : No data type specification (mixed type) K1 : Bit type K2 : Decimal type (16-bit) K3 : Decimal type (32-bit) K4 : Hexadecimal type (16-bit) K5 : Hexadecimal type (32-bit) K6 : Real numbers (Floating point data) Exponent expression type K7 : Character string
Maximum number of lines Set the maximum number of lines. Allowable setting range : K1 to K32767*1
When is "K0" Set the CompactFlashTM card use ratio. Specify the ratio (%) out of the whole CompactFlashTM card capacity to be used. Allowable setting range : 10 to 90 (%)
When is "K1" to "K63" File processing to be executed when the specified maximum number of lines is reached. Set the file processing method to be executed when the number of lines reaches the specified maximum value. K0 : Stops execution. (The line position remains the specified maximum line position.) K1 : Returns to the head (ring buffer file).
Channel number used by the CF-ADP K1 : ch1 K2 : ch2
*1. Adjust the maximum number of lines to specify the file size available in the used application software used.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
34 FX3U-CF-ADP Applied Instructions – FNC300 to FNC305
34.2 FNC301 – FLDEL / File delete•CF card format
The FLDEL instruction deletes files stored in the CompactFlashTM card, or formats the CompactFlashTM card.
→ For explanation of the instruction, refer to the CF-ADP Manual.


File delete method (Refer to Subsection 34.2.1) 16-bit binary
n Used channel number [contents of setting : K1 = ch1, K2 = ch2] 16-bit binary

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
1. 16-bit operation (FLDEL)

S1 S2 D S1 S2
The FLDEL instruction deletes files stored in the CompactFlashTM card, or formats the CompactFlashTM card in the following method.
- When is "K-1 (H0FFFF)", the FLDEL instruction deletes all files whose ID is 0 to 63.
- When is "K0" to "K63", the FLDEL instruction deletes the file associated with the specified file ID.
- When is "K512 (H200)", the FLDEL instruction formats the CompactFlashTM card.
- When is "K-1 (H0FFFF)" or "K0" to "K63", specify the deletion method K0 : The FLDEL instruction deletes the specified file. K1 : The FLDEL instruction deletes the association between the file name and the file ID (but does not
delete the file itself).
However, when the file ID specified in is "0", the FLDEL instruction deletes the file regardless of the
setting of .
- When is "K512 (H200)", specify the format type.
K256(H100) : The FLDEL instruction formats the CompactFlashTM card in FAT16 format.
For details, refer to Subsection 34.2.1.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
34 FX3U-CF-ADP Applied Instructions – FNC300 to FNC305
FNC277-FNC279 Data Transfer 3
Details on the setting data in the FLDEL instruction are as shown below.
Setting items Description Data Type
File ID K-1(H0FFFF) : The FLDEL instruction deletes all files. K0 to K63 : The FLDEL instruction deletes a file associated with the specified file ID.
FNC280-FNC289 High-Speed Processing 2
K512(H200) : The FLDEL instruction formats the CompactFlashTM card.
When is "K-1 (H0FFFF)" or "K0" to "K63" Specify the deletion method. K0 : The FLDEL instruction deletes the specified file. K1 : The FLDEL instruction deletes the association between the file name and the file ID
(but does not delete the file itself).
However, when the file ID specified in is "0", the FLDEL instruction deletes the file itself
FNC290-FNC299 Extension File Register Control
regardless of the setting of
When is "K512 (H200)" Specify the format type.
K256(H100) : The FLDEL instruction formats the CompactFlashTM card in the FAT16 format.
Channel number used by the CF-ADP K1 : ch1 K2 : ch2
Cautions
B

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
34 FX3U-CF-ADP Applied Instructions – FNC300 to FNC305
34.3 FNC302 – FLWR / Data write
The FLWR instruction writes data to the CompactFlashTM card or to the buffer inside the FX3U-CF-ADP.
→ For explanation of the instruction, refer to the CF-ADP Manual.


Head of devices which store data to be written (Refer to Subsection 34.3.1) -
Data write parameter (Refer to Subsection 34.3.1) 16-bit binary
Position after data writing (Refer to Subsection 34.3.1) 16-bit binary
n Used channel number [contents of setting : K1 = ch1, K2 = ch2] 16-bit binary

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
1. 16-bit operation (FLWR)

Head of devices which store data to be written

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
34 FX3U-CF-ADP Applied Instructions – FNC300 to FNC305
The FLWR instruction writes data specified by the device to a file stored in the CompactFlashTM card specified by the file ID or to the buffer inside the CF-ADP. The FLWR instruction can overwrite data in the line position specified
FNC277-FNC279 Data Transfer 3
by the device +1, and can write additional data (K-1). When the writing destination is the buffer inside the CF- ADP, the FLWR instruction can only execute additional writing. When writing is completed, the line position and column position after writing are as follows.
FNC280-FNC289 High-Speed Processing 2
FNC290-FNC299 Extension File Register Control
Both additional writing and overwriting are executed to the maximum number of lines specified during file creation. If data is written up to the final column position, the line position after writing varies depending on the file type and setting.
In either case, the column position after writing is "K1".
B

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
34 FX3U-CF-ADP Applied Instructions – FNC300 to FNC305
34.3 FNC302 – FLWR / Data write
Details on the setting data in the FLWR instruction are as shown below.
Setting items Description Data Type
Head of devices which store data to be written.
Specify the head of devices which store the data to be written to the CompactFlashTM
card.
Specify the data writing type K0 : Mixed type K1 : Bit type K2 : Decimal type (16-bit) K3 : Decimal type (32-bit) K4 : Hexadecimal type (16-bit) K5 : Hexadecimal type (32-bit) K6 : Real numbers (Floating point data) Exponent expression type (32-bit) K7 : Character string (512 half-width/full-width characters maximum) K8 : Data name : Character string consisting of up to 32 half-width/full-width characters. Index, DATE TIME are added automatically.
Specify the line position of the writing destination, or specify additional writing. Line position of the writing destination : K1 to specified maximum number of lines Additional writing : K-1
Specify the data column position in the writing destination. Column position : K1 to K254 Additional writing : K-1
+3 Number of written data points : K1 to K254 16-bit binary
Channel number used by the CF-ADP K1 : ch1 K2 : ch2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
34 FX3U-CF-ADP Applied Instructions – FNC300 to FNC305
34.4 FNC303 – FLRD / Data read
FNC277-FNC279 Data Transfer 3
The FLRD instruction reads data from the CompactFlashTM card.
→ For explanation of the instruction, refer to the CF-ADP Manual.
FNC280-FNC289 High-Speed Processing 2
Mnemonic Operation Condition 16-bit Instruction
FNC290-FNC299 Extension File Register Control
Operand Type Description Data Type
File ID (Refer to Subsection 34.4.1) 16-bit binary
Data read parameter (Refer to Subsection 34.4.1) 16-bit binary
Device which stores the read data (Refer to Subsection 34.4.1) -
Number of data points existing in the specified line (Refer to Subsection 34.4.1) 16-bit binary
n Used channel number [contents of setting : K1 = ch1, K2 = ch2] 16-bit binary
Bit Devices Word Devices Others
System User Digit Specification System User Special
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
1. 16-bit operation (FLRD)
Used channel number Number of data points existing in the specified line Device which stores the read data
The FLRD instruction reads corresponding number of data from the position determined by the line position and
column position in the file specified by the file ID, and stores the read data to a device specified in .

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
34 FX3U-CF-ADP Applied Instructions – FNC300 to FNC305
34.4 FNC303 – FLRD / Data read
Details on the setting data in the FLRD instruction are as shown below.
Setting items Description Data Type
Specify the data reading type K0 : Mixed type K1 : Bit type K2 : Decimal type (16-bit) K3 : Decimal type (32-bit) K4 : Hexadecimal type (16-bit) K5 : Hexadecimal type (32-bit) K6 : Real numbers (Floating point data) Exponent expression type (32-bit) K7 : Character string (512 half-width/full-width characters maximum)
Specify the line position from which data is read. Line position : K1 to specified maximum number of lines 16-bit binary
Specify the column position from which data is read. Column position : K1 to K254 16-bit binary
Device which stores the read data
Specify the head of devices which store the data read from the CompactFlashTM card. 16-bit binary
Number of data points existing in the specified line K1 to K254 K0 : No data
Channel number used by the CF-ADP K1 : ch1 K2 : ch2
type is anything other than bit. When a word device is specified in and the read data type is bit, the FLRD instruction stores data read from the least significant bit of the specified word device.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
34 FX3U-CF-ADP Applied Instructions – FNC300 to FNC305
34.5 FNC304 – FLCMD / FX 3U -CF-ADP command
FNC277-FNC279 Data Transfer 3
The FLCMD instruction gives instruction for operation to the FX3U-CF-ADP.
→ For explanation of the instruction, refer to the CF-ADP Manual.
FNC280-FNC289 High-Speed Processing 2
Mnemonic Operation Condition 16-bit Instruction
FNC290-FNC299 Extension File Register Control
Operand Type Description Data Type
Instruction for operation (Refer to Subsection 34.5.1) 16-bit binary
n Used channel number [contents of setting : K1 = ch1, K2 = ch2] 16-bit binary
3. Applicable devices
Bit Devices Word Devices Others
System User Digit Specification System User Special
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
1. 16-bit operation (FLCMD)
The FLCMD instruction gives instruction for operation to the CF-ADP. The contents of instruction are as follows.
in the buffer inside the CF-ADP) to the CompactFlashTM card.
For details, refer to Subsection 34.5.1.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
34 FX3U-CF-ADP Applied Instructions – FNC300 to FNC305
34.5 FNC304 – FLCMD / FX3U-CF-ADP command
Details on the setting data in the FLCMD instruction are as shown below.
Setting items Description Data Type
Contents of instruction for operation
K0 to K63 : Forcibly writes the buffered data of the specified file ID to the CompactFlashTM card.
K-1 : Forcibly writes all buffered data to the CompactFlashTM card.
K256(H100) : Sets the CompactFlashTM card to the mounted status*1.
K512(H200) : Sets the CompactFlashTM card to the unmounted status*2. K1280(H500) : Clears error codes stored in the CF-ADP.
Channel number used by the CF-ADP K1 : ch1 K2 : ch2
*1. The CompactFlashTM card is available in the "mounted" status.
*2. The CompactFlashTM card is unavailable in the "unmounted" status.
It is not permitted to use an "RS (FNC 80)/RS2 (FNC 87)"/"ADPRW (FNC276)"/"IVCK (FNC270) to IVMC (FNC275)" instruction and an "FLCRT (FNC300) to FLSTRD (FNC305)" instruction for the same port.
16-bit binary · n · 16-bit binary

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
34 FX3U-CF-ADP Applied Instructions – FNC300 to FNC305
34.6 FNC305 – FLSTRD / FX 3U -CF-ADP status read
FNC277-FNC279 Data Transfer 3
The FLSTRD instruction reads the status (including the error information and file information) of the FX3U-CF-ADP.
FNC280-FNC289 High-Speed Processing 2
FNC 305 FLSTRD
Mnemonic Operation Condition 16-bit Instruction
FNC290-FNC299 Extension File Register Control
Operand Type Description Data Type
Contents of status to be read (Refer to Subsection 34.6.1) 16-bit binary
Head device to which the read status is written (Refer to Subsection 34.6.1) 16-bit binary
n Used channel number [contents of setting : K1 = ch1, K2 = ch2] 16-bit binary
Bit Devices Word Devices Others
System User Digit Specification System User Special
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
1. 16-bit operation (FLSTRD)
input FNC305 FLSTRD n
Head device to which the read status is written
Contents of status to be read
The FLSTRD instruction reads the status information of the CF-ADP. The following contents can be read.
The number of data stored in varies depending on the contents of the read status.
For details, refer to Subsection 34.6.1.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
34 FX3U-CF-ADP Applied Instructions – FNC300 to FNC305
34.6 FNC305 – FLSTRD / FX3U-CF-ADP status read
Details on the setting data in the FLSTRD instruction are as shown below.

Contents of status to be read K0 to K63 : Final line position of each file
K512(H200) : Capacity of the CompactFlashTM card K768(H300) : Version of the CF-ADP K1024(H400) : Error information (error flag) K1280(H500) : Error codes
Head device to which the read status is written
The number of data points stored in varies depending on the contents of the read status.
Channel number used by the CF-ADP K1 : ch1 K2 : ch2

Final line position K1 to the specified maximum line position
The FLSTRD instruction reads file IDs stored in the CompactFlashTM card. For a file ID corresponding to the read data, refer to the file ID correspondence table shown below. When a file exists, a bit corresponding to the file ID turns ON.

File ID correspondence table

Setting items b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
+1 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
+2 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32
+3 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48
The FLSTRD instruction reads the data capacity, used space and free space of the CompactFlashTM card to the following devices respectively.

+1, Data capacity of the CompactFlashTM card (kB) Units, If the data capacity is less than 1 kB, "1" is stored.
+3, +2 Used space of the CompactFlashTM card (kB) Units, If the data size is less than 1 kB, "1" is stored.
+5, +4 Free space of the CompactFlashTM card (kB) Units, If the data size is less than 1 kB, "1" is stored.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
34 FX3U-CF-ADP Applied Instructions – FNC300 to FNC305
FNC277-FNC279 Data Transfer 3
Stores the version of CF-ADP. (Example) K100 = Ver. 1.00
FNC280-FNC289 High-Speed Processing 2
b0 : The CompactFlashTM card is not mounted.
b1 : The CompactFlashTM card is full. b2 : An error has occurred in the CF-ADP. b3 : CF-ADP H/W error
FNC290-FNC299 Extension File Register Control
+1 Error code details 1
+2 Error code 2
+3 Error code details 2
+4 Error code 3
+5 Error code details 3
+6 Error code 4
+7 Error code details 4
+8 Error code 5
+9 Error code details 5
It is not permitted to use an "RS (FNC 80)/RS2 (FNC 87)"/"ADPRW (FNC276)"/"IVCK (FNC270) to IVMC (FNC275)" instruction and an "FLCRT (FNC300) to FLSTRD (FNC305)" instruction for the same port.
B

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
35 SFC Program and Step Ladder
35.1 SFC Program
This chapter explains the programming procedures and sequence operations for the “SFC” and “step ladder” programming methods in GX Works2 and GX Developer.
Sequence control using the SFC (sequential function chart) is available in FX PLCs. In SFC programs, the role of each process and the overall control flow can be expressed easily based on machine operations, so sequence design is easy. Accordingly, machine operations can be easily transmitted to any person, and created programs are efficient in maintenance, specifications changes and actions against problems. When SFC programs and step ladder instructions are programmed conforming to the same rules, they are compatible with each other. As a result, the same contents can be handled in relay ladder charts which are familiar and easy to understand.
In SFC programs, a state relay State S is regarded as one control process, and the input conditions and output control sequence are programmed in each process. Because the preceding process is stopped when the program execution proceeds to the next process, a machine can be controlled using simple sequences for each process.
In SFC programs, each process performed by the machine is expressed by a state relay. Operations of internal circuits connected to state relays are classified into three types, execution in the contact ON status, execution in the contact OFF status (for one operation cycle) and non-execution.
Execution in the contact ON status
Execution in the contact OFF status in one operation cycle
Non-execution (jump status) Execution

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
35 SFC Program and Step Ladder

Y31 programmed in the SET instruction remains ON even if S31 turns OFF.
*1. Output coils can be used again in different state relays.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
35 SFC Program and Step Ladder
35.1 SFC Program
Create an SFC program using the following procedure:



FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
35 SFC Program and Step Ladder
FNC277-FNC279 Data Transfer 3
1) Assign a state relay to a rectangle indicating a process. At this time, assign a state relay (S0 to S9) to the initial process. After the first process, arbitrarily assign state relay numbers (S20 to S899) except the initial state relays. (There is no relationship between state relay numbers and order of processes.) There are latched (battery backed) type state relays whose ON/ OFF status is stored against power failure. The state relays S10 to S19 are used for special purposes when the IST (FNC 60) instruction is used.
FNC280-FNC289 High-Speed Processing 2
Y021
Limit switch for minor forward movement
FNC290-FNC299 Extension File Register Control
Limit switch for backward movement
FNC300-FNC305 FX 3U -CF-ADP
3) Assign a device (output terminal number connected to external equipment, timer number, etc.) used for an operation performed in each process. Many devices such as timers, counters and auxiliary relays are provided in a PLC, and can be used arbitrarily. The timer T0 is used here. Because T0 works by the 0.1 sec clock, the output contact turns ON five seconds after a coil is driven when the set value is K50. If there are two or more loads such as timers and counters which are driven at the same time, two or more circuits can be assigned to one state relay.
Y021 Y023
Limit switch for major forward movement
Limit switch for backward movement
In this example, only the SFC program creating procedure is explained. In practical cases, a circuit for setting the initial state relay to ON is required to execute the SFC program. Create a circuit for setting the initial state relay to ON using the relay ladder. At this time, use SET instruction to set the initial state relay to ON.
SET S0
A
B

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
35 SFC Program and Step Ladder
35.1 SFC Program
For details on the programming procedure, refer to the following manual.
→ GX Developer Version 8 Operating Manual → GX Works2 Version 1 Operating Manual (Simple Project)
Write a circuit not belonging to SFC to a ladder block using a relay ladder.

SET S0 Program for setting the initial state relay to ON
Indicate the state relay number and transfer condition number. 0
When a program is input using GX Works2 and GX Developer, “RET” and “END” are automatically written.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
35 SFC Program and Step Ladder
FNC277-FNC279 Data Transfer 3
FNC280-FNC289 High-Speed Processing 2
FNC290-FNC299 Extension File Register Control
The initial state relay is driven.
SET S0
FNC300-FNC305 FX 3U -CF-ADP
TRAN
Y023
Y021
TRAN
TRAN
Y021
Y023
TRAN
RET END
Role of the initial state relay
1. Used as an identification device for inverse conversion
In the latched (battery backed) type state relays, the ON/OFF status is backed up by the battery or EEPROM memory against power failure. Use this type of state relay if the operation should be restarted from the last point before power failure.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
35 SFC Program and Step Ladder
35.1 SFC Program
List of sequence instructions available in states
OR/ORI/ORP/ORF, INV,MEP/MEF,OUT,
ANB/ORB/MPS/MRD/
MPP MC/MCR
SET/RST,PLS/PLF
Initial/general state relay Available Available*1 Not available
Drive processing Available Available*1 Not available
Transfer processing Available Not available Not available
*1. The MPS instruction cannot be used immediately after a state relay (STL instruction), even in a drive processing circuit.
For efficiently creating SFC programs, it is necessary to use some special auxiliary relays. The table below shows major ones.
Device number Name Function and application
This relay is normally ON while the PLC is in the RUN mode. Use this relay as the program input condition requiring the normally driven status or for indicating the PLC operation status.
This relay turns ON and remains ON only momentarily when the PLC mode is changed from STOP to RUN. Use this relay for the initial setting of a program or for setting the initial state relay.
When this relay is set to ON, transfer to the ON status is disabled among all state relays. Because programs in state relays are operating even in the transfer disabled status, output coils do not turn OFF automatically.
M8040 STL transfer disable
Use this relay to prevent simultaneous startup of another flow or as a process ON/OFF flag. When M8047 is OFF, M8046 is normally OFF. When M8047 is ON, M8046 operates as follows: FX3S PLC When at least one among the state relays S0 to S255 is ON: ON When all of the state relays S0 to S255 are OFF: OFF FX3G/FX3GC/FX3U/FX3UC PLCs When at least one among the state relays S0 to S899 and S1000 to S4095 is ON: ON When all of the state relays S0 to S899 and S1000 to S4095 are OFF: OFF
M8046*2 STL state ON
M8047*2 Enable STL monitoring
*2. Processed when the END instruction is executed.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
35 SFC Program and Step Ladder
Operation of state relays and use of an output two or more times
FNC277-FNC279 Data Transfer 3
FNC280-FNC289 High-Speed Processing 2
When S21 or S22 is ON, Y002 is output.
Interlock of outputs
FNC290-FNC299 Extension File Register Control
20 Y001
Y002 Y001
FNC300-FNC305 FX 3U -CF-ADP
Use of a timer two or more times
K10
T1
T1
K20
Output driving method
Y002
Y003
A
10 Y001
10 Y001
Y003
Y002
M8000
Y002
Y003
Move the position.
Insert "Always ON" contact.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
35 SFC Program and Step Ladder
35.1 SFC Program
Use “ ” to express transfer to a state relay in an upper position (repeat), transfer to a state relay in a lower position (jump), or transfer to a state relay in a separate flow. Use “V” to express reset of a state relay.




FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
35 SFC Program and Step Ladder
FNC277-FNC279 Data Transfer 3
For output disability corresponding to emergency stop, follow “Cautions on safety” described in the PLC manual.
FNC280-FNC289 High-Speed Processing 2
State relays from S0 to S50 are reset. 50
FNC290-FNC299 Extension File Register Control
SET M10
Even when the output disable contact turns ON, this output remains ON.
M10
Y005
When the output disable contact turns ON, these outputs turn OFF.
T4
While the special auxiliary relay M8034 is ON, the sequence program is executed continuously, but all output relays (Y) turn OFF.
The MPS, MRD or MPP instructions cannot be used directly from a bus line in a state relay inside the STL. Program MPS, MRD or MPP instructions after LD or LDI instructions as shown below.
Y001
MPS
Y002
MRD
A
Y003
MPP
B

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
35 SFC Program and Step Ladder
35.1 SFC Program
In a transfer condition circuit, the ANB, ORB, MPS, MRD and MPP instructions are not available. Program the circuit as shown below:

In some cases, it is necessary to execute the next transfer after the limit switch X030 (working as the transfer condition) in the ON status is set to OFF once, and then set to ON again. In such a case, make the transfer condition into pulses as shown below so that transfer is not executed by M100 when S30 turns ON for the first time.

In some cases, it is necessary to transfer the state relay ON status by the ON/OFF operation of one pushbutton switch. To achieve such a transfer, it is necessary to convert the transfer signal into pulses in programming. The following two methods are available to convert the transfer condition into pulses:


FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
35 SFC Program and Step Ladder
2. Procedure using a pulse contact instruction (M2800 to M3071) By using an auxiliary relay M2800 to M3071 in a rising/falling edge detection instruction (LDP, LDF, ANDP, ANDF, ORP or ORF), the ON status can be efficiently transferred by the same signal. When M2800 or later is specified as a device in a rising/falling edge detection instruction, only the first rising/falling edge detection instruction after a coil instruction is executed. Accordingly, when X001 is set to ON, only the transfer condition in a state relay currently in the ON status is ON during one operation cycle, and then the ON status is transferred to the next state relay.
FNC277-FNC279 Data Transfer 3
M2800
FNC280-FNC289 High-Speed Processing 2
TRAN
TRAN M2800
TRAN M2800
FNC290-FNC299 Extension File Register Control
*1. It is allowable to program a device number used in LD, LDI, OR or ORI instructions after a corresponding coil in the ladder block. However, if the same device number is programmed in a LDP, LDF, ANDP, ANDF, ORP or ORF instruction, the priority is given to such an instruction and the transfer condition is not effective.
Caution on using a rising/falling edge detection contact When a rising/falling detection contact in a LDP, LDF, ANDP, ANDF, ORP or ORF instruction is used in a state relay, the contact whose status was changed while the state relay was OFF is detected when the state relay turns ON the next time. When it is necessary to immediately detect the rising edge or falling edge for a condition which may change while a state relay is OFF, change the program as shown below:
M7 X014
SET S70
M6
SET S70
M7
When the ON status is transferred to S70 at the falling edge of X013 and then X014 turns OFF after that, the falling edge of X014 is not detected at this point because S3 is OFF. When S3 turns ON the next time, the falling edge of X014 is detected. Accordingly, when S3 turns ON the next time, the ON status is immediately transferred to S70.
B

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
35 SFC Program and Step Ladder
35.1 SFC Program
This section shows operation patterns of single flows and operation patterns when selective branches and parallel branches are combined in SFC programs.



FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
35 SFC Program and Step Ladder

When creating an SFC program having two or more initial state relays, separate the blocks for each initial state relay. The ON status can be transferred among SFC programs created by block separation (jump to a different flow). A state relay in a program created in a different block can be used as a contact for the internal circuit or transfer condition of another state relay.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
35 SFC Program and Step Ladder
35.1 SFC Program
The single flow format is the fundamental style in process transfer control. Only single flow is sufficient in sequence control for simple operations. When various input conditions and operator manipulations intervene, however, complicated conditions can be easily handled by using selective branches and parallel branches. A branch for selectively processing many processes depending on a condition is called selective branch. A branch for processing many processes at the same time is called parallel branch.



FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
35 SFC Program and Step Ladder


FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
35 SFC Program and Step Ladder
35.1 SFC Program
Limitation in the number of branch circuits
In one parallel branch or selective branch, up to eight circuits can be provided. When there are many parallel branches and selective branches, however, the total number of circuits per initial state is limited to 16 or less.

8 circuits or less in 1 (parallel or selective) branch
It is not permitted to execute transfer or reset from a recombination line or state relay before recombination to a branch state relay. Make sure to provide a dummy state, then execute transfer or reset from a branch line to a separate state relay.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
35 SFC Program and Step Ladder

100 Dummy state relay 101 102 103 Dummy state relay

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
35 SFC Program and Step Ladder
35.1 SFC Program


FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
35 SFC Program and Step Ladder


FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
35 SFC Program and Step Ladder
35.1 SFC Program

Examples of single flows
1. Example of flicker circuit


FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
35 SFC Program and Step Ladder
FNC277-FNC279 Data Transfer 3
FNC280-FNC289 High-Speed Processing 2
FNC290-FNC299 Extension File Register Control
Y001
M8002
S3 SET
T1
TRAN T1 K20
FNC300-FNC305 FX 3U -CF-ADP
Y002
T2
TRAN T2 K20
Y003
T3
TRAN T3 K20
Y007
T7
K2 0
TRAN T7
TRAN T7 X001 5
A
B

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
35 SFC Program and Step Ladder
35.1 SFC Program

The limit switches X010 to X013 are normally OFF. When the cam shaft reaches a specified angle, a corresponding limit switch turns ON.

<M8034: All outputs disable> When M8034 is set to ON, all outputs to the outside turn OFF even though the PLC is executing each program in RUN mode.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
35 SFC Program and Step Ladder

In the case of stop in the middle of operation, the motors are stopped also in turn in the reverse order.
This SFC program shows an example in which a part of the flow is skipped according to a condition, and the execution is transferred to a state in a lower position. The execution can be transferred to a state in an upper position.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
35 SFC Program and Step Ladder
35.1 SFC Program
The partial skip flow shown on the previous page can be expressed in a flow of selective branches and recombination as shown below. Make sure that a flow proceeds from top to bottom, and that a flow does not cross except branch lines and recombination lines.

For example, if X001 turns ON while the state relay S20 is ON, the state relay S32 turns ON; The contact of S32 turns ON, and the ON status is immediately transferred to the state relay S27. Because one or more state relays are required in a branch line, dummy states are provided for this purpose.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
35 SFC Program and Step Ladder
FNC277-FNC279 Data Transfer 3
TRAN X010
TRAN X020
FNC280-FNC289 High-Speed Processing 2
TRAN X012
TRAN X022
FNC290-FNC299 Extension File Register Control
2. Example of selecting and carrying large and small balls The figure below shows a mechanism which selects and carries large and small balls using conveyors. The upper left position is regarded as the origin, and the mechanism performs in the order “moving down → suction → moving up → moving rightward → moving down → release → moving up → moving leftward”. When the arm moves down and the electromagnet pushes a large ball, the lower limit switch LS2 turns OFF. When the electromagnet pushes a small ball, LS2 turns ON.
X005 LS5 X001 LS1 Left limit switch
X003 LS3 Upper limit switch
When a large ball is pushed, the piston does not reach the lower limit and X002 does not turn ON.
X002 LS2 Lower limit switch
Proximity switch PS0 X000
B

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
35 SFC Program and Step Ladder
35.1 SFC Program
In an SFC program for selecting large or small products and judging products as either accepted or rejected, selective branches and recombination are adopted as shown in the figure below.
S0 SET Initial pulse
Y007 X003 Y001 Origin indication
When a product is small (when X002 turns ON), the left flow is valid. When a product is large, the right flow is valid.
Y007
Y000
K20
TRAN T0 X002
T0
TRAN
T1 K10
T1 K10
T1
2 T1
TRAN
TRAN
TRAN
TRAN
Upper limit switch Upper limit switch
TRAN X005
Right limit switch (small bucket)
Right limit switch (large bucket)
The ON status is transferred to the recombination state relay S30 when X004 turns ON in the case of a small product, or when X005 turns ON in the case of a large product.
T2
K10
6 TRAN T2
When the special auxiliary relay M8040 described later is driven, all transfers to any state relay are disabled. In each of the state relays S24, S27 and S33, an interlock contact is connected in series respectively to the rightward movement output Y003 and leftward movement output Y004.
Y003
TRAN X001
Left limit switch 0

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
35 SFC Program and Step Ladder
FNC277-FNC279 Data Transfer 3
FNC280-FNC289 High-Speed Processing 2
FNC290-FNC299 Extension File Register Control
When the parts A, B and C are processed in parallel and then assembled afterward, flows having parallel branches and recombination are used.
FNC300-FNC305 FX 3U -CF-ADP

B

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
35 SFC Program and Step Ladder
35.1 SFC Program

This counter counts how many times the state relay S33 turns ON. When S33 turns ON five times, the contact C0 turns ON.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
35 SFC Program and Step Ladder
35.2 Step Ladder
FNC277-FNC279 Data Transfer 3
In programs using step ladder instructions, a state relay State S is assigned to each process based on machine operations, and sequences of input condition and output control are programmed as circuits connected to contacts (STL contacts) of state relays in the same way as SFC programs. The concept of program creation and the types and operations of state relays are the same as for SFC programs. However, because the contents can be expressed in the ladder format, step ladder programs can be handled as familiar relay ladder charts even though the actual contents are the same as those of SFC programs. In step ladder programs, the list format is also available. SFC programs and step ladder programs can be converted inter changeably if they are programmed according to the same rules.
FNC280-FNC289 High-Speed Processing 2
This section explains the expressions and cautions of step ladder programs in comparison with SFC programs, and the input order in the list format.
FNC290-FNC299 Extension File Register Control
In a step ladder program, a state relay State S is regarded as one control process, and a sequence of input conditions and output controls are programmed in a state relay. Because the preceding process is stopped when the program execution proceeds to the next process, a machine can be controlled using simple sequences for each process.
Operation of step ladder instructions
In a step ladder program, each process performed by the machine is expressed by a state relay. A state relay consists of a drive coil and contact (STL contact) in the same way as other relays. Use SET or OUT instructions to drive a coil, and use STL instructions for a contact. Operations of internal circuits connected to state relays are classified into three types, execution in the contact ON status, execution in the contact OFF status (for one operation cycle) and non-execution.
Execution in the contact ON status
Execution in the contact OFF status in one operation cycle
Non-execution (jump status) Execution

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
35 SFC Program and Step Ladder
35.2 Step Ladder

Y31 programmed in the SET instruction remains ON even if S31 is reset.
When X001 turns ON, S32 turns ON and S31 is automatically reset.
*1. Output coils can be used again in different state relays.
*2. It is not possible to place a pointer immediately after the STL instruction. If a pointer is placed, a circuit error (Error code: 6617) occurs.
*3. The contact instruction can be omitted only immediately after the STL instruction. If the contact instruction is omitted, the contact status follows the status of the corresponding state relay.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
35 SFC Program and Step Ladder

Step ladder programs and SFC programs are substantially the same as described above, but actual programs are expressed as shown below. A step ladder program is expressed as a relay ladder, but it can be created according to the machine control flow using state relays.
SET S0 Program for setting to ON an initial state relay
State number and transfer condition number are indicated. 0
It is necessary to input the RET instruction in a program.
When a program is input using GX Works2 and GX Developer, “RET” and “END” are automatically written.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
35 SFC Program and Step Ladder
35.2 Step Ladder
The figure on the left shows one state relay extracted as an example from an SFC program. Each state relay has three functions, driving a load, specifying a transfer destination and specifying a transfer condition. The step ladder shown on the right expresses this SFC program as a relay sequence. In this program, a load is driven, and then the ON status is transferred. In a state relay without any load, the drive processing is not required. For the program creation procedure, refer to the description on SFC programs.
→ For the program creation procedure, refer to Subsection 35.1.3. → For the handling and role of initial state relays, refer to Subsection 35.1.4.
→ For latched (battery backed) type state relays, refer to Subsection 35.1.5.
→ For RET instruction, refer to Subsection 35.1.6.

The above program can be expressed in the list format (list program) shown on the left. The segment from the STL instruction to the RET instruction is handled as a step ladder program.
*1. SET and RST instructions for a state relay are two-step instructions.


FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
35 SFC Program and Step Ladder
FNC277-FNC279 Data Transfer 3
STL LD OUT LD SET 53
S52 X004 Y002 X005 S53
52 Y002
STL S52
X004 X005
Y002
FNC280-FNC289 High-Speed Processing 2
SET S53
FNC290-FNC299 Extension File Register Control
→ For the preliminary knowledge for creating SFC programs, refer to Subsection 35.1.7.
LD/LDI/LDP/LDF, AND/ANI/ANDP/ANDF,
ANB/ORB/MPS/MRD/
OR/ORI/ORP/ORF, INV,MEP/MEF,OUT,
MPP MC/MCR
SET/RST,PLS/PLF
Initial/general state relay Available Available*1 Not available
Drive processing Available Available*1 Not available
Transfer processing Available Not available Not available
*1. MPS instruction cannot be used immediately after an STL instruction, even in a drive processing circuit.
B

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
35 SFC Program and Step Ladder
35.2 Step Ladder
For efficiently creating step ladder programs, it is necessary to use some special auxiliary relays. The table below shows major ones. The special auxiliary relays shown below are the same as those available in SFC programs.
Device number Name Function and application
This relay is normally ON while the PLC is in the RUN mode. Use this relay as the program input condition requiring the normally driven status or for indicating the PLC operation status.
This relay turns ON and remains ON only momentarily when the PLC mode is changed from STOP to RUN. Use this relay for the initial setting of a program or for setting the initial state relay.
M8040 STL transfer disable
When this relay is set to ON, transfer of the ON status is disabled among all state relays. Because programs in state relays are operating even in the transfer disabled status, output coils do not turn OFF automatically.
Use this relay to prevent simultaneous startup of another flow or as a process ON/OFF flag. When M8047 is OFF, M8046 is normally OFF. When M8047 is ON, M8046 operates as follows: FX3S PLC When at least one among the state relays S0 to S255 is ON: ON When all of the state relays S0 to S255 are OFF: OFF FX3G/FX3GC/FX3U/FX3UC PLCs When at least one among the state relays S0 to S899 and S1000 to S4095 is ON: ON When all of the state relays S0 to S899 and S1000 to S4095 are OFF: OFF
M8046*1 STL state ON
M8047*1 Enable STL monitoring
*1. Processed when END instruction is executed.

A step ladder program is created as ladder circuits in the same way as relay ladder. Accordingly, different from SFC programs, it is not necessary to divide blocks for relay ladder parts and SFC parts. When there are ladder blocks and SFC blocks, put a RET instruction at the end of each step ladder program. A PLC starts the step ladder processing by a STL instruction, and returns to the relay ladder processing from the step ladder processing by a RET instruction. However, when consecutively programming a step ladder in a different flow (when there is no relay ladder before the step ladder in the different flow), a RET instruction between flows can be omitted, and a RET instruction can be programmed only at the end of the last flow.
M8000 RUN monitor · M8002 Initial pulse

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
35 SFC Program and Step Ladder
FNC277-FNC279 Data Transfer 3
It is required to include a LD or LDI instruction before the last OUT instruction in a state relay. Change such a circuit as shown below.
Y001
FNC280-FNC289 High-Speed Processing 2
Y003
FNC290-FNC299 Extension File Register Control
Y001
Y001
Y003
Y002
M8000
FNC300-FNC305 FX 3U -CF-ADP
Y002
Y003
Move the position.
Insert "Always ON" contact.
Each OUT and SET instruction in state relays automatically resets the transfer source, and has the self-holding function. OUT instructions can only be used for transfer to a separate state relay in an SFC program.
Transfer to the next state relay (SET instruction)
SET S42 Transfer condition
Transfer to a separate state relay (OUT instruction)
Replace the symbol “ ” used in SFC programs to express repeat, jump or transfer to a state relay in another separate flow with the OUT instruction. Replace the symbol “V” (used to express reset of a state relay) with the RST instruction.
40 Y001
STL S40
Y001
TRAN
TRAN
SET S41
Replacement of “ ” in the part 52
TRAN
Replacement of “ ” in the part 41
B

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
35 SFC Program and Step Ladder
35.2 Step Ladder


FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
35 SFC Program and Step Ladder
FNC277-FNC279 Data Transfer 3
FNC280-FNC289 High-Speed Processing 2
39 Y011
49 Y012
TRAN 2 TRAN 3 TRAN
FNC290-FNC299 Extension File Register Control
STL OUT STL OUT STL OUT STL LD SET STL LD SET STL LD SET
S29 Y010 S39 Y011 S49 Y012 S29 X010 S50 S39 X011 S50 S49 X012 S50
Y010
FNC300-FNC305 FX 3U -CF-ADP
STL S39
Y011
STL S49
Y012
STL S29
SET S50
STL S39
SET S50
STL S49
SET S50
Before recombination, first program the drive processing of state relays. After that, program only the transfer processing to recombination state relays. This rule should be observed to enable inverse conversion into an SFC program.
<List program>
STL OUT LD SET SET SET 21
S20 Y000 X000 S21 S31 S41 31 41 SET S31
20 Y000
STL S20
A
TRAN
Y001
SET S21
B
SET S41

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
35 SFC Program and Step Ladder
35.2 Step Ladder

STL OUT STL OUT STL OUT STL STL STL LD AND AND SET
S29 Y010 S39 Y011 S49 Y012 S29 S39 S49 X010 X011 X012 S50
Before recombination, first program the drive processing of the state relays. After that, program only the transfer processing to the recombination state relay.

S20 X000 S100 S30 X001 S100 S100 X003 S50 X004 S60

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
35 SFC Program and Step Ladder

S20 X000 S102 S30 X001 S102 S102 S102 S40 S50
STL STL LD SET STL LD SET LD SET
S20 S30 X000 S103 S103 X001 S40 X002 S50

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
35 SFC Program and Step Ladder
35.2 Step Ladder
Examples of single flows
1. Example of flicker circuit
M8002
SET S3 M8002 S3 S3 Y000 T0 K10 T0 S20 S20 Y001 T1 K15 T1 S3
0 1 3 4 5 8 9 11 12 13 16 17 19 20
LD SET STL OUT OUT LD SET STL OUT OUT LD OUT RET END
Y000
Y000
Y001
K10 T0
T0
1.5 seconds
STL S20
Y001
K15 T1
T1
RET
END

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
35 SFC Program and Step Ladder
FNC277-FNC279 Data Transfer 3
FNC280-FNC289 High-Speed Processing 2
Enable STL monitoring STL transfer disable
M8000 0 1 3 4 5 7 8 10 11 12 13 15 16 17 20 21 23 24 25 28 29 31 32 33 36 37 39 40 41 44 45 46 48 49 50 52 53
LD OUT LD ANI OUT LD SET STL OUT LD SET STL OUT OUT LD SET STL OUT OUT LD SET STL OUT OUT LD SET STL OUT OUT LD AND OUT LD ANI OUT RET END
M8000 M8047 X002 X000 M8040 M8002 S3 S3 Y000 X000 S20 S20 Y001 T1 K20 T1 S21 S21 Y002 T2 K20 T2 S22 S22 Y003 T3 K20 T3 S27 S27 Y007 T7 K20 T7 X001 S20 T7 X001 S3
FNC290-FNC299 Extension File Register Control
M8040
M8002 7 SET
STL
FNC300-FNC305 FX 3U -CF-ADP
Y000
X000 12 SET
15 STL
Y001
K20 T1
T1 20 SET
23 STL
Y002
T2
T2 28 SET
K20
31 STL
Y003
T3
K20
T3 36 SET
39 STL
Y007
T7
K20
44 T7 X001
A
48 T7 X001
RET
END
B

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
35 SFC Program and Step Ladder
35.2 Step Ladder
1. Example of selecting and carrying large and small balls The figure below shows a mechanism which selects and carries large and small balls using conveyors. The upper left position is regarded as the origin, and the mechanism performs in the order "moving down → suction → moving up → moving rightward → moving down → release → moving up → moving leftward". When the arm moves down and the electromagnet pushes a large ball, the lower limit switch LS2 turns OFF. When the electromagnet pushes a small ball, LS2 turns ON.

When a large ball is pushed, the piston does not reach the lower limit and X002 does not turn ON.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
35 SFC Program and Step Ladder
The figure below shows a step ladder program for selecting the product size and judging products as either accepted or rejected.
FNC277-FNC279 Data Transfer 3
S0 M8002
SET
S30 STL
X001 X003
Y001
Y000
Y007
FNC280-FNC289 High-Speed Processing 2
S0 7 STL
X026 X007
S31 STL
S21 SET
73 RST
Y001
S21 STL
T2
FNC290-FNC299 Extension File Register Control
K10 T2
S32 SET 77
T0
K20
S32 STL
T0 X002
17 S22 SET
Lower limit (small ball)
T0 X002
FNC300-FNC305 FX 3U -CF-ADP
S25 SET
S33 SET 82
S22 STL
S33 STL
85 X001 86 X001 89
Y001 SET
Y003
Y004
T1
K10
30 T1
SET
RET
33 STL
END
34 SET
Y001
The ON status is transferred to the recombination state relay S30 when X004 turns ON in the case of a small product, or when X005 turns ON in the case of a large product.
K10
When the special auxiliary relay M8040 is driven, all transfers to any state relay are disabled. In each of the state relays S24, S27 and S33, an interlock contact is connected in series respectively to the rightward movement output Y003 and leftward movement output Y004.
SET
41 STL
Y002
<List program>
T3
0 1 3 4 5 6 7 8 9 10 12 13 14 17 18 19 21 22 23 25 26 27 30 31 33
LD SET LD AND ANI OUT STL LD AND SET STL OUT OUT LD AND SET LD ANI SET STL SET OUT LD SET STL
M8002 S0 X001 X003 Y001 Y007 S0 X026 Y007 S21 S21 Y000 T0 K20 T0 X002 S22 T0 X002 S25 S22 Y001 T1 K10 T1 S23 S25
34 35 38 39 41 42 43 44 46 47 48 49 51 52 53 54 55 56 57 58 59 60 61 63 64
SET OUT LD SET STL OUT LD SET STL OUT LD SET STL LDI ANI OUT STL LDI ANI OUT STL LD SET STL LD
Y001 T1 K10 T1 S26 S233 Y002 T3 S24 S26 Y002 X003 S27 S24 X004 Y004 Y003 S27 X005 Y004 Y003 S24 X004 S30 S27 X005
65 67 68 69 70 72 73 74 77 78 80 81 82 83 85 86 87 88 89 90 92 93
SET STL OUT LD SET STL RST OUT LD SET STL OUT LD SET STL LDI ANI OUT LD OUT RET END
S30 S30 Y000 X002 S31 S31 Y001 T2 K10 T2 S32 S32 Y002 X003 S33 S33 X001 Y003 Y004 X001 S0
STL
Y002
SET
STL
Y004
Y003
STL
A
Y004
Y003
S24 STL
S30 SET
S27 STL
B
S30 SET

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
35 SFC Program and Step Ladder
35.2 Step Ladder
When the parts A, B and C are processed in parallel and then assembled, flows having parallel branches and recombination are used.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
35 SFC Program and Step Ladder
FNC277-FNC279 Data Transfer 3
M8002
61 C0 T5
SET
S34 SET
C0 T5
S0 STL
Y003
FNC280-FNC289 High-Speed Processing 2
Y005
S21 SET
C0 RST
S30 SET
T6
K50
FNC290-FNC299 Extension File Register Control
S23 STL
S34 STL
T0
78 T6
K300
17 T0
S22 SET
RET
FNC300-FNC305 FX 3U -CF-ADP
S30 STL
END
Y005
S31 SET
S22 STL
Y002
0 1 3 4 5 6 7 8 10 12 13 14 17 18 20 21 22 23 25
LD SET STL OUT OUT LD OR SET SET STL OUT OUT LD SET STL OUT LD SET STL
M8002 S0 S0 Y003 Y005 X000 X001 S21 S30 S21 Y003 T0 K300 T0 S22 S30 Y005 T2 S31 S22
26 27 30 31 33 34 35 38 39 41 42 43 46 47 50 51 53 54 55
OUT OUT LD SET STL OUT OUT LD SET STL OUT OUT STL OUT LD SET STL OUT OUT
Y002 T1 K100 T1 S23 S31 Y006 T3 K150 T3 S32 S23 Y001 T2 K50 S32 T4 K5 T4 S33 S33 Y006 C0 K5
58 61 62 63 65 66 67 69 70 71 73 76 77 78 79 81 82
OUT LD AND SET LDI AND OUT STL OUT RST OUT STL STL LD OUT RET END
T5 K5 C0 T5 S34 C0 T5 S32 S34 Y005 C0 T6 K50 S23 S34 T6 S0
K100
30 T1
S23 SET
S31 STL
Y006
K150
38 T3
S32 SET
S23 STL
K50 T2
S32 STL
K5 T4
T4 50
S33 SET
A
S33 STL
Y006
This counter counts how many times the state relay S33 turns ON. When S33 turns ON five times, the contact C0 turns ON.
T5
B
K5

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
36 Interrupt Function and Pulse Catch Function
36.1 Outline
This chapter explains the built-in interrupt function and pulse catch function in FX PLC.
This section explains the function to immediately execute an interrupt program (interrupt routine) without affecting the operation cycle of the sequence program (main) while using a interrupt function as a trigger. The delay by operation cycle and machine operation affected by uneven time intervals in normal sequence program process can be improved.
By the input signal from an input (X000 to X005), the main sequence program is paused, and an interrupt routine program is executed with priority. The input interrupt execution timing can be specified on the rising edge or falling edge of the signal by the pointer number.
→ For details, refer to Section 36.3.
By the input signal from an input (X000 to X005), the main sequence program is paused, and an interrupt routine program is executed with priority after the delay time (set in units of 1 ms). The input interrupt execution timing can be specified on the rising edge or falling edge of the signal by the pointer number.
→ For details, refer to Section 36.4.
→ For details, refer to Section 36.5.
When the current value of a high-speed counter reaches a specified value, the main sequence program is paused and an interrupt routine program is executed with priority.
→ For details, refer to Section 36.6.
When the input signal from an input (X000 to X007) turns from OFF to ON, a special auxiliary relay M8170 to M8177 is immediately set to ON by interrupt processing. Relays M8170 to M8177 are used in a normal sequence program. A relay remains ON after its input signal turns OFF, so a short pulse can be easily received. When processing such a signal that turns ON and OFF several times in one operation cycle, however, use the input interrupt function.
→ For details, refer to Section 36.7.
6. Pulse width/Pulse period measurement function When the input signal from an input (X000, X001, X003 or X004) turns from OFF to ON, the value of the 1/6 µs ring counter at the input signal rising edge is stored in special data registers. When the input signal turns OFF from ON, the value of the 1/6 µs ring counter at the input signal falling edge is stored in special data registers. At the same time, the difference in the counter value between the rising edge and the falling edge is divided by "60", and the pulse width in units of 10 µs is stored in special data registers. In the pulse period measurement mode, when the input signal turns from OFF to ON, the difference between the previous rising of the input signal and the current rising of the input signal is divided by "60", and then the pulse period in units of 10 µs is stored in special data registers.
→ For details, refer to Section 36.8.
*1. This function is supported only in DC input type.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
36 Interrupt Function and Pulse Catch Function
36.2 Common Items
FNC277-FNC279 Data Transfer 3
This section describes how to disable the interrupt function.
FNC280-FNC289 High-Speed Processing 2
FNC290-FNC299 Extension File Register Control
FNC300-FNC305 FX 3U -CF-ADP
DI
FEND
excluded. b) When the disabled zone is long, interrupts are accepted, but the interrupt processing is started after
considerable time. When the interrupt disabling setting is not required, program only EI instruction. It is not always necessary to program DI instruction.
Input interrupt The input interrupts X000 to X005 correspond to M8050 to M8055*1 respectively. When a relay M8050 to M8055 turns ON, a corresponding input interrupt is disabled.
Timer interrupt The timer interrupts I6 to I8 correspond to M8056 to M8058*1 respectively. When a relay M8056 to M8058 turns ON, a corresponding timer interrupt is disabled.
High-speed counter interrupt When M8059*1 turns ON, all of the high-speed counter interrupts I010 to I060 are disabled.
*1. Cleared when the PLC mode is changed from RUN to STOP.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
36 Interrupt Function and Pulse Catch Function
36.2 Common Items
M20
M8053
Command to disable an interrupt triggered by X003
When the rising edge of X003 is detected
END
36.2.2 Related items
This section explains common cautions on using the interrupt function or pulse catch function. Specific cautions on each interrupt function are explained in the description of each interrupt function.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
36 Interrupt Function and Pulse Catch Function
FNC277-FNC279 Data Transfer 3
FNC280-FNC289 High-Speed Processing 2
FNC290-FNC299 Extension File Register Control
6. Operation of devices latched in the ON status [interrupt function] Devices which were set to ON in an interrupt routine are held in the ON status even after the interrupt routine is finished. When the RST instruction for a timer or counter is executed, the reset status of the timer or counter is also held. To turn OFF a device held in the ON status or for canceling such a timer or counter held in the reset status, reset such a device or deactivate the RST instruction respectively inside or outside the routine.
Example in which outputs are latched
In the program example shown below, the counter C0 is provided to count X001. When X001 turns from OFF to ON, the interrupt program I001 is executed only in one scan, and then the counter C0 is reset and Y007 is output.
K10
FEND
M8000
RST C0
Y007
IRET
Execution of interrupt program I001 triggered by X000
Because the C0 reset instruction is valid, the current value of C0 remains unchanged even if a pulses are input.
Current value of C0 1 2 3 Counter is reset
Y007
Y007 is being output
Outputs are latched.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
36 Interrupt Function and Pulse Catch Function
36.2 Common Items

RST Y007 Program to reset Y007 at an arbitrary time.
Program to deactivate the preceding C0 reset instruction inside the subroutine.

Counter reset instruction is deactivated (part B in above program).

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
36 Interrupt Function and Pulse Catch Function
36.3 Input Interrupt (Interrupt Triggered by External Signal) [Without Delay Function]
FNC277-FNC279 Data Transfer 3
FNC280-FNC289 High-Speed Processing 2
FNC290-FNC299 Extension File Register Control
Main program Interrupt inputs are accepted after EI instruction. It is not necessary to program DI (disable interrupt) instruction if there is no zone where input interrupts should be disabled.
Interrupts are enabled FNC 04
FNC300-FNC305 FX 3U -CF-ADP
End of main program
FEND instruction finishes the main program. Make sure to describe an interrupt routine after FEND instruction.
pointer When the rising edge of X000 is detected
When X000 turns ON, its rising edge is detected, and the interrupt routine [1] is executed. IRET instruction returns the program execution to the main program.
Interrupt routine [1] (interrupt program)
pointer When the falling edge of X001 is detected
When X001 turns OFF, its falling edge is detected, and the interrupt routine [2] is executed. IRET instruction returns the program execution to the main program.
Interrupt routine [2] (interrupt program)
"END" indicates the end of program.
4. Number and operation of (six) interrupt pointers
0 to 5 according to the inputs X000 to X005
Interrupt disable command Interrupt at rising edge Interrupt at falling edge
X001 I101 I100 M8051 *1
X002 I201 I200 M8052 *1
X003 I301 I300 M8053 *1
B
X004 I401 I400 M8054 *1
X005 I501 I500 M8055 *1
*1. Cleared when the PLC mode is changed from RUN to STOP.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
36 Interrupt Function and Pulse Catch Function
36.3 Input Interrupt (Interrupt Triggered by External Signal) [Without Delay Function]
PLC Input number Input filter value when "0" is set
X000,X001 10 µs
X002,X003,X004,X005 50 µs
X000,X001,X003,X004 10 µs
X002,X005 50 µs
FX3U, FX3UC X000 to X005 5 µs*1
*1. When using the input filter at the filter value of 5 µs or when receiving a pulse whose response frequency is 50 k to 100 kHz using a high-speed counter, perform the following: - Make sure that the wiring length is 5 m or less. - Connect a bleeder resistor of 1.5 kΩ (1 W or more) to an input terminal, and make sure that the load
current of the open collector transistor output in the counterpart equipment is 20 mA or more including the input current in the main unit.
Interrupts are enabled by the EI instruction. The main program is described.
The main program is finished by the FEND instruction.
When the rising edge of X000 is detected M8000
When an interrupt routine is executed by turning ON of X000, Y000 is set to ON unconditionally.
Y000 K8 *2 FNC 50
The outputs Y000 to Y007 are overwritten with the latest information by the output refresh instruction. If the output refresh instruction is not provided, Y000 turns ON after the END instruction after the program execution returned to the main routine.
IRET
If "SET Y000" is changed to "RST Y000", Y000 is immediately set to OFF by turning ON of X000.
*2. Make sure to specify a multiple of "8" for the number of inputs/outputs to be refreshed by the REF (FNC 50) instruction. If any value other than a multiple of "8" is specified, an operation error occurs and the REF (FNC 50) instruction is not executed.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
36 Interrupt Function and Pulse Catch Function
FNC277-FNC279 Data Transfer 3
Interrupts are enabled by EI instruction. The main program is described.
FNC280-FNC289 High-Speed Processing 2
The main program is finished by FEND instruction.
When the rising edge of X001 is detected M8000
When an interrupt routine is executed by turning X001 to ON, the input refresh is executed unconditionally, and the ON/OFF information of X010 to X017 at the current time is received.
Y001 SET
FNC290-FNC299 Extension File Register Control
Y001 is set to ON or OFF according to the ON/ OFF status of X010.
IRET
FNC300-FNC305 FX 3U -CF-ADP
END
*1. Make sure to specify a multiple of "8" as the number of inputs/outputs to be refreshed by REF (FNC 50) instruction. If any value other than a multiple of "8" is specified, an operation error occurs and REF (FNC 50) instruction is not executed.
Interrupts are enabled by EI instruction. The main program is described.
The main program is finished by FEND instruction.
pointer When the rising edge of X002 is detected
D0 FNC 24
When X002 turns ON, "1" is added to the value of D0. INC instruction executes increment in every operation cycle, but the interrupt routine is executed only once by an input signal. Accordingly, it is not necessary to use INCP (pulse operation type) instruction.
IRET
END
A
B

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
36 Interrupt Function and Pulse Catch Function
36.3 Input Interrupt (Interrupt Triggered by External Signal) [Without Delay Function]
T0 T0
Interrupts are enabled by EI instruction.
M0
The ON/OFF signal in M0 is utilized in this program.
T0
K10
The period of time to hold M0 is specified.
RST M0
After the timer time, M0 is reset.
The main program is finished by FEND instruction.
pointer When the rising edge of X003 is detected
SET M0
When X003 turns ON and the interrupt routine is executed, M0 is set to ON unconditionally.
END

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
36 Interrupt Function and Pulse Catch Function
FNC277-FNC279 Data Transfer 3
By using a 1 ms retentive type timer or the special data register D8099 (high-speed ring counter), the short pulse width can be measured in 1 ms or 0.1 ms units.
X010:Preparation for measurement
FNC280-FNC289 High-Speed Processing 2
SW(X000,X001)
0V S/S X000 X001
ex:FX3U PLC(sink input)
This period of time is measured.
Interrupts are enabled by the EI instruction. The main program is described.
FNC290-FNC299 Extension File Register Control
The main program is finished by the FEND instruction.
When the rising edge of X000 is detected
FNC300-FNC305 FX 3U -CF-ADP
M8000
The reset status is cleared
When X000 turns ON, the 1 ms timer T246 is started up by the interrupt I001.
A
RST M0
RST D0
T246
K32767
IRET
When the falling edge of X001 is detected
When X001 turns OFF, the current value of T246 is transferred to the data register D0 for storing the measured value by the interrupt I100, and M0 for the complete signal is set to ON.
M0V
SET M0
M0
T246
K1
"T246" is set to OFF, and the timer is stopped.
RST T246
B
IRET
END
A
B

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
36 Interrupt Function and Pulse Catch Function
36.3 Input Interrupt (Interrupt Triggered by External Signal) [Without Delay Function]


Interrupts are enabled by the EI instruction. The main program is described.
The special data register M8099 up-counts the 0.1 ms clock from the next operation cycle after being driven. When the count value exceeds "32767", it is returned to "0".

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
36 Interrupt Function and Pulse Catch Function
36.4 Input interrupt (Interrupt by External Signal) [With Delay Function]
FNC277-FNC279 Data Transfer 3
FNC280-FNC289 High-Speed Processing 2
Contact for setting delay time
FNC290-FNC299 Extension File Register Control
MOV K* Delay time specification program Make sure to describe the delay time specification program shown on the left at the head of an interrupt routine program. Do not add, change, or delete this routine program when writing during RUN. Interrupt programs may not operate normally. Because this program is a pattern program, change only the delay time ([1]). Only a constant (K) or data register (D) is available for specifying the time here*. If any other device or constant is used, the delay time setting becomes invalid and the interrupt functions as a normal input interrupt. If the contents of the set data register (D) are "0", the delay time is regarded as "0".
Program to be executed as input interrupt
End of interrupt program. •
3. Timing chart
Because the previous interrupt processing is not completed, the interrupt processing is not executed here.
Interrupt input (X000 to X005)
Interrupt program is executed

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
36 Interrupt Function and Pulse Catch Function
36.5 Timer Interrupt (Interrupt in Constant Cycle)
Timer interrupts are enabled after the EI instruction. It is not necessary to program DI (disable interrupt) if there is no zone where input interrupts should be disabled.
End of main program
The FEND instruction indicates the end of the main program. Make sure to describe an interrupt routine after the FEND instruction.
When interrupt is given at every 20 ms
The interrupt routine is executed at every 20 ms. Create a program to be executed as interrupt. The IRET instruction returns the program execution to the main program.
END
4. Number and operation of (three) timer interrupt pointers
I
Timer interrupt pointer (6, 7 or 8)
An interrupt routine program is executed at every specified interrupt cycle time (10 to 99 ms). Use the type of interrupt in control requiring cyclic interrupt processing regardless of the operating cycle of a PLC.
Input number Interrupt cycle (ms) Interrupt disable Flag
An integer ranging from 10 to 99 is put in " " in the pointer name. Example: "I610" indicates a timer interrupt at every 10 ms.
I8 M8058 *1
*1. Cleared when the PLC mode is changed from RUN to STOP.
If the timer interrupt time is set to 9ms or less, the timer interrupt processing may not be executed in an accurate cycle in the following cases. Therefore, using a time that is over 10 ms is recommended.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
36 Interrupt Function and Pulse Catch Function
FNC277-FNC279 Data Transfer 3
refer to Subsection 36.5.2. In the program example shown below, data is added and the addition result is compared with the set value every 10 ms.
Interrupts are enabled by EI instruction. The main program is described.
FNC280-FNC289 High-Speed Processing 2
SET M3
When M3 is set to ON, INC (FNC 24) instruction becomes valid.
The main program is finished by FEND instruction.
When interrupt is given at every 10 ms M3
FNC290-FNC299 Extension File Register Control
"1" is added to the current value of D0 at every 10 ms.
When the current value of D0 reaches "1000", M3 is reset.
LD=
The current value of D0 is ramp data which changes from "0" to "1000" in 10 seconds. In the program example using RAMP (FNC 67) instruction shown later, the ramp data is made using a dedicated applied instruction.
IRET
END
36.5.2 Examples of practical program (timer interrupt programs using applied instruction)
RAMP (FNC 67), HKY (FNC 71), SEGL (FNC 74), ARWS (FNC 75) and PR (FNC 77) instructions execute a series of operations in synchronization with the scan time. Because the total time may be too long or time fluctuation may cause a problem in these instructions, it is recommended to execute these instructions at a constant time interval using the timer interrupt function. When not using the timer interrupt function, use the constant scan mode.
Interrupts are enabled by EI instruction. The main program is described.
The main program is finished by FEND instruction.
pointer When interrupt is given every 20 ms M8000
The latest input information is received from X000 to X007.
REF
X000 Y000 D0 M0
HKY (FNC 71) is executed in one scan.
A
Y000 to Y007 are refreshed to the latest output information.
REF
IRET
B
END

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
36 Interrupt Function and Pulse Catch Function
36.5 Timer Interrupt (Interrupt in Constant Cycle)
→ For the use method of the instruction execution complete flag M8029, refer to Subsection 6.5.2.
→ For RAMP (FNC 67) instruction, refer to Section 14.8.

Interrupts are enabled by EI instruction. The main program is described.
With M8026 turned ON, when the value of (D3) reaches the final value (D2), the final value is latched.
As soon as the start command is given, the initial value (D1) and target value (D2) are transferred.
MOV K255 D 2
PLS M 0
M 0
SET M 1
The main program is finished by FEND instruction.
When interrupt is given every 10 ms
While the instruction is executed 1000 times (in 10 seconds), the contents of D3 are changed from the value of D1 to the value of D2.
M 1 M8029
When the instruction execution complete flag M8029 turns ON, RAMP instruction drive input is set to OFF. If RAMP (FNC 67) instruction is continuously executed while M8026 is OFF, the value of D3 returns to the initial value (D1) immediately after it reaches the final value (D2), and then the same operation is repeated. This program is not necessary when M8026 is ON.
IRET
END

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
36 Interrupt Function and Pulse Catch Function
FNC277-FNC279 Data Transfer 3
FNC280-FNC289 High-Speed Processing 2
M100 FNC270
IVCK K6 H6F D100 K1
Instruction to use M8029 in the main program
When an interrupt occurs at this timing, whether the instruction is executed completely cannot be determined properly.
FNC290-FNC299 Extension File Register Control
FEND
Interrupt at every 20 ms
REF X000 K8
FNC300-FNC305 FX 3U -CF-ADP
X000 Y000
D0 M0
HKY
K8 FNC 50
REF
Y000
IRET
END
EI
DI
M100 FNC270
Instruction to use M8029 in the main program
M100 M8029
RST
EI
Interrupt at every 20 ms
M8000
REF X000 K8
A
HKY
X000 Y000
D0 M0
K8 FNC 50
Y000
REF
IRET
B
END

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
36 Interrupt Function and Pulse Catch Function
36.6 Counter Interrupt - Interrupt Triggered by Counting Up of High-Speed Counter

Main program Interrupts are enabled after EI (FNC 04) instruction. The main program is described.
The coil of a high-speed counter is driven, and an interrupt pointer is specified in DHSCS (FNC 53) instruction.
When the current value of C255 changes from "999" to "1000", the interrupt routine is executed. For an interrupt routine use example, refer to the input interrupt function described in the preceding section.
*1. When the comparison value specified by a data register, etc. is changed, the current value is actually changed to the specified value when END instruction is executed.
Counter interrupt pointer (1 to 6)
Pointer No. Interrupt disable flag
*2. Cleared when the PLC mode is changed from RUN to STOP.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
36 Interrupt Function and Pulse Catch Function
36.7 Pulse Catch Function [M8170 to M8177]
FNC277-FNC279 Data Transfer 3
If the EI instruction is anywhere in the sequence program, the pulse catch function is always enabled. When an input relay X000 to X007 turns from OFF to ON, a special auxiliary relay M8170 to M8177 is immediately set to ON by interrupt processing. The EI (FNC 04) instruction is not required in FX3S/FX3G/FX3GC PLCs.
FNC280-FNC289 High-Speed Processing 2
Pulse catch input Pulse catch relay
X001 M8171 *1
X002 M8172 *1
FNC290-FNC299 Extension File Register Control
X004 M8174 *1
X005 M8175 *1
X006 M8176 *1*2
X007 M8177 *1*2
FNC300-FNC305 FX 3U -CF-ADP
*1. Cleared when the PLC mode is changed from STOP to RUN.
*2. This function is supported only in FX3U/FX3UC PLCs.
FNC 04 EI Step
0 The EI (FNC 04) instruction is not required in FX3S/FX3G/FX3GC PLCs.
Y000 When the rising edge of X000 is detected, M8170 is set as interrupt.
The pulse catch result is reset.
PLC Input number Input pulse width
X000, X001 10 µs or more
X002 to X005 50 µs or more
X000, X001,
X003, X004 10 µs or more
X002, X005 50 µs or more
X000 to X005 5 µs*3 or more
X006, X007 50 µs or more
*3. When using the pulse catch function at 5 µs or when receiving a pulse whose response frequency is 50 k to 100 kHz using a high-speed counter, perform the following: - Make sure that the wiring length is 5 m or less. - Connect a bleeder resistor of 1.5 kΩ (1 W or more) to the input terminal, and make sure that the load current
of the open collector transistor output in the counterpart equipment is 20 mA or more including the input current in the main unit.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
36 Interrupt Function and Pulse Catch Function
36.8 Pulse width/Pulse period measurement function [M8075 to M8079, D8074 to D8097]
The pulse width/pulse period measurement function stores the values of 1/6 µs ring counters at the input signal rising edge and falling edge to special data registers. This function also divides by "60" the difference in the counter value (pulse width) between the rising edge and the falling edge or the difference in the counter value (pulse period) between the previous rising edge and the current rising edge, and stores the obtained pulse width or pulse period in units of 10 µs to special data registers.
The pulse width/pulse period measurement function becomes valid when a program is described using M8075 as a contact. Specify the pulse width measurement flag in the subsequent OUT instruction, and set an input terminal to be used. When the pulse width/pulse period measurement function is valid, it always operates while the PLC mode is RUN.
Assignment of special auxiliary relays and special data registers
![Mitsubishi Electronics MELSEC FX3S — 36.8 Pulse width/Pulse period measurement function [M8075 to M8079, D8074 to D8097] diagram (page 822)](/cdn/reader/06/06b6c5c8bfa3e981e964d8ed7432322fb86c682a85757d292a29f9cec2d4294a/images/fig-822-1.webp)
*1. Cleared when the PLC mode switches from STOP to RUN.
*2. The measurable pulse width is 10 µs minimum and 100 s maximum. The measurable pulse period is 20 µs minimum and 100 s maximum.

Interrupts are enabled after EI (FNC 04) instruction. The main program is described.
X000 is used for the pulse width/pulse period measurement function.
When the interrupt routine is executed at the falling edge of the input signal from X000, the pulse width of input signal from X000 stored in D8078 and D8079 is transferred to D1 and D0.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
36 Interrupt Function and Pulse Catch Function
36.8 Pulse width/Pulse period measurement function [M8075 to M8079, D8074 to D8097] 31
FNC277-FNC279 Data Transfer 3
OFF
This duration is measured.
FNC280-FNC289 High-Speed Processing 2
Interrupts are enabled after the EI (FNC 04) instruction. The main program is described.
M8075
M8076
X000 is used for the pulse width/pulse period measurement function.
FNC290-FNC299 Extension File Register Control
When X002 turns ON, the pulse period measurement mode is actuated.
FNC300-FNC305 FX 3U -CF-ADP
FEND
X000 Rising edge interrupt
When the interrupt routine is executed at the rising edge of the input signal from X000, the pulse period of input signal from X000 stored in D8078 and D8079 is transferred to D1 and D0.
DMOV D8078 D0
User program (Interrupt at the rising edge(X000))
END
- Timing chart The pulse period is not measured when the input signal rises for the first time after the PLC mode is changed from STOP to RUN, or when the input signal rises for the first time after the pulse period measurement mode (M8080) is set to from OFF to ON. (Accordingly, D8078 and D8079 are not updated.) The pulse period is measured when the input signal rises at the next time. (As a result, D8078 and D8079 are updated.)
Make the pulse width/pulse period measurement setting flag (M8080) remain OFF for 1 operation cycle or more when discontinuing the pulse input. If M8080 does not remain OFF for 1 operation cycle or more, the "a" period shown below is stored as the pulse period.
M8080
ON ON
A
The pulse period is not measured.
The pulse period is not measured.
The pulse period is measured. (D8078 and D8079 are updated.) The pulse period is measured. (D8078 and D8079 are updated.)

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
36 Interrupt Function and Pulse Catch Function
36.8 Pulse width/Pulse period measurement function [M8075 to M8079, D8074 to D8097]
OFF
ON
OFF
This duration is measured.
Interrupts are enabled after the EI (FNC 04) instruction. The main program is described.
M8075
X000 is used for the pulse width/pulse period measurement function.
Pulse width /Pulse period measurement setting flag
X001 is used for the pulse width/pulse period measurement function.
FEND
The interrupt routine is executed at the rising edge of the input signal from X001.
X001 Rising edge interrupt
The ring counter value at the rising edge of the input signal from X000 stored in D8074 and D8075 is transferred to D1 and D0.
The ring counter value at the rising edge of the input signal from X001 stored in D8080 and D8081 is transferred to D3 and D2.
The value "Ring counter value at the rising edge of the input signal from X001 - Ring counter value at the rising edge of the input signal from X000" is stored in D9 and D8.
DSUB
When either one between the ring counter value at the rising edge of the input signal from X000 and the ring counter value at the rising edge of the input signal from X001 is located ranging from H80000000 to HFFFFFFFF, the following process is executed, and the value "Ring counter value at the rising edge of the input signal from X001 - Ring counter value at the rising edge of the input signal from X000" is stored in D9 and D8*1.
K0
ANDD< D2 K0 FNC 21
DSUB H7FFFFFFF
D0 D4
X000 Rising edge ring counter value: H0 to H7FFFFFFF X001 Rising edge ring counter value: H80000000 to HFFFFFFFF
DADD D4 D6 D8
DINC D8
LDD< D0 FNC238 ANDD>= D2 K0 FNC 21
K0
DSUB HFFFFFFFF
D0 D4
X000 Rising edge ring counter value: H80000000 to HFFFFFFFF X001 Rising edge ring counter value: H0 to H7FFFFFFF
DINC D8
M8000 FNC 23
The obtained value is converted into a value in units of 10 µs.
User program (Interrupt at the rising edge(X001))
END

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
36 Interrupt Function and Pulse Catch Function
36.8 Pulse width/Pulse period measurement function [M8075 to M8079, D8074 to D8097] 31
*1. The ring counter offers 32-bit data including the most significant bit. The DSUB (FNC21) instruction does not give a correct value because it handles the most significant bit as the sign bit. To obtain a correct value, add the processing inside the dotted frame.
FNC277-FNC279 Data Transfer 3
FNC280-FNC289 High-Speed Processing 2
FNC290-FNC299 Extension File Register Control
→ For details on high-speed counters, refer to Subsection 4.7.7.
A
B

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
37 Operation of Special Devices (M8000 -, D8000 -)
37.1 Special Device List (M8000 -, D8000 -)
37.1 Special Device List (M8000 -, D8000 -)
The device numbers and functions of the special auxiliary relays (indicated as "special M" in tables) and special data registers (indicated as "special D" in tables) are shown below. Note that functions of certain devices vary depending on the series of the PLC. Do not use the undefined / blank special auxiliary relays and special data registers in the sequence program since they are occupied by the CPU. In addition, do not activate or write to the devices with brackets on the first letter such as [M]8000 or [D]8001 in the program.
→ Refer to Section 37.2 for supplementary information on analog special adapter devices.
name Operation and function
FX3S FX3G FX3GC FX3U FX3UC
FX1S FX1N FX1NC FX2N FX2NC
[M]8000 RUN monitor NO contact
3 – 3
[M]8001 RUN monitor NC contact
3 – 3
M8001
[M]8002 Initial pulse NO contact
3 – 3
[M]8003 Initial pulse NC contact
3 – 3
→Refer to Subsection 37.2.1.
ON when battery voltage is below the value set in D8006.
[M]8005 Battery voltage low
→Refer to Subsection 37.2.3.
[M]8006 Battery error latch
It is set when battery voltage low is detected.
→Refer to Subsection 37.2.3. – 3 D8006 – – – 3 3
ON for 1 scan, when momentary power failure is detected Even if M8007 turns ON, PLC continues to RUN as long as the duration of power loss is within the time period specified in D8008.
[M]8007 Momentary power failure
– – – 3 3 D8007 D8008 – – – 3 3
→Refer to Subsection 37.2.4.
It is set when momentary power failure is detected. If power loss time is longer than the time period specified in D8008, M8008 is reset and PLC is switched to STOP mode. (M8000=OFF).
[M]8008 Power failure detected
→Refer to Subsection 37.2.4.
[M]8009 24V DC down ON when 24 V DC power fails in an I/O extension unit or special function block. – 3 D8009 – – – 3 3

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
37 Operation of Special Devices (M8000 -, D8000 -)
FNC277-FNC279 Data Transfer 3
name Operation and function
FX3S FX3G FX3GC FX3U FX3UC
FX1S FX1N FX1NC FX2N FX2NC
Clock [M]8010 Not used –
ON and OFF in 10 ms cycles (ON: 5 ms, OFF: 5 ms)
[M]8011 10 ms clock pulse
3 – 3
FNC280-FNC289 High-Speed Processing 2
→Refer to Subsection 37.2.6.
ON and OFF in 100 ms cycles (ON: 50 ms, OFF: 50 ms)
[M]8012 100 ms clock pulse
3 – 3
→Refer to Subsection 37.2.6.
ON and OFF in 1 sec cycles (ON: 500 ms, OFF: 500 ms)
[M]8013 1 sec clock pulse
3 – 3
→Refer to Subsection 37.2.6.
ON and OFF in 1 min cycles (ON: 30 sec, OFF: 30 sec)
FNC290-FNC299 Extension File Register Control
[M]8014 1 min clock pulse
3 – 3
→Refer to Subsection 37.2.6.
Clock stop and preset For real time clock
3 – 3*3
→Refer to Subsection 37.2.7.
Time read display is stopped For real time clock
3 – 3*3
→Refer to Subsection 37.2.7.
±30 seconds correction For real time clock
3 – 3*3
→Refer to Subsection 37.2.7.
Installation detection (Always ON) For real time clock
3 – 3 (Always ON)*3
→Refer to Subsection 37.2.7.
Real time clock (RTC) error For real time clock
3 – 3*3
→Refer to Subsection 37.2.7.
ON when the result of addition/subtraction is 0.
→Refer to Subsection 6.5.2 for usage. 3 – 3
ON when the result of subtraction is less than the min. negative number.
3 – 3
→Refer to Subsection 6.5.2 for usage.
ON when 'carry' occurs in result of addition or when an overflow occurs in result of shift operation.
3 – 3
→Refer to Subsection 6.5.2 for usage.
[M]8023 Not used –
M 8024*1 BMOV direction specification (FNC 15) 3 – – 3
M 8025*2 HSC mode (FNC 53 to 55) – – – 3 3 – 3 3
M 8026*2 RAMP mode (FNC 67) – – – 3 3 – 3 3
M 8027*2 PR mode (FNC 77) – – – 3 3 – 3 3
100 ms/10 ms timer changeover 3 – 3 – Interrupt permission during FROM/TO (FNC 78 and 79) instruction execution – 3 – 3 3
[M]8029 Instruction execution complete
ON when operation such as DSW (FNC 72) is completed.
3 – 3
→Refer to Subsection 6.5.2 for usage.
*1. The operation varies according to PLC: - Not cleared in an FX1N/FX1NC/FX2N/FX2NC PLCs. - Cleared in an FX3S/FX3G/FX3GC/FX3U/FX3UC PLCs when PLC switches from RUN to STOP.
*2. The operation varies according to PLC: - Not cleared in an FX2N/FX2NC PLCs. - Cleared in an FX3U/FX3UC PLCs when PLC switches from RUN to STOP.
*3. The FX2NC PLC requires the optional memory board (with the real time clock).

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
37 Operation of Special Devices (M8000 -, D8000 -)
37.1 Special Device List (M8000 -, D8000 -)
name Operation and function
FX3S FX3G FX3GC FX3U FX3UC
FX1S FX1N FX1NC FX2N FX2NC
When M8030 set to ON, LED on PLC is not lit even if battery voltage low is detected.
– 3 – 3 3
→Refer to Subsection 37.2.10.
If this special auxiliary relay is activated, the ON/OFF image memory of Y, M, S, T, and C, and present values of T, C, D, special data
Non-latch memory all clear
3 – 3
registers*3, and R*2 are cleared to zero. However, file registers (D) in program memory
and extension file registers (ER)*2 in the memory cassette are not cleared.
3 – 3
Latch memory all clear
→Refer to Subsection 37.2.12.
M 8033 Memory hold STOP
When PLC is switched from RUN to STOP, image memory and data memory are retained.
3 – 3
→Refer to Subsection 37.2.13.
All external output contacts of PLC are turned OFF.
3 – 3
→Refer to Subsection 37.2.14.
M 8035 Forced RUN mode
3 – 3
M 8036 Forced RUN signal 3 – 3
→Refer to Subsection 37.2.15 for details.
M 8037 Forced STOP signal
3 – 3
Communication parameter setting flag (for N:N network setting)
3 D8176 to
→Refer to Data Communication Edition.
When M8039 is ON, PLC waits until scan time specified in D8039 and then executes cyclic operation.
M 8039 Constant scan mode
→Refer to Subsection 37.2.16.
*1. It is executed when END instruction is executed.
*2. R and ER are available only in FX3G/FX3GC/FX3U/FX3UC PLCs.
*3. Special data registers are not cleared in FX1S/FX1N/FX1NC/FX2N/FX2NC PLCs.
*4. It is available in Ver. 2.00 or later.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
37 Operation of Special Devices (M8000 -, D8000 -)
FNC277-FNC279 Data Transfer 3
name Operation and function
FX3S FX3G FX3GC FX3U FX3UC
FX1S FX1N FX1NC FX2N FX2NC
Step Ladder and Annunciator (Refer to ANS (FNC 46), ANR (FNC 47), IST (FNC 60), and Chapter 35 for details.) M 8040 Transfer disable
While M8040 is turned ON, transfer between states is disabled. 3 – 3
Transfer from initial state is enabled in automatic operation mode. 3 – 3
FNC280-FNC289 High-Speed Processing 2
Pulse output is given in response to a start input. 3 – 3
Zero return complete Set this in the last state of zero return mode. 3 – 3
Zero point condition Set this when machine zero return is detected. 3 – 3
FNC290-FNC299 Extension File Register Control
M 8045 All output reset disable
Disables the ’all output reset’ function when the operation mode is changed. 3 – 3
ON when M8047 is ON and any state S0 to
S899 or S1000 to S4095*3 is active. 3 M8047 3
D8040 to D8047 are enabled when M8047 is ON. 3 D8040 to
[M]8048 *2
ON when M8049 is ON and any annunciator S900 to S999 is ON. – 3 – 3 3
Annunciator enable D8049 is enabled when M8049 is ON. – 3 D8049 M8048 – – – 3 3
*1. Cleared when the PLC switches from RUN to STOP.
*2. Executed at END instruction.
*3. S1000 to S4095 are available only in the FX3G/FX3GC/FX3U/FX3UC Series PLCs.
Interrupt Disable (Refer to Subsection 36.2.1.) for details.
3 – 3
3 – 3
3 – 3
3 – 3
3 – 3
a) The interrupt will be accepted. b) The interrupt routine will be processed promptly if it is permitted by the EI (FNC 04) instruction. However, if the DI (FNC 05) instruction disables interrupts, the interrupt program will not be processed until EI (FNC 04) permits the interrupts.
3 – 3
3 – 3 3
3 – 3 3
3 – 3 3
Interrupt of I010 to I060 disabled – – – 3 3 – 3 3
*4. Cleared when the PLC switches from RUN to STOP.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
37 Operation of Special Devices (M8000 -, D8000 -)
37.1 Special Device List (M8000 -, D8000 -)

FX3S FX3G FX3GC FX3U FX3UC
FX1S FX1N FX1NC FX2N FX2NC
Error Detection (Refer to Chapter 38 for details.) [M]8060 I/O configuration error – 3 D8060 – – – 3 3 [M]8061 PLC hardware error 3 D8061 – – – 3 3
PLC/PP communication error 3*1 – – 3*1 3*1 D8062 3
Serial communication error 0 [ch0]*2 – 3 3 – – D8062 –
[M]8063*3*4 Serial communication error 1 [ch1] 3 D8063
[M]8064 Parameter error 3 D8064 3
[M]8067*5 Operation error 3
M 8068 Operation error latch 3 D8068 D8312 D8313
M 8069*6 I/O bus check – 3 – 3 3
*1. It truns on, only when a memory access error (6230) occurs in FX3S/FX3U/FX3UC PLCs.
*2. Cleared when PLC power supply is turned from OFF to ON.
*3. The operation varies according to PLC: - Cleared in an FX1S/FX1N/FX1NC/FX2N/FX2NC PLCs when PLC switches from STOP to RUN. - Cleared in an FX3S/FX3G/FX3GC/FX3U/FX3UC PLCs when PLC power supply from OFF to ON.
*4. Serial communication error 2 [ch2] is detected by M8438 in FX3G/FX3GC/FX3U/FX3UC PLCs.
*5. Cleared when PLC switches from STOP to RUN.
*6. When M8069 is ON, I/O bus check is executed.

M 8070*7 Parallel link Set M8070 when using master station. 3 – 3
M 8071*7 Parallel link Set M8071 when using slave station. 3 – 3
[M]8072 Parallel link ON when operating 3 – 3
[M]8073 Parallel link ON when M8070 or M8071 setting is incorrect 3 – 3
*7. Cleared when PLC switches from STOP to RUN.

Sampling Trace [FX3U/FX3UC/FX2N/FX2NC] [M]8074 Not used – [M]8075 Ready request for sampling trace – – – 3 3
– – – 3 3 [M]8076 Start request for sampling trace – – – 3 3 – – – 3 3 [M]8077 ON during sampling trace – – – 3 3 – – – 3 3 [M]8078 ON when sampling trace is completed – – – 3 3 – – – 3 3 [M]8079 Sampling trace system area – – – 3 3 – – – 3 3

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
37 Operation of Special Devices (M8000 -, D8000 -)
FNC277-FNC279 Data Transfer 3
name Operation and function
FX3S FX3G FX3GC FX3U FX3UC
FX1S FX1N FX1NC FX2N FX2NC
Pulse width/Pulse period measurement [FX3G/FX3GC PLCs ] [M]8074 Not used –
[M]8075 Pulse width/Pulse period measurement setting flag – 3*1 3 –
FNC280-FNC289 High-Speed Processing 2
[M]8076 [X000] Pulse width/Pulse period measurement flag – 3*1 3 – – D8074 to
[M]8077 [X001] Pulse width/Pulse period measurement flag – 3*1 3 – – D8080 to
[M]8078 [X003] Pulse width/Pulse period measurement flag – 3*1 3 – – D8086 to
[M]8079 [X004] Pulse width/Pulse period measurement flag – 3*1 3 – – D8092 to
FNC290-FNC299 Extension File Register Control
M 8080 [X000] Pulse period measurement mode – 3*1 3 – – D8074 to
M 8081 [X001] Pulse period measurement mode – 3*1 3 – – D8080 to
M 8082 [X003] Pulse period measurement mode – 3*1 3 – – D8086 to
M 8083 [X004] Pulse period measurement mode – 3*1 3 – – D8092 to
[M]8084 to [M]8089 Not used –
*1. Available in Ver. 1.10 or later.
[M]8090 BKCMP (FNC194 to FNC199) instructions - Block comparison signal – – – 3 3*2 –
COMRD (FNC182) and BINDA (FNC261) instructions - Output character quantity selector signal
– – – 3 3*2 –
[M]8092
– [M]8093 – [M]8094 – [M]8095 – [M]8096 – [M]8097 – [M]8098 – High-Speed Ring Counter
M 8099*3 High-speed ring counter operation (in units of 0.1ms, 16 bits) – – – 3 3 D8099 – – – 3 3
[M]8100 Not used –
*2. Available in Ver. 2.20 or later.
*3. For FX2N/FX2NC PLCs, 0.1ms high-speed ring counter D8099 will operate after END instruction is executed with after M8099 is driven. For FX3U/FX3UC PLCs, 0.1ms high-speed ring counter D8099 will operate after M8099 is driven.
B

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
37 Operation of Special Devices (M8000 -, D8000 -)
37.1 Special Device List (M8000 -, D8000 -)

FX3S FX3G FX3GC FX3U FX3UC
FX1S FX1N FX1NC FX2N FX2NC
– [M]8102 – [M]8103 –
[M]8104 ON when function extension memory is installed. – D8104 D8105 – – – 3*2 3*2
[M]8105 ON during writing in RUN mode*1 3 –
[M]8106 Not used – [M]8107 Device comment registration check – – – 3 3 D8107 – [M]8108 Not used –
*1. For FX3U/FX3UC PLCs, available only when a memory cassette is connected.
*2. Available in Ver. 3.00 or later.
Output Refresh Error (Refer to Chapter 38 for details.) [M]8109 Output refresh error – 3 D8109 – – – 3 3 [M]8110 Not used – [M]8111 – Expansion Board [For FX3S/FX3G]
[M]8112 FX3G-4EX-BD: BX0 input 3*3 3*4 –
[M]8113 FX3G-4EX-BD: BX1 input 3*3 3*4 –
[M]8114 FX3G-4EX-BD: BX2 input 3*3 3*4 –
[M]8115 FX3G-4EX-BD: BX3 input 3*3 3*4 –
M 8116 FX3G-2EYT-BD: BY0 output 3*3 3*4 –
M 8117 FX3G-2EYT-BD: BY1 output 3*3 3*4 –
[M]8118 Not used – [M]8119 –
*3. Available in Ver. 1.10 or later.
*4. Available in Ver. 2.20 or later.
Expansion Board [For FX1S/FX1N]
M 8112 FX1N-4EX-BD: BX0 input – 3 3 – – – FX1N-2AD-BD: ch1 input mode change – D8112 3 3 – – –
M 8113 FX1N-4EX-BD: BX1 input – 3 3 – – – FX1N-2AD-BD: ch2 input mode change – D8113 3 3 – – –
M 8114 FX1N-4EX-BD: BX2 input – 3 3 – – – FX1N-1DA-BD: output mode change – D8114 3 3 – – – M 8115 FX1N-4EX-BD: BX3 input – 3 3 – – – M 8116 FX1N-2EYT-BD: BY0 output – 3 3 – – – M 8117 FX1N-2EYT-BD: BY1 output – 3 3 – – – [M]8118 Not used – [M]8119 – RS (FNC 80) and Computer Link [ch1] (Refer to Data Communication Edition for details.) [M]8120 Not used –
[M]8121*5 RS (FNC 80) instruction: Send wait flag 3 – 3
M 8122*5 RS (FNC 80) instruction: Send request 3 D8122 3
M 8123*5 RS (FNC 80) instruction: Receive complete flag 3 D8123
[M]8124 RS (FNC 80) instruction: Carrier detection flag 3 – 3 [M]8125 Not used – [M]8126 Computer link [ch1] Global ON 3
3
[M]8127 Computer link [ch1] On-demand send processing 3 – – – 3 3
M 8128 Computer link [ch1] On-demand error flag 3
Computer link [ch1] On-demand Word / Byte changeover RS (FNC 80) instruction: Time-out check flag
3
*5. Cleared when PLC switches from RUN to STOP or RS instruction is OFF.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
37 Operation of Special Devices (M8000 -, D8000 -)
FNC277-FNC279 Data Transfer 3
name Operation and function
FX3S FX3G FX3GC FX3U FX3UC
FX1S FX1N FX1NC FX2N FX2NC
High-Speed Counter Comparison, High-Speed Table, and Positioning [Positioning is supported in FX3S/FX3G/FX3GC/FX1S/FX1N/FX1NC]
M 8130 HSZ (FNC 55) instruction: Table comparison mode – – – 3 3 D8130
– – – 3 3
[M]8131 HSZ (FNC 55) instruction: Table comparison mode completion flag – – – 3 3 – – – 3 3
FNC280-FNC289 High-Speed Processing 2
M 8132 HSZ (FNC 55) and PLSY (FNC 57) instructions: Speed pattern mode – – – 3 3 D8131 to
– – – 3 3
[M]8133 HSZ (FNC 55) and PLSY (FNC 57) instructions: Speed pattern mode completion flag – – – 3 3 – – – 3 3
– [M]8135 – [M]8136 – [M]8137 –
FNC290-FNC299 Extension File Register Control
[M]8138 HSCT (FNC280) instruction: Instruction execution complete flag – – – 3 3 D8138 –
HSCS (FNC 53), HSCR (FNC 54), HSZ (FNC 55), HSCT (FNC280) instructions: High-speed counter comparison instruction executing
FNC300-FNC305 FX 3U -CF-ADP
M 8140 ZRN (FNC156) instruction: CLR signal output function enable – 3 3 3 – –
– [M]8142 – [M]8143 – [M]8144 – M 8145 [Y000] Pulse output stop command 3 3 3 – – – 3 3 3 – – M 8146 [Y001] Pulse output stop command 3 3 3 – – – 3 3 3 – – [M]8147 [Y000] Pulse output monitor (BUSY/READY) 3 3 3 – – – 3 3 3 – – [M]8148 [Y001] Pulse output monitor (BUSY/READY) 3 3 3 – – – 3 3 3 – – [M]8149 Not used – Inverter Communication Function (Refer to Data Communication Edition for details.) [M]8150 Not used –
[M]8151 Inverter communication in execution [ch1] 3 3*3 D8151 –
[M]8152*1 Inverter communication error [ch1] 3 3*3 D8152 –
[M]8153*1 Inverter communication error latch [ch1] 3 3*3 D8153 –
[M]8154*1 IVBWR (FNC274) instruction error [ch1] – – – 3 3 D8154 –
[M]8154 Defined per use of EXTR (FNC180) – 3*2 3*2
[M]8155 EXTR (FNC180) is using communicating port – D8155 – – – 3*2 3*2
[M]8156 Inverter communication in execution [ch2] – 3*3 D8156 –
[M]8156 Communication error or parameter error in EXTR (FNC180) instruction – D8156 – – – 3*2 3*2
Inverter communication error [ch2] – 3*3 D8157 –
Communication error in EXTR (FNC180) instruction is latched. – D8157 – – – 3*2 3*2
[M]8158*1 Inverter communication error latch [ch2] – 3*3 D8158 –
[M]8159*1 IVBWR (FNC274) instruction error [ch2] – – – 3 3 D8159 –
*1. Cleared when PLC switches from STOP to RUN.
*2. Available in Ver. 3.00 or later.
*3. Available in Ver. 1.10 or later.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
37 Operation of Special Devices (M8000 -, D8000 -)
37.1 Special Device List (M8000 -, D8000 -)
name Operation and function
FX3S FX3G FX3GC FX3U FX3UC
FX1S FX1N FX1NC FX2N FX2NC
M 8160*1 SWAP function of XCH (FNC 17) – – – 3 3 – 3 3
M 8161*1*2 8-bit process mode 3 – 3
M 8162 High-speed parallel link mode 3 – 3 [M]8163 Not used –
M 8164*1 FROM (FNC 78), TO (FNC 79) instructions: Transfer points variable mode – D8164 – – – 3*3 3
M 8165*1 SORT2 (FNC149) instruction: Sorting in descending order – – – 3 3*4 –
[M]8166 Not used –
M 8167*1 HKY (FNC 71) instruction: HEX data handling function – – – 3 3 – 3 3
M 8168*1 SMOV (FNC 13) instruction: HEX data handling function 3 – 3 3
[M]8169 Not used –
*1. Cleared when the PLC switches from RUN to STOP.
*2. Applicable to ASC (FNC 76), RS (FNC 80), ASCI (FNC 82), HEX (FNC 83), CCD (FNC 84), and CRC
(FNC188) instructions*5.
*3. Available in Ver. 2.00 or later.
*4. Available in Ver. 2.20 or later.
*5. CRC (FNC188) instruction is available only in FX3U/FX3UC PLCs.

M 8170*6 Input X000 pulse catch 3 – 3
M 8171*6 Input X001 pulse catch 3 – 3
M 8172*6 Input X002 pulse catch 3 – 3
M 8173*6 Input X003 pulse catch 3 – 3
M 8174*6 Input X004 pulse catch 3 – 3
M 8175*6 Input X005 pulse catch 3 – 3
M 8176*6 Input X006 pulse catch – – – 3 3 –
M 8177*6 Input X007 pulse catch – – – 3 3 –
*6. Cleared when PLC switches from STOP to RUN. FX3U/FX3UC/FX2N/FX2NC PLCs: EI (FNC 04) instruction is necessary. FX3S/FX3G/FX3GC/FX1S/FX1N/FX1NC PLCs: EI (FNC 04) instruction is unnecessary.
Communication Port Channel Setting (Refer to Data Communication Edition for details.) M 8178 Parallel link channel switch (OFF: ch1/ON: ch2) – 3 –
M 8179 N:N network channel switch*7 – 3 –
*7. The channel is specified by either setting or not setting M8179 in the setting program.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
37 Operation of Special Devices (M8000 -, D8000 -)
FNC277-FNC279 Data Transfer 3
name Operation and function
FX3S FX3G FX3GC FX3U FX3UC
FX1S FX1N FX1NC FX2N FX2NC
N:N Network (Refer to FX Series User’s Manual - Data Communication Edition for details.) [M]8180
– [M]8181 – [M]8182 –
FNC280-FNC289 High-Speed Processing 2
[M]8183*1 Data communication error (Master station) 3
[M]8184*1 Data communication error (Slave station No.1) 3 (M505) 3 3 3*2 3
[M]8185*1 Data communication error (Slave station No.2) 3 (M506) 3 3 3*2 3
[M]8186*1 Data communication error (Slave station No.3) 3 (M507) 3 3 3*2 3
[M]8187*1 Data communication error (Slave station No.4) 3 (M508) 3 3 3*2 3
[M]8188*1 Data communication error (Slave station No.5) 3 (M509) 3 3 3*2 3
FNC290-FNC299 Extension File Register Control
[M]8189*1 Data communication error (Slave station No.6) 3 (M510) 3 3 3*2 3
[M]8190*1 Data communication error (Slave station No.7) 3 (M511) 3 3 3*2 3
[M]8191*1 Data communication in execution 3 (M503) 3 3 3*2 3
– [M]8193 – [M]8194 – [M]8195 – [M]8196 – [M]8197 –
*1. In FX1S PLC, use numbers shown inside parentheses.
*2. Available in Ver. 2.00 or later.
High-Speed Counter Edge Count Specification (Refer to Subsection 4.8.8 for details.)
M 8198*3*4 C251, C252, C254: 1/4 edge count selector – – – 3 3 –
M 8199*3*4 C253, C255, or C253 (OP): 1/4 edge count selector – – – 3 3 –
*4. Cleared when the PLC switches from RUN to STOP.
B

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
37 Operation of Special Devices (M8000 -, D8000 -)
37.1 Special Device List (M8000 -, D8000 -)
name Operation and function
FX3S FX3G FX3GC FX3U FX3UC
FX1S FX1N FX1NC FX2N FX2NC
Counter Up/down Counter Counting Direction (Refer to Section 4.6 for details.) M 8200 C200
3 – – 3 M 8201 C201 3 – – 3 M 8202 C202 3 – – 3 M 8203 C203 – – 3 M 8204 C204 3 – – 3 M 8205 C205 3 – – 3 M 8206 C206 3 – – 3 M 8207 C207 3 – – 3 M 8208 C208 3 – – 3 M 8209 C209 3 – – 3 M 8210 C210 3 – – 3 M 8211 C211 3 – – 3 M 8212 C212 3 – – 3 M 8213 C213 – – 3 M 8214 C214 3 – – 3 M 8215 C215 3 – – 3 M 8216 C216 3 – – 3 M 8217 C217 3 – – 3 M 8218 C218 3 – – 3 M 8219 C219 3 – – 3 M 8220 C220 3 – – 3 M 8221 C221 3 – – 3 M 8222 C222 3 – – 3 M 8223 C223 – – 3 M 8224 C224 3 – – 3 M 8225 C225 3 – – 3 M 8226 C226 3 – – 3 M 8227 C227 3 – – 3 M 8228 C228 3 – – 3 M 8229 C229 3 – – 3 M 8230 C230 3 – – 3 M 8231 C231 3 – – 3 M 8232 C232 3 – – 3 M 8233 C233 – – 3 M 8234 C234 3 – – 3

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
37 Operation of Special Devices (M8000 -, D8000 -)
FNC277-FNC279 Data Transfer 3
name Operation and function
FX3S FX3G FX3GC FX3U FX3UC
FX1S FX1N FX1NC FX2N FX2NC
High-Speed Counter Up/down Counter Counting Direction (Refer to Section 4.7 or 4.8 for details.) M 8235 C235
3 – 3 M 8236 C236 3 – 3 M 8237 C237 3 – 3 M 8238 C238 3 – 3 M 8239 C239 3 – 3 M 8240 C240 3 – 3 M 8241 C241 3 – 3 M 8242 C242 3 – 3 M 8243 C243 – 3 M 8244 C244 3 – 3 M 8245 C245 3 – 3 High-Speed Counter Up/down Counter Monitoring (Refer to Section 4.7 or 4.8 for details.) [M]8246 C246
FNC280-FNC289 High-Speed Processing 2
FNC290-FNC299 Extension File Register Control
3 – 3 [M]8247 C247 3 – 3 [M]8248 C248 3 – 3 [M]8249 C249 3 – 3 [M]8250 C250 3 – 3 [M]8251 C251 3 – 3 [M]8252 C252 3 – 3 [M]8253 C253 – 3 [M]8254 C254 3 – 3 [M]8255 C255 3 – 3 [M]8256 to [M]8259 Not used – Analog Special Adapter [FX3U/FX3UC] (Refer to Subsection 37.2.19 for applicability of each analog special adapter.)
M 8260 to M 8269 1st special adapter*1 – – – 3 3*2 –
M 8270 to M 8279 2nd special adapter*1 – – – 3 3*2 –
M 8280 to M 8289 3rd special adapter*1 – – – 3 3*2 –
M 8290 to M 8299 4th special adapter*1 – – – 3 3*2 –
Analog Special Adapter [FX3S/FX3G/FX3GC], Analog Expansion Board [FX3S/FX3G] (Refer to Subsection 37.2.18 for applicability of each analog special adapter, and analog expansion board)
M 8260 to M 8269 1st expansion board*3 3 3*6 –
M 8270 to M 8279 2nd expansion board*4*5 – 3*6 –
M 8280 to M 8289 1st special adapter*1 3 3 3 –
M 8290 to M 8299 2nd special adapter*1*5 – 3 3 –
*1. Count the number of connected analog special adapter from the main unit.
*2. Available in Ver. 1.20 or later.
*3. Expansion board connected to the BD1 connector of a FX3G PLC (40-point and 60-point type) or the BD connector of a FX3G PLC (14-point and 24-point type) and FX3S PLC.
*4. Expansion board connected to the BD2 connector of a FX3G PLC (40-point and 60-point type).
*5. Only a FX3G PLC (40-point and 60-point type) can be connected.
*6. Available in Ver. 1.10 or later.
B
![Page 838 of the Mitsubishi Electronics MELSEC FX3S user manual — [M]8322](/cdn/reader/06/06b6c5c8bfa3e981e964d8ed7432322fb86c682a85757d292a29f9cec2d4294a/images/page-838.webp?w=400)
FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
37 Operation of Special Devices (M8000 -, D8000 -)
37.1 Special Device List (M8000 -, D8000 -)
name Operation and function
FX3S FX3G FX3GC FX3U FX3UC
FX1S FX1N FX1NC FX2N FX2NC
Flags [M]8300 to [M]8303 Not used –
[M]8304 Zero ON when the multiplication and division calculated result is 0 3*1 3*1 –
[M]8305 Not used –
[M]8306 Carry ON when the division calculated result overflows 3*1 3*1 –
[M]8307 to [M]8311 Not used – Unconnected I/O Designation Error (Refer to Chapter 38 for details.) and flag
[M]8312*2 Real time clock data lost error 3 3 3 –
[M]8313 to [M]8315 Not used –
[M]8316*3 Unconnected I/O designation error – – – 3 3 D8316 D8317 –
[M]8317 Not used –
BFM initialization failure ON when a FROM/TO error has occurred in a special function unit/block as specified in the BFM initialization function at changing PLC from STOP to RUN. When M8318 turns ON, the unit number in which the error has occurred is stored in D8318, and the BFM number is stored in D8319.
– – – 3 3*4 D8318 D8319 –
[M]8319 to [M]8321 Not used –
FX3UC-32MT-LT/FX3UC-32MT-LT-2 model indicator 1:FX3UC-32MT-LT-2 0:FX3UC-32MT-LT
– 3*5 –
[M]8323 CC-Link/LT configuration required – 3*5 –
[M]8324 CC-Link/LT configuration completed – 3*5 –
[M]8325 to [M]8327 Not used –
[M]8328 Instruction non-execution – – – 3 3*4 –
[M]8329 Instruction execution abnormal end 3 –
*1. Available in Ver. 2.30 or later.
*2. M8312 is EEPROM backed up against power failure, and is automatically cleared when it is cleared or when the clock data is set again. For details on backup against power failure, refer to Section 2.6.
*3. If the I/O device numbers are unavailable, M8316 turns ON when its directly designated to device numbers including LD, AND, OR, and OUT instructions or indirectly designated by index.
*4. Available in Ver. 2.20 or later.
*5. Only the FX3UC-32MT-LT-2 is applicable.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
37 Operation of Special Devices (M8000 -, D8000 -)
FNC277-FNC279 Data Transfer 3
name Operation and function
FX3S FX3G FX3GC FX3U FX3UC
FX1S FX1N FX1NC FX2N FX2NC
Timing Clock (Refer to Section 24.3 for details.) and Positioning [FX3S/FX3G/FX3GC/FX3U/FX3UC] (Refer to Positioning Control Edition for details.)
[M]8330 DUTY (FNC186) instruction: Timing clock output 1 – – – 3 3*1 D8330 –
FNC280-FNC289 High-Speed Processing 2
[M]8331 DUTY (FNC186) instruction: Timing clock output 2 – – – 3 3*1 D8331 –
[M]8332 DUTY (FNC186) instruction: Timing clock output 3 – – – 3 3*1 D8332 –
[M]8333 DUTY (FNC186) instruction: Timing clock output 4 – – – 3 3*1 D8333 –
[M]8334 DUTY (FNC186) instruction: Timing clock output 5 – – – 3 3*1 D8334 –
FNC290-FNC299 Extension File Register Control
[M]8335 Not used –
M 8336*2 DVIT (FNC151) instruction: Interrupt input specification function enabled – – – 3 3*3 D8336 –
[M]8337 Not used –
M 8338*2 PLSV (FNC157) instruction: Acceleration/deceleration operation 3*1 –
[M]8339 Not used –
[M]8340 [Y000] Pulse output monitor (ON: BUSY/ OFF: READY) 3 –
M 8341*2 [Y000] Clear signal output function enable 3 –
M 8342*2 [Y000] Zero return direction specification 3 –
M 8343 [Y000] Forward limit 3 – M 8344 [Y000] Reverse limit 3 –
M 8345*2 [Y000] DOG signal logic reverse 3 –
M 8346*2 [Y000] Zero point signal logic reverse 3 –
M 8347*2 [Y000] Interrupt signal logic reverse – – – 3 3 –
[M]8348 [Y000] Positioning instruction activation 3 –
M 8349*2 [Y000] Pulse output stop command 3 –
[M]8350 [Y001] Pulse output monitor (ON: BUSY/ OFF: READY) 3 –
M 8351*2 [Y001] Clear signal output function enable 3 –
M 8352*2 [Y001] Zero return direction specification 3 –
M 8353 [Y001] Forward limit 3 – M 8354 [Y001] Reverse limit 3 –
M 8355*2 [Y001] DOG signal logic reverse 3 –
M 8356*2 [Y001] Zero point signal logic reverse 3 –
M 8357*2 [Y001] Interrupt signal logic reverse – – – 3 3 –
[M]8358 [Y001] Positioning instruction activation 3 –
M 8359*2 [Y001] Pulse output stop command 3 –
[M]8360 [Y002] Pulse output monitor (ON: BUSY/ OFF: READY) – 3 – 3 3 –
M 8361*2 [Y002] Clear signal output function enable – 3 – 3 3 –
M 8362*2 [Y002] Zero return direction specification – 3 – 3 3 –
M 8363 [Y002] Forward limit – 3 – 3 3 – M 8364 [Y002] Reverse limit – 3 – 3 3 –
M 8365*2 [Y002] DOG signal logic reverse – 3 – 3 3 –
M 8366*2 [Y002] Zero point signal logic reverse – 3 – 3 3 –
M 8367*2 [Y002] Interrupt signal logic reverse – – – 3 3 –
[M]8368 [Y002] Positioning instruction activation – 3 – 3 3 –
M 8369*2 [Y002] Pulse output stop command – 3 – 3 3 –
*1. Available in Ver. 2.20 or later.
*2. Cleared when the PLC switches from RUN to STOP.
*3. Available in the Ver. 1.30 or later.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
37 Operation of Special Devices (M8000 -, D8000 -)
37.1 Special Device List (M8000 -, D8000 -)
name Operation and function
FX3S FX3G FX3GC FX3U FX3UC
FX1S FX1N FX1NC FX2N FX2NC
Positioning [FX3U] (Refer to Positioning Control Manual for details.)
[M]8370 [Y003] Pulse output monitor (ON: BUSY/ OFF: READY) – – – 3*2 –
M 8371*1 [Y003] Clear signal output function enable – – – 3*2 –
M 8372*1 [Y003] Zero return direction specification – – – 3*2 –
M 8373 [Y003] Forward limit – – – 3*2 –
M 8374 [Y003] Reverse limit – – – 3*2 –
M 8375*1 [Y003] DOG signal logic reverse – – – 3*2 –
M 8376*1 [Y003] Zero point signal logic reverse – – – 3*2 –
M 8377*1 [Y003] Interrupt signal logic reverse – – – 3*2 –
[M]8378 [Y003] Positioning instruction activation – – – 3*2 –
M 8379*1 [Y003] Pulse output stop command – – – 3*2 –
RS2 (FNC 87) [ch0] [FX3G/FX3GC] (Refer to Data Communication Edition for details.) [M]8370 Not used –
[M]8371*1 RS2 (FNC 87) [ch0] instruction: Send wait flag – 3 3 –
M 8372*1 RS2 (FNC 87) [ch0] instruction: Send request – 3 3 – – D8372 –
M 8373*1 RS2 (FNC 87) [ch0] instruction: Receive complete flag – 3 3 – – D8373 –
[M]8374 to [M]8378 Not used –
M 8379 RS2 (FNC 87) [ch0] instruction: Time-out check flag – 3 3 –
*1. These devices are cleared when the PLC mode switches from RUN to STOP or when the RS2 instruction [ch0] turns OFF.
*2. Available only when two FX3U-2HSY-ADP units are connected to an FX3U PLC.
High-Speed Counter Function (Refer to Subsection 4.7.5 and 4.8.5 for details.)
[M]8380*3 Operation status of C235, C241, C244, C246, C247, C249, C251, C252, and C254 – – – 3 3 –
[M]8381*3 Operation status of C236 – – – 3 3 –
[M]8382*3 Operation status of C237, C242, and C245 – – – 3 3 –
[M]8383*3 Operation status of C238, C248, C248 (OP), C250, C253, and C255 – – – 3 3 –
[M]8384*3 Operation status of C239 and C243 – – – 3 3 –
[M]8385*3 Operation status of C240 – – – 3 3 –
[M]8386*3 Operation status of C244 (OP) – – – 3 3 –
[M]8387*3 Operation status of C245 (OP) – – – 3 3 –
[M]8388 Contact for high-speed counter function change 3 – M 8389 External reset input logic reverse – – – 3 3 – M 8390 Function changeover device for C244 – – – 3 3 – M 8391 Function changeover device for C245 – – – 3 3 –
M 8392 Function changeover device for C248 and C253 –
*3. Cleared when PLC switches from STOP to RUN.

Interrupt Program [M]8393 Contact for delay time setting – – – 3 3 D8393 –
[M]8394 HCMOV (FNC189): Drive contact for interrupt program – – – 3 3 –
[M]8395 Function changeover device for C254 – 3 3 – [M]8396 Not used – [M]8397 – Ring Counter
(in units of 1ms, 32 bits)*4 3 D8398,
[M]8399 Not used –
*4. 1ms ring counter (D8399, D8398) will operate after M8398 turns ON.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
37 Operation of Special Devices (M8000 -, D8000 -)
FNC277-FNC279 Data Transfer 3
name Operation and function
FX3S FX3G FX3GC FX3U FX3UC
FX1S FX1N FX1NC FX2N FX2NC
RS2 (FNC 87) [ch1] (Refer to Data Communication Edition for details.) [M]8400 Not used –
[M]8401*1 RS2 (FNC 87) [ch1] Send wait flag 3 –
FNC280-FNC289 High-Speed Processing 2
M 8402*1 RS2 (FNC 87) [ch1] Send request 3 D8402 –
M 8403*1 RS2 (FNC 87) [ch1] Receive complete flag 3 D8403 –
[M]8404 RS2 (FNC 87) [ch1] Carrier detection flag 3 –
[M]8405 RS2 (FNC 87) [ch1] Data set ready (DSR) flag 3*3 3*3 –
[M]8406 to [M]8408 Not used – M 8409 RS2 (FNC 87) [ch1] Time-out check flag 3 – RS2 (FNC 87) [ch2] and Computer Link [ch2] (Refer to the Data Communication Edition for details.) [M]8410 to [M]8420 Not used –
FNC290-FNC299 Extension File Register Control
[M]8421*2 RS2 (FNC 87) [ch2] Send wait flag – 3 –
M 8422*2 RS2 (FNC 87) [ch2] Send request – 3 D8422 –
M 8423*2 RS2 (FNC 87) [ch2] Receive complete flag – 3 D8423 –
[M]8424 RS2 (FNC 87) [ch2] Carrier detection flag – 3 –
[M]8425 RS2 (FNC 87) [ch2] Data set ready (DSR) flag – 3 3 3*3 3*3 –
[M]8426 Computer link [ch2] Global ON – 3
–
[M]8427 Computer link [ch2] On-demand send processing – 3 –
M 8428 Computer link [ch2] On-demand error flag – 3 –
Computer link [ch2] On-demand Word / Byte changeover RS2 (FNC 87) [ch2] Time-out check flag
– 3 –
*1. These devices are cleared when the PLC mode switches from RUN to STOP or when the RS2 instruction [ch1] turns OFF.
*2. These devices are cleared when the PLC mode switches from RUN to STOP or when the RS2 instruction [ch2] turns OFF.
*3. Available in Ver. 2.30 or later.
MODBUS communication [ch1] (Refer to MODBUS Communication Edition for details.)
[M]8401 MODBUS request in process 3 3*4 3 3*5 3*5 –
[M]8402 MODBUS communication error 3 3*4 3 3*5 3*5 D8402 –
[M]8403 MODBUS communication error (latched) 3 3*4 3 3*5 3*5 D8403 –
[M]8404 Listen only mode – – – 3*5 3*5 –
[M]8405 to [M]8407 Not used –
[M]8408 Retry 3 3*4 3 3*5 3*5 –
[M]8409 Timeout 3 3*4 3 3*5 3*5 –
[M]8410 Not used – MODBUS communication [ch2] (Refer to MODBUS Communication Edition for details.)
[M]8421 MODBUS request in process – 3*4 3 3*5 3*5 –
[M]8422 MODBUS communication error – 3*4 3 3*5 3*5 D8422 –
[M]8423 MODBUS communication error (latched) – 3*4 3 3*5 3*5 D8423 –
[M]8424 Listen only mode – – – 3*5 3*5 –
[M]8425 to [M]8427 Not used –
[M]8428 Retry – 3*4 3 3*5 3*5 –
[M]8429 Timeout – 3*4 3 3*5 3*5 –
[M]8430 Not used – MODBUS communication [ch1, ch2] (Refer to MODBUS Communication Edition for details.)
M 8411 MODBUS configuration request flag 3 3*4 3 3*5 3*5 –
*4. Available in Ver. 1.30 or later.
*5. Available in Ver. 2.40 or later.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
37 Operation of Special Devices (M8000 -, D8000 -)
37.1 Special Device List (M8000 -, D8000 -)
name Operation and function
FX3S FX3G FX3GC FX3U FX3UC
FX1S FX1N FX1NC FX2N FX2NC
FX3U-CF-ADP [ch1] (Refer to CF-ADP Manual for details.) [M]8400 to [M]8401 Not used –
[M]8402 CF-ADP instruction executing – – – 3*1 3*1 –
[M]8403 Not used –
[M]8404 CF-ADP unit ready – – – 3*1 3*1 –
[M]8405 CF card mount status – – – 3*1 3*1 –
[M]8406 to [M]8409 Not used –
M 8410 CF-ADP status renewal stop – – – 3*1 3*1 –
[M]8411 to [M]8417 Not used –
M 8418 CF-ADP instruction error*2 – – – 3*1 3*1 –
[M]8419 Not used – FX3U-CF-ADP [ch2] (Refer to CF-ADP Manual for details.) [M]8420 to [M]8421 Not used –
[M]8422 CF-ADP instruction executing – – – 3*1 3*1 –
[M]8423 Not used –
[M]8424 CF-ADP unit ready – – – 3*1 3*1 –
[M]8425 CF card mount status – – – 3*1 3*1 –
[M]8426 to [M]8429 Not used –
M 8430 CF-ADP status renewal stop – – – 3*1 3*1 –
[M]8431 to [M]8437 Not used –
M 8438 CF-ADP instruction error*2 – – – 3*1 3*1 –
[M]8439 Not used –
*1. Available in Ver. 2.61 or later. *2. Cleared when PLC switches from STOP to RUN.
FX3U-ENET-ADP [ch1] (Refer to ENET-ADP Manual for details.) [M]8400 to [M]8403 Not used –
[M]8404 FX3U-ENET-ADP unit ready 3 3*4 3*4 3*5 3*5 –
[M]8405 Not used –
[M]8406*3 Time setting execution 3 3*4 3*4 3*5 3*5 –
[M]8407 to [M]8410 Not used –
M 8411*3 Execute time setting 3 3*4 3*4 3*5 3*5 –
[M]8412 to [M]8415 Not used – FX3U-ENET-ADP [ch2] (Refer to ENET-ADP Manual for details.) [M]8420 to [M]8423 Not used –
[M]8424 FX3U-ENET-ADP unit ready – 3*4 3*4 3*5 3*5 –
[M]8425 Not used –
[M]8426*3 Time setting execution – 3*4 3*4 3*5 3*5 –
[M]8427 to [M]8430 Not used –
M 8431*3 Execute time setting – 3*4 3*4 3*5 3*5 –
[M]8432 to [M]8435 Not used – FX3U-ENET-ADP [ch1, ch2] (Refer to ENET-ADP Manual for details.) [M]8490 to [M]8491 Not used –
M 8492 IP address storage area write request 3 3*6 3*6 –
[M]8493 IP address storage area write completion 3 3*6 3*6 –
[M]8494 IP address storage area write error 3 3*6 3*6 –
M 8495 IP address storage area clear request 3 3*6 3*6 –
[M]8496 IP address storage area clear completion 3 3*6 3*6 –
[M]8497 IP address storage area clear error 3 3*6 3*6 –
[M]8498 IP address change function enable flag 3 3*6 3*6 –
*3. Used when the SNTP function setting is set to "Use" in the time setting parameters. *4. Available in Ver. 2.00 or later. *5. Available in Ver. 3.10 or later. *6. Available in Ver. 2.10 or later.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
37 Operation of Special Devices (M8000 -, D8000 -)
FNC277-FNC279 Data Transfer 3
name Operation and function
FX3S FX3G FX3GC FX3U FX3UC
FX1S FX1N FX1NC FX2N FX2NC
Error Detection (Refer to Chapter 38 for details.) [M]8430 to [M]8437 Not used –
M 8438 Serial communication error 2 [ch2]*1 – 3 D8438 –
[M]8439 to [M]8448 Not used –
FNC280-FNC289 High-Speed Processing 2
[M]8449 Special block error flag – 3*2 D8449
[M]8450 to [M]8459 Not used –
*1. Cleared when PLC power supply is turned from OFF to ON. *2. Available in Ver. 2.20 or later.
Positioning [FX3S/FX3G/FX3GC/FX3U/FX3UC] (Refer to Positioning Control Edition for details.)
M 8460 DVIT (FNC151) instruction [Y000] User interrupt input command – – – 3 3*3 D8336 –
FNC290-FNC299 Extension File Register Control
M 8461 DVIT (FNC151) instruction [Y001] User interrupt input command – – – 3 3*3 D8336 –
M 8462 DVIT (FNC151) instruction [Y002] User interrupt input command – – – 3 3*3 D8336 –
M 8463 DVIT (FNC151) instruction [Y003] User interrupt input command – – – 3*4 3*3 D8336 –
DSZR (FNC150), ZRN (FNC156) instructions [Y000] Clear signal device specification function enabled
M 8464
DSZR (FNC150), ZRN (FNC156) instructions [Y001] Clear signal device specification function enabled
DSZR (FNC150), ZRN (FNC156) instructions [Y002] Clear signal device specification function enabled
DSZR (FNC150), ZRN (FNC156) instructions [Y003] Clear signal device specification function enabled
*3. Available in Ver. 2.20 or later. *4. Available only when two FX3U-2HSY-ADP adapters are connected to an FX3U PLC.
Error Detection [M]8468 to [M]8488 Not used –
[M]8487 USB communication error 3 – D8487 –
[M]8488 Not used –
[M]8489 Special parameter error 3 3*6 3*6 3*5 3*5 D8489 –
[M]8490 to [M]8511 Not used –
*5. Available in Ver. 3.10 or later. *6. Available in Ver. 2.00 or later.
B

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
37 Operation of Special Devices (M8000 -, D8000 -)
37.1 Special Device List (M8000 -, D8000 -)
name Content of register
FX3S FX3G FX3GC FX3U FX3UC
FX1S FX1N FX1NC FX2N FX2NC
Default value is shown on the right (in 1ms steps) (Writes from system ROM at power ON) Value overwritten by program is valid after END or WDT instruction execution.
D 8000 Watchdog timer
200 – 200
→Refer to Subsection 37.2.2.
[D]8001 PLC type and system version
2 4 1 0 0
Version 1.00
Indicated on the right
Type of internal memory/RAM/EEPROM/ EPROM cassette or ON/OFF status of protect switch is stored
value Type of memory Protect
00H RAM memory cassette –
01H EPROM memory cassette –
3 – 3
02H EEPROM memory cassette or flash memory cassette
0AH EEPROM memory cassette or flash memory cassette
10H Built-in memory in PLC –
8 0 6 0
[D]8004 Error number M 3 M8004 3
8060 to 8068 (when M8004 is ON)
(in 0.1-V units)
[D]8005 Battery voltage – 3 M8005 – – – 3 3
[D]8006 Low battery voltage detection level
– 3 M8006 – – – 3 3
*1. The corresponding special data register D8101 is available only in FX3S/FX3G/FX3GC/FX3U/FX3UC PLCs. No corresponding device is available in FX1S/FX1N/FX1NC/FX2N/FX2NC PLCs.
*2. "4" is displayed even when the memory capacity is set to 16K steps in the parameter setting.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
37 Operation of Special Devices (M8000 -, D8000 -)
FNC277-FNC279 Data Transfer 3
name Content of register
FX3S FX3G FX3GC FX3U FX3UC
FX1S FX1N FX1NC FX2N FX2NC
[D]8007 Momentary power failure count
Operation frequency of M8007 is stored. Cleared at power-off. – – – 3 3 M8007 – – – 3 3
FNC280-FNC289 High-Speed Processing 2
D8008 Power failure detection
– – – 3 3 M8008 – – – 3 3
[D]8009 24V DC failed device
Lowest input device number of the I/O extension units in which 24 V DC power has failed
– 3 – 3 – M8009 – – – 3 3
FNC290-FNC299 Extension File Register Control
*1. The power failure detection time in FX2N/FX2NC PLCs is as follows. For FX3U/FX3UC PLCs, refer to Subsection 37.2.4. - 10ms for FX2N PLC used with a 100V AC power supply system. D8008 is set to 10ms by default. - 100ms maximum for FX2N PLC used with a 200V AC power supply system. D8008 can be set ranging from 10 to 100 ms. - 5ms for FX2N PLC used with a DC power supply type. Write "K-1" to D8008 for correction. - 5ms for FX2NC PLC used with a DC power supply type. System writes "K-1" to D8008 for correction. Do not make any change in a sequence program.
Accumulated instruction-execution time from step 0 (in 0.1-ms units)
[D]8010 Present scan time
→Refer to Subsection 37.2.5. 3 Same as on
3 Indicated value includes waiting
Minimum value of scan time (in 0.1-ms units)
[D]8011 Minimum scan time
time of constant scan operation
→Refer to Subsection 37.2.5.
(when M8039 is activated).
[D]8012 Maximum scan time
Maximum value of scan time (in 0.1-ms units)
→Refer to Subsection 37.2.5.
0 to 59 seconds (for real time clock)
3 – 3*2
→Refer to Subsection 37.2.7.
0 to 59 minutes (for real time clock)
3 – 3*2
→Refer to Subsection 37.2.7.
0 to 23 hours (for real time clock)
3 – 3*2
→Refer to Subsection 37.2.7.
1 to 31 days (for real time clock)
3 – 3*2
→Refer to Subsection 37.2.7.
1 to 12 months (for real time clock)
3 – 3*2
→Refer to Subsection 37.2.7.
2 digits of year data (0 to 99) (for real time clock)
3 – 3*2
→Refer to Subsection 37.2.7.
0 (Sunday) to 6 (Saturday) (for real time clock)
3 – 3*2
→Refer to Subsection 37.2.7.
*2. A memory board having the real time clock function is required in FX2NC PLC.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
37 Operation of Special Devices (M8000 -, D8000 -)
37.1 Special Device List (M8000 -, D8000 -)

FX3S FX3G FX3GC FX3U FX3UC
FX1S FX1N FX1NC FX2N FX2NC
3 – 3
–
[D]8028 Value of Z0 (Z) register*2 3 – 3
[D]8029 Value of V0 (V) register*2 3 – 3
*1. In FX3G/FX3GC/FX1N/FX1NC PLCs the input filter can be adjusted in X000 to X007.
*2. The values of Z1 to Z7 and V1 to V7 are stored in D8182 to D8195.

Analog Volume [FX3S/FX3G/FX1S/FX1N]
[D]8030 Value of analog volume VR1 (Integer from 0 to 255) 3*3 3 – 3 3 – – –
[D]8031 Value of analog volume VR2 (Integer from 0 to 255) 3*3 3 – 3 3 – – –
–
Default: 0 ms (in 1 ms steps) (Writes from system ROM at power ON) Can be overwritten by program
3 M8039 3
*3. This function is not supported in the FX3S-30M /E -2AD PLC.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
37 Operation of Special Devices (M8000 -, D8000 -)
FNC277-FNC279 Data Transfer 3
name Content of register
FX3S FX3G FX3GC FX3U FX3UC
FX1S FX1N FX1NC FX2N FX2NC
3
3
ON state number 1
FNC280-FNC289 High-Speed Processing 2
ON state number 2 3
ON state number 3
The smallest number out of active state ranging from S0 to S899 and S1000 to
ON state number 4 3
S4095*2 is stored in D8040 and the second- smallest state number is stored in D8041. Active state numbers are then sequentially stored in registers up to D8047 (Max. 8 points).
FNC290-FNC299 Extension File Register Control
ON state number 5 3
ON state number 6 3
ON state number 7 3
ON state number 8 3
[D]8048 Not used –
When M8049 is ON, the smallest number out of active annunciator relay ranging from S900 to S999 is stored in D8049.
On state minimum number
– 3 M8049 – – – 3 3
[D]8050 to [D]8059 Not used –
*1. Executed at END instruction.
*2. S1000 to S4095 are available only in FX3G/FX3GC/FX3U/FX3UC PLCs.
Error Detection (Refer to Chapter 38 for details.)
If the unit or block corresponding to a programmed I/O number is not actually loaded, M8060 is set to ON and the first device number of the erroneous block is written to D8060.
ample: If X020 is unconnected.
Example: If X020 is unconnected.
– 3 M8060 – – – 3 3
1 0 2 0
1 0 2 0
[D]8061 Error code for PLC hardware error 3 M8061 – – – 3 3
Error code for PLC/PP communication error 3 M8062 3
Error code for serial communication error 0 [ch0]*4 – 3 3 – – M8062 –
[D]8063*5 Error code for serial communication error 1 [ch1] 3 M8063
[D]8064 Error code for parameter error 3 M8064 3
[D]8065 Error code for syntax error 3 M8065 3
[D]8066 Error code for ladder error 3 M8066 3
[D]8067*6 Error code for operation error 3 M8067 3
D 8068 Operation error step number latched 3*7 3*7 M8068 3
[D]8069*6 Error step number of M8065 to M8067 3*8 3*8 M8065 to
*3. 10 to 337 in FX3U/FX3UC/FX2N/FX2NC PLCs, and 10 to 177 in FX3G/FX3GC PLCs. *4. Cleared when PLC power supply is turned from OFF to ON. *5. The operation varies according to PLC: - Cleared in an FX1S/FX1N/FX1NC/FX2N/FX2NC when PLC switches from STOP to RUN. - Cleared in an FX3S/FX3G/FX3GC/FX3U/FX3UC PLCs when PLC power supply from OFF to ON. *6. Cleared when PLC switches from STOP to RUN. *7. In case of 32K steps or more, step number is stored in [D8313, D8312]. *8. In case of 32K steps or more, step number is stored in [D8315, D8314].

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
37 Operation of Special Devices (M8000 -, D8000 -)
37.1 Special Device List (M8000 -, D8000 -)
name Content of register
FX3S FX3G FX3GC FX3U FX3UC
FX1S FX1N FX1NC FX2N FX2NC
Parallel Link (Refer to Data Communication Edition for details.)
[D]8070 Parallel link error time-out check time: 500 ms 3 – 3
–
Sampling Trace*1 [FX3U/FX3UC/FX2N/FX2NC]
– – – 3 3
– – – 3 3
These devices are occupied by the PLC system when the sampling trace function is used in a connected personal computer*1.
*1. The sampling trace devices are used by peripheral equipment.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
37 Operation of Special Devices (M8000 -, D8000 -)
FNC277-FNC279 Data Transfer 3
name Content of register
FX3S FX3G FX3GC FX3U FX3UC
FX1S FX1N FX1NC FX2N FX2NC
Pulse width/Pulse period measurement [FX3G/FX3GC] (Refer to Section 36.8 for details.)
D 8074*1 Lower [X000]
– 3*2 3 – –
–
Ring counter value for rising edge (1/6 µs unit)
D 8075*1 Upper –
FNC280-FNC289 High-Speed Processing 2
D 8076*1 Lower [X000]
– 3*2 3 –
Ring counter value for falling edge (1/6 µs unit)
D 8077*1 Upper –
D 8078*1 Lower [X000]
– 3*2 3 –
Pulse width/Pulse period (10 µs unit)
D 8079*1 Upper –
D 8080*1 Lower [X001]
FNC290-FNC299 Extension File Register Control
– 3*2 3 – –
–
Ring counter value for rising edge (1/6 µs unit)
D 8081*1 Upper –
D 8082*1 Lower [X001]
– 3*2 3 –
Ring counter value for falling edge (1/6 µs unit)
D 8083*1 Upper –
D 8084*1 Lower [X001]
– 3*2 3 –
Pulse width/Pulse period (10 µs unit)
D 8085*1 Upper –
D 8086*1 Lower [X003]
– 3*2 3 – –
–
Ring counter value for rising edge (1/6 µs unit)
D 8087*1 Upper –
D 8088*1 Lower [X003]
– 3*2 3 –
Ring counter value for falling edge (1/6 µs unit)
D 8089*1 Upper –
D 8090*1 Lower [X003]
– 3*2 3 –
Pulse width/Pulse period (10 µs unit)
D 8091*1 Upper –
D 8092*1 Lower [X004]
– 3*2 3 – –
–
Ring counter value for rising edge (1/6 µs unit)
D 8093*1 Upper –
D 8094*1 Lower [X004]
– 3*2 3 –
Ring counter value for falling edge (1/6 µs unit)
D 8095*1 Upper –
D 8096*1 Lower [X004]
– 3*2 3 –
Pulse width/Pulse period (10 µs unit)
D 8097*1 Upper –
[D]8098 Not used –
*1. Cleared when PLC switches from STOP to RUN.
*2. Available in Ver. 1.10 or later.
D 8099 Up-operation high-speed ring counter of 0 to
32,767 (in units of 0.1ms, 16-bit)*3 – – – 3 3 M8099 – – – 3 3
[D]8100 Not used –
*3. The 0.1ms high-speed ring counter D8099 will operate after END instruction is executed while M8099 is ON.
B

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
37 Operation of Special Devices (M8000 -, D8000 -)
37.1 Special Device List (M8000 -, D8000 -)

FX3S FX3G FX3GC FX3U FX3UC
FX1S FX1N FX1NC FX2N FX2NC
28 26 26 16 16 –
2 2K steps 4 4K steps 8 8K steps 16 16K steps 32 32K steps 64 64K steps
[D]8103 Not used –
[D]8104 Identity code for function extension memory –
[D]8105 Version of function extension memory (Version 1.00 = 100) – 3*3 3*3
[D]8106 Not used –
[D]8107 Number of registered device comments – – – 3 3 M8107 –
[D]8108 Number of special function units/blocks connected – 3 –
*1. "4" is displayed even when the memory capacity is set to 16K steps in the parameter setting.
*2. When loading FX3U-FLROM-16.
*3. Available in Ver. 3.00 or later.
Output Refresh Error (Refer to Chapter 38 for details.)
[D]8109 Y number where output refresh error occurs – 3 M8109 – – – 3 3
–
Expansion Board Dedicated to FX1S/FX1N
[D]8112 FX1N-2AD-BD: Digital value of ch1 – M8112 3 3 – – –
[D]8113 FX1N-2AD-BD: Digital value of ch2 – M8113 3 3 – – –
D 8114 FX1N-1DA-BD: Digital value to be output – M8114 3 3 – – –
[D]8115 to [D]8119 Not used –
RS (FNC 80) and Computer Link [ch1] (Refer to Data Communication Edition for details.)
RS (FNC 80) instruction and computer link [ch1] Communication format setting
3 – 3
D 8121*4 Computer link [ch1] Station number setting 3 – 3
[D]8122*5 RS (FNC 80) instruction: Remaining points of transmit data 3 M8122 3
[D]8123*5 RS (FNC 80) instruction: Monitoring receive data points 3 M8123
D 8124 RS (FNC 80) instruction: Header
D 8125 RS (FNC 80) instruction: Terminator
[D]8126 Not used –
Computer link [ch1] Specification of on-demand head device register
3
3
Computer link [ch1] Specification of on-demand data length register
3
D 8129*4 RS (FNC 80) instruction, computer link [ch1] Time-out time setting 3
*4. Latch (battery or EEPROM backed) device. For details on backup against power failure, refer to Section 2.6.
*5. Cleared when the PLC switches from RUN to STOP.
Not used · M8126 to

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
37 Operation of Special Devices (M8000 -, D8000 -)
FNC277-FNC279 Data Transfer 3
name Content of register
FX3S FX3G FX3GC FX3U FX3UC
FX1S FX1N FX1NC FX2N FX2NC
High-Speed Counter Comparison, High-Speed Table, and Positioning [Positioning is supported in FX3S/FX3G/FX3GC/FX1S/FX1N/FX1NC]
[D]8130 HSZ (FNC 55) instruction: High-speed comparison table counter – – – 3 3 M8130 – – – 3 3
FNC280-FNC289 High-Speed Processing 2
[D]8131 HSZ (FNC 55) and PLSY (FNC 57) instructions: Speed pattern table counter – – – 3 3 M8132 – – – 3 3
[D]8132 Lower HSZ (FNC 55) and PLSY (FNC 57)
instructions: Speed pattern frequency – – – 3 3 M8132 – – – 3 3 [D]8133 Upper
[D]8134 Lower HSZ (FNC 55) and PLSY (FNC 57)
– – – 3 3 M8132 – – – 3 3 [D]8135 Upper
FNC290-FNC299 Extension File Register Control
D 8136 Lower PLSY (FNC 57), PLSR (FNC 59)
3 – 3 D 8137 Upper
HSCS (FNC 53), HSCR (FNC 54), HSZ (FNC 55), and HSCT (FNC280) instructions: Number of instructions being executed
– – – 3 3 M8139 –
D 8140 Lower Accumulated number of pulses output
3 – 3 D 8141 Upper
from Y000 for PLSY (FNC 57) and PLSR (FNC 59) instructions.
D 8142 Lower Accumulated number of pulses output
3 – 3 D 8143 Upper
from Y001 for PLSY (FNC 57) and PLSR (FNC 59) instructions.
[D]8144 Not used –
ZRN (FNC156), DRVI (FNC158), and DRVA (FNC159) instructions: Bias speed Default: 0
– 3 3 3 – –
D 8146 Lower ZRN (FNC156), DRVI (FNC158),
– 3 3 3*1 – –
ZRN (FNC156), DRVI (FNC158), and DRVA (FNC159) instructions: Acceleration/deceleration time Default: 100
– 3 3 3 – –
[D]8149 Not used –
*1. Must be changed to 10000 or less by PLC program.
B

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
37 Operation of Special Devices (M8000 -, D8000 -)
37.1 Special Device List (M8000 -, D8000 -)
name Content of register
FX3S FX3G FX3GC FX3U FX3UC
FX1S FX1N FX1NC FX2N FX2NC
Inverter Communication Function (Refer to Data Communication Edition for details.)
D 8150*1 Response wait time of inverter communication [ch1] 3 3*4 3 3 3 –
Step number of instruction during inverter communication [ch1] Default: -1
3 3*4 3 3 3 M8151 –
[D]8152*2 Error code for inverter communication [ch1] 3 3*4 3 3 3 M8152 –
Inverter communication error step number latched [ch1] Default: -1
3 3*4 3 3 3 M8153 –
Parameter number when error occurs during IVBWR (FNC274) instruction [ch1] Default: -1
– – – 3 3 M8154 –
Response waiting time of EXTR (FNC180) instruction – 3*3 3*3
D 8155*1 Response wait time of inverter communication [ch2] – 3*4 3 3 3 –
[D]8155 Step number during communication of EXTR (FNC180) instruction – M8155 – – – 3*3 3*3
Step number of instruction during inverter communication [ch2] Default: -1
– 3*4 3 3 3 M8156 –
Error code for EXTR (FNC180) instruction – M8156 – – – 3*3 3*3
[D]8157*2 Error code for inverter communication [ch2] – 3*4 3 3 3 M8157 –
Error step (latched) for EXTR (FNC180) instruction Default: -1
– M8157 – – – 3*3 3*3
Inverter communication error step number latched [ch2] Default: -1
– 3*4 3 3 3 M8158 –
Parameter number when error occurs during IVBWR (FNC274) instruction [ch2] Default: -1
– – – 3 3 M8159 –
*1. Cleared when PLC power supply is turned from OFF to ON.
*2. Cleared when PLC switches from STOP to RUN.
*3. Available in Ver. 3.00 or later.
*4. Available in Ver. 1.10 or later.

D 8158 FX1N-5DM: Control device (D) Default: -1 – 3 3 – – –
D 8159 FX1N-5DM: Control device (M) Default: -1 – 3 3 – – –
FX1N-BAT [FX1N] (Refer to FX1N-BAT Manual for details.)
Specification of low battery voltage detection flag for the FX1N-BAT Default: -1
– 3 – – –

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
37 Operation of Special Devices (M8000 -, D8000 -)
FNC277-FNC279 Data Transfer 3
name Content of register
FX3S FX3G FX3GC FX3U FX3UC
FX1S FX1N FX1NC FX2N FX2NC
–
FNC280-FNC289 High-Speed Processing 2
D 8164 FROM (FNC 78), TO (FNC 79) instructions: Specification of transfer points – M8164 – – – 3*1 3
[D]8165 Not used –
[D]8166 Special block error condition – – – 3*5 3*5 –
FNC290-FNC299 Extension File Register Control
–
value change Read Write
2nd keyword is not set.
3*3
*2 Write protection 3 – 3 3
3*4 –
*2 Read/write protection – – 3 3
All online operation protection
–
*2 Keyword cancel 3
*1. Available in Ver. 2.00 or later.
*2. "**" indicates areas used by the system.
*3. The accessibility is restricted depending on the keyword setting status.
*4. Available in Ver. 2.20 or later.
*5. Available in Ver. 3.00 or later. For details, refer to Section 38.4 Error Code List and Action.
N:N Network (setting) (Refer to Data Communication Edition for details.)
–
[D]8173 Station number 3 – 3*6 3
[D]8174 Total number of slave stations 3 – 3*6 3
[D]8175 Refresh range 3 – 3*6 3
D 8176 Station number setting 3
3*6 3
D 8177 Total slave station number setting 3*6 3
D 8178 Refresh range setting 3*6 3
A
D 8179 Retry count setting 3*6 3
D 8180 Comms time-out setting 3*6 3
[D]8181 Not used –
*6. Available in Ver. 2.00 or later.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
37 Operation of Special Devices (M8000 -, D8000 -)
37.1 Special Device List (M8000 -, D8000 -)
name Content of register
FX3S FX3G FX3GC FX3U FX3UC
FX1S FX1N FX1NC FX2N FX2NC
Index Register Z1 to Z7 and V1 to V7
[D]8182 Value of Z1 register 3 – 3
[D]8183 Value of V1 register 3 – 3
[D]8184 Value of Z2 register 3 – 3
[D]8185 Value of V2 register 3 – 3
[D]8186 Value of Z3 register 3 – 3
[D]8187 Value of V3 register 3 – 3
[D]8188 Value of Z4 register 3 – 3
[D]8189 Value of V4 register 3 – 3
[D]8190 Value of Z5 register 3 – 3
[D]8191 Value of V5 register 3 – 3
[D]8192 Value of Z6 register 3 – 3
[D]8193 Value of V6 register 3 – 3
[D]8194 Value of Z7 register 3 – 3
[D]8195 Value of V7 register 3 – 3
[D]8196 to [D]8199 Not used –
N:N Network (monitoring) (Refer to Data Communication Edition for details.)
[D]8200 Not used –
[D]8201*1 Current link scan time 3 – (D201) 3 3 3*2 3
[D]8202*1 Maximum link scan time 3 – (D202) 3 3 3*2 3
[D]8203*1 Number of communication error at master station 3
[D]8204*1 Number of communication error at slave station No.1 3 (D204) 3 3 3*2 3
[D]8205*1 Number of communication error at slave station No.2 3 (D205) 3 3 3*2 3
[D]8206*1 Number of communication error at slave station No.3 (D206) 3 3 3*2 3
[D]8207*1 Number of communication error at slave station No.4 3 (D207) 3 3 3*2 3
[D]8208*1 Number of communication error at slave station No.5 3 (D208) 3 3 3*2 3
[D]8209*1 Number of communication error at slave station No.6 3 (D209) 3 3 3*2 3
[D]8210*1 Number of communication error at slave station No.7 3 (D210) 3 3 3*2 3
[D]8211*1 Code of communication error at master station 3 (D211) 3 3 3*2 3
[D]8212*1 Code of communication error at slave station No.1 3 (D212) 3 3 3*2 3
[D]8213*1 Code of communication error at slave station No.2 3 (D213) 3 3 3*2 3
[D]8214*1 Code of communication error at slave station No.3 (D214) 3 3 3*2 3
[D]8215*1 Code of communication error at slave station No.4 3 (D215) 3 3 3*2 3
[D]8216*1 Code of communication error at slave station No.5 3 (D216) 3 3 3*2 3
[D]8217*1 Code of communication error at slave station No.6 3 (D217) 3 3 3*2 3
[D]8218*1 Code of communication error at slave station No.7 3 (D218) 3 3 3*2 3
[D]8219 to [D]8259 Not used –
*1. In FX1S PLC, use numbers shown inside parentheses.
*2. Available in Ver. 2.00 or later.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
37 Operation of Special Devices (M8000 -, D8000 -)
FNC277-FNC279 Data Transfer 3
name Content of register
FX3S FX3G FX3GC FX3U FX3UC
FX1S FX1N FX1NC FX2N FX2NC
Analog Special Adapter [FX3U/FX3UC] (Refer to Subsection 37.2.19 for applicability of each analog special adapter.)
D 8260 to D 8269 1st special adapter*1 – – – 3 3*2 –
D 8270 to D 8279 2nd special adapter*1 – – – 3 3*2 –
FNC280-FNC289 High-Speed Processing 2
D 8280 to D 8289 3rd special adapter*1 – – – 3 3*2 –
D 8290 to D 8299 4th special adapter*1 – – – 3 3*2 –
Analog Special Adapter [FX3S/FX3G/FX3GC], Analog Expansion Board [FX3S/FX3G] (Refer to Subsection 37.2.18 for applicability of each analog special adapter and analog expansion board)
D 8260 to D 8269 1st expansion board*3 3 3*6 –
FNC290-FNC299 Extension File Register Control
D 8270 to D 8279 2nd expansion board*4*5 – 3*6 –
D 8280 to D 8289 1st special adapter*1 3 3 3 –
D 8290 to D 8299 2nd special adapter*1*5 – 3 3 –
Built-in analog function [FX3S-30M /E -2AD] (Refer to FX3S Hardware Edition for details.)
[D]8270 Ch1 analog input data (0 to 1020) 3*7 –
[D]8271 Ch2 analog input data (0 to 1020) 3*7 –
–
D 8274 Averaging time for ch1 (1 to 4095) 3*7 –
D 8275 Averaging time for ch2 (1 to 4095) 3*7 –
–
Error status b0: Ch1 upper over-scale detection b1: Ch2 upper over-scale detection b2: Not used b3: Not used b4: EEPROM error b5: Averaging time setting error
3*7 –
(common ch1 and ch2) b6 to b15: Not used
*1. Count the number of connected analog special adapter from the main unit.
*2. Available in Ver. 1.20 or later.
*3. BD1 connector of a FX3G PLC (40-point and 60-point type) or the BD connector of a FX3G PLC (14-point and 24-point type) and FX3S PLC.
*4. Expansion board connected to the BD2 connector of a FX3G PLC (40-point and 60-point type).
*5. Only to FX3G PLC (40-point and 60-point type) can be connected.
*6. Available in Ver. 1.10 or later.
*7. This function is supported only in the FX3S-30M /E -2AD PLC.
B

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
37 Operation of Special Devices (M8000 -, D8000 -)
37.1 Special Device List (M8000 -, D8000 -)

FX3S FX3G FX3GC FX3U FX3UC
FX1S FX1N FX1NC FX2N FX2NC
Display Module Function (FX3G-5DM, FX3U-7DM) (Refer to Hardware Edition Manual of PLC main unit used for details.)
D 8300 Control device (D) for display module Default: K-1 – 3*1 – 3 3 –
D 8301 Control device (M) for display module Default: K-1 – 3*1 – 3 3 –
– 3*1 – 3 3 –
D 8303 LCD contrast setting value Default: K0 – 3*1 – 3 3 –
–
*1. Available in Ver. 1.10 or later.
*2. Latch (battery or EEPROM backed) device. For details on backup against power failure, refer to Section 2.6.

– – – 3 3 – [D]8311 Upper
Syntax, Circuit, Operation, or Unconnected I/O Designation Error Step Number (Refer to Chapter 38 for details.)
(32-bit) – – – 3 3 M8068 – D 8313 Upper
[D]8314*3 Lower Error step number of M8065 to M8067
M8067 – [D]8315*3 Upper
– – – 3 3 M8316 – [D]8317 Upper
an unconnected I/O number (directly or indirectly using index register)
[D]8318 BFM initialization function: Error unit number – – – 3 3*4 M8318 –
[D]8319 BFM initialization function: Error BFM number – – – 3 3*4 M8318 –
[D]8320 to [D]8328 Not used –
*3. Cleared when PLC switches from STOP to RUN.
*4. Available in Ver. 2.20 or later.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
37 Operation of Special Devices (M8000 -, D8000 -)
FNC277-FNC279 Data Transfer 3
name Content of register
FX3S FX3G FX3GC FX3U FX3UC
FX1S FX1N FX1NC FX2N FX2NC
Timing Clock (Refer to Section 24.3 for details.) and Positioning [FX3S/FX3G/FX3GC/FX3U/FX3UC] (Refer to Positioning Control Edition for details.)
[D]8329 Not used –
FNC280-FNC289 High-Speed Processing 2
[D]8330 DUTY (FNC186) instruction: Scan counting for timing clock output 1 – – – 3 3*1 –
[D]8331 DUTY (FNC186) instruction: Scan counting for timing clock output 2 – – – 3 3*1 –
[D]8332 DUTY (FNC186) instruction: Scan counting for timing clock output 3 – – – 3 3*1 –
[D]8333 DUTY (FNC186) instruction: Scan counting for timing clock output 4 – – – 3 3*1 –
FNC290-FNC299 Extension File Register Control
[D]8334 DUTY (FNC186) instruction: Scan counting for timing clock output 5 – – – 3 3*1 –
D 8336 DVIT (FNC151) instruction: Specification of interrupt input – – – 3 3*2 M8336 –
[D]8337 to [D]8339 Not used –
D 8340 Lower [Y000] Current value register
3 – D 8341 Upper 3
D 8342 [Y000] Bias speed Default: 0 3 –
D 8343 Lower [Y000] Maximum speed
3 – D 8344 Upper 3
D 8345 [Y000] Creep speed Default: 1000 3 –
D 8346 Lower [Y000] Zero return speed
3 – D 8347 Upper 3
D 8348 [Y000] Acceleration time Default: 100 3 –
D 8349 [Y000] Deceleration time Default: 100 3 –
D 8350 Lower [Y001] Current value register
3 – D 8351 Upper 3
D 8352 [Y001] Bias speed Default: 0 3 –
D 8353 Lower [Y001] Maximum speed
3 – D 8354 Upper 3
D 8355 [Y001] Creep speed Default: 1000 3 –
D 8356 Lower [Y001] Zero return speed
3 – D 8357 Upper 3
D 8358 [Y001] Acceleration time Default: 100 3 –
D 8359 [Y001] Deceleration time Default: 100 3 –
*1. Available in Ver. 2.20 or later.
*2. Available in Ver. 1.30 or later.
B

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
37 Operation of Special Devices (M8000 -, D8000 -)
37.1 Special Device List (M8000 -, D8000 -)
name Content of register
FX3S FX3G FX3GC FX3U FX3UC
FX1S FX1N FX1NC FX2N FX2NC
Positioning [FX3G/FX3U/FX3UC] (Refer to Positioning Control Edition for details.)
D 8360 Lower [Y002] Current value register
– 3 – 3 3 – D 8361 Upper – 3 – 3 3
D 8362 [Y002] Bias speed Default: 0 – 3 – 3 3 –
D 8363 Lower [Y002] Maximum speed
– 3 – 3 3 – D 8364 Upper – 3 – 3 3
D 8365 [Y002] Creep speed Default: 1000 – 3 – 3 3 –
D 8366 Lower [Y002] Zero return speed
– 3 – 3 3 – D 8367 Upper – 3 – 3 3
D 8368 [Y002] Acceleration time Default: 100 – 3 – 3 3 –
D 8369 [Y002] Deceleration time Default: 100 – 3 – 3 3 –
D 8370 Lower [Y003] Current value register
D 8371 Upper –
D 8372 [Y003] Bias speed Default: 0 – – – 3*2 –
D 8373 Lower [Y003] Maximum speed
D 8374 Upper –
D 8375 [Y003] Creep speed Default: 1000 – – – 3*2 –
D 8376 Lower [Y003] Zero return speed
D 8377 Upper –
D 8378 [Y003] Acceleration time Default: 100 – – – 3*2 –
D 8379 [Y003] Deceleration time Default: 100 – – – 3*2 –
[D]8380 to [D]8392 Not used –
RS2 (FNC 87) [ch0] [FX3G/FX3GC PLCs] (Refer to Data Communication Edition for details.)
D 8370 RS2 (FNC 87) [ch0] Communication format setting – 3 3 –
[D]8371 Not used –
[D]8372*1 RS2 (FNC 87) [ch0] Remaining points of transmit data – 3 3 –
[D]8373*1 RS2 (FNC 87) [ch0] Monitoring receive data points – 3 3 –
[D]8374 to [D]8378 Not used –
D 8379 RS2 (FNC 87) [ch0] Time-out time setting – 3 3 –
D 8380 RS2 (FNC 87) [ch0] Header 1 and 2
D 8381 RS2 (FNC 87) [ch1] Header 3 and 4 – 3 3 –
D 8382 RS2 (FNC 87) [ch0] Terminator 1 and 2
D 8383 RS2 (FNC 87) [ch0] Terminator 3 and 4 – 3 3 –
[D]8384 RS2 (FNC 87) [ch0] Receive sum (received data) – 3 3 –
[D]8385 RS2 (FNC 87) [ch0] Receive sum (calculated result) – 3 3 –
[D]8386 RS2 (FNC 87) [ch0] Send sum – 3 3 –
[D]8387 to [D]8388 Not used –
[D]8389 Operation mode display [ch0] – 3 3 –
[D]8390 to [D]8392 Not used –
*1. Cleared when the PLC switches from RUN to STOP.
*2. Available only when two FX3U-2HSY-ADP adapters are connected to an FX3U PLC.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
37 Operation of Special Devices (M8000 -, D8000 -)
FNC277-FNC279 Data Transfer 3
name Content of register
FX3S FX3G FX3GC FX3U FX3UC
FX1S FX1N FX1NC FX2N FX2NC
Interrupt Program (Refer to Chapter 36 for details.)
D 8393 Delay time
→Refer to Section 36.4. – – – 3 3 M8393 –
FNC280-FNC289 High-Speed Processing 2
[D]8394 Not used –
Symbolic information storage status and execution program protection status using the block password.
[D]8395 Symbolic Information, Block password status
– – – 3*2 3*2 –
FNC290-FNC299 Extension File Register Control
H**00*1 None None
H**01*1 None Provided
H**10*1 Provided None
H**11*1 Provided Provided
[D]8396 Built-in CC-Link/LT setup information – 3*3 –
[D]8397 Not used –
D 8398 Lower Up-operation ring counter of 0 to
2,147,483,647 (in 1-ms units, 32-bit)*4 3 M8398 – D 8399 Upper
*1. "**" indicates areas used by the system.
*2. Available in Ver. 3.00 or later.
*3. Only the FX3UC-32MT-LT-2 is applicable.
*4. 1ms ring counter (D8399, D8398) will operate after M8398 turns ON.
RS2 (FNC 87) [ch1] (Refer to Data Communication Edition for details.)
D 8400 RS2 (FNC 87) [ch1] Communication format setting 3 –
[D]8401 Not used –
RS2 (FNC 87) [ch1] Remaining points of transmit data
3 M8402 –
[D]8403*5 RS2 (FNC 87) [ch1] Monitoring receive data points 3 M8403 –
[D]8404 Not used –
[D]8405 Communication parameter display [ch1] 3 –
[D]8406 to [D]8408 Not used –
D 8409 RS2 (FNC 87) [ch1] Time-out time setting 3 –
D 8410 RS2 (FNC 87) [ch1] Header 1 and 2 3 –
D 8411 RS2 (FNC 87) [ch1] Header 3 and 4 3 –
D 8412 RS2 (FNC 87) [ch1] Terminator 1 and 2 3 –
D 8413 RS2 (FNC 87) [ch1] Terminator 3 and 4 3 –
[D]8414 RS2 (FNC 87) [ch1] Receive sum (received data) 3 –
[D]8415 RS2 (FNC 87) [ch1] Receive sum (calculated result) 3 –
[D]8416 RS2 (FNC 87) [ch1] Send sum 3 –
[D]8417 to [D]8418 Not used –
[D]8419 Operation mode display [ch1] 3 –
*5. Cleared when the PLC switches from RUN to STOP.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
37 Operation of Special Devices (M8000 -, D8000 -)
37.1 Special Device List (M8000 -, D8000 -)
name Content of register
FX3S FX3G FX3GC FX3U FX3UC
FX1S FX1N FX1NC FX2N FX2NC
RS2 (FNC 87) [ch2] and Computer Link [ch2] (Refer to Data Communication Edition for details.)
D 8420 RS2 (FNC 87) [ch2] Communication format setting – 3 –
D 8421 Computer link [ch2] Station number setting – 3 –
[D]8422*1 RS2 (FNC 87) [ch2] Remaining points of transmit data – 3 M8422 –
[D]8423*1 RS2 (FNC 87) [ch2] Monitoring receive data points – 3 M8423 –
[D]8424 Not used –
[D]8425 Communication parameter display [ch2] – 3 –
[D]8426 Not used –
Computer link [ch2] Specification of on-demand head device register
– 3
–
Computer link [ch2] Specification of on-demand data length register
– 3 –
D 8429 RS2 (FNC 87) [ch2], computer link [ch2] Time-out time setting – 3 –
D 8430 RS2 (FNC 87) [ch2] Header 1 and 2 – 3 –
D 8431 RS2 (FNC 87) [ch2] Header 3 and 4 – 3 –
D 8432 RS2 (FNC 87) [ch2] Terminator 1 and 2 – 3 –
D 8433 RS2 (FNC 87) [ch2] Terminator 3 and 4 – 3 –
[D]8434 RS2 (FNC 87) [ch2] Receive sum (received data) – 3 –
[D]8435 RS2 (FNC 87) [ch2] Receive sum (calculated result) – 3 –
[D]8436 RS2 (FNC 87) [ch2] Send sum – 3 –
[D]8437 Not used –
*1. Cleared when the PLC switches from RUN to STOP.
MODBUS communication [ch1] (Refer to MODBUS Communication Edition for details.)
D 8400 Communication format 3 3*2 3 3*3 3*3 –
D 8401 Protocol 3 3*2 3 3*3 3*3 –
D 8402 Communication error code 3 3*2 3 3*3 3*3 M8402 –
D 8403 Error details 3 3*2 3 3*3 3*3 M8403 –
D 8404 Error step number 3 3*2 3 3*3 3*3 –
[D]8405 Communication format display 3 3*2 3 3*3 3*3 –
D 8406 ASCII input delimiter – – – 3*3 3*3 –
[D]8407 Step number being executed 3 3*2 3 3*3 3*3 –
[D]8408 Current retry value 3 3*2 3 3*3 3*3 –
D 8409 Slave response timeout 3 3*2 3 3*3 3*3 –
D 8410 Turn around delay 3 3*2 3 3*3 3*3 –
D 8411 Message to message delay 3 3*2 3 3*3 3*3 –
D 8412 Number of retries 3 3*2 3 3*3 3*3 –
D 8414 Slave node address 3 3*2 3 3*3 3*3 –
D 8415 Communication status information setup – – – 3*3 3*3 –
D 8416 Communication status device range setup – – – 3*3 3*3 –
[D]8419 Communication mode 3 3*2 3 3*3 3*3 –
*2. Available in Ver. 1.30 or later. *3. Available in Ver. 2.40 or later.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
37 Operation of Special Devices (M8000 -, D8000 -)
FNC277-FNC279 Data Transfer 3
name Content of register
FX3S FX3G FX3GC FX3U FX3UC
FX1S FX1N FX1NC FX2N FX2NC
MODBUS communication [ch2] (Refer to MODBUS Communication Edition for details.)
D 8420 Communication format – 3*1 3 3*2 3*2 –
D 8421 Protocol – 3*1 3 3*2 3*2 –
FNC280-FNC289 High-Speed Processing 2
D 8422 Communication error code – 3*1 3 3*2 3*2 M8422 –
D 8423 Error details – 3*1 3 3*2 3*2 M8423 –
D 8424 Error step number – 3*1 3 3*2 3*2 –
[D]8425 Communication format display – 3*1 3 3*2 3*2 –
D 8426 ASCII input delimiter – – – 3*2 3*2 –
FNC290-FNC299 Extension File Register Control
[D]8427 Step number being executed – 3*1 3 3*2 3*2 –
[D]8428 Current retry value – 3*1 3 3*2 3*2 –
D 8429 Slave response timeout – 3*1 3 3*2 3*2 –
D 8430 Turn around delay – 3*1 3 3*2 3*2 –
D 8431 Message to message delay – 3*1 3 3*2 3*2 –
D 8432 Number of retries – 3*1 3 3*2 3*2 –
D 8434 Slave node address – 3*1 3 3*2 3*2 –
D 8435 Communication status information setup – – – 3*2 3*2 –
D 8436 Communication status device range setup – – – 3*2 3*2 –
[D]8439 Communication mode – 3*1 3 3*2 3*2 –
*1. Available in Ver. 1.30 or later. *2. Available in Ver. 2.40 or later.
MODBUS communication [ch1, ch2] (Refer to MODBUS Communication Edition for details.)
MODBUS device mapping 1 – – – 3*3 3*3 –
D 8471 Upper –
MODBUS device mapping 2 – – – 3*3 3*3 –
D 8473 Upper –
MODBUS device mapping 3 – – – 3*3 3*3 –
D 8475 Upper –
MODBUS device mapping 4 – – – 3*3 3*3 –
D 8477 Upper –
MODBUS device mapping 5 – – – 3*3 3*3 –
D 8479 Upper –
MODBUS device mapping 6 – – – 3*3 3*3 –
D 8481 Upper –
MODBUS device mapping 7 – – – 3*3 3*3 –
D 8483 Upper –
MODBUS device mapping 8 – – – 3*3 3*3 –
D 8485 Upper –
*3. Available in Ver. 2.40 or later.
B

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
37 Operation of Special Devices (M8000 -, D8000 -)
37.1 Special Device List (M8000 -, D8000 -)
name Content of register
FX3S FX3G FX3GC FX3U FX3UC
FX1S FX1N FX1NC FX2N FX2NC
FX3U-CF-ADP [ch1] (Refer to CF-ADP Manual for details.)
[D]8400 to [D]8401 Not used –
[D]8402 Step number of executing CF-ADP
– – – 3*1 3*1 –
[D]8404 to [D]8405 Not used –
[D]8406 CF-ADP status – – – 3*1 3*1 –
[D]8407 Not used –
[D]8408 CF-ADP version – – – 3*1 3*1 –
[D]8409 to [D]8413 Not used –
Error step number of M8418*1 – – – 3*1 3*1 –
[D]8416 Not used –
[D]8417 Error code in detail for CF-ADP instructions*2*3 – – – 3*1 3*1 –
[D]8418 Error code for CF-ADP instructions*2*3 – – – 3*1 3*1 –
[D]8419 Operation mode display – – – 3*1 3*1 –
*1. Available in Ver. 2.61 or later.
*2. Cleared when the PLC switches from STOP to RUN.
*3. For details on the error code is stored in special data register, refer to the CF-ADP Manual.
FX3U-CF-ADP [ch2] (Refer to CF-ADP Manual for details.)
[D]8420 to [D]8421 Not used –
[D]8422 Step number of executing CF-ADP
– – – 3*4 3*4 –
[D]8424 to [D]8425 Not used –
[D]8426 CF-ADP status – – – 3*4 3*4 –
[D]8427 Not used –
[D]8428 CF-ADP version – – – 3*4 3*4 –
[D]8429 to [D]8433 Not used –
Error step number of M8438*5 – – – 3*4 3*4 –
[D]8436 Not used –
[D]8437 Error code in detail for CF-ADP instructions*5*6 – – – 3*4 3*4 –
[D]8438 Error code for CF-ADP instructions*5*6 – – – 3*4 3*4 –
[D]8439 Operation mode display –
*4. Available in Ver. 2.61 or later.
*5. Cleared when PLC switches from STOP to RUN.
*6. For details on the error code is stored in special data register, refer to the CF-ADP Manual.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
37 Operation of Special Devices (M8000 -, D8000 -)
FNC277-FNC279 Data Transfer 3
name Content of register
FX3S FX3G FX3GC FX3U FX3UC
FX1S FX1N FX1NC FX2N FX2NC
FX3U-ENET-ADP [ch1] (Refer to ENET-ADP Manual for details.)
[D]8400 IP Address (Low-order) 3 3*1 3*1 3*2 3*2 –
[D]8401 IP Address (High-order) 3 3*1 3*1 3*2 3*2 –
FNC280-FNC289 High-Speed Processing 2
[D]8402 Subnet mask (Low-order) 3 3*1 3*1 3*2 3*2 –
[D]8403 Subnet mask (High-order) 3 3*1 3*1 3*2 3*2 –
[D]8404 Default router IP Address (Low-order) 3 3*1 3*1 3*2 3*2 –
[D]8405 Default router IP Address (High-order) 3 3*1 3*1 3*2 3*2 –
[D]8406 Status information 3 3*1 3*1 3*2 3*2 –
FNC290-FNC299 Extension File Register Control
[D]8407 Connection condition of the Ethernet port 3 3*1 3*1 3*2 3*2 –
[D]8408 FX3U-ENET-ADP version 3 3*1 3*1 3*2 3*2 –
D 8409 Communication timeout time 3 3*1 3*1 3*2 3*2 –
D 8410 Connection forcible nullification 3 3*1 3*1 3*2 3*2 –
[D]8411 Time setting functional operation result 3 3*1 3*1 3*2 3*2 –
[D]8412 to [D]8414 Host MAC address 3 3*1 3*1 3*2 3*2 –
[D]8415 Not used –
[D]8416 Model code 3 3*1 3*1 3*2 3*2 –
[D]8417 Error code of the Ethernet adapter 3 3*1 3*1 3*2 3*2 –
[D]8418 Not used –
[D]8419 Operation mode display 3 3*1 3*1 3*2 3*2 –
*1. Available in Ver. 2.00 or later.
*2. Available in Ver. 3.10 or later.
B

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
37 Operation of Special Devices (M8000 -, D8000 -)
37.1 Special Device List (M8000 -, D8000 -)
name Content of register
FX3S FX3G FX3GC FX3U FX3UC
FX1S FX1N FX1NC FX2N FX2NC
FX3U-ENET-ADP [ch2] (Refer to ENET-ADP Manual for details.)
[D]8420 IP Address (Low-order) – 3*1 3*1 3*2 3*2 –
[D]8421 IP Address (High-order) – 3*1 3*1 3*2 3*2 –
[D]8422 Subnet mask (Low-order) – 3*1 3*1 3*2 3*2 –
[D]8423 Subnet mask (High-order) – 3*1 3*1 3*2 3*2 –
[D]8424 Default router IP Address (Low-order) – 3*1 3*1 3*2 3*2 –
[D]8425 Default router IP Address (High-order) – 3*1 3*1 3*2 3*2 –
[D]8426 Status information – 3*1 3*1 3*2 3*2 –
[D]8427 Connection condition of the Ethernet port – 3*1 3*1 3*2 3*2 –
[D]8428 FX3U-ENET-ADP version – 3*1 3*1 3*2 3*2 –
D 8429 Communication timeout time – 3*1 3*1 3*2 3*2 –
D 8430 Connection forcible nullification – 3*1 3*1 3*2 3*2 –
[D]8431 Time setting functional operation result – 3*1 3*1 3*2 3*2 –
[D]8432 to [D]8434 Host MAC address – 3*1 3*1 3*2 3*2 –
[D]8435 Not used –
[D]8436 Model code – 3*1 3*1 3*2 3*2 –
[D]8437 Error code of the Ethernet adapter – 3*1 3*1 3*2 3*2 –
[D]8438 Not used –
[D]8439 Operation mode display – 3*1 3*1 3*2 3*2 –
FX3U-ENET-ADP [ch1, ch2] (Refer to ENET-ADP Manual for details.)
[D]8490 to [D]8491 Not used –
D 8492 IP address setting (Low-order) 3 3*3 3*3 –
D 8493 IP address setting (High-order) 3 3*3 3*3 –
D 8494 Subnet mask setting (Low-order) 3 3*3 3*3 –
D 8495 Subnet mask setting (High-order) 3 3*3 3*3 –
D 8496 Default router IP address setting (Low-order) 3 3*3 3*3 –
D 8497 Default router IP address setting (High-order) 3 3*3 3*3 –
[D]8498 Error code for IP address storage area write 3 3*3 3*3 –
[D]8499 Error code for IP address storage area clear 3 3*3 3*3 –
*1. Available in Ver. 2.00 or later.
*2. Available in Ver. 3.10 or later.
*3. Available in Ver. 2.10 or later.

[D]8438*4 Error code for serial communication error 2 [ch2] – 3 M8438 –
RS2 (FNC 87) [ch2] and Computer Link [ch2] (Refer to Data Communication Edition for details.)
[D]8439 Operation mode display [ch2] – 3 –
[D]8440 to [D]8448 Not used –
[D]8449 Special block error code – 3*5 M8449 –
[D]8450 to [D]8459 Not used –
*4. Cleared when PLC power supply is turned from OFF to ON.
*5. Available in Ver. 2.20 or later.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
37 Operation of Special Devices (M8000 -, D8000 -)
FNC277-FNC279 Data Transfer 3
name Content of register
FX3S FX3G FX3GC FX3U FX3UC
FX1S FX1N FX1NC FX2N FX2NC
Positioning [FX3S/FX3G/FX3GC/FX3U/FX3UC] (Refer to Positioning Control Edition for details.)
[D]8460 to [D]8463 Not used – – – 3 3 –
DSZR (FNC150) and ZRN (FNC156) instructions: [Y000] Clear signal device specification
FNC280-FNC289 High-Speed Processing 2
3*1 M8464 –
DSZR (FNC150) and ZRN (FNC156) instructions: [Y001] Clear signal device specification
3*1 M8465 –
DSZR (FNC150) and ZRN (FNC156) instructions: [Y002] Clear signal device specification
– 3 – 3 3*1 M8466 –
FNC290-FNC299 Extension File Register Control
DSZR (FNC150) and ZRN (FNC156) instructions: [Y003] Clear signal device specification
– – – 3*2 – M8467 –
*1. Available in Ver. 2.20 or later.
*2. Available only when two FX3U-2HSY-ADP adapters are connected to an FX3U PLC.
[D]8468 to [D]8486 Not used –
[D]8487 USB communication error 3 – M8487 –
[D]8488 Not used –
[D]8489 Error code for special parameter error 3 3*4 3*4 3*3 3*3 M8489 –
[D]8490 to [D]8511 Not used –
*3. Available in Ver. 3.10 or later.
*4. Available in Ver. 2.00 or later.
B

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
37 Operation of Special Devices (M8000 -, D8000 -)
37.2 Supplement of Special Devices (M8000 - and D8000 -)
This section explains how to use the provided special devices to activate built-in PLC functions for additional program control.
RUN monitor (NO contact) Always ON while the PLC is in RUN mode.
Output to be always driven
M8001 is always OFF while the PLC is in the RUN mode.

M8002 Initial pulse (NO contact) ON ON 1 scan time
ZRST D200 D299 The latched (battery backed) type data registers D200 to D299 are cleared.
Initial pulse (NO contact)
M8003 turns OFF momentarily (for only 1 scan time) when the PLC enters the RUN mode.

M8002 Initial pulse (NO contact) ON ON 1 scan time
"Normal operation" Y000

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
37 Operation of Special Devices (M8000 -, D8000 -)
FNC277-FNC279 Data Transfer 3
The watchdog timer monitors the operation (scan) time of the PLC. When the operation is not completed within the specified time, ERROR (ERR) LED light turns on and all outputs are turned OFF. When the power is initially turned ON, "200 ms" is transferred from the system to D8000 as the default value. For executing a program beyond 200 ms, the contents of D8000 must be changed by the user program.
FNC280-FNC289 High-Speed Processing 2
Setting value of watchdog timer is set to "300 ms". 0
The watchdog timer When WDT (FNC 07) instruction is not programmed, the value stored in D8000 is not valid until END processing.
FNC290-FNC299 Extension File Register Control
→ For WDT (FNC 07) instruction, refer to Section 8.8.
This special device detects low voltage in the lithium battery for memory backup. In FX3U/FX3UC PLCs, the BATT (BAT) LED turns ON when the PLC detects low battery voltage. In FX3G/FX3GC PLCs, the ALM LED indicator turns ON when the PLC detects low battery voltage if the optional battery is installed and the battery mode is selected by the parameter setting. Use the following program to notify low battery voltage to the outside.
"Battery voltage low" Y001
M8006 latches the battery voltage low.
![Page 868 of the Mitsubishi Electronics MELSEC FX3S user manual — 37.2.6 Internal clock [M8011 to M8014]](/cdn/reader/06/06b6c5c8bfa3e981e964d8ed7432322fb86c682a85757d292a29f9cec2d4294a/images/page-868.webp?w=400)
FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
37 Operation of Special Devices (M8000 -, D8000 -)
37.2 Supplement of Special Devices (M8000 - and D8000 -)
![Mitsubishi Electronics MELSEC FX3S — 37.2.4 Power failure detection time [D8008, M8008 and M8007] diagram (page 868)](/cdn/reader/06/06b6c5c8bfa3e981e964d8ed7432322fb86c682a85757d292a29f9cec2d4294a/images/fig-868-1.webp)
Supply voltage Allowable momentary power
100V AC system 10 ms
![Mitsubishi Electronics MELSEC FX3S — 37.2.4 Power failure detection time [D8008, M8008 and M8007] diagram (page 868)](/cdn/reader/06/06b6c5c8bfa3e981e964d8ed7432322fb86c682a85757d292a29f9cec2d4294a/images/fig-868-2.webp)
The present value, minimum value and maximum value of the PLC scan time (operation time) are stored in D8010, D8011 and D8012 respectively (in 0.1-ms units). When using the constant scan mode, the values stored in these devices include the waiting time for the constant scan time.
The values stored in these devices can be monitored from peripheral equipment.
The PLC has the following four types of internal clocks which are always oscillating while the PLC power is ON.
![Mitsubishi Electronics MELSEC FX3S — 37.2.6 Internal clock [M8011 to M8014] diagram (page 868)](/cdn/reader/06/06b6c5c8bfa3e981e964d8ed7432322fb86c682a85757d292a29f9cec2d4294a/images/fig-868-3.webp)
failure time

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
37 Operation of Special Devices (M8000 -, D8000 -)
FNC277-FNC279 Data Transfer 3
Number Name Operation and function
When M8015 turns ON, the real time clock is stopped. At the edge from ON to OFF, the time from D8013 to D8019 is written to the PLC and the clock is started again.
FNC280-FNC289 High-Speed Processing 2
M8015 Clock stop and preset
M8016 Time read display is stopped When M8016 turns ON, the time display is stopped (but RTC is continued).
At the edge from OFF to ON, the RTC is set to the nearest minute. (When the second data is from 0 to 29, it is set to 0. When the second data is from 30 to 59, it is set to 0 and the minute data is incriminated by "1".)
M8017 ±30 seconds correction
M8018 Installation detection This device is always ON.
FNC290-FNC299 Extension File Register Control
M8019 Real time clock (RTC) error
When the data stored in special data registers is outside the allowable time, setting range this device turns ON.
Number Name Set value range Operation and function
D8013 Second data 0 to 59
D8014 Minute data 0 to 59
Use these devices for writing the initial value in time setting or read the present time.
D8015 Hour data 0 to 23
D8016 Day data 1 to 31
D8017 Month data 1 to 12
D8018 Year data 00 to 99 (last two digits of year)
0 to 6 (which corresponds to
→ For the real time clock setting method, refer to Subsection 37.2.8.
MOV K2000 D8018 Initial pulse
B

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
37 Operation of Special Devices (M8000 -, D8000 -)
37.2 Supplement of Special Devices (M8000 - and D8000 -)
The real time clock is set by the following method.

C u r r e n t m t i e
C l o c k e s t t i n g
C u r r e n t m t i e
C l o c k e s t t i n g
t C c o l k s e t g n i
t C c o l k s e t g n i
* 3 1 . 1 . 2 0 0 4

The default "Year" display is a 2-digit value indicating the Western calendar year.
Return to the previous set item. When pressed while "year" data is flickering, the "selection screen" is displayed.
Decreases a numeric value. A numeric value decreases at high-speed when pressed and held for 1 second or more.
Increases a numeric value. A numeric value increases at high-speed when pressed and held for 1 second or more.
Shifts to the next set item. When pressed while "second" data is flickering, the message "Current time is set" appears.
C u r r e n t m t i e
C l o c k e s t t i n g

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
37 Operation of Special Devices (M8000 -, D8000 -)
FNC277-FNC279 Data Transfer 3
→ For details, refer to Subsection 21.8.
FNC280-FNC289 High-Speed Processing 2
indicates a set item.
Example: 10:20:30 on April 25 Tuesday in 2000 Set the time 2 to 3 minutes ahead of the actual time, write the program on the left to the PLC, and turn RUN X000 ON.
MOV K30 D8013
MOV K20 D8014
FNC290-FNC299 Extension File Register Control
When the actual time reaches the input set time, turn the input switch X000 OFF to set the time and start the clock operation.
MOV K25 D8016
±30 seconds correction Every time X001 is set from OFF to ON, the second data of the clock is corrected. (When the second data is from 0 to 29, it is set to 0. When the second data is from 30 to 59, it is set to 0 and the minute data is incremented by "1".)
FNC300-FNC305 FX 3U -CF-ADP
MOV K0 D8018
MOV D8019 X001
K2
M8017
+/- 30 seconds correction
a) While M8015 is OFF, the registers for date and time cannot be changed.
Make sure to set M8015 to ON, and then input date and time. b) When inputting the time, set the time several minutes ahead of the current time.
When the actual time reaches the set time, set M8015 to OFF from ON to make the new time valid and to begin the real time clock again. c) If values indicating infeasible date, time and day of the week are input (Example: February 30, 2006), the time
cannot be set. Input the correct date, time and day of the week. d) The day of the week (D8019) is automatically corrected in accordance with the date without regard to the
written numeric value.
a) While M8015 is OFF, the registers for date and time cannot be changed.
Make sure to set M8015 to ON, and then input date and time. b) When inputting the time, set the time several minutes ahead of the current time.
When the actual time reaches the set time, set M8015 to OFF from ON to make the new time valid and to begin the real time clock again. c) If values indicating infeasible date and time are input (Example: February 30, 2006), the time cannot be set.
Input the correct date and time.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
37 Operation of Special Devices (M8000 -, D8000 -)
37.2 Supplement of Special Devices (M8000 - and D8000 -)
The inputs X000 to X017*1 have a digital filter circuit with a setting range of 0 to 60 ms. The digital filter setting value is set between 0 to 60*2 ms (in 1 ms steps) in special data register D8020. After the PLC powers ON, D8020 is automatically set to K10 (10 ms).
Determined by the contents of D8020 (initial value: 10)
*1. X000 to X007 in the FX3G/FX3GC PLCs.
*2. 0 to 15 in FX3S/FX3G/FX3GC PLCs
MOV K0 D8020
1) FX 3S PLC
Input number Input filter value when "0" is set
X000, X001 10µs
X002 to X007 50µs
X010 to X017 200µs
Input number Input filter value when "0" is set
X000, X001, X003, X004 10µ
X002, X005, X006, X007 50µs
Input number Input filter value when "0" is set
X000 to X005 5µs*3
X006, X007 50µs
X010 to X017*4 200µs
*3. When setting the input filter to "5 µs" or when receiving pulses whose response frequency is 50 k to 100 kHz using high-speed counters, perform the following actions: - Input wiring length should be 5 m (16' 4") or less. - Connect a bleeder resistor (1.5 kΩ, 1/2 W) to the input terminal. The load current of the open collector transistor output in the device on the other end should be 20 mA or more including the input current of the PLC.
*4. In the FX3U/FX3UC PLCs (16-point type), only X000 to X007 support the input filter adjustment function.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
37 Operation of Special Devices (M8000 -, D8000 -)
FNC277-FNC279 Data Transfer 3
When M8030 is set to ON, the battery LED does not turn ON even if the voltage in the battery for memory backup becomes low. When the indication of "battery voltage low error" is not required or when the battery is removed, set M8030 to ON. When batteryless operation is required in FX3U/FX3UC PLCs, do not use M8030 and refer to "1. Batteryless operation by parameter setting in peripheral equipment" below.
FNC280-FNC289 High-Speed Processing 2
FNC290-FNC299 Extension File Register Control
M8000
M8030 BATT(BAT) LED turns OFF.
M8030 BATT(BAT) LED turns OFF.
M8002
M8032 The latch areas are cleared.
S500*1 S4095 State relay
ZRST
C100 *1 C199 *1
ZRST
C220*1 C255*1 32 bit counter
D200*1 D7999 Data register
R0 R32767 FNC 40
ZRST
*1. The device number is the default number of the latch (battery backed) device range limits in the parameter settings. If the latch (battery backed) device numbers in the parameter settings are changed to other values, change the device numbers here in accordance with the changed latch ranges.
4. Cautions for communication setting devices (D8120, D8121 and D8129) Special data registers D8120 (communication format), D8121 (station number setting) and D8129 (timeout check time) are backed up by the battery in FX3U/FX3UC PLCs. When performing the batteryless operation in FX3U/FX3UC PLCs, reset these special data registers using the procedure described above, and then transfer proper set values to them using a program. The communication conditions can be set in the parameter settings. When the communication conditions are set in the parameter settings, the PLC transfers the parameter values to the above special data registers before operation. Thus it is recommended to set the communication conditions via the parameter settings.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
37 Operation of Special Devices (M8000 -, D8000 -)
37.2 Supplement of Special Devices (M8000 - and D8000 -)
Values of variable analog potentiometers built in FX3S/FX3G PLCs*1 as standard are stored as numeric data ranging from 0 to 255 in the following special registers in accordance with the scale position. An obtained numeric value can be specified as the indirectly specified value for a timer to make a variable potentiometer type analog timer.
![Mitsubishi Electronics MELSEC FX3S — 37.2.11 Built-in analog volume [D8030 and D8031] diagram (page 874)](/cdn/reader/06/06b6c5c8bfa3e981e964d8ed7432322fb86c682a85757d292a29f9cec2d4294a/images/fig-874-1.webp)
0 to 25.5 sec This register stores the value (0 to 255) of variable analog potentiometer.
"D8030 (VR2) value x 2" is transferred to D0 (D1).
The set value range can be changed (up to 32,767) by multiplying the data register value by "n". Do not use D1 in other programs.
*1. This function is not supported in the FX3S-30M /E -2AD PLC.
For all devices (image memory) in the PLC, the latch (battery backed) areas and non-latch areas can be cleared. M8031 (non-latch memory all clear), M8032 (latch memory all clear)
Device number Cleared devices
M8031*1 (non-latch memory all clear)
M8032 (latch memory all clear)
*1. When the optional battery is installed in FX3G/FX3GC PLCs, general type devices which were changed to the latch (battery backed) type are handled as devices in latch areas.
When the special auxiliary relay M8033 is turned ON, the output status in the RUN mode is retained even if the PLC status switches from RUN to STOP.
M8033 Outputs are retained even during STOP mode.
For example, when a heater is driven by the PLC, the PLC can be stopped while the heater and other equipment are kept driven, and then the PLC can be started again after program changes.
Command · input

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
37 Operation of Special Devices (M8000 -, D8000 -)
FNC277-FNC279 Data Transfer 3
When M8034 is turned ON, the output memory is cleared. As a result, all actual output relay contacts are turned OFF and the PLC is operated in the image memory.
FNC280-FNC289 High-Speed Processing 2
M8034 All outputs are disabled (image RUN status).
When using external push button switches to control the PLC's RUN/STOP mode, operate the switches using the following procedure. The PLC enters RUN mode by one-shot input of the RUN switch, while one-shot input of the STOP switch drives the STOP mode.
FNC290-FNC299 Extension File Register Control
RUN
STOP
S/S X001
X000 PLC
M8000 Forced RUN mode M8035
Forced RUN signal M8036
Forced STOP signal M8037 X001
Write the above program to the PLC.
In GX Works2, double-click [Parameter] - [PLC parameter] in the project view to display the dialog box. Go to the [PLC System(1)] tab, and set "RUN Terminal Input". b) Specify the input (X) number to switch from STOP mode to RUN mode.
A
![Page 876 of the Mitsubishi Electronics MELSEC FX3S user manual — 37.2.17 State control in program with STL instruction/SFC chart [M8040]](/cdn/reader/06/06b6c5c8bfa3e981e964d8ed7432322fb86c682a85757d292a29f9cec2d4294a/images/page-876.webp?w=400)
FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
37 Operation of Special Devices (M8000 -, D8000 -)
37.2 Supplement of Special Devices (M8000 - and D8000 -)
When the special auxiliary relay M8039 is set to ON and a setting value for the constant scan time (in 1-ms units) is stored in special data register D8039, the scan time in the PLC does not become shorter than the value stored in D8039. The PLC pauses for the remaining time when the operation ends earlier, and then returns to step 0.
M8039 Constant scan mode
RUN monitor FNC 12
The constant scan time is set to 20 ms.
SEGL (FNC 74), ARWS (FNC 75) and PR (FNC 77), it is recommended to use the constant scan mode or to use the instruction in a timer interrupt program. b) When using HKY (FNC 71) instruction
It is necessary to use a scan time of 20 ms or more due to the response delays of the key input filter.
When M8040 is ON, the state relay ON status is not transferred even if the transfer condition is satisfied. The transfer between states is disabled and the output status remains in stopped State.
→ For resetting outputs in a state, refer to Subsection 35.1.7.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
37 Operation of Special Devices (M8000 -, D8000 -)
FNC277-FNC279 Data Transfer 3
When the analog expansion board is connected, operations and functions are assigned to devices shown in the table below in accordance with the connection position. Operations and functions in the table below are shaded for write-prohibited devices.
→ For details, refer to the Analog Control Edition.
FNC280-FNC289 High-Speed Processing 2
Number Operation and function
version Ver. 1.10 or later*1 Ver. 1.10 or later*1
1st analog expansion board
FNC290-FNC299 Extension File Register Control
M 8260 Input mode switching Ch1 Output mode switching
M 8261 Input mode switching Ch2 Not used
M 8262 Not used Not used
M 8263 Not used Not used
M 8264 Not used Output hold mode cancel
M 8265 Not used Not used
M 8266 Not used Not used
M 8267 Not used Not used
M 8268 Not used Not used
M 8269 Not used Not used
2nd analog expansion board*2
M 8270 Input mode switching Ch1 Output mode switching
M 8271 Input mode switching Ch2 Not used
M 8272 Not used Not used
M 8273 Not used Not used
M 8274 Not used Output hold mode cancel
M 8275 Not used Not used
M 8276 Not used Not used
M 8277 Not used Not used
M 8278 Not used Not used
M 8279 Not used Not used
*1. In the case of FX3S PLC, all versions are applicable.
*2. Only to FX3G PLC (40-point and 60-point type) can be connected.
B

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
37 Operation of Special Devices (M8000 -, D8000 -)
37.2 Supplement of Special Devices (M8000 - and D8000 -)
Number Operation and function
version Ver. 1.10 or later*1 Ver. 1.10 or later*1
1st analog expansion board
D 8260 Input data Ch1 Output data
D 8261 Input data Ch2 Not used
D 8262 Not used Not used
D 8263 Not used Not used
D 8264 Number of averaging times for Ch1 (1 to 4095) Not used
D 8265 Number of averaging times for Ch2 (1 to 4095) Not used
D 8266 Not used Not used
D 8267 Not used Not used
D 8268 Error status Error status
2nd analog expansion board*2
D 8270 Input data Ch1 Output data
D 8271 Input data Ch2 Not used
D 8272 Not used Not used
D 8273 Not used Not used
D 8274 Number of averaging times for Ch1 (1 to 4095) Not used
D 8275 Number of averaging times for Ch2 (1 to 4095) Not used
D 8276 Not used Not used
D 8277 Not used Not used
D 8278 Error status Error status
*1. In the case of FX3S PLC, all versions are applicable.
*2. Only to FX3G PLC (40-point and 60-point type) can be connected.
Applicable

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
37 Operation of Special Devices (M8000 -, D8000 -)
FNC277-FNC279 Data Transfer 3
When analog special adapters are connected, operations and functions are assigned to the devices shown in the tables below in accordance with the number of connected analog special adapters. Devices which cannot be written to are shaded in the "Operation and function" column.
→ For details, refer to the Analog Control Edition.
FNC280-FNC289 High-Speed Processing 2
Number Operation and function
FX3U-4AD-ADP FX3U-4DA-ADP FX3U-3A-ADP
version Ver. 1.20 or later*1 Ver. 1.20 or later*1 Ver. 2.61 or later
1st analog special adapter
FNC290-FNC299 Extension File Register Control
M 8260 Input mode switching Ch1 Output mode switching Ch1 Input mode switching Ch1
M 8261 Input mode switching Ch2 Output mode switching Ch2 Input mode switching Ch2
M 8262 Input mode switching Ch3 Output mode switching Ch3 Output mode switching
M 8263 Input mode switching Ch4 Output mode switching Ch4 Not used
M 8264 Not used Output hold mode cancel Ch1 Not used
M 8265 Not used Output hold mode cancel Ch2 Not used
M 8266 Not used Output hold mode cancel Ch3 Output hold mode cancel
M 8267 Not used Output hold mode cancel Ch4 Sets whether or not input channel 1 is used.
M 8268 Not used Not used Sets whether or not input channel 2 is used.
M 8269 Not used Not used Sets whether or not output channel is used.
2nd analog special adapter
M 8270 Input mode switching Ch1 Output mode switching Ch1 Input mode switching Ch1
M 8271 Input mode switching Ch2 Output mode switching Ch2 Input mode switching Ch2
M 8272 Input mode switching Ch3 Output mode switching Ch3 Output mode switching
M 8273 Input mode switching Ch4 Output mode switching Ch4 Not used
M 8274 Not used Output hold mode cancel Ch1 Not used
M 8275 Not used Output hold mode cancel Ch2 Not used
M 8276 Not used Output hold mode cancel Ch3 Output hold mode cancel
M 8277 Not used Output hold mode cancel Ch4 Sets whether or not input channel 1 is used.
M 8278 Not used Not used Sets whether or not input channel 2 is used.
M 8279 Not used Not used Sets whether or not output channel is used.
3rd analog special adapter
M 8280 Input mode switching Ch1 Output mode switching Ch1 Input mode switching Ch1
M 8281 Input mode switching Ch2 Output mode switching Ch2 Input mode switching Ch2
M 8282 Input mode switching Ch3 Output mode switching Ch3 Output mode switching
M 8283 Input mode switching Ch4 Output mode switching Ch4 Not used
M 8284 Not used Output hold mode cancel Ch1 Not used
M 8285 Not used Output hold mode cancel Ch2 Not used
M 8286 Not used Output hold mode cancel Ch3 Output hold mode cancel
M 8287 Not used Output hold mode cancel Ch4 Sets whether or not input channel 1 is used.
M 8288 Not used Not used Sets whether or not input channel 2 is used.
M 8289 Not used Not used Sets whether or not output channel is used.
4th analog special adapter
M 8290 Input mode switching Ch1 Output mode switching Ch1 Input mode switching Ch1
M 8291 Input mode switching Ch2 Output mode switching Ch2 Input mode switching Ch2
M 8292 Input mode switching Ch3 Output mode switching Ch3 Output mode switching
M 8293 Input mode switching Ch4 Output mode switching Ch4 Not used
M 8294 Not used Output hold mode cancel Ch1 Not used
M 8295 Not used Output hold mode cancel Ch2 Not used
M 8296 Not used Output hold mode cancel Ch3 Output hold mode cancel
M 8297 Not used Output hold mode cancel Ch4 Sets whether or not input channel 1 is used.
M 8298 Not used Not used Sets whether or not input channel 2 is used.
M 8299 Not used Not used Sets whether or not output channel is used.
*1. In the case of FX3U PLCs, all versions are applicable.
![Page 880 of the Mitsubishi Electronics MELSEC FX3S user manual — 37.2.19 Analog special adapters [M8260 to M8299 and D8260 to D8299]](/cdn/reader/06/06b6c5c8bfa3e981e964d8ed7432322fb86c682a85757d292a29f9cec2d4294a/images/page-880.webp?w=400)
FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
37 Operation of Special Devices (M8000 -, D8000 -)
37.2 Supplement of Special Devices (M8000 - and D8000 -)
![Mitsubishi Electronics MELSEC FX3S — 37.2.19 Analog special adapters [M8260 to M8299 and D8260 to D8299] diagram (page 880)](/cdn/reader/06/06b6c5c8bfa3e981e964d8ed7432322fb86c682a85757d292a29f9cec2d4294a/images/fig-880-1.webp)
FX3U-4AD-PT(W)-ADP FX3U-4AD-TC-ADP FX3U-4AD-PNK-ADP
version Ver. 1.30 or later*1 Ver. 1.30 or later*1 Ver. 1.30 or later*1
M 8260 Temperature unit selection Temperature unit selection Temperature unit selection
M 8261 Not used Type-K/-J switching Input sensor selection
M 8270 Temperature unit selection Temperature unit selection Temperature unit selection
M 8271 Not used Type-K/-J switching Input sensor selection
M 8280 Temperature unit selection Temperature unit selection Temperature unit selection
M 8281 Not used Type-K/-J switching Input sensor selection
M 8290 Temperature unit selection Temperature unit selection Temperature unit selection
M 8291 Not used Type-K/-J switching Input sensor selection
*1. In the case of FX3U PLCs, all versions are applicable.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
37 Operation of Special Devices (M8000 -, D8000 -)
FNC277-FNC279 Data Transfer 3
FX3U-4AD-ADP FX3U-4DA-ADP FX3U-3A-ADP
version Ver. 1.00 or later Ver. 1.00 or later Ver. 1.20 or later*1
1st analog special adapter
M 8280 Input mode switching Ch1 Output mode switching Ch1 Input mode switching Ch1
FNC280-FNC289 High-Speed Processing 2
M 8281 Input mode switching Ch2 Output mode switching Ch2 Input mode switching Ch2
M 8282 Input mode switching Ch3 Output mode switching Ch3 Output mode switching
M 8283 Input mode switching Ch4 Output mode switching Ch4 Not used
M 8284 Not used Output hold mode cancel Ch1 Not used
M 8285 Not used Output hold mode cancel Ch2 Not used
M 8286 Not used Output hold mode cancel Ch3 Output hold mode cancel
FNC290-FNC299 Extension File Register Control
M 8287 Not used Output hold mode cancel Ch4 Sets whether or not input channel 1 is used.
M 8288 Not used Not used Sets whether or not input channel 2 is used.
M 8289 Not used Not used Sets whether or not output channel is used.
2nd analog special adapter*2
M 8290 Input mode switching Ch1 Output mode switching Ch1 Input mode switching Ch1
M 8291 Input mode switching Ch2 Output mode switching Ch2 Input mode switching Ch2
M 8292 Input mode switching Ch3 Output mode switching Ch3 Output mode switching
M 8293 Input mode switching Ch4 Output mode switching Ch4 Not used
M 8294 Not used Output hold mode cancel Ch1 Not used
M 8295 Not used Output hold mode cancel Ch2 Not used
M 8296 Not used Output hold mode cancel Ch3 Output hold mode cancel
M 8297 Not used Output hold mode cancel Ch4 Sets whether or not input channel 1 is used.
M 8298 Not used Not used Sets whether or not input channel 2 is used.
M 8299 Not used Not used Sets whether or not output channel is used.
FX 3U -4AD-PT(W)-ADP FX 3U -4AD-TC-ADP FX 3U -4AD-PNK-ADP
version Ver. 1.00 or later Ver. 1.00 or later Ver. 1.00 or later
M 8280 Temperature unit selection Temperature unit selection Temperature unit selection
M 8281 Not used Type-K/-J switching Input sensor selection
M 8282 Not used Not used Not used
M 8283 Not used Not used Not used
M 8284 Not used Not used Not used
M 8285 Not used Not used Not used
M 8286 Not used Not used Not used
M 8287 Not used Not used Not used
M 8288 Not used Not used Not used
M 8289 Not used Not used Not used
M 8290 Temperature unit selection Temperature unit selection Temperature unit selection
M 8291 Not used Type-K/-J switching Input sensor selection
M 8292 Not used Not used Not used
M 8293 Not used Not used Not used
M 8294 Not used Not used Not used
M 8295 Not used Not used Not used
M 8296 Not used Not used Not used
M 8297 Not used Not used Not used
M 8298 Not used Not used Not used
M 8299 Not used Not used Not used
*1. In the case of FX3S/FX3GC PLCs, all versions are applicable.
*2. Can be connected only to FX3G PLC (40-point and 60-point type) and FX3GC PLC.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
37 Operation of Special Devices (M8000 -, D8000 -)
37.2 Supplement of Special Devices (M8000 - and D8000 -)
Number Operation and function FX3U-4AD-ADP FX3U-4DA-ADP FX3U-3A-ADP Applicable
version Ver. 1.20 or later*1 Ver. 1.20 or later*1 Ver. 2.61 or later
1st analog special adapter D 8260 Input data Ch1 Output data Ch1 Input data Ch1 D 8261 Input data Ch2 Output data Ch2 Input data Ch2 D 8262 Input data Ch3 Output data Ch3 Output data D 8263 Input data Ch4 Output data Ch4 Not used
D 8264 Number of averaging times for Ch1 (1 to 4095) Not used Number of averaging times for Ch1 (1 to 4095)
D 8265 Number of averaging times for Ch2 (1 to 4095) Not used Number of averaging times for Ch2 (1 to 4095)
D 8266 Number of averaging times for Ch3 (1 to 4095) Not used Not used
D 8267 Number of averaging times for Ch4 (1 to 4095) Not used Not used
D 8268 Error status Error status Error status D 8269 Model code: K1 Model code: K2 Model code: K50 2nd analog special adapter D 8270 Input data Ch1 Output data Ch1 Input data Ch1 D 8271 Input data Ch2 Output data Ch2 Input data Ch2 D 8272 Input data Ch3 Output data Ch3 Output data D 8273 Input data Ch4 Output data Ch4 Not used
D 8274 Number of averaging times for Ch1 (1 to 4095) Not used Number of averaging times for Ch1 (1 to 4095)
D 8275 Number of averaging times for Ch2 (1 to 4095) Not used Number of averaging times for Ch2 (1 to 4095)
D 8276 Number of averaging times for Ch3 (1 to 4095) Not used Not used
D 8277 Number of averaging times for Ch4 (1 to 4095) Not used Not used
D 8278 Error status Error status Error status D 8279 Model code: K1 Model code: K2 Model code: K50 3rd analog special adapter D 8280 Input data Ch1 Output data Ch1 Input data Ch1 D 8281 Input data Ch2 Output data Ch2 Input data Ch2 D 8282 Input data Ch3 Output data Ch3 Output data D 8283 Input data Ch4 Output data Ch4 Not used
D 8284 Number of averaging times for Ch1 (1 to 4095) Not used Number of averaging times for Ch1 (1 to 4095)
D 8285 Number of averaging times for Ch2 (1 to 4095) Not used Number of averaging times for Ch2 (1 to 4095)
D 8286 Number of averaging times for Ch3 (1 to 4095) Not used Not used
D 8287 Number of averaging times for Ch4 (1 to 4095) Not used Not used
D 8288 Error status Error status Error status D 8289 Model code: K1 Model code: K2 Model code: K50 4th analog special adapter D 8290 Input data Ch1 Output data Ch1 Input data Ch1 D 8291 Input data Ch2 Output data Ch2 Input data Ch2 D 8292 Input data Ch3 Output data Ch3 Output data D 8293 Input data Ch4 Output data Ch4 Not used
D 8294 Number of averaging times for Ch1 (1 to 4095) Not used Number of averaging times for Ch1 (1 to 4095)
D 8295 Number of averaging times for Ch2 (1 to 4095) Not used Number of averaging times for Ch2 (1 to 4095)
D 8296 Number of averaging times for Ch3 (1 to 4095) Not used Not used
D 8297 Number of averaging times for Ch4 (1 to 4095) Not used Not used
D 8298 Error status Error status Error status D 8299 Model code: K1 Model code: K2 Model code: K50
*1. In the case of FX3U PLCs, all versions are applicable.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
37 Operation of Special Devices (M8000 -, D8000 -)
FNC277-FNC279 Data Transfer 3
Number Operation and function FX3U-4AD-PT(W)-ADP FX3U-4AD-TC-ADP FX3U-4AD-PNK-ADP Applicable
version Ver. 1.30 or later*1 Ver. 1.30 or later*1 Ver. 1.30 or later*1
1st analog special adapter D 8260 Measured temperature Ch1 Measured temperature Ch1 Measured temperature Ch1 D 8261 Measured temperature Ch2 Measured temperature Ch2 Measured temperature Ch2 D 8262 Measured temperature Ch3 Measured temperature Ch3 Measured temperature Ch3 D 8263 Measured temperature Ch4 Measured temperature Ch4 Measured temperature Ch4
FNC280-FNC289 High-Speed Processing 2
D 8264 Number of averaging times for Ch1 (1 to 4095)
Number of averaging times for Ch1 (1 to 4095)
Number of averaging times for Ch1 (1 to 4095)
D 8265 Number of averaging times for Ch2 (1 to 4095)
Number of averaging times for Ch2 (1 to 4095)
Number of averaging times for Ch2 (1 to 4095)
D 8266 Number of averaging times for Ch3 (1 to 4095)
Number of averaging times for Ch3 (1 to 4095)
Number of averaging times for Ch3 (1 to 4095)
FNC290-FNC299 Extension File Register Control
D 8267 Number of averaging times for Ch4 (1 to 4095)
Number of averaging times for Ch4 (1 to 4095) D 8268 Error status Error status Error status
Number of averaging times for Ch4 (1 to 4095)
2nd analog special adapter D 8270 Measured temperature Ch1 Measured temperature Ch1 Measured temperature Ch1 D 8271 Measured temperature Ch2 Measured temperature Ch2 Measured temperature Ch2 D 8272 Measured temperature Ch3 Measured temperature Ch3 Measured temperature Ch3 D 8273 Measured temperature Ch4 Measured temperature Ch4 Measured temperature Ch4
D 8274 Number of averaging times for Ch1 (1 to 4095)
Number of averaging times for Ch1 (1 to 4095)
Number of averaging times for Ch1 (1 to 4095)
D 8275 Number of averaging times for Ch2 (1 to 4095)
Number of averaging times for Ch2 (1 to 4095)
Number of averaging times for Ch2 (1 to 4095)
D 8276 Number of averaging times for Ch3 (1 to 4095)
Number of averaging times for Ch3 (1 to 4095)
Number of averaging times for Ch3 (1 to 4095)
D 8277 Number of averaging times for Ch4 (1 to 4095)
Number of averaging times for Ch4 (1 to 4095) D 8278 Error status Error status Error status
Number of averaging times for Ch4 (1 to 4095)
3rd analog special adapter D 8280 Measured temperature Ch1 Measured temperature Ch1 Measured temperature Ch1 D 8281 Measured temperature Ch2 Measured temperature Ch2 Measured temperature Ch2 D 8282 Measured temperature Ch3 Measured temperature Ch3 Measured temperature Ch3 D 8283 Measured temperature Ch4 Measured temperature Ch4 Measured temperature Ch4
D 8284 Number of averaging times for Ch1 (1 to 4095)
Number of averaging times for Ch1 (1 to 4095)
Number of averaging times for Ch1 (1 to 4095)
D 8285 Number of averaging times for Ch2 (1 to 4095)
Number of averaging times for Ch2 (1 to 4095)
Number of averaging times for Ch2 (1 to 4095)
D 8286 Number of averaging times for Ch3 (1 to 4095)
Number of averaging times for Ch3 (1 to 4095)
Number of averaging times for Ch3 (1 to 4095)
D 8287 Number of averaging times for Ch4 (1 to 4095)
Number of averaging times for Ch4 (1 to 4095) D 8288 Error status Error status Error status
Number of averaging times for Ch4 (1 to 4095)
4th analog special adapter D 8290 Measured temperature Ch1 Measured temperature Ch1 Measured temperature Ch1 D 8291 Measured temperature Ch2 Measured temperature Ch2 Measured temperature Ch2 D 8292 Measured temperature Ch3 Measured temperature Ch3 Measured temperature Ch3 D 8293 Measured temperature Ch4 Measured temperature Ch4 Measured temperature Ch4
D 8294 Number of averaging times for Ch1 (1 to 4095)
Number of averaging times for Ch1 (1 to 4095)
Number of averaging times for Ch1 (1 to 4095)
D 8295 Number of averaging times for Ch2 (1 to 4095)
Number of averaging times for Ch2 (1 to 4095)
Number of averaging times for Ch2 (1 to 4095)
D 8296 Number of averaging times for Ch3 (1 to 4095)
Number of averaging times for Ch3 (1 to 4095)
Number of averaging times for Ch3 (1 to 4095)
D 8297 Number of averaging times for Ch4 (1 to 4095)
Number of averaging times for Ch4 (1 to 4095) D 8298 Error status Error status Error status
Number of averaging times for Ch4 (1 to 4095)
*1. In the case of FX3U PLCs, all versions are applicable.
*2. The model code is "20" for the PT-ADP, and "21" for the PTW-ADP.
![Page 884 of the Mitsubishi Electronics MELSEC FX3S user manual — 37.2.19 Analog special adapters [M8260 to M8299 and D8260 to D8299]](/cdn/reader/06/06b6c5c8bfa3e981e964d8ed7432322fb86c682a85757d292a29f9cec2d4294a/images/page-884.webp?w=400)
FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
37 Operation of Special Devices (M8000 -, D8000 -)
37.2 Supplement of Special Devices (M8000 - and D8000 -)
Number Operation and function
FX3U-4AD-ADP FX3U-4DA-ADP FX3U-3A-ADP
version Ver. 1.00 or later Ver. 1.00 or later Ver. 1.20 or later*1
1st analog special adapter
D 8280 Input data Ch1 Output data Ch1 Input data Ch1
D 8281 Input data Ch2 Output data Ch2 Input data Ch2
D 8282 Input data Ch3 Output data Ch3 Output data
D 8283 Input data Ch4 Output data Ch4 Not used
D 8284 Number of averaging times for Ch1 (1 to 4095) Not used Number of averaging times for Ch1 (1 to 4095)
D 8285 Number of averaging times for Ch2 (1 to 4095) Not used Number of averaging times for Ch2 (1 to 4095)
D 8286 Number of averaging times for Ch3 (1 to 4095) Not used Not used
D 8287 Number of averaging times for Ch4 (1 to 4095) Not used Not used
D 8288 Error status Error status Error status
2nd analog special adapter*2
D 8290 Input data Ch1 Output data Ch1 Input data Ch1
D 8291 Input data Ch2 Output data Ch2 Input data Ch2
D 8292 Input data Ch3 Output data Ch3 Output data
D 8293 Input data Ch4 Output data Ch4 Not used
D 8294 Number of averaging times for Ch1 (1 to 4095) Not used Number of averaging times for Ch1 (1 to 4095)
D 8295 Number of averaging times for Ch2 (1 to 4095) Not used Number of averaging times for Ch2 (1 to 4095)
D 8296 Number of averaging times for Ch3 (1 to 4095) Not used Not used
D 8297 Number of averaging times for Ch4 (1 to 4095) Not used Not used
D 8298 Error status Error status Error status
*1. In the case of FX3S/FX3G PLCs, all versions are applicable.
*2. Can be connected only to FX3G PLC (40-point and 60-point type) and FX3GC PLC.
Applicable

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
37 Operation of Special Devices (M8000 -, D8000 -)
FNC277-FNC279 Data Transfer 3
Number Operation and function
FX3U-4AD-PT(W)-ADP FX3U-4AD-TC-ADP FX3U-4AD-PNK-ADP
version Ver. 1.00 or later Ver. 1.00 or later Ver. 1.00 or later
1st analog special adapter
D 8280 Measured temperature Ch1 Measured temperature Ch1 Measured temperature Ch1
D 8281 Measured temperature Ch2 Measured temperature Ch2 Measured temperature Ch2
FNC280-FNC289 High-Speed Processing 2
D 8282 Measured temperature Ch3 Measured temperature Ch3 Measured temperature Ch3
D 8283 Measured temperature Ch4 Measured temperature Ch4 Measured temperature Ch4
D 8284 Number of averaging times for Ch1 (1 to 4095)
Number of averaging times for Ch1 (1 to 4095)
Number of averaging times for Ch1 (1 to 4095)
D 8285 Number of averaging times for Ch2 (1 to 4095)
Number of averaging times for Ch2 (1 to 4095)
Number of averaging times for Ch2 (1 to 4095)
D 8286 Number of averaging times for Ch3 (1 to 4095)
Number of averaging times for Ch3 (1 to 4095)
Number of averaging times for Ch3 (1 to 4095)
FNC290-FNC299 Extension File Register Control
D 8287 Number of averaging times for Ch4 (1 to 4095)
Number of averaging times for Ch4 (1 to 4095)
Number of averaging times for Ch4 (1 to 4095)
D 8288 Error status Error status Error status
2nd analog special adapter*1
D 8290 Measured temperature Ch1 Measured temperature Ch1 Measured temperature Ch1
D 8291 Measured temperature Ch2 Measured temperature Ch2 Measured temperature Ch2
D 8292 Measured temperature Ch3 Measured temperature Ch3 Measured temperature Ch3
D 8293 Measured temperature Ch4 Measured temperature Ch4 Measured temperature Ch4
D 8294 Number of averaging times for Ch1 (1 to 4095)
Number of averaging times for Ch1 (1 to 4095)
Number of averaging times for Ch1 (1 to 4095)
D 8295 Number of averaging times for Ch2 (1 to 4095)
Number of averaging times for Ch2 (1 to 4095)
Number of averaging times for Ch2 (1 to 4095)
D 8296 Number of averaging times for Ch3 (1 to 4095)
Number of averaging times for Ch3 (1 to 4095)
Number of averaging times for Ch3 (1 to 4095)
D 8297 Number of averaging times for Ch4 (1 to 4095)
Number of averaging times for Ch4 (1 to 4095)
Number of averaging times for Ch4 (1 to 4095)
D 8298 Error status Error status Error status
*1. Can be connected only to FX3G PLC (40-point and 60-point type) and FX3GC PLC.
*2. The model code is "20" for the PT-ADP, and "21" for the PTW-ADP.
B

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
38 Error Check Method and Error Code List
38.1 States and Colors of LEDs PLC Operation Status
When an error occurs while the program is being executed, troubleshoot the cause of the error in accordance with this chapter. For error details, refer to the Data Communication Edition and the Hardware Edition of the PLC main unit.
When an error has occurred, the PLC state can be checked using the LED status lights on the PLC.
FX 3GC PLC


FX 3UC (D, DS, DSS) PLC


FX 3UC -32MT-LT(-2) PLC

POWER (Green) RUN (Green) BATT (Red) ERROR (Red) L. RUN (Green) L. ERR (Red)

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
38 Error Check Method and Error Code List
FNC277-FNC279 Data Transfer 3
LED status PLC status Action
Lit The voltage is correctly supplied to the power terminal. The power supply is normal.
FNC280-FNC289 High-Speed Processing 2
When the power is not OFF, check the power supply and power line route. When the power is correctly supplied, consult a Mitsubishi Electric representative.
FNC290-FNC299 Extension File Register Control
LED status PLC status Action
Lit Sequence program is executing. The PLC operation status is indicated. This LED is not lit depending on the ERROR (ERR) LED status. (Refer to Subsection 38.1.4.) Unlit Sequence program is stopped.
38.1.3 BATT (BAT) LED [lit or unlit] [FX 3U /FX 3UC ]
LED status PLC status Action
Lit The battery voltage is low. Replace the battery as soon as possible. (Refer to FX3U/FX3UC Hardware edition.)
Unlit The battery voltage exceeds the value set in D8006. The battery is normal.
This LED is valid when the optional battery is installed and the battery mode is selected using a parameter.
LED status PLC status Action
Lit The battery voltage is low. Replace the battery as soon as possible. (Refer to FX3G/FX3GC Hardware edition.)
Unlit The battery voltage exceeds the value set in D8006. The battery is normal.
B

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
38 Error Check Method and Error Code List
38.1 States and Colors of LEDs PLC Operation Status
LED status PLC status Action
1) Change the PLC mode to STOP, and turn ON the PLC power again. When the ERROR (ERR) LED is off, a watchdog timer error occurred. Take one of the following actions: - Review the program, and make sure that the maximum value (D8012) of the scan time is not larger than the set value (D8000) of the watchdog timer. - Make sure that an input used for input interrupt or pulse catch does not abnormally turn ON and OFF several times in one scan time. - Make sure that the frequency of the pulse (duty: 50%) input to a high-speed counter is within the specifications range. - Adding a WDT instruction Use two or more WDT instructions in a program so that the watchdog timer is reset several times in one scan time. - Change the set value of the watchdog timer Change the set value (D8000) of the watchdog timer in a program so that it is larger than the maximum value (D8012) of the scan time. 2) Remove the PLC, and connect another power supply to the PLC. If the ERROR (ERR) LED is off, the cause of the error may be noise. Examine the following action: - Check the wiring for grounding, and then review the wiring route and installation location. - Add a noise filter in the power line. 3) If the ERROR (ERR) LED is not off even after the step 1) or 2), consult a Mitsubishi Electric representative.
A watchdog timer error has occurred, or the hardware of the PLC may be damaged.
Execute PLC diagnostics and program check by programming tool. For instructions, refer to Section 38.4.
If PLC operation is a failure, execute the PLC diagnostics or program check by programming tool. An I/O configuration error, serial communication error, or operation error may occur.
Unlit Error which stops PLC has not occurred.
Mode LED status PLC status Action
Lit Data link is executing ⎯
Unlit Data link is stopped • Take action according to the L ERR LED status.
CONFIG*1 Lit Data link is executing ⎯
Unlit Data link is stopped • Take action according to the L ERR LED status.
Lit The self-loopback test is normally finished. ⎯
The self-loopback test is abnormally finished. (This LED is off while the self-loopback test is executing.)
*1. FX3UC-32MT-LT only.
Lit · Flickering · Unlit

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
38 Error Check Method and Error Code List
FNC277-FNC279 Data Transfer 3
Mode LED status PLC status Action
FNC280-FNC289 High-Speed Processing 2
Flickering All stations are abnormal
Unlit Data link is being normally executed ⎯
FNC290-FNC299 Extension File Register Control
Used station numbers mismatch. (Remote stations are checked while the remote station information is edited.)
All stations are abnormal. (Remote stations are checked while the remote station information is edited.)
Unlit Data link is being normally executed ⎯
Lit The self-loopback test is abnormally finished.
The self-loopback test is normally finished. (This LED is off while the self- loopback test is executing.)
*1. FX3UC-32MT-LT only.
→ For details, refer to the Hardware Edition of the PLC main unit.
B

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
38 Error Check Method and Error Code List
38.2 Error Code Check Method and Indication
The error code can be checked by programming tool and display module. This subsection explains how to set the real time clock in the display module FX3U-7DM (built in the FX3UC-32MT-LT (-2)). Refer to the following manual for the display module FX3G-5DM.
Error code check method by display module
key Contents of operation
ESC Return to "TOP screen".
Moves the cursor up. Moves the cursor at high-speed when pressed for 1 second or more. When the cursor is located at the top, [-] key operation is invalid.
Moves the cursor down. Moves the cursor at high-speed when pressed for 1 second or more. When the cursor is located at the bottom, [+] key operation is invalid.
OK Selects a flickering item with the cursor.
*1. Displayed in the FX3UC-32MT-LT-2.
When error does not occur
key Contents of operation
When one error occurs
ESC Returns to "menu screen".
When one or no error Is invalid.
When two or more errors Displays the previous error display screen.
When one or no error Is invalid.
When two or more errors Displays the next error display screen.
Error code 6 6 1 2
OK Returns to "menu screen".
2 or more errors occur
Error code 1 0 2 0
[4] Number of errors at same time (When two or more errors occur, this information displays.)
/ 2 2 [4]
Error code 6 3 0 1

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
38 Error Check Method and Error Code List
FNC277-FNC279 Data Transfer 3
1 Connect a personal computer to PLC. 2 Execute PLC diagnostics.
FNC280-FNC289 High-Speed Processing 2
Click [Diagnostics]→[PLC Diagnostics] on the menu bar, and execute the PLC diagnostics.

FNC290-FNC299 Extension File Register Control
3 Check the diagnostics result.
When the following dialog box appears, check the contents of the error.

Open the error help dialog box to check the error details.
The error in PLC is displayed.
The LED status of FX PLC is displayed.
B

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
38 Error Check Method and Error Code List
38.2 Error Code Check Method and Indication
The table below shows the error expression in this manual, GX Works2, GX Developer, and display modules (FX3U- 7DM). • Comparison between this manual and GX Works2.

Serial communication error 2 [ch2] Serial Communication Error 2[ch2]



FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
38 Error Check Method and Error Code List
38.3 Supplementary Explanation of Devices for Error Detection
FNC277-FNC279 Data Transfer 3
When the M8060, M8061, M8064 to M8067 turn ON, the smallest ON device number is stored in D8004, and M8004 turns ON.
FNC280-FNC289 High-Speed Processing 2
2) When turning M8069 ON in advance, PLC will enter STOP mode (as M8061 PLC hardware error occurs) if a failure occurs in an I/O extension unit, an extension power supply module, or an extension unit/block. When turning M8069 ON, PLC executes I/O bus check. If an error is found, error code 6103 or 6104 is stored to D8061, and M8061 turns ON. When error code 6104 is stored, M8009 turns ON, and the PLC stores the I/O numbers following the extension power supply module or the powered extension unit with DC 24V output failure to D8009.
FNC290-FNC299 Extension File Register Control
1 0 2 0
*1. 10 to 337 in FX3U/FX3UC PLCs, and 10 to 177 in FX3G/FX3GC PLCs
B

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
38 Error Check Method and Error Code List
38.3 Supplementary Explanation of Devices for Error Detection
Special auxiliary relays for error detection and special data registers for error detection operate in the relationship shown below. The state of error occurrence can be checked by monitoring the contents of auxiliary relays and data registers or by using the PLC diagnosis function programming tool.
By using the PLC diagnosis function provided in the programming tool (GX Works2, etc.), Graphic Operation Terminal (GOT1000) or the display module (FX 3U-7DM), the contents of the error code (D8060 to D8067, D8438, D8449) can be checked in message format.
D8009 M8009 24V DC down
D8060 M8060 I/O configuration error
D8061 M8061 PLC hardware error
M8069 I/O bus check
D8062 M8062 Serial communication error 0
Special M number (smallest device number) of error occurrence
ON when an error occurs
D8063 M8063 Serial communication error 1
D8438 M8438 Serial communication error 2
D8064 M8064 Parameter error
32K Error step number The error step number is also stored in D8069, but only for programs 32K steps and less.
D8065 M8065 Syntax error
D8066 M8066 Circuit error
D8067 M8067 Operation error
1st error step latched The error step number is also stored in D8068, but only for programs 32K steps and less.
M8068 Operation error latch
After clearing errors, forcibly clear M8068 using the device monitor function in a programming tool.
D8317 M8316 Unconnected I/O designation error D8316
M8318 BFM initialization failure D8318
M8487 M8449 M8489
USB communication error Special block error Special parameter error
Error item ERROR (ERR)
The status of the PLC
M8060 I/O configuration error Unlit RUN/STOP is Continued Check Check ⎯
M8061 PLC hardware error Lit Forced STOP Check ⎯ Always
M8062 Serial communication error 0 [ch 0] Unlit RUN/STOP is Continued ⎯ ⎯ When receiving signal from counterpart station
M8063 Serial communication error 1 [ch 1] Unlit RUN/STOP is Continued ⎯ ⎯ When receiving signal from counterpart station
M8438 Serial communication error 2 [ch 2] Unlit RUN/STOP is Continued ⎯ ⎯ When receiving signal from counterpart station
M8064 Parameter error Flickering STOP is Continued
When program is changed (STOP) When program is transferred (STOP)
M8065 Syntax error Flickering STOP is Continued
M8066 Circuit error Flickering STOP is Continued
M8067 Operation error Unlit RUN is Continued ⎯ ⎯ RUN mode M8068 Operation error latch Unlit RUN is Continued
M8109 I/O refresh error Unlit RUN/STOP is Continued ⎯ ⎯ Always
M8316 Unconnected I/O designation error Unlit RUN is Continued ⎯ ⎯ RUN mode
M8318 BFM initialization failure Unlit RUN is Continued ⎯ Check ⎯
M8449 Special block error Unlit RUN/STOP is Continued ⎯ ⎯ Always
M8487 USB communication error [USB] Unlit RUN/STOP is Continued ⎯ ⎯ When receiving signal from counterpart station
M8489 Special parameter error Unlit STOP is Continued Check ⎯ When special parameter is changed (STOP)
D8166 Special block error condition Unlit RUN/STOP is Continued ⎯ ⎯ Always

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
38 Error Check Method and Error Code List
38.4 Error Code List and Action
FNC277-FNC279 Data Transfer 3
When a program error occurs in the PLC, the error code is stored in the special data registers D8060 to D8067, D8438, D8449, D8487 and D8489, and the error bit turns ON in the special data register D8166 as follows. The following actions should be taken.
PLC operation at error occurrence Contents of error Action
FNC280-FNC289 High-Speed Processing 2
I/O configuration error [M8060(D8060)]
The head number of unconnected I/O device
1 0 2 0
FNC290-FNC299 Extension File Register Control
Unconnected I/O relay numbers are programmed. The PLC continues its operation. Modify the program, check wiring connection, or add the appropriate unit/ block.
Ex- ample:
Serial communication error 2 [M8438(D8438)]
0000 ⎯ No error
Parity, overrun or framing error
3802 Communication character error
3803 Communication data sum check error
3804 Communication data format error
3806 Communication time-out detected
3807 Modem initialization error
3808 N:N network parameter error
3809 N:N Network setting error
3812 Parallel link character error
3813 Parallel link sum error
3814 Parallel link format error
3820 Inverter communication error
3821 MODBUS communication error
When the memory cassette is used, check whether it is mounted correctly. If the problem persists or if the memory cassette is not used, something may be malfunctioning inside the PLC. Consult your local Mitsubishi Electric representative.
3830 Memory access error
3840 Special adapter connection error Check connection of the special adapter.
PLC hardware error [M8061(D8061)]
0000 ⎯ No error
When the memory cassette is used, check whether it is mounted correctly. If the problem persists or if the memory cassette is not used, something may be malfunctioning inside the PLC. Consult your local Mitsubishi Electric representative.
Isolate the PLC and supply power to it using a different power supply. If the ERROR(ERR) LED turns OFF, noise may be affecting the PLC. Take the following measures.
- Check the ground wiring, and reexamine the wiring route and installation location. - Fit a noise filter onto the power supply line. If the ERROR(ERR) LED does not turn OFF even after the above actions are taken, consult your local Mitsubishi Electric representative.
6102 Operation circuit error

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
38 Error Check Method and Error Code List
38.4 Error Code List and Action
PLC operation at error occurrence Contents of error Action
PLC hardware error [M8061(D8061)]
I/O bus error (M8069 = ON) Verify that extension cables are correctly connected. 6104 Powered extension unit 24 V failure (M8069 = ON)
6105 Watchdog timer error Confirm user program. The scan time exceeds the value stored in D8000.
6106 I/O table creation error (CPU error)
Check the number of connected special function units/ blocks. Some special function units/blocks have a connection number limit.
6107 System configuration error
6112 Changed settings for the built-in CC-Link/LT special function block cannot be written to the attached flash memory cassette.
Verify that the memory cassette is installed correctly.
6113 Changed settings for the built-in CC-Link/LT special function block cannot be written to the attached write- protected flash memory cassette.
Set the protect switch to OFF.
6114 CC-Link/LT settings cannot be written to the built-in CC- Link/LT special function block. Set the configuration again. If the problem persists, something may be malfunctioning inside the PLC. Consult your local Mitsubishi Electric representative. 6115
A built-in CC-Link/LT special function block EEPROM writing time-out error occurred, or the built-in CC-Link/LT special function block configuration could not be completed normally in self CONFIG mode.
PLC/PP communication error, Serial communication error 0 [M8062(D8062)]
0000 ⎯ No error
Parity, overrun or framing error
6202 Communication character error
Confirm the cable connection between the programming panel (PP)/programming device and the PLC. This error may occur when a cable is disconnected and reconnected during PLC monitoring.
6203 Communication data sum check error
6204 Data format error
When the memory cassette is used, check whether it is mounted correctly. If the problem persists or if the memory cassette is not used, something may be malfunctioning inside the PLC. Consult your local Mitsubishi Electric representative.
6230 Memory access error

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
38 Error Check Method and Error Code List
FNC277-FNC279 Data Transfer 3
PLC operation at error occurrence Contents of error Action
Serial communication error 1 [M8063(D8063)]
0000 ⎯ No error
Parity, overrun or framing error
6302 Communication character error
FNC280-FNC289 High-Speed Processing 2
6303 Communication data sum check error
6304 Communication data format error
6306 Communication time-out detected
6307 Modem initialization error
6308 N:N network parameter error
6309 N:N Network setting error
FNC290-FNC299 Extension File Register Control
6312 Parallel link character error
6313 Parallel link sum error
6314 Parallel link format error
6320 Inverter communication error
6321 MODBUS communication error
When the memory cassette is used, check whether it is mounted correctly. If the problem persists or if the memory cassette is not used, something may be malfunctioning inside the PLC. Consult your local Mitsubishi Electric representative.
6330 Memory access error
6340 Special adapter connection error Check connection of the special adapter.
0000 ⎯ No error
6402 Memory capacity setting error
6403 Latched device area setting error
6404 Comment area setting error
6405 File register area setting error
6406 Special unit (BFM) initial value setting, positioning instruction setting sum check error
6407 Special unit (BFM) initial value setting, positioning instruction setting error
6409 Other setting error
6411 Built-in CC-Link/LT special function block invalid parameter settings (LT-2 dedicated area).
6413 Built-in CC-Link/LT special function block parameter settings sum check error (LT-2 dedicated area).
6420 Special parameter sum check error
6421 Special parameters setting error
B

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
38 Error Check Method and Error Code List
38.4 Error Code List and Action
PLC operation at error occurrence Contents of error Action
0000 ⎯ No error
Incorrect combination of instruction, device symbol and device number
6502 No OUT T or OUT C before setting value
During programming, each instruction is checked. If a syntax error is detected, modify the instruction correctly.
6505 Device number is out of allowable range.
6507 Invalid label number [P]
6508 Invalid interrupt input [I]
6510 MC nesting number error
0000 ⎯ No error
LD, LDI is continuously used 9 times or more.
6611 More ANB/ORB instructions than LD/LDI instructions
6612 Less ANB/ORB instructions than LD/LDI instructions
6613 MPS is continuously used 12 times or more.
6614 No MPS instruction
6615 No MPP instruction
6616 No coil between MPS, MRD and MPP, or incorrect combination
6617 Instruction below is not connected to bus line: STL, RET, MCR, P, I, DI, EI, FOR, NEXT, SRET, IRET, FEND or END
6618 STL, MC or MCR can only be used in main program, but it is used elsewhere (e.g. in interrupt routine or subroutine).
6619 Invalid instruction is used in FOR-NEXT loop: STL, RET, MC, MCR, I (interrupt pointer) or IRET.
This error occurs when a combination of instructions is incorrect in the entire circuit block or when the relationship between a pair of instructions is incorrect. Modify the instructions in the program mode so that their mutual relationship becomes correct.
6620 FOR-NEXT instruction nesting level exceeded
6621 Numbers of FOR and NEXT instructions do not match.
6622 No NEXT instruction
6623 No MC instruction
6624 No MCR instruction
6625 STL instruction is continuously used 9 times or more.
6626 Invalid instruction is programmed within STL-RET loop: MC, MCR, I (interrupt pointer), SRET or IRET.
6627 No STL instruction
6628 Invalid instruction is used in main program: I (interrupt pointer), SRET or IRET
6629 No P or I (interrupt pointer)
6630 No SRET or IRET instruction STL-RET / MC-MCR instructions programmed in the subroutine.
6631 SRET programmed in invalid location
6632 FEND programmed in invalid location

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
38 Error Check Method and Error Code List
FNC277-FNC279 Data Transfer 3
PLC operation at error occurrence Contents of error Action
0000 ⎯ No error
FNC280-FNC289 High-Speed Processing 2
This error occurs in the execution of operation. Review the program and check the contents of the operands used in applied instructions. Even if the syntax or circuit design is correct, an operation error may still occur. For example: "T500Z" itself is not an error. But if Z had a value of 100, the timer T600 would be attempted to be accessed. This would cause an operation error since there is no T600 device available.
6702 CALL instruction nesting level is 6 or more
6703 Interrupt nesting level is 3 or more
6704 FOR-NEXT instruction nesting level is 6 or more.
FNC290-FNC299 Extension File Register Control
6705 Operand of applied instruction is inapplicable device.
6706 Device number range or data value for operand of applied instruction exceeds limit.
6707 File register is accessed without parameter setting of file register.
6708 FROM/TO instruction error
This error occurs in the execution of operation. Review the program and check the contents of the operands used in applied instructions. Even if the syntax or circuit design is correct, an operation error may still occur. For example: "T500Z" itself is not an error. But if Z had a value of 100, the timer T600 would be attempted to be accessed. This would cause an operation error since there is no T600 device available.
6709 Other (e.g. improper branching)
6710 Mismatch among parameters This error occurs when the same device is used within the source and destination in a shift instruction, etc.
6730 Incorrect sampling time (TS) (TS ≤ 0)
6732 Incompatible input filter constant (α) (α < 0 or 100 ≤ α)
This error occurs in the parameter setting value or operation data executing PID instruction. Check the contents of the parameters.
6733 Incompatible proportional gain (KP) (KP < 0)
6734 Incompatible integral time (TI) (TI < 0)
6735 Incompatible derivative gain (KD) (KD < 0 or 201 ≤ KD)
6736 Incompatible derivative time (TD) (TD < 0)
The operation is continued in the condition "sampling time (TS) = cyclic time (scan time)".
6740 Sampling time (TS) ≤ Scan time
6742 Variation of measured value exceeds limit. (UPV < −32768 or +32767 < UPV)
6743 Deviation exceeds limit. (EV < −32768 or +32767 < EV)
6744 Integral result exceeds limit. (Outside range from −32768 to +32767)
The operation is continued with each parameter set to the maximum and minimum value.
6745 Derivative value exceeds limit due to derivative gain (KD).
6746 Derivative result exceeds limit. (Outside range from −32768 to +32767)
6747 PID operation result exceeds limit. (Outside range from −32768 to +32767)

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
38 Error Check Method and Error Code List
38.4 Error Code List and Action
PLC operation at error occurrence Contents of error Action
Verify that the target setting contents are correct.
PID output upper limit set value < PID output lower limit set value.
Verify that the target setting contents are correct.
6749 Abnormal PID input variation alarm set value or output variation alarm set value (Set value < 0)
6750 Improper auto tuning result
The operation direction estimated from the measured value at the start of auto tuning was different from the actual operation direction of the output during auto tuning. Correct the relationship among the target value, output value for auto tuning, and the measured value, and then execute auto tuning again.
6751 Auto tuning operation direction mismatch
Because the set value was fluctuated during auto tuning, auto tuning was not executed correctly. Set the sampling time to a value larger than the output change cycle, or set a larger value for the input filter constant. After changing the setting, execute auto tuning again.
6752 Improper auto tuning operation
6753 Abnormal output set value for auto tuning [ULV (upper limit) ≤ LLV (lower limit)] Verify that the target setting contents are correct. 6754 Abnormal PV threshold (hysteresis) set value for auto tuning (SHPV < 0)
Abnormal auto tuning transfer status (Data of device controlling transfer status is abnormally overwritten.)
Ensure that devices occupied by PID instruction are not overwritten in the program.
The auto tuning time is longer than necessary. Increase the difference (ULV - LLV) between the upper limit and lower limit of the output value for auto tuning, set a smaller value to the input filter constant (α), or set a smaller value to the PV threshold (SHPV) for auto tuning, and then check the result for improvement.
6756 Abnormal result due to excessive auto tuning measurement time (τon > τ, τon < 0, τ < 0)
The variation of the measured value (PV) is small compared with the output value. Multiply the measured value (PV) by "10" so that the variation of the measured value will increase during auto tuning.
6757 Auto tuning result exceeds proportional gain. (KP= outside range from 0 to 32767)
6758 Auto tuning result exceeds integral time. (TI = outside range from 0 to 32767)
The auto tuning time is longer than necessary. Increase the difference (ULV - LLV) between the upper limit and lower limit of the output value for auto tuning, set a smaller value to the input filter constant (α), or set a smaller value to the PV threshold (SHPV) for auto tuning, and then check the result for improvement.
6759 Auto tuning result exceeds derivative time. (TD = outside range from 0 to 32767)
6760 ABS data read from servo sum check error Check servo wiring and parameter setting. Also check the ABS instruction.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
38 Error Check Method and Error Code List
FNC277-FNC279 Data Transfer 3
PLC operation at error occurrence Contents of error Action
Port specified by inverter communication instruction is already used in another communication.
Check to make sure the port is not specified by another instruction.
FNC280-FNC289 High-Speed Processing 2
6764 Pulse output number is already used in a positioning instruction or pulse output instruction (PLSY, PWM, etc.).
FNC290-FNC299 Extension File Register Control
Check to make sure the pulse output destination is not being driven by another positioning instruction.
Verify that the number of times that applied instructions are used in the program does not exceed the specified limit.
6765 Number of applied instruction exceeds limit.
When the memory cassette is used, check whether it is mounted correctly. If the problem persists or if the memory cassette is not used, something may be malfunctioning inside the PLC. Consult your local Mitsubishi Electric representative.
6770 Memory access error
6771 Memory cassette is not connected. Check for the correct attachment of the memory cassette.
The write-protect switch of the memory cassette was set to ON when data was transferred to the flash memory. Set the protect switch to OFF.
6772 Memory cassette is protected against writing.
6773 Access error to memory cassette during writing in RUN mode
While data was written in the RUN mode, data was transferred to (read from or written to) the memory cassette.
USB communication error [M8487(D8487)]
Confirm the cable connection between the programming device and the PLC. This error may occur when a cable is disconnected and reconnected during PLC monitoring.
8703 Communication data sum check error
8704 Data format error
When the memory cassette is used, check whether it is mounted correctly. If the problem persists or if the memory cassette is not used, something may be malfunctioning inside the PLC. Consult your local Mitsubishi Electric representative.
8730 Memory access error
Special block error [M8449(D8449)]
General data sum error
021*1 General data message error
022*1 System access error
Verify that extension cables are correctly connected.
025*1 Access sum error in other station via CC-Link
026*1 Message error in other station via CC-Link
When the memory cassette is used, check whether it is mounted correctly. If the problem persists or if the memory cassette is not used, something may be malfunctioning inside the PLC. Consult your local Mitsubishi Electric representative.
030*1 Memory access error
080*1 FROM/TO error
090*1 Peripheral equipment access error
*1. The unit number 0 to 7 of the special function unit/block error is put in .

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
38 Error Check Method and Error Code List
38.4 Error Code List and Action
PLC operation at error occurrence Contents of error Action
Special parameter error [M8489(D8489)]
Special parameter setting time-out error Turn OFF the power, and check the power supply and connection of special adapters/special blocks.
02*1 Special parameter setting error
Special parameters are set, but special adapters/special blocks are not connected. Check whether special adapters/special blocks are connected.
03*1 Special parameter transfer target unconnected error
04*1 Special parameter unsupported function Check that special parameters with unsupported settings are not set for connected special adapters/special blocks.
*1. " " indicates the following values for each special adapter/special block where an error has occurred. If an error has occurred in 2 or more special adapters/special blocks, " " indicates the lowest unit number among the special adapters/special blocks in which an error has occurred.
00 Unit number 0 (Special block)
10 Unit number 1 (Special block)
20 Unit number 2 (Special block)
30 Unit number 3 (Special block)
40 Unit number 4 (Special block)
50 Unit number 5 (Special block)
60 Unit number 6 (Special block)
70 Unit number 7 (Special block)
81 Communication channel 1 (Special adapter)
82 Communication channel 2 (Special adapter)
PLC operation at error occurrence Contents of error Action
Special block error condition [D8166]
Unit 0 access error
b1 Unit 1 access error
b2 Unit 2 access error
b3 Unit 3 access error
b4 Unit 4 access error
b5 Unit 5 access error
b6 Unit 6 access error
b7 Unit 7 access error
b15 ⎯ Not available

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
A Programming Tool Applicability and Version Upgrade History
A-1 Programming Tool Applicability
FNC277-FNC279 Data Transfer 3
Upgrade History
FNC280-FNC289 High-Speed Processing 2
FNC290-FNC299 Extension File Register Control
Model name PLC version Applicable GX Works2
FX3S PLC Ver. 1.00 Ver. 1.492N or later -
Before Ver. 1.40 Ver. 1.08J or later
- Before Ver. 2.00 Ver. 1.62Q or later
Ver. 2.00 Ver. 1.87R or later
Before Ver. 2.00 Ver. 1.77F or later
- Ver. 2.00 Ver. 1.87R or later
Before Ver. 2.70 Ver. 1.08J or later
- Before Ver. 3.00 Ver. 1.48A or later
Before Ver. 3.10 Ver. 1.62Q or later
Ver. 3.10 Ver. 1.73B or later
Before Ver. 2.70 Ver. 1.08J or later
- Before Ver. 3.00 Ver. 1.48A or later
Before Ver. 3.10 Ver. 1.62Q or later
Ver. 3.10 Ver. 1.73B or later
Model name PLC version Applicable GX Works2
FX3S PLC Ver. 1.00 Ver. 1.492N or later -
Before Ver. 1.40 Ver. 1.07H or later
- Before Ver. 2.00 Ver. 1.56J or later
Ver. 2.00 Ver. 1.86Q or later
Before Ver. 2.00 Ver. 1.77F or later - Ver. 2.00 Ver. 1.86Q or later
Before Ver. 2.70 Ver. 1.07H or later
- Before Ver. 3.00 Ver. 1.45X or later
Before Ver. 3.10 Ver. 1.56J or later
Ver. 3.10 Ver. 1.73B or later
Before Ver. 2.70 Ver. 1.07H or later
- Before Ver. 3.00 Ver. 1.45X or later
Before Ver. 3.10 Ver. 1.56J or later
Ver. 3.10 Ver. 1.73B or later

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
A Programming Tool Applicability and Version Upgrade History
A-1 Programming Tool Applicability
Model name PLC version Applicable GX Developer
Before Ver. 1.10 Ver. 8.72A or later - Ver. 1.10 Ver. 8.78G or later
Before Ver. 2.30 Ver. 8.24A or later - Before Ver. 2.41 Ver. 8.29F or later
Before Ver. 2.61 Ver. 8.29F or later Ver. 8.89T and later versions support the baud rate "38400 bps" in the communication setting for RS and RS2 instructions, inverter communication and computer link. Ver. 2.61 Ver. 8.82L or later
Before Ver. 2.20 Ver. 8.18U or later
- Before Ver. 2.30 Ver. 8.24A or later
Before Ver. 2.41 Ver. 8.29F or later
Before Ver. 2.53 Ver. 8.29F or later Ver. 8.89T and later versions support the baud rate "38400 bps" in the communication setting for RS and RS2 instructions, inverter communication and computer link.
Before Ver. 2.61 Ver. 8.68W or later
Ver. 2.61 Ver. 8.82L or later
Model name PLC version Applicable GX Developer
Before Ver. 1.10 Ver. 8.72A or later - Ver. 1.10 Ver. 8.76E or later
Before Ver. 2.30 Ver. 8.23Z or later - Before Ver. 2.41 Ver. 8.29F or later
Before Ver. 2.61 Ver. 8.29F or later Ver. 8.88S and later versions support the baud rate "38400 bps" in the communication setting for RS and RS2 instructions, inverter communication and computer link. Ver. 2.61 Ver. 8.82L or later
Before Ver. 1.30 Ver. 8.13P or later
- Before Ver. 2.20 Ver. 8.18U or later
Before Ver. 2.30 Ver. 8.23Z or later
Before Ver. 2.41 Ver. 8.29F or later
Before Ver. 2.53 Ver. 8.29F or later Ver. 8.88S and later versions support the baud rate "38400 bps" in the communication setting for RS and RS2 instructions, inverter communication and computer link.
Before Ver. 2.61 Ver. 8.68W or later
Ver. 2.61 Ver. 8.82L or later
Model name PLC version Applicable FX-30P version Remarks
FX3S PLC Ver. 1.00 Ver. 1.50 or later -
FX3G PLC Ver. 1.00 Ver. 1.00 or later
FX3GC PLC Ver. 1.40 Ver. 1.30 or later FX-30P (Ver. 1.50 or later) supports IVMC instruction.
Before Ver. 2.41 Ver. 1.00 or later - Ver. 2.70 Ver. 1.20 or later
Before Ver. 2.41 Ver. 1.00 or later - Ver. 2.70 Ver. 1.20 or later
version Remarks · version Remarks

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
A Programming Tool Applicability and Version Upgrade History
A-1 Programming Tool Applicability
FNC277-FNC279 Data Transfer 3
Model to be programmed Model to be set Priority High → Low
FX3S PLC FX3S → FX3G → FX1N*2 → FX2N*2
FNC280-FNC289 High-Speed Processing 2
FX3G PLC FX3G → FX1N*4 → FX2N*2 → FX2
FX3GC PLC FX3GC → FX3G → FX1N*2 → FX2N*2
FX3U PLC FX3U(C)*1 → FX3UC → FX2N → FX2
FX3UC PLC FX3U(C)*1 → FX3UC → FX2N → FX2
*1. For Ver. 8.18U to 8.24A of GX Developer, the PLC type is FX3UC. *2. "FX2N" is selected when the FX-10P(-E) is used.
FNC290-FNC299 Extension File Register Control
a) Supported programming tools*3
GX Works2 (Ver. 1.08J or later), GX Developer (Ver. 8.72A or later) b) In programming tools not supporting USB
Communication is performed via RS-422 or RS-232C.
a) 115.2 kbps supported programming tools*3
GX Works2 (Ver. 1.08J or later), GX Developer (Ver. 8.72A or later), FX-30P (Ver. 1.00 or later) b) 115.2 kbps supported interfaces
- Standard built-in port(RS-422) or expansion board FX3G-422-BD for RS-422 When the RS-232C/RS-422 converter FX-232AWC-H is connected. - Expansion board FX3G-232-BD for RS-232C - Special adapter FX3U-232ADP(-MB) for RS-232C c) In programming tools not supporting 115.2 kbps
Communication is executed at 9,600 or 19,200 bps.
*3. Select "FX3G" for a programming tool not supporting FX3S/FX3GC PLCs.
B

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
A Programming Tool Applicability and Version Upgrade History
A-1 Programming Tool Applicability
GX Works2 (Ver. 1.08J or later), GX Developer (Ver. 8.18U or later), FX-30P (Ver. 1.00 or later) b) 115.2 kbps supported interfaces
- Standard built-in port or expansion board FX3U-422-BD for RS-422 When the RS-232C/RS-422 converter FX-232AWC-H or USB/RS-422 converter FX-USB-AW is connected. - Expansion board FX3U-232-BD for RS-232C - Special adapter FX3U-232ADP(-MB) for RS-232C - Expansion board FX3U-USB-BD for USB c) In programming tools not supporting 115.2 kbps
Communication is executed at 9,600 or 19,200 bps.
"In the FX3S, FX3G, FX3GC, FX3U and FX3UC PLCs, writing is enabled during RUN (program changes during RUN mode) using the following programming tools".
→ For the operating procedure of and cautions on writing during RUN,
refer to the respective programming tool manual. Programming tools which support writing during RUN
Programming tool PLC Version Remarks
FX3S Ver. 1.492N or later Writing in the instruction and device ranges during RUN is supported in FX3S PLC earlier than Ver. 1.00.
Ver. 1.08J or later Writing in the instruction and device ranges during RUN is supported in FX3G PLC earlier than Ver. 1.40.
Ver. 1.77F or later Writing in the instruction and device ranges during RUN is supported in FX3G and FX3GC PLCs earlier than Ver. 1.40.
Ver. 1.08J or later Writing in the instruction and device ranges during RUN is supported in FX3U and FX3UC PLCs earlier than Ver. 2.70.
Ver. 1.48A or later Writing in the instruction and device ranges during RUN is supported in FX3U and FX3UC PLCs Ver. 2.70.
Ver. 2.00A or later Writing in the instruction and device ranges during RUN is supported in FX2N PLC Ver. 1.00.
Ver. 5.00A or later Writing in the instruction and device ranges during RUN is supported in FX1N PLC Ver. 1.00.
Ver. 8.72A or later Writing in the instruction and device ranges during RUN is supported in FX3G PLC earlier than Ver. 1.10.
Ver. 8.78G or later Writing in the instruction and device ranges during RUN is supported in FX3G PLC Ver. 1.10.
Ver. 7.00A or later Writing in the instruction and device ranges during RUN is supported in FX2N PLC Ver. 3.00.
Ver. 8.18U or later Writing in the instruction and device ranges during RUN is supported in FX3UC PLC earlier than Ver. 2.20.
Ver. 8.24A or later Writing in the instruction and device ranges during RUN is supported in FX3U and FX3UC PLCs earlier than Ver. 2.30.
Ver. 8.29F or later Writing in the instruction and device ranges during RUN is supported in FX3U and FX3UC PLCs earlier than Ver. 2.61.
Ver. 8.82L or later Writing in the instruction and device ranges during RUN is supported in FX3U and FX3UC PLCs Ver. 2.61.
FX3G Ver. 3.00 or later Writing in the instruction and device ranges during RUN is supported in FX1N PLC Ver. 1.00.
Ver. 1.00 or later Writing in the instruction and device ranges during RUN is supported in FX2N PLC Ver. 1.00.
FX 3U /FX 3UC
Ver. 3.10 or later Writing in the instruction and device ranges during RUN is supported in FX2N PLC Ver. 3.00.
*1. Write during RUN is not possible with a SFC program.
*2. Write during RUN is not possible with a list program or a SFC program.
GX Works2*1 · GX Developer*2

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
A Programming Tool Applicability and Version Upgrade History
A-1 Programming Tool Applicability
FNC277-FNC279 Data Transfer 3
Programming tool PLC Version Remarks
FX3S Ver. 1.492N or later Writing in the instruction and device ranges during RUN is supported in FX3S PLC earlier than Ver. 1.00.
Ver. 1.07H or later Writing in the instruction and device ranges during RUN is supported in FX3G PLC earlier than Ver. 1.40.
Ver. 1.77F or later Writing in the instruction and device ranges during RUN is supported in FX3G and FX3GC PLCs earlier than Ver. 1.40.
FNC280-FNC289 High-Speed Processing 2
Ver. 1.07H or later Writing in the instruction and device ranges during RUN is supported in FX3U and FX3UC PLCs earlier than Ver. 2.70.
Ver. 1.45X or later Writing in the instruction and device ranges during RUN is supported in FX3U and FX3UC PLCs Ver. 2.70.
Ver. 2.00A or later Writing in the instruction and device ranges during RUN is supported in FX2N PLC Ver. 1.00.
Ver. 5.00A or later Writing in the instruction and device ranges during RUN is supported in FX1N PLC Ver. 1.00.
FNC290-FNC299 Extension File Register Control
Ver. 8.72A or later Writing in the instruction and device ranges during RUN is supported in FX3G PLC earlier than Ver. 1.10.
Ver. 8.76E or later Writing in the instruction and device ranges during RUN is supported in FX3G PLC Ver. 1.10.
Ver. 7.00A or later Writing in the instruction and device ranges during RUN is supported in FX2N PLC Ver. 3.00.
(SW D5C-GPPW-J)
Ver. 8.13P or later Writing in the instruction and device ranges during RUN is supported in FX3UC PLC earlier than Ver. 1.30.
Ver. 8.18U or later Writing in the instruction and device ranges during RUN is supported in FX3UC PLC earlier than Ver. 2.20.
Ver. 8.23Z or later Writing in the instruction and device ranges during RUN is supported in FX3U and FX3UC PLCs earlier than Ver. 2.30.
Ver. 8.29F or later Writing in the instruction and device ranges during RUN is supported in FX3U and FX3UC PLCs earlier than Ver. 2.61.
Ver. 8.82L or later Writing in the instruction and device ranges during RUN is supported in FX3U and FX3UC PLCs Ver. 2.61.
FX3G Ver. 4.00 or later Writing in the instruction and device ranges during RUN is supported in FX1N PLC Ver. 1.00.
Ver. 1.00 or later Writing in the instruction and device ranges during RUN is supported in FX2 PLC Ver. 3.30.
Ver. 2.00 or later Writing in the instruction and device ranges during RUN is supported in FX2N PLC Ver. 1.00.
Ver. 4.20 or later Writing in the instruction and device ranges during RUN is supported in FX2N PLC Ver. 3.00.
*1. Write during RUN is not possible with a SFC program. *2. Write during RUN is not possible with a list program or a SFC program.
B

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
A Programming Tool Applicability and Version Upgrade History
A-1 Programming Tool Applicability
Program memory which can be written in RUN mode Built-in RAM and optional memory cassette (whose write protect switch is set to OFF)
Number of program steps which can be written for circuit change in RUN mode
127 steps or less after edit (addition/deletion) (including NOP immediately after circuit blocks except final circuit)
Circuit blocks*1 in which labels P and I are added, deleted, or changed in edited circuits
Circuit blocks which cannot be written during RUN
Circuit blocks in which 1-ms timers (T246 to T249 and T256 to T511) are added in edited circuits
*1. Circuit blocks cannot be edited to insert a label as shown below when written during RUN.
Added, deleted, or changed
interrupt Label I is inserted by editing the circuit block
Added, deleted, or changed
END
Item Caution · Step · FEND Pointer for

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
A Programming Tool Applicability and Version Upgrade History
A-1 Programming Tool Applicability
FNC277-FNC279 Data Transfer 3
During RUN, avoid writing to a circuit block including the following instructions under execution. If writing is executed during RUN to such a circuit block, the PLC decelerates and stops pulse output. • DSZR (FNC150), DVIT (FNC151), ZRN (FNC156), PLSV (FNC157) instructions [with acceleration/ deceleration operation], DRVI (FNC158) and/or DRVA (FNC159) instructions
During RUN, avoid writing to a circuit block including the following instruction under execution. If writing is executed during RUN to such a circuit block, the PLC immediately stops pulse output. • PLSV (FNC157) instruction [without acceleration/deceleration operation]
FNC280-FNC289 High-Speed Processing 2
During RUN, avoid writing to a circuit block including the following instruction under execution. • PLSY (FNC 50), PWM (FNC 58), PLSR (FNC 59) instructions
During RUN, avoid writing to a circuit block including the following instructions under execution of communication. If writing is executed during RUN to such a circuit block, the PLC may stop communication after that. If the PLC stops communication, set the PLC to the STOP mode once, and then set it to the RUN mode again. • IVCK (FNC270), IVDR (FNC271), IVRD (FNC272), IVWR (FNC273), IVBWR (FNC274), IVMC (FNC275) and ADPRW (FNC276) instructions
FNC290-FNC299 Extension File Register Control
During RUN, avoid writing to a circuit block including the following instruction under execution. If such writing is executed during RUN, instructions being executed are canceled. • FLCRT (FNC300), FLDEL (FNC301), FLWR (FNC302), FLRD (FNC303), FLCMD (FNC304) and FLSTRD (FNC305) instructions
Circuit blooks which require attention on operation after writing during RUN
While writing is executed
Instruction for rising edge
Instruction for falling edge
OFF Not executed Not executed
ON Executed*1 Not executed
*2. The PLS instruction is not executed.
Operation results leading up to
MEP/MEF instruction MEP instruction MEF instruction
OFF OFF (non-conductive) OFF (non-conductive)
ON ON (conductive) OFF (non-conductive)
B

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
A Programming Tool Applicability and Version Upgrade History
A-1 Programming Tool Applicability
Make sure to set the contents described in this section when using the (built-in USB) programming port of the FX3G/ FX3GC PLC to execute ladder monitor, device monitor, program read/write, etc by GX Developer. For GX Developer prior to Ver. 8.72A, communication using the (built-in USB) programming port is not available.
→ GX Developer Operating Manual (Startup)

A display screen is the example of Ver. 8.72A.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
A Programming Tool Applicability and Version Upgrade History
A-1 Programming Tool Applicability
Appendix A-1-4 Cautions on using transparent function by way of USB in GOT1000 Series
FNC277-FNC279 Data Transfer 3
Make sure to provide the following setting when executing ladder monitor, device monitor, and reading/writing programs in an FX3G/FX3GC/FX3U/FX3UC PLC using GX Developer or later and the transparent function by way of the USB in the GOT1000 Series. If the following setting is not provided, a communication error occurs.
GX Developer Ver. 8.21X or former GX Developer Ver. 8.22Y or later
FNC280-FNC289 High-Speed Processing 2
When using transparent function by way of USB in GOT1000 Series Not supported (not available) Setting shown below is required.
When using transparent function by way of RS-232 in GOT1000 Series Set "COM port" and "Transmission speed" on "PC side I/F Serial setting" dialog box.
Select "RS-232C" in setting shown below, and set "COM port" and "Transmission speed". When directly connecting GX Developer to PLC When directly connecting GX Developer to PLC (standard built-in RS-422 port)
FNC290-FNC299 Extension File Register Control
FX3G/FX3GC PLCs

Double-click it.

Select "USB(GOT transparent mode)"
This example shows a window displayed when GX Developer Ver. 8.72A is used.
FX3U/FX3UC PLCs

Double-click it.

Select "USB(GOT transparent mode)"
This example shows a window displayed when GX Developer Ver. 8.72A is used.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
A Programming Tool Applicability and Version Upgrade History
A-1 Programming Tool Applicability
Make sure to provide the following setting when executing ladder monitor, device monitor, etc. in an FX3G/FX3GC/ FX3U/FX3UC PLC using GX Developer and the transparent (2-port) function of the GOT-F900 Series. If the following setting is not provided, write to PLC, read from PLC, verify with PLC, etc. operate normally, but monitoring (ladder monitor, entry data monitor, etc.) cannot be normally executed.

GX Developer Ver. 8.18U or later GX Developer Ver. 8.22Y or later
When directly connecting GX Developer to PLC (standard built-in RS-422 port)
Select "RS-232C" on "PC side I/F Serial setting" dialog box, and set "COM port" and "Transmission speed".
Set "COM port" and "Transmission speed" on "PC side I/F Serial setting" dialog box.
Select "RS-232C" on "PC side I/F Serial setting" dialog box, and execute settings shown below.

Put a check mark in the check box "via GOT-F900 transparent mode".

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
A Programming Tool Applicability and Version Upgrade History
A-2 Peripheral product applicability (except programming tools)
FNC277-FNC279 Data Transfer 3
Product Name Applicability Remarks
FNC280-FNC289 High-Speed Processing 2
Standard monitor OS, communication driver and option OS which support the FX3S PLC are required. For details, refer to the GOT manual.
This series is subject to the following restrictions when connected using unsupported standard monitor OS, communication driver or option OS.
FNC290-FNC299 Extension File Register Control
Check the applicability of other items in the GOT manual.
The following restriction applies when connected.
Contents of restrictions Programming is enabled only in the function range such as instructions, device ranges and program sizes available in both the FX3S PLC and the FX1N PLC. For applicable models, refer to the GOT manual.
GOT-F900 Series Not applicable
For connection using the 2-port interface function*1, refer to Appendix A-1-4.
The following restriction applies when connected.
Contents of restrictions Programming is enabled only in the function range such as instructions, device ranges and program sizes available in both the FX3S PLC and the FX1N PLC. For supported models and device ranges, refer to the FX-10DM USER’ MANUAL (Manual No. JY992D86401).
B

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
A Programming Tool Applicability and Version Upgrade History
A-2 Peripheral product applicability (except programming tools)
FX3G/FX3GC PLCs
Product Name Applicability Remarks
Standard monitor OS, communication driver and option OS which support the FX3G/FX3GC PLCs are required. For details, refer to the GOT manual.
This series is subject to the following restrictions when connected using unsupported standard monitor OS, communication driver or option OS.
Check the applicability of other items in the GOT manual.
F940WGOT Not applicable The following restriction applies when connected.
F940GOT, F940 Handy GOT Not applicable
Contents of restrictions Programming is enabled only in the function ranges such as instructions, device ranges and program sizes available in the FX1N and FX1NC PLCs. For applicable models, refer to the GOT manual.
F930GOT (-K) Not applicable
F920GOT (-K) Not applicable
For connection using the 2-port interface function*1, refer to Appendix A-1-4.
The following restriction applies when connected.
Contents of restrictions Programming is enabled only in the function ranges such as instructions, device ranges and program sizes available in the FX1N and FX1NC PLCs. For supported models and device ranges, refer to the FX-10DM USER’ MANUAL (Manual No. JY992D86401).
FX-10DM (-SET0) Not applicable
The following restriction applies when connected.
Contents of restrictions It is limited to the device range and function range supported by the highest class model (FX1N or FX1NC) applicable in the product version. For supported models and device ranges, refer to the FX-10DU Operation Manual (Manual No. JY992D34701).
Product Name Applicability Remarks
GOT1000 Series Applicable (From first product)
The GOT1000 Series is applicable to the device ranges in the FX3U/FX3UC PLCs. Check the applicability of other items in the GOT manual.
F940WGOT Not applicable The following restriction applies when connected.
F940GOT, F940 Handy GOT Not applicable
Contents of restrictions Programming is enabled only in the function ranges such as instructions, device ranges and program sizes available in the FX2N and FX2NC PLCs. For applicable models, refer to the GOT manual.
F930GOT (-K) Not applicable
F920GOT (-K) Not applicable
For connection using the 2-port interface function*1, refer to Appendix A-1-4.
The following restriction applies when connected.
Contents of restrictions Programming is enabled only in the function ranges such as instructions, device ranges and program sizes available in the FX2N and FX2NC PLCs. For supported models and device ranges, refer to the FX-10DM USER’S MANUAL (Manual No. JY992D86401).
FX-10DM (-SET0) Not applicable
The following restriction applies when connected.
Contents of restrictions It is limited to the device range and function range supported by the highest class model (FX2N or FX2) applicable in the product version. For supported models and device ranges, refer to the FX-10DU Operation Manual (Manual No. JY992D34701).
*1. The F940GOT and ET-940 whose version is earlier than Ver. 1.10 do not support the transparent (2-port) function of the GX Developer.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
A Programming Tool Applicability and Version Upgrade History
A-3 Version Upgrade History
FNC277-FNC279 Data Transfer 3
The year and month of production of the PLC main unit can be checked on the nameplate, and "LOT" indicated on the front of the product.
FNC280-FNC289 High-Speed Processing 2
Example nameplate (manufacture's serial number : 1010001)
FNC290-FNC299 Extension File Register Control
Actual product nameplate differs from the example shown above. *
0 1 1 0 0 0
Month (Example: Dec.): 1 to 9 = January to September, X = October, Y = November, Z = December
Month (Example: Jan.): 1 to 9 = January to September, X = October, Y = November, Z = December
Main unit "LOT" indication adoption time
FX3S Series PLC March 2013 and later (From first product)
FX3G Series PLC October 2008 and later
FX3GC Series PLC January 2012 and later (From first product)
FX3U Series PLC January 2009 and later
FX3UC Series PLC January 2009 and later
B
Month (Example: Jan.): 1 to 9 = January to September, X = October, Y = November, Z = December Year (Example: 2009): Last digit of year
Month (Example: Dec.): 1 to 9 = January to September, X = October, Y = November, Z = December
![Page 916 of the Mitsubishi Electronics MELSEC FX3S user manual — Appendix A-3-4 Version upgrade history [FX 3G ]](/cdn/reader/06/06b6c5c8bfa3e981e964d8ed7432322fb86c682a85757d292a29f9cec2d4294a/images/page-916.webp?w=400)
FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
A Programming Tool Applicability and Version Upgrade History
A-3 Version Upgrade History
The PLC version can be verified by monitoring the special data register D8001 or D8101 and checking the last three digits. Or for the FX3U and FX3UC PLCs, the PLC version can be verified in "PLC Status" within the display module.
→ For the operating procedure of the display module, refer to the Hardware Edition Manual of the PLC to be checked.
2 4 1 0 0
serial number Contents of version upgrade
Ver. 1.00 133**** (March, 2013) First product
Ver. 1.10 13X**** (October, 2013)
serial number Contents of version upgrade
Ver. 1.00 86**** (June, 2008) First product
Ver. 1.10 8X**** (October, 2008)
Ver. 1.20 96**** (June, 2009)
Ver. 1.30 9Z**** (December, 2009)
Ver. 1.40 111**** (January, 2011)
Ver. 2.00 124**** (April, 2012)
Ver. 2.10 134**** (April, 2013) Supports the IP address change function of Ethernet adapter.
Ver. 2.20 13X**** (October, 2013)
→ For the manufacturer’ serial number check method, refer to Appendix A-3-1.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
A Programming Tool Applicability and Version Upgrade History
A-3 Version Upgrade History
FNC277-FNC279 Data Transfer 3
serial number Contents of version upgrade
Ver. 1.40 121**** (January, 2012)
First product Corresponds to FX3G PLC Ver. 1.40.
FNC280-FNC289 High-Speed Processing 2
Ver. 2.00 124**** (April, 2012)
Ver. 2.10 134**** (April, 2013) Supports the IP address change function of Ethernet adapter.
→ For the manufacturer’ serial number check method, refer to Appendix A-3-1.
FNC290-FNC299 Extension File Register Control
serial number Contents of version upgrade
Ver. 2.20 55**** (May, 2005)
First product (supporting the functions described as "Ver. 2.20 or later" in this manual) Corresponds to FX3UC PLC Ver. 2.20.
Ver. 2.30 5Y**** (November, 2005)
Ver. 2.40 74**** (April, 2007)
Ver. 2.41 7Y**** (November, 2007)
Ver. 2.61 97**** (July, 2009)
Ver. 2.70 107**** (July, 2010)
Ver. 3.00 115**** (May, 2011)
Ver. 3.10 11Y**** (November, 2011)
→ For the manufacturer’ serial number check method, refer to Appendix A-3-1.
serial number Contents of version upgrade
Ver. 1.00 41**** (January, 2004) First product
Supports connection of the following special analog adapters:
Ver. 1.20 44**** (April, 2004)
Ver. 1.30 48**** (August, 2004)

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
A Programming Tool Applicability and Version Upgrade History
A-3 Version Upgrade History
serial number Contents of version upgrade
Ver. 2.20 55**** (May, 2005)
Adding the following instructions and function upgrade. Adding MEP and MEF instructions Function upgrade of MUL (FNC 22), DIV (FNC 23), and RS2 (FNC 87) instructions.
Ver. 2.30 5Y**** (November, 2005)
Ver. 2.40 74**** (April, 2007)
Ver. 2.41 79*****1
Ver. 2.53 84**** (April, 2008) FX3UC-32MT-LT-2 (First product)
Ver. 2.61*2 97**** (July, 2009)
Ver. 2.70 107**** (July, 2010)
Ver. 3.00 115**** (May, 2011)
Ver. 3.10 11Y**** (November, 2011)
*1. The FX3UC-32MT-LT supports Ver. 2.41 from the manufacturer's serial number "7X****" (October 2007).
*2. Available in Ver. 2.70 or later of FX3UC-32MT-LT-2 PLC.
*3. This function is supported only in the FX3UC-32MT-LT(-2).
→ For the manufacturer’ serial number check method, refer to Appendix A-3-1.
Version Manufacturer’s · (September, 2007)

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
B Instruction Execution Time
B-1 Basic Instruction Execution Time
FNC277-FNC279 Data Transfer 3
The instruction execution time in FX3S/FX3G/FX3GC/FX3U/FX3UC PLCs is as shown below:
FNC280-FNC289 High-Speed Processing 2
FNC290-FNC299 Extension File Register Control
Execution time in ON status (µs) Execution time in OFF status (µs)
Remarks 16-bit instruction 32-bit instruction 16-bit instruction 32-bit instruction
LD 0.21 1.34 µs in 2-step instruction
LDI 0.21 1.34 µs in 2-step instruction
LDF 2.59 2.32
AND 0.2 1.16 µs in 2-step instruction
ANI 0.2 1.16 µs in 2-step instruction
ANF 2.4 2.36
OR 0.21 1.28 µs in 2-step instruction
ORI 0.21 1.28 µs in 2-step instruction
ORF 2.4 2.36
ANB 0.2
ORB 0.2
MPS 0.21
MRD 0.2
MPP 0.17
INV 0.17
MEP 1.52
MEF 1.6
A
B

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
B Instruction Execution Time
B-1 Basic Instruction Execution Time
Execution time in ON status (µs) Execution time in OFF status (µs)
Remarks 16-bit instruction 32-bit instruction 16-bit instruction 32-bit instruction
OUT Y,M 0.21 1.2 µs in 2-step instruction
OUT T K 2.41 2.16
OUT T D 2.77 2.54
OUT C K 1.9 2.25 1.57 1.72 C235 to C255 1.6 µs in execution in ON status 1.06 µs in execution in OFF status
OUT C D 2.26 1.49 1.93 2.35 C235 to C255 2.21 µs in execution in ON status 1.06 µs in execution in OFF status
SET Y,M 0.23 1.25 µs in 2-step instruction
SET S 1.23 or 1.33 + 0.51n 0.59 n: Number of recombination 1.23 µs when there is no recombination
RST Y,M 0.23 1.22 µs in 2-step instruction
RST T 1.68 1.21
RST C 1.77 1.82 1.18 1.19
RST D 1.08 0.54
PLS Y,M 1.52
PLF Y,M 1.52
MC 1.63 1.76
MCR 1.3 ⎯
NOP 0.21
Even if FEND and END are used together, execution time of only END is required.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
B Instruction Execution Time
B-1 Basic Instruction Execution Time
FNC277-FNC279 Data Transfer 3
Execution time in ON status (µs) Execution time in OFF status (µs)
Remarks 16-bit instruction 32-bit instruction 16-bit instruction 32-bit instruction
LD 0.21 1.34 µs in 2-step instruction*1
1.34 µs in 3-step instruction*3
FNC280-FNC289 High-Speed Processing 2
LDI 0.21 1.34 µs in 2-step instruction*1
1.34 µs in 3-step instruction*3
2.4 µs in execution in ON status*3
2.36 µs in execution in OFF status*3
2.44 µs in execution in ON status*3
FNC290-FNC299 Extension File Register Control
2.4 µs in execution in OFF status*3
AND 0.2 1.16 µs in 2-step instruction*1
1.2 µs in 3-step instruction*3
ANI 0.2 1.16 µs in 2-step instruction*1
1.2 µs in 3-step instruction*3
ANP 2.36 2.32
2.48 µs in execution in ON status*3
2.44 µs in execution in OFF status*3
2.48 µs in execution in ON status*3
2.44 µs in execution in OFF status*3
OR 0.21 1.28 µs in 2-step instruction*1
1.32 µs in 3-step instruction*3
ORI 0.21 1.28 µs in 2-step instruction*1
1.32 µs in 3-step instruction*3
2.48 µs in execution in ON status*3
2.44 µs in execution in OFF status*3
2.48 µs in execution in ON status*3
2.44 µs in execution in OFF status*3
ORB 0.2
MPS 0.21
MRD 0.2
MPP 0.17
INV 0.17
MEP 1.52
MEF 1.6
OUT Y,M 0.21 1.2 µs in 2-step instruction*2
1.2 µs in 3-step instruction*3
OUT T K 2.41 2.16 T246 to T319 2.69 µs in execution in ON status 2.04 µs in execution in OFF status

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
B Instruction Execution Time
B-1 Basic Instruction Execution Time
Execution time in ON status (µs) Execution time in OFF status (µs)
Remarks 16-bit instruction 32-bit instruction 16-bit instruction 32-bit instruction
OUT T D 2.77 2.54 T246 to T319 3.06 µs in execution in ON status 2.41 µs in execution in OFF status
OUT C K 1.9 2.25 1.57 1.72 C235 to C255 1.6 µs in execution in ON status 1.06 µs in execution in OFF status
OUT C D 2.26 2.49 1.93 2.35 C235 to C255 2.21 µs in execution in ON status 1.06 µs in execution in OFF status
SET Y,M 0.23 1.25 µs in 2-step instruction*2
1.25 µs in 3-step instruction*3
SET S 1.23 or 1.33 + 0.51n 0.59 n: Number of recombination 1.23 µs when there is no recombination
RST Y,M 0.23 1.22 µs in 2-step instruction*2
1.22 µs in 3-step instruction*3
RST T 1.68 1.21
RST C 1.68 1.82 1.18 1.19
RST D 1.08 0.54
PLS Y,M 1.52 1.56 µs in M3584 to M7679
PLF Y,M 1.52 1.56 µs in M3584 to M7679
MCR 1.3 ⎯
NOP 0.21
Even if FEND and END are used together, execution time of only END is required. X: Number of input points Y: Number of output points
*1. M1536 to M3583, M8256 to M8511, S1024 to S4095
*2. M1536 to M3583, M8000 to M8511
*3. M3584 to M7679

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
B Instruction Execution Time
B-1 Basic Instruction Execution Time
FNC277-FNC279 Data Transfer 3
Execution time in ON status (µs) Execution time in OFF status (µs)
Remarks 16-bit instruction 32-bit instruction 16-bit instruction 32-bit instruction
LD 0.42 1.68 µs in 2-step instruction*1
1.68 µs in 3-step instruction*3
FNC280-FNC289 High-Speed Processing 2
LDI 0.42 1.68 µs in 2-step instruction*1
1.68 µs in 3-step instruction*3
2.8 µs in execution in ON status*3
2.76 µs in execution in OFF status*3
2.84 µs in execution in ON status*3
FNC290-FNC299 Extension File Register Control
2.8 µs in execution in OFF status*3
AND 0.41 1.48 µs in 2-step instruction*1
1.52 µs in 3-step instruction*3
ANI 0.41 1.48 µs in 2-step instruction*1
1.52 µs in 3-step instruction*3
ANP 2.72 2.68
2.8 µs in execution in ON status*3
2.76 µs in execution in OFF status*3
2.8 µs in execution in ON status*3
2.76 µs in execution in OFF status*3
OR 0.42 1.6 µs in 2-step instruction*1
1.6 µs in 3-step instruction*3
ORI 0.42 1.6 µs in 2-step instruction*1
1.6 µs in 3-step instruction*3
2.8 µs in execution in ON status*3
2.76 µs in execution in OFF status*3
2.8 µs in execution in ON status*3
2.76 µs in execution in OFF status*3
ORB 0.41
MPS 0.42
MRD 0.41
MPP 0.38
INV 0.38
MEP 1.73
MEF 1.81
OUT Y,M 0.42 1.52 µs in 2-step instruction*2
1.56 µs in 3-step instruction*3
OUT T K 3.19 2.95 T246 to T319 3.47 µs in execution in ON status 2.82 µs in execution in OFF status

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
B Instruction Execution Time
B-1 Basic Instruction Execution Time
Execution time in ON status (µs) Execution time in OFF status (µs)
Remarks 16-bit instruction 32-bit instruction 16-bit instruction 32-bit instruction
OUT T D 3.55 3.32 T246 to T319 3.83 µs in execution in ON status 3.19 µs in execution in OFF status
OUT C K 2.68 3.02 2.35 2.89 C235 to C255 2.66 µs in execution in ON status 1.45 µs in execution in OFF status
OUT C D 3.04 3.25 2.72 3.1 C235 to C255 3.00 µs in execution in ON status 1.45 µs in execution in OFF status
SET Y,M 0.44 1.62 µs in 2-step instruction*2
1.62 µs in 3-step instruction*3
SET S 1.62 or 1.66 + 0.55n 0.78 n: Number of recombination n=1.62 when there is no recombination
RST Y,M 0.44 1.6 µs in 2-step instruction*2
1.6 µs in 3-step instruction*3
RST T 2.08 1.6
RST C 2.08 2.31 1.19 1.58
RST D 1.66 0.74
PLS Y,M 1.88 1.88 µs in M3584 to M7679
PLF Y,M 1.88 1.88 µs in M3584 to M7679
MCR 1.51 ⎯
NOP 0.42
Even if FEND and END are used together, execution time of only END is required. X: Number of input points, Y: Number of output points
*1. M1536 to M3583, M8256 to M8511, S1024 to S4095
*2. M1536 to M3583, M8000 to M8511
*3. M3584 to M7679

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
B Instruction Execution Time
B-1 Basic Instruction Execution Time
FNC277-FNC279 Data Transfer 3
Execution time in ON status (µs) Execution time in OFF status (µs)
Remarks 16-bit instruction 32-bit instruction 16-bit instruction 32-bit instruction
LD 0.065 0.129 µs in 2-step instruction*1
0.193 µs in 3-step instruction*3
FNC280-FNC289 High-Speed Processing 2
LDI 0.065 0.129 µs in 2-step instruction*1
0.193 µs in 3-step instruction*3
LDF 7.8 ⎯
AND 0.065 0.129 µs in 2-step instruction*1
0.193 µs in 3-step instruction*3
FNC290-FNC299 Extension File Register Control
ANI 0.065 0.129 µs in 2-step instruction*1
0.193 µs in 3-step instruction*3
ANF 7.5 ⎯
OR 0.065 0.129 µs in 2-step instruction*1
0.193 µs in 3-step instruction*3
ORI 0.065 0.129 µs in 2-step instruction*1
0.193 µs in 3-step instruction*3
ORF 7.4 ⎯
ANB 0.065
ORB 0.065
MPS 0.065
MRD 0.065
MPP 0.065
INV 0.065
MEP 3.4
MEF 3.4
OUT Y,M 0.065 0.129 µs in 2-step instruction*2
0.193 µs in 3-step instruction*3
OUT T K 0.71 0.71 T192 to T199, T246 to T511 11.6 µs in execution in ON status 8.2 µs in execution in OFF status
OUT T D 0.71 0.71 T192 to T199, T246 to T511 11.6 µs in execution in ON status 8.2 µs in execution in OFF status
OUT C K 0.71 6.1 0.71 6.1 C235 to C255 9.5 µs in execution in ON status 9.0 µs in execution in OFF status
OUT C D 0.71 6.1 0.71 6.1 C235 to C255 9.5 µs in execution in ON status 9.0 µs in execution in OFF status
SET Y,M 0.065 0.129 µs in 2-step instruction*2
0.193 µs in 3-step instruction*3
SET S 4.7 or 6.6 + 0.9n 0.13 n: Number of recombination 4.7 µs when there is no recombination
RST Y,M 0.065 0.129 µs in 2-step instruction*2
0.193 µs in 3-step instruction*3

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
B Instruction Execution Time
B-1 Basic Instruction Execution Time
Execution time in ON status (µs) Execution time in OFF status (µs)
Remarks 16-bit instruction 32-bit instruction 16-bit instruction 32-bit instruction
RST T 0.45 0.45
RST C 0.45 5.8 0.45 4.8
RST D 5.4 ⎯ 0.195 ⎯
PLS Y,M 0.257 0.321 µs in M3584 to M7679
PLF Y,M 0.257 0.321 µs in M3584 to M7679
MCR 3.9 ⎯
NOP 0.065
Even if FEND and END are used together, execution time of only END is required. X: Number of input points Y: Number of output points
*1. M1536 to M3583, M8256 to M8511, S1024 to S4095
*2. M1536 to M3583, M8000 to M8511
*3. M3584 to M7679

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
B Instruction Execution Time
B-2 Step Ladder Instruction Execution Time

Execution time in ON status (µs) Execution time in OFF status (µs)
Remarks 16-bit instruction 32-bit instruction 16-bit instruction 32-bit instruction
n: Number of recombination n = 0: When there is no recombination
n: Number of recombination n = 0: When there is no recombination
STL 3.36 + 1.19n ⎯ 3.35 + 1.46n ⎯
Execution time in ON status (µs) Execution time in OFF status (µs)
Remarks 16-bit instruction 32-bit instruction 16-bit instruction 32-bit instruction
n: Number of recombination n = 0: When there is no recombination
Execution time in ON status (µs) Execution time in OFF status (µs)
Remarks 16-bit instruction 32-bit instruction 16-bit instruction 32-bit instruction
Execution time in ON status (µs) Execution time in OFF status (µs)
Remarks 16-bit instruction 32-bit instruction 16-bit instruction 32-bit instruction
P*** 0.065 0.129 µs in P256 to P4095

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
B Instruction Execution Time
B-4 Applied Instruction Execution Time
Execution time in ON status (µs) Execution time in OFF status (µs)
No. Instruction
Remarks 16-bit instruction 32-bit instruction 16-bit instruction 32-bit instruction
⎯ 0.61 ⎯
02 SRET ⎯ ⎯ ⎯
03 IRET 6.34 ⎯ ⎯ ⎯
04 EI 2.52 ⎯ ⎯ ⎯
05 DI 1.94 ⎯ ⎯ ⎯
Even if FEND and END are used together, execution time of only END is required.
07 WDT 1.94 ⎯ 0.61 ⎯
08 FOR 4.98 (FOR+NEXT)
09 NEXT ⎯ ⎯ ⎯
10 CMP 11.18 11.54 0.61 0.61
11 ZCP 12.51 13.15 0.61 0.61
12 MOV 0.52 0.61 0.38 0.41 For details, refer to Appendix B-6-2.
14 CML 6.68 7.15 0.61 0.61
15 BMOV 15.95+3.96n ⎯ 0.61 ⎯
16 FMOV 10.20+0.77n 10.87+0.79n 0.61 0.61
19 BIN 2.93 4.61 0.41 0.43
Arithmetic and logical operation
21 SUB 1.79 2.13 0.41 0.45
22 MUL 1.29 3.21 0.41 0.45
23 DIV 1.93 3.7 0.41 0.45
24 INC 0.78 1.01 0.41 0.41
25 DEC 0.78 1.01 0.41 0.41
26 WAND 1.24 1.59 0.41 0.45
27 WOR 1.24 1.59 0.41 0.45
28 WXOR 1.24 1.59 0.41 0.45
30 ROR 7.37 8.94 0.61 0.61
31 ROL 7.37 8.94 0.61 0.61
34 SFTR 14.51+0.46n ⎯ 0.61 ⎯
35 SFTL 14.7+0.46n ⎯ 0.61 ⎯
36 WSFR 11.74+1.44n ⎯ 0.61 ⎯
37 WSFL 12.02+1.48n ⎯ 0.61 ⎯
39 SFRD 9.27 ⎯ 0.61 ⎯
ZRST(D) 7.96+0.22n ⎯ 0.61 ⎯ n: Number of reset points
ZRST(T) 8.77+0.46n ⎯ 0.61 ⎯ n: Number of reset points
ZRST(M) 14.76+0.37n ⎯ 0.61 ⎯ n: Number of reset points
42 ENCO 9.29 ⎯ 0.61 ⎯
43 SUM 6.95 7.43 0.61 0.61
44 BON 10.4 10.77 0.61 0.61
45 MEAN 13.83+3.33n 14.69+3.5n 0.61 0.61

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
B Instruction Execution Time
B-4 Applied Instruction Execution Time

Execution time in ON status (µs) Execution time in OFF status (µs)
Remarks 16-bit instruction 32-bit instruction 16-bit instruction 32-bit instruction

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
B Instruction Execution Time
B-4 Applied Instruction Execution Time
Execution time in ON status (µs) Execution time in OFF status (µs)
No. Instruction
Remarks 16-bit instruction 32-bit instruction 16-bit instruction 32-bit instruction
171 GBIN 11.46 11.83 0.61 0.61
224 LD= 1.56 1.8 1.52 1.76 For details, refer to Appendix B-6-2.
225 LD> 1.92 2.36 1.92 2.32 For details, refer to Appendix B-6-2.
226 LD< 1.96 2.4 1.88 2.28 For details, refer to Appendix B-6-2.
228 LD 1.52 1.76 1.56 1.8 For details, refer to Appendix B-6-2.
229 LD
230 LD>= 1.84 2.28 1.92 2.36 For details, refer to Appendix B-6-2.
232 AND= 1.52 1.76 1.46 1.7 For details, refer to Appendix B-6-2.
233 AND> 1.88 2.24 1.84 2.28 For details, refer to Appendix B-6-2.
234 AND< 1.92 2.36 1.84 2.18 For details, refer to Appendix B-6-2.
236 AND 1.48 1.68 1.5 1.7 For details, refer to Appendix B-6-2.
237 AND
238 AND>= 1.8 2.16 1.92 2.32 For details, refer to Appendix B-6-2.
240 OR= 1.54 1.76 1.52 1.72 For details, refer to Appendix B-6-2.
241 OR> 1.92 2.32 1.88 2.32 For details, refer to Appendix B-6-2.
242 OR< 1.96 2.36 1.84 2.28 For details, refer to Appendix B-6-2.
244 OR 1.52 1.72 1.56 1.76 For details, refer to Appendix B-6-2.
245 OR
246 OR>= 1.84 2.2 1.96 2.36 For details, refer to Appendix B-6-2.
271 IVDR 31.6 ⎯ 4.46 ⎯
272 IVRD 35.3 ⎯ 4.46 ⎯
273 IVWR 34.6 ⎯ 4.46 ⎯
275 IVMC 44.2 ⎯ 4.46 ⎯
276 ADPRW 67.19 ⎯ 9.83 ⎯
External device · Data comparison · External device communication

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
B Instruction Execution Time
B-4 Applied Instruction Execution Time

Remarks Execution time in ON status (µs)
00 CJ 2.59 ⎯ 0.61 ⎯ 2.93 ⎯ 0.8 ⎯
03 IRET 6.34 ⎯ ⎯ ⎯ 6.9 ⎯ ⎯ ⎯
04 EI 2.52 ⎯ ⎯ ⎯ 2.71 ⎯ ⎯ ⎯
05 DI 1.94 ⎯ ⎯ ⎯ 2.12 ⎯ ⎯ ⎯
Even if FEND and END are used together, execution time of only END is required. X: Number of input points, Y: Number of output points
07 WDT 1.94 ⎯ 0.61 ⎯ 2.16 ⎯ 0.8 ⎯
10 CMP 11.18 11.54 0.61 0.61 12.91 13.66 0.8 0.8
11 ZCP 12.51 13.15 0.61 0.61 14.62 16.02 0.8 0.8
12 MOV 0.52 0.61 0.38 0.41 1.29 1.56 0.61 0.65 For details, refer to Appendix B-6-2.
13 SMOV 16.19 ⎯ 0.61 ⎯ 18.68 ⎯ 0.8 ⎯
14 CML 6.68 7.15 0.61 0.61 8.03 8.5 0.8 0.8
15 BMOV 15.08+5.58n ⎯ 0.61 ⎯ 17.54+5.58n ⎯ 0.8 ⎯
16 FMOV 10.20+0.77n 10.87+0.79n 0.61 0.61 11.90+0.77n 12.94+0.79n 0.8 0.8
18 BCD 2.93 4.6 0.41 0.43 3.9 5.8 0.61 0.65
19 BIN 2.93 4.61 0.41 0.43 4.01 5.82 0.61 0.65
20 ADD 1.79 2.13 0.41 0.45 3.14 3.87 0.61 0.65
21 SUB 1.79 2.13 0.41 0.45 3.14 3.87 0.61 0.65
22 MUL 1.29 3.21 0.41 0.45 2.78 4.88 0.61 0.65
23 DIV 1.93 3.7 0.41 0.45 3.48 5.3 0.61 0.65
24 INC 0.78 1.01 0.41 0.41 1.53 1.96 0.61 0.65
25 DEC 0.78 1.01 0.41 0.41 1.53 1.96 0.61 0.65
26 WAND 1.24 1.59 0.41 0.45 2.61 3.34 0.61 0.65
27 WOR 1.24 1.59 0.41 0.45 2.61 3.34 0.61 0.65
28 WXOR 1.24 1.59 0.41 0.45 2.61 3.34 0.61 0.65
30 ROR 7.37 8.94 0.61 0.61 8.21 10.21 0.8 0.8
31 ROL 7.37 8.94 0.61 0.61 8.21 10.21 0.8 0.8
34 SFTR 14.51+0.46n ⎯ 0.61 ⎯ 16.61+0.46n ⎯ 0.8 ⎯
35 SFTL 14.7+0.46n ⎯ 0.61 ⎯ 16.82+0.46n ⎯ 0.8 ⎯
36 WSFR 11.74+1.44n ⎯ 0.61 ⎯ 13.91+1.44n ⎯ 0.8 ⎯
37 WSFL 12.02+1.48n ⎯ 0.61 ⎯ 14.11+1.48n ⎯ 0.8 ⎯
38 SFWR 7.46 ⎯ 0.61 ⎯ 9.19 ⎯ 0.8 ⎯
39 SFRD 9.27 ⎯ 0.61 ⎯ 10.99 ⎯ 0.8 ⎯

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
B Instruction Execution Time
B-4 Applied Instruction Execution Time
Standard mode Extension mode
Remarks Execution time in ON status (µs)
Execution time in ON status (µs)
No.
ZRST(D) 7.96+0.22n ⎯ 0.61 ⎯ 10.26+0.22n ⎯ 0.8 ⎯ n: Number of reset points
ZRST(T) 8.77+0.46n ⎯ 0.61 ⎯ 10.68+0.46n ⎯ 0.8 ⎯ n: Number of reset points
ZRST(M) 14.76+0.37n ⎯ 0.61 ⎯ 16.16+0.37n ⎯ 0.8 ⎯ n: Number of reset points
41 DECO 8.5 ⎯ 0.61 ⎯ 10.31 ⎯ 0.8 ⎯
42 ENCO 9.29 ⎯ 0.61 ⎯ 11.02 ⎯ 0.8 ⎯
43 SUM 6.95 7.43 0.61 0.61 8.3 8.76 0.8 0.8
44 BON 10.4 10.77 0.61 0.61 12.13 12.83 0.8 0.8
45 MEAN 13.83+3.33n 14.69+3.5n 0.61 0.61 16.28+3.32n 17.6+3.49n 0.8 0.8
46 ANS 9.55 ⎯ 9.09 ⎯ 11.27 ⎯ 10.81 ⎯
47 ANR 11.08 ⎯ 0.61 ⎯ 11.12 ⎯ 0.8 ⎯
49 FLT 6.96 7.56 0.61 0.61 8.28 8.88 0.8 0.8
50 REF 9+1.43n ⎯ 0.61 ⎯ 10.27+1.42n ⎯ 0.8 ⎯
52 MTR 14.72 ⎯ 1.65 ⎯ 16.11 ⎯ 1.85 ⎯
53 HSCS ⎯ 10.8 ⎯ 0.61 ⎯ 12.8 ⎯ 0.8
54 HSCR ⎯ 10.79 ⎯ 0.61 ⎯ 12.71 ⎯ 0.8
55 HSZ ⎯ 12.2 ⎯ 0.61 ⎯ 14.86 ⎯ 0.8
56 SPD 15.51 15.86 3.08 3.12 17.25 18.01 3.27 3.31
57 PLSY 38.21 38.61 4.63 4.78 40.1 41.33 5.5 5.36
58 PWM 21.79 ⎯ 8.11 ⎯ 22.46 ⎯ 8.5 ⎯
59 PLSR 156.25 157.02 4.61 4.66 158.85 159.63 5.3 5.33
60 IST 23.33 ⎯ 0.61 ⎯ 25.3 ⎯ 0.8 ⎯
61 SER 21.33+3.97n 22.14+4.29n 2.4 2.3 23.99+3.96n 25.7+4.29n 2.6 2.5
62 ABSD 14.72+2.25n 15.22+3.44n 0.61 0.61 17.04+2.25n 17.96+3.44n 0.8 0.8
63 INCD 23.69 ⎯ 3.04 ⎯ 25.02 ⎯ 3.23 ⎯
66 ALT 5.82 ⎯ 0.61 ⎯ 6.62 ⎯ 0.8 ⎯
67 RAMP 12.33 ⎯ 9.89 ⎯ 15.21 ⎯ 12.37 ⎯
External FX I/O device
72 DSW 24.74 ⎯ 18 ⎯ 27.08 ⎯ 20.3 ⎯
74 SEGL 17.76 ⎯ 6.27 ⎯ 19.34 ⎯ 6.41 ⎯
FROM*1 115.6+454.4n 119.14+904.86n 0.61 0.61 117.29+454.74n 121.98+905.03n 0.8 0.8 n: Number of transfer points
FROM*2 114.98+968.02n 119.62+1931.4n 0.61 0.61 117.81+968.19n 123.62+1931.4n 0.8 0.8 n: Number of transfer points
FROM*3 52.58+131.43n 11.67+242.33n 0.61 0.61 55.58+131.43n 14.67+242.34n 0.8 0.8 n: Number of transfer points
TO*1 74.84+515.17n 78.31+1025.7n 0.61 0.61 76.67+515.34n 82.39+1025.7n 0.8 0.8 n: Number of transfer points
TO*2 77.62+1025.4n 78.93+2047.1n 0.61 0.61 81.62+1025.4n 82.93+2047.1n 0.8 0.8 n: Number of transfer points
TO*3 129.9+134.1n 13.67+350.33n 0.61 0.61 132.91+134.1n 18.58+350.43n 0.8 0.8 n: Number of transfer points
*1. When the instruction is executed to BFM #0 to BFM #31 in a special function unit/block for the FX2N Series. *2. When the instruction is executed to BFM #32 or later in a special function unit/block for the FX2N Series. *3. When the instruction is executed to a BFM in a special function unit/block for the FX3U/FX3UC Series

80 RS 17.21 ⎯ 2.52 ⎯ 19.99 ⎯ 2.91 ⎯
81 PRUN 11.41+1.67n 11.65+1.63n 0.61 0.61 12.92+1.6n 12.87+1.65n 0.8 0.8
82 ASCI 12.34+1.52n ⎯ 0.61 ⎯ 14.07+1.52n ⎯ 0.8 ⎯
83 HEX 11.89+2.66n ⎯ 0.61 ⎯ 13.66+2.66n ⎯ 0.8 ⎯
84 CCD 11.98+1.16n ⎯ 0.61 ⎯ 13.7+1.16n ⎯ 0.8 ⎯
85 VRRD 102.46 ⎯ 0.61 ⎯ 103.88 ⎯ 0.8 ⎯
86 VRSC 102.46 ⎯ 0.61 ⎯ 103.88 ⎯ 0.8 ⎯
87 RS2 23.48 ⎯ 2.68 ⎯ 26.52 ⎯ 2.92 ⎯
88 PID 29.1 ⎯ 15.41 ⎯ 31.5 ⎯ 18.005 ⎯

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
B Instruction Execution Time
B-4 Applied Instruction Execution Time
Standard mode Extension mode
FNC277-FNC279 Data Transfer 3
Remarks Execution time in ON status (µs)
Execution time in ON status (µs)
No.
FNC280-FNC289 High-Speed Processing 2
110 ECMP ⎯ 12.46 ⎯ 0.61 ⎯ 14.68 ⎯ 0.8
112 EMOV ⎯ 6.36 ⎯ 0.61 ⎯ 7.68 ⎯ 0.8
120 EADD ⎯ 11.96 ⎯ 0.61 ⎯ 13.96 ⎯ 0.8
121 ESUB ⎯ 12.06 ⎯ 0.61 ⎯ 13.98 ⎯ 0.8
122 EMUL ⎯ 12.76 ⎯ 0.61 ⎯ 14.68 ⎯ 0.8
123 EDIV ⎯ 20.86 ⎯ 0.61 ⎯ 22.68 ⎯ 0.8
FNC290-FNC299 Extension File Register Control
127 ESQR ⎯ 10.66 ⎯ 0.61 ⎯ 11.88 ⎯ 0.8
129 INT 12.06 12.06 0.61 0.61 13.28 13.28 0.8 0.8
150 DSZR 166.48 ⎯ 4.56 ⎯ 168.92 ⎯ 4.96 ⎯
152 TBL ⎯ *1 ⎯ 0.61 ⎯ *1 ⎯ 0.8
155 ABS ⎯ 16.68 ⎯ 3.68 ⎯ 18.52 ⎯ 3.88
156 ZRN 140.48 141.48 4.68 4.68 142.92 143.92 5.08 5.08
157 PLSV 160.48 160.48 4.64 4.64 161.92 162.92 5.04 5
158 DRVI 275.38 275.94 4.78 4.78 278.02 278.58 5.12 5.12
159 DRVA 276.08 276.65 4.74 4.74 278.69 279.25 5.16 5.16
*1. The instruction execution time is as shown below depending on the executed positioning type (instruction)
Instruction execution time in ON status (µs)
Positioning type Operation instruction
Standard mode Extension mode
DPLSV (variable speed pulse output) DPLSV instruction 160.48 µs 162.92 µs
DDRVI (drive to increment) DDRVI instruction 275.94 µs 278.58 µs
DDRVA (drive to absolute) DDRVA instruction 276.65 µs 279.25 µs
Real time clock control
160 TCMP 15.07 ⎯ 0.61 ⎯ 17.57 ⎯ 0.8 ⎯
161 TZCP 17.84 ⎯ 0.61 ⎯ 20.33 ⎯ 0.8 ⎯
162 TADD 11.98 ⎯ 0.61 ⎯ 13.91 ⎯ 0.8 ⎯
163 TSUB 11.98 ⎯ 0.61 ⎯ 13.91 ⎯ 0.8 ⎯
166 TRD 6.76 ⎯ 0.61 ⎯ 7.52 ⎯ 0.8 ⎯
167 TWR 337.1 ⎯ 0.61 ⎯ 339.6 ⎯ 0.8 ⎯
169 HOUR 10.86 11.57 10.44 10.44 12.59 13.69 12.17 13.01
170 GRY 11.46 11.81 0.61 0.61 12.62 13.35 0.8 0.8
171 GBIN 11.46 11.83 0.61 0.61 12.62 13.37 0.8 0.8
176 RD3A (2AD) 1939 ⎯ 0.61 ⎯ 1941 ⎯ 0.8 ⎯ FX2N-2AD
177 WR3A (2DA) 3086 ⎯ 0.61 ⎯ 3089 ⎯ 0.8 ⎯ FX2N-2DA
224 LD= 1.56 1.8 1.52 1.76 2.28 2.72 2.24 2.68 For details, refer to Appendix B-6-2.
225 LD> 1.92 2.36 1.92 2.32 2.68 3.24 2.68 3.24 For details, refer to Appendix B-6-2.
226 LD< 1.96 2.4 1.88 2.28 2.72 3.28 2.64 3.2 For details, refer to Appendix B-6-2.
228 LD 1.52 1.76 1.56 1.8 2.24 2.68 2.28 2.72 For details, refer to Appendix B-6-2.
229 LD
230 LD>= 1.84 2.28 1.92 2.36 2.6 3.16 2.72 3.28 For details, refer to Appendix B-6-2.
232 AND= 1.52 1.76 1.46 1.7 2.28 2.96 2.24 2.64 For details, refer to Appendix B-6-2.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
B Instruction Execution Time
B-4 Applied Instruction Execution Time
Standard mode Extension mode
Remarks Execution time in ON status (µs)
Execution time in ON status (µs)
No.
233 AND> 1.88 2.24 1.84 2.28 2.6 3.2 2.6 3.2 For details, refer to Appendix B-6-2.
234 AND< 1.92 2.36 1.84 2.18 2.68 3.28 2.56 3.16 For details, refer to Appendix B-6-2.
236 AND 1.48 1.68 1.5 1.7 2.24 2.64 2.24 2.64 For details, refer to Appendix B-6-2.
237 AND
238 AND>= 1.8 2.16 1.92 2.32 2.52 3.12 2.64 3.24 For details, refer to Appendix B-6-2.
240 OR= 1.54 1.76 1.52 1.72 2.28 2.68 2.24 2.64 For details, refer to Appendix B-6-2.
241 OR> 1.92 2.32 1.88 2.32 2.64 3.24 2.64 3.24 For details, refer to Appendix B-6-2.
242 OR< 1.96 2.36 1.84 2.28 2.68 3.28 2.6 3.2 For details, refer to Appendix B-6-2.
244 OR 1.52 1.72 1.56 1.76 2.24 2.64 2.28 2.68 For details, refer to Appendix B-6-2.
245 OR
246 OR>= 1.84 2.2 1.96 2.36 2.56 3.16 2.68 3.28 For details, refer to Appendix B-6-2.
270 IVCK 32.60 ⎯ 4.46 ⎯ 33.90 ⎯ 4.88 ⎯
271 IVDR 31.60 ⎯ 4.46 ⎯ 32.40 ⎯ 4.88 ⎯
272 IVRD 35.30 ⎯ 4.46 ⎯ 36.60 ⎯ 4.88 ⎯
273 IVWR 34.60 ⎯ 4.46 ⎯ 35.40 ⎯ 4.88 ⎯
275 IVMC 44.2 ⎯ 4.46 ⎯ 45.4 ⎯ 4.88 ⎯
276 ADPRW 68.15 ⎯ 8.83 ⎯ 71.48 ⎯ 9.77 ⎯
Extension file register control
290 LOADR 107.23+30.25n ⎯ 0.61 ⎯ 108.59+30.33n ⎯ 0.8 ⎯
294 RWER 4692.4+128.57n ⎯ 0.61 ⎯ 4700.4+128.57n ⎯ 0.8 ⎯ n:Number of write points (Unit: Word)

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
B Instruction Execution Time
B-4 Applied Instruction Execution Time

Execution time in ON status (µs) Execution time in OFF status (µs)
Remarks 16-bit instruction 32-bit instruction 16-bit instruction 32-bit instruction
Even if FEND and END are used together, execution time of only END is required. X: Number of input points, Y: Number of output points
06 FEND 113.9 + 2.13X + 3.25Y ⎯ ⎯ ⎯
12 MOV 0.64 1.48 0.32 1.48 For details, refer to Appendix B-6-2.
16 FMOV 14.2 + 0.19n 14.0 + 0.38n 0.455 0.845

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
B Instruction Execution Time
B-4 Applied Instruction Execution Time
Execution time in ON status (µs) Execution time in OFF status (µs)
No. Instruction
Remarks 16-bit instruction 32-bit instruction 16-bit instruction 32-bit instruction
ZRST(D) 11.1 + 0.19n ⎯ 0.325 ⎯ n: Number of reset points
ZRST(T) 17.1 + 0.23n ⎯ 0.325 ⎯ n: Number of reset points
ZRST(M) 20.7 + 0.02n ⎯ 0.325 ⎯ n: Number of reset points
42 ENCO 18.0 ⎯ 0.455 ⎯
43 SUM 12.7 16.9 0.325 0.585
44 BON 14.4 15.1 0.455 0.845
45 MEAN 11.8 + 0.41n 17.8 + 2.13n 0.455 0.845
47 ANR 7.0 ⎯ 0.065 ⎯
48 SQR 9.7 12.1 0.325 0.585
49 FLT 9.8 9.5 0.325 0.585
50 REF 4.5 + 1.39n ⎯ 0.325 ⎯
51 REFF 14.4 + 0.24n ⎯ 0.195 ⎯
53 HSCS ⎯ 20.0 ⎯ 0.845
54 HSCR ⎯ 20.0 ⎯ 0.845
55 HSZ ⎯ 22.0 ⎯ 1.105
56 SPD 16.0 16.0 12.6 12.6
57 PLSY 20.0 13.6 6.9 6.9
58 PWM 10.6 ⎯ 6.2 ⎯
59 PLSR 11.2 11.2 7.0 7.0
60 IST 28.5 ⎯ 0.455 ⎯
61 SER 16.4 + 1.4n 18.5 + 2.13n 0.585 1.105
62 ABSD 19 + 0.85n 20.0 + 1.23n 0.585 1.105
64 TTMR 10.4 ⎯ 9.2 ⎯
65 STMR 19.0 ⎯ 21.0 ⎯
66 ALT 11.6 ⎯ 0.2 ⎯
67 RAMP 15.0 ⎯ 7.5 ⎯
68 ROTC 25.8 ⎯ 24.8 ⎯
69 SORT 18.4 ⎯ 6.6 ⎯
External FX I/O device
71 HKY 32.0 32.3 5.7 5.7
72 DSW 26.8 ⎯ 22.1 ⎯
73 SEGD 10.8 ⎯ 0.325 ⎯
74 SEGL 22.3 ⎯ 7.5 ⎯
75 ARWS 28.8 ⎯ 5.2 ⎯
76 ASC 19.8 ⎯ 0.715 ⎯
77 PR 24.0 ⎯ 13.6 ⎯
Data operation · High-speed processing · Handy instructions

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
B Instruction Execution Time
B-4 Applied Instruction Execution Time
Execution time in ON status (µs) Execution time in OFF status (µs)
FNC277-FNC279 Data Transfer 3
No. Instruction
Remarks 16-bit instruction 32-bit instruction 16-bit instruction 32-bit instruction
External FX I/O device
FROM*1 141 + 419n 119 + 841n 0.585 1.105 n: Number of transfer points
FROM*2 107 + 903n 119 + 1791n 0.585 1.105 n: Number of transfer points
FROM*3 27.9 + 108n 17.6 + 187.4n 0.585 1.105 n: Number of transfer points
FNC280-FNC289 High-Speed Processing 2
TO*1 87 + 483n 73 + 967n 0.585 1.105 n: Number of transfer points
TO*2 73 + 967n 67 + 1923n 0.585 1.105 n: Number of transfer points
TO*3 96.7 + 119.2n 17.3 + 297.7n 0.585 1.105 n: Number of transfer points
*1. When the instruction is executed to BFM #0 to BFM #31 in a special function unit/block for the FX0N/FX2N/ FX2NC Series or in the CC-Link/LT built in the FX3UC-32MT-LT(-2)
FNC290-FNC299 Extension File Register Control
*2. When the instruction is executed to BFM #32 or later in a special function unit/block for the FX0N/FX2N/FX2NC Series or in the CC-Link/LT built in the FX3UC-32MT-LT(-2)
*3. When the instruction is executed to a BFM in a special function unit/block for the FX3U/FX3UC Series
81 PRUN 17.1 + 1.67n 18.2 + 2.9n 0.325 0.585
82 ASCI 13.5 + 1.45n ⎯ 0.455 ⎯
83 HEX 13.6 + 1.89n ⎯ 0.455 ⎯
84 CCD 13.6 + 1.63n ⎯ 0.455 ⎯
86 VRSC 129.94 ⎯ 0.325 ⎯
87 RS2 18.1 ⎯ 5.3 ⎯
88 PID 20.0 ⎯ 8.9 ⎯
89 ⎯
100 ⎯
101 ⎯
103 ZPOP 16.0 ⎯ 0.195 ⎯
104 ⎯
105 ⎯
106 ⎯
107 ⎯
108 ⎯
109 ⎯
111 EZCP ⎯ 21.6 ⎯ 1.105
112 EMOV ⎯ 10.0 ⎯ 0.585
113 ⎯
114 ⎯
115 ⎯
n: Number of character
116 ESTR ⎯ 27 + 1.7n + 1.26m ⎯ 0.845
117 EVAL ⎯ 26 + 3.8n ⎯ 0.585
119 EBIN ⎯ 11.9 ⎯ 0.585
120 EADD ⎯ 14.2 ⎯ 0.845
B
121 ESUB ⎯ 14.2 ⎯ 0.845
122 EMUL ⎯ 14.1 ⎯ 0.845
123 EDIV ⎯ 17.7 ⎯ 0.845

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
B Instruction Execution Time
B-4 Applied Instruction Execution Time
Execution time in ON status (µs) Execution time in OFF status (µs)
No. Instruction
Remarks 16-bit instruction 32-bit instruction 16-bit instruction 32-bit instruction
125 LOGE ⎯ 24.0 ⎯ 0.585
126 LOG10 ⎯ 24.3 ⎯ 0.585
127 ESQR ⎯ 10.6 ⎯ 0.585
128 ENEG ⎯ 8.9 ⎯ 0.325
129 INT 13.2 13.0 0.325 0.585
130 SIN ⎯ 12.0 ⎯ 0.585
131 COS ⎯ 23.2 ⎯ 0.585
132 TAN ⎯ 12.0 ⎯ 0.585
133 ASIN ⎯ 13.5 ⎯ 0.585
134 ACOS ⎯ 13.5 ⎯ 0.585
135 ATAN ⎯ 12.0 ⎯ 0.585
136 RAD ⎯ 14.9 ⎯ 0.585
137 DEG ⎯ 14.9 ⎯ 0.585
138 ⎯
139 ⎯
140 WSUM 11.7 + 0.38n 14.1 + 1.94n 0.455 0.845
141 WTOB 12.6 + 1.43n ⎯ 0.455 ⎯
142 BTOW 12.6 + 0.92n ⎯ 0.455 ⎯
143 UNI 11.6 + 0.4n ⎯ 0.455 ⎯
144 DIS 10.6 + 0.2n ⎯ 0.455 ⎯
145 ⎯
146 ⎯
148 ⎯
150 DSZR 170.0 ⎯ 7.0 ⎯
151 DVIT 178.0 178.0 7.1 7.1
152 TBL ⎯ *1 ⎯ 7.1
153 ⎯
154 ⎯
156 ZRN 58.0 62.0 7.1 7.1
157 PLSV 144.0 144.0 7.1 7.1
158 DRVI 178.0 178.0 7.1 7.1
159 DRVA 178.0 178.0 7.1 7.1
*1. The instruction execution time is as shown below depending on the executed positioning type (instruction)
Positioning type Operation instruction Instruction execution time in ON status (µs)
DDVIT (interrupt positioning) DDVIT instruction 178.0 µs
DPLSV (variable speed pulse output) DPLSV instruction 144.0 µs
DDRVI (drive to increment) DDRVI instruction 178.0 µs
DDRVA (drive to absolute) DDRVA instruction 178.0 µs
Floating point · Data operation 2 · Positioning control

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
B Instruction Execution Time
B-4 Applied Instruction Execution Time

Execution time in ON status (µs) Execution time in OFF status (µs)
Remarks 16-bit instruction 32-bit instruction 16-bit instruction 32-bit instruction
176 RD3A(3A) 1404 ⎯ 0.455 ⎯ FX0N-3A
177 WR3A(3A) 1466 ⎯ 0.455 ⎯ FX0N-3A
192 BK+ 13.1 + 0.66n 13.9 + 1.23n 0.585 1.105
193 BK- 13.1 + 0.66n 13.9 + 1.23n 0.585 1.105
194 BKCMP= 19.6 + 1.88n 20.3 + 2.26n 0.585 1.105
195 BKCMP> 19.6 + 1.88n 20.3 + 2.26n 0.585 1.105
196 BKCMP< 19.6 + 1.88n 20.3 + 2.26n 0.585 1.105
197 BKCMP 19.6 + 1.88n 20.3 + 2.26n 0.585 1.105
198 BKCMP
199 BKCMP>= 19.6 + 1.88n 20.3 + 2.26n 0.585 1.105
202 $+ 24.8 + 1.5m ⎯ 0.455 ⎯ m: Number of character
203 LEN 12 + 0.44m ⎯ 0.325 ⎯ m: Number of character
204 RIGHT 18.1 + 1.06n + 0.47m ⎯ 0.455 ⎯
205 LEFT 18.1 + 0.74n + 0.44m ⎯ 0.455 ⎯

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
B Instruction Execution Time
B-4 Applied Instruction Execution Time

Execution time in ON status (µs) Execution time in OFF status (µs)
Remarks 16-bit instruction 32-bit instruction 16-bit instruction 32-bit instruction
206 MIDR 25 + 0.59n + 0.68m ⎯ 0.455 ⎯ n: Character position m: Number of characters
207 MIDW 25.8 + 0.3m + 0.44n ⎯ 0.455 ⎯
208 INSTR 20.6 + 2.98m ⎯ 0.585 ⎯ m: Number of searched
*1. Number of characters from the head of the searched character string to detected character
210 FDEL 43 + 0.95m ⎯ ⎯ ⎯ m: Number of data shifted
211 FINS 63 + 0.98m ⎯ ⎯ ⎯ m: Number of data shifted
*2. m = (Number of data tables) - (Table position of deleted data)
*3. m = (Number of data tables) - (Table position of data insertion)
220 ⎯
221 ⎯
222 ⎯
223 ⎯
224 LD= 1.22 1.48 1.22 1.48 For details, refer to Appendix B-6-2.
225 LD> 1.22 1.48 1.22 1.48 For details, refer to Appendix B-6-2.
226 LD< 1.22 1.48 1.22 1.48 For details, refer to Appendix B-6-2.
227 ⎯
228 LD 1.22 1.48 1.22 1.48 For details, refer to Appendix B-6-2.
229 LD
230 LD>= 1.22 1.48 1.22 1.48 For details, refer to Appendix B-6-2.
231 ⎯
232 AND= 1.22 1.48 1.22 1.48 For details, refer to Appendix B-6-2.
233 AND> 1.22 1.48 1.22 1.48 For details, refer to Appendix B-6-2.
234 AND< 1.22 1.48 1.22 1.48 For details, refer to Appendix B-6-2.
235 ⎯
236 AND 1.22 1.48 1.22 1.48 For details, refer to Appendix B-6-2.
Data comparison

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
B Instruction Execution Time
B-4 Applied Instruction Execution Time
Execution time in ON status (µs) Execution time in OFF status (µs)
FNC277-FNC279 Data Transfer 3
No. Instruction
Remarks 16-bit instruction 32-bit instruction 16-bit instruction 32-bit instruction
237 AND
238 AND>= 1.22 1.48 1.22 1.48 For details, refer to Appendix B-6-2.
FNC280-FNC289 High-Speed Processing 2
239 ⎯
240 OR= 1.22 1.48 1.22 1.48 For details, refer to Appendix B-6-2.
241 OR> 1.22 1.48 1.22 1.48 For details, refer to Appendix B-6-2.
242 OR< 1.22 1.48 1.22 1.48 For details, refer to Appendix B-6-2.
FNC290-FNC299 Extension File Register Control
243 ⎯
244 OR 1.22 1.48 1.22 1.48 For details, refer to Appendix B-6-2.
245 OR
246 OR>= 1.22 1.48 1.22 1.48 For details, refer to Appendix B-6-2.
247 ⎯
248 ⎯
249 ⎯
250 ⎯
251 ⎯
252 ⎯
253 ⎯
254 ⎯
255 ⎯
257 BAND 8.1 8.6 0.585 1.105
258 ZONE 7.9 8.5 0.585 1.105
259 SCL 15.9 16.8 0.455 0.845
260 DABIN 13.7 19.5 0.325 0.585
261 BINDA 16.7 23.1 0.325 0.585
262 ⎯
263 ⎯
264 ⎯
265 ⎯
266 ⎯
267 ⎯
268 ⎯
269 SCL2 2.79 + 5.21n 29.06 + 7.94n 0.455 0.845 n: Number of data
271 IVDR 22.7 ⎯ 6.5 ⎯
A
272 IVRD 26.8 ⎯ 6.5 ⎯
273 IVWR 24.7 ⎯ 6.5 ⎯
274 IVBWR 31.0 ⎯ 6.5 ⎯
275 IVMC 29.6 ⎯ 6.5 ⎯
276 ADPRW 106.55 ⎯ 30.4 ⎯
B

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
B Instruction Execution Time
B-4 Applied Instruction Execution Time
Execution time in ON status (µs) Execution time in OFF status (µs)
No. Instruction
Remarks 16-bit instruction 32-bit instruction 16-bit instruction 32-bit instruction
277 ⎯
278 RBFM*1 50+900n ⎯ 0.715 ⎯ n : Number of points transferred in
one operation cycle RBFM*2 244 + 103n ⎯ 0.715 ⎯
279 WBFM*1 24 + 966n ⎯ 0.715 ⎯ n : Number of points transferred in
one operation cycle WBFM*2 292 + 116n ⎯ 0.715 ⎯
*1. When the instruction is executed to a BFM in a special function unit/block for the FX0N/FX2N/FX2NC Series or in the CC-Link/LT built in the FX3UC-32MT-LT(-2)
*2. When the instruction is executed to a BFM in a special function unit/block for the FX3U/FX3UC Series
281 ⎯
282 ⎯
283 ⎯
284 ⎯
285 ⎯
286 ⎯
287 ⎯
288 ⎯
289 ⎯
Extension file register control
290 LOADR 13.2 + 0.44n ⎯ 0.325 ⎯
291 SAVER 166n ⎯ 6.4 ⎯
292 INITR 17600n ⎯ 0.325 ⎯
293 LOGR 244 + 17.9n ⎯ 0.715 ⎯
294 RWER 46700n ⎯ 0.325 ⎯ n : Number of write target
295 INITER 17300n ⎯ 0.325 ⎯
296 to 299 ⎯
300 FLCRT 83.2 ⎯ 6.64 ⎯
301 FLDEL 49.1 ⎯ 6.32 ⎯
302 FLWR 77.9 + 2.9n ⎯ 6.26 ⎯ n : Number of written data
303 FLRD 59.2 + 4.25n ⎯ 6.18 ⎯ n : Number of read data
305 FLSTRD 50.9 ⎯ 6.24 ⎯
*3. When 16-bit data is written or read.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
B Instruction Execution Time
B-5 Execution Time of Pulse Generation Instruction P in Each Applied Instruction
FNC277-FNC279 Data Transfer 3
Applied instruction Execution time Remarks
Execution time at rising edge of input: Execution time in ON status = 4.98 µs
FNC280-FNC289 High-Speed Processing 2
MOV instruction (FNC 12)
Execution time at rising edge of input: Execution time in ON status = 7.81 µs
BCD instruction (FNC 18)
Execution time at rising edge of input: Execution time in ON status = 7.77 µs
BIN instruction (FNC 19)
Execution time at rising edge of input: Execution time in ON status = 6.37 µs
FNC290-FNC299 Extension File Register Control
ADD instruction (FNC 20)
Execution time at rising edge of input: Execution time in ON status = 6.47 µs
SUB instruction (FNC 21)
Execution time at rising edge of input: Execution time in ON status = 7.07 µs
MUL instruction (FNC 22)
Execution time at rising edge of input: Execution time in ON status = 7.03 µs
DIV instruction (FNC 23)
Execution time at rising edge of input: Execution time in ON status = 3.48 µs
INC instruction (FNC 24)
Execution time at rising edge of input: Execution time in ON status = 3.48 µs
DEC instruction (FNC 25)
Execution time at rising edge of input: Execution time in ON status = 6.42 µs
WAND instruction (FNC 26)
Execution time at rising edge of input: Execution time in ON status = 6.42 µs
WOR instruction (FNC 27)
Execution time at rising edge of input: Execution time in ON status = 6.42 µs
WXOR instruction (FNC 28)
Execution time at rising edge of input: Execution time in ON status + 0.68 µs
B

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
B Instruction Execution Time
B-5 Execution Time of Pulse Generation Instruction P in Each Applied Instruction
Applied instruction Execution time Remarks
Execution time at rising edge of input: Execution time in ON status = 4.98 µs
MOV instruction (FNC 12)
Execution time at rising edge of input: Execution time in ON status = 7.81 µs
BCD instruction (FNC 18)
Execution time at rising edge of input: Execution time in ON status = 7.77 µs
BIN instruction (FNC 19)
Execution time at rising edge of input: Execution time in ON status = 6.37 µs
ADD instruction (FNC 20)
Execution time at rising edge of input: Execution time in ON status = 6.47 µs
SUB instruction (FNC 21)
Execution time at rising edge of input: Execution time in ON status = 7.07 µs
MUL instruction (FNC 22)
Execution time at rising edge of input: Execution time in ON status = 7.03 µs
DIV instruction (FNC 23)
Execution time at rising edge of input: Execution time in ON status = 3.48 µs
INC instruction (FNC 24)
Execution time at rising edge of input: Execution time in ON status = 3.48 µs
DEC instruction (FNC 25)
Execution time at rising edge of input: Execution time in ON status = 6.42 µs
WAND instruction (FNC 26)
Execution time at rising edge of input: Execution time in ON status = 6.42 µs
WOR instruction (FNC 27)
Execution time at rising edge of input: Execution time in ON status = 6.42 µs
WXOR instruction (FNC 28)
Execution time at rising edge of input: Execution time in ON status + 0.68 µs
Other applied instructions

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
B Instruction Execution Time
B-5 Execution Time of Pulse Generation Instruction P in Each Applied Instruction
FNC277-FNC279 Data Transfer 3
Applied instruction Execution time Remarks
Execution time at rising edge of input: Execution time in ON status = 5.43 µs
MOV instruction (FNC 12)
Execution time at rising edge of input: Execution time in ON status = 9.13 µs
BCD instruction (FNC 18)
FNC280-FNC289 High-Speed Processing 2
Execution time at rising edge of input: Execution time in ON status = 9.08 µs
BIN instruction (FNC 19)
Execution time at rising edge of input: Execution time in ON status = 6.68 µs
ADD instruction (FNC 20)
Execution time at rising edge of input: Execution time in ON status = 6.78 µs
SUB instruction (FNC 21)
FNC290-FNC299 Extension File Register Control
Execution time at rising edge of input: Execution time in ON status = 7.24 µs
MUL instruction (FNC 22)
Execution time at rising edge of input: Execution time in ON status = 7.44 µs
DIV instruction (FNC 23)
Execution time at rising edge of input: Execution time in ON status = 3.49 µs
INC instruction (FNC 24)
Execution time at rising edge of input: Execution time in ON status = 3.49 µs
DEC instruction (FNC 25)
Execution time at rising edge of input: Execution time in ON status = 6.81 µs
WAND instruction (FNC 26)
Execution time at rising edge of input: Execution time in ON status = 6.81 µs
WOR instruction (FNC 27)
Execution time at rising edge of input: Execution time in ON status = 6.81 µs
WXOR instruction (FNC 28)
Execution time at rising edge of input: Execution time in ON status + 0.7 µs
Applied instruction Execution time Remarks
Execution time at rising edge of input: Execution time in ON status 1.22 µs in MOVP instruction
MOV instruction (FNC 12)
Execution time at rising edge of input: Execution time in ON status + 0.45 µs
B

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
B Instruction Execution Time
B-6 Execution Time on Combination of Applicable Devices and Indexing
Indexing
In examples shown below for basic instructions, the MOV instruction and data comparison instructions, the instruction execution time varies depending on the combination of target devices and absence/presence of indexing. The combinations of target devices marked with "*1" and "*2" are handled as exceptions because high-speed processing is adopted in the technique.
Specified device type Condition Instruction execution time (µs)
Bit device Without indexing 0.065
With indexing 11.9
Word device Bit specification 8.8
1. MOV (FNC 12) instruction execution time
D (destination) Without indexing (µs) With indexing (µs)
KnY,KnM,KnS*1 T,C,D KnY,KnM,KnS T,C,D
KnX,KnY,KnM,KnS*1 0.64 0.72 14.68 8.28
T,C,D 0.88 0.84 13.08 6.68 K,H 0.48 0.52 12.28 5.78
0.36 0.58 T,C,D K,H
*1. When K4 is specified, and the head bit device number is a multiple of 8 (K4M0, K4M8 ...)
- DMOV instruction (32-bit instruction)
D (destination) Without indexing (µs) With indexing (µs)
KnY,KnM,KnS*1 T,C,D KnY,KnM,KnS T,C,D
KnX,KnY,KnM,KnS*1 0.68 0.88 19.48 8.68
T,C,D 1.24 1.04 18.18 7.28 K,H 0.56 0.56 17.18 6.28
0.4 0.58 T,C,D K,H
*1. When K8 is specified, and the head bit device number is a multiple of 8 (K8M0, K8M8 ...)

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
B Instruction Execution Time
B-6 Execution Time on Combination of Applicable Devices and Indexing
FNC277-FNC279 Data Transfer 3
D (destination) Standard mode Extension mode Without indexing (µs) With indexing (µs) Without indexing (µs) With indexing (µs) KnY, KnM,
T,C,D,R
T,C,D,R
T,C,D,R
FNC280-FNC289 High-Speed Processing 2
KnX,KnY,KnM,KnS*1 0.64 0.72 14.68 8.28 1.56 1.8 16.42 9.92
T,C,D,R 0.88 0.84 13.08 6.68 1.84 1.96 14.82 8.32 K,H 0.48 0.52 12.28 5.78 1.24 1.4 13.22 7.22
0.36 0.58 0.52 0.82 T,C,D,R K,H
FNC290-FNC299 Extension File Register Control
*1. When K4 is specified, and the head bit device number is a multiple of 8 (K4M0, K4M8 ...)
- DMOV instruction (32-bit instruction)
D (destination) Standard mode Extension mode Without indexing (µs) With indexing (µs) Without indexing (µs) With indexing (µs) KnY, KnM,
T,C,D,R
T,C,D,R
T,C,D,R
T,C,D,R
KnX,KnY,KnM,KnS*1 0.68 0.88 19.48 8.68 1.6 2.12 21.32 10.32
T,C,D,R 1.24 1.04 18.18 7.28 2.2 2.4 19.92 9.02 K,H 0.56 0.56 17.18 6.28 1.48 1.88 19.12 8.22
0.4 0.58 0.62 0.82 T,C,D,R K,H
*1. When K8 is specified, and the head bit device number is a multiple of 8 (K8M0, K8M8 ...)
D (destination) Without indexing (µs) With indexing (µs)
KnY,KnM,KnS T,C,D R U \G *3 KnY,KnM,KnS T,C,D R U \G *3
KnX,KnY,KnM,KnS 15.5 12.1 13.8 212.9 18.6 16.6 16.9 214.7
T,C,D 12.1 0.64*1 10.4 209.7 16.6 14.5 14.8 212.8
R 13.8 10.4 12.1 211.3 16.9 14.8 15.1 213.1
U \G *3 131.8 128.5 130.2 377.9 133.1 129.9 131.5 379.4
K,H 12.5 0.64*1 10.8 210.1 15.4 13.3 13.6 211.6
0.325 (0.325 in combinations other than *2.)
R
U \G *3
K,H 0.32 *2
*1. *2.These combinations are handled as exceptions because high-speed processing is adopted in the technique.
*3. When the instruction is executed for a BFM in a special function unit/block for FX3U/FX3UC Series.
B

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
B Instruction Execution Time
B-6 Execution Time on Combination of Applicable Devices and Indexing
- DMOV instruction (32-bit instruction)
D (destination) Without indexing (µs) With indexing (µs)
KnY,KnM,KnS T,C,D R U \G *3 KnY,KnM,KnS T,C,D R U \G *3
KnX,KnY,KnM,KnS 15.5 12.4 13.8 311.1 18.7 17.0 17.1 313.0
T,C,D 12.4 1.48*1 10.7 307.4 17.0 15.2 15.3 310.5
R 13.8 10.7 12.2 308.9 17.1 15.3 15.4 310.6
U \G *3 199.8 195.9 197.4 542.6 201.2 197.3 198.8 544.0
K,H 13.0 1.48*1 11.4 308.0 16.2 14.4 14.5 309.7
OFF
R
0.585 (0.585 in combinations other than *2.)
K,H 1.48 *2
*1. *2.These combinations are handled as exceptions because high-speed processing is adopted in the technique.
*3. When the instruction is executed for a BFM in a special function unit/block for FX3U/FX3UC Series.
Without indexing (µs) With indexing (µs)
KnY,KnM,KnS*1 T,C,D KnY,KnM,KnS T,C,D
KnX,KnY,KnM,KnS*1 2.12 2.2 11.28 9.18
K,H 1.4 1.52 8.88 6.78
*1. When K4 is specified, and the head bit device number is a multiple of 8 (K4M0, K4M8 ...)
- Data comparison instruction (32-bit operation)
Without indexing (µs) With indexing (µs)
KnY,KnM,KnS*1 T,C,D KnY,KnM,KnS T,C,D
KnX,KnY,KnM,KnS*1 2.52 2.76 11.68 9.68
K,H 1.4 1.76 9.28 7.28
*1. When K8 is specified, and the head bit device number is a multiple of 8 (K8M0, K8M8 ...)

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
B Instruction Execution Time
B-6 Execution Time on Combination of Applicable Devices and Indexing
FNC277-FNC279 Data Transfer 3
Standard mode Extension mode
Without indexing (µs) With indexing (µs) Without indexing (µs) With indexing (µs)
T,C,D,R
T,C,D,R
T,C,D,R
FNC280-FNC289 High-Speed Processing 2
KnX,KnY,KnM,KnS*1 2.12 2.2 11.28 9.18 3 3.12 13.12 10.7
T,C,D,R 2.24 2.36 9.78 7.58 3.16 3.24 11.52 9.32
K,H 1.4 1.52 8.88 6.78 2.12 2.24 10.32 8.12
*1. When K4 is specified, and the head bit device number is a multiple of 8 (K4M0, K4M8 ...)
- Data comparison instruction (32-bit operation)
FNC290-FNC299 Extension File Register Control
Standard mode Extension mode
Without indexing (µs) With indexing (µs) Without indexing (µs) With indexing (µs)
T,C,D,R
T,C,D,R
T,C,D,R
FNC300-FNC305 FX 3U -CF-ADP
KnX,KnY,KnM,KnS*1 2.52 2.76 11.68 9.68 3.48 3.68 13.32 11.32
T,C,D,R 2.8 3 10.72 8.28 3.72 3.92 11.92 9.92
K,H 1.4 1.76 9.28 7.28 2.36 2.68 11.12 9.12
*1. When K8 is specified, and the head bit device number is a multiple of 8 (K8M0, K8M8 ...)
Without indexing (µs) With indexing (µs)
KnS T,C,D R U \G *2 KnY,KnM,
KnS T,C,D R U \G *2
KnX,KnY,KnM,KnS 16.2 13.0 14.7 133.1 19.4 17.4 17.6 134.7
T,C,D 13.0 1.22*1 11.3 129.9 17.4 15.4 15.7 132.8
R 14.7 11.3 12.9 131.4 17.6 15.7 16.0 133.1
U \G *2 133.0 129.3 131.4 298.2 134.3 131.0 138.9 299.4
K,H 13.4 1.22*1 11.7 130.2 16.3 14.2 14.5 131.6
*1. These combinations are handled as exceptions because high-speed processing is adopted in the technique.
*2. When the instruction is executed for a BFM in a special extension unit/block for FX3U/FX3UC Series.
- Data comparison instruction (32-bit operation)
Without indexing (µs) With indexing (µs)
KnS T,C,D R U \G *2 KnY,KnM,
KnS T,C,D R U \G *2
KnX,KnY,KnM,KnS 16.4 13.2 14.7 201.1 19.6 17.9 18.0 202.7
T,C,D 13.2 1.48*1 11.6 197.1 17.9 16.1 16.2 200.3
R 14.7 11.6 13.0 198.6 18.0 16.2 16.3 200.4
U \G *2 201.0 197.1 198.6 432.4 202.4 198.5 200.0 433.8
K,H 13.9 1.48*1 12.3 197.8 17.1 15.3 15.4 199.4
*1. These combinations are handled as exceptions because high-speed processing is adopted in the technique.
*2. When the instruction is executed for a BFM in a special extension unit/block for FX3U/FX3UC Series.

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
C Applied Instruction List [by Instruction Type/in Alphabetic Order]
C-1 Applied instructions [by instruction type]
[by Instruction Type/in Alphabetic Order]
Appendix C-1 Applied instructions [by instruction type]
Applied instructions are classified into the following nineteen types:

1 Data transfer instructions 11 Program flow control instructions

3 Comparison instructions 13 Real time clock control instructions
4 Arithmetic operation instructions 14 Pulse output/positioning control instructions
6 Special function instructions 16 Special unit/block control instructions
7 Rotation instructions 17 Extension register/extension file register control instructions
3. Comparison instructions

BCD FNC 18 Conversion to Binary Coded Decimal 264
EBCD FNC118 Floating Point to Scientific Notation Conversion 502
EBIN FNC119 Scientific Notation to Floating Point Conversion 503
RAD FNC136 Floating Point Degrees to Radians Conversion 528
DEG FNC137 Floating Point Radians to Degrees Conversion 530
![Page 951 of the Mitsubishi Electronics MELSEC FX3S user manual — Appendix C: Applied Instruction List [by Instruction Type/in Alphabetic Order]](/cdn/reader/06/06b6c5c8bfa3e981e964d8ed7432322fb86c682a85757d292a29f9cec2d4294a/images/page-951.webp?w=400)
FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
C Applied Instruction List [by Instruction Type/in Alphabetic Order]
C-1 Applied instructions [by instruction type]
![Mitsubishi Electronics MELSEC FX3S — Appendix C: Applied Instruction List [by Instruction Type/in Alphabetic Order] diagram (page 951)](/cdn/reader/06/06b6c5c8bfa3e981e964d8ed7432322fb86c682a85757d292a29f9cec2d4294a/images/fig-951-1.webp)
HSCT FNC280 High-Speed Counter Compare With Data Table 709
POP FNC212 Shift Last Data Read [FILO Control] 645

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
C Applied Instruction List [by Instruction Type/in Alphabetic Order]
C-1 Applied instructions [by instruction type]
11.Program flow control instructions


Mnemonic FNC No. Function Ref. Page
SCL2 FNC269 Scaling 2 (Coordinate by X/Y Data) 680
REF FNC 50 Refresh 339
REFF FNC 51 Refresh and Filter Adjust 343


ESTR FNC116 Floating Point to Character String Conversion 491
EVAL FNC117 Character String to Floating Point Conversion 497

RIGHT FNC204 Extracting Character String Data From the Right 626
LEFT FNC205 Extracting Character String Data from the Left 628


![Page 953 of the Mitsubishi Electronics MELSEC FX3S user manual — Appendix C: Applied Instruction List [by Instruction Type/in Alphabetic Order]](/cdn/reader/06/06b6c5c8bfa3e981e964d8ed7432322fb86c682a85757d292a29f9cec2d4294a/images/page-953.webp?w=400)
FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
C Applied Instruction List [by Instruction Type/in Alphabetic Order]
C-1 Applied instructions [by instruction type]
![Mitsubishi Electronics MELSEC FX3S — Appendix C: Applied Instruction List [by Instruction Type/in Alphabetic Order] diagram (page 953)](/cdn/reader/06/06b6c5c8bfa3e981e964d8ed7432322fb86c682a85757d292a29f9cec2d4294a/images/fig-953-1.webp)
FROM FNC 78 Read From a Special Function Block 448
TO FNC 79 Write To a Special Function Block 453
FLDEL FNC301 File delete / CF card format 744
![Page 954 of the Mitsubishi Electronics MELSEC FX3S user manual — Appendix C-2 Applied instructions [in alphabetical order]](/cdn/reader/06/06b6c5c8bfa3e981e964d8ed7432322fb86c682a85757d292a29f9cec2d4294a/images/page-954.webp?w=400)
FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
C Applied Instruction List [by Instruction Type/in Alphabetic Order]
C-2 Applied instructions [in alphabetical order]
![Mitsubishi Electronics MELSEC FX3S — Appendix C-2 Applied instructions [in alphabetical order] diagram (page 954)](/cdn/reader/06/06b6c5c8bfa3e981e964d8ed7432322fb86c682a85757d292a29f9cec2d4294a/images/fig-954-1.webp)
DEG FNC137 Floating Point Radians to Degrees Conversion 530
EBCD FNC118 Floating Point to Scientific Notation Conversion 502
BCD FNC 18 Conversion to Binary Coded Decimal 264
EBIN FNC119 Scientific Notation to Floating Point Conversion 503
ESTR FNC116 Floating Point to Character String Conversion 491
EVAL FNC117 Character String to Floating Point Conversion 497
![Page 955 of the Mitsubishi Electronics MELSEC FX3S user manual — Appendix C-2 Applied instructions [in alphabetical order]](/cdn/reader/06/06b6c5c8bfa3e981e964d8ed7432322fb86c682a85757d292a29f9cec2d4294a/images/page-955.webp?w=400)
FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
C Applied Instruction List [by Instruction Type/in Alphabetic Order]
C-2 Applied instructions [in alphabetical order]
![Mitsubishi Electronics MELSEC FX3S — Appendix C-2 Applied instructions [in alphabetical order] diagram (page 955)](/cdn/reader/06/06b6c5c8bfa3e981e964d8ed7432322fb86c682a85757d292a29f9cec2d4294a/images/fig-955-1.webp)
FLDEL FNC301 File delete / CF card format 744
LEFT FNC205 Extracting Character String Data from the Left 628
FROM FNC 78 Read From a Special Function Block 448
HSCT FNC280 High-Speed Counter Compare With Data Table 709
![Page 956 of the Mitsubishi Electronics MELSEC FX3S user manual — Appendix C-2 Applied instructions [in alphabetical order]](/cdn/reader/06/06b6c5c8bfa3e981e964d8ed7432322fb86c682a85757d292a29f9cec2d4294a/images/page-956.webp?w=400)
FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
C Applied Instruction List [by Instruction Type/in Alphabetic Order]
C-2 Applied instructions [in alphabetical order]
![Mitsubishi Electronics MELSEC FX3S — Appendix C-2 Applied instructions [in alphabetical order] diagram (page 956)](/cdn/reader/06/06b6c5c8bfa3e981e964d8ed7432322fb86c682a85757d292a29f9cec2d4294a/images/fig-956-1.webp)
![Mitsubishi Electronics MELSEC FX3S — Appendix C-2 Applied instructions [in alphabetical order] diagram (page 956)](/cdn/reader/06/06b6c5c8bfa3e981e964d8ed7432322fb86c682a85757d292a29f9cec2d4294a/images/fig-956-2.webp)
POP FNC212 Shift Last Data Read [FILO Control] 645
RAD FNC136 Floating Point Degrees to Radians Conversion 528
TO FNC 79 Write To a Special Function Block 453
RIGHT FNC204 Extracting Character String Data From the Right 626
SCL2 FNC269 Scaling 2 (Coordinate by X/Y Data) 680

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
The table below shows discontinued models of MELSEC-F Series PLCs and programming tools described in this manual.
Discontinued model Production stop date Repair acceptance period
FX3U-232ADP September 30, 2013 Until September 30, 2020
FX3U-485ADP September 30, 2013 Until September 30, 2020
FX-PCS/WIN(-E) March 31, 2013 -
FX-20P(-E) December 31, 2012 Until December 31, 2019
FX-10DU(-E) December 31, 2012 Until December 31, 2019
FX2N September 30, 2012 Until September 30, 2019
FX2NC September 30, 2012 Until September 30, 2019
FX-10P(-E) June 30, 2008 Until June 30, 2015
FX-20DU June 30, 2008 Until June 30, 2015
FX-232AW September 30, 2004 Until September 30, 2011
FX-232AWC June 30, 2004 Until June 30, 2011
FX-25DU-E September 30, 2002 Until September 30, 2009
D Discontinued models · Applicable Instruction List · Discontinued models

FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
D Discontinued models

Warranty FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
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.
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.
Product supply (including repair parts) is not available after production is discontinued. 2)
Overseas, repairs shall be accepted by Mitsubishi's local overseas FA Center. Note that the repair conditions at each FA Center may differ. 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. [Gratis Warranty Range]
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.
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.
Even within the gratis warranty term, repairs shall be charged for in the following cases. 2)
The specifications given in the catalogs, manuals or technical documents are subject to change without prior notice.
Failure occurring from inappropriate storage or handling, carelessness or negligence by the user. Failure caused by the user's hardware or software design.
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.
Failure caused by unapproved modifications, etc., to the product by the user. b)
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.
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.
Failure that could have been avoided if consumable parts (battery, backlight, fuse, etc.) designated in the instruction manual had been correctly serviced or replaced.
Relay failure or output contact failure caused by usage beyond the specified Life of contact (cycles).
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.
Failure caused by reasons unpredictable by scientific technology standards at time of shipment from Mitsubishi.
Any other failure found not to be the responsibility of Mitsubishi or that admitted not to be so by the user.

Revised History FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition
7/2005 A First Edition
Revision A Revision B
7.12 SET, RST 7.12 PLS, PLF
7.13 NOP 7.13 SET, RST
7.14 END 7.14 NOP
7.15 Number of Instruction Steps and Specified Devices
- 7.16 Number of Instruction Steps and Specified Devices
Appendix A-2 Version Upgrade History Appendix A-2 Peripheral
Products applicability (except programming tools)
Appendix A-2-1 Version check method Appendix A-2-1 Applicable products
Appendix A-2-2 How to look at
- Appendix A-3 Version Upgrade History
- Appendix A-3-1 Version check method
Appendix A-3-2 How to look at
- Appendix A-3-3 Version Upgrade history [FX3U]
- Appendix A-3-4 Version Upgrade history [FX3UC]
- FX3U transistor output compatibility (change the [illegible] from FX3UC to
FX3U)[Section 13.3, Item 13.3.1, Section 13.8, Section 13.9, Section 13.10, Section 15.2, Section 15.3, Section 15.5]

Revised History FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition

Revised History FX3S/FX3G/FX3GC/FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition



FX3S/FX3G/FX3GC/FX3U/FX3UC SERIES PROGRAMMABLE CONTROLLERS
Basic & Applied Instruction Edition
HEAD OFFICE: TOKYO BUILDING, 2-7-3 MARUNOUCHI, CHIYODA-KU, TOKYO 100-8310, JAPAN HIMEJI WORKS: 840, CHIYODA CHO, HIMEJI, JAPAN
MODEL CODE 09R517
Effective Sep. 2013 Specifications are subject to change without notice.
What the fault codes shown on the display mean and how to clear them.
| Code | Meaning | Fix | |
|---|---|---|---|
| X005 | or 50 µs (X006 and X007). | p.130 | |
| X007 | Every time X007 is set to ON, an operation state | p.335 | |
| S1 | This function is supported only in FX3G/FX3GC/FX3U/FX3UC PLCs. | p.468 | |
| S2 | This function is supported only in FX3U/FX3UC PLCs. | p.468 | |
| K0 | None (NULL) | p.745 | |
| K1 | yyyy/mm/dd hh:mm:ss | p.745 | |
| K3 | dd/mm/yyyy hh:mm:ss | p.745 | |
| K4 | dd/mm/yy hh:mm:ss | p.745 | |
| K5 | mm/dd/yyyy hh:mm:ss | p.745 | |
| K6 | mm/dd/yy hh:mm:ss | p.745 | |
| K7 | hh:mm:ss | p.745 | |
| K-1 | Forcibly writes all buffered data to the CompactFlashTM card. | p.754 | |
| B0 | The CompactFlashTM card is not mounted. | p.757 | |
| B1 | The CompactFlashTM card is full. | p.757 | |
| B2 | An error has occurred in the CF-ADP. | p.757 | |
| B3 | CF-ADP H/W error | p.757 | |
| Y003 | Green Y002: Yellow Y001: Red | p.785 | |
| [D]8060 | [D]8060 | p.847 | |
| [D]8061 | [D]8061 | p.847 | |
| [D]8062 | [D]8062 | p.847 | |
| [D]8063*5 | [D]8063*5 | p.847 | |
| [D]8064 | [D]8064 | p.847 | |
| [D]8065 | [D]8065 | p.847 | |
| [D]8066 | [D]8066 | p.847 | |
| [D]8067*6 | [D]8067*6 | p.847 | |
| D 8068 | D 8068 | p.847 | |
| [D]8069*6 | [D]8069*6 | p.847 | |
| [D]8438*4 | [D]8438*4 | p.864 | |
| [D]8439 | [D]8439 | p.864 | |
| [D]8449 | [D]8449 | p.864 | |
| 0000 | No error | p.895 | |
| 3801 | Parity, overrun or framing error | • Ethernet communication, inverter communication, computer link and programming: Ensure the parameters are correctly set according to their applications. • N:N network, parallel link, MODBUS communication, etc.: Check programs according to applications. • Remote maintenance: Ensure modem power is ON and check the settings of the AT commands. • Wiring: Check the communication cables for correct wiring. | p.895 |
| 3802 | Communication character error | p.895 | |
| 3803 | Communication data sum check error | p.895 | |
| 3804 | Communication data format error | p.895 | |
| 3805 | Command error | p.895 | |
| 3806 | Communication time-out detected | p.895 | |
| 3807 | Modem initialization error | p.895 | |
| 3808 | N:N network parameter error | p.895 | |
| 3809 | N:N Network setting error | p.895 | |
| 3812 | Parallel link character error | p.895 | |
| 3813 | Parallel link sum error | p.895 | |
| 3814 | Parallel link format error | p.895 | |
| 3820 | Inverter communication error | p.895 | |
| 3821 | MODBUS communication error | p.895 | |
| 3830 | Memory access error | When the memory cassette is used, check whether it is mounted correctly. If the problem persists or if the memory cassette is not used, something may be malfunctioning inside the PLC. Consult your local Mitsubishi Electric representative. | p.895 |
| 3840 | Special adapter connection error | Check connection of the special adapter. | p.895 |
| 6101 | Memory access error | When the memory cassette is used, check whether it is mounted correctly. If the problem persists or if the memory cassette is not used, something may be malfunctioning inside the PLC. Consult your local Mitsubishi Electric representative. | p.895 |
| 6102 | Operation circuit error | Isolate the PLC and supply power to it using a different power supply. If the ERROR(ERR) LED turns OFF, noise may be affecting the PLC. Take the following measures. - Check the ground wiring, and reexamine the wiring route and installation location. - Fit a noise filter onto the power supply line. If the ERROR(ERR) LED does not turn OFF even after the above actions are taken, consult your local Mitsubishi Electric representative. | p.895 |
| 6103 | I/O bus error (M8069 = ON) | Verify that extension cables are correctly connected. | p.896 |
| 6104 | Powered extension unit 24 V failure (M8069 = ON) | p.896 | |
| 6105 | Watchdog timer error | Confirm user program. The scan time exceeds the value stored in D8000. | p.896 |
| 6106 | I/O table creation error (CPU error) | • When turning the power ON to the main unit, a 24V power failure occurs in a powered extension unit. (The error occurs if the 24V power is not supplied for 10 seconds or more after main power turns ON.) • When turning main power ON, I/O assignment to CC- Link/LT (built into the FX3UC-32MT-LT(-2) PLC) is disabled. | p.896 |
| 6107 | System configuration error | Check the number of connected special function units/ blocks. Some special function units/blocks have a connection number limit. | p.896 |
| 6112 | Changed settings for the built-in CC-Link/LT special function block cannot be written to the attached flash memory cassette. | Verify that the memory cassette is installed correctly. | p.896 |
| 6113 | Changed settings for the built-in CC-Link/LT special function block cannot be written to the attached write- protected flash memory cassette. | Set the protect switch to OFF. | p.896 |
| 6114 | CC-Link/LT settings cannot be written to the built-in CC- Link/LT special function block. | Set the configuration again. If the problem persists, something may be malfunctioning inside the PLC. Consult your local Mitsubishi Electric representative. | p.896 |
| 6115 | A built-in CC-Link/LT special function block EEPROM writing time-out error occurred, or the built-in CC-Link/LT special function block configuration could not be completed normally in self CONFIG mode. | p.896 | |
| 6201 | Parity, overrun or framing error | Confirm the cable connection between the programming panel (PP)/programming device and the PLC. This error may occur when a cable is disconnected and reconnected during PLC monitoring. | p.896 |
| 6202 | Communication character error | p.896 | |
| 6203 | Communication data sum check error | p.896 | |
| 6204 | Data format error | p.896 | |
| 6205 | Command error | p.896 | |
| 6230 | Memory access error | When the memory cassette is used, check whether it is mounted correctly. If the problem persists or if the memory cassette is not used, something may be malfunctioning inside the PLC. Consult your local Mitsubishi Electric representative. | p.896 |
| 6301 | Parity, overrun or framing error | • Ethernet communication, inverter communication, computer link and programming: Ensure the parameters are correctly set according to their applications. • N:N network, parallel link, MODBUS communication, etc.: Check programs according to applications. • Remote maintenance: Ensure modem power is ON and check the settings of the AT commands. • Wiring: Check the communication cables for correct wiring. | p.897 |
| 6302 | Communication character error | p.897 | |
| 6303 | Communication data sum check error | p.897 | |
| 6304 | Communication data format error | p.897 | |
| 6305 | Command error | p.897 | |
| 6306 | Communication time-out detected | p.897 | |
| 6307 | Modem initialization error | p.897 | |
| 6308 | N:N network parameter error | p.897 | |
| 6309 | N:N Network setting error | p.897 | |
| 6312 | Parallel link character error | p.897 | |
| 6313 | Parallel link sum error | p.897 | |
| 6314 | Parallel link format error | p.897 | |
| 6320 | Inverter communication error | p.897 | |
| 6321 | MODBUS communication error | p.897 | |
| 6330 | Memory access error | When the memory cassette is used, check whether it is mounted correctly. If the problem persists or if the memory cassette is not used, something may be malfunctioning inside the PLC. Consult your local Mitsubishi Electric representative. | p.897 |
| 6340 | Special adapter connection error | Check connection of the special adapter. | p.897 |
| 6401 | Program sum check error | • STOP the PLC, and correctly set the parameters. • Check that the following functions are not used with an unsupported PLC version when a memory cassette is attached: - Permanent PLC lock (supported in FX3U/FX3UC PLCs Ver. 2.61 or later) - Read-protect the execution program for block passwords (supported in FX3U/FX3UC PLCs Ver. 3.00 or later) - FX3U-FLROM-1M (supported in FX3U/FX3UC PLCs Ver. 3.00 or later) | p.897 |
| 6402 | Memory capacity setting error | p.897 | |
| 6403 | Latched device area setting error | p.897 | |
| 6404 | Comment area setting error | p.897 | |
| 6405 | File register area setting error | p.897 | |
| 6406 | Special unit (BFM) initial value setting, positioning instruction setting sum check error | p.897 | |
| 6407 | Special unit (BFM) initial value setting, positioning instruction setting error | p.897 | |
| 6409 | Other setting error | p.897 | |
| 6411 | Built-in CC-Link/LT special function block invalid parameter settings (LT-2 dedicated area). | • STOP the PLC, and correctly set the parameters. • Set parameters correctly, turn OFF the power, and then turn ON the power. | p.897 |
| 6412 | Built-in CC-Link/LT special function block parameter settings sum check error (special function settings area). | p.897 | |
| 6413 | Built-in CC-Link/LT special function block parameter settings sum check error (LT-2 dedicated area). | p.897 | |
| 6420 | Special parameter sum check error | • STOP the PLC, and correctly set the parameters. • Set special parameters correctly, turn OFF the power, and then turn ON the power. | p.897 |
| 6421 | Special parameters setting error | • Check the contents of the special parameter error code (D8489), confirm troubleshooting for special adapters/special blocks, and set special parameters correctly. • Set special parameters correctly, turn OFF the power, and then turn ON the power. | p.897 |
| 6501 | Incorrect combination of instruction, device symbol and device number | During programming, each instruction is checked. If a syntax error is detected, modify the instruction correctly. | p.898 |
| 6502 | No OUT T or OUT C before setting value | p.898 | |
| 6503 | • No setting value after OUT T or OUT C • Insufficient number of operands for an applied instruction | p.898 | |
| 6504 | • Same label number is used more than once. • Same interrupt input or high-speed counter input is used more than once. | p.898 | |
| 6505 | Device number is out of allowable range. | p.898 | |
| 6506 | Invalid instruction | p.898 | |
| 6507 | Invalid label number [P] | p.898 | |
| 6508 | Invalid interrupt input [I] | p.898 | |
| 6509 | Other error | p.898 | |
| 6510 | MC nesting number error | p.898 | |
| 6610 | LD, LDI is continuously used 9 times or more. | This error occurs when a combination of instructions is incorrect in the entire circuit block or when the relationship between a pair of instructions is incorrect. Modify the instructions in the program mode so that their mutual relationship becomes correct. | p.898 |
| 6611 | More ANB/ORB instructions than LD/LDI instructions | p.898 | |
| 6612 | Less ANB/ORB instructions than LD/LDI instructions | p.898 | |
| 6613 | MPS is continuously used 12 times or more. | p.898 | |
| 6614 | No MPS instruction | p.898 | |
| 6615 | No MPP instruction | p.898 | |
| 6616 | No coil between MPS, MRD and MPP, or incorrect combination | p.898 | |
| 6617 | Instruction below is not connected to bus line: STL, RET, MCR, P, I, DI, EI, FOR, NEXT, SRET, IRET, FEND or END | p.898 | |
| 6618 | STL, MC or MCR can only be used in main program, but it is used elsewhere (e.g. in interrupt routine or subroutine). | p.898 | |
| 6619 | Invalid instruction is used in FOR-NEXT loop: STL, RET, MC, MCR, I (interrupt pointer) or IRET. | p.898 | |
| 6620 | FOR-NEXT instruction nesting level exceeded | p.898 | |
| 6621 | Numbers of FOR and NEXT instructions do not match. | p.898 | |
| 6622 | No NEXT instruction | p.898 | |
| 6623 | No MC instruction | p.898 | |
| 6624 | No MCR instruction | p.898 | |
| 6625 | STL instruction is continuously used 9 times or more. | p.898 | |
| 6626 | Invalid instruction is programmed within STL-RET loop: MC, MCR, I (interrupt pointer), SRET or IRET. | p.898 | |
| 6627 | No STL instruction | p.898 | |
| 6628 | Invalid instruction is used in main program: I (interrupt pointer), SRET or IRET | p.898 | |
| 6629 | No P or I (interrupt pointer) | p.898 | |
| 6630 | No SRET or IRET instruction STL-RET / MC-MCR instructions programmed in the subroutine. | p.898 | |
| 6631 | SRET programmed in invalid location | p.898 | |
| 6632 | FEND programmed in invalid location | p.898 | |
| 6701 | • No jump destination (pointer) for CJ or CALL instruction • Label is undefined or out of P0 to P4095 due to indexing • Label P63 is executed in CALL instruction; cannot be used in CALL instruction as P63 is for jumping to END instruction. | This error occurs in the execution of operation. Review the program and check the contents of the operands used in applied instructions. Even if the syntax or circuit design is correct, an operation error may still occur. For example: "T500Z" itself is not an error. But if Z had a value of 100, the timer T600 would be attempted to be accessed. This would cause an operation error since there is no T600 device available. | p.899 |
| 6702 | CALL instruction nesting level is 6 or more | p.899 | |
| 6703 | Interrupt nesting level is 3 or more | p.899 | |
| 6704 | FOR-NEXT instruction nesting level is 6 or more. | p.899 | |
| 6705 | Operand of applied instruction is inapplicable device. | p.899 | |
| 6706 | Device number range or data value for operand of applied instruction exceeds limit. | p.899 | |
| 6707 | File register is accessed without parameter setting of file register. | p.899 | |
| 6708 | FROM/TO instruction error | This error occurs in the execution of operation. • Review the program and check the contents of the operands used in applied instructions. • Verify that the specified buffer memories exist in the counterpart equipment. • Verify that extension cables are correctly connected. | p.899 |
| 6709 | Other (e.g. improper branching) | This error occurs in the execution of operation. Review the program and check the contents of the operands used in applied instructions. Even if the syntax or circuit design is correct, an operation error may still occur. For example: "T500Z" itself is not an error. But if Z had a value of 100, the timer T600 would be attempted to be accessed. This would cause an operation error since there is no T600 device available. | p.899 |
| 6710 | Mismatch among parameters | This error occurs when the same device is used within the source and destination in a shift instruction, etc. | p.899 |
| 6730 | Incorrect sampling time (TS) (TS ≤ 0) | <PID instruction is stopped.> This error occurs in the parameter setting value or operation data executing PID instruction. Check the contents of the parameters. | p.899 |
| 6732 | Incompatible input filter constant (α) (α < 0 or 100 ≤ α) | p.899 | |
| 6733 | Incompatible proportional gain (KP) (KP < 0) | p.899 | |
| 6734 | Incompatible integral time (TI) (TI < 0) | p.899 | |
| 6735 | Incompatible derivative gain (KD) (KD < 0 or 201 ≤ KD) | p.899 | |
| 6736 | Incompatible derivative time (TD) (TD < 0) | p.899 | |
| 6740 | Sampling time (TS) ≤ Scan time | <Auto tuning is continued.> The operation is continued in the condition "sampling time (TS) = cyclic time (scan time)". | p.899 |
| 6742 | Variation of measured value exceeds limit. (UPV < −32768 or +32767 < UPV) | <PID operation is continued.> The operation is continued with each parameter set to the maximum and minimum value. | p.899 |
| 6743 | Deviation exceeds limit. (EV < −32768 or +32767 < EV) | p.899 | |
| 6744 | Integral result exceeds limit. (Outside range from −32768 to +32767) | p.899 | |
| 6745 | Derivative value exceeds limit due to derivative gain (KD). | p.899 | |
| 6746 | Derivative result exceeds limit. (Outside range from −32768 to +32767) | p.899 | |
| 6747 | PID operation result exceeds limit. (Outside range from −32768 to +32767) | p.899 | |
| 6748 | PID output upper limit set value < PID output lower limit set value. | <Transpose of output upper limit value and output lower limit value. → PID operation is continued.> Verify that the target setting contents are correct. | p.900 |
| 6749 | Abnormal PID input variation alarm set value or output variation alarm set value (Set value < 0) | <Alarm output is not given. → PID operation is continued.> Verify that the target setting contents are correct. | p.900 |
| 6750 | <Step response method> Improper auto tuning result | <Auto tuning is finished. → PID operation is started.> • The deviation at start of auto tuning is 150 or less. • The deviation at end of auto tuning is 1/3 or more of the deviation at start of auto tuning. Check the measured value and target value, and then execute auto tuning again. | p.900 |
| 6751 | <Step response method> Auto tuning operation direction mismatch | <Auto tuning is forcibly finished. → PID operation is not started.> The operation direction estimated from the measured value at the start of auto tuning was different from the actual operation direction of the output during auto tuning. Correct the relationship among the target value, output value for auto tuning, and the measured value, and then execute auto tuning again. | p.900 |
| 6752 | <Step response method> Improper auto tuning operation | <Auto tuning is finished. → PID operation is not started.> Because the set value was fluctuated during auto tuning, auto tuning was not executed correctly. Set the sampling time to a value larger than the output change cycle, or set a larger value for the input filter constant. After changing the setting, execute auto tuning again. | p.900 |
| 6753 | <Limit cycle method> Abnormal output set value for auto tuning [ULV (upper limit) ≤ LLV (lower limit)] | <Auto tuning is forcibly finished. → PID operation is not started.> Verify that the target setting contents are correct. | p.900 |
| 6754 | <Limit cycle method> Abnormal PV threshold (hysteresis) set value for auto tuning (SHPV < 0) | p.900 | |
| 6755 | <Limit cycle method> Abnormal auto tuning transfer status (Data of device controlling transfer status is abnormally overwritten.) | <Auto tuning is forcibly finished. → PID operation is not started.> Ensure that devices occupied by PID instruction are not overwritten in the program. | p.900 |
| 6756 | <Limit cycle method> Abnormal result due to excessive auto tuning measurement time (τon > τ, τon < 0, τ < 0) | <Auto tuning is forcibly finished. → PID operation is not started.> The auto tuning time is longer than necessary. Increase the difference (ULV - LLV) between the upper limit and lower limit of the output value for auto tuning, set a smaller value to the input filter constant (α), or set a smaller value to the PV threshold (SHPV) for auto tuning, and then check the result for improvement. | p.900 |
| 6757 | <Limit cycle method> Auto tuning result exceeds proportional gain. (KP= outside range from 0 to 32767) | <Auto tuning is finished (KP = 32767). → PID operation is started.> The variation of the measured value (PV) is small compared with the output value. Multiply the measured value (PV) by "10" so that the variation of the measured value will increase during auto tuning. | p.900 |
| 6758 | <Limit cycle method> Auto tuning result exceeds integral time. (TI = outside range from 0 to 32767) | <Auto tuning is finished (KP = 32767). → PID operation is started.> The auto tuning time is longer than necessary. Increase the difference (ULV - LLV) between the upper limit and lower limit of the output value for auto tuning, set a smaller value to the input filter constant (α), or set a smaller value to the PV threshold (SHPV) for auto tuning, and then check the result for improvement. | p.900 |
| 6759 | <Limit cycle method> Auto tuning result exceeds derivative time. (TD = outside range from 0 to 32767) | p.900 | |
| 6760 | ABS data read from servo sum check error | Check servo wiring and parameter setting. Also check the ABS instruction. | p.900 |
| 6762 | Port specified by inverter communication instruction is already used in another communication. | Check to make sure the port is not specified by another instruction. | p.901 |
| 6763 | 1) Input (X) specified by a DSZR, DVIT or ZRN instruction is already used in another instruction. 2) The interrupt signal device for a DVIT instruction is outside the allowable setting range. | 1) Check to make sure the input (X), as specified by a DSZR, DVIT or ZRN instruction, is not being used for the following purposes: - Input interrupt (including the delay function) - High-speed counter C235 to C255 - Pulse catch M8170 to M8177 - SPD instruction 2) Check the contents of D8336 for the correct interrupt signal specification for a DVIT instruction. | p.901 |
| 6764 | Pulse output number is already used in a positioning instruction or pulse output instruction (PLSY, PWM, etc.). | Check to make sure the pulse output destination is not being driven by another positioning instruction. | p.901 |
| 6765 | Number of applied instruction exceeds limit. | Verify that the number of times that applied instructions are used in the program does not exceed the specified limit. | p.901 |
| 6770 | Memory access error | When the memory cassette is used, check whether it is mounted correctly. If the problem persists or if the memory cassette is not used, something may be malfunctioning inside the PLC. Consult your local Mitsubishi Electric representative. | p.901 |
| 6771 | Memory cassette is not connected. | Check for the correct attachment of the memory cassette. | p.901 |
| 6772 | Memory cassette is protected against writing. | The write-protect switch of the memory cassette was set to ON when data was transferred to the flash memory. Set the protect switch to OFF. | p.901 |
| 6773 | Access error to memory cassette during writing in RUN mode | While data was written in the RUN mode, data was transferred to (read from or written to) the memory cassette. | p.901 |
| 8702 | Communication character error | Confirm the cable connection between the programming device and the PLC. This error may occur when a cable is disconnected and reconnected during PLC monitoring. | p.901 |
| 8703 | Communication data sum check error | p.901 | |
| 8704 | Data format error | p.901 | |
| 8705 | Command error | p.901 | |
| 8730 | Memory access error | When the memory cassette is used, check whether it is mounted correctly. If the problem persists or if the memory cassette is not used, something may be malfunctioning inside the PLC. Consult your local Mitsubishi Electric representative. | p.901 |
| 020*1 | General data sum error | Verify that extension cables are correctly connected. | p.901 |
| 021*1 | General data message error | p.901 | |
| 022*1 | System access error | p.901 | |
| 025*1 | Access sum error in other station via CC-Link | p.901 | |
| 026*1 | Message error in other station via CC-Link | p.901 | |
| 030*1 | Memory access error | When the memory cassette is used, check whether it is mounted correctly. If the problem persists or if the memory cassette is not used, something may be malfunctioning inside the PLC. Consult your local Mitsubishi Electric representative. | p.901 |
| 080*1 | FROM/TO error | This error occurs in the execution of operation. • Review the program and check the contents of the operands used in applied instructions. • Verify that specified buffer memories exist in the counterpart equipment. • Verify that extension cables are correctly connected. | p.901 |
| 090*1 | Peripheral equipment access error | • Check the cable connection between the programming panel (PP) / programming device and the PLC. • Verify that extension cables are correctly connected. | p.901 |
| 01*1 | Special parameter setting time-out error | Turn OFF the power, and check the power supply and connection of special adapters/special blocks. | p.902 |
| 02*1 | Special parameter setting error | Special parameters are set improperly. • Confirm troubleshooting for special adapters/special blocks, and set special parameters correctly. • Set special parameters correctly, turn OFF the power, and then turn ON the power. | p.902 |
| 03*1 | Special parameter transfer target unconnected error | Special parameters are set, but special adapters/special blocks are not connected. Check whether special adapters/special blocks are connected. | p.902 |
| 04*1 | Special parameter unsupported function | Check that special parameters with unsupported settings are not set for connected special adapters/special blocks. | p.902 |
| b7 | Unit 7 access error | p.902 | |
| b8 to b15 | Not available | p.902 |
Owners and our team usually reply within a day — and your question helps the next person too.
Be the first to ask — other owners or our team will answer.