SAFETY PRECAUTIONS (Read these precautions before use.) Before using this product, please read this manual and the relevant manuals introduced in this manual carefully and pay full attention to safety in order to handle the product correctly. This manual classifies the safety precautions into two categories: [ WARNING] and [ CAUTION].
Page 4
[DESIGN PRECAUTIONS] CAUTION ● When an inductive load such as a lamp, heater, or solenoid valve is controlled, a large current (approximately ten times greater than normal) may flow when the output is turned from off to on. Take proper measures so that the flowing current does not exceed the value corresponding to the maximum load specification of the resistance load.
Page 5
[INSTALLATION PRECAUTIONS] CAUTION ● Do not touch the conductive parts of the product directly. Doing so may cause device failures or malfunctions. ● When drilling screw holes or wiring, make sure that cutting and wiring debris do not enter the ventilation slits of the PLC.
Page 6
[WIRING PRECAUTIONS] WARNING ● Make sure to cut off all phases of the power supply externally before attempting installation or wiring work. Failure to do so may cause electric shock or damage to the product. ● Make sure to attach the terminal cover, provided as an accessory, before turning on the power or initiating operation after installation or wiring work.
Page 7
[WIRING PRECAUTIONS] CAUTION ● Do not supply power externally to the [24+] and [24V] terminals (24VDC service power supply) on the CPU module or extension modules. Doing so may cause damage to the product. Note that power may be supplied even when an electronic load which equips with an internal bias power supply is connected.
Page 8
● Do not disassemble or modify the PLC. Doing so may cause fire, equipment failures, or malfunctions. For repair, contact your local Mitsubishi Electric representative. ● Turn off the power to the PLC before connecting or disconnecting any extension cable. Failure to do so may cause equipment failures or malfunctions.
Page 9
[DISPOSAL PRECAUTIONS] CAUTION ● Please contact a certified electronic waste disposal company for the environmentally safe recycling and disposal of your device. ● When disposing of batteries, separate them from other waste according to local regulations. (For details of the Battery Directive in EU countries, refer to the MELSEC iQ-F FX5S/FX5UJ/FX5U/FX5UC User's Manual (Hardware).) [TRANSPORTATION PRECAUTIONS] CAUTION...
• Since the examples indicated by this manual, technical bulletin, catalog, etc. are used as a reference, please use it after confirming the function and safety of the equipment and system. Mitsubishi Electric will accept no responsibility for actual use of the product based on these illustrative examples.
Page 12
Link relay (B) ................56 Annunciator (F) .
Page 13
CHAPTER 7 DEVICE/LABEL ACCESS SERVICE PROCESSING SETTING PART 2 CPU MODULE BUILT-IN FUNCTIONS CHAPTER 8 FUNCTION LIST CHAPTER 9 FIRMWARE UPDATE FUNCTION Update Using an SD Memory Card ............92 CPU module firmware update .
Page 14
14.4 Relationship Between Remote Operation and CPU Module ........128 CHAPTER 15 LATCH FUNCTION 15.1 Types of Latch .
Page 15
Trigger condition ............... . 174 Data logging file.
Page 16
CHAPTER 25 HIGH-SPEED INPUT/OUTPUT FUNCTION 25.1 High-speed Counter Function ............233 High-speed counter function overview .
Page 17
Outline of general-purpose input functions ........... . 325 Specifications of general-purpose inputs.
Describes the communication function of the CPU module built-in and the <SH-082625ENG> Ethernet module. MELSEC iQ-F FX5 User's Manual (Analog Control - CPU module built-in, Describes the analog function of the CPU module built-in and the analog Expansion adapter) adapter.
GENERIC TERMS AND ABBREVIATIONS Unless otherwise specified, this manual uses the following generic terms and abbreviations. Generic term/abbreviation Description Analog adapter Generic term for FX5-4AD-ADP, FX5-4DA-ADP, FX5-4AD-PT-ADP, FX5-4AD-TC-ADP, and FX5-4A-ADP Battery Generic term for FX3U-32BL Bus conversion module Generic term for Bus conversion module (extension cable type) and Bus conversion module (extension connector type) Communication adapter Generic term for FX5-232ADP and FX5-485ADP...
PART 1 PROGRAMMING This part consists of the following chapters. 1 PROGRAM EXECUTION 2 PROCESSING OF OPERATIONS ACCORDING TO CPU MODULE OPERATION STATUS 3 CPU MODULE MEMORY CONFIGURATION 4 DEVICES 5 LABELS 6 CAPACITY SETTING OF EACH AREA IN DEVICE/LABEL MEMORY 7 DEVICE/LABEL ACCESS SERVICE PROCESSING SETTING...
PROGRAM EXECUTION Scan Configuration The configuration of the scan of the CPU module is explained below. Inside the CPU module Scan configuration Initial processing/RUN time initialization processing I/O refresh Program operations END processing Initial processing and initialization processing in RUN mode Initial processing according to CPU module status and initialization processing in the RUN status are explained below.
I/O refresh Execute I/O refresh before starting program operations. • Input ON/OFF data input from input module/intelligent function module to CPU module • Output ON/OFF data input from CPU module to output module/intelligent function module When executing constant scan, I/O refresh is executed after the constant scan waiting time ends. Program operations Step 0 of each program up to the END/FEND instruction is executed according to program settings.
Scan Time The CPU module repeats the following processing. The scan time is the sum total of each process and execution time. RUN time RUN time initialization processing*1 I/O refresh Program operations Scan time END processing *1 This process is included in the initial scan time. Initial scan time This refers to the initial scan time when the CPU module is in the RUN mode.
Program Execution Sequence When the CPU module enters the RUN status, the programs are executed successively according to the execution type of the programs and execution order setting. STOP/PAUSE→RUN Does an initial Exists execution type program exist? Does not exist Standby type Initial execution program...
Execution Type of Program Set the program execution conditions. Initial execution type program This program type is executed only once when the CPU module changes from the STOP/PAUSE to the RUN status. This program type is used for programs, that do not need to be executed from the next scan once they are executed, like initial processing on an intelligent function module.
Scan execution type program This program type is executed only once per scan from the scan following the scan where an initial execution type program was executed. STOP/PAUSE→RUN 1st scan 2nd scan 3rd scan 4th scan END processing Initial execution type program Scan execution type program A Scan execution type program B Scan execution type program C...
Page 32
Make the following settings for fixed scan execution type program in CPU parameter. • Interrupt pointer setting (Interrupt from internal timer: I28 to I31) • Fixed scan interval setting Interrupt pointer setting The interrupt pointer (Interrupt from internal timer: I28 to I31) assigned to a fixed scan execution type program is set up. Navigation window ...
Page 33
Action when the execution condition is satisfied Performs the following action. ■If the execution condition is satisfied before the interrupt is enabled by the EI instruction The program enters the waiting status and is executed when the interrupt is enabled. Note that if the execution condition for this fixed scan execution type program is satisfied more than once during the waiting status, the program is executed only once when the interrupt is enabled.
Page 34
Processing when the fixed scan execution type program starts The same processing as when the interrupt program starts. (Page 44 Processing at startup of interrupt program) Fixed scan execution mode If execution condition for a fixed scan execution type program and fixed cycle interrupt (I28 to I31) based on the internal timer of the CPU module is satisfied while interruption is disabled, the operation of the program execution after interruption becomes allowed is specified.
Page 35
■Fixed scan execution mode setting Use the fixed scan execution mode setting. Navigation window [Parameter] [Module model name] [CPU Parameter] "Interrupt Settings" "Fixed Scan Execution Mode Setting" Window Displayed items Item Description Setting range Default Fixed Scan Execution For Precede Fixed Scan, the periodicity of the program is maintained.
Event execution type program Execution of this program type is triggered by a user-specified event. (Page 34 Trigger type) STOP/PAUSE→RUN 1st scan 2nd scan 3rd scan 4th scan 5th scan Execution order I60 interrupt occurs Scan execution type program A Scan execution type program B Event execution type program C (Executed when Y50 turns ON)
Page 37
■Bit data ON (TRUE) When it is the turn of the corresponding program to be executed, the program is executed if the specified bit data is ON. This eliminates the need for creating a program for monitoring triggers in a separate program. After the specified bit data changes from ON (TRUE) to OFF (FALSE) and it is the turn of the corresponding event execution type program to be executed, output (Y) currently used in the corresponding program and the current values of timer (T) can be cleared.
Page 38
Trigger setting Use the event execution type detail setting. Navigation window [Parameter] [Module model name] [CPU Parameter] "Program Setting" Operating procedure Click "Detailed Setting" on the Program Setting. "Program Setting" window Select the program name and set the execution type "Detailed Setting"...
Stand-by type program This program is executed only when there is an execution request. Saving programs in library Subroutine programs or interrupt programs are saved as standby type programs so that they can be used when controlled separately from the main routine program. Multiple subroutine programs and interrupt programs can be created in one standby type program.
Program Type Programs that use pointers (P) or interrupt pointers (I) are explained below. Subroutine program This is the program from pointer (P) up to the RET instruction. Subroutine programs are executed only when they are called by the CALL instruction. Pointer type labels also can be used instead of pointers (P). The applications of subroutine programs are as follows: •...
Interrupt program This is the program from interrupt pointer (I) up to the IRET instruction. Main routine program Indicates the end of the main routine program. FEND I0 interrupt program IRET I29 interrupt program IRET Interrupt pointer When an interrupt is generated, the interrupt program corresponding to that interrupt pointer number is executed. Note, however, that interrupt enabled status must be set with the EI instruction before executing the interrupt program.
Page 42
Operation when an interrupt is generated Operation when an interrupt is generated is explained below. ■If an interrupt cause occurs when interrupt is disabled (DI) The interrupt that was generated is stored, and the stored interrupt program is executed the moment that the status changes to interrupt enabled.
Page 43
■When multiple interrupts are generated at the same time while in an interrupt enabled status Interrupt programs are executed in order starting from program having the highest priority. Interrupt programs also run in order of priority rank when multiple interrupt programs having the same priority are generated simultaneously. Simultaneous occurrence of multiple interrupt factors Enable Interrupt (EI)
Page 44
■If an interrupt cause with the same or a lower priority occurs while the interrupt program is being executed • For I0 to I23 and I50 to I177 The interrupt cause that occurred is memorized, and the interrupt program corresponding to the cause will be executed after the running interrupt program finishes.
Page 45
■If the same interrupt cause occurs while the interrupt program is being executed • For I0 to I23 and I50 to I177 The interrupt cause that occurred is memorized, and the interrupt program corresponding to the cause will be executed after the running interrupt program finishes.
Page 46
Setting the interrupt cycle Set the interrupt cycle of interrupts I28 to I31 using the internal timer of the interrupt pointer. Navigation window [Parameter] [Module model name] [CPU Parameter] "Interrupt Settings" "Fixed Scan Interval Setting" Window Displayed items Item...
PROCESSING OF OPERATIONS ACCORDING TO CPU MODULE OPERATION STATUS The CPU module has three operation statuses as follows: • RUN status • STOP status • Paused Processing of operations on the CPU module in each status is explained below. Processing of operations in RUN status In the RUN mode, operations in the sequence program are executed repeatedly in order step 0END (FEND) instructionstep 0.
Page 48
Processing of operations by the CPU module during switch operations Processing of operations by the CPU module is as follows according to the RUN or STOP mode. RUN/STOP status Processing of operations by CPU module Processing of operations External output Device memory in sequence program Other than Y...
CPU MODULE MEMORY CONFIGURATION Memory Configuration CPU module memory is explained below. Memory configuration The configuration of CPU module memory is explained below. Memory type Application CPU built-in memory Data memory The following files are stored in this memory: • Program files, FB files •...
Page 50
• For a macro type function block, the same number of areas as the number of steps of the macro type function block are assigned to the signal flow memory (for program). For instances of the function block, refer to the following. MELSEC iQ-F FX5 Programming Manual (Program Design) The signal flow unit is 1 bit. [FX5S/FX5UJ CPU module] The program capacity is fixed at 48000 steps, and the capacity of the signal flow memory is as follows.
Page 51
Temporary area This area is used temporarily by the system during the scan process. It is used as the label defined by the function or the instruction operand added by the system. Part of the temporary area is occupied when execution of the function or instruction is started. The area is released when the execution is completed.
SD memory card The following files are stored in SD memory card. Category File type Max. number of files Remarks Program Program file FB files 16 (Up to 15 for user) Parameters Parameter files common to system ...
Files The CPU module files are explained below. File type and storage destination memory File types and their storage destination memory are explained below. : Can be stored, : Cannot be stored File type CPU built-in memory SD memory card File name (extension) Data memory Drive No.4...
Executable file operations File operations that can be executed on each file are explained below. This operation is possible only when the operation status of the CPU module is the STOP status. : Can be executed, : No corresponding operation File type Operation with engineering tool Operation with FTP server...
Memory Operation Initialization and value clear Each memory can be initialized and cleared to zero by using the engineering tool. For details on the operation method, refer to the following. GX Works3 Operating Manual Items to be specified in the engineering tool Target Initialization Data memory...
DEVICES This chapter explains devices. List of Devices A list of devices is provided below. Division Type Device name Symbol Notation User device Input Octal Output Octal Internal relay Decimal Latch relay Decimal Link relay Hexadecimal Annunciator Decimal Link special relay Hexadecimal Step relay Decimal...
User Devices This section explains user devices. Input (X) Provides the CPU module with commands and data by external devices such as push buttons, selector switches, limit switches, digital switches, etc. Push-button switch CPU module Selector switch Input (X) Digital switch Concept of input You can think each input point as having a virtual relay Xn built into a single CPU module.
Internal relay (M) Device intended to be used as an auxiliary relay inside the CPU module. All internal relays with latch disabled are turned off by the following operation. • CPU module power OFFON • Reset All internal relays are turned OFF by the following operation. •...
Page 59
How to turn annunciator (F) ON Use SET F instruction. The annunciator (F) turns ON only during the rise time of input conditions (OFFON); the annunciator (F) remains ON even if the input condition is OFF. • The annunciator (F) can also be turned ON by OUT F instruction, but because it is processed every scan, scan time is slower than when using SET F...
Device to perform process stepping control. Purposes are as follows. Device which is not used can be used for purposes such as auxiliary relay. • Step ladder (MELSEC iQ-F FX5 Programming Manual (Instructions, Standard Functions/Function Blocks)) • SFC program (MELSEC iQ-F FX5 Programming Manual (Program Design)) - Specifies a step.
Timer (T/ST) Device whereby measurement starts when the timer coil is turned ON, time up occurs when current value reaches the setting value, and the contact is turned ON. The timer is an addition type counter. When time is up, the current value and setting value are the same value.
Page 62
Current value and measurement range of timer ■Timer The current value range is 0 to 32767. Timer processing method The timer's coil is turned ON/OFF, the current value is updated and the contact is turned ON/OFF when timer's coil (OUT T instruction) is executed.
Page 63
Precautions when using timers Precautions when using timers are as follows. • Do not specify the same timer coil (OUT T instruction) more than once per scan. If you do, the current value of the timer is updated when each respective timer coil is executed, so measurement cannot be performed normally. •...
Counter (C/LC) Device that counts number of rises of input conditions in the program. Counters are addition type counters; they count up when the count value matches the setting value, and the contact is turned ON. For FX3-compatible high-speed counters, refer to Page 293 FX3-compatible High-speed Counter Function. Counter type There is counter (C) that maintains the counter value in 16 bits and the long counter (LC) that maintains the counter value in 32 bits.
Page 65
Counter reset Current value of counters is not cleared even if its coil input is turned OFF. To clear (reset) the current value of the counter and turn the contact OFF, use the RST C instruction/RST LC instruction. The counter value is cleared and the contact is turned OFF as soon as the RST C...
Data register (D) Device capable of storing numerical data. Link register (W) Device intended to be used as a CPU side device when refreshing word data between CPU module and network module. Refreshing network module that uses link register (W) Sends/receives data mutually between link registers (LW) in network module and link register (W) in the CPU module.
Module Access Device Device that allows you to directly access the buffer memory of intelligent function modules connected to the CPU module from the CPU module. The FX5S CPU module is not supported. Specification method Specified by U [module number of intelligent function modules]\[buffer memory address]. (Example: U5\G11) Processing speed Processing speed of reading/writing by module access device is faster than using FROM/TO instruction.
Index Register (Z/LZ) Device used for indexing of devices. Types of index registers There are 2 types: the index register (Z) and long index register (LZ) Index register (Z) Used for 16-bit index modification. SM402 K100 D0Z0 Access D0Z0 = D100. Long index register (LZ) Used for 32-bit index modification.
Index register setting A total of 24 words can be used for index register (Z) and long index register (LZ). The FX5S/FX5U/FX5UC CPU modules can change the number of points by parameter. Navigation window [Parameter] [Module model name] [CPU Parameter] "Memory/Device Setting" "Index Register Setting"...
• ERWRITE instruction: Writing (transfer) function of extended file register (ER) • ERINIT instruction: Batch initialization function of extended file register (ER) For each applied instruction, refer to MELSEC iQ-F FX5 Programming Manual (Instructions, Standard Functions/Function Blocks). Extended file register (ER) function is not applicable to the file register (R) stored into the SD memory card by the memory dump function.
Page 71
Function to use the GX Works3 Extended file register (ER) functions that can be used by GX Works3 are shown below. • Data batch reading function • Data batch writing function • Data batch initialization (clearing values) function • Data batch initialization (memory initialization) function For operation of GX Works3, refer to GX Works3 Operating Manual.
Page 72
■Data batch writing function All the value registered to the device memory in the project of GX Works3 (extended file register (ER)) can be written to the extended file register (ER) in the SD memory card in a batch. [Online] [Write to PLC] Window Check the "Extended File Register"...
Page 73
■Data batch initialization (clearing values) function All of the extended file register (ER) in the SD memory card can be cleared from GX Works3 in a batch. [Online] [CPU Memory Operation] Window Switch the screen to the memory operation screen of the SD memory card, select [Clear Value], and the extended file register (ER) in the SD memory card is initialized.
Nesting (N) Device for programming operating conditions by nesting using master control instructions (MC/MCR instruction) . Operation conditions are specified in ascending order (N0 to N14) from outside the nesting. Designated in ascending No. order Executed when condition A is met Executed when condition A and B are met Designated in...
Global pointers Pointer for calling subroutine from all programs being run. Program 1 (program group A) Program 3 (program group C) P1000 CALL P1000 Program 2 (program group B) P1001 CALL P1001 Precautions when using global pointers • A global pointer of the same pointer number cannot be set as a label for more than one location. •...
Interrupt causes of the interrupt pointer numbers A list of interrupts is provided below. Interrupt Interrupt pointer Description number Input interrupt I0 to I15 Interrupt pointer used for input interrupt of CPU module (with/without delay). Up to 8 points can be used. High-speed comparison I16 to I23 Interrupt pointer used for high-speed comparison match interrupt of CPU module.
(continuation start), an option battery is required. SFC transition device (TR) This device is used when specifying SFC program transition conditions. This device can only be used for device comments for transition conditions. (MELSEC iQ-F FX5 Programming Manual (Program Design)) 4.11 Indirect Specification Specify the device using the indirect address of device.
4.12 Constant This section explains constants. Decimal constant (K) Device that specifies decimal data for the program. Specified by K. (e.g. K1234). The specification range is determined by type of argument data of instruction using a decimal constant. Argument data type of instruction Specification range of decimal constants Data size Data type name...
*1 Character string: 00H Unicode character string: 0000H For details on character string data, refer to the following. MELSEC iQ-F FX5 Programming Manual (Instructions, Standard Functions/Function Blocks) 4.13 Initial Device Value Setting Directly sets the initial value of a device used by the program (i.e., not via the program).
Setting initial device values This section describes the settings of initial device values. Setting procedure The procedure for using initial device values is as follows. First, the user must create an initial device value file. To set initial values to a global device, create an initial device value file (with any name) which sets these initial values, and specify the range of the values.
No. *1 Label and device can be used in mixed manner. For details on label, refer to the following. MELSEC iQ-F FX5 Programming Manual (Program Design) 5 LABELS...
CAPACITY SETTING OF EACH AREA IN DEVICE/LABEL MEMORY The capacity of each area in device/label memory can be specified. For FX5UJ CPU module, the setting cannot be changed but the content can be checked. (1) The capacity of each area can be changed. (Page 83 Device/Label Memory Area Setting) (2) The number of points of user devices can be changed.
The Setting Range of the Capacity of Each Area The setting range of the capacity of each area on the device/label memory is as follows. Item Setting range of capacity of each area Device (high speed) Area Capacity 0 to 12 K words ■FX5S CPU module Device (standard) Area Capacity 0 to 48 K words...
Device/Label Memory Area Setting The capacity of each data area allocated within the device/label memory can be changed. Navigation window [Parameter] [Module model name] [CPU Parameter] "Memory/Device Setting" "Detailed Setting" "Device/Label Memory Area Setting" window Operating procedure In "Option Battery Setting", select whether or not "Device/Label Memory Area Setting"...
Device Setting The number of points of each user device can be changed. Navigation window [Parameter] [Module model name] [CPU Parameter] "Memory/Device Setting" "Device/ Label Memory Area Setting" "Device/Label Memory Area Detailed Setting" "Device (high speed) Setting/Device (standard) Setting"...
Range of use of device points The following table lists the range of use of device points to be set in the device setting. Device (high speed) Setting Type Device name Symbol Range of use Increment of setting FX5S/FX5U/FX5UC FX5UJ CPU module FX5S/FX5U/FX5UC FX5UJ CPU module CPU module CPU module...
DEVICE/LABEL ACCESS SERVICE PROCESSING SETTING This is a function to optionally designate the frequency of execution of the service process that is carried out by the END process in the parameter. Improvement of communication response with peripheral equipment and extension of scan time by the service process can be controlled by service process setting function.
Page 89
Operation details of service process The operation details of service process are described below. The following table shows the methods for service process with their respective features. Device/label access Scan performance Service process Device Features service processing setting performance splitting Extension Stability Response...
Page 90
Setting method The device/label access service processing can be configured as follows. Navigation window [Parameter] [Module model name] [CPU Parameter] "Service Processing Setting" "Device/Label Access Service Processing Setting" Window Displayed items Item Description Setting range Default Specifying Method Set the method of device/label access service processing.
PART 2 CPU MODULE BUILT-IN FUNCTIONS This part consists of the following chapters. 8 FUNCTION LIST 9 FIRMWARE UPDATE FUNCTION 10 ONLINE CHANGE 11 INTERRUPT FUNCTION 12 SCAN MONITORING FUNCTION 13 CONSTANT SCAN 14 REMOTE OPERATION 15 LATCH FUNCTION 16 RAS FUNCTIONS 17 CLOCK FUNCTION 18 SECURITY FUNCTIONS 19 DATA LOGGING FUNCTION...
FUNCTION LIST The following table lists the functions of the CPU module. : Supported, : Limitedly supported, : Not supported Function Description Compatible CPU module Reference FX5S FX5UJ FX5U/ FX5UC Program capacity setting Set to change program capacity. Page 50 Initial device value setting Sets the initial values of devices used in the program...
Page 93
IP filter function Identifies the IP address of external devices over MELSEC iQ-F FX5 Ethernet, and blocks access from an invalid IP address. User's Manual (Communication) Built-in Ethernet function An Ethernet related function such as connection to ...
FIRMWARE UPDATE FUNCTION This function is used when the user obtains the firmware update file from the Mitsubishi Electric FA website, and updates the firmware version. The firmware can be updated by the following methods. Method Description Update using an SD memory card The CPU module firmware can be updated only with an SD memory card without using any special tool.
Firmware update method ■Preliminary preparations Download the firmware update information for the model to be updated from the Mitsubishi Electric FA website. Decompress the firmware update information (ZIP file). Store the "$MELPRJ$" containing the firmware update file and Web page update file into the root folder of the SD memory card using a personal computer.
Page 96
■Operation Execute RUNSTOP and turn the CPU module power OFF, and insert the SD memory card into the CPU module. When the CPU module power turns on and the firmware update starts, the CARD LED blinks. When the LEDs do not blink, refer to step 1 of Page 98 Wait until the RUN LED and ERR LED blink.
Page 97
Turn the CPU module power OFF and remove the SD memory card. Delete the firmware update file from the removed SD memory card. *1 The waiting time is as follows. FX5S CPU module: Up to 70 seconds FX5UJ CPU module: Up to 120 seconds ...
Page 98
Firmware update prohibited setting Updating of the firmware can be prohibited by writing the firmware update prohibited file into the CPU module. Using the engineering tool, select the folder containing the firmware update prohibited file (FWUPDP.SYU) as the write target file, and select the CPU built-in memory for the write target. The firmware update prohibited file is stored in the firmware update information downloaded during the preliminary preparations.
Page 99
Canceling the firmware update prohibited setting When executing the firmware update, cancel the prohibit setting with the engineering tool. Delete the file password for the firmware update prohibited file. [Project] [Security] [File Password Setting] Delete the firmware update prohibited file from the CPU built-in memory. [Online] ...
Page 100
• Back up the various data such as the programs and parameters before executing the firmware update. • Check the target model, and download the correct firmware update file from the Mitsubishi Electric FA website. The firmware will not be updated if the target model does not match.
Update Using the Engineering Tool CPU module firmware update The CPU module firmware can be updated by using the engineering tool. This function enables the firmware to be updated without using an SD memory card. CPU module Firmware Engineering tool update file Target models The target models are listed below.
Page 102
The communication routes between the engineering tool supporting the firmware update function and the CPU module are shown below. For details, refer to the following. MELSEC iQ-F FX5 User's Manual (Communication) ■Direct connection to an Ethernet port (1) CPU module (CPU module to be updated)
Page 103
Firmware update method ■Preliminary preparations Download the firmware update information for the model to be updated from the Mitsubishi Electric FA website. Decompress the firmware update information (ZIP file). Store the "$MELPRJ$" folder containing the firmware update file and Web page update file into a desired folder.
Page 104
Select the CPU module whose firmware will be updated. Click [...], and select the firmware update file. The CPU module is automatically reset. To prevent the CPU module from being automatically reset, deselect it. If it is deselected, the module will wait until it is manually reset after the completion of the firmware update. Click [Update] to update the firmware.
Page 105
Page 97 Canceling the firmware update prohibited setting Precautions • Check the target model, and download the correct firmware update file from the Mitsubishi Electric FA website. The firmware will not be updated if the target model does not match.
Updating the firmware for the intelligent function module The intelligent function module firmware can be updated by using the engineering tool. Write the firmware update information from the engineering tool to the CPU module. The firmware of the target module can be updated by the CPU module writing the firmware information to the target module to be updated.
Page 107
Target models The target modules to be updated, and the models and versions compatible with the update writing CPU module are shown below. ■Update writing CPU module The CPU modules that can write the firmware update file to the intelligent function modules via the engineering tool are shown below.
Page 108
The communication routes between the engineering tool supporting the firmware update function and the CPU module are shown below. For details, refer to the following. MELSEC iQ-F FX5 User's Manual (Communication) ■Direct Connection (1) CPU module (Update writing CPU module)
Page 109
Firmware update method ■Preliminary preparations Download the firmware update information for the model to be updated from the Mitsubishi Electric FA website. (Firmware update file: F5mmvvvv.SYF) If updating of the firmware is prohibited, cancel the prohibit setting. (Page 97 Canceling the firmware update...
Page 110
Select the intelligent function module whose firmware will be updated. Click [...], and select the firmware update file. The CPU module is automatically reset. To prevent the CPU module from being automatically reset, deselect it. If it is deselected, the module will wait until it is manually reset after the completion of the firmware update. Click [Update] to update the firmware.
Page 111
Precautions • Check the target model, and download the correct firmware update file from the Mitsubishi Electric FA website. The firmware will not be updated if the target model does not match. • Do not change the data (folder and file name) downloaded from the Mitsubishi Electric FA website.
Page 112
If the CPU module is not compatible, update the CPU module via an SD memory card. The update file cannot be set. Check that the firmware update file downloaded from the Mitsubishi Electric FA website has been selected, and re-execute the update.
GX Works3 Operating Manual online change. Online change (SFC block) Changes, adds, or deletes SFC blocks during online. MELSEC iQ-F FX5 Programming Manual (Program Design) GX Works3 Operating Manual 10.1 Online Ladder Block Change Writes the portion edited on the ladder edit window of the engineering tool to the CPU module in increments of ladders. Edited contents spanning multiple files or multiple portions can be written to the CPU module at once.
Precautions This section describes the precautions on using online ladder block change. Online change to SFC program Online change to the SFC program cannot be performed. However, online change to the other programs which coexist with the SFC program (such as the ladder program) can be performed. Prohibited operation at online ladder block change When an online change of ladder block, if the power is turned OFF or a reset is made, the process does not end normally.
Page 115
The cautions at the time of repeatedly performing online change When online change is performed repeatedly, RUN writing may not be able to be carried out due to insufficient memory in the CPU module. Please set the CPU module to STOP and write the program. The size of the target data at online change When the size of the target data of online change exceeds 192 K bytes, online change fails and an error message is displayed on the engineering tool.
Page 116
The operation when a pulse type instruction is included in the range of an online ladder block change The operation when a pulse related instruction is included in the range of an online ladder block change is as follows. Pulse type instruction Description Rising instruction When a rising instruction exists within the range to be changed, the rising instruction will not be executed if the...
INTERRUPT FUNCTION This chapter describes the interrupt function. 11.1 Multiple Interrupt Function When an interrupt occurs while an interrupt program triggered by another cause is running, stops the program if its priority is lower than that of the new interrupt, and runs the higher-priority program whenever its execution condition is satisfied. During interruption execution Interruption occurred During interruption stop...
Page 118
Interrupts with a priority equal or lower than that specified by the DI or EI instruction can be disabled or enabled even when multiple interrupts are present. For details, refer to MELSEC iQ-F FX5 Programming Manual (Instructions, Standard Functions/Function Blocks). Disabled interrupt priorities and the current interrupt priority can be checked in SD758 (Interrupt disabling for each priority setting value) and SD757 (Current interrupt priority) respectively.
11.2 Input Interrupt Delay Function The input interrupt delay function can delay the execution of the interrupt program in units of 1 ms. By delaying the execution of the interrupt program, the installation position of the sensor used for the input interrupt can be adjusted by program without shifting the actual installation position.
Delay execution of the interrupt program When an interrupt is generated, the execution of the interrupt program is delayed for the preset delay time. Interrupt priorities that can be used The interrupt priorities that can be used with the input interrupt delay function are shown below. Interrupt priority Availability Remarks...
Page 121
Precautions If online change is performed during the delay, the interrupt program will be executed after the delay time has elapsed. However, depending on the timing at which online change is performed, the delay time confirmation operation will not be executed, nor will the interrupt program that is executed after the delay elapses.
SCAN MONITORING FUNCTION This function detects CPU module hardware or program errors by monitoring the scan time. Using the watchdog timer, which is an internal timer in the CPU module, the following scans are monitored. • Initial scan (1st scan) •...
12.3 Precautions The following precautions relate to the scan monitoring function. Watchdog timer reset when executing a program repeatedly The watchdog timer can be reset by executing the WDT instruction in a program. If the time of the watchdog timer is up while executing a program repeatedly by the FOR instruction and NEXT instruction, use the WDT instruction to reset the watchdog timer.
CONSTANT SCAN Since the processing time differs as per the execution/non-execution of command used in the program, the scan timer changes with every scan. By setting the constant scan, because a program can be repeatedly executed while keeping scan time at a specified amount of time, even when the execution time of the program changes, the I/O refresh interval can be constant.
Page 125
Conditions of setting time Set a value that meets the following relational equation for the setting time of the constant scan. "WDT setting time" > "Constant scan setting time" > "Maximum scan time of the program" When the maximum scan time of the program is longer than the setting time of the constant scan, it results in error. The constant scan time is ignored and it is executed with the scan time of the program.
REMOTE OPERATION A remote operation is an operation to externally change the operation status of the CPU module with the RUN/STOP/RESET switch of the CPU module set to the RUN position. The following items show the types of remote operation. •...
Page 127
GX Works3 Operating Manual Method using external devices that use SLMP or MC protocol Execute by SLMP or MC protocol 1C/3C/4C frame command. For details on commands, refer to the following manual. MELSEC iQ-F FX5 User's Manual (Communication) Step 0 Step 0...
Execute by SLMP or MC protocol 3C/4C frame command. For details on commands, refer to the following manual. MELSEC iQ-F FX5 User's Manual (Communication) • Turns ON the PAUSE contact (SM204) when executing the END process of the scan that has received the remote PAUSE command.
Precautions ■When keeping in forced ON or OFF status in advance When keeping in forced ON or OFF status in advance, interlock using the PAUSE contact (SM204). The ON/OFF status of Y70 is determined by the ON/OFF status of M20 in PAUSE status. SM204 Turns OFF in PAUSE status.
Execute by SLMP or MC protocol 3C/4C frame command. For details on commands, refer to the following manual. MELSEC iQ-F FX5 User's Manual (Communication) When executing remote RESET, the settings that allow the remote reset of the CPU parameter must be written to CPU module beforehand.
LATCH FUNCTION The contents of each device/label of the CPU module is cleared in the cases described below and changed to its default value. • At power OFFON of the CPU module • At reset • A power failure that exceeded allowable momentary power interruption The contents of each device/label with latch setting will be maintained in case of power failure even in the above-mentioned cases.
Page 132
■FX5U/FX5UC CPU module Device Specification Method Applicable latch type Internal relay (M) Specify the latch range Latch (1) or Latch (2) Latch relay (L) Specify the number of points Latch (1) or Latch (2) Link relay (B) Specify the latch range Latch (1) or Latch (2) Annunciator (F) Specify the latch range...
15.3 Latch Settings Latch settings This subsection describes the latch setting. This format is supported by the FX5S and FX5U/FX5UC CPU modules. Setting latch on devices A range of multiple latches can be set for 1 type of device. Two latch ranges, latch (1) and latch (2), can be set. However, make sure that the range of latch (1) and latch (2) is not overlapping.
Setting latch on labels This subsection describes latch setting on labels. Operating procedure In the label edit window, specify Label edit window "RETAIN" for label attribute. There are two types of latch for "Device/Label Memory Area Detailed Setting" window labels: latch (1) and latch (2). Select one.
15.5 Precautions The precaution to be taken when using a latch function is described below. • When latch range and device no. of points are changed in the parameter, the latching for devices other than link register (W) and latch label will be the same as the latch settings before the change. Also, if the latch range setting parameter at the time of previous operation is different from that at the time of the current operation after the CPU module is powered OFF and ON or reset, the latch data is recovered only in the overlapping part of the latch ranges.
RAS FUNCTIONS 16.1 Self-Diagnostics Function Checks if a problem exists with the CPU module. Self-diagnostics timing If an error occurs when the CPU module is powered on or while it is in the RUN/STOP state, the CPU module detects, and displays it, and stops operation.
CPU module operation upon error detection setting Configure each CPU Module Operation setting when an error is detected. Error detection setting Sets whether or not to detect errors. Navigation window [Parameter] [Module model name] [CPU Parameter] "RAS Setting" "Error Detections Setting"...
Page 138
LED display setting Set whether or not to display the ERROR LED and BATTERY LED. Navigation window [Parameter] [Module model name] [CPU Parameter] "RAS Setting" "LED Indication Setting" Window Displayed items Item Description Setting range Default ERROR LED Minor Error (Continue...
Error clear This function clears all the existing continuation errors at once. Errors that can be cleared Error code Error name 1080H ROM write count error 1090H Battery error 1120H SNTP clock setting error 1200H Module moderate error detected 1800H Annunciator ON 1810H, 1811H Operation error...
How to clear errors Errors can be cleared in two ways: ■Using the engineering tool Clear errors with the module diagnostics function of engineering tool. (GX Works3 Operating Manual) ■Using SM/SD Clear errors by operating SM/SD. Check SD0 (Latest self-diagnostics error code) to identify what errors are detected. Clear the cause of each of the currently detected continuation errors.
Event history settings Under normal circumstances, the event history function can be used with its default settings and need not be manually configured. The storage memory and size settings for event history files can be changed as needed. (Page 140 Event history file) Navigation window ...
Page 142
Event history file The storage memory and file size for event history files can be changed in event history setting. (Page 139 Event history settings) ■Storage memory The following storage memory can be used. • Data memory • Built-in RAM battery keeping •...
Page 143
■When files are created An event history file is created when: • The CPU module is turned off and on (if there is no event history file or after the event history settings are changed). • The CPU module is reset (if there is no event history file or after the event history settings are changed). •...
Viewing the event history The event history can be viewed using the menus of the engineering tool. For operating procedures and how to interpret the displayed information, refer to the following: GX Works3 Operating Manual Clearing the event history The event history can be cleared using the event history window. Once the event history is cleared, the CPU module deletes all the event history information stored in the specified storage memory.
If the SD210 to SD216 clock data is out of the range SM211 Using instructions Writes the clock data to the CPU module, using the TWR(P) instruction. (MELSEC iQ-F FX5 Programming Manual (Instructions, Standard Functions/Function Blocks)) 17 CLOCK FUNCTION 17.1 Time Setting...
Clock data is read to SD210 to SD216 when SM213 (clock data read request) is turned ON. Using instructions Clock data is read from the CPU module using the TRD(P) instruction. (MELSEC iQ-F FX5 Programming Manual (Instructions, Standard Functions/Function Blocks)) Precautions The following describes precautions when setting the time.
17.2 Setting Time Zone The time zone used for the CPU module can be specified. Specifying the time zone enables the clock of the CPU module to work in the local time zone. Navigation window [Parameter] [Module model name] [CPU Parameter] "Operation Related Setting" "Clock Related Setting"...
Counted number of scans for timing clock output 5 SM420 to SM424, SM8330 to SM8334, and SD8330 to SD8334 are used by the DUTY instruction. For the DUTY instruction, refer to the following. MELSEC iQ-F FX5 Programming Manual (Instructions, Standard Functions/Function Blocks) 17 CLOCK FUNCTION 17.3 System Clock...
Also, when a personal computer registered with a security key malfunctions, locked project data cannot be accessed/viewed or edited. Mitsubishi Electric Corporation cannot be held responsible for any loss that may occur as a result of this with the customer, other individuals or organizations. For this reason, the customer must adopt sufficient measures as explained below: •...
DATA LOGGING FUNCTION The data logging function is a function that collects device, character string, and other data at specified intervals or timing, and stores such data as a data file. From the CPU Module Logging Configuration Tool (free of charge), such items as target data, collection interval, and start condition can be set easily.
Page 152
By using the CPU Module Logging Configuration Tool (free of charge), the data logging function can be set easily (not via the program). The setting process is completed simply by entering data for the setting items according to the wizard window. Simple Simple setting using...
19.1 Application Example Two types of data logging functions are available: Continuous logging and trigger logging. Application examples are shown below. Continuous logging Data can be collected at specified intervals and recorded. This enables facility and product data to be managed with time stamps for use to achieve traceability.
19.2 Specifications List Describes the specifications of the data logging function. Item Specifications Reference Number of data logging settings Data storage location • Data memory (only data logging configuration file) • SD memory card Logging type • Continuous logging Page 167 Logging type •...
19.3 Procedure for Using Devices and software to be used The devices and software to be used for the data logging function are shown below. GX Works3 CPU Module Logging Configuration Tool GX Logviewer SD memory card Ethernet cable ...
Setting example The procedures for using continuous logging and trigger logging are described with Setting example 1 and Setting example 2. Setting example 1: Continuous logging The following shows a setting example of collecting device values of D0, D1, and M0 for 10 seconds at 10ms intervals after data logging execution is started by operating the tool.
Page 157
Setting example 2: Trigger logging The following shows a setting example of collecting device values of D0, D1, and M0 for two seconds immediately before and five seconds immediately after the trigger occurrence (M0 is "") at 10ms intervals after data logging execution is started by operating the tool.
Programs example The following shows a program example of executing data logging in Setting example 1 and Setting example 2. Operating procedure This section shows the operating procedure for Setting example 1 and Setting example 2 (the CPU Module Logging Configuration Tool windows show the setting details of Setting example 2).
Page 159
Setting data logging In the menu window of GX Works3, start the CPU Module Logging Configuration Tool. [Tool] [Logging Configuration Tool] Open the data logging setting window. [Data Logging Setting] [Edit] Select "Logging type" and "File format" , and click [Next]. Setting example 1 Setting example 2 ■Logging type...
Page 160
Set the logging target data , and click [Next]. Setting example 1 Setting example 2 Enter D0, D1, and M0 in the "Head" column. Enter D0, D1, and M0 in the "Head" column. *1 For details on the setting details, refer to the following table. Page 172 Target data Set the trigger , and click [Next].
Page 161
Set the items to be output into the file , and click [Next]. Setting example 1 Setting example 2 • Select the checkbox for "Output data". • Select the checkbox for "Output data". • Select the checkbox for "Output index". •...
Page 162
Specify the logging operation when the mode transfers to RUN mode . Select "Auto Start" this time, and click [Next]. *1 For details on the setting details, refer to the following table. Page 188 Setting the operation at the time of transition to RUN Check the set details, give any name , and click [Finish].
Page 163
Executing data logging Set the CPU module to the RUN status. Open the "Logging Status and Operation" window. [Online] [Logging Status and Operation] Check the target of data logging execution (multiple targets can be selected). Select "No.01" this time. Start the data logging by clicking the [Start] button.
Page 164
Stopping data logging Open the "Logging Status and Operation" window. [Online] [Logging Status and Operation] Check the target of data logging stop. Stop data logging execution by clicking the [Stop] button. The logging status changes to "Stop (Normal)". Data logging execution (start/stop/suspend) can also be executed by using a special relay. Page 166 Data Logging Execution by Special Relay 19 DATA LOGGING FUNCTION 19.3 Procedure for Using...
Page 165
Saving data logging files Open the "Logging File Operation" window. [Online] [Logging File Operation] Specify the directory and select the target file. Click the [Save to PC] button. Specify the save destination and click the [Save] button. The data logging file is saved into the specified location. 19 DATA LOGGING FUNCTION 19.3 Procedure for Using...
Page 166
Setting example 1: Checking logging data with a CSV file Open a data logging file (*.csv) saved in your personal computer using such an application as Excel. The data logging data can be checked. [LOGGING] FX5CPU_2 Logging test DATETIME[YYYY/MM/DD hh:mm:ss.sss] INTERVAL INDEX SHORT[DEC.0]...
Page 167
Example 2: Checking logging data in a waveform graph While using the offline monitor, select all devices on the program editor. Perform the following operation on the program editor. Right-click the mouse [Wave Display (Offline Monitor)]. GX LogViewer starts, enabling the logging data to be checked in a waveform graph. For details on GX LogViewer, refer to the following: GX LogViewer Version 1 Operating Manual 19 DATA LOGGING FUNCTION...
19.4 Data Logging Execution by Special Relay The data logging setting can be registered by the special relay and be executed on the data logging setting file stored in the SD memory card. (Data logging operations such as start and stop can be performed without using the CPU Module Logging Configuration Tool.) This operation can be used together with each operation of the CPU Module Logging Configuration Tool.
Special relay and special register used by the data logging function For details on the special relays and special registers used by the data logging function, refer to the following: • Special relay: Special relay related to the data logging function (Page 690 Data logging function) •...
Page 170
Trigger logging In trigger logging, the CPU module stores specified data in its internal buffer at a specified collection interval or timing; it extracts a specified number of data records before and after the satisfaction of a trigger condition and saves the extracted data in a data logging file residing in the storage memory.
Page 171
■Number of records Specify the number of records to be collected before and after the satisfaction of a trigger condition. (Page 872 Number of records) Trigger logging Trigger logging start completion Sampling data Trigger condition occurrence Number of records Number of records before trigger after trigger Total number of records...
Data collection conditions This section describes the timing when data is collected and the conditions under which data is collected. Data collection conditions Description Each scanning cycle Collects data during the END processing of each scan. Time specification Collects data during the END processing after specified time interval. Condition specification Collects data when the monitored data meets the specified condition during the END processing.
Page 173
Condition specification This option allows the user to set the data collection timing by specifying the device data conditions. Collects data when the monitored data meets the specified condition during the END processing. ■To collect data continuously while the conditions are met The following conditional formula causes the data logging function to collect data continuously while the conditions are met: •...
■Specifying the monitored data For monitored data, the following devices can be specified. The data types that can be selected include bit/word (unsigned), word (signed), double word (unsigned), and double word (signed). Type Device Bit device X, Y, M, SM, L, B, F, SB, T (contact) , ST (contact) , C (contact) , LC (contact)
Page 175
Data type The following table shows the number of data records for each data type. Data type Number of data points Word (signed) Double word (signed) Word (unsigned) Double word (unsigned) Single-precision real number Time *1*2 String Specified size/2 Numeric string Specified size/2 *1 Outputs the entered character code.
*6 Only FX5U/FX5UC CPU module is supported. *7 This format is supported by the FX5UJ and FX5U/FX5UC CPU modules. When trigger instruction executed A trigger occurs when the LOGTRG instruction is executed. (MELSEC iQ-F FX5 Programming Manual (Instructions, Standard Functions/Function Blocks)) 19 DATA LOGGING FUNCTION...
Data logging file This section describes data logging files. The following storage formats are available for data logging files. File format Application CSV file format This is a file format which can be open in generic-purpose application programs such as Excel and Notepad. GX LogViewer is also available for displaying data.
Page 178
• Output content for each data <File information row> File-related information is displayed. Item Description Size File type [LOGGING] is output. 9 bytes Model information_file version "FX5CPU_2" is displayed in the file version which describes the model information. 8 bytes No.
Page 179
<Data type information row> The data type for each column is displayed. This information is output in the following format: (Data type)[(Additional information)]. Item "Data type" output content Size "Additional information" output content Size Date column DATETIME 8 bytes Format is output. 4 to 29 bytes [YYYY/MM/DD hh:mm:ss.sss] Data collection interval...
Page 180
<Data row> The collected data value is displayed. A single row means the data collection interval. The data collected by the trigger at a time is displayed in the single row. Item Description Size Date column Information is output according to the date information. 1 to 32 bytes Data collection The time interval from the previous collection time to the current collection time is output.
Page 181
■Binary file format The following figure shows the configuration of the binary format and details of each data. • Configuration figure of binary format (1) Identification code: Fixed to 4 bytes (fixed to "MFCB") (2) File version: 1 byte (fixed to 1) (3) File type: 1 byte (fixed to 1) (9) Logging target data information size: 2 bytes (10)
Page 182
• Details of each data Item Description Size (byte) Identification code MFCB is always output to identify the file. File version File version 1 is displayed. File type The file type is output. (fixed to 1: Continuous/trigger logging) Model information The module model name that outputted binary file is output.
Page 183
Item Description Size (byte) (21) Trigger occurrence flag The trigger occurrence information is output. (1) 1: Trigger occurred, 0: Trigger not occurred (22) Data Data collected by the data logging function is output corresponding to (13) Data length and (10) •...
Saving and file switching The collected data is temporarily stored in the specified internal buffer. (Page 187 Internal buffer) The data stored in the internal buffer is stored into the SD memory card at the time of a file save operation. Inside the CPU module SD memory card Data sampling...
Page 185
Switching to a storage file The data collected by data logging is temporarily stored in a stack file that resides in the SD memory card. The stack file can be switched to a storage file to free the space in the SD memory card. File switching works as follows: The CPU module writes collected data into a stack file (such as LOG01.BIN).
Page 186
File switching condition In continuous logging, a file switching condition is selected from the following. Note that trigger logging does not require the configuration of these settings because the stack file is automatically switched to a storage file after as much data as the specified number of records is written into the stack file.
Page 187
Condition specification: M0=ON File n File switching File n+1 Logging Logging Logging Logging Logging Logging Logging ■Condition specification Configure the trigger condition based on the device data value. A trigger occurs when the monitored data meets the specified condition. • : When the specified data turns off and on •...
Page 188
Storage file The CPU module creates a subfolder ("storage file container folder") under the file storage folder and writes storage files to that storage file container folder. One storage file container folder can contain up to 256 storage files. When the files contained in the current storage file container folder reach the maximum number, the CPU module creates a new storage file container folder at the time of next storage file switching and begins writing storage files to that new folder.
Page 189
Internal buffer The internal buffer is a system area used to temporarily store collected data. ■Internal buffer capacity setting FX5U/FX5UC CPU module can change the internal buffer capacity with an engineering tool. (Page 205 INTERNAL BUFFER CAPACITY SETTING) For trigger logging, increasing the internal buffer capacity allows for a larger number of data records to be collected before a trigger.
Setting the operation at the time of transition to RUN This function configures the operation of data logging that occurs when the user performs the following operations (transition to RUN) after the data logging setting are registered. (Page 875 Logging operation) •...
19.6 Precautions This section describes precautions to take when using the data logging function. Missing data The term "missing data" means that some of the collected data is missing, resulting in data discontinuity. Missing data occurs under the following conditions: Item Description Data logging function processing time...
Page 192
■Processing overflow In normal cases when the usage of the internal buffer reaches the specified maximum capacity, the CPU module overwrites the data stored in the storage memory on a first-in first-out basis. If the internal buffer becomes full before all of the data stored in it is saved to the storage memory, however, the CPU module does not overwrite the existing data and stops storing data in the internal buffer, thus resulting in missing data.
Page 193
Retention and clearance of data logging settings The data logging settings registered in the CPU module are latched and thus survive across a power cycle (power off and on) or reset of the CPU module in normal cases. In the following cases, however, the data logging status is cleared to the unregistered state and therefore the setting data must be written again: •...
Page 194
Access to the SD memory card If data logging is performed with a small setting of the data collection interval/timing or with a large number of records to be collected, access (read/write) to the SD memory card occurs so frequently that a delay occurs in completing the access. To avoid such a delay, use the following workarounds: •...
19.7 SD Memory Card Life and Replacement This section describes the life of the SD memory card used for the data logging function and the replacement procedure. SD memory card life An SD memory card has a life (restriction on writing data). The following shows the calculation method of an SD memory card life when the data logging function is used.
SD memory card replacement SD memory cards can be replaced using the SD memory card forced disable function even while data logging is in progress. (Page 229 SD Memory Card Forced Stop) This function works by disabling data writes to the SD memory card while allowing data collection to continue.
Page 197
Operations after SD memory card replacement If the SD memory card was replaced while data logging was running based on the data logging setting file contained in the SD memory card, the data logging setting file contained in the new SD memory card is used when data logging is started next. If the new SD memory card does not contain the data logging setting file, data logging is not started.
MEMORY DUMP FUNCTION This function stores device values of the CPU module at any given timing. Checking data at the desired timing through the function facilitates the analysis of problems which occur depending on a particular condition. Engineering tool Power Time Device memory SD memory card...
Double-word device LC (current value), LZ For BL\S (step relay with block specification), data collection is performed only when the SFC program exists. (MELSEC iQ-F FX5 Programming Manual (Program Design)) 20.2 Trigger Condition The following table lists the conditions to be used as a trigger. Set the trigger condition in the memory dump settings. (GX...
Device specification Data are collected when the specified monitoring target data turns on during the END processing. Trigger occurrence Data condition Program 1 scan Data sampling starts. For monitoring data, the following devices can be specified. Type Device Bit device X, Y, M, L, F, SM, B, SB, T (contact) , ST (contact) , C (contact)
At the occurrence of a stop error RUN/STOP STOP state Trigger occurrence A stop error occurs. Error Program 1 scan Data sampling starts. Even if an error occurs, if the function (analog function, etc.) does not cause SM0 to turn ON, memory dump using SM0 as the trigger cannot be executed.
20.3 Procedure for Memory Dump This section describes the procedure for memory dump. Note that each operation of the memory dump function is performed with the engineering tool. [Debug] [Memory Dump] For how to view and operate the window, refer to the following. GX Works3 Operating Manual Configure the memory dump settings by the menu operation in the engineering tool.
20.5 Memory Dump File This file stores data that is collected through memory dump (collection result by memory dump). Data collected by one execution is saved in one file. The memory dump file is saved in a binary format and stored under the "MEMDUMP" folder. Save file name The file name can be arbitrarily set within a range of 64 characters (extension and period included) together with an auto- assigned number (00 to 99).
20.7 Sizes of Files Used for the Memory Dump Function This section shows the sizes of files used for the memory dump function. Capacity of the memory dump setting file The capacity of the memory dump setting file varies depending on the length of the save file name. The following formula is used for the calculation: ...
20.8 Special Relay and Special Register Used in the Memory Dump Function For details on the special relay and special register used in the memory dump function, refer to the following: • Special relay: Special relay relating to the memory dump function ( Page 691 Memory dump function) •...
Page 206
Operation on each individual file Write, read, delete, and initialize are possible on each file. The following table shows whether each operation is possible or not depending on the execution status of memory dump. : Operation possible, : Operation not possible File type Operation to be performed Read...
INTERNAL BUFFER CAPACITY SETTING Configure the capacity of an area (internal buffer) that the system consumes to temporarily store the result of data logging and the collection result of memory dump. When using the data logging function, adjusting the internal buffer capacity allows an increase in the number of collected data and reduces the risk of processing overflow.
DATA BACKUP/RESTORATION FUNCTION This function backs up the data memory and device/label data and the SFC program execution status of a CPU module to an SD memory card. The data backed up in the SD memory card can be restored as required. *1 Module access devices and buffer memory are excluded.
Page 210
Backup data Backup data is saved in an SD memory card. The following shows the folder structure of backup data. Root directory MAIN.PRG Backup 20170101 00001 Drive4 $MELPRJ$ UEX3FF00.PPR $BKUP_CPU_INF.BSC BKUP_CPU.BKD BKUP_CPU_DEVLAB.BKD 00002 20170102 $BKUP_CPU_EXCHANGE.DAT *1 When backing up by CPU module auto exchange mode (Deleting existing data), if the system file for CPU module auto exchange function is stored in the CPU data folder, only the latest folder will exist for the date folder and number folder.
Page 211
■Back up file File type File name Description System file for backing up CPU module data $BKUP_CPU_INF.BSC Files for storing the information required at restoration of data, such as a list of backup data and identification information of the CPU module. Backup data file for backing up CPU module BKUP_CPU.BKD The following data is stored.
Page 212
■Backup/restoration target device data : Available, : Not available Classification Device name Symbol Backup/restoration possibility Backup Restoration User device Input Output Internal relay Latch relay Link relay Annunciator ...
Progress of the backup/restoration processing The progress of the backup/restoration processing can be checked with SD1350 (Number of uncompleted folders/files of CPU module data backup/restoration) or SD1351 (Progression status of CPU module data backup/restoration). Special register Description SD1350 Displays the number of remaining backup/restoration target folders and files. •...
Page 214
Initializing target data When backing up with SM1351 ON (CPU module auto exchange mode), set whether or not to initialize the drive other than the SD memory card at the time of restoration by the CPU module auto exchange. Set with SD9352 (CPU module auto exchange function setting) b1 (initialize during CPU module auto exchange function).
Backup processing triggered by turning on SM1351 (Normal mode) Data in the CPU module is backed up at a desired timing. Each time backup is requested, the year, date and serial No. of the date folder and number folder are updated (newly created), and the following backup data is created. •...
Backup processing triggered by turning on SM1351 (CPU module auto exchange function) Data in the CPU module is backed up at a desired timing. The operation during back up differs according to the SD9350 (operation mode setting) value. Operation mode ■CPU module auto exchange mode (Deleting existing data) When the SD9350 value is 1, each time the backup is requested, all of the data under the CPU data folder in the SD memory card is deleted, and a date folder, number folder, and the backup data are created.
Page 217
Operating procedure SM9350 (CPU module auto exchange function enable/disable flag) is turned OFF (enable). Set SD9350 (Operation mode setting) to 1 or 2 With SD9351 (CPU module automatic replacement function Restore target data setting), set the data to be restored when executing restoration with CPU module auto exchange.
Checking backup errors When an error has occurred, a diagnostic error is not detected and an error code is stored in SD953 (Backup error cause). (Page 782 List of error codes) Precautions The following describes the precautions for the backup function. Prohibited operation during execution of the backup processing Do not perform the following operations during execution of the backup processing.
Page 219
Special relay and special register that function as flags to execute other functions Before executing the backup processing, turn off the special relay and special register that function as flags to execute other functions. If the backup processing is executed when they are on, the corresponding function request may turn on and the function may be executed at the restoration of data in the special relay and special register.
22.2 Restoration Function This function restores backup data in the SD memory card to the CPU module. Restoration target folder Set restoration target data among backup data in the SD memory card with SD956 (Restoration target date folder setting) to SD958 (Restoration target number folder setting).
Page 221
Initialization during automatic restoration When executing automatic restoration with SD955, set whether or not to initialize the drives other than the SD memory card with SD955 (restoration function setting) b1 (initialize during automatic restoration). This function is valid only when SD954 (restoration target data setting) is 0 (all target data).
Restoration processing triggered by turning on SM1354 Backup data is restored at a desired timing. When restoration is requested, the CPU module backup data based on the following files in the designated folders are restored. • System file for backing up CPU module data •...
Automatic restoration using SD955 Backup data is automatically restored when the CPU module is powered on or is reset. When restoration is executed, the CPU module backup data based on the following files in the designated folders are restored. • System file for backing up CPU module data •...
Restoration triggered by CPU module auto exchange At power ON or at reset, the backup data is automatically reset without the need for a command. When restoration is executed, the CPU module backup data is restored based on the system file for the CPU module auto exchange function in the SD memory card.
Precautions The following describes the precautions for the restoration function. Prohibited operation during execution of the restoration processing Do not perform the following operations during execution of the restoration processing. • Attaching or detaching the SD memory card • Powering off or resetting the CPU module The above mentioned operations leave the data in the CPU module in an incomplete state which is in the middle of the restoration processing.
Page 226
Operations and functions that cannot be performed While the following operations or functions are being executed, the restoration processing cannot be executed. The following operations and functions cannot be executed during execution of the restoration processing. Operation or function Operation from GX Works3 Initializing the CPU built-in memory/SD memory card Clearing values (Devices, extended file registers, labels, latches) Reading data from the PLC...
Page 227
Data protected by security functions ■File password function Unlock the file passwords of the files in the backup target CPU module. If any files to which file passwords have been set exist in the CPU module, the files are not restored. ■Security key authentication function Locked programs can be restored regardless of whether security keys have been written or not.
Page 228
Conditions for executing automatic restoration and CPU module auto exchange The restoration executed for automatic restoration using SD955 and restoration with CPU module auto exchange differs according to the following conditions. Auto restoration request CPU module auto exchange Presence of system file for Executed restoration (b0 of SD955) function enable/disable flag...
REAL-TIME MONITOR FUNCTION This function monitors the contents of a specified device of the CPU module in real time with a specified interval or a desired timing. The function can be set with GX LogViewer, where the value changes of a specified device can be shown graphically. Saving the set data and displayed graphs makes it possible to simplify the settings and check the graphs at a later time.
MEMORY CARD FUNCTION The following explains the functions that use SD memory card. If an SD memory card is used on the FX5S CPU module, the SD memory card module is required. 24.1 SD Memory Card Forced Stop SD memory card can be disabled without turning power ONOFF, even when a function that uses SD memory card is being executed, such as when the data logging function is running.
Page 232
Operation of function accessing SD memory card The following table shows the operation when the main function is executed while SD memory card is being accessed and when SD memory card is accessed after SD memory card is disabled. Function under execution When main function is executed while When SD memory card is accessed SD memory card is being accessed...
24.2 Boot Operation At the time of power OFFON or reset of the CPU module, a file which is stored on the SD memory card is transferred to the memory of the transfer destination which the CPU module judged automatically. Boot operation procedure The selectable files for boot operation are listed below.
Page 234
Set the data name (file name). "Boot File Setting" window Displayed items Item Description Setting range Default Clear the CPU built-in Sets whether or not to clear the CPU built-in memory upon file transfer • Do Not Clear Do Not Clear memory before boot from the SD memory card.
HIGH-SPEED INPUT/OUTPUT FUNCTION The high-speed input/output function is explained below. Each respective function is set by parameters in GX Works3. High-speed pulse input/output module is supported only for FX5UJ and FX5U/FX5UC CPU modules. Function Reference High-speed counter function Normal mode Page 249 Pulse density measurement mode Page 252...
Page 236
High-speed counter dedicated instructions The high-speed counter starts and stops counting using the HIOEN/DHIOEN instruction for the high-speed counter. (MELSEC iQ-F FX5 Programming Manual (Instructions, Standard Functions/Function Blocks)) Other high-speed counter instructions In addition to the dedicated instructions, there are instructions such as DHSCS, DHSCR, and DHSZ (hereafter referred to as "high-speed comparison instruction") for high-speed counters.
High-speed counter function execution procedure The high-speed counter function execution procedure is as follows. Check the specifications of the high-speed counter. Check specifications such as maximum frequency and type of high-speed counter. (Page 236 High-speed counter specifications) Connect the CPU module to the external device. For details on wiring to external devices, refer to the following manual MELSEC iQ-F FX5S/FX5UJ/FX5U/FX5UC User's Manual (Hardware) Set the parameters.
High-speed counter specifications High-speed counter specifications are explained below. Types of high-speed counters Types of high-speed counters are as follows. ■1 phase, 1 input counter (S/W) Counting method of 1 phase, 1 input counter (S/W) is as follows. Input A phase Count direction switching bit Up counting Down counting...
Page 239
■2 phase, 2 input counter [1 edge count] Counting method of 2 phase, 2 input counter [1 edge count] is as follows. Up/down counter Counter timing At up-counting 1 count up when input A phase is ON and input B phase switches OFFON At down-counting 1 count down when input A phase is ON and input B phase switches ONOFF At up-counting...
Page 240
■Internal clock Counting method of internal clock is as follows. Count direction switching bit Internal clock (1 MHz) Up counting Down counting Current value Under ordinary circumstances, the internal clock counts up/down by 1 MHz clock. External input is not used. High-speed counter form High-speed counter form becomes ring counter depending on the ring length setting.
Assignment for high-speed counters Input assignment for high-speed counters Assignment for input devices of high-speed counters is set by parameters. Assignment is determined according to functions set for each channels by parameter. When using internal clock, assignment is same as 1-phase, 1-count (S/W) and A phase is not used. Input assignment of high-speed counters is as follows.
Page 246
■FX5U-32M, FX5UC-32M • X6 to X17 are input frequencies up to 10 kHz, regardless of maximum frequency value. • Preset input and Enable Input are input frequencies up to 10 kHz, regardless of maximum frequency value. High-speed counter X10 X11 X12 X13 X14 X15 X16 X17 Maximum type...
Page 249
■High-speed pulse input/output module • X+6 and X+7 are input frequencies up to 10 kHz, regardless of maximum frequency value. • Preset input and Enable Input are input frequencies up to 10 kHz, regardless of maximum frequency value. of each input is the head input number for high-speed pulse input/output module. High-speed counter X...
High-speed counter parameters High-speed counter parameters are explained below. High-speed counter parameters are set by GX Works3. Outline of parameters High-speed counter settings, high-speed comparison table, multiple point output high-speed comparison table and input response time are set by parameters. The primary items that can be set by parameters are as follows.
High-speed counter (normal mode) Normal mode for high-speed counters is explained below. Use normal mode if you want to use as an ordinary high-speed counter. Parameter setting Set operation mode to normal mode by high-speed counter parameter setting. Sets detailed settings for channel used. ■CPU module Navigation window ...
Page 252
Item Description Setting range Default Input Comparison Enable/ Perform output to the specified device when input comparison is • Disable Disable enabled and the current value matches with the comparison value • Enable by the preset input. Output to the specified device is not performed when input comparison is disabled and the current value matches with the comparison value by the preset input.
Page 253
High-speed counters cannot count by setting the parameter alone. The HIOEN/DHIOEN instruction is required to start/stop the count. For the HIOEN/DHIOEN instruction, refer to MELSEC iQ-F FX5 Programming Manual (Instructions, Standard Functions/ Function Blocks). Read/write of current value of high-speed counter The current value of the high-speed counter is stored in a special register for each channel.
High-speed counter (pulse density measurement mode) The pulse density measurement mode for high-speed counters is explained below. The pulse density measurement mode is not supported in high-speed pulse input/output modules. When in pulse density measurement mode, pulse is counted from count input of the high-speed counter, and the number of pulses for a specified amount of time is automatically counted.
Page 255
The pulse density measurement mode cannot measure by setting the parameter alone. The HIOEN/DHIOEN instruction is required to start/stop measurement. For the HIOEN/DHIOEN instruction, refer to MELSEC iQ-F FX5 Programming Manual (Instructions, Standard Functions/ Function Blocks). 25 HIGH-SPEED INPUT/OUTPUT FUNCTION...
Page 256
If pulse density is currently being measured by the SPD/DSPD instruction, pulse density measurement cannot be started for the same channel. For details on the SPD/DSPD instruction, refer to MELSEC iQ-F FX5 Programming Manual (Instructions, Standard Functions/Function Blocks). ■Other precautions There are common precautions when using high-speed counters.
High-speed counter (rotational speed measurement mode) The rotational speed measurement mode for high-speed counters is explained below. The rotational speed measurement mode is not supported in high-speed pulse input/output modules. When in rotational speed measurement mode, pulse is counted from count input of the high-speed counter, and the rotational speed for a specified amount of time is automatically calculated.
Page 258
Inversely, if pulse density is currently being measured by the SPD/DSPD instruction, rotational speed measurement cannot be started for the same channel. For details on the SPD/DSPD instruction, refer to MELSEC iQ-F FX5 Programming Manual (Instructions, Standard Functions/Function Blocks). ■Other precautions There are common precautions when using high-speed counters.
High-speed comparison table The high-speed comparison table is explained below. Used to set high-speed comparison table for high-speed counters. Parameter setting Sets match output setting for high-speed counters. ■CPU module Navigation window [Parameter] [Module model name] [Module Parameter] [High Speed I/O] "Input Function"...
Page 260
Operation is the same as self-reset for the DHSCR instruction. For information on the DHSCR instruction, refer to MELSEC iQ-F FX5 Programming Manual (Instructions, Standard Functions/Function Blocks). 25 HIGH-SPEED INPUT/OUTPUT FUNCTION 25.1 High-speed Counter Function...
Page 261
High-speed comparison tables cannot execute comparison by setting the parameter alone. The HIOEN/DHIOEN instruction is required to start/stop the high-speed comparison table. For the HIOEN/DHIOEN instruction, refer to MELSEC iQ-F FX5 Programming Manual (Instructions, Standard Functions/ Function Blocks). The HIOEN/DHIOEN instruction is required to start/stop high-speed counters as well when using a high- speed comparison table.
Multiple point output, high-speed comparison tables Multiple point output, high-speed comparison tables are explained below. The multiple point output, high-speed comparison tables is not supported in high-speed pulse input/output modules. Use to set multiple point output, high-speed comparison tables for high-speed counters. Parameter setting Sets match output table comparison setting for high-speed counters.
Page 263
Multiple point output, high-speed comparison table operation Operation of each type high-speed comparison table is explained below. ■Bit output When comparison value 1 matches the current value of the set high-speed counter, output data is transferred to the output devices. Bit output, initial output device: Y0, Output points: 16 Table number Comparison value...
Page 264
Multiple point output, high-speed comparison tables cannot execute comparison by setting the parameter alone. The HIOEN/DHIOEN instruction is required to start/stop multiple point output, high-speed comparison tables. For the HIOEN/DHIOEN instruction, refer to MELSEC iQ-F FX5 Programming Manual (Instructions, Standard Functions/ Function Blocks).
High-speed comparison match starts Use the high-speed counter function and external start signal (Page 398 External Start Signal) to start positioning operation when the specified number of inputs is detected. Examples of the wiring and parameter setting that start positioning operation when the input is detected 100 times are shown below.
Page 266
■High-speed comparison table [Navigation window] [Parameter] Module model name [Module Parameter] [High Speed I/O] [Input Function] [High Speed Counter] [Detailed Setting] [High Speed Compare Table] Set the No.1 parameter as follows. Counter CH Comparison Type Output Destination Comparison Value 1...
Special relay details Details concerning special relays used for high-speed counters are explained below. High-speed counter operating Device for monitoring operation status of each channel of the high-speed counter. ■Corresponding devices The device numbers corresponding to each channel are as follows. CPU module SM4500 SM4501...
Page 268
■Update timing The timing of device update is as follows. • Pulse density/rotational speed measurement mode is set in parameter and • Pulse density/rotational speed measurement mode is set in parameter and pulse density/rotational speed measurement is driven by the HIOEN/ pulse density/rotational speed measurement is stopped by the HIOEN/ DHIOEN instruction.
Page 269
High-speed counter underflow Flag that detects counter value underflow of high-speed counter. ■Corresponding devices The device numbers corresponding to each channel are as follows. CPU module SM4548 SM4549 SM4550 SM4551 SM4552 SM4553 SM4554 SM4555 High-speed pulse input/output module First module Second module Third module Fourth module...
Page 270
■Update timing The timing of device update is as follows. • Down-counting (This is updated with the END processing. When the FX3 • Up-counting (This is updated with the END processing. When the FX3 compatible high-speed counter function is valid, the updating is made also compatible high-speed counter function is valid, the updating is made also when UDCNTF instruction is executed ON.) when UDCNTF instruction is executed ON.)
Page 271
High-speed counter preset input logic These devices are used for setting the preset input logic. ■Corresponding devices The device numbers corresponding to each channel are as follows. CPU module SM4596 SM4597 SM4598 SM4599 SM4600 SM4601 SM4602 SM4603 High-speed pulse input/output module First module Second module Third module...
Page 272
■Update timing The timing of device update is as follows. • When ON by the user • When OFF by the user • When set to enabled with parameters • When set to disabled with parameters • Cannot be modified while the high-speed counter is operating. Operates in the configured status when the high-speed counter starts.
Page 273
High-speed counter ring length setting These devices enable or disable the ring length setting for ring counters. ■Corresponding devices The device numbers corresponding to each channel are as follows. CPU module SM4644 SM4645 SM4646 SM4647 SM4648 SM4649 SM4650 SM4651 High-speed pulse input/output module First module Second module Third module...
Page 274
■Operation description The content of the operation when ON and when OFF is as follows. Operation when ON Operation when OFF High-speed comparison table operating High-speed comparison table stopped When the high-speed counter current value and the high-speed comparison Even when the high-speed counter current value and the high-speed table set value or the DHSCS, DHSCR, DHSZ instruction set value are equal, comparison table set value or the DHSCS, DHSCR, DHSZ instruction set the specified bit device is set or reset.
Page 275
Multi-point output high-speed comparison table operation This device is for monitoring the operational status of the high-speed counter's multi-point output high-speed comparison tables. ■Corresponding devices The device number is shared for all channels of the CPU module. SM5000 ■Operation description The content of the operation when ON and when OFF is as follows.
Special register details This section describes details about the special registers used with the high-speed counters. High-speed counter current value These devices store the current values of the high-speed counters. ■Corresponding devices The device numbers corresponding to each channel are as follows. CPU module SD4501, SD4531,...
Page 277
High-speed counter maximum value These devices store the maximum values of the high-speed counters. ■Corresponding devices The device numbers corresponding to each channel are as follows. CPU module SD4503, SD4533, SD4563, SD4593, SD4623, SD4653, SD4683, SD4713, SD4502 SD4532 SD4562 SD4592 SD4622 SD4652 SD4682...
Page 278
High-speed counter minimum value These devices store the minimum values of the high-speed counters. ■Corresponding devices The device numbers corresponding to each channel are as follows. CPU module SD4505, SD4535, SD4565, SD4595, SD4625, SD4655, SD4685, SD4715, SD4504 SD4534 SD4564 SD4594 SD4624 SD4654 SD4684...
Page 279
■Update timing The pulse density is updated at each measurement unit time when set to pulse density measurement mode (rotational speed measurement mode) with parameters. ■Clear timing The timing when the device is cleared is as follows. • Power ON, Reset, STOP/PAUSERUN High-speed counter rotational speed These devices store the measurement results of rotational speed measurement mode.
Page 280
■Description These devices set the timing to execute preset input. The table below shows the operations of the setting values. Setting value Description Executes the preset on the rising edge. Executes the preset on the falling edge. Executes the preset on both edges. Constantly executes the preset when ON.
Page 281
• Operation when preset input logic: positive logic, preset control switch: rising edge + falling edge The preset is executed when the preset input changes OFFON and when it changes ONOFF. Preset input Count input Current value • Operation when preset input logic: positive logic, preset control switch: constant when ON The preset is constantly executed while the preset input is ON.
Page 282
• Operation when preset input logic: negative logic, preset control switch: falling edge The preset is executed when the preset input changes OFFON. Preset input Count input Current value • Operation when preset input logic: negative logic, preset control switch: rising edge + falling edge The preset is executed when the preset input changes ONOFF and when it changes OFFON.
Page 283
High-speed counter preset value These devices set the values to store in the current values when presets are executed. ■Corresponding devices The device numbers corresponding to each channel are as follows. CPU module SD4513, SD4543, SD4573, SD4603, SD4633, SD4663, SD4693, SD4723, SD4512 SD4542...
Page 284
Precautions If the ring length is set to less than the lower limit value or more than the upper limit value, the ring length operates at the lower limit value or the upper limit value. However, the set value is stored as is. High-speed counter measurement unit time These devices set the measurement unit of pulse density measurement mode.
Page 285
High-speed counter number of pulses per rotation These devices set the number of pulses per rotation for rotational speed measurement mode. ■Corresponding devices The device numbers corresponding to each channel of the CPU module are as follows. SD4519, SD4549, SD4579, SD4609, SD4639, SD4669,...
Page 286
Multi-point output high-speed comparison table comparison number This device stores the number of the table currently being compared in the multi-point output high-speed comparison tables. ■Corresponding devices The device number is shared for all channels of the CPU module. SD5000 ■Description This device stores the number of the table currently being compared in the multi-point output high-speed comparison tables.
Special relays/special registers capable of high-speed transfers with the HCMOV/DHCMOV instruction The table below shows the devices that can read and write the latest value with the HCMOV/DHCMOV instruction from special relays and special registers related to the high-speed counters. When special relays and special registers are specified for (s) and (d) of instructions other than the HCMOV/DHCMOV instruction, the operation is the same as one compatible with the MOV/DMOV instruction.
Page 288
Special relays shared by all channels : High-speed transfer capable (special relay is immediately updated) : Normal transfer capable (special relay is updated in END processing) : Transfer not possible (read-only) Special relay Function Compatible with HCMOV/ Compatible with MOV/ DHCMOV instruction DMOV instruction ...
Page 289
Special registers for individual channels This section only lists the devices for high-speed counter CH1. The devices for high-speed counter CH2 and subsequent counters have the same operation as CH1. : High-speed transfer capable (special register is immediately updated) : Normal transfer capable (special register is updated in END processing) : Transfer not possible (read-only) Special Function...
This section describes the common precautions when using high-speed comparison tables and multi-point output comparison tables with the high-speed counter instructions (DHSCS, DHSCR, DHSZ instructions) or parameters. For the individual precautions on high-speed counter instructions, refer to MELSEC iQ-F FX5 Programming Manual (Instructions, Standard Functions/Function Blocks).
Page 291
■High-speed counter current value modification operation by instructions The table below shows the operations when the current value of a high-speed counter is rewritten by instructions. Instruction High-speed counter current value Page 285 Special relays/special registers capable of high-speed transfers with the HCMOV/DHCMOV instruction HCMOV/DHCMOV instruction MOV instruction, etc.
Page 292
Functions that share inputs and outputs When using input/output for high-speed input/output function, other high-speed input/output functions cannot be used together depending on the combination. For details on the positioning function, refer to the following. Page 358 POSITIONING CONTROL FUNCTION ■FX5UJ CPU module •...
Page 293
■FX5S/FX5U/FX5UC CPU module • Input The following functions occupy inputs of the high-speed input/output function. Function Up to CH/axis Device Simultaneous useable function Input interrupt Interrupt (Rising) 8 CH X0 to X17 The functions other than high-speed counter (input A phase, input B phase) Interrupt (Falling) Interrupt (Rising + Falling) Interrupt (Rising) + Pulse Catch...
Page 294
■High-speed pulse input/output module • Input The following functions occupy inputs of the high-speed input/output function. The channels and the axis numbers are in module internal order. *1*2 Device Input interrupt High-speed counter Pulse width measurement Positioning X X...
How to start/stop the high-speed counter using the LC device When using a FX3-compatible high-speed counter by the UDCNTF instruction, perform starting/stopping the counting of the high-speed counter. For details of the UDCNTF instruction, refer to MELSEC iQ-F FX5 Programming Manual (Instructions, Standard Functions/Function Blocks).
Operation example The operation of LC35 in the programming example described above is as shown below. SM4580 Up-count Down-count Up-count Count direction X0 Pulse input LC35 Current value When output has operated LC35 Count contact = Y1 The elements of the composition of the LC device Each element that composes the LC device is shown below.
Page 297
The start and stop of the counting of the high-speed counter of the UDCNTF instructions and HIOEN/DHIOEN instructions with the FX3 compatible function valid are described below. For the UDCNTF instruction or HIOEN/DHIOEN instruction, refer to MELSEC iQ-F FX5 Programming Manual (Instructions, Standard Functions/Function Blocks).
Assignment for FX3-compatible high-speed counters The high-speed counter number that can be specified with each CH Shown here are the high-speed counter numbers (C235 to C255) of FX3 that can be selected with each CH. : Change is possible, : Change is impossible High-speed counter No.
Page 299
The assignment of the high-speed counter and the maximum frequency when the FX3 compatible function is valid Shown below is the assignment of the high-speed counter and the maximum frequency when the FX3 compatible function is valid. High-speed counter Maximum frequency corresponding FX5UJ FX5U/...
FX3-compatible high-speed counter setting This section describes the setting of the case when the FX3 compatible high-speed counter is used. FX3-compatible high-speed counter are set by GX Works3. • If a high-speed comparison table or a multi-point output high-speed comparison table is used, it is necessary to set the parameter in the same manner as the FX5 high-speed counter.
Page 301
Window Displayed items Item Description Setting range Default Use/Not Use Set whether use counter or not. • Disable • Enable Counter device Select the high speed counter of input assignment which is • LC35 (Operation equivalent to C235) compatible with FX3.
LC device : High-speed transfer capable (special register is immediately updated) : Normal transfer capable (special register is updated in END processing) : Transfer not possible (read-only) LC device Function Compatible with Compatible with DHCMOV instruction DMOV instruction ...
25.3 Pulse Width Measurement Function This section describes the pulse width measurement function. Pulse width measurement function overview Pulse width/period measurement of up to 12 channels is possible from the CPU module and the high-speed pulse input/output module. The pulse width/period measurement function stores the values of 0.5 s ring counters at the input signal rising edge and falling edge to special data registers.
Page 305
■FX5UJ CPU module and high-speed pulse I/O module Pulse width measurements can be used for a maximum of 12 channels. (CPU module 4CH + high-speed pulse input/output module 2CH 4 modules) The input device assignment is as follows. (Fixed for CPU modules) CPU module High-speed pulse I/O module First module...
Page 306
■FX5U/FX5UC CPU module and high-speed pulse input/output module Pulse width measurements can be used for a maximum of 12 channels. (CPU module 4CH + high-speed pulse input/output module 2CH 4 modules) The input device assignment is as follows. CPU module High-speed pulse input/output module First module Second module...
Switching positive logic/negative logic The pulse input logic can be switched. Positive logic or negative logic can be set for each channel with parameter settings. ■Operation for positive logic Pulse width Pulse input Cycle ■Operation for negative logic Pulse width Pulse input Cycle Continuous measurement/one-time measurement mode...
Pulse width measurement parameters This section explains the parameters for pulse width measurement. Set the parameters for pulse width measurement in GX Works3. Outline of parameters Parameters for pulse width measurement are input allocation, logical switch ,measurement modes and input response time. Parameter setting The following explains how to set the parameters for pulse width measurement.
Page 309
Window Shown above is the screen at the time when the first high-speed pulse input/output module is selected. Displayed items Item Description Setting range Default Use Pulse Width Measurement Set whether to use pulse width measurement or not. • Disable Disable •...
Details of special relays/special registers Details of special relays/special registers used in pulse width measurement are explained below. Pulse width measurement status flag This flag is a device for monitoring the measurement in progress/measurement stopped status of pulse width measurement. ■Corresponding devices The device numbers corresponding to each channel are as follows.
Page 311
Pulse width measurement complete This flag turns ON at the end of the 1st pulse width measurement. During measurement in the always measurement mode, it stays ON. ■Corresponding devices The device numbers corresponding to each channel are as follows. CPU module High-speed pulse input/output module First module Second module...
Page 312
Rising edge ring counter value The ring counter value when the rising edge is detected is stored. ■Corresponding devices The device numbers corresponding to each channel are as follows. CPU module High-speed pulse input/output module First module Second module Third module Fourth module CH10 CH11...
Page 313
Pulse width maximum value The maximum value of the pulse width is stored. • When logic switching is set to positive logic, the difference from the rising edge up to the falling edge. • When logic switching is set to negative logic, the difference from the falling edge up to the rising edge. •...
Page 314
Period latest value The latest value of the period is stored. • When logic switching is set to positive logic, the difference from the previous rising edge up to the latest rising edge. • When logic switching is set to negative logic, the difference from the previous falling edge up to the latest falling edge.
Page 315
Period minimum value The minimum value of the period is stored. • When logic switching is set to positive logic, the difference from rising edge to rising edge. • When logic switching is set to negative logic, the difference from the previous falling edge up to the latest falling edge.
Cautions when using the pulse width measurement function • When the HCMOV/DHCMOV instruction is used, the latest ring counter value, pulse width, cycle, maximum value, and minimum value can be obtained. • The measurement mode can be changed using the special relays. Note, however, that the measurement mode cannot be changed during pulse width measurement.
Page 317
Program An operation diagram and program are shown below. ■Operation diagram CH1(X1) CH2(X2) This duration is measured ■Program Command input Measurement of the CH1 and CH2 pulse width starts HIOEN FEND SM400 Interrupt DHCMOV SD5020 The latest rising edge value of CH1 is transferred to D1 and D0 pointer DHCMOV SD5040 The latest rising edge value of CH2 is transferred to D3 and D2...
25.4 Pulse Catch Function This section explains the pulse catch function. Outline of pulse catch function The pulse catch function enables pulse signals that are incompletely sampled in regular input processing to be caught. Inputs X0 to X17 on the CPU module and all inputs on the high-speed pulse input/output module can be used on up to 40 channels (CPU module: 8 points, high-speed pulse input/output module 8 points ...
Page 319
■FX5U/FX5UC CPU module and high-speed pulse input/output module • Input response time Input response times are shown below. FX5U-32M, FX5UC-32M FX5U-64M, FX5U-80M, High-speed pulse input/output Input response time FX5UC-64M, FX5UC-96M module 5 s X0 to X5 X0 to X7 X to X+5 100 s X6 to X17 X10 to X17...
Pulse catch function execution procedure The procedure for executing the pulse catch function is explained below. Check the pulse catch specifications. Check specifications such as the input response time of the pulse catch. (Page 316 Specifications of pulse catch function) Connect the CPU module to the external device.
Page 321
Displayed items Item Description Setting range Default General/Interrupt/Pulse Set the function to be used. • General-purpose Input General-purpose Catch Set to "Interrupt (Rising) + Pulse Catch". • Interrupt (Rising) Input • Interrupt (Falling) • Interrupt (Rising + Falling) • Interrupt (Rising) + Pulse Catch ■High-speed pulse input/output module Add the high-speed pulse input/output module.
Operation of pulse catch function Operation of the pulse catch function is explained below. Basic operation of pulse catch function The corresponding input device is turned ON for the duration of the scan following the scan where the pulse signal is detected.
■Operation when a pulse having an ON width of two scans or more is input The input device is turned ON for one scan only. END/Step 0 END/Step 0 Step 0 Program External Input signal turns ON input signal Input device 1 scan ON Cautions when using the pulse catch function •...
Specifications of FX3-compatible pulse catch function This specifications of the FX3-compatible pulse catch function are explained below. Performance specifications FX3-compatible pulse catches can be used on inputs X0 to X7. ■FX5S/FX5UJ CPU module • Input response time Input response times are shown below. FX5S/FX5UJ CPU module Input response time 10 s...
FX3-compatible pulse catch function execution procedure The procedure for executing the FX3-compatible pulse catch function is explained below. Check the FX3-compatible pulse catch specifications. Check specifications such as the input response time and corresponding special relay of the FX3-compatible pulse catch. (Page 322 Specifications of FX3-compatible pulse catch function) Connect the CPU module to the external device.
Operation of FX3-compatible pulse catch function Operation of the FX3-compatible pulse catch function is explained below. Operation of FX3-compatible pulse catch function When the status of the input (X0 to X7) changes OFFON, a special relay (SM8170 to SM8177) is immediately set to ON by interrupt processing.
25.6 General-purpose Input Functions The FX5 PLC general-purpose inputs are explained below. Outline of general-purpose input functions For general-purpose inputs of the FX5 PLC, the input response time can be set by parameters. Specifications of general-purpose inputs Performance specifications Input response times can be set to general-purpose inputs. ■FX5S CPU module •...
Page 328
■FX5UJ CPU module • Input response time setting Input response times that can be set are shown below. The default value is 10 ms. Input number set value Input response time set value No Setting, 10 s, 50 s, 0.1 ms, 0.2 ms, 0.4 ms, 0.6 ms, 1 ms, 5 ms, 10 ms, 20 ms, 70 ms X0 to X377 •...
Page 329
■FX5U/FX5UC CPU module • Input response time setting Input response times that can be set are shown below. The default value is 10 ms. Input number set value Input response time set value No Setting, 10 s, 50 s, 0.1 ms, 0.2 ms, 0.4 ms, 0.6 ms, 1 ms, 5 ms, 10 ms, 20 ms, 70 ms X0 to X577 The value obtained by adding on the value of the hardware filter is the actual input response time.
General-purpose input function parameters This section explains the general-purpose input parameters. Set the input response time parameters in GX Works3. Parameter setting This section explains how to set the input response time parameters. Set the input response time. Navigation window [Parameter] [Module model name] [Module Parameter] [Input Response Time] Window Displayed items Item...
25.7 PWM Function This chapter explains the PWM function. Outline of PWM output The CPU module and the high-speed pulse input/output module allow PWM output on up to 12 channels. For PWM output, the output channel assignment, pulse/cycle units, output pulse logic, pulse width, cycle, etc. are set using parameters, and the HIOEN/DHIOEN instruction is used to start/stop pulse output.
Page 332
■FX5U/FX5UC CPU module Output number Period Pulse width 1 s units 1 s units FX5U/FX5UC CPU module 1 ms units 1 ms units Y0 to Y3 1 to 2147483 ms 1 to 2147483647s 1 to 2147483 ms 1 to 2147483647s Y4 to Y7 1 to 2147483 ms 400 to 2147483647s...
Page 333
The logical settings like output destination, cycle, pulse width, output pulse logic, etc. are set in parameters, and the HIOEN/ DHIOEN instruction is used to execute pulse output. For parameters, refer to Page 332 PWM output parameters. For the HIOEN/DHIOEN instruction, refer to MELSEC iQ-F FX5 Programming Manual (Instructions, Standard Functions/ Function Blocks).
PWM output function execution procedure The procedure for executing the PWM output function is explained below. Check the specifications of PWM output. Check specifications such as pulse output performance of PWM output. (Page 329 PWM output specifications) Connect the CPU module to the external device. For details on wiring to external devices, refer to the following manual MELSEC iQ-F FX5S/FX5UJ/FX5U/FX5UC User's Manual (Hardware) Set the parameters.
Page 335
Displayed items Item Description Setting range Default Use PWM Output Set whether to use PWM output or not. • Disable Disable • Enable Output Signal Set the output destination device of output signal. Y0 to Y7 Pulse Width/Cycle Unit Set pulse width/cycle unit.
Page 336
■High-speed pulse input/output module Add the high-speed pulse input/output module. Navigation window [Parameter] [Module Information] Right-click Add New Module After adding the high-speed pulse input/output module, make settings on the screen displayed from the following operation. Navigation window ...
Details of special relays/special registers Details of special relays/special registers used in PWM output are explained below. Operation monitor This device is for monitoring the operation/stopped status of PWM output. ■Corresponding devices The device numbers corresponding to each channel are as follows. CPU module High-speed pulse input/output module First module...
Page 338
PWM output abnormal end flag This device is for monitoring the end status (abnormal end) of PWM output. ■Corresponding devices The device numbers corresponding to each channel are as follows. CPU module High-speed pulse input/output module First module Second module Third module Fourth module CH10...
Page 339
Pulse width The pulse width of PWM output is stored. ■Corresponding devices The device numbers corresponding to each channel are as follows. CPU module High-speed pulse input/output module First module Second module Third module Fourth module CH10 CH11 CH12 SD5303, SD5319, SD5335, SD5351,...
Page 340
Number of output pulses current value monitor The current value of the number of output pulses of PWM output is stored. ■Corresponding devices The device numbers corresponding to each channel are as follows. SD5307, SD5306 SD5323, SD5322 SD5339, SD5338 SD5355, SD5354 ■Update timing The timing to reflect the device in operation is as follows.
Cautions when using the PWM function • Set the pulse width and period for each module as follows. Module Pulse width Period FX5S CPU module 5s or more 10s or more FX5UJ CPU module 2s or more 5s or more FX5U/FX5UC CPU module High-speed pulse input/output module •...
Page 342
Program An operation diagram and program are shown below. ■Operation diagram X0 input Delay time: 50 ms PWM output PWM output start 1 pulse output 10 ms ■Program SM402 IMASK Interrupt program is permitted. SM400 SM402 DHCMOV SD5300 The number of pulses to be output is set. Y0 is reset before PWM is output.
PART 3 POSITIONING FUNCTIONS This part consists of the following chapters. 26 OUTLINE 27 FUNCTION LIST 28 SPECIFICATIONS 29 POSITIONING CONTROL FUNCTION 30 POSITIONING PARAMETER 31 POSITIONING INSTRUCTION 32 TABLE OPERATION 33 PROGRAMMING 34 TROUBLESHOOTING...
OUTLINE The CPU module (transistor output) and high-speed pulse input/output module can perform positioning control by outputting pulse signals to servo motors or stepping motors. Increase the pulse frequency to increase the motor speed. Increase the number of pulses to increase the number of motor revolutions. In other words, set the pulse frequency to determine the workpiece transfer (positioning) speed.
26.2 Setup Procedure for Positioning Control Check specifications of incorporated positioning functions For performance specifications, input specifications and output specifications, refer to Page 346 SPECIFICATIONS. For control function and auxiliary function, refer to Page 358 POSITIONING CONTROL FUNCTION. For connection equipment specifications, refer to the manual for each connection equipment. System configuration and unit selection Refer to the following manual and the manual for each connection equipment.
FUNCTION LIST When the positioning instructions and the positioning parameters are used together, various positioning operations are enabled. Page 419 POSITIONING INSTRUCTION Page 376 POSITIONING PARAMETER The positioning functions of the FX5 PLC are shown below. Positioning operation pattern Reference Positioning operation pattern Reference JOG operation (substituted by variable speed operation)
Page 347
Positioning operation pattern Reference Positioning operation pattern Reference Interrupt stop Page 362 Operation speed Speed Start Interrupt Transfer distance *1 Only FX5S/FX5U/FX5UC CPU module and high-speed pulse input/output module support this operation. 27 FUNCTION LIST...
SPECIFICATIONS For general specifications, power supply and system configuration, refer to the following manuals. MELSEC iQ-F FX5S/FX5UJ/FX5U/FX5UC User's Manual (Hardware) 28.1 Performance Specifications The following list shows performance specifications of the positioning function. For details on positioning parameter, refer to Page 376 POSITIONING PARAMETER. Item Description FX5S CPU module...
Page 349
Item Description FX5S CPU module FX5UJ CPU FX5U/FX5UC CPU High-speed pulse module module input/output module Positioning Pulse output mode PULSE/SIGN mode PULSE/SIGN mode PULSE/SIGN mode CW/CCW mode CW/CCW mode Positioning Control unit Motor system, machine system, multiple system, range Number of pulses per 0 to 2147483647 rotation Travel distance per...
28.2 Input Specifications The input specifications of the CPU module and high-speed pulse input/output module are explained below. Note that the simultaneous turning-on rate of the CPU module is restricted. For details on this restriction, refer to the following manuals. MELSEC iQ-F FX5S/FX5UJ/FX5U/FX5UC User's Manual (Hardware) FX5S CPU module Item...
Page 351
FX5UJ CPU module Item Specifications Input signal voltage 24 V DC +20%, -15% Input impedance X0 to X7 4.3 k X10 and subsequent 5.6 k Input signal current X0 to X7 5.3 mA/24 V DC X10 and subsequent 4.0 mA/24 V DC ON input sensitivity current X0 to X7 3.5 mA or more...
Page 352
FX5UC CPU module Item Specifications Input signal voltage 24 V DC +20%, -15% Input impedance X0 to X17 4.3 k X20 or 5.6 k subsequent Input signal current X0 to X17 5.3 mA/24 V DC X20 or 4.0 mA/24 V DC subsequent ON input sensitivity current X0 to X17...
Input assignment Input numbers of the CPU module and high-speed pulse input/output module are assigned as follows. For parameter settings in GX Works3, refer to Page 376 POSITIONING PARAMETER. CPU module Application Input Remarks number Stop command All input Connect a line to any input. points If the line-connected input is turned on, the following operations stop the pulse output.
Page 354
High-speed pulse input/output module Application Axis Input Remarks number Stop command All axes All input Connect a line to any input. points If the line-connected input is turned on, the following operations stop the pulse output. • Turn off the positioning instruction signal. •...
28.3 Output Specifications This section describes the transistor output specifications of the CPU module and high-speed pulse input/output module. Note that the simultaneous turning-on rate of the CPU module is restricted. For details on this restriction, refer to the following manuals.
Page 356
High-speed pulse input/output module For MELSERVO series servo amplifiers, use a sink input/sink output type FX5-16ET/ES-H. Item Specifications External power supply 5 to 30 V DC Output type FX5-16ET/ES-H Transistor/sink output FX5-16ET/ESS-H Transistor/source output Maximum load 1.6 A/8 point common Open-circuit leakage current 0.1 mA or less at 30 V DC Voltage drop when ON...
Page 357
■FX5-16ET/ES-H FX5-16ET/ES-H Pulse train signal Direction signal Y +4 Servo amplifier Grounding (Drive unit) 5 to 24 V DC *1 To ground the unit, refer to the servo amplifier (drive unit) manual. If the grounding method is not specified, carry out class-D grounding (grounding resistance: 100 or less). Source internal output circuit ■FX5S/FX5UJ/FX5U CPU module CPU module...
■FX5-16ET/ESS-H FX5-16ET/ESS-H Pulse train signal Direction signal Y +4 Servo amplifier Grounding (Drive unit) 5 to 24 V DC *1 To ground the unit, refer to the servo amplifier (drive unit) manual. If the grounding method is not specified, carry out class-D grounding (grounding resistance: 100 or less). *2 For MELSERVO series servo amplifiers, use an FX5-16ET/ES-H (sink output type).
Page 359
High-speed pulse input/output module The assignment is determined according to the output mode specified in GX Works3. Application Output number First module Second module Third module Fourth module Axis 5 Axis 6 Axis 7 Axis 8 Axis 9 Axis 10 Axis 11 Axis 12 Pulse output...
POSITIONING CONTROL FUNCTION The positioning control outputs pulses with each positioning instruction and operates based on the positioning parameters (such as for speed and for operation flag). This chapter describes control patterns that are available for combinations of the positioning instructions and the positioning parameters. For details on each positioning instruction, refer to Page 419 POSITIONING INSTRUCTION.
29.2 OPR Control This section describes details of the OPR control. Mechanical OPR The DSZR/DDSZR instruction starts the OPR operation in the direction set by the OPR direction setting. (Page 402 OPR Direction) After the speed has reached the OPR speed, the operation will be performed at the specified OPR speed. Deceleration is started when the near-point dog signal is detected and the operation continues at creep speed.
29.3 Positioning Control This section describes details of the positioning control. 1-speed positioning Acceleration is started at the bias speed when pulses are output by the positioning instruction. After the speed has reached the specified speed, the operation will be performed at the specified speed up to the point that deceleration must be performed.
Multi-speed operation 1-speed positioning operation (excluding the deceleration stop) is continued several times by the table operation instruction. (Page 360 1-speed positioning) At the last table, the operation decelerates and stops in the point that the speed can be reduced. The multi-speed positioning is performed when two or more 1-speed positionings are operated continuously by the continuous operation of the DRVTBL/DRVMUL instruction.
Interrupt stop 1-speed positioning is performed by the table operation instruction. (Page 360 1-speed positioning) When the interruption input signal 1 is detected during pulse output operation, the operation decelerates and stops. (Page 395 Interrupt Input Signal 1) Both relative address and absolute address can be used for the interrupt stop. Acceleration Deceleration time...
Interrupt 1-speed positioning Acceleration is started at the bias speed when pulses are output by the positioning instruction. After the speed has reached the specified speed, the operation will be performed at the specified speed. When the interrupt input signal 1 is detected, the operation continues at the same speed as the command speed up to the point that deceleration must be performed, and decelerates and stops the pulse output at the position specified by the positioning address.
Interrupt 2-speed positioning The variable speed operation of table 1 is performed by the table operation instruction. (Page 365 Variable speed operation) When the interrupt input signal 2 is turned on, the interrupt 1-speed positioning of table 2 is performed from acceleration/deceleration.
Variable speed operation Acceleration is started at the bias speed when pulses are output by the positioning instruction. After the speed has reached the specified speed, the operation will be performed at the specified speed. When the command speed is changed, the operation can change the speed to the specified speed.
Simple linear interpolation operation (2-axis simultaneous start) The work piece will travel to the target position at the specified vector speed (interpolation operation) by the table operation instruction. In this interpolation operation of two axes, the CPU module calculates the start timing based on the positioning address and the command speed set in the table.
29.4 Auxiliary Function This section describes auxiliary functions of the positioning. Dog search function If the forward rotation limit and the reverse rotation limit are used, the DOG search function can be used for OPR. (Page 370 Forward limit and reverse limit) The OPR operation depends on the OPR start position. Near-point Reverse rotation limit 1 Rear end...
Page 370
(3) If the start position is after the near-point dog: When the DSZR/DDSZR instruction is executed, OPR will be started. Transfer operation will be started in the OPR direction at the OPR speed. If the reverse rotation limit 1 (reverse rotation limit) is detected, the speed will decelerate, and the operation will stop. Transfer operation will be started in the opposite direction of the OPR direction at the OPR speed.
Dwell time Set the time (dwell time) until the complete flag turns on after positioning operation is completed between 0 and 32767 ms. (Page 417 Complete flag) When the positioning operation is completed, the complete flag remains off until the dwell time has elapsed.
Forward limit and reverse limit When using the servo motor, the forward rotation limit and the reverse rotation limit can be set for the servo amplifier. To use the DOG search function for OPR, or to set the forward rotation limit or the reverse rotation limit for operations other than OPR using the CPU module, set the forward rotation limit 1 (LSF) and reverse rotation limit 1 (LSR) for the CPU module so that these limit switches can be activated before the forward rotation limit 2 or reverse rotation limit 2 of the servo amplifier.
Positioning address change during positioning operation This function changes positioning address during positioning operation. • For positioning instructions, by specifying a word device as an operand and changing the value, positioning address can be changed during positioning operation. • For the table operation, by setting the positioning table data in devices and changing the operand value of the control method of a table, positioning address can be changed during positioning operation.
Command speed change during positioning operation This function changes operation speed during positioning operation. • For positioning instructions, by specifying a word device as an operand that specifies the command speed (for the DSZR/ DDSZR instruction, the OPR speed and the creep speed) and changing the value, operation speed can be changed during operation.
Pulse decelerate and stop When the pulse decelerate and stop command is turned on during positioning operation, the positioning operation can be decelerated and stopped. (Page 397 Pulse decelerate and stop command) When positioning operation is stopped by the pulse decelerate and stop command, remaining distance operation can be performed with positioning instructions. (Page 374 Remaining distance operation) The following table lists the corresponding devices.
Remaining distance operation When pulse output is stopped by the pulse decelerate and stop command during positioning instruction operation and the remaining distance operation enabled is ON, the remaining distance operation ready status is acquired. (Page 400 Remaining distance operation, Page 373 Pulse decelerate and stop) When the pulse decelerate and stop command turns off, the remaining distance operation starts.
Multiple axes simultaneous activation Tables for up to 4 axes can be activated at the same time with the DRVMUL instruction. Continuous operation can be performed. (Page 551 Continuous operation) After the operation is started, each axis operates independently, thus, table shift timing during continuous operation does not need to be considered.
POSITIONING PARAMETER This chapter describes the parameters for the positioning function and relevant devices. Set the parameters of the positioning using the high speed I/O parameter, operand, and special devices. For the parameters of the table operation, refer to Page 510 TABLE OPERATION. 30.1 Setting Method The following list shows the setting methods for the positioning parameter.
Basic setting The items set in basic setting correspond to the positioning parameters of each axis. In special devices corresponding to parameters, values set in the basic setting are stored as the initial values when the power of CPU module is STOPRUN. When items occupying I/O are changed, the high speed I/O assignment parameters are also refreshed together.
Page 380
■High-speed pulse input/output module Navigation window Parameter Module Information Right-click Add New Module After adding the high-speed pulse input/output module, make settings on the screen displayed from the following operation. Navigation window Parameter Module Information 1 to 16 (high-speed input/output module) Module Parameter ...
Page 381
Parameter list The following table lists the positioning parameters that can be set in Basic Setting. Item Setting value Reference CPU module High-speed pulse input/output module Axis Axis +1 Basic Parameter 1 Pulse Output Mode 0: Not Used, 1: PULSE/SIGN, 2: CW/CCW Page 382 *2*3 Output Device...
*1 Only FX5S/FX5U/FX5UC CPU module and high-speed pulse input/output module can use this item or setting. *2 PULSE/CW is fixed to the output device (Y) of "axis number -1". *3 In the CW/CCW mode, PULSE/CW and SIGN/CCW are fixed to Y0 (CW)/Y2 (CCW), Y1 (CW)/Y3 (CCW). *4 The number in ...
Output check The usage status of the output device (Y) can be checked from the output check window. Window ■CPU module [Navigation window] [Parameter] Module model name [Module Parameter] [High Speed I/O] [Output Confirmation] [Positioning] ■High-speed pulse input/output module [Navigation window] ...
30.2 Details of Parameters The following describes the details of the parameters and relevant devices. Note that parameters and relevant devices of axis 4 are available only for the FX5S/FX5U/FX5UC CPU module. Common item The following lists the setting items related to common aspects of positioning operation. Pulse Output Mode Setting method: High Speed I/O Parameter Specify the pulse output method.
Page 385
■CW/CCW mode • CPU module Only FX5S/FX5U/FX5UC CPU module support the CW/CCW mode. Forward Reverse Forward Reverse rotation rotation rotation rotation Pulse output Pulse output destination Y0 destination Y1 (Forward pulse train) (Forward pulse train) Rotation direction Rotation direction specification Y2 specification Y3 (Reverse pulse train) (Reverse pulse train)
Page 386
■SIGN/CCW SIGN output in PULSE/SIGN mode or CCW output in CW/CCW mode is selected. For the CW/CCW mode, this parameter does not need to be set for CCW because the axis number and output device (Y) that executes outputs are fixed. Rotation Direction Setting Setting method: High Speed I/O Parameter, Special Device Set the relationship between motor rotation direction and increase or decrease of the current address.
Page 387
Unit Setting Setting method: High Speed I/O Parameter Set the unit system (user unit) to be used for the positioning function. The selected unit system is applied to the speed used for positioning instructions and operands of positioning-related special devices and positioning instructions (command speed, positioning address) as a unit. The unit types of the positioning control include the motor system unit, machine system unit, and multiple system unit.
Page 388
■When set in m In the positioning operation with transfer distance of 100 [m] and operation speed of 6 [cm/min], pulses are output as follows. • Number of pulses to be generated = Transfer distance Transfer distance per rotation Number of pulses per rotation = 100 [m] ...
Page 389
Position Data Magnification Setting method: High Speed I/O Parameter The values of positioning addresses can be multiplied by the Position Data Magnification. The available multiplying factors include single, 10 times, 100 times, and 1000 times. The following shows a setting example. For magnification by 1000 times For the positioning address of 123, the following shows the actual address and transfer distance.
Items related to speed The following describes the setting items related to speed. Command speed Setting method: Operand Set the speed used in positioning operation. The user unit is set by unit setting. (Page 385 Unit Setting) The setting range differs depending on the positioning instruction and table operation control method. Set the command speed to 200 kpps or lower in pulse (-200 kpps to +200 kpps for the PLSV/DPLSV instruction or table operation instruction...
Page 391
Current speed (user unit) This indicates the positioning operation speed. The user unit is set by unit setting. (Page 385 Unit Setting) The range is 0 to 2147483647 (200 kpps or lower in pulse). *1 100 kpps for the FX5S CPU module The following table lists the corresponding devices.
Page 392
Bias Speed Setting method: High Speed I/O Parameter, Special Device Set the lower limit (bias speed) for command speed, OPR speed, and creep speed. The user unit is set by unit setting. (Page 385 Unit Setting) The setting range is as follows. Module Motor/multiple unit system Machine unit system...
Page 393
Deceleration Time Setting method: High Speed I/O Parameter, Special Device Set the time required for deceleration from the maximum speed to the bias speed. The setting range of deceleration time is 0 to 32767 ms. If command speed is slower than the maximum speed, the actual deceleration time becomes shorter than the set time.
Items related to positioning address The following describes the setting items related to positioning address. Positioning address Setting method: Operand Set the positioning address. The user unit is set by unit setting, and the value indicated does not include positioning data magnification.
Page 395
■Operand: Table Operation Control Method Table operation control method Operand Range Reference 1: 1 Speed Positioning (Relative Address Specification) Operand 1 -2147483648 to +2147483647 Page 515 (When the positioning table 2: 1 Speed Positioning (Absolute Address Specification) Page 518 data is set to use device: 3: Interrupt 1 Speed Positioning Page 520 Head device +0, +1)
Page 396
Current address Setting method: Special Device Store the current address operated by the positioning instruction. The current address stores an absolute address and is increased or decreased depending on the rotation direction. ■Current address (user unit) The user unit is set by unit setting, the value of the following formula (Value not including positioning data magnification) is stored.
• Writing can be performed to the current address (pulse unit) of FX5 dedicated device only by the HCMOV/ DHCMOV instruction. However, writing to the current address (pulse unit) during positioning operation is disabled. • Reading can be performed to the current value by the HCMOV/DHCMOV instruction. •...
Page 398
■Device No. The interrupt input signal 1 assignment is as follows. For the high-speed pulse input/output module, the input is fixed as shown below, so setting is invalid. CPU module High-speed pulse input/output module First module Second module Third module Fourth module Axis 1 Axis 2...
Page 399
Pulse decelerate and stop command Setting method: Special Device During the execution of a positioning instruction, if the pulse decelerate and stop command is turned on, the pulses being output will decelerate and stop. The instruction of the pulse output which is stopped ends with error after decelerate and stop. However, the PLSY/DPLSY instruction (when unlimited pulses are output), the PLSV/DPLSV instruction and table operation instruction (control method: [4: Variable Speed Operation] or [5: Table Transition Variable Speed Operation]) end normally.
Page 400
External Start Signal Setting method: High Speed I/O Parameter Set this parameter to start positioning at high-speed using an external input signal. This parameter can be used as a start command of the remaining distance operation or table shift command of stepping operation of the DRVTBL instruction.
Page 401
Reverse limit Setting method: Special Device Reverse limit notifies the CPU module of the reverse limit. If reverse limit is turned on while positioning operation is being output in the reverse direction, the speed will decelerate, and the operation will stop. If reverse limit is turned on while positioning operation is being output in the forward direction, it is ignored.
Page 402
Remaining distance operation Setting method: Special Device For the remaining distance operation, refer to Page 374 Remaining distance operation. ■Remaining distance operation enabled Remaining distance operation enabled enables remaining distance operation with remaining distance operation-compatible instructions. If remaining distance operation enabled is on when deceleration stop is performed with the pulse decelerate and stop command, the remaining distance operation ready status is acquired.
Items related to pulse Y output instruction The following lists the items related to the pulse output (PLSY/DPLSY) instruction. Only CPU module is supported. Total number of pulses output from axis 1 and axis 2 Setting method: Special Device The total number of the pulses output by PLSY/DPLSY instruction in axis 1 and axis 2. The total number is increased by forward rotation pulses, regardless of the setting of rotation direction, because the PLSY/DPLSY instruction outputs only forward rotation pulses.
Items related to OPR The following lists the items related to the OPR. (Page 359 Mechanical OPR, Page 429 Mechanical OPR) For the input interrupt function, refer to the following. Page 233 HIGH-SPEED INPUT/OUTPUT FUNCTION OPR Enabled/Disabled Setting method: High Speed I/O Parameter Specify whether to use the OPR.
Page 405
Starting Point Address Setting method: High Speed I/O Parameter, Special Device Set the origin address for OPR. The user unit is set by unit setting, and the value indicated does not include positioning data magnification. (Page 385 Unit Setting, Page 387 Position Data Magnification) The origin address range is -2147483648 to +2147483647. ■Special Device Name CPU module...
Page 406
Creep speed Setting method: Operand, Special Device Set the creep speed at OPR of the machine. The user unit is set by unit setting. (Page 385 Unit Setting) The setting range is as follows. Module Motor/multiple unit system Machine unit system FX5S CPU module 1 pps to 100 kpps 1 to 2147483647...
Page 407
Clear Signal Output Specify the output device (Y) to clear droop pulses of the servo amplifier at completion of OPR. ■Disabled/Enabled Setting method: High Speed I/O Parameter, Special Device Specify whether to use the clear signal output. ■High Speed I/O Parameter When [0: Disabled] is selected, the clear signal output is not used.
Page 408
OPR Dwell Time Setting method: High Speed I/O Parameter, Special Device Set the time until the completion flag for the DSZR/DDSZR instruction is turned on when OPR is completed. The setting range for the OPR dwell time is 0 to 32767 ms. (Page 369 Dwell time) ■Special Device Name CPU module...
Page 409
Zero Signal Specify the zero signal to be used in OPR. ■Device No. Setting method: High Speed I/O Parameter, Operand Zero signal is assigned forcibly to a specified input. To use the near-point dog signal for stop, set the device to which the near-point dog signal is assigned. ■High Speed I/O Parameter The zero signal assignment is as follows.
Page 410
■OPR Zero Signal Counts Setting method: High Speed I/O Parameter, Special Device Set the number of zero signals until OPR stops after detection of the near-point dog. The timing of counting start of the number of zero signals can be selected using the count start timing between the front end and rear end of the near-point dog. The setting range is from 0 to 32767.
Items related to table operation The following lists the items specific to table operation. Dwell Time Setting method: Operand Set the time until the completion flag is turned on when table operation is completed. (Page 369 Dwell time) ■Operand: Table Operation Control Method Table operation control method Operand Range...
Page 412
Interrupt Input Signal 2 Device No. Setting method: Operand Set an interrupt input device (X) for shifting to the next table after table operation control method [5: Table Transition Variable Speed Operation]. Only CPU module is supported. ■Operand: Table Operation Control Method Table operation control method Operand Range...
Page 413
M No. for Jump Condition Setting method: Operand Set an internal relay (M) to be used as a jump condition of the table operation control method [10: Condition Jump]. When M No. for jump condition is on, the condition jump is executed. ■Operand: Table Operation Control Method Table operation control method Operand...
Page 414
Interpolation Speed Specified Method Setting method: High Speed I/O Parameter Specify the speed specification method for interpolation operation in the table operation. Only FX5S/FX5U/FX5UC CPU module and high-speed pulse input/output module support interpolation operation. When [0: Composite Speed] is selected, specify the moving speed of the control target and then the CPU module calculates the speed of each axis.
Page 415
Table shift command Setting method: Special Device Table shift command is to switch to the following table in stepping operation of the DRVTBL instruction. When stepping operation for a table is completed, if table shift command is OFFON, the positioning operation for the following table is started.
Page 416
Positioning error (error occurrence table No.) Setting method: Special Device Use the positioning error to check the table number where a table operation error occurred. For the error, refer to Page 781 Error check. ■Special Device Name CPU module High-speed pulse input/output module First module Second module Third module Fourth module...
Items related to monitor The following describes the items related to monitor, such as the positioning address and speed. Pulse output monitor Use the pulse output monitor to check whether pulses are being output from the output device (Y) set as an output device. The pulse output monitor shows the pulse output status even when positioning operation is stopped.
Page 418
Positioning error occurrence Setting method: Special Device Use the positioning error occurrence to check whether or not an error specific to the positioning instruction occurs. This flag turns on when an error specific to the positioning instruction occurs. ■Special Device Name CPU module High-speed pulse input/output module...
Page 419
Complete flag Setting method: Operand Use the complete flag to check whether or not a positioning instruction is completed. Note that the operation differs depending on the positioning instruction or the control method of the table operation. For details, refer to the complete flag of each positioning instruction and table operation control method.
Page 420
■Special Device Name CPU module High-speed pulse input/output module First module Second module Third module Fourth module Axis 1 Axis 2 Axis 3 Axis 4 Axis 5 Axis 6 Axis 7 Axis 8 Axis 9 Axis 10 Axis 11 Axis 12 Instruction SM8029 (FX3 compatible device) execution...
POSITIONING INSTRUCTION This chapter describes positioning instructions that are used in the positioning function. For the expression and execution type of the applied instruction, refer to MELSEC iQ-F FX5 Programming Manual (Instructions, Standard Functions/Function Blocks). 31.1 Common Items This section describes the common items in the positioning instruction. For auxiliary functions, refer to Page 367 Auxiliary Function.
Page 422
(2) Bias speed < Command speed < Start speed: Start speed = Command speed In the case of Bias speed (5 pps) < Command speed (10 pps) < Start speed (Approx. 13.6 pps) Speed Acceleration time (7 ms) Maximum speed (100 pps) Maximum speed: 100 pps Bias speed: 5 pps Approx.
Pulse output stop The following table lists methods to stop pulse output, other than normal completion. Select the stop method according to whether to use deceleration (deceleration stop or immediate stop) and to use the remaining distance operation. (Page 374 Remaining distance operation) Operation Deceleration Abnormal end...
Operation at an error or abnormal end The following describes operation at an error or abnormal end. Operation at an abnormal end When operation of the positioning function ends with an error, pulse output is stopped. • When an error occurs at start of a positioning instruction, pulse output is not started. Pulse output is also not started when a positioning instruction is executed with pulse output stopped, such as the pulse output stop command is on.
31.2 Pulse Y Output This instruction generates a pulse signal. It generates only forward rotation pulses and increases the value of the current address. Only CPU module is supported. PLSY/DPLSY This instruction executes pulse output. Ladder FBD/LD ENO:=PLSY(EN,s,n,d); ENO:=DPLSY(EN,s,n,d); Setting data ■Description, range, data type (PLSY) •...
Page 426
■Description, range, data type (DPLSY) • FX5 operand Operand Description Range Data type Data type (label) Word device number storing command speed or 0 to 2147483647 32-bit signed binary ANY32 data (User system unit) Word device number storing the positioning address 0 to 2147483647 32-bit signed binary ANY32...
Related devices The following lists the related special devices. Related devices of axis 4 are available only for the FX5S/FX5U/FX5UC CPU module. Special relays FX5 dedicated FX3 compatible Name High Reference Speed I/O Axis 1 Axis 2 Axis 3 Axis 4 Axis 1 Axis 2 Axis 3...
Outline of operation For each speed, refer to Page 388 Items related to speed. Drive contact PLSY/DPLSY Positioning address (n) Command speed (s) Drive contact Instruction execution complete flag SM8029 Basic operation The following describes the basic operation. After the drive contact is turned on, pulse output is started in command speed. After reached the positioning address, pulse output is stopped.
Page 429
Operand specification ■When FX5 operand is specified For (s), specify the command speed. Set to a value 0 to 200 kpps in pulse. For the FX5S CPU module, set to a value 0 to 100 kpps. • PLSY: 0 to 65535 (User system unit) •...
Items related to speed • If the command speed is set to 0 when the instruction is activated, the operation ends with an error. • If the command speed is changed to 0 during operation, the operation does not end with errors but it immediately stops. As long as the drive contact is on, changing the command speed restarts pulse output.
31.3 Mechanical OPR If forward rotation pulses or reverse rotation pulses are generated, the positioning instruction will increase or decrease the value of the current address. When the power of the CPU module is turned off, the value stored in the current address will be erased. For this reason, after turning on the power again, be sure to adjust the value of the current address in the CPU module to the current position of the machine.
Page 432
■Description, range, data type (DDSZR) Operand Description Range Data type Data type (label) (s1) Word device number storing OPR speed or data 1 to 2147483647 32-bit signed binary ANY32 (User system unit) (s2) Word device number storing creep speed or data 1 to 2147483647 32-bit signed binary ANY32...
Related devices The following lists the related special devices. Related devices of axis 4 are available only for the FX5S/FX5U/FX5UC CPU module. Special relays ■CPU module FX5 dedicated FX3 compatible Name High Reference Speed I/O Axis 1 Axis 2 Axis 3 Axis 4 Axis 1 Axis 2...
Page 434
■High-speed pulse input/output module First module Second module Third module Fourth module Name High Reference Speed I/O Axis 5 Axis 6 Axis 7 Axis 8 Axis 9 Axis 10 Axis 11 Axis 12 Parameter SM8029 (FX3 compatible device) Instruction execution Page 417 complete flag SM8329 (FX3 compatible device)
Page 435
■High-speed pulse input/output module First module Second module Third module Fourth module Name High Reference Speed I/O Axis 5 Axis 6 Axis 7 Axis 8 Axis 9 Axis 10 Axis 11 Axis 12 Parameter SD5660, SD5700, SD5740, SD5780, SD5820, SD5860, SD5900, SD5940,...
Outline of operation For each speed, refer to Page 388 Items related to speed. For the items related to OPR, refer to Page 402 Items related to OPR. Drive contact DSZR/DDSZR (s1) (s2) (d1) (d2) Speed Deceleration Acceleration time time Maximum speed OPR speed (s1) Creep speed...
Page 437
Operand specification ■When FX5 operand is specified or the DDSZR instruction is used For (s1), specify the OPR speed. Set to a value 1 pps to 200 kpps in pulse. For the FX5S CPU module, set to a value 1 to 100 kpps.
Page 438
■When the FX3 compatible operand is specified (Supported only for CPU module) For (s1), specify the near-point dog signal input device number. When an input device (X) is used, only the device that is specified with the high speed I/O parameter can be specified. The logic set with the high speed I/O parameter is applied.
Page 439
Operation of the complete flags The following describes the operation timings of the complete flags. The user-specified complete flags are valid only when specified using FX5 operand. If dwell time is specified, the user- specified complete flag turns on after the dwell time elapses. Item FX3 compatible User specification...
Program example The following is a program example of OPR operation (axis 1). Speed Deceleration time Acceleration time (800 ms) (500 ms) Maximum speed (10000 pps) OPR speed (10000 pps) Creep speed (1500 pps) Bias speed (1000 pps) Time Near-point dog signal X0 (positive logic) Zero signal X1 (positive logic) OPR zero signal counts: 1...
Caution • Detection of (the rear end and the front end of) the near-point dog will be affected by the input response time and the scan time of the sequence program. Secure 1 scan time or more from the rear end of the near-point dog to turning ON of the zero signal.
31.4 Relative Positioning This instruction performs 1-speed positioning in the incremental method (positioning operation with a relative address). While regarding the current position as the start point, specify the transfer direction and the transfer distance (relative address) to determine the target position. Transfer distance-100 Start point Transfer distance+100...
Page 444
• FX3 compatible operand (Supported only for CPU module) Operand Description Range Data type Data type (label) (s1) Word device number storing the positioning address -32768 to +32767 16-bit signed binary ANY16 or data (User system unit) (s2) Word device number storing command speed or 1 to 65535 16-bit unsigned binary ANY16...
Page 445
■Available device (DRVI/DDRVI) • FX5 operand Operand Word Double word Indirect Constant Others specification X, Y, M, L, SM, F, T, ST, C, D, W, U\G K, H B, SB, S SD, SW, R ...
Related devices The following lists the related special devices. Related devices of axis 4 are available only for the FX5S/FX5U/FX5UC CPU module. Special relays ■CPU module FX5 dedicated FX3 compatible Name High Reference Speed I/O Axis 1 Axis 2 Axis 3 Axis 4 Axis 1 Axis 2...
Outline of operation For each speed, refer to Page 388 Items related to speed. Drive contact DRVI/DDRVI (s1) (s2) (d1) (d2) Speed Acceleration Deceleration time time Maximum speed Command speed (s2) Positioning address (s1) Bias speed Bias speed Time Drive contact Instruction execution complete flag SM8029...
Page 449
Operand specification ■When FX5 operand is specified For (s1), specify the relative positioning address. (Page 392 Positioning address) Set to a value -2147483648 to +2147483647 in pulse. • DRVI: -32768 to +32767 (User system unit) • DDRVI: -2147483648 to +2147483647 (User system unit) For (s2), specify the command speed.
Page 450
■When the FX3 compatible operand is specified (Supported only for CPU module) For (s1), specify the relative positioning address. Set to a value -2147483648 to +2147483647 in pulse. • DRVI: -32768 to +32767 (User system unit) • DDRVI: -2147483648 to +2147483647 (User system unit) For (s2), specify the command speed.
Program example This program example shows a reversed operation that is performed by changing the positioning address at the current position + 70000 during relative positioning operation (axis 1). Speed Acceleration time Forward direction (500 ms) 15000 pps (Maximum speed) 10000 pps Current position...
Page 452
Program example Initial process Initial positioning address of DDRVI instruction SM402 DMOV K100000 D300 Initial pulse Positioning address to change DMOV K10000 D302 Drive DDRVI instruction SM5500 Drive Positioning Normally Abnormal DDRVI instruction instruction contact activation axis1 activation Drive DDRVI instruction in axis 1 SM5500 DDRVI D300...
31.5 Absolute Positioning This instruction performs 1-speed positioning in the absolute method (positioning operation with an absolute address). Specify the distance (absolute address) from the origin to the target position. In this case, any position can be the start point (current position).
Page 454
• FX3 compatible operand (Supported only for CPU module) Operand Description Range Data type Data type (label) (s1) Word device number storing the positioning address -32768 to +32767 16-bit signed binary ANY16 or data (User system unit) (s2) Word device number storing command speed or 1 to 65535 16-bit unsigned binary ANY16...
Page 455
■Available device (DRVA/DDRVA) • FX5 operand Operand Word Double word Indirect Constant Others specification X, Y, M, L, SM, F, T, ST, C, D, W, U\G K, H B, SB, S SD, SW, R ...
Related devices The following lists the related special devices. Related devices of axis 4 are available only for the FX5S/FX5U/FX5UC CPU module. Special relays ■CPU module FX5 dedicated FX3 compatible Name High Reference Speed I/O Axis 1 Axis 2 Axis 3 Axis 4 Axis 1 Axis 2...
Outline of operation For each speed, refer to Page 388 Items related to speed. Drive contact DRVA/DDRVA (s1) (s2) (d1) (d2) Speed Acceleration Deceleration time time Maximum speed Command speed (s2) Positioning address (s1) Bias speed Bias speed Time Drive contact Instruction execution complete flag SM8029...
Page 459
Operand specification ■When FX5 operand is specified For (s1), specify the absolute positioning address. (Page 392 Positioning address) Set to a value -2147483648 to +2147483647 in pulse. In addition, set the number of output pulses per positioning instruction execution to 2147483647 or lower. •...
Page 460
For (d2), specify the rotation direction signal output device number. (Page 384 Rotation Direction Setting) When an output device (Y) is used, only the device that is specified with the positioning parameter or a general-purpose output can be specified. However, if an output device (Y) to which PWM, PULSE/SIGN axis of another axis, or CW/CCW axis is assigned is specified, an error occurs without any operation.
Program example The following is a program example of absolute positioning (axis 1). If current address is a positive value, positioning operation would output in the reverse direction. Speed Acceleration time Deceleration time Forward direction (500 ms) (500 ms) 15000 pps (Maximum speed) 10000 pps 1000 pps...
31.6 Interrupt 1-Speed Positioning The positioning function uses the DVIT/DDVIT instruction to perform one-speed interrupt constant quantity feed. With this instruction, interrupt signals can be controlled through user programs. DVIT/DDVIT This instruction executes one-speed interrupt constant quantity feed. Ladder FBD/LD ENO:=DVIT(EN,s1,s2,d1,d2);...
Page 464
■Description, range, data type (DDVIT) • FX5 operand Operand Description Range Data type Data type (label) (s1) Word device number storing the positioning address -2147483648 to 32-bit signed binary ANY32 or data +2147483647 (User system unit) (s2) Word device number storing command speed or 1 to 2147483647 32-bit signed binary ANY32...
Page 465
■Available device (DVIT/DDVIT) • FX5 operand Operand Word Double word Indirect Constant Others specification X, Y, M, L, SM, F, T, ST, C, D, W, U\G K, H B, SB, S SD, SW, R ...
Related devices The following lists the related special devices. Related devices of axis 4 are available only for the FX5S/FX5U/FX5UC CPU module. Special relays ■CPU module FX5 dedicated FX3 compatible Name High Reference Speed I/O Axis 1 Axis 2 Axis 3 Axis 4 Axis 1 Axis 2...
Outline of operation For each speed, refer to Page 388 Items related to speed. Drive contact DVIT/DDVIT (s1) (s2) (d1) (d2) Speed Acceleration Deceleration time time Maximum speed Command speed (s2) Positioning address (s1) Bias speed Bias speed Time Drive contact Interrupt input signal 1 Instruction execution complete flag...
Page 469
Operand specification ■When FX5 operand is specified For (s1), specify the positioning address after the interrupt input signal 1 is detected. (Page 392 Positioning address) Set to a value -2147483648 to +2147483647 in pulse. • DVIT: -32768 to +32767 (User system unit) •...
Page 470
■When the FX3 compatible operand is specified (Supported only for CPU module) For (s1), specify the positioning address after the interrupt input signal 1 is detected. Set to a value -2147483648 to +2147483647 in pulse. • DVIT: -32768 to +32767 (User system unit) •...
Operation of the complete flags The following describes the operation timings of the complete flags. The user-specified complete flags are valid only when specified using FX5 operand. Item FX3 compatible User specification Instruction execution Instruction execution Instruction execution Instruction execution complete flag abnormal end flag complete flag...
Caution • When 0 is set for the positioning address (s1) at start of the instruction, the operation ends with an error. • If the positioning address (s1) is changed to 0 before the interrupt input signal 1 is detected, the operation decelerates and stops after the input interrupt occurs.
31.7 Variable Speed Operation The positioning function uses the variable speed pulse output instruction equipped with the rotation direction designation function to perform variable speed operation. This instruction can change the speed using the acceleration/deceleration speed. PLSV/DPLSV This instruction outputs variable speed pulses with an assigned rotation direction output. Ladder FBD/LD ENO:=PLSV(EN,s,d1,d2);...
Page 475
■Description, range, data type (DPLSV) • FX5 operand Operand Description Range Data type Data type (label) Word device number storing command speed or -2147483648 to +2147483647 32-bit signed binary ANY32 data (User system unit) ■FX5S CPU module (d1) Axis number from which pulses are output 16-bit unsigned binary ANY_ELEMENTARY K1 to K4...
Related devices The following lists the related special devices. Related devices of axis 4 are available only for the FX5S/FX5U/FX5UC CPU module. Special relays ■CPU module FX5 dedicated FX3 compatible Name High Reference Speed I/O Axis 1 Axis 2 Axis 3 Axis 4 Axis 1 Axis 2...
Outline of operation For each speed, refer to Page 388 Items related to speed. Drive contact PLSV/DPLSV (d1) (d2) Acceleration time Deceleration time Speed Maximum speed Command Bias speed speed (s) Bias speed Time Command speed Drive contact Instruction execution complete flag (d2) *1 When FX5 operand is specified *2 Remains on until it is turned off using program or engineering tool or the positioning instruction is next driven again.
Page 479
Operand specification ■When FX5 operand is specified For (s), specify the command speed. Set to a value -200 kpps to +200 kpps in pulse. For the FX5S CPU module, set to a value -100 kpps to +100 kpps. • PLSV: -32768 to +32767 (User system unit) •...
Page 480
Command speed • If the command speed is changed to 0 during operation, the operation does not end with errors but is decelerated to a stop. As long as the drive contact is on, changing the command speed restarts pulse output. •...
Program example The following is a program example of variable speed operation (axis 1). Speed Acceleration time Deceleration time (500 ms) (500 ms) 15000 pps (Maximum speed) 10000 pps 7000 pps 1000 pps (Bias speed) Time Current position Positioning address change input X15 (7000 pps) Positioning address...
31.8 Single-table Operation This instruction executes the control method of one specified table set in the data table with GX Works3. Only CPU module is supported. This instruction executes one table specified in the table data set in GX Works3. Ladder FBD/LD ENO:=TBL(EN,n,d);...
Outline of operation Drive contact Operand specification ■When FX5 operand is specified For (d), specify an axis number for which pulses are output. Specify an axis number whose positioning parameters are set in the high speed I/O parameters. Operation cannot be performed if any other axis number is specified.
Program example The following are program examples of using each table control method. Table transition variable speed operation The following is a program example of control method [5: Table Transition Variable Speed Operation]. Acceleration time Deceleration time Speed (500 ms) (500 ms) 15000 pps (Maximum speed)
Page 487
Program example Initial process Command speed 1 to change SM402 DMOV K7000 D900 Initial pulse Command speed 2 to change DMOV K15000 D902 Drive TBL instruction SM5500 Drive Positioning Normally Abnormal instruction instruction contact activation axis1 activation Drive TBL instruction in axis 1 SM5500 Positioning SM8029...
Page 488
Interrupt stop (relative address specification) The following is a program example of control method [6: Interrupt Stop (Relative Address Specification)]. Acceleration time Deceleration time Speed (500 ms) (500 ms) 15000 pps (Maximum speed) 10000 pps 1000 pps (Bias speed) Positioning address Current position Current position...
Page 489
Program example Drive TBL instruction SM5500 Drive Positioning Normally Abnormal instruction instruction contact activation axis1 activation Drive TBL instruction in axis 1 SM5500 Positioning SM8029 instruction instruction activation axis1 activation Instruction execution complete flag SM8329 Instruction execution abnormal end flag For the stop event, refer to Page 484 Table transition variable speed operation.
Page 490
■Axis 2 (counterpart axis) Acceleration time Deceleration time (= acceleration time of (= deceleration time of Speed reference axis) reference axis) Maximum speed (= maximum speed of reference axis) Command speed (the CPU module calculates speed) Number of output pulses: 20000 Bias speed (the CPU module Time...
Page 491
Program example Drive TBL instruction SM5500 Drive Positioning Normally Abnormal instruction instruction contact activation axis1 activation Drive TBL instruction in axis 1 SM5500 Positioning SM8029 instruction instruction activation axis1 activation Instruction execution complete flag SM8329 Instruction execution abnormal end flag Stop event axis 1 (reference axis) SM5628 Pulse stop...
31.9 Multiple-table Operation This instruction executes the control method of multiple specified tables set in the table data with GX Works3. DRVTBL This instruction executes the table data set in GX Works3 in continuous operation or stepping operation. Ladder FBD/LD ENO:=DRVTBL(EN,n1,n2,n3,d1,d2);...
Related devices The following lists the related special devices. The devices other than the following depend on the table control method. Related devices of axis 4 are available only for the FX5S/FX5U/FX5UC CPU module. Special relays ■CPU module Axis 1 Axis 2 Axis 3 Axis 4...
Outline of operation Drive contact DRVTBL (d1) (n1) (n2) (n3) (d2) Operand specification For (d1), specify an axis number (K1 to K12) for which pulses are output. Specify an axis number whose positioning parameters are set in the high speed I/O parameters. Operation cannot be performed if any other axis number is specified.
Program example The following are program examples for executing multiple tables. Stepping operation This program example shows a stepping operation that is performed on axis 1 in order of control methods [1: 1 Speed Positioning (Relative Address Specification)], [5: Table Transition Variable Speed Operation], and [3: Interrupt 1 Speed Positioning].
Page 496
■Axis #1 Positioning Data Device Control Method Positioning Command Dwell Time Interrupt Input Address Speed Signal 2 Device No. 1: 1 Speed Positioning (Relative Address 100000 pulse 10000 pps 0 ms Specification) 5: Table Transition Variable Speed 7000 pps 0 ms Operation...
Page 497
Continuous operation This program example shows a continuous operation (interrupt 2-speed positioning) that is performed on axis 1 in the order of control methods [5: Table Transition Variable Speed Operation] and [3: Interrupt 1 Speed Positioning], starting from table No. Speed Acceleration time Deceleration time...
Page 498
■Axis #1 Positioning Data Device Control Method Positioning Command Dwell Time Interrupt Input Address Speed Signal 2 Device No. 1: 1 Speed Positioning (Relative Address 100000 pulse 10000 pps 0 ms Specification) 5: Table Transition Variable Speed 7000 pps 0 ms Operation...
Page 499
■M No. for jump condition (M100) = OFF: Executes the table 3 Speed Acceleration Non-executes Deceleration time time the condition (500 ms) jump (500 ms) 15000 pps (Maximum speed) 10000 pps 7000 pps 1000 pps (Bias speed) Time Positioning Positioning address: 90000 address: 50000 Instruction execution complete flag M1...
Page 500
Program example ON/OFF switching of M device for jump condition M100 Switch for Table 2 jump condition Jump condition Drive DRVTBL instruction (continuous operation with control method [10: Condition Jump]) SM5500 Drive Positioning Normally Abnormal DRVTBL instruction instruction contact activation axis1 activation Drive DRVTBL instruction in axis 1 SM5500...
31.10 Multiple-axis Table Operation This instruction executes the control method of specified table for multiple axes set in the table data with GX Works3. DRVMUL This instruction executes the table data set in GX Works3 for multiple axes of one module simultaneously. Ladder FBD/LD ENO:=DRVMUL(EN,n1,n2,n3,n4,n5,d);...
Related devices The following lists the related special devices. The devices other than the following depend on the table control method. Related devices of axis 4 are available only for the FX5S/FX5U/FX5UC CPU module. Special relays ■CPU module Axis 1 Axis 2 Axis 3 Axis 4...
Outline of operation Drive contact DRVMUL (n1) (n2) (n3) (n4) (n5) Operand specification For (n1), specify the head axis number for which pulses are output. [FX5S CPU module] • K1: Axis 1 (The tables of axes 1 to 4 are simultaneously executed.) [FX5UJ CPU module] •...
Page 504
For (n5), specify the head table number (1 to 100 ) that is executed in the axis specified in (n1) + 3. When the positioning instruction of the axis (n1) + 3 is not to be executed, positioning parameters of the axis (n1) +3 are not set for high speed I/O parameter, FX5UJ CPU module ((n1) = K1) or high-speed pulse input/output module ((n1) = K5, K7, K9, K11) are used, specify K0.
Program example The following is the program example of FX5S/FX5U/FX5UC CPU module that executes each operation of axes 1, 2, and 4 simultaneously. Axis 1 (Interrupt 2-speed positioning) Speed Acceleration time Deceleration time (500 ms) (500 ms) 15000 pps (Maximum speed) 7000 pps 1000 pps (Bias speed)
Page 506
Axis 4 (1-speed positioning) Speed Acceleration time Deceleration time (500 ms) (500 ms) 100000 pps (Maximum speed) 30000 pps 0 pps (Bias speed) Time Positioning address: 100000 Instruction execution Dwell time (100 ms) complete flag M11 Execution table 1 speed positioning (relative address specification) Setting data ■Positioning parameter (high speed I/O parameter) Item...
Page 507
■Axis #1 Positioning Data Device Control Method Positioning Command Dwell Time Interrupt Input Address Speed Signal 2 Device No. 1: 1 Speed Positioning (Relative Address 100000 pulse 10000 pps 0 ms Specification) 5: Table Transition Variable Speed 7000 pps 0 ms Operation...
31.11 Absolute Position Detection System With the use of the servo absolute position detection system, the positioning uses the current ABS value read-out (DABS) instruction to read out the current value (absolute position (ABS) data) from the MR-J4A or MR-J3A servo amplifier. The data is converted into pulse when being read.
Outline of operation Drive contact DABS (d1) (d2) Operand specification For (s), specify the first number of the device that inputs the output signal for ABS data from the servo amplifier. The device assignment is as follows. • (s): ABS (bit 0) •...
Initial OPR When your system is established, even if your servo motor is equipped with an absolute position detection function, it is necessary to perform OPR at least once to send the clear signal to the servo motor. Use one of the following methods for the initial OPR: •...
Caution For details on the servo amplifier, refer to the manual for each servo amplifier. • Set the timing sequence for powering on your system so that the power of the PLC is turned on after the power of the servo amplifier, or that power is turned on at the same time.
TABLE OPERATION This chapter describes the table operation in the following items. • How to use the positioning table in GX Works3 • Operations of each control method • How to execute multiple tables (stepping operation and continuous operation) 32.1 How to Use the Positioning Table The following procedure is required to perform positioning in table operation.
Page 513
■High-speed pulse input/output module Navigation window Parameter Module Information Right-click Add New Module After adding the high-speed pulse input/output module, make settings on the screen displayed from the following operation. Navigation window Parameter Module Information 1 to 16 (high-speed pulse input/output module) Module Parameter ...
Page 514
■Table data Set table parameters that are applied when a table operation instruction is executed. Set a control method and operands corresponding to the type. When the positioning table data is set to use device, the operands of this table are set in the user devices. When the operands are set to use devices, the command speed and positioning address can be changed from word devices.
Page 515
■Positioning table data retaining function This function retains the setting value of the device where the positioning table data is set. When the positioning table data is changed from word devices (Page 512 Table data), the table data setting value is overwritten with the setting value in GX Works3 after the power of the CPU module is turned OFF and ON, the PLC is stopped and restarted, or system is reset.
32.2 Operations of Control Method The following describes the control method that can be set in a table. For details of each table operation instruction, refer to Page 419 POSITIONING INSTRUCTION. No Positioning The following describes control method [0: No Positioning]. Setting data The following table shows the operand assignment.
Operation of the complete flags The following describes the operation timings of the complete flags. Because dwell time cannot be specified, the flags turn on immediately after the condition is met. Item FX3 compatible (Effective only at TBL instruction or User specification (Effective only at DRVTBL instruction DRVTBL instruction execution) or DRVMUL instruction execution)
Page 518
Related devices Other than the following, the related devices are the same as those of the DRVI/DDRVI instruction. Related devices of axis 4 are available only for the FX5S/FX5U/FX5UC CPU module. ■Special relays • CPU module Axis 1 Axis 2 Axis 3 Axis 4 Name...
Page 519
Operation of the complete flags The following describes the operation timings of the complete flags. Because dwell time cannot be specified, the flags turn on immediately after the condition is met. Item FX3 compatible (Effective only at TBL instruction or User specification (Effective only at DRVTBL instruction DRVTBL instruction execution) or DRVMUL instruction execution)
Interrupt 1 Speed Positioning The following describes the control method [3: Interrupt 1 Speed Positioning]. Setting data The following table shows the operand assignment. Item Operand 1 Operand 2 Operand 3 Operand 4 Description Positioning Address Command speed Dwell Time Interrupt Counts Range -2147483648 to +2147483647...
Page 523
Related devices Other than the following, the related devices are the same as those of the DVIT/DDVIT instruction. Related devices of axis 4 are available only for the FX5S/FX5U/FX5UC CPU module. ■Special relays • CPU module Axis 1 Axis 2 Axis 3 Axis 4 Name...
Page 524
Operation of the complete flags The following describes the operation timings of the complete flags. Because dwell time cannot be specified, the flags turn on immediately after the condition is met. Item FX3 compatible (Effective only at TBL instruction or User specification (Effective only at DRVTBL instruction DRVTBL instruction execution) or DRVMUL instruction execution)
Variable Speed Operation The following describes control method [4: Variable Speed Operation]. Setting data The following table shows the operand assignment. Item Operand 1 Operand 2 Operand 3 Operand 4 Description None Command Speed Dwell Time None Range -2147483648 to +2147483647 0 to 32767 (ms) ...
Page 526
Related devices Other than the following, the related devices are the same as those of the PLSV/DPLSV instruction. Related devices of axis 4 are available only for the FX5S/FX5U/FX5UC CPU module. ■Special relays • CPU module Axis 1 Axis 2 Axis 3 Axis 4 Name...
Page 527
Operation of the complete flags The following describes the operation timings of the complete flags. Because dwell time cannot be specified, the flags turn on immediately after the condition is met. Item FX3 compatible (Effective only at TBL instruction or User specification (Effective only at DRVTBL instruction DRVTBL instruction execution) or DRVMUL instruction execution)
Page 528
Table Transition Variable Speed Operation The following describes control method [5: Table Transition Variable Speed Operation]. Only CPU module is supported. Setting data The following table shows the operand assignment. Item Operand 1 Operand 2 Operand 3 Operand 4 Description None Command Speed Dwell Time...
Page 529
Precautions Other than the following, the operation is the same as that of the PLSV/DPLSV instruction. • If control method [0: No Positioning] is set to the next table, deceleration stop is performed to end the table operation by turning on the interrupt input signal 2. If control method [0: No Positioning] is set to the last table, the same operation is performed.
Page 530
Operation of the complete flags The following describes the operation timings of the complete flags. Because dwell time cannot be specified, the flags turn on immediately after the condition is met. Item FX3 compatible (Effective only at TBL instruction or User specification (Effective only at DRVTBL instruction DRVTBL instruction execution) or DRVMUL instruction execution)
Interrupt Stop (Relative Address Specification) The following describes control method [6: Interrupt Stop (Relative Address Specification)]. Setting data The following table shows the operand assignment. Item Operand 1 Operand 2 Operand 3 Operand 4 Description Positioning Address Command Speed Dwell Time Interrupt Counts Range -2147483648 to +2147483647...
Page 532
Precautions Other than the following, the same cautions as for the DRVI/DDRVI instruction apply. • Specify the table as the last table when performing continuous operation. An error occurs if a table is operated after this table during continuous operation. •...
Page 533
Operation of the complete flags The following describes the operation timings of the complete flags. Because dwell time cannot be specified, the flags turn on immediately after the condition is met. Item FX3 compatible (Effective only at TBL instruction or User specification (Effective only at DRVTBL instruction DRVTBL instruction execution) or DRVMUL instruction execution)
Interrupt Stop (Absolute Address Specification) The following describes control method [7: Interrupt Stop (Absolute Address Specification)] Setting data The following table shows the operand assignment. Item Operand 1 Operand 2 Operand 3 Operand 4 Description Positioning Address Command Speed Dwell Time Interrupt Counts Range -2147483648 to +2147483647...
Page 535
Precautions Other than the following, the same cautions as for the DRVA/DDRVA instruction apply. • Specify the table as the last table when performing continuous operation. An error occurs if a table is operated after this table during continuous operation. •...
Page 536
Operation of the complete flags The following describes the operation timings of the complete flags. Because dwell time cannot be specified, the flags turn on immediately after the condition is met. Item FX3 compatible (Effective only at TBL instruction or User specification (Effective only at DRVTBL instruction DRVTBL instruction execution) or DRVMUL instruction execution)
Condition Jump The following describes control method [10: Condition Jump]. Setting data The following table shows the operand assignment. Item Operand 1 Operand 2 Operand 3 Operand 4 Description None None Jump Destination Table No. M No. for Jump Condition Range ...
Page 538
Related devices Related devices of axis 4 are available only for the FX5S/FX5U/FX5UC CPU module. ■Special relays • CPU module Axis 1 Axis 2 Axis 3 Axis 4 Name High Reference Speed I/O Parameter SM5916 SM5917 SM5918 SM5919 Positioning table data initialization disable ...
Interpolation Operation (Relative Address Specification) The following describes control method [20: Interpolation Operation (Relative Address Specification)]. Only FX5S/FX5U/ FX5UC CPU module and high-speed pulse input/output module support interpolation operation. Setting data The following table shows the operand assignment. Item Operand 1 Operand 2 Operand 3 Operand 4...
Page 540
Precautions • This table cannot be specified for continuous operation. When a table with this control method is executed in continuous operation, the operation is decelerated to a stop. • When the specification method for the interpolation speed is [Reference-axis speed], set the axis with the longer positioning address as the reference axis.
Page 541
• High-speed pulse input/output module First module Second module Third module Fourth module Name High Reference Speed I/O Axis 5 Axis 6 Axis 7 Axis 8 Axis 9 Axis 10 Axis 11 Axis 12 Parameter SM8029 (FX3 compatible device) Instruction execution Page 417 complete flag...
Page 543
Operation of the complete flags The following describes the operation timings of the complete flags. If dwell time is specified, the flag turns on after the dwell time elapses. Item FX3 compatible (Effective only at TBL instruction or User specification (Effective only at DRVTBL instruction DRVTBL instruction execution) or DRVMUL instruction execution) Instruction execution...
Interpolation Operation (Relative Address Specification Target Axis) The following describes control method [21: Interpolation Operation (Relative Address Specification Target Axis)]. Only FX5S/ FX5U/FX5UC CPU module and high-speed pulse input/output module support interpolation operation. Setting data The following table shows the operand assignment. Item Operand 1 Operand 2...
Interpolation Operation (Absolute Address Specification) The following describes control method [22: Interpolation Operation (Absolute Address Specification)]. Only FX5S/FX5U/ FX5UC CPU module and high-speed pulse input/output module support interpolation operation. Setting data The following table shows the operand assignment. Item Operand 1 Operand 2 Operand 3 Operand 4...
Page 546
Precautions • This table cannot be specified for continuous operation. When a table with this control method is executed in continuous operation, the operation is decelerated to a stop. • When the specification method for the interpolation speed is [Reference-axis speed], set the axis with the longer positioning address as the reference axis.
Page 547
• High-speed pulse input/output module First module Second module Third module Fourth module Name High Reference Speed I/O Axis 5 Axis 6 Axis 7 Axis 8 Axis 9 Axis 10 Axis 11 Axis 12 Parameter SM8029 (FX3 compatible device) Instruction execution Page 417 complete flag...
Page 549
Operation of the complete flags The following describes the operation timings of the complete flags. If dwell time is specified, the flag turns on after the dwell time elapses. Item FX3 compatible (Effective only at TBL instruction or User specification (Effective only at DRVTBL instruction DRVTBL instruction execution) or DRVMUL instruction execution) Instruction execution...
Interpolation Operation (Absolute Address Specification Target Axis) The following describes control method [23: Interpolation Operation (Absolute Address Specification Target Axis)]. Only FX5S/FX5U/FX5UC CPU module and high-speed pulse input/output module support interpolation operation. Setting data The following table shows the operand assignment. Item Operand 1 Operand 2...
32.3 How to Execute Multiple Tables The execution method for multiple tables of the DRVTBL and DRVMUL instructions includes stepping operation and continuous operation. This section describes how to execute each operation. Stepping operation In stepping operation, with the DRVTBL instruction, specified tables are executed one by one. Only the DRVTBL instruction can execute this operation.
Page 552
Operation The following describes the operation of tables and flags in the stepping operation. ■Operation of the table • Operation of each table in the stepping operation is the same as that of one-table operation. • When a table with control method [0: No Positioning] is executed, or when the last table specified by the DRVTBL instruction is executed, execution of all the tables is completed.
Compatible control method The following table lists operation of control methods of each table when stepping operation is specified. Control method Operation Reference 0: No Positioning When this type is specified, no pulses are output. The operation Page 514 ends normally. 1: 1 Speed Positioning (Relative Address Specification) The table operates normally.
Page 554
Operation The following describes the operation of tables and flags in the continuous operation. ■Operation of the table • Dwell time of the last table is the time until the complete flag turns on after deceleration stop. • When tables are executed successively causing a direction change, deceleration stop is performed once and then output is started in the reversed direction.
Page 555
Compatible control method The following table lists control methods that can be used when continuous operation is specified. Rear table Continuous operation 0: No Positioning 1: 1 Speed Positioning (Relative Address Specification) 2: 1 Speed Positioning (Absolute Address Specification) 3: Interrupt 1 Speed Positioning 4: Variable Speed Operation 5: Table Transition Variable Speed Operation 6: Interrupt Stop (Relative Address Specification)
PROGRAMMING This chapter describes common items and precautions related to programs. 33.1 Table Operation Instruction After setting table data, create a program that uses the table. (Page 510 TABLE OPERATION) Specify the table No., in the operand of the table operation instruction. The following table shows operands specified for each table operation instruction.
33.2 Cautions for Program Creation The following describes cautions for program creation. User interrupt program Only CPU module can be executed in an interrupt program. If the high-speed pulse input/output module (axis 5 to axis 12) is executed in an interrupt program, an error occurs. *1 FX5S/FX5U/FX5UC CPU module: Axis 1 to Axis 4 FX5UJ CPU module: Axis 1 to Axis 3 Interrupt input signal 1...
Page 558
Positioning instruction activation timing ■When the absolute position detection system is used For the axis in which the absolute position detection system is used, activate the DABS instruction when the servo amplifier is powered on. (Page 506 Absolute Position Detection System) After the ABS data has been read, the servo-ON (SON is on) status is retained, and it is disengaged when the DABS instruction is turned off.
Page 559
• Output The following functions occupy outputs of the high-speed input/output function. The following functions cannot be combined with other high-speed input/output functions. Function Up to CH/axis Device FX5S/FX5U/FX5UC FX5UJ FX5S/FX5U/FX5UC FX5UJ 4 CH Y0 to Y7 Positioning PULSE 4 axes 3 axes Y0 to Y3 Y0 to Y2...
Page 560
(DHSCS, DHSCR, DHSZ instruction). Shown below are the conditions included in the number of the simultaneous executions. For high-speed comparison table, refer to the following. Page 257 High-speed comparison table For high-speed comparison instructions and HIOEN/DHIOEN instruction, refer to MELSEC iQ-F FX5 Programming Manual (Instructions, Standard Functions/Function Blocks). Item...
Page 561
Operations if online change is performed while the instruction is executed are described in the following table. Also do not perform online change if PWM is being executed. For details on the PWM/DPWM instructions, refer to MELSEC iQ-F FX5 Programming Manual (Instructions, Standard Functions/Function Blocks).
33.3 Program Example This program example shows the operation that controls the one-axis MELSERVO series amplifier. Positioning is performed in the absolute position method by the OPR and forward/reverse rotation positioning as shown below. (Any JOG operation can be set.) Speed 100000 pps JOG operation...
Page 563
■JOG operation When X22 is turned on, the JOG operation is started in the forward direction. When X23 is turned on, the JOG operation is started in the reverse direction. When X22 or X23 is turned off from on, the JOG operation decelerates and stops. Acceleration Deceleration time...
■Reverse direction positioning When X25 is turned on, the positioning is started for the target position (100 pulses). If current address is less than 100 pulses, positioning operation output in the forward direction. Acceleration Deceleration Speed time time Reverse direction (100 ms) (100 ms) Command speed,...
Forward/reverse rotation program The positioning instructions used in the program examples are shown below. Positioning instruction Reference Mechanical OPR DSZR/DDSZR Page 429 Absolute positioning DRVA/DDRVA Page 451 Variable speed operation PLSV/DPLSV Page 472 Program example Stop event SM5628 Axis1 pulse output stop (Immediate stop) Pulse stop Pulse stop...
Page 567
JOG operation SM5500 M103 M104 M106 Resets the forward direction positioning complete flag. JOG+ Positioning Instruction Abnormal JOG(+) instruction execution activation complete flag M105 SM5500 Resets the reverse direction positioning complete flag. JOG(+) Positioning being instruction M105 performed activation JOG(+) operation is being performed.
Page 568
Forward direction positioning SM5500 M111 M112 Resets the forward direction positioning complete flag. Forward Positioning Instruction Abnormal direction instruction completion execution positioning complete activation flag M115 SM5500 Resets the reverse direction positioning complete flag. Forward Positioning direction instruction positioning activation being performed M115...
SM5500 Resets the OPR normally M101 complete flag. Positioning instruction Resets the OPR abnormal activation M102 end flag. Resets the instruction execution M103 complete flag (JOG operation +) . Resets the abnormal end flag M104 (JOG operation +). Resets the instruction execution M107 complete flag (JOG operation -) .
TROUBLESHOOTING This chapter describes the errors and problems related to the positioning function. 34.1 LED Status During Pulse Output and Rotation Direction Output Check the on/off status of LED indicator lamp on the CPU module that indicates the status of the output device (Y) to assess the positioning operation status.
34.2 Servo Motor, Stepping Motor If the servo motor or the stepping motor does not operate, check the following items. Check the wiring. For the output specifications, refer to Page 353 Output Specifications. For details on the MELSERVO series servo amplifier (drive unit), refer to the manuals for the unit used. Execute the positioning instruction, and then check the statuses of the following LED indicator lamps.
34.3 Stop Position If operation is stopped at the wrong position, check the following items. Check whether the electronic gear of the servo amplifier (drive unit) is set properly. (Page 385 Unit Setting) Check whether the origin is set properly. •...
CPU MODULE BUILT-IN ANALOG FUNCTION This chapter describes the built into analog the FX5U CPU module. The FX5U CPU module has 2 points of built-in analog voltage input and 1 point of built-in analog voltage output. Values A/D-converted by the FX5U CPU module are written to special registers assigned to each channel. D/A-converted analog data are output when values are set to special registers in the FX5U CPU module.
Page 575
Analog output Item Specifications No. of analog output points 1 point (1 channel) Digital input Unsigned 12-bit binary Analog output Voltage 0 to 10 V DC (external load resistance 2 k to 1 M) Device allocation SD6180 (Output setting data) Output characteristics, max.
Accuracy Built-in analog input Accuracy of A/D conversion is determined by the accuracy for the full scale of digital output value. The accuracy is within 0.5 % (20 digits) at ambient temperature of 255, within 1.0 % (40 digits) at ambient temperature of 0 to 55, and within 1.5 % (60 digits) at ambient temperature of -20 to 0.
35.2 List of Functions The following table lists the functions. Analog input List of functions Description Reference A/D conversion enable/disable setting function Function to enable or disable A/D conversion per channel. Page 577 The conversion process time can be reduced by disabling conversion for unused channels.
35.3 Functions (Analog Input) This section describes the functions of the built into analog the FX5U CPU module and the setting procedures for those functions. Processing of each function The functions are processed in the order shown below. Function to enable/disable A/D conversion A/D conversion device Over scale detection function...
Digital operation value A value obtained by operating a digital output value using the digital clipping function, scaling function, or shift function. When any of the functions is not used, the same value as the digital output value is stored. Analog input voltage monitor The input voltage value is displayed.
A/D conversion method Specify the method of A/D conversion for each channel. The following A/D conversion methods are available. Method Description Sampling processing Method of converting each analog input at END processing to generate the equivalent digital output. Time average Method of averaging the time of A/D conversion values and outputting these average values as the digital signal.
Page 581
Operation This section describes the operation of each A/D conversion method. ■Sampling processing The analog input is sequentially converted into a digital signal through A/D conversion by the END process to create the digital output, and the digital output values and digital operation values are stored. ■Time average A/D conversion is executed for a set time, the total value is averaged, and the digital output values and digital operation values are stored.
Over scale detection function Function to detect analog input values that are over an input range. Corresponding devices The devices which are used by the over scale detection function are listed below. Name Over scale detection flag SM6022 SM6062 Over scale detection enable/disable setting SM6024 SM6064 A/D conversion alarm clear request...
Digital clipping function Function that specifies the maximum A/D conversion value as 4000 and the minimum value as 0 when voltage is input that exceeds the input range. Corresponding devices The devices which are used by the digital clipping function are listed below. Name Digital clipping enable/disable setting SM6029...
Scaling function Function that converts user-defined maximum and minimum digital values in accordance with a configured scale. Corresponding devices The devices which are used by the scaling function are listed below. Name A/D conversion scaling enable/disable setting SM6028 SM6068 A/D conversion error flag SM6059 SM6099 Scaling upper limit value...
■Calculation method of the scaling value The value used is calculated from the following expression. (The value below the decimal point is rounded.) Digital output value × (scaling upper limit value - scaling lower limit value) Value after scaling = + Scaling lower limit value 4000 •...
Maximum value/minimum value hold function Function that holds the minimum and maximum digital operation values. Corresponding devices The devices which are used by the function to hold minimum and maximum values are listed below. Name Maximum value/minimum value reset completed flag SM6025 SM6065 Maximum value reset request...
Warning output function The warning output flag for the corresponding channel turns ON when the digital operation value is equal to or greater than the process alarm upper upper limit value, is equal to or lower than the process alarm lower lower limit value, or falls within the warning output range.
Operation The warning output flag (process alarm upper limit) or the warning output flag (process alarm lower limit) turns ON when the digital operation value is equal to or greater than the process alarm upper upper limit value, or is equal to or lower than the process alarm lower lower limit value, and the conditions to output a warning are satisfied.
35.4 Functions (Analog Output) This section describes the functions of the built into analog the FX5U CPU module and the setting procedures for those functions. Processing of each function The functions are processed in the order shown below. Digital value D/A conversion enable/disable function Shift function...
D/A conversion enable/disable function Function to enable or disable D/A conversion per channel. When analog output is not used, the conversion process time can be reduced by disabling conversion. Corresponding devices The devices which are used by the D/A conversion enable/disable setting function are listed below. Name D/A conversion enable/disable setting SM6180...
Analog output HOLD/CLEAR function Sets how to operate digital values to be converted to analog signals depending on the operation status of the CPU module (RUN, STOP, and STOP error). Select it from the following three ways: clear the value to 0; hold the previous value; set to a specified value.
Analog output test when CPU module is in STOP status function This function outputs a user-defined analog value by setting the output enable/disable flag to enabled when the CPU module is stopped, and changing the digital value. Corresponding devices The devices that are used by analog test function when the CPU module is stopped are listed below. Name D/A conversion enable/disable setting SM6180...
Scaling function Function that converts user-defined maximum and minimum digital values in accordance with a configured scale. Corresponding devices The devices which are used by the scaling function are listed below. Name Scaling enable/disable setting SM6188 Scaling upper limit value SD6188 Scaling lower limit value SD6189...
Shift function Function that adds the set input value shift amount to the digital value. Changes to the input value shift amount will be reflected in the digital operation value in real time, allowing fine adjustments to be easily performed during system startup. Corresponding devices The devices which are used by the shift function are listed below.
Page 595
Set the warning output upper limit value and warning output lower limit value. Warning output upper limit value and warning output lower limit value can be set for each channel that uses the warning output function. Name Allowable setting range Default value Warning output upper limit value -32768 to +32767...
Event history function This function collects errors from built-in analog output of CPU module, and keeps them in the SD memory card, and data memory or battery backed built-in RAM of the CPU module. The event information collected by the CPU module can be displayed on GX Works3 to check the occurrence history in chronological order.
35.5 Function (PID Control Via Instruction) Outline of function The PID instruction is used to perform PID control. The PID instruction requires the system to calculate the output (MV) value from the measured (PV) value. Through combining the P (proportional) action, I (integral) action, and D (derivative) action, the target (SV) value can be obtained.
Basic operation expressions in PID instruction The PID instruction executes using the speed type or measured value differential type operation expression. According to the content of b0 of (s3)+1 "operation setting (ACT)" specified by (s3) in the PID control, either forward operation or backward operation is executed.
How to use PID instruction This instruction executes PID control which changes the output value according to the input variation. For details on the PID instruction, refer to the following manual. MELSEC iQ-F FX5 Programming Manual (Instructions, Standard Functions/Function Blocks) Ladder diagram Structured text ENO:=PID(EN,s1,s2,s3,d);...
■Precautions for using the PID instruction For the precautions for using the PID instruction, refer to the following manual. MELSEC iQ-F FX5 Programming Manual (Instructions, Standard Functions/Function Blocks) Relationship between parameter setting and auto-tuning When auto-tuning is not executed (parameter setting) It is necessary to write the set value of the parameters (s3) to (s3)+6 by means such as the MOV instruction before starting the PID operation when auto-tuning is not executed.
Parameter Set item Description/Setting range Remarks (s3) Sampling time (TS) 1 to 32767 (ms) It cannot be shorter than operation cycle of the PLC. (s3)+1 Operation setting 0: Forward operation Operation direction (ACT) 1: Backward operation 0: Input variation alarm is invalid ...
Set item Description/Setting range Remarks ■The following setting is required when using the timeout time after maximum ramp (b6 and b8 of the operation setting (ACT) ((s3)+1) are "0" and "1") with the step response method. (s3)+25 Timeout time setting value after 1 to 32767[s] It is valid when b4, b6, and b8 of the operation maximum ramp (R) detection...
Page 603
• Relationship between the forward/backward operation and the output (MV), measured value (PV) and target value (SV) The relationship is as follows. Output value (MV) Target value (SV) Backward Forward operation operation Measured value (PV) ■Alarm setting (for input variation and output variation) If b1 and b2 in (s3) +1 are turned ON, the input variation and the output variation can be checked.
Page 604
■Overshoot suppression setting Set the overshoot suppression processing. Especially, when the difference between the target value and current value is big, turn b7 of (s3)+1 ON. It is effective to suppress the overshoot during PID control operation. Set item Description/Setting range Operation setting (s3)+1: b7 Overshoot suppression setting...
Page 605
■Upper and lower limits for output value When the upper and lower limit settings of the output value are valid, the output value is as shown in the chart. The upper limit and lower limit of the output value can moderate the increase of the integral item in the PID control. When using the upper limit and lower limit of the output value, make sure to set (s3)+1, b2 to OFF.
Page 606
■Hunting suppression setting Especially, if the step response method auto-tuning (Page 612 Auto-tuning) is executed in an environment where the measurement value varies temporarily because of noise of the sensor and analog input, auto-tuning may not be executed correctly and hunting may occur during PID control operation. When b8 of (s3)+1 is turned ON and the current input value is less than the previous input value temporarily, auto-tuning is not completed until the set timeout time has elapsed.
Page 607
Input filter constant (s3)+2 The input filter () is a software filter to reduce the fluctuation of the measured value (PV) caused by noise. By setting this time constant of the filter according to the control target characteristics and noise level, the effect of noise can be reduced. If the input filter value is too small, the filter effect is small.
Page 608
Proportional gain (s3)+3 During the proportional operation, the output (MV) increases in proportion to the deviation (difference between the target value (SV) and the measured value (PV)). This deviation is called proportional gain (KP), and expressed in the following relational expression: Output (MV) = Proportional gain (KP) ...
Page 609
Integral time (s3)+4 During the integral operation, the time after deviation is generated until the integral operation output becomes the proportional operation output. This is called integral time and is expressed as "TI". As TI becomes smaller, the integral operation becomes stronger. Setting range: 0 to 32767 (...
Page 610
The integral operation changes the output so that the continuously generated deviation is eliminated. As a result, the remaining deviation generated in the proportional operation can be eliminated. Deviation Deviation (EV) Time Output of "proportional operation + integral operation" Output (MV) Output of integral operation Output of proportional operation Proportional gain (KP) ×...
Page 611
Differential time (s3)+6 Use the differential time (TD) to respond sensitively to fluctuations in the measured value (PV) caused by disturbance, etc. and to minimize the fluctuations. Setting range: 0 to 32767 ( 10 ms) • When the differential time (TD) is large, it prevent large fluctuation in the control target caused by disturbance, etc. •...
Page 612
PID operation in forward operation (cooling) Temperature TD3>TD2>TD1 PI operation (without differential operation) Changes caused by disturbance TD1 (PID operation) TD2 (PID operation) Target value (SV) TD3 (PID operation) Time Output value (MV) TD3>TD2>TD1 Changes in output caused by disturbance TD2 (PID operation) TD1 (PID operation) PI operation (without differential operation)
Page 613
Alarm output (s3)+24 If the input variation and the output variation specified with (s3) +20 to (s3) +23 are exceeded, each bit of (s3) +24 turns ON as a warning output. Item Description Remarks Alarm output (s3)+24: b0 OFF: Input variation (incremental) is not exceeded. It is valid when operation setting (ACT) (b1 of ON: Input variation (incremental) is exceeded.
Auto-tuning This section describes the auto-tuning function of PID instruction. The auto-tuning function will automatically set the important constants, such as the proportional gain and the integral time, to ensure optimum PID control. There are two auto-tuning methods: limit cycle method and step response method. Limit cycle method For acquiring satisfactory control results in PID control, it is necessary to obtain the optimal value of each constant (parameter) suitable to the control target.
Page 615
• Operation characteristics (in an example of backward operation) During the "W" period after the tuning cycle is finished, the output value (MV) is held at the output Lower Limit Value (LLV), and then normal PID control is started. The value "W" can be obtained by the expression "W = (50 + KW)/100 ( - on)", and the wait setting parameter "KW"...
Page 616
■Parameters set in limit cycle method The parameters specified in the limit cycle method are shown below. Parameter Setting position Proportional gain (KP) (s3)+3 Integral time (TI) (s3)+4 Differential time (TD) (s3)+6 ■Auto-tuning procedure Set forward or backward operation Set the operation direction flag (b0) in the operation setting parameter (ACT) (s3)+1. Select the auto-tuning method (limit cycle method) Set the auto-tuning method to ON (b6) in the operation setting parameter (ACT) (s3)+1.
Page 617
Step response method For acquiring satisfactory control results during PID control, it is necessary to obtain the optimal value of each constant (parameter) suitable for the control target. This paragraph explains the step response method to obtain three constants in the PID control (proportional gain (KP), integral time (TI) and differential time (TD)).
Page 618
■Auto-tuning procedure Transferring the output value for auto-tuning to the output value (d) Set the output value for auto-tuning to the maximum available output value multiplied by 0.5 to 1 for the output equipment. Setting the parameter (s3), target value (SV), etc. that cannot be set in autotuning according to the system Set the auto-tuning execution flag to ON Set the auto-tuning execution flag to ON (b4) in the operation setting parameter (ACT) (s3)+1.
Examples of program System configuration example An example of the system configuration when the PID control function is used is shown below. ■System configuration 24V X10 X11 X10: Auto-tuning command X11: PID control command COM0 Y0 FX5U-32MT/ES FX5-4AD-TC-ADP Error indication 24 V DC power supply Temperature chamber...
Page 620
Program example 1 This is an example of the sample program for PID control. ■Use device The content of the devices used for the program is as follows. Item Device Setting value During auto-tuning During PID control Target value (SV) (s1) D500 Not used...
Page 621
■Program SM402 The target value is K500 D500 Initial pulse set to 50°C The sampling time is K500 D510 set to 500 ms The operation direction D511.0 is set to backward operation The upper and lower D511.5 limits of output value is set to valid Use overshoot D511.7...
Page 622
Program example 2 This is an example of the sample program for auto tuning (limit cycle method). ■Use device The content of the devices used for the program is as follows. Item Device Setting value During auto-tuning During PID control Target value (SV) (s1) D500...
Page 623
■Program The target value is set to 50°C K500 D500 Auto-tuning is started The sampling time is set to K500 D510 500 ms The operation direction is set to D511.0 backward operation The auto-tuning mode is set to D511.6 limit cycle method The PV value threshold PID instruction D535...
Page 624
Program example 3 This is an example of the sample program for auto tuning (step response method). ■Use device The content of the devices used for the program is as follows. Item Device Setting value During auto-tuning During PID control Target value (SV) (s1) D500...
Page 625
■Program The target value is set to 50°C K500 D500 Auto-tuning is started The sampling time is set to K1000 D510 1000 ms The output of auto-tuning K1800 D502 is set to 1.8 sec. PID instruction The auto-tuning mode is set to D511.6 initial setting step response method...
Page 626
Program example 4 This is an example of the sample program for auto tuning (limit cycle method) + PID control. ■Use device The content of the devices used for the program is as follows. Item Device Setting value During auto-tuning During PID control Target value (SV) (s1)
Page 627
■Program SM402 The target value is set to 50°C K500 D500 Initial pulse The sampling time is set to K500 D510 500 ms The operation direction is set to D511.0 backward operation The upper and lower limits of PID instruction D511.5 initial setting output value is set to valid...
Page 628
Program example 5 This is an example of the sample program for auto tuning (step response method) + PID control. ■Use device The content of the devices used for the program is as follows. Item Device Setting value During auto-tuning During PID control Target value (SV) (s1)
Page 629
■Program SM402 The target value is set to 50°C K500 D500 Initial pulse The operation direction is D511.0 set to backward operation The upper and lower limits of D511.5 output value is set to valid PID instruction initial setting Use overshoot D511.7 suppression setting The output value upper limit...
Example of parameter adjustment and the effect on PID control operation This section describes parameters that can be adjusted to improve the PID control result and the effect of the parameters. Improvement of control results The following table shows the outline of the details to be improved and methods for improvement. Details to be improved Auto-Tuning Contents...
Page 631
■Overshoot suppression (When auto-tuning is not executed) When the PID control is executed and a large initial output causes overshoot, use the overshoot suppression setting (b7 of (s3)+1 turns ON). The overshoot amount may be suppressed. Control result when the overshoot suppression setting is not Control result when the overshoot suppression setting is used used Input value...
Page 632
• Overshoot suppression by using sampling time When the response speed of the control target is high, shorten the sampling time ((s3)+0) to control finely. Overshoot may be suppressed. However, if the sampling time is too short, it is easily affected by momentary fluctuation of noise. Control result before the change Control result when the sampling time is shortened Input value...
Page 633
■Hunting suppression (When auto-tuning is not executed) • Hunting suppression by decreasing the proportional gain In the following control result case, decrease the proportional gain ((S3)+3). Hunting may be suppressed. However, if the proportional gain is too small, it takes time to reach the target value. Control result before the change Control result when the proportional gain is decreased Input value...
Page 634
Reduction of remaining deviation When reducing the remaining deviation, the operation is as follows. • Remaining deviation according to the input value When the control result is stable around the target value and the required output value is small, the control result may not converge to the target value because of the influence of noise.
35.6 Function (PID Control Via Parameter) Outline of function PID control is performed by setting GX Works3 parameters. To make the measured value (PV) closer to the target value (SV), the PID control calculates the output (MV) value by combining the P (proportional) action, I (integral) action, and D (derivative) action.
Specifications list The following table lists the specifications of the PID control via parameter function and the availability of each control mode. : Supported, : Not supported Specifications Description Control mode Reference Standard Heating- PID control cooling PID control ...
Usage procedure This section describes the flow of using the PID control via parameter function as follows. Details are explained per control mode. Configure "Heating/Cooling PID Control Setting" with GX Works3 CPU parameters. (Page 638 Parameter setting) Create a program. (Page 641 Programming) Write the parameters to the CPU module.
Page 638
Setting example Setting examples of PID control only (setting examples 1 and 4) are shown in this chapter. For details on other program examples, refer to the following. Setting Control mode Description Reference example Setting Standard PID PID control only Page 638 Operating example 1 control...
Page 639
■Setting example 4: Heating-cooling PID control When "Control mode" is set to "Heating-cooling PID control mode", without performing auto tuning, PID control is performed by using the control parameters set by the user. 24V X0 X1 X0: PID control execution command Y0: Error output Y1: Control output Y2: Control output (cooling control)
Page 640
Operating procedure The operation procedures for setting example 1 and setting example 4 are shown below. ■Parameter setting The following describes the parameter settings for executing PID control. Configure the basic settings. [Navigation window] [Parameter] CPU module model name [CPU Parameter] [PID Control Setting] [Heating/Cooling PID Control Setting] ...
Page 641
Setting item Setting example 1 Setting example 4 Control Parameter Set a value for at least one of the setting value and the device Set a value for at least one of the setting value and the device indirect specification. indirect specification.
Page 642
Configure application settings. [Navigation window] [Parameter] CPU module model name [CPU Parameter] [PID Control Setting] [Heating/Cooling PID Control Setting] [Detailed Setting] [Application Setting] Window Setting example 1 Setting example 4 Setting data Setting item Setting example 1 Setting example 4 2-position Control Function...
■Programming Data other than the data set using parameters is set using a program. The program example is common to setting example 1 and setting example 4. Set use permission for the FX5-4AD-TC-ADP(CH1), which was set as the process value (SD6300) when the state was changed from STOP to RUN.
Page 644
Setting item Setting range Control mode Device type Standard Heating- User System PID control cooling PID control Operation Cycle Control Output Cycle 1 to 3000[100ms] D, R (Default: 100) Heating Control 1 to 3000[100ms] D, R Output Cycle (Default: 100) Cooling Control...
Details of specifications This section describes the details of the specifications of the heating-cooling PID control function. Control mode selection Two types of control modes are available: Standard PID control and heating-cooling PID control. ■Standard PID control Standard PID control is a control method that operates the output for either one of the forward operation (cooling control) system and the backward operation (heating control) system.
Page 646
Control method The following control methods can be executed by setting a proportional gain, integral time, and derivative time. • Two-position control ( Page 644 Two-position control) • P control ( Page 646 P control) • PD control ( Page 647 PD control) •...
Page 647
• Cooling control (forward operation) Measured value (PV) Adjustment sensitivity Target value (SV) (dead band) Time Control output Condition Output status Measured value (PV) Adjustment sensitivity (dead band) lower limit Measurement value (PV) > Adjustment sensitivity (dead band) upper limit Adjustment sensitivity (dead band) lower limit <...
Page 648
■P control P control is a control method that determines the output value (MV) in proportion to the deviation (E) between the temperature process value (PV) and target value (SV). When the value for the integral time (TI) and the differential time (TD) each is set to 0, P control is selected. ■P control (For standard PID control) When the measured value (PV) = the target value (SV), the output value (MV) is 0%.
Page 649
■PD control PD control is a control method that prevents large fluctuation in the measured value (PV) due to such a cause as disturbance by adding differential control to P control. When the value for the integral time (TI) is set to 0, PD control is selected. Measured value (PV) Target value (SV) PD control...
Page 650
Control output cycle setting function The control output cycle is a cycle of on/off signals being output from the control output to operate a control device such as a heater and cooler. Based on the output value calculated by PID control when the control output cycle starts, on signals are output from the control output.
Page 651
Auto-tuning function The auto-tuning function automatically sets the best PID constants. In the auto tuning, the control output is turned on and off, and PID constants are calculated depending on the cycle and amplitude of hunting that occurs when overshoots and undershoots of the temperature process value (PV) to the target value (SV) are repeated.
Page 652
■Auto-tuning calculation formula Operation expression Item Operation expression usage timing Proportional gain • Heating control of standard PID control • Cooling control of PID control =0.588× π(Y Heating proportional • At the 3rd cycle of heating-cooling PID control (when the ambient temperature setting is enabled, target value ...
Page 653
■Output value during auto-tuning The following figures show output values (MVs) during auto tuning in standard PID control and heating-cooling PID control using timing charts. • Heating control (backward operation) of standard PID control Measured value (PV) 1st cycle 2nd cycle Adjustment sensitivity Target value (SV) (±0.1)
Page 654
• Heating-cooling PID control (ambient temperature setting function enabled, target value ambient temperature) Measured value (PV) 1st cycle 2nd cycle 3rd cycle Adjustment sensitivity Target value (±0.1) (SV) Time Control output (heating control) Control output (cooling control) When the ambient temperature setting function is enabled, auto tuning is completed after execution of 2.5 cycles. The third cycle starts in the middle of the second cycle, and ends completely when 2.5 cycles are executed.
Page 655
■Related flag timings The following figures show the related flag timings based on timing charts. • For normal execution Power off → on, PID control function Reset → Reset clear PID control function being executed being executed Time PID control execution command Auto tuning used/not used Auto tuning execution status PID control execution status...
Page 656
• For execution in the event of an error Power off → on, PID control function being PID control function being Reset → Reset clear executed (stop error) executed (continuation error) Time PID control execution command Auto tuning used/not used Auto tuning execution status PID control execution status PID control function error indication...
Page 657
Error display function If an error occurs while PID control or auto-tuning is being executed, the error status and error code are stored into the devices. For error code details, refer to the following. Page 673 Troubleshooting When an error occurs, "1: Error occurrence" is written to the device set in the "PID Control Function Error Display" parameter, and the error code is written to the device set in the "PID Control Function Error Code"...
Page 658
Overlap/dead band function The temperature where the cooling control output starts is shifted; therefore, select which of the control stability or energy saving is to be prioritized. In heating-cooling PID control, the temperature process value (PV) significantly changes due to slight heating or cooling control output when the heat produced by a controlled object and natural cooling are being balanced.
Page 659
Output limiter function The output limiter is a function that sets the upper and lower limit values if outputting the output value (MV) calculated using PID operations to an external device. It is disabled only when executing two-position control. Output value (MV) 100% This range has no control outputs.
Page 660
Temperature rise completion judgment function The temperature rise completion judgment is a function that judges whether the temperature process value (PV) is within the temperature rise completion range. Judgment is made per sampling time. The upper limit and lower limit values for the temperature rise completion range can be found by the following formula. Temperature rise completion range upper value: Target value (SV) + Temperature rise completion range setting value Temperature rise completion range lower limit: Target value (SV) - Temperature rise completion range setting value Measured value (PV)
Page 661
• When the ambient temperature setting function is enabled, and the ambient temperature setting value is equal to or lower than the target value Measured value (PV) Target value (SV) Ambient temperature setting Time Control output (heating control) Control output (cooling control) (1) Cooling control is not executed because the ambient temperature setting value (room temperature) is equal to or lower than the target value (SV) and the measured value (PV) decreases without cooling.
Setting and program examples This section shows parameter setting examples and program examples when using the heating-cooling PID control function. Setting example 2 When "Control mode" is "Standard PID control mode", after auto tuning starts and ends completely, PID control using the obtained control parameters is performed.
Page 663
■Parameter setting example Setting item Setting value Device indirect specification Basic To Use or Not to Use PID Control Function Settings Control Mode Selection Standard PID Control Direct Action/Reverse Action Selection Reverse Action Target Value (SV) Process Value (PV) SD6300 ...
Page 664
■Program examples • Device setting example Item Device indirect Description specification A/D conversion enable/disable setting (CH1) SM6301 FX5-4AD-TC-ADP(CH1) A/D conversion enable/disable setting (0: Enabled, 1: Disabled) Auto tuning completion flag Flag that turns on when auto tuning starts and ends completely •...
Page 665
■Operation example Measured value (PV) During auto tuning During PID control Target value (SV) = 50.0ºC 1st cycle 2nd cycle Time During auto tuning (when the upper limit output limiter is 90%) Output value (MV) = 90% Output value (MV) = 90% Output value (MV) = 0% Voltage value = 4.5V Voltage value = 4.5V...
Page 666
Setting item Setting value Device indirect specification Application 2-position Control Function Adjustment sensitivity Not used Settings (dead band) Overlap/Dead Band Setting Output Limiter Function Upper Limit Output Limiter 900[0.1%] D410 Lower Limit Output Limiter 0[0.1%] D411 Heating Upper Limit Output Limiter Cooling Upper Limit Output...
Page 667
• Program example Set use permission for the FX5-4AD-TC-ADP(CH1), which was set as the process value (SD6300) when the state was changed from STOP to RUN, and configure settings for the FX5-4DA-ADP(CH1). After PID control starts, perform conversion to the digital value (0 to 16000) to be output to the control target by using the output value (MV), and obtain the analog output value (SD6662).
Page 668
■Operation example Measured value (PV) During auto tuning During PID control Target value (SV) = 50.0ºC 1st cycle 2nd cycle Time During auto tuning (when the heating upper limit output limiter is 90%) Output value for heating Output value for heating Output value for heating (MVh) = 90% (MVh) = 90%...
Page 669
■Parameter setting example Setting item Setting value Device indirect specification Basic To Use or Not to Use PID Control Function Settings Control Mode Selection Heating-cooling PID Control Direct Action/Reverse Action Selection Target Value (SV) Process Value (PV) SD6300 ...
Page 670
■Program example • Device setting example Item Device indirect Description specification A/D conversion enable/disable setting (CH1) SM6301 FX5-4AD-TC-ADP(CH1) A/D conversion enable/disable setting (0: Enabled, 1: Disabled) Auto tuning completion flag Flag that turns on when auto tuning starts and ends completely •...
Page 671
■Operation example Measured value (PV) During auto tuning During PID control Target value (SV) = 50.0ºC 1st cycle 2nd cycle Time During auto tuning (when the heating upper limit output limiter is 90%) Output value for heating Output value for heating Output value for heating (MVh) = 90% (MVh) = 90%...
Page 672
■Parameter setting example Setting item Setting value Device indirect specification Basic To Use or Not to Use PID Control Function Settings Control Mode Selection Heating-cooling PID Control Direct Action/Reverse Action Selection Target Value (SV) Process Value (PV) SD6300 Output Value (MV) ...
Page 674
• Program example Set use permission for the FX5-4AD-TC-ADP(CH1), which was set as the process value (SD6300) when the state was changed from STOP to RUN, and configure settings for the FX5-4DA-ADP(CH1, 2). After PID control starts, perform conversion to the digital values (0 to 16000) to be output to the control target by using the output values for heating and cooling (MVh, MVc), and obtain the analog output values (SD6662, SD6702).
Troubleshooting Troubleshooting with devices Data on an error detected by the heating-cooling PID control function are stored into the devices set to the parameters "PID control function error indication" and "PID control function error code". "1: Error occurrence" is written to the device set in "PID Control Function Error Display" when an error occurs, and the corresponding error code is written to the device set in "PID Control Function Error Code".
Precautions PID control affected by the constant scan setting Since PID control is executed in END processing, depending on the constant scan setting (0.2 to 2000ms), a delay may occur in the sampling time or the control output cycle (heating control output cycle, cooling control output cycle), preventing stable PID control.
Page 677
■When the setting value of a parameter is changed during PID control execution If the setting value of a parameter is changed as shown below during PID control execution, a PID control continuation error will occur. As a result, the parameter will be rounded to a value within the range, and PID control will continue. •...
35.7 Procedure to Execute the Built-in Analog Function The procedure to execute the built-in analog function is described below. Confirm the specifications of the built-in analog function. Confirm the specifications of the built-in analog function. (Page 572 Specifications) Connect the CPU module to the external device. Wiring to external devices.
35.8 Wiring For details on the wiring, refer to the following manual. MELSEC iQ-F FX5S/FX5UJ/FX5U/FX5UC User's Manual (Hardware) 35 CPU MODULE BUILT-IN ANALOG FUNCTION 35.8 Wiring...
35.9 Parameter Setting Set the parameters of each channel. Setting parameters here eliminates the need to program them. Parameters are enabled when the CPU module is powered ON or after a reset. In addition, operations different from the parameter settings are possible by transferring values to special relays and special registers while changing these values in the program.
35.10 How to Use Analog Inputs Built in CPU Module for Current Inputs The analog input of the built-in analog can be used as the current input (4 to 20 mA DC) for the FX5U CPU module. Method of use with the current input (4 to 20 mA DC) The FX5U CPU module is designed to handle only voltage inputs.
ANALOG EXPANSION ADAPTER For the analog expansion adapter, refer to the following manual. MELSEC iQ-F FX5 User's Manual (Analog Control - CPU module built-in, Expansion adapter) 36 ANALOG EXPANSION ADAPTER...
APPENDIX Appendix 1 Special Relay List The following table shows items in the list for special relays (SM). Item Description Special relay number Name Special relay name Description Data stored in the special relay and its meaning Compatible CPU module Shows CPU modules that support the special relay.
System information The special relays for system information are shown below. Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SM203 STOP contact OFF: Other than STOP state ON: STOP state SM204 PAUSE contact OFF: Other than PAUSE state ...
System clock The special relay about system clock is shown below. Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SM400 Always ON SM401 Always OFF SM402 After RUN, ON for one scan only ...
Scan information The special relay for scan information is shown below. Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SM522 Scan time clear request OFF: Do not clear the scan time. ON: Clear the scan time. Drive information The special relays for drive information are shown below.
Instruction related The special relays related to instruction execution are shown below. Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SM699 Dedicated instruction skip flag OFF: Intelligent dedicated instruction executed ON: Intelligent dedicated instruction not executed SM700 Carry flag OFF: Carry off...
Data logging function The special relays for data logging function are shown below. Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SM1201 SD memory card setting file in use flag OFF: Not used ON: In use SM1202 Data memory setting file in use flag OFF: Not used...
Data backup/restoration function The special relays for data backup/restoration function are shown below. Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SM1350 Data backup status flag OFF: Not being executed ON: Being executed SM1351 Data backup execution request OFFON: Backup requested ...
High-speed input/output function The special relays for the high-speed input/output function are shown below. Shared for all channels of the CPU module Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SM4210 All module reset command OFF: Disabled ON: Enabled (when SD4210 stores F5F5H) SM4300 Event execution type program operation timing...
Page 695
• Pulse width measurement Name Description Compatible CPU module CH1 to CH4 FX5S FX5UJ FX5U/ FX5UC SM5020 to Pulse width measurement operation The measurement in progress/ SM5023 measurement stopped status of pulse width measurement on the target channel can be checked by these flags.
Page 696
• Positioning Name Description Compatible CPU module Axis 1 to Axis 4 FX5S FX5UJ FX5U/ FX5UC SM5500 to Positioning instruction activation OFF: Stopped SM5503 ON: Operation SM5516 to Positioning pulse output monitor OFF: Stopped SM5519 ON: Pulse output ...
Page 697
High-speed pulse input/output module ■First module The special relays list for when the high-speed pulse input/output module is connected as the 1st module is shown below. Page 698 Second module Page 701 Third module Page 704 Fourth module • High-speed counter Name Description Compatible CPU module...
Page 698
• Pulse width measurement Name Description Compatible CPU module CH5, CH6 FX5S FX5UJ FX5U/ FX5UC SM5024, SM5025 Pulse width measurement operation The measurement in progress/ measurement stopped status of pulse width measurement on the target channel can be checked by these flags. OFF: Stopped ON: Operation ...
Page 699
• Positioning Name Description Compatible CPU module CH5, CH6 FX5S FX5UJ FX5U/ FX5UC SM5504, SM5505 Positioning instruction activation OFF: Stopped ON: Operation SM5520, SM5521 Positioning pulse output monitor OFF: Stopped ON: Pulse output SM5536, SM5537 Positioning error occurrence OFF: No error ...
Page 700
■Second module The special relays list for when the high-speed pulse input/output module is connected as the 2nd module is shown below. Page 695 First module Page 701 Third module Page 704 Fourth module • High-speed counter Name Description Compatible CPU module CH11, CH12 FX5S FX5UJ...
Page 701
• Pulse width measurement Name Description Compatible CPU module CH7, CH8 FX5S FX5UJ FX5U/ FX5UC SM5026, SM5027 Pulse width measurement operation The measurement in progress/ measurement stopped status of pulse width measurement on the target channel can be checked by these flags. OFF: Stopped ON: Operation ...
Page 703
■Third module The special relays list for when the high-speed pulse input/output module is connected as the 3rd module is shown below. Page 695 First module Page 698 Second module Page 704 Fourth module • High-speed counter Name Description Compatible CPU module CH13, CH14 FX5S FX5UJ...
Page 704
• Pulse width measurement Name Description Compatible CPU module CH9, CH10 FX5S FX5UJ FX5U/ FX5UC SM5028, SM5029 Pulse width measurement operation The measurement in progress/ measurement stopped status of pulse width measurement on the target channel can be checked by these flags. OFF: Stopped ON: Operation ...
Page 706
■Fourth module The special relays list for when the high-speed pulse input/output module is connected as the 4th module is shown below. Page 695 First module Page 698 Second module Page 701 Third module • High-speed counter Name Description Compatible CPU module CH15, CH16 FX5S FX5UJ...
Page 707
• Pulse width measurement Name Description Compatible CPU module CH11, CH12 FX5S FX5UJ FX5U/ FX5UC SM5030, SM5031 Pulse width measurement operation The measurement in progress/ measurement stopped status of pulse width measurement on the target channel can be checked by these flags. OFF: Stopped ON: Operation ...
CPU module built-in analog function Only FX5U CPU module is supported. The special relays for the CPU module built-in analog function are shown below. Analog input Name Description Compatible CPU module CH1, CH2 FX5S FX5UJ FX5U/ FX5UC SM6020, SM6060 A/D conversion completed flag OFF: A/D conversion not completed ...
Analog output Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SM6180 D/A conversion enable/disable setting OFF: D/A conversion enable ON: D/A conversion disable SM6181 D/A output enable/disable setting OFF: Output enable ON: Output disable ...
Page 711
Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SM8014 1 min clock pulse ON and OFF in 1 min cycles OFF: 30s ON: 30s SM8015 Clock stop and preset When SM8015 turns ON, the real time clock is stopped.
Page 713
Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SM8176 X6 pulse catch Pulse catch ON when X6 is OFFON. SM8177 X7 pulse catch Pulse catch ON when X7 is OFFON. SM8183 Data communication error (Master station) OFF: No error...
Page 714
Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SM8219 LC19 counting direction specification OFF: Up-counting specification ON: Down-counting specification SM8220 LC20 counting direction specification OFF: Up-counting specification ON: Down-counting specification SM8221 LC21 counting direction specification OFF: Up-counting specification...
Page 715
Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SM8328 Instruction non-execution Turns ON when the RBFM instruction or WBFM instruction in another step is executed for the same module number. SM8329 Instruction execution error OFF: Instruction execution normal ON: Instruction execution error complete ...
Page 716
Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SM8429 RS2 Time-out check flag (CH2)/MODBUS ON when timeout occurs. Timeout (CH2) SM8438 Serial communication error 2 (CH2) OFF: No error ON: Error ...
Serial communication function The special relays for the serial communication function are shown below. Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SM8500 Serial communication error (CH1) OFF: No error ON: Error SM8503 Absence/presence of MC protocol (CH1) Turns ON when MC protocol is set for serial ...
Page 718
Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SM8585 Time-out check flag (CH3) This device turns ON when data receiving is suspended and the next set of receive data is not given within the time set by the time-out time setting device.
Page 719
Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SM8861 Host station No. setting SD latch enabled (CH1) OFF: Latch disabled ON: Latch enabled SM8871 Host station No. setting SD latch enabled (CH2) OFF: Latch disabled ...
Extended file register function The special relays for extended file register function are shown below. Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SM9366 Extended file register (ER) access flag Turns ON while the extended file register (ER) is being accessed.
Appendix 2 Special Register List The following table shows items in the list for special registers (SD). Item Description Special register number Name Special register name Description Data stored in the special register Compatible CPU module Shows CPU modules that support the special register. The support status is represented by the following symbols. •...
Page 722
Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SD23 Self diagnostics error code This register stores the self-diagnosis error code. SD24 Self diagnostics error code This register stores the self-diagnosis error code. ...
Page 723
Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SD81 to Detailed information 1 • Detailed information 1 corresponding to the error code (SD0) is SD111 stored. • There are six types of information to be stored as shown in the following figures.
Page 724
Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SD81 to Detailed information 1 (5) System configuration information SD111 b8 b7 b1b0 SD81 With or without specification Head X No. Head Y No. ÷ 8 Head X No. ÷ 8 SD82 Head Y No.
Page 725
Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SD113 Detailed information 2 • Detailed information 2 corresponding to the error code (SD0) is stored. SD143 • There are four types of information to be stored as shown in the following figures.
System information The special registers for system information are shown below. Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SD200 Switch Status This register stores the CPU switch status. 0: RUN 1: STOP SD201 LED Status This register stores the LED status.
Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SD290 ST Device Size [Lower] This register stores the number of ST device points used as 32-bit value. SD291 ST Device Size [Upper] SD292 C Device Size [Lower] This register stores the number of C device points used as 32-bit value.
Scan information The special registers for scan information are shown below. Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SD518 Initial scan time (ms) • The initial scan time is stored into SD518 and SD519 (it is measured in increments of s). ...
Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SD530 Scan program execution time (ms) • The execution time of the scan program for one scan is stored into SD530 and SD531 (it SD531 Scan program execution time (s) ...
Instruction related The special registers related to instruction execution are shown below. Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SD757 Current interrupt priority This register stores the interrupt priority of the interrupt program being executed. 1 to 3: Priority for the interrupt pointer of the interrupt program currently being executed 0: No interrupt operation (default)
Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SD959 Restoration error cause The cause of the error that occurred during the data restoration is stored. • 0: No error • Other than 0: Error code "0" is set at the start of the data backup. ...
Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SD9302 Data logging setting No.3 Data logging register/ The cause of the error that occurred when clear error code SM9302 (Data logging register/clear flag) is ON (register)/OFF (clear) is stored. 0: No error Other than 0: Error code ...
CC-Link IE Field Network Basic function The special registers for CC-Link IE Field Network Basic function are shown below. Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SD1536 Cyclic transmission status of The cyclic transmission status of each station is stored using the each station following bit pattern.
Page 735
Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SD11106 Maximum link scan (unit: ms) The maximum link scan time value during cyclic transmission is stored. (Unit: ms) SD11107 Minimum link scan (unit: ms) The minimum link scan time value during cyclic transmission is ...
Page 736
Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SD11129 Diagnostic information 1 When 1 (valid) is stored in b0 to b7 of SD11128, the number of occupied stations, group number, IP address, the accumulated SD11140 number of timeouts, and the accumulated number of disconnection detection are stored.
FX dedicated The special registers dedicated to FX are shown below. Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SD4110 Error code 1 details This register stores the self-diagnosis error code details. SD4111 Error code 2 details •...
Page 738
Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SD4168 Module 10 status information This register stores the module 10 status information. SD4169 Module 10 error information This register stores the module 10 error information.
High-speed input/output function The special registers for the high-speed input/output function are shown below. High-speed counter Name Description Range Default Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SD4500, SD4530, High-speed counter This register stores -2147483648 to SD4560, SD4590, current value [Low- the high-speed +2147483647...
Page 740
Name Description Range Default Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SD4514, SD4544, High-speed counter This register stores 2 to 2147483648 Parameter SD4574, SD4604, ring length [Low- the high-speed set value SD4634, SD4664, order] counter ring length. SD4694, SD4724 (CH1 to CH8) SD4515, SD4545,...
Page 741
Name Description Range Default Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SD4754, SD4784, High-speed counter This register stores 2 to 2147483648 Parameter SD4814, SD4844, ring length [Low- the high-speed set value SD4874, SD4904, order] counter ring length. SD4934, SD4964 (CH9 to CH16) SD4755, SD4785,...
Page 742
Pulse width measurement Name Description Default Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SD5020, SD5040, Pulse width measurement rising ring This register stores the 00000000H SD5060, SD5080 counter [Low-order] pulse width measurement (CH1 to CH4) rising ring counter value. SD5021, SD5041, Pulse width measurement rising ring SD5061, SD5081...
Page 743
Name Description Default Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SD5102, SD5122, Pulse width measurement falling ring This register stores the 00000000H SD5142, SD5162, counter [Low-order] pulse width measurement SD5182, SD5202, (CH5 to CH12) falling ring counter value. SD5222, SD5242 SD5103, SD5123, Pulse width measurement falling ring...
Page 744
Name Description Default Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SD5300, SD5316, PWM pulse output number [Low-order] This register stores the SD5332, SD5348 (CH1 to CH4) PWM pulse output number. SD5301, SD5317, PWM pulse output number [High-order] SD5333, SD5349 (CH1 to CH4) ...
Page 745
Positioning Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SD5500, SD5540, Positioning current address (user unit) This register stores the current address (user SD5580, SD5620 [Low-order] unit) of positioning. (Axis 1 to Axis 4) SD5501, SD5541, Positioning current address (user unit) SD5581, SD5621 [High-order]...
Page 746
Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SD5660, SD5700, Positioning current address (user unit) This register stores the current address (user SD5740, SD5780, [Low-order] unit) of positioning. SD5820, SD5860, (Axis 5 to Axis 12) SD5900, SD5940 SD5661, SD5701, Positioning current address (user unit) SD5741, SD5781,...
Page 747
Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SD5680, SD5720, Positioning acceleration time This register stores the acceleration time of SD5760, SD5800, (Axis 5 to Axis 12) positioning. SD5840, SD5880, SD5920, SD5960 SD5681, SD5721, Positioning deceleration time This register stores the deceleration time of ...
CPU module built-in analog function The special registers for the CPU module built-in analog function are shown below. Name Description Compatible CPU module CH1, CH2 FX5S FX5UJ FX5U/ FX5UC SD6020, SD6060 Digital output value This register stores the digital output value. ...
FX compatible area The special registers for FX compatible area are shown below. Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SD8000 Watchdog timer This register stores the watchdog timer. SD8001 PLC type and system version This register stores the PLC type and system ...
Page 750
Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SD8142 PLSY Accumulated number of pulses output This register stores the PLSY instruction [Low-order] (axis 2) accumulated number of pulses output (to axis SD8143 PLSY Accumulated number of pulses output [High-order] (axis 2) ...
Page 751
Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SD8213 Code of communication error at slave station This register stores the code of communication No.2 error at slave station No.2. SD8214 Code of communication error at slave station This register stores the code of communication ...
Page 752
Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SD8422 RS2 amount of remaining data (CH2)/MODBUS This register stores the amount of remaining communication error code (CH2) data (CH2)/MODBUS communication error code (CH2). SD8423 RS2 receive data points (CH2)/MODBUS This register stores the receive data points communication error details (CH2)
Serial communication function The special registers for the serial communication function are shown below. Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SD8500 Serial communication error code (CH1) This register stores the serial communication error code 1 (CH1). SD8501 Serial communication error details (CH1) This register stores the serial communication...
Page 754
Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SD8583 Receive sum (received data) (CH3) This register stores the receive sum (received data) (CH3). SD8584 Receive sum (received result) (CH3) This register stores the receive sum (received result) (CH3).
Page 755
Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SD8750 Station number setting (CH2) This register stores the station number setting (CH2). SD8751 Message frame and form (CH2) This register stores the message frame and ...
Page 756
Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SD8893 Turn around delay (CH4) This register stores the broadcast delay (CH4). SD8894 Message to message delay (CH4) This register stores the request to request delay ...
Page 757
Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SD9080 Station number setting This register stores the station number setting. SD9081 Total slave station number setting This register stores the total slave station number setting. ...
Page 758
Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SD9150 Protocol execution status (CH1) The status of a protocol in execution (CH1) is stored. 0: Unexecuted 1: Waiting for transmission 2: Sending 3: Waiting for data reception 4: Receiving 5: Execution completed SD9168...
Page 759
Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SD9230 Send/receive data monitoring function setting The setting (CH1) of the send/receive data (CH1) monitoring function is stored. 0000H: Monitor stop 0001H: Monitor start 0002H: Monitoring (set by system) 1002H: Monitor stop (set by system) 100FH: Monitor setting error (set by system) ...
Page 760
Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SD9253 Monitoring data start device No. specification The start device number (CH3) of word devices (CH3) used as the monitor data areas is stored. 0 to 32765 ...
Built-in Ethernet function The special registers for built-in Ethernet are shown below. Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SD10050 Local node IP address [Low-order] This register stores the local node IP address. SD10051 Local node IP address [High-order] ...
Page 763
Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SD10298 Time setting function required response time A time required from sending the message to the SNTP server to receiving the response and setting the time to the CPU module is stored. Range: 0000H to FFFEH (Unit: ms) If the value exceeds the above range, all the values are stored as FFFFH.
Page 764
Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SD10352 Request to stop communication Request contact to stop data transmission when the communication setting for the simple CPU communication is "Fixed" [b0] to [b15]: Setting No.1 to Setting No.16 0 to 1: Requested (stop request) 1 to 0: Completed (stop completion) ...
Page 765
Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SD10380 Simple CPU communication status The simple CPU communication status is stored. SD10395 SD10380: Setting No.1 to SD10395: Setting No.16 0H: Unset 1H: Preparing 3H: Communicating 4H: Communication stop 5H: Retry being executed 6H: Monitoring at error AH: Communications impossible...
Page 766
Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SD10680 Open completion signal b0: Connection No.1 b1: Connection No.2 b2: Connection No.3 b3: Connection No.4 b4: Connection No.5 b5: Connection No.6 b6: Connection No.7 b7: Connection No.8 0: Close/Open not completed 1: Open completed ...
Page 767
Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SD10742 Connection No.1 received data verification result Stores the verification results of receive packet (receive packet No.1) No.1. Element No. where the verification result did not match (b0 to b7) The cause of mismatch (verification result code) (b8 to b15) ...
Page 768
Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SD10752 Connection No.1 received data verification result Stores the verification results of receive packet (receive packet No.11) No.11. Element No. where the verification result did not match (b0 to b7) The cause of mismatch (verification result code) (b8 to b15) ...
Page 769
Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SD10764 Connection No.2 received data verification result Stores the verification results of receive packet (receive packet No.3) No.3. Element No. where the verification result did not match (b0 to b7) The cause of mismatch (verification result code) (b8 to b15) ...
Page 770
Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SD10774 Connection No.2 received data verification result Stores the verification results of receive packet (receive packet No.13) No.13. Element No. where the verification result did not match (b0 to b7) The cause of mismatch (verification result code) (b8 to b15) ...
Page 771
Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SD10786 Connection No.3 received data verification result Stores the verification results of receive packet (receive packet No.5) No.5. Element No. where the verification result did not match (b0 to b7) The cause of mismatch (verification result code) (b8 to b15) ...
Page 772
Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SD10796 Connection No.3 received data verification result Stores the verification results of receive packet (receive packet No.15) No.15. Element No. where the verification result did not match (b0 to b7) The cause of mismatch (verification result code) (b8 to b15) ...
Page 773
Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SD10808 Connection No.4 received data verification result Stores the verification results of receive packet (receive packet No.7) No.7. Element No. where the verification result did not match (b0 to b7) The cause of mismatch (verification result code) (b8 to b15) ...
Page 774
Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SD10819 Connection No.4 protocol cancellation Cancels the protocol executed in connection specification No.4. 0: No cancellation instruction 1: Cancel request 2: Cancellation completed SD10820 Connection No.5 protocol execution status Stores the status of the protocol being executed at connection No.5.
Page 775
Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SD10830 Connection No.5 received data verification result Stores the verification results of receive packet (receive packet No.9) No.9. Element No. where the verification result did not match (b0 to b7) The cause of mismatch (verification result code) (b8 to b15) ...
Page 776
Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SD10842 Connection No.6 received data verification result Stores the verification results of receive packet (receive packet No.1) No.1. Element No. where the verification result did not match (b0 to b7) The cause of mismatch (verification result code) (b8 to b15) ...
Page 777
Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SD10852 Connection No.6 received data verification result Stores the verification results of receive packet (receive packet No.11) No.11. Element No. where the verification result did not match (b0 to b7) The cause of mismatch (verification result code) (b8 to b15) ...
Page 778
Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SD10864 Connection No.7 received data verification result Stores the verification results of receive packet (receive packet No.3) No.3. Element No. where the verification result did not match (b0 to b7) The cause of mismatch (verification result code) (b8 to b15) ...
Page 779
Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SD10874 Connection No.7 received data verification result Stores the verification results of receive packet (receive packet No.13) No.13. Element No. where the verification result did not match (b0 to b7) The cause of mismatch (verification result code) (b8 to b15) ...
Page 780
Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SD10886 Connection No.8 received data verification result Stores the verification results of receive packet (receive packet No.5) No.5. Element No. where the verification result did not match (b0 to b7) The cause of mismatch (verification result code) (b8 to b15) ...
Page 781
Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SD10896 Connection No.8 received data verification result Stores the verification results of receive packet (receive packet No.15) No.15. Element No. where the verification result did not match (b0 to b7) The cause of mismatch (verification result code) (b8 to b15) ...
MELSEC iQ-F FX5 User's Manual (Communication) CFC0H to CFFFH Error in CC-Link IE Field Network Basic MELSEC iQ-F FX5 User's Manual (CC-Link IE) D000H to DFFFH Detailed information Upon detection of error through self-diagnostics function, the detailed information of the error cause is stored all together. The following detailed information is added to each error code (up to two types of information are stored for each error code.
Operation when an error occurs There are two types of errors: continuation errors and stop errors. Stop error If a stop error occurs, the CPU module stops its operation and the operating state will be in STOP. Modules can communicate with the CPU module even after a stop error occurs in the CPU module.
Positioning-dedicated error When an error related to the positioning function occurs, the following special device turns on. Name CPU module High-speed pulse input/output module First module Second module Third module Fourth module Axis 1 Axis 2 Axis 3 Axis 4 Axis 5 Axis 6 Axis 7...
Page 785
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 1134H TCP connection • A TCP ULP timeout error has Continue • Check the operation of the external Always timeout occurred in the TCP/IP device.
Page 786
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 1826H Write during RUN • Writing during RUN (change Continue • Verify that the writing during RUN (change Error location At END error (axis 6) or deletion) is performed on or deletion) is performed on an instruction information...
Page 787
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 1912H Update error • Recovery of the project data Continue • Recovery of the project data failed, so Drive/file At power-on, saved in the SD memory card initialize all data, and then write in the set information at RESET...
Page 788
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 2042H CPU module ■FX5S CPU module Stop ■FX5S CPU module System At power-on, configuration • The number of communication • Use up to 2 communication adapters. configuration at RESET error...
Page 789
RUN state parameters does not exist. module may be malfunctioning. Initialize the memory, and if the memory still cannot be recovered, consult your local Mitsubishi Electric representative. 21A1H File specification • The file specified in parameter Stop • Check the detailed information...
Page 790
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 2226H Parameter error • The SFC settings in the CPU Stop • Check the detailed information Parameter At power-on, parameter is incorrect. (Block (parameter information) in the module information at RESET, at STOP ...
Page 791
RUN. If the same error is displayed again, there might be hardware failure of the module which became abnormal. Please contact the nearest Mitsubishi Electric system service Co., Ltd. or our branch office, agency. APPX Appendix 3 Error Code...
Page 792
CPU module or intelligent function module where the error has been detected. Consult with your local Mitsubishi Electric representative. 2500H WDT error • The initial scan time exceeded Stop • Recheck the set value of execution...
Page 793
If the same error information at RESET processing failed. appears, the hardware of the CPU module may be malfunctioning. Consult your local Mitsubishi Electric representative. 3003H Boot function • When the boot function was Stop • Check and correct the file password...
Page 794
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 3014H Data restoration • Data was restored to the CPU Stop • Delete file passwords, and execute the CPU module At power-on, function module where the same data CPU module data backup/restoration data backup/ at RESET...
Page 795
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 3045H Update error • Recovery of the project data Stop • Confirm that the SD memory card used Drive/file At power-on, saved in the SD memory card with the firmware update is inserted, and information at RESET...
Page 796
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 3055H System bus error • All module reset is executed. Stop • Review the program and check the Error location At END • The positioning with the high- contents of the operands used in the information instruction...
Page 797
Then, reset the CPU module and run it again. If the same error code is displayed again, the possible cause is a hardware failure of the CPU module. Please contact your nearest Mitsubishi Electric System Service Co., Ltd., or our branch or distributor. 3120H Program error •...
Page 798
CPU program module. Please contact your nearest execution Mitsubishi Electric System Service Co., Ltd., or our branch or distributor. 3170H SFC program • The number of steps in the Stop •...
Page 799
If the same error code is displayed again, the possible cause is a hardware failure of the CPU module. Please contact your nearest Mitsubishi Electric System Service Co., Ltd., or our branch or distributor. 31A0H SFC program •...
Page 800
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 31B4H SFC program • The total number of Stop • Check the detailed information (error Error location At instruction block, step simultaneous active steps that location information) of the error by information execution, at...
Page 801
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 3320H Interrupt pointer • Duplicate interrupt pointers Stop • Modify the program to not use duplicate Error location At power-on, setting error are programmed. interrupt pointers in a program. information at RESET 3340H...
Page 802
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 33E2H Program • An instruction that should start Stop • Rewrite the program file. Error location At power-on, structure error from the bus line is not information at RESET connected to the bus line.
Page 803
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 3403H Operation error • An overflow occurred in an Continue/ • Review the data specified in the applied Error location At instruction applied instruction. stop instruction.
Page 804
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 3503H Operation error • A value outside the allowable Continue/ • Check the contents of the parameters. Error location At instruction range was set to the stop information execution...
Page 805
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 3517H Operation error • The output set value upper Continue/ • Verify that the target setting contents are Error location At instruction limit for auto tuning is lower stop correct.
Page 806
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 3586H Operation error • The SD memory card has not Continue/ • Insert or re-insert an SD memory card, Error location At instruction been inserted. stop and execute the function again.
Page 807
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 3617H CH7 pulse width, • The set value of pulse width, Continue/ • Correct the set value so that the pulse Error location At END period setting cycle, or number of output stop...
Page 808
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 3627H Axis 7 limit • Both the forward and reverse Continue/ • Recheck the relationship between the Error location At END detection error limits were detected at the stop near-point dog and limits.
Page 809
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 3632H Axis 2 positioning • The 32-bit range was Continue/ • Correct values so that the positioning Error location At interrupt address error exceeded when the unit of the stop address and starting point address (only if information...
Page 810
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 3635H Axis 5 positioning • The 32-bit range was Continue/ • Correct values so that the positioning Error location At interrupt address error exceeded when the unit of the stop address and starting point address (only if information...
Page 811
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 3638H Axis 8 positioning • The 32-bit range was Continue/ • Correct values so that the positioning Error location At interrupt address error exceeded when the unit of the stop address and starting point address (only if information...
Page 812
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 363BH Axis 11 • The 32-bit range was Continue/ • Correct values so that the positioning Error location At interrupt positioning exceeded when the unit of the stop address and starting point address (only if information...
Page 813
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 3645H Axis 5 command • The 32-bit range was Continue/ • Correct values so that the maximum Error location At instruction speed error exceeded when the unit of the stop speed and command speed are within the information...
Page 814
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 3651H Axis 1 error stop • When pulses were being Continue/ • Eliminate the error that has caused the Error location At END (deceleration output or positioning was stop stop and restart the positioning.
Page 815
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 3655H Axis 5 error stop • When pulses were being Continue/ • Eliminate the error that has caused the Error location At END (deceleration output or positioning was stop stop and restart the positioning.
Page 816
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 3659H Axis 9 error stop • When pulses were being Continue/ • Eliminate the error that has caused the Error location At END (deceleration output or positioning was stop stop and restart the positioning.
Page 817
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 3661H Axis 1 error stop • When pulses were being Continue/ • Eliminate the error that has caused the Error location At END (immediately output or positioning was stop stop and restart the positioning.
Page 818
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 366AH Axis 10 error stop • When pulses were being Continue/ • Eliminate the error that has caused the Error location At END (immediately output or positioning was stop stop and restart the positioning.
Page 819
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 367AH Axis 10 • The value of an operand in the Continue/ • Set the correct value to the table. Error location At interrupt positioning table table is abnormal.
Page 820
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 3689H Axis 9 positioning • Tables which cannot be used Continue/ • Correct the table combination so that the Error location At interrupt table shift error together were specified for stop continuous operation can be performed.
Page 821
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 3695H Axis 5 positioning • Table shift processing cannot Continue/ • Set the interval of table shifts to 10 ms or Error location At interrupt table shift error be completed in time because stop...
Page 822
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 369CH Axis 12 • Table shift processing cannot Continue/ • Set the interval of table shifts to 10 ms or Error location At interrupt positioning table be completed in time because stop greater.
Page 823
Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 36ACH Axis 12 • The counterpart axis table for Continue/ • Set the table of the counterpart axis Error location At instruction interpolation the interpolation operation stop correctly.
Page 824
• Reset the CPU module, and then execute instruction it again. If the same error is displayed execution again, there may be a hardware failure in the CPU module. Consult your local Mitsubishi Electric representative. 3C00H Hardware failure • A hardware failure was Stop •...
Page 825
If the same error appears, the hardware at RESET of the CPU module may be malfunctioning. Initialize the memory, and if the memory still cannot be recovered, consult your local Mitsubishi Electric representative. 3C22H Memory error • A memory error was detected.
Page 826
Error codes of the CPU module (4000H to 4FFFH) The following table lists the error codes detected by other causes than the self-diagnostics function of the CPU module. Error Error name Error details and cause Action code 4000H Common error •...
Page 827
Error Error name Error details and cause Action code 4034H Device specification • The dedicated instruction cannot be executed since the • Since the completion device for the SREAD or SWRITE error completion device for the dedicated instruction does not instruction does not turn on in the CPU module on the turn on.
Page 828
Error Error name Error details and cause Action code 40B5H SFC file related • The number of SFC steps after changing the program • Reduce the number of SFC steps to be added by online error exceeds the maximum number. change.
Page 829
Error Error name Error details and cause Action code 4183H CPU module built-in • Communication with receiving modules was interrupted. • Check the external device operation. Ethernet port error • Check the status of the lines such as cables, hubs and routes connected to receiving modules.
Page 830
Error Error name Error details and cause Action code 4270H Data logging • Data logging function is being performed (data logging • Register data logging to the memory where the data function error status: Being executed, Saving in progress, End, Pause, logging is being performed.
Page 831
Error Error name Error details and cause Action code 4402H Security function • Write password authentication has failed when required. • Set the correct write password and perform password error • The file password format is incorrect. authentication. • Access the file with the correct method. 4403H Security function •...
Page 832
Error Error name Error details and cause Action code 4B00H Target module error • An error occurred in the access destination or relay • Take corrective action after checking the error that station. occurred at the specified access destination or the relay •...
Page 833
Error Error name Error details and cause Action code 4C13H CPU module • Reading/writing of data from/to the CPU built-in memory • Back up data in the CPU built-in memory, initialize the backup/restoration completed with an error. memory, and write the data back to the original memory. function error •...
Page 834
Error Error name Error details and cause Action code 4C40H File transfer • When files are specified by using wild card characters for • Check and correct the wild card specification. function (FTP client) the file transfer function instruction, the number of files error matched exceeds the upper limit of the transferable number of files.
Page 835
Error codes of errors in PID control via parameter (8100H to 8230H) The following table lists error codes of errors in the PID control via parameter function. Error Error name Error details and cause Stop/ Action code continue 8100H Auto-tuning The difference between the maximum and minimum Continue Multiply the measured value (PV) by "10"...
Page 836
Error Error name Error details and cause Stop/ Action code continue 8116H Out of parameter A value outside the allowable range was set to the Continue Set a value in the range 1 to 3000 for the control output setting range control output cycle, heating control output cycle, or cycle, heating control output cycle, or cooling control cooling control output cycle during PID control.
Page 837
Error Error name Error details and cause Stop/ Action code continue 8125H Out of parameter The lower value than the operation cycle value of the Continue Set a value larger enough than the scan time for the setting range programmable controller was set to the control control output cycle setting, heating control output cycle output cycle setting, heating control output cycle setting, or cooling output cycle setting.
Page 838
Error Error name Error details and cause Stop/ Action code continue 8213H PID control A PID operation result overflow occurred. Stop PID control was not executed correctly. Check and malfunction correct the values for the proportional gain (Kp), heating proportional gain (Kph), cooling proportional gain (Kpc), integral time (TI), differential time (TD), and sampling time (Ts).
Page 839
Error codes of analog input/output (0000H to 1B71H) The following table lists the error codes that may be stored. ■Analog input : The following table lists the channel number (1: CH1 to 2: CH2) where the error occurred. Error code Error name Error details and cause Action...
Appendix 4 Alarm Code The following table shows the list of the alarm codes stored. Analog input : Indicates the number of the channel where an alarm has occurred. (1: CH1 to 2: CH2) Alarm code Alarm name Description and cause Action 080H Process alarm (upper limit)
Appendix 5 Parameter List A parameter list is shown below. System parameters Item Parameter No. I/O Assignment Setting Model Name 0203H Intelligent Module No. 0200H Serial Communication ch 0200H Number of Input Points 0200H Number of Output Points ...
Item Parameter No. SFC Setting SFC Program Setting To Use or Not to Use SFC 3C10H SFC Program Start Mode Setting SFC Program Start Mode 3C00H Start Conditions Setting Start Conditions 3C00H FX3 Compatible Transition Operation Mode Setting FX3 Compatible Transition Operation Mode 3C10H Module parameters Ethernet Port...
Page 843
485 Serial Port ■MELSOFT Connection Item Parameter No. Basic Settings Communication Protocol Type Communication Protocol Type 8000H ■Non-Protocol Communication Item Parameter No. Basic Settings Communication Protocol Type Communication Protocol Type 8001H Advanced Settings Data Length 8001H Parity Bit 8001H Stop Bit 8001H Baud Rate 8001H...
Page 844
■MODBUS_RTU Communication Item Parameter No. Basic Settings Communication Protocol Type Communication Protocol Type 8003H Advanced Settings Parity Bit 8003H Stop Bit 8003H Baud Rate 8003H Fixed Setting Host Station No. Host Station No. 8003H Slave Response Timeout Slave Response Timeout 8003H Broadcast Delay Broadcast Delay...
Page 845
■N:N Network Item Parameter No. Basic Settings Communication Protocol Type Communication Protocol Type 8006H Fixed Setting Host Station No. Host Station No. 8006H Total Number of Local Station Total Number of Local Station 8006H Refresh Range Refresh Range 8006H Timeout Retry Count Setting Timeout Retry Count Setting 8006H Monitoring Time...
Page 846
High Speed I/O Settings Item Parameter No. Input Function General/Interrupt/Pulse catch General/Interrupt/Pulse catch 8010H High Speed Counter High Speed Counter 8010H Pulse Width Measurement Pulse Width Measurement 8010H Output Function Positioning Positioning 8010H 8010H Input Check Input Response Time Input Response Time 8010H Input Interrupt Rising...
Page 847
■High Speed Counter Item Parameter No. Basic Settings Use/Do Not Use Counter Use/Not Use 8010H Operation Mode Operation Mode 8010H Pulse Input Mode Pulse Input Mode 8010H Preset Input Preset Input Enable/Disable 8010H Input Logic 8010H Preset Value 8010H Input Comparison Enable/Disable 8010H Control Switch 8010H...
Page 848
■Positioning Item Parameter No. Basic Settings Basic Parameters 1 Pulse Output Mode 8010H Output Device (PULSE/CW) 8010H Output Device (SIGN/CCW) 8010H Rotation Direction Setting 8010H Unit Setting 8010H Pulse No. of per Rotation 8010H Movement Amount per Rotation 8010H Position Data Magnification 8010H Basic Parameters 2 Interpolation Speed Specified Method...
Page 849
■PWM Item Parameter No. Basic Settings Use PWM Output Use/Not Use 8010H Output Signal Output Signal 8010H Pulse Width/Cycle Unit Pulse Width/Cycle Unit 8010H Output Pulse Logic Output Pulse Logic 8010H Pulse Width Pulse Width 8010H Cycle Cycle 8010H Input Response Time Setting Item Parameter No.
Memory card parameters Item Parameter No. Boot Setting Boot Setting Clear the CPU built-in memory before boot 2000H Boot File Setting 2000H Setting of File/Data Use or Not in Memory Card Module Extended Parameter 2010H Device Station Parameter 2010H APPX Appendix 5 Parameter List...
Appendix 6 Event List Information including errors detected in the CPU module, expansion board, expansion adapter and intelligent module, and errors that occur in the network are collected and saved in the CPU built-in memory or SD memory card by the CPU module. (...
Event list The following table lists events related to the CPU module. Event Event Event Detected event Description Detailed information code type category Detailed Detailed Detailed information information information 00430 System Info SFC program continue An SFC program could not be resumed, start not possible and an initial start was performed.
For the processing time for the SFC control instruction, refer to the following. MELSEC iQ-F FX5 Programming Manual (Instructions, Standard Functions/Function Blocks) ■SFC processing time The following table lists the details of the types of the SFC processing time (A).
Page 854
The following table lists the coefficient values for each processing time. Item Coefficient value FX5U/FX5UC CPU module Program capacity setting: Program capacity setting: 64000 steps 128000 steps 2.6 s 2.6 s Active block processing time coefficient 1.2 s 1.2 s Inactive block processing time coefficient 0.5 s 0.5 s...
Processing time until the file operation is completed This section describes the processing time from the start of the file operation instruction until the completion of the file operation. Changes in the processing time according to the number of files The processing time changes according to the number of files stored in folders.
Page 856
Changes in the processing time according to the file size The processing time changes according to the size of the files stored in the folder. The table below lists the processing time under the following conditions. ■Condition • Folder/file structure (drive 2: SD memory card) •...
Appendix 8 How to Use CPU Module Logging Configuration Tool This appendix describes how to operate the CPU Module Logging Configuration Tool and configure the logging function. For the system configuration and procedure for using the data logging function, refer to the following. Page 153 Procedure for Using Operating environment For details on the operating environment for CPU Module Logging Configuration Tool, refer to following manual which is...
Page 858
Communication route To connect the CPU module to a personal computer, use the following methods. (Page 862 Transfer setup) ■Connection through an RS-232C communication port Connect the CPU module that is hooked up with an FX5-232-BD or FX5-232ADP with an RS-232C cable. ■Connection through an USB port Connect the FX5S/FX5UJ CPU module with a USB cable.
Screen configuration Entire screen The entire screen configuration is shown below. Menu bar Tool bar Edit item tree Main window Name Description Reference Menu bar The menu is displayed. Page 858 Menu structure Tool bar The tool icons are displayed. Edit item tree The setting items are displayed in tree format.
Page 855 Help Open Manual E-Manual Viewer opens and its manual is displayed. Page 869 Connection to MITSUBISHI The Mitsubishi Electric Corporation FA website is displayed. Page 869 ELECTRIC FA Global Website About Configuration tool The product information is displayed.
Page 861
Project management This function creates and saves the project, and reads/writes it from/to an SD memory card. ■New Create a new project. [Project] [New] Window Displayed items Item Description PLC series Select "FX5CPU". ■Open Open a stored project file. [Project] ...
Page 862
■Read logging setting from memory card (SD) The following procedure is to read the data logging setting written in an SD memory card attached to the personal computer. Operating procedure Attach an SD memory card to the personal computer. Open the following window. [Project] ...
Page 863
■Write logging setting into memory card (SD) The following procedure is to write the settings being edited in a format with which the CPU module can operate. Once writing the settings directly into an SD memory card attached to the personal computer and attaching the card to the CPU module, the data logging starts.
Page 864
View ■Display language change The CPU Module Logging Configuration Tool supports multiple languages, and can be used by changing the display language for menus and so on at the same computer. Operating procedure [View] [Switch Display Language (Display Language)] Precautions Text may be cut off if the OS and set display language differ.
Page 865
■Read logging setting The following procedure reads the data logging setting from the target memory. Operating procedure Open the "Read Logging Setting" window. [Online] [Read Logging Setting] Select the memory where the data to be read is stored from the "Target memory" list. Select the checkbox corresponding to the data item to be read in the "Target logging setting data"...
Page 866
■Write logging setting The following procedure is to write the data logging setting to the target memory. Operating procedure Open the "Write Logging Setting" window. [Online] [Write Logging Setting] Select the memory where the data to be written is stored from "Target memory" list. Select the checkbox in the "Target logging setting data"...
Page 867
■Delete logging setting The following procedure removes the data logging setting on the target memory. Operating procedure Open the "Delete Logging Setting" window. [Online] [Delete Logging Setting] Select the memory where the data to be removed is stored from the "Target memory" list. Select the checkbox corresponding to the data item to be removed in the "Target logging setting data"...
Page 868
■Logging status and operation The following procedure is to execute or stop the data logging. Also the data logging status can be checked through this procedure. Operating procedure Open the "Logging Status and Operation" window. [Online] [Logging Status and Operation] Specify the target memory (either data memory or SD memory card) where the effective setting data is stored.
Page 869
Displayed items Item Description Monitor status [Start (Stop)] button Start or stop monitoring. SD memory card data Free space View the amount of free space of the SD memory card. Logging status Target memory Select the memory used for this operation. [Select All] button Select all the checkboxes in the setting data list.
Page 870
■Logging file operation The following procedure is to save or remove data logging files on an SD memory card from/to the personal computer. Operating procedure Open the "Logging File Operation" window. [Online] [Logging File Operation] Specify the directory and select the targeted file. To save, click the [Save to PC] button.
■Connection to MITSUBISHI ELECTRIC FA Global Website Access Mitsubishi Electric Corporation FA site home page. Operating procedure [Help] [Connection to MITSUBISHI ELECTRIC FA Global Website] ■Checking version information Check the version of CPU Module Logging Configuration Tool. Operating procedure [Help] ...
Page 872
Collection The following window configures the collection interval and/or collection start conditions ( Page 170 Data collection conditions) Window Displayed items Item Description Setting range Default Each scanning cycle Select this item to collect scan data obtained for each ...
Page 873
Displayed items Item Description Setting range Default In this column, the data setting numbers from 001 to 128 are displayed. Page 172 Data to be collected Device Head Specify the start device number. Last In this column, the end device number calculated based on the data type and size is displayed.
Page 874
Trigger The following window specifies the trigger condition when the trigger logging is selected ( Page 174 Trigger condition) Window Displayed items Item Description Setting range Default Page 174 Condition specification Condition specification Configure the trigger condition based on the device Checked data condition.
Page 875
Output The following window specifies the items to be output into the file. ( Page 175 Data output specifications) Window Displayed items Item Description Setting range Default *2*3 Date Output date Add a time stamp to data for the data logging. Checked (YYYY/MM/DD Set Date Line Format...
Page 876
Save The following window configures the target storage for data logging file and switching timing of storage files. ( Page 183 Switching to a storage file) Window Displayed items Item Description Setting range Default Logging File save destination Specify the storage folder for the data logging file. 60 characters or less (double- file save byte character not allowed)
Page 877
*1 Date and/or time can be added in any format by using the following character strings. Year: YYYY for four-digit expression; YY for two-digit expression Month: MM Day: DD Day of the week: ddd (Sunday: Sun, Monday: Mon, Tuesday: Tue, Wednesday: Wed, Thursday: Thu, Friday: Fri, Saturday: Sat) ...
Page 878
Finish The following window is to give the data logging setting a name. Window Displayed items Item Description Setting range Default Data logging name Give the data logging setting being configured a 32 characters or less LOG [Logging name. setting No.] ...
Page 879
Supported characters This section describes the supported characters. ■Supported characters for CPU Module Logging Configuration Tool Any characters that can be expressed by Unicode are supported. However, the supported characters vary for each position as shown in the following table. Note that if attempting to input an unsupported character, the entry is rejected or a message window appears in response to the improper entry.
Page 880
Procedure for installing the built-in USB driver of the FX5S/FX5UJ CPU modules To communicate with the FX5S/FX5UJ CPU module via USB, a USB driver needs to be installed. This section describes the installation procedure of a USB driver. If multiple MELSOFT products are installed, refer to their installed location. ...
Appendix 9 Connection Example of Servo Amplifier Examples (sink input/sink output) of connecting a CPU module and high-speed pulse input/output module to a MELSERVO MR-J4A, MR-J3A, or MR-JNA series servo amplifier are shown. Use a CPU module and I/O module is transistor output. For pulse output mode, refer to Page 382 Pulse Output Mode.
MELSERVO-J4 series PULSE/SIGN mode ■FX5S CPU module MR-J4 A series FX5S-30MT/ES 100V to 240V AC servo amplifier 24 V DC DICOM DOCOM DICOM Class-D Zero speed grounding Positioning completed(INP) Torque being controlled Servo error(ALM) Photocoupler Immediate stop command OPR command JOG(+)command JOG(-)command Forward rotation...
Page 883
*1 Be sure to use the class-D grounding method (grounding resistance: 100 or less). *2 To ensure safety, use the forward rotation limit switch and the reverse rotation limit switch on both sides: the CPU module side and the servo amplifier side.
Page 884
■FX5UJ CPU module MR-J4A series FX5UJ-24MT/ES 100V to 240V AC servo amplifier 24 V DC DICOM DOCOM DICOM Class-D Zero speed grounding Positioning completed(INP) Torque being Photocoupler controlled Servo error(ALM) Zero signal (PG0) Servo ON Reset Servo ready (RD) Emergency stop 2 Forward Pulse train COM0...
Page 885
*1 Be sure to use the class-D grounding method (grounding resistance: 100 or less). *2 Near-point signal (DOG) *3 To ensure safety, use the forward rotation limit switch and the reverse rotation limit switch on both sides: the CPU module side and the servo amplifier side.
Page 886
■FX5U CPU module MR-J4A series FX5U-32MT/ES 100V to 240V AC servo amplifier 24 V DC DICOM DOCOM DICOM Class-D Zero speed grounding Positioning completed(INP) Torque being Photocoupler controlled Servo error(ALM) Zero signal (PG0) Servo ON Reset Servo ready (RD) Emergency stop 2 Forward rotation limit 2 Reverse...
Page 887
*1 Be sure to use the class-D grounding method (grounding resistance: 100 or less). *2 Near-point signal (DOG) *3 To ensure safety, use the forward rotation limit switch and the reverse rotation limit switch on both sides: the CPU module side and the servo amplifier side.
Page 888
■FX5UC CPU module MR-J4A series FX5UC-32MT/D servo amplifier DICOM 24 V DC DICOM DOCOM Class-D Zero speed grounding Photocoupler Positioning completed(INP) Torque being Zero signal (PG0) controlled Servo error(ALM) Servo ready (RD) Servo ON Reset Emergency stop 2 COM0 Forward Pulse train rotation limit 2 COM0...
Page 889
*1 Be sure to use the class-D grounding method (grounding resistance: 100 or less). *2 Near-point signal (DOG) *3 To ensure safety, use the forward rotation limit switch and the reverse rotation limit switch on both sides: the CPU module side and the servo amplifier side.
Page 890
■High-speed pulse input/output module MR-J4A series FX5U-32MT/ES 100V to 240V AC servo amplifier 24 V DC DICOM DOCOM DICOM Class-D Zero speed grounding Positioning completed(INP) Torque being Photocoupler controlled Servo error(ALM) Servo ON FX5-16ET/ES-H Reset Servo ready Emergency stop 2 Photocoupler (RD) Forward...
Page 891
*1 Be sure to use the class-D grounding method (grounding resistance: 100 or less). *2 Near-point signal (DOG) Any input other than high-speed pulse input/output module can also be used. *3 To ensure safety, use the forward rotation limit switch and the reverse rotation limit switch on both sides: the CPU module side and the servo amplifier side.
Page 892
CW/CCW mode ■FX5S CPU module MR-J4 A series FX5S-30MT/ES 100V to 240V AC servo amplifier 24 V DC DICOM DOCOM DICOM Class-D Zero speed grounding Positioning completed(INP) Torque being controlled Servo error(ALM) Photocoupler Immediate stop command OPR command JOG(+)command JOG(-)command Forward rotation positioning command Reverse rotation...
Page 893
*1 Be sure to use the class-D grounding method (grounding resistance: 100 or less). *2 To ensure safety, use the forward rotation limit switch and the reverse rotation limit switch on both sides: the CPU module side and the servo amplifier side.
Page 894
■FX5U CPU module MR-J4A series FX5U-32MT/ES 100V to 240V AC servo amplifier 24 V DC DICOM DOCOM DICOM Class-D Zero speed grounding Positioning completed(INP) Torque being Photocoupler controlled Servo error(ALM) Zero signal (PG0) Servo ON Reset Servo ready (RD) DOCOM Emergency stop 2 Forward rotation limit 2...
Page 895
*1 Be sure to use the class-D grounding method (grounding resistance: 100 or less). *2 Near-point signal (DOG) *3 To ensure safety, use the forward rotation limit switch and the reverse rotation limit switch on both sides: the CPU module side and the servo amplifier side.
Page 896
■FX5UC CPU module MR-J4A series FX5UC-32MT/D servo amplifier DICOM 24 V DC DICOM DOCOM Class-D Zero speed grounding Photocoupler Positioning completed(INP) Torque being Zero signal (PG0) controlled Servo error(ALM) Servo ready (RD) Servo ON DOCOM Reset Emergency stop 2 COM0 Forward rotation Forward pulse train...
Page 897
*1 Be sure to use the class-D grounding method (grounding resistance: 100 or less). *2 Near-point signal (DOG) *3 To ensure safety, use the forward rotation limit switch and the reverse rotation limit switch on both sides: the CPU module side and the servo amplifier side.
Page 898
■High-speed pulse input/output module MR-J4A series FX5U-32MT/ES 100V to 240V AC servo amplifier 24 V DC DICOM DOCOM DICOM Class-D Zero speed grounding Positioning completed(INP) Torque being Photocoupler controlled Servo error(ALM) Servo ON FX5-16ET/ES-H Reset Servo ready Emergency stop 2 Photocoupler (RD) DOCOM...
Page 899
*1 Be sure to use the class-D grounding method (grounding resistance: 100 or less). *2 Near-point signal (DOG) Any input other than high-speed pulse input/output module can also be used. *3 To ensure safety, use the forward rotation limit switch and the reverse rotation limit switch on both sides: the CPU module side and the servo amplifier side.
Page 900
■FX5UJ CPU module FX5UJ-24MT/ES 100V to 240V AC Class-D grounding MR-J4A series servo amplifier DOCOM Photocoupler DICOM 24 V DC FX5-16EYT/ES COM0 Servo-ON ABS transfer mode ABSM ABS request ABSR FX5-16EX/ES Photocoupler ABS (bit0) ABSB0 ABS (bit1) ABSB1 Send data ready ABST Plate *1 Be sure to use the class-D grounding method (grounding resistance: 100 ...
Page 901
■FX5U CPU module FX5U-32MT/ES 100V to 240V AC Class-D grounding MR-J4A series servo amplifier DOCOM Photocoupler DICOM 24 V DC FX5-16EYT/ES COM0 Servo-ON ABS transfer mode ABSM ABS request ABSR FX5-16EX/ES Photocoupler ABS (bit0) ABSB0 ABS (bit1) ABSB1 Send data ready ABST Plate *1 Be sure to use the class-D grounding method (grounding resistance: 100 ...
Page 902
■FX5UC CPU module MR-J4A series FX5UC-32MT/D servo amplifier DICOM 24 V DC DOCOM Class-D grounding Photocoupler FX5-C32EYT/D COM0 COM0 Servo-ON ABS transfer mode ABSM ABS request ABSR FX5-C32EX/D Photocoupler ABS (bit0) ABSB0 ABS (bit1) ABSB1 Send data ready ABST Plate *1 Be sure to use the class-D grounding method (grounding resistance: 100 ...
MELSERVO-J3 series PULSE/SIGN mode ■FX5S CPU module MR-J3 A series FX5S-30MT/ES 100V to 240V AC servo amplifier 24 V DC DICOM DOCOM DICOM Class-D Zero speed grounding Positioning completed(INP) Torque being controlled Servo error(ALM) Photocoupler Immediate stop command OPR command JOG(+)command JOG(-)command Forward rotation...
Page 904
*1 Be sure to use the class-D grounding method (grounding resistance: 100 or less). *2 To ensure safety, use the forward rotation limit switch and the reverse rotation limit switch on both sides: the CPU module side and the servo amplifier side.
Page 905
■FX5UJ CPU module MR-J3A series FX5UJ-24MT/ES 100V to 240V AC servo amplifier 24 V DC DICOM DOCOM DICOM Class-D Zero speed grounding Positioning completed(INP) Torque being Photocoupler controlled Servo error(ALM) Zero signal (PG0) Servo ON Reset Servo ready (RD) Emergency stop Forward Pulse train COM0...
Page 906
*1 Be sure to use the class-D grounding method (grounding resistance: 100 or less). *2 Near-point signal (DOG) *3 To ensure safety, use the forward rotation limit switch and the reverse rotation limit switch on both sides: the CPU module side and the servo amplifier side.
Page 907
■FX5U CPU module MR-J3A series FX5U-32MT/ES 100V to 240V AC servo amplifier 24 V DC DICOM DOCOM DICOM Class-D Zero speed grounding Positioning completed(INP) Torque being Photocoupler controlled Servo error(ALM) Zero signal (PG0) Servo ON Reset Servo ready (RD) Emergency stop Forward rotation limit 2 Reverse...
Page 908
*1 Be sure to use the class-D grounding method (grounding resistance: 100 or less). *2 Near-point signal (DOG) *3 To ensure safety, use the forward rotation limit switch and the reverse rotation limit switch on both sides: the CPU module side and the servo amplifier side.
Page 909
■FX5UC CPU module MR-J3A series FX5UC-32MT/D servo amplifier DICOM 24 V DC DOCOM DICOM Class-D Zero speed grounding Photocoupler Positioning completed(INP) Torque being Zero signal (PG0) controlled Servo error(ALM) Servo ready (RD) Servo ON Reset Emergency stop COM0 Forward Pulse train rotation limit 2 COM0 DOCOM...
Page 910
*1 Be sure to use the class-D grounding method (grounding resistance: 100 or less). *2 Near-point signal (DOG) *3 To ensure safety, use the forward rotation limit switch and the reverse rotation limit switch on both sides: the CPU module side and the servo amplifier side.
Page 911
■High-speed pulse input/output module MR-J3A series FX5U-32MT/ES 100V to 240V AC servo amplifier 24 V DC DICOM DOCOM DICOM Class-D Zero speed grounding Positioning completed(INP) Torque being Photocoupler controlled Servo error(ALM) Servo ON FX5-16ET/ES-H Reset Servo ready Emergency stop Photocoupler (RD) Forward rotation limit 2...
Page 912
*1 Be sure to use the class-D grounding method (grounding resistance: 100 or less). *2 Near-point signal (DOG) Any input other than high-speed pulse input/output module can also be used. *3 To ensure safety, use the forward rotation limit switch and the reverse rotation limit switch on both sides: the CPU module side and the servo amplifier side.
Page 913
CW/CCW mode ■FX5S CPU module MR-J3 A series FX5S-30MT/ES 100V to 240V AC servo amplifier 24 V DC DICOM DOCOM DICOM Class-D Zero speed grounding Positioning completed(INP) Torque being controlled Servo error(ALM) Photocoupler Immediate stop command OPR command JOG(+)command JOG(-)command Forward rotation positioning command Reverse rotation...
Page 914
*1 Be sure to use the class-D grounding method (grounding resistance: 100 or less). *2 To ensure safety, use the forward rotation limit switch and the reverse rotation limit switch on both sides: the CPU module side and the servo amplifier side.
Page 915
■FX5U CPU module MR-J3A series FX5U-32MT/ES 100V to 240V AC servo amplifier 24 V DC DICOM DOCOM DICOM Class-D Zero speed grounding Positioning completed(INP) Torque being Photocoupler controlled Servo error(ALM) Zero signal (PG0) Servo ON Reset Servo ready (RD) DOCOM Emergency stop Forward rotation limit 2...
Page 916
*1 Be sure to use the class-D grounding method (grounding resistance: 100 or less). *2 Near-point signal (DOG) *3 To ensure safety, use the forward rotation limit switch and the reverse rotation limit switch on both sides: the CPU module side and the servo amplifier side.
Page 917
■FX5UC CPU module MR-J3A series FX5UC-32MT/D servo amplifier DICOM 24 V DC DOCOM DICOM Class-D Zero speed grounding Photocoupler Positioning completed(INP) Torque being Zero signal (PG0) controlled Servo error(ALM) Servo ready (RD) Servo ON DOCOM Reset Emergency stop COM0 Forward rotation Forward pulse train rotation limit 2...
Page 918
*1 Be sure to use the class-D grounding method (grounding resistance: 100 or less). *2 Near-point signal (DOG) *3 To ensure safety, use the forward rotation limit switch and the reverse rotation limit switch on both sides: the CPU module side and the servo amplifier side.
Page 919
■High-speed pulse input/output module MR-J3A series FX5U-32MT/ES 100V to 240V AC servo amplifier 24 V DC DICOM DOCOM DICOM Class-D Zero speed grounding Positioning completed(INP) Torque being Photocoupler controlled Servo error(ALM) Servo ON FX5-16ET/ES-H Reset Servo ready Emergency stop Photocoupler (RD) DOCOM Forward...
Page 920
*1 Be sure to use the class-D grounding method (grounding resistance: 100 or less). *2 Near-point signal (DOG) Any input other than high-speed pulse input/output module can also be used. *3 To ensure safety, use the forward rotation limit switch and the reverse rotation limit switch on both sides: the CPU module side and the servo amplifier side.
Page 921
■FX5UJ CPU module FX5UJ-24MT/ES 100V to 240V AC Class-D grounding MR-J3A series servo amplifier DOCOM Photocoupler DICOM 24 V DC FX5-16EYT/ES COM0 Servo-ON ABS transfer mode ABSM ABS request ABSR FX5-16EX/ES Photocoupler ABS (bit0) ABSB0 ABS (bit1) ABSB1 Send data ready ABST Plate *1 Be sure to use the class-D grounding method (grounding resistance: 100 ...
Page 922
■FX5U CPU module FX5U-32MT/ES 100V to 240V AC Class-D grounding MR-J3A series servo amplifier DOCOM Photocoupler DICOM 24 V DC FX5-16EYT/ES COM0 Servo-ON ABS transfer mode ABSM ABS request ABSR FX5-16EX/ES Photocoupler ABS (bit0) ABSB0 ABS (bit1) ABSB1 Send data ready ABST Plate *1 Be sure to use the class-D grounding method (grounding resistance: 100 ...
Page 923
■FX5UC CPU module MR-J3A series FX5UC-32MT/D servo amplifier DICOM 24 V DC DOCOM Class-D grounding Photocoupler FX5-C32EYT/D COM0 COM0 Servo-ON ABS transfer mode ABSM ABS request ABSR FX5-C32EX/D Photocoupler ABS (bit0) ABSB0 ABS (bit1) ABSB1 Send data ready ABST Plate *1 Be sure to use the class-D grounding method (grounding resistance: 100 ...
MELSERVO-JN series PULSE/SIGN mode ■FX5S CPU module MR-JN A series FX5S-30MT/ES 100V to 240V AC servo amplifier 24 V DC DICOM DOCOM DICOM Class-D grounding Positioning completed(INP) Servo error(ALM) Photocoupler Immediate stop command OPR command JOG(+)command JOG(-)command Forward rotation positioning command Reverse rotation positioning command Forward rotation limit 1 (LSF)
Page 925
*1 Be sure to use the class-D grounding method (grounding resistance: 100 or less). *2 To ensure safety, use the forward rotation limit switch and the reverse rotation limit switch on both sides: the CPU module side and the servo amplifier side.
Page 926
■FX5UJ CPU module MR-JNA series FX5UJ-24MT/ES 100V to 240V AC servo amplifier 24 V DC DICOM DOCOM DICOM Class-D grounding Positioning completed(INP) Photocoupler Servo error(ALM) Zero signal (PG0) Servo ON Reset Servo ready (RD) Emergency stop Forward Pulse train COM0 rotation limit 2 DOCOM Reverse...
Page 927
*1 Be sure to use the class-D grounding method (grounding resistance: 100 or less). *2 Near-point signal (DOG) *3 To ensure safety, use the forward rotation limit switch and the reverse rotation limit switch on both sides: the CPU module side and the servo amplifier side.
Page 928
■FX5U CPU module MR-JNA series FX5U-32MT/ES 100V to 240V AC servo amplifier 24 V DC DICOM DOCOM DICOM Class-D grounding Positioning completed(INP) Photocoupler Servo error(ALM) Zero signal (PG0) Servo ON Reset Servo ready (RD) Emergency stop Forward rotation limit 2 Reverse rotation limit 2 Pulse train...
Page 929
*1 Be sure to use the class-D grounding method (grounding resistance: 100 or less). *2 Near-point signal (DOG) *3 To ensure safety, use the forward rotation limit switch and the reverse rotation limit switch on both sides: the CPU module side and the servo amplifier side.
Page 930
■FX5UC CPU module MR-JNA series FX5UC-32MT/D servo amplifier DICOM 24 V DC DICOM DOCOM Class-D grounding Photocoupler Positioning completed(INP) Zero signal (PG0) Servo error(ALM) Servo ready (RD) Servo ON Reset Emergency stop COM0 Forward Pulse train rotation limit 2 COM0 DOCOM Reverse rotation limit 2...
Page 931
*1 Be sure to use the class-D grounding method (grounding resistance: 100 or less). *2 Near-point signal (DOG) *3 To ensure safety, use the forward rotation limit switch and the reverse rotation limit switch on both sides: the CPU module side and the servo amplifier side.
Page 932
■High-speed pulse input/output module MR-JNA series FX5U-32MT/ES 100V to 240V AC servo amplifier 24 V DC DICOM DOCOM DICOM Class-D grounding Positioning completed(INP) Photocoupler Servo error(ALM) Servo ON FX5-16ET/ES-H Reset Servo ready Emergency stop Photocoupler (RD) Forward rotation limit 2 Zero signal (PG0) Reverse rotation limit 2...
Page 933
*1 Be sure to use the class-D grounding method (grounding resistance: 100 or less). *2 Near-point signal (DOG) Any input other than high-speed pulse input/output module can also be used. *3 To ensure safety, use the forward rotation limit switch and the reverse rotation limit switch on both sides: the CPU module side and the servo amplifier side.
Page 934
CW/CCW mode ■FX5S CPU module MR-JN A series FX5S-30MT/ES 100V to 240V AC servo amplifier 24 V DC DICOM DOCOM DICOM Class-D grounding Positioning completed(INP) Servo error(ALM) Photocoupler Immediate stop command OPR command JOG(+)command JOG(-)command Forward rotation positioning command Reverse rotation positioning command Forward rotation limit 1 (LSF) Reverse rotation limit 1 (LSR)
Page 935
*1 Be sure to use the class-D grounding method (grounding resistance: 100 or less). *2 To ensure safety, use the forward rotation limit switch and the reverse rotation limit switch on both sides: the CPU module side and the servo amplifier side.
Page 936
■FX5U CPU module MR-JNA series FX5U-32MT/ES 100V to 240V AC servo amplifier 24 V DC DICOM DOCOM DICOM Class-D grounding Positioning completed(INP) Photocoupler Servo error(ALM) Zero signal (PG0) Servo ON Reset Servo ready (RD) DOCOM Emergency stop Forward rotation limit 2 Reverse Forward rotation rotation limit 2...
Page 937
*1 Be sure to use the class-D grounding method (grounding resistance: 100 or less). *2 Near-point signal (DOG) *3 To ensure safety, use the forward rotation limit switch and the reverse rotation limit switch on both sides: the CPU module side and the servo amplifier side.
Page 938
■FX5UC CPU module MR-JNA series FX5UC-32MT/D servo amplifier DICOM 24 V DC DICOM DOCOM Class-D grounding Photocoupler Positioning completed(INP) Zero signal (PG0) Servo error(ALM) Servo ready (RD) Servo ON DOCOM Reset Emergency stop COM0 Forward rotation Forward pulse train rotation limit 2 COM0 Reverse rotation limit 2...
Page 939
*1 Be sure to use the class-D grounding method (grounding resistance: 100 or less). *2 Near-point signal (DOG) *3 To ensure safety, use the forward rotation limit switch and the reverse rotation limit switch on both sides: the CPU module side and the servo amplifier side.
Page 940
■High-speed pulse input/output module MR-JNA series FX5U-32MT/ES 100V to 240V AC servo amplifier 24 V DC DICOM DOCOM DICOM Class-D grounding Positioning completed(INP) Photocoupler Servo error(ALM) Servo ON FX5-16ET/ES-H Reset Servo ready Emergency stop Photocoupler (RD) DOCOM Forward rotation limit 2 Zero signal (PG0) Reverse rotation limit 2...
Page 941
*1 Be sure to use the class-D grounding method (grounding resistance: 100 or less). *2 Near-point signal (DOG) Any input other than high-speed pulse input/output module can also be used. *3 To ensure safety, use the forward rotation limit switch and the reverse rotation limit switch on both sides: the CPU module side and the servo amplifier side.
Appendix 10 Substitute Functions File registers To use a file register of the FX3 PLC, use functions of the FX5 PLC. A file register is a device that sets an initial value to a data register that has the same device number. The values of the file registers set in the built-in memory or memory cassette are transferred collectively to the data registers when the power of the FX3 PLC is OFFON or the PLC is STOPRUN.
Replacing PLSR/DPLSR instruction to DRVI/DDRVI instruction The PLSR/DPLSR (pulse output with acceleration and deceleration control) instruction of FX3 can be replaced to the DRVI/ DDRVI instruction. The PLSR/DPLSR instruction can set the duration of time for acceleration and deceleration. Setting the duration of time for acceleration or deceleration before executing the DRVI/DDRVI instruction enables the DRVI/DDRVI instruction to substitute the PLSR/DPLSR instruction.
FX5UJ CPU module is supported. From the first "1.060N" or later The following modules are supported. "1.010" or later "1.075D" or later MELSEC iQ-F FX5 User's Manual • FX5-SF-MU4T5 (Safety Control) • FX5-SF-8DI4 The following modules are supported. "1.010" or later "1.075D"...
Page 945
Page 602 • Overshoot suppression setting • Hunting suppression setting The following modules are supported. "1.040" or later "1.030G" or later MELSEC iQ-F FX5 User's Manual • FX5-4AD-PT-ADP (Analog Control - CPU module built- • FX5-4AD-TC-ADP in, Expansion adapter) *4*7 File transfer function (FTP server) "1.040"...
Page 946
Reference firmware version software version The following modules are supported. "1.050" or later "1.035M" or later MELSEC iQ-F FX5 User's Manual • FX5-8AD (Analog Control - Intelligent function module) The following modules are supported. "1.050" or later "1.035M" or later MELSEC iQ-F FX5 User's Manual •...
Page 947
Reference firmware version software version 1C frame of MC protocol "1.110" or later "1.050C" or later MELSEC iQ-F FX5 User's Manual (Communication) MELSEC iQ-F FX5 User's Manual (Serial Communication) The following modules support the "1.110" or later "1.050C" or later...
Page 948
Manual (Instructions, Standard Functions/Function Blocks) The following module is supported. "1.240" or later "1.075D" or later MELSEC iQ-F FX5 User's Manual • FX5-4A-ADP (Analog Control - CPU module built- in, Expansion adapter) The following modules are supported. "1.250" or later "1.080J"...
Page 949
MEMO APPX Appendix 11 Added and Enhanced Functions...
REVISIONS *The manual number is given on the bottom left of the back cover. Revision date Revision Description October 2014 First Edition ■Added functions January 2015 Fixed scan execution type program, Online change, PID control function, FX3-compatible high- speed counter function, Routine timer ■Added or modified parts Section 1.3, 3.1, 3.2, Chapter 4, 7, 8, 9, 12, 13, 17, Section 19.2, Chapter 20, Section 21.2, Appendix 1, 2, 3, 4...
Page 954
Japanese manual number: JY997D54301W 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.
WARRANTY Please confirm the following product warranty details before using this product. 1. Gratis Warranty Term and Gratis Warranty 2. Onerous repair term after discontinuation of production Range If any faults or defects (hereinafter "Failure") found to be Mitsubishi shall accept onerous product repairs for the responsibility of Mitsubishi occurs during use of the seven (7) years after production of the product is product within the gratis warranty term, the product shall...
TRADEMARKS Microsoft, Excel, Windows, Windows Vista, and Windows XP are trademarks of the Microsoft group of companies. PROFIBUS is a trademark of PROFIBUS Nutzerorganisation e.V. Anywire and AnyWireASLINK are either registered trademarks or trademarks of Anywire Corporation. Unicode is either a registered trademark or a trademark of Unicode, Inc. in the United States and other countries. The company names, system names and product names mentioned in this manual are either registered trademarks or trademarks of their respective companies.
Page 958
Manual number: JY997D55401Y MODEL: FX5-U-OU-E MODEL CODE: 09R537 HEAD OFFICE: TOKYO BLDG., 2-7-3, MARUNOUCHI, CHIYODA-KU, TOKYO 100-8310, JAPAN NAGOYA WORKS: 1-14, YADA-MINAMI 5-CHOME, HIGASHI-KU, NAGOYA 461-8670, JAPAN When exported from Japan, this manual does not require application to the Ministry of Economy, Trade and Industry for service transaction permission. Specifications subject to change without notice.