Download Print this page
Mitsubishi Electric MELSEC iQ-F FX5S User Manual
Mitsubishi Electric MELSEC iQ-F FX5S User Manual

Mitsubishi Electric MELSEC iQ-F FX5S User Manual

Hide thumbs Also See for MELSEC iQ-F FX5S:

Advertisement

Quick Links

MELSEC iQ-F
FX5 User's Manual (Application)
- FX5S CPU module
- FX5UJ CPU module
- FX5U CPU module
- FX5UC CPU module
- High-speed pulse input/output module
- Analog adapter

Advertisement

loading
Need help?

Need help?

Do you have a question about the MELSEC iQ-F FX5S and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Mitsubishi Electric MELSEC iQ-F FX5S

  • Page 1 MELSEC iQ-F FX5 User's Manual (Application) - FX5S CPU module - FX5UJ CPU module - FX5U CPU module - FX5UC CPU module - High-speed pulse input/output module - Analog adapter...
  • Page 3 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  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.  Use the product within the generic environment specifications described in the MELSEC iQ-F FX5S/ FX5UJ/FX5U/FX5UC User's Manual (Hardware).
  • Page 5  Make sure to affix the expansion board with tapping screws. Tightening torque should follow the specifications in the MELSEC iQ-F FX5S/FX5UJ/FX5U/FX5UC User's Manual (Hardware). If the screws are tightened outside of the specified torque range, poor connections may cause malfunctions.
  • Page 6 The disposal size of the cable end should follow the dimensions described in the MELSEC iQ-F FX5S/FX5UJ/FX5U/FX5UC User's Manual (Hardware). Tightening torque should follow the specifications in the MELSEC iQ-F FX5S/FX5UJ/FX5U/ FX5UC User's Manual (Hardware). Tighten the screws using a Phillips-head screwdriver No.2 (shaft diameter 6 mm or less). Make sure that the screwdriver does not touch the partition part of the terminal block.
  • Page 7  Perform class D grounding (grounding resistance: 100 or less) to the grounding terminal on the CPU module and extension modules with a wire 2  or thicker. Do not use common grounding with heavy electrical systems (refer to the MELSEC iQ-F FX5S/ FX5UJ/FX5U/FX5UC User's Manual (Hardware)).
  • Page 8 (i.e. from an engineering tool and a GOT) Doing so may cause destruction or malfunction of the programmable controller program.  Use the battery for memory backup in conformance to the MELSEC iQ-F FX5S/FX5UJ/FX5U/FX5UC User's Manual (Hardware).
  • Page 9  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 ...
  • Page 10 • 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 11 CONTENTS SAFETY PRECAUTIONS ..............1 INTRODUCTION .
  • Page 12 Link relay (B) ................55 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 ............89 CPU module firmware update .
  • Page 14 14.4 Relationship Between Remote Operation and CPU Module ........122 CHAPTER 15 LATCH FUNCTION 15.1 Types of Latch .
  • Page 15 Data collection conditions ..............165 Target data.
  • Page 16 25.1 SD Memory Card Forced Stop ............228 25.2 Boot Operation .
  • Page 17 Operation of FX3-compatible pulse catch function ..........317 Cautions when using the FX3-compatible pulse catch function .
  • Page 18 Positioning address change during positioning operation ......... 361 Command speed change during positioning operation .
  • Page 19 Program example ............... 449 Caution .
  • Page 20 Input/output assignment ..............533 Parameter setting .
  • Page 21 Outline of function ............... 604 Specifications list .
  • Page 22 Analog output HOLD/CLEAR function............715 D/A output enable/disable setting function .
  • Page 23 CC-Link IE Field Network Basic function............782 High-speed input/output function.
  • Page 24 Setting data logging..............932 Appendix 9 Connection Example of Servo Amplifier .
  • Page 25 RELEVANT MANUALS Manual name <manual number> Description MELSEC iQ-F FX5S/FX5UJ/FX5U/FX5UC User's Manual (Hardware) Describes the details of hardware of the CPU module, including <SH-082452ENG> performance specifications, wiring, installation, and maintenance. MELSEC iQ-F FX5 User's Manual (Application) Describes the basic knowledge required for program design, functions of <JY997D55401>...
  • Page 26 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...
  • Page 27 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...
  • Page 28 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.
  • Page 29 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.
  • Page 30 Initial scan time This refers to the initial scan time when the CPU module is in the RUN mode. How to check the initial scan time The initial scan time can be checked by the following information: • Value stored in SD518 (initial scan time (ms)), SD519 (initial scan time (s)) •...
  • Page 31 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.
  • Page 32 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 33 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 34 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 35 Processing when the fixed scan execution type program starts The same processing as when the interrupt program starts. (Page 43 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 36 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.
  • Page 37 Generation of interrupt by interrupt pointer (I) The program is executed once, immediately, when a specified interrupt cause is generated. An interrupt pointer label can be appended by adding the FEND instruction to a different program, and the program description partitioned by the IRET instruction can be turned into an exclusive program.
  • Page 38 Elapsed time The program is executed once when it is the turn of the corresponding program to be executed first after the CPU module is run and the specified time has elapsed. For second execution onwards, the time is re-calculated from the start of the previous event execution type program.
  • Page 39 Displayed items Item Description Setting range Default  Interruption Occurrence Sets the interrupt pointer used as the trigger. I0 to I23, I50 to I177 Page 35 Bit data ON (TRUE)  ON of Bit Data (TRUE) Sets the device used as the trigger. Clear Output and Current Value of Sets that the current values of the output (Y), and •...
  • Page 40 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: •...
  • Page 41 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 • For I28 to I31 The interrupt cause that occurred is memorized, and the interrupt program corresponding to the cause will be executed after the running interrupt program finishes. If the same interrupt cause occurs multiple times, it will be memorized once but operation at the second and later occurrences depends on setting of the fixed scan execution mode.
  • Page 45 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...
  • Page 46 PROCESSING OF OPERATIONS ACCORDING TO CPU MODULE OPERATION STATUS The CPU module has three operation statuses as follows: • RUN status • STOP status • PAUSE status 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 0END (FEND) instructionstep 0.
  • Page 47 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...
  • Page 48 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 49 Device/label memory Device/label memory has the following areas. Area Storage area size Application Device/label memory (standard) 48 K words FX5S/FX5UJ CPU module • R, W, SW, labels, and latch labels are fixed in the memory. FX5U/FX5UC CPU module 63 K words •...
  • Page 50 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.
  • Page 51 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  ...
  • Page 52 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...
  • Page 53 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...
  • Page 54 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...
  • Page 55 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...
  • Page 56 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.
  • Page 57 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 OFFON • Reset All internal relays are turned OFF by the following operation. •...
  • Page 58 Processing when annunciator (F) is ON Data stored in the special register becomes as follows. SET F50 SET F25 SET F1023 SD62 SD63 SD64 SD65 SD66 1023 Up to 16 annunciator numbers can be stored SD67 SD79 Annunciator (F) numbers that are ON are stored in SD64 to SD79 in sequence. Annunciator (F) numbers that are stored in SD64 are stored in SD62.
  • Page 59 Link special relay (SB) Communication and error detection status of network modules are output to link special relays within the network. Link special relays (SB) are devices intended to be used as a refresh destination for link special relays within the network. Link special relays not used for refresh can be used for other purposes.
  • Page 60 Retentive timer (ST) Measures time for which the coil is ON. Measurement starts when the retentive timer's coil is turned ON, and when the current value matches the setting value (time up), the retentive timer's contact is turned ON. The current value and ON/OFF status of the contact are maintained even if the retentive timer's coil is turned OFF.
  • Page 61 Details on timer operation and timer accuracy A timer (T/ST) starts counting when a coil is driven, and its output contact turns on when the first coil instruction is executed after the timer has reached timeout. Counting operation (If the operation cycle is long, it automatically counts two or more clocks.) Contact is not OFF→ON...
  • Page 62 Routine timer setting The setting of the routine timer is made. Navigation window  [Parameter]  [Module model name]  [CPU Parameter]  "Memory/Device Setting"  "Device/ Label Memory Area Setting" Window Displayed items Item Description Setting range Default To use or not to use the routine timer of timer (T) Whether the routine timer is used is set.
  • Page 63 Count processing Count processing is as follows when counter's coil is executed. When the OUT C instruction/OUT LC instruction is executed The counter's coil is turned ON/OFF, the current value is updated (count value +1) and contact ON/OFF processing is executed.
  • Page 64 Precautions when performing counter reset • When a counter is reset by the RST instruction, it cannot count until the RST instruction is set to OFF. [Program example] C0 is reset while X10 turns ON. [Timing chart] The current value does not change even if pulses are input because the Current value C0 reset instruction is valid.
  • Page 65 Special register (SD) The programmable controller contains internal register with fixed specifications, so it cannot be used in the program like a conventional internal register. Data, however, can be written to control the CPU module as needed. (Page 803 Special Register List) Module Access Device Device that allows you to directly access the buffer memory of intelligent function modules connected to the CPU module from...
  • Page 66 Precautions • If module access device is used in an interrupt program with the priority 1, operation error (3580H) occurs. Module access device operates in an interrupt program with the priority 2 or 3. • When FROM/TO instruction is executed in an interrupt program to an FX3 intelligent function module that is connected to the bus conversion module or later, operation error (3580H) occurs.
  • Page 67 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"...
  • Page 68 Extended file register (ER) function Function to use the program (dedicated instructions) Extended file register (ER) functions that can be used by applied instructions are shown below. • ERREAD instruction: Reading function of extended file register (ER) • ERWRITE instruction: Writing (transfer) function of extended file register (ER) •...
  • Page 69 Data batch reading function All the current values of the extended file register (ER) stored into the SD memory card can be read from the device memory in the project of GX Works3 (extended file register (ER)) in a batch. [Online] ...
  • Page 70 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 71 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.
  • Page 72 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...
  • Page 73 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. •...
  • Page 74 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.
  • Page 75 4.10 SFC Devices These are the devices used by the SFC function. SFC block device (BL) This device is used when specifying SFC program blocks. This device is also used when specifying step No. through such methods as verifying (monitor, current value changes) SFC programs with SFC control instructions or the engineering tool. (MELSEC iQ-F FX5 Programming Manual (Program Design)) To start the SFC block device for the SFC program while ON/OFF information of the SFC block device (BL) are maintained (continuation start), an option battery is required.
  • Page 76 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...
  • Page 77 Character string constant The character string can be specified by enclosing it with single quotation marks (' ') or double quotation marks (" "). (Example: "ABCDE") Note that the NULL character becomes the termination character. *1 Character string: 00H Unicode character string: 0000H For details on character string data, refer to the following.
  • Page 78 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.
  • Page 79 LABELS Label is identifier (character string) that specifies a character string in I/O data or internal processing. When a label is used in programming, a program can be created without being conscious about the device No. *1 Label and device can be used in mixed manner. For details on label, refer to the following.
  • Page 80 MEMO 5 LABELS...
  • Page 81 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 80 Device/Label Memory Area Setting) (2) The number of points of user devices can be changed.
  • Page 82 When FB is used When using FB, the reserved area for adding labels other than the labels defined for FB will be used. The following capacities are consumed per FB instance. Label area: 48 words Latch area: 16 words *1 For supported version, refer to Page 971 Added and Enhanced Functions. Device/Label Memory Area Setting The capacity of each data area allocated within the device/label memory can be changed.
  • Page 83 High-speed area: Area which can be accessed at high speed. Latch is always held by nonvolatile memory. Standard area: Area which can be held when option battery is used. In addition, about a latched type label, when a latch area is set as a standard latch area, latch type label is held by nonvolatile memory. Device Setting The number of points of each user device can be changed.
  • Page 84 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...
  • Page 85 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 86 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 performance Device Features service processing setting splitting Extension Stability Response time...
  • Page 87 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 EXTERNAL INPUT/OUTPUT FORCED ON/OFF FUNCTION 18 CLOCK FUNCTION 19 SECURITY FUNCTIONS...
  • Page 88 26 HIGH-SPEED INPUT/OUTPUT FUNCTION...
  • Page 89 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 49 ...
  • Page 90 Function Description Compatible CPU module Reference FX5S FX5UJ FX5U/ FX5UC    Internal buffer capacity setting Sets the capacity of the area (internal buffer) used by the Page 206 system to temporarily store the results of data logging and memory dump processing. ...
  • Page 91 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.
  • Page 92 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 93 Operation Execute RUNSTOP 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 95 Wait until the RUN LED and ERR LED blink.
  • Page 94 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 95 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 96 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 97 • Do not change the data (folder and file name) downloaded from the Mitsubishi Electric FA website. • Do not turn the power OFF or reset the CPU module while the firmware update is in progress. Doing so may cause programs to be deleted.
  • Page 98 Target models The target models are listed below. Product name Model name FX5S CPU module FX5S-30MR/ES, FX5S-30MT/ES, FX5S-30MT/ESS, FX5S-40MR/ES, FX5S-40MT/ES, FX5S-40MT/ESS, FX5S-60MR/ES, FX5S-60MT/ES, FX5S-60MT/ESS, FX5S-80MR/ES , FX5S-80MT/ES , FX5S-80MT/ESS , FX5S-30MR/DS, FX5S-30MT/ DS, FX5S-30MT/DSS, FX5S-40MR/DS, FX5S-40MT/DS, FX5S-40MT/DSS, FX5S-60MR/DS, FX5S-60MT/DS, FX5S-60MT/ DSS, FX5S-80MR/DS , FX5S-80MT/DS , FX5S-80MT/DSS...
  • Page 99 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 100 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 101 Page 94 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.
  • Page 102 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 103 Target modules to be updated The firmware of the following models can be updated. Target modules to be updated Firmware version of the Version of the update writing CPU engineering tool Product Model Firmware version Serial No. module Intelligent function FX5-ENET "1.003"...
  • Page 104 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 94 Canceling the firmware update...
  • Page 105 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 106 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 107 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.
  • Page 108 ONLINE CHANGE This chapter describes online change. Types of online change are as follows. Type Description Reference Online ladder block change Changes only part of the program or data during Page 106 Online Ladder Block Change GX Works3 Operating Manual online change.
  • Page 109 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 110 Instructions not compatible with online ladder block change Do not execute online change to ladder block including the following instruction. DSZR/DDSZR instruction, DVIT/DDVIT instruction, TBL instruction, DRVTBL instruction, PLSV/DPLSV instruction, DRVI/ DDRVI instruction, DRVA/DDRVA instruction, DRVMUL instruction, PLSY/DPLSY instruction, PWM/DPWM instruction, SPD/ DSPD instruction, HIOEN/DHIOEN instruction, UDCNTF instruction, DABS instruction, ADPRW instruction, IVCK instruction, IVDR instruction, IVRD instruction, IVWR instruction, IVBWR instruction, IVMC instruction, S(P).CPRTCL instruction, RS2 instruction, SP.SOCOPEN instruction, SP.SOCCLOSE instruction, SP.SOCSND instruction, SP.SOCRCV instruction,...
  • Page 111 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 112 Interrupt priority setting The interrupt priority (1 to 3) of interruptions from modules can be changed. Navigation window  [Parameter]  [Module model name]  [CPU Parameter]  "Interrupt Settings"  "Interrupt Priority Setting from Module" Operating procedure Set Multiple Interrupt to "Enable" on the "Interrupt "Interrupt Settings"...
  • Page 113 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.
  • Page 114 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 115 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.
  • Page 116 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) •...
  • Page 117 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.
  • Page 118 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 119 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.
  • Page 120 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 121 • When set to RUN at contacts OFF When contact is set to OFF, the CPU module is in the RUN status. When contact is set to ON, the CPU module is in the STOP status. Step 0 Step 0 RUN contact RUN/STOP status STOP...
  • Page 122 14.2 Remote PAUSE With the RUN/STOP/RESET switch set to the RUN position of the CPU module, the operation status is changed to PAUSE status from outside. The PAUSE status is a status in which operation of the CPU module is stopped by holding the ON/OFF status of all output (Y).
  • Page 123 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.
  • Page 124 Method using external devices that use SLMP or MC protocol 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.
  • Page 125 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 OFFON 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 126 FX5U/FX5UC CPU module Device Specification method Latch range Applicable latch type Internal relay (M) Specify the latch range. M500 to M7679 Latch (1) or Latch (2) Latch relay (L) Specify the number of points. L0 to L7679 Latch (1) or Latch (2) Link relay (B) Specify the latch range.
  • Page 127 Latch range setting Set the device to latch, its range, and the latch type. Operating procedure Click "Detailed Setting" on the "Device Setting" window. "Device Setting" window In the "Device Setting" window, select the type of latch for the target device. The "Latch Range Setting" window is displayed.
  • Page 128 15.4 Clearing of Data of the Latch Range The data of the latch range can be cleared by the following ways. Method of latch clearing By using engineering tools. (GX Works3 Operating Manual) [Online]  [CPU memory operation] The range cleared can be selected by performing CPU memory operation. •...
  • Page 129 The error occurrence conditions can be checked through the lighting conditions of ERR LED. For details, refer to the following manual. MELSEC iQ-F FX5S/FX5UJ/FX5U/FX5UC User's Manual (Hardware) Check method using the engineering tool The error or event history being currently generated can be checked in the Module diagnostics window. (GX Works3 Operating Manual) Existing errors...
  • Page 130 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 131 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...
  • Page 132 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.
  • Page 133 *2 For the FX5S/FX5UJ CPU modules, fixed to 2048K bytes. An optional battery is required to use the built-in RAM battery keeping. For details, refer to the following. MELSEC iQ-F FX5S/FX5UJ/FX5U/FX5UC User's Manual (Hardware) Logging of the event history This section describes events saving for the event history.
  • Page 134 Event history file The storage memory and file size for event history files can be changed in event history setting. (Page 131 Event history settings) Storage memory The following storage memory can be used. • Data memory • Built-in RAM battery keeping •...
  • Page 135 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). •...
  • Page 136 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.
  • Page 137 EXTERNAL INPUT/OUTPUT FORCED ON/OFF FUNCTION External inputs/outputs can be forcibly turned on and off from the engineering tool. This function enables input devices to be turned on and off regardless of the on/off state of the external inputs and enables the external outputs to be turned on and off regardless of the operation result of a program.
  • Page 138 Operation method of forced on/off Use the engineering tool for the forced on/off operation. [Debug]  [Register/Cancel Forced Input/Output] Window Displayed items Item Description Device Enter target devices (X, Y). [Register Forced ON] button Registers forced on for the entered devices (X, Y). [Register Forced OFF] button Registers forced off for the entered devices (X, Y).
  • Page 139 Behavior of an output device Registering forced on/off turns on or off the external output regardless of the operation result of the program. When an output device has been changed in the program, the output device is turned on and off in accordance with the operation result of the program.
  • Page 140 *1 High-speed input/output and part of the input/output used for positioning will not be affected by forced on/off. (Page 139 Precautions) *2 Only the FX5UJ, FX5U, and FX5UC CPU modules are supported. *3 The operation of not changing the input device when executing an instruction (LD, LDI, AND, ANI, OR, ORI, LDP, LDF, ANDP, ANDF, ORP, ORF, LDPI, LDFI, ANDPI, ANDFI, ORPI, ORFI) using direct access input (DX) is the same as the existing operation.
  • Page 141 Behavior in batch-cancellation of forced on/off registrations All the forced on/off registrations can be canceled in a batch. Behavior of the device The behavior of the device is the same as that of cancellation of forced on/off (for each device). ( Page 138 Behavior of the device) CPU module operating status The behavior of the device is the same as that of cancellation of forced on/off (for each device).
  • Page 142 • The following table lists the high-speed input/output functions that have external outputs. Function Instruction High-speed counter function High-speed I/O parameter High-speed comparison table Multiple point output, high-speed comparison table 32-bit data comparison set (DHSCS instruction) 32-bit data comparison reset (DHSCR instruction) 32-bit data band comparison (DHSZ instruction) PWM function High-speed I/O parameter...
  • Page 143 CLOCK FUNCTION The CPU module has an internal clock and is used to manage time in functions performed by the system such as dates of the event history function and the data logging function. 18.1 Time Setting Time operation continues with the large internal capacitor in the CPU module even though the power in the CPU module is turned OFF or the power failure exceeds the allowable momentary power failure time.
  • Page 144 Reading clock data There are the following methods to read clock data. • Using SM/SD • Using instructions Using SM/SD 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.
  • Page 145 18.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"...
  • Page 146 18.3 System Clock There are two types of system clocks, one is to execute ON/OFF by the system and the other is to execute ON/OFF in the intervals specified by the user. Special relay used for system clock Special relays used for system clock are as follows. Special relay Name SM400, SM8000...
  • Page 147 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: •...
  • Page 148 MEMO 19 SECURITY FUNCTIONS...
  • Page 149 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 150 20.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.
  • Page 151 20.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 163 Logging type •...
  • Page 152 20.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 ...
  • Page 153 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 154 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.
  • Page 155 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 156 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 157 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 167 Target data Set the trigger , and click [Next].
  • Page 158 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 159 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 160 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 161 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 162 Data Logging Execution by Special Relay Saving data logging files Open the "Logging File Operation"...
  • Page 162 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 163 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 20 DATA LOGGING FUNCTION...
  • Page 164 20.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.
  • Page 165 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 781 Data logging function) •...
  • Page 166 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 167 Number of records Specify the number of records to be collected before and after the satisfaction of a trigger condition. (Page 935 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...
  • Page 168 Time specification Allows the user to specify the collection time interval. The CPU module starts collecting data at the time of the following END process after the specified time has elapsed. Ensure that the "Scan time" is less than "Time specification". If the scan time is longer than the specified time and the collection interval or the collection timing occurs more than once during the same scan, data is collected only once during the END processing.
  • Page 169 To collect data only when the state changes The following conditional formula causes the data logging function to collect data only during the END processing for the scans where the conditional formula is met. It does not collect data for any single scan where the conditional formula is not met during the END processing (even if the conditional formula is met before the END processing is initiated).
  • Page 170 Data to be collected The data for the following devices can be specified to be collected. Type Device Bit device X, Y, M, SM, L, B, F, SB, T (contact) , T (coil) , ST (contact) , ST (coil) , C (contact) , C (coil) , LC (contact) , LC (coil)
  • Page 171 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 • : When the specified data turns on and off •...
  • Page 172 CSV file format The specifications for the CSV file format and the details of the output data are shown below. • Format specifications Item Description Delimiter Commas (,) Return code CRLF (0x0D, 0x0A) Character code ASCII code or Shift-JIS code Field data Not enclosed by double quotation marks ("...
  • Page 173 The total size of the comment row can be obtained by the following equation: Character size of the specified comment (depending on the specified character string. (A single-byte character is calculated as one byte and a double-byte character is calculated as two bytes.) + 2 (CR + LF) <Data type information row>...
  • Page 174 <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 175 (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) Data type: 2 bytes (4) Model information: 16 bytes (11) Output type: 2 bytes (12) Data information setting: 2 bytes (5) Added-data information: 2 bytes...
  • Page 176 Item Description Size (byte) (10) Data type The numeric value shown below is output depending on the data type. 0000H: Bit 0001H: Word (signed) 0002H: Double word (signed) 0003H: Word (unsigned) 0004H: Double word (unsigned) 0005H: Single-precision real number 0007H: String 0008H: Numeric string 0009H: Time (11)
  • Page 177 Numerical value range for each output type Describes the numerical value ranges that can be output for each output type. Integer type The following table lists the numerical value ranges that can be expressed for each integer type. Output format Lower limit Upper limit Word (unsigned)
  • Page 178 Destinations to save data logging files The following figure shows the folder configuration of the SD memory card attaching to a CPU module. $MELPRJ$ *1*2 Stack file (setting No.1) LOGGING LOG01 *1*2 LOG01.BIN 00000001 00000001.BIN 00000101 00000002.BIN Stack file (setting No.2) LOG02 LOG02.BIN Stack file (setting No.3)
  • Page 179 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 180 Number of records: 1000 File n File switching File n+1 Number of lines 997th 998th 999th 1000th (number of records) line line line line line line line Logging Logging Logging Logging Logging Logging Logging File size specification: 512KB File switching is performed before the file grows beyond the specified size. When the file format is a CSV file, since the output size of one row (record) varies depending on the data value, the timing of file switching is judged by estimating the next output size based on the current output size.
  • Page 181 Specifying the monitored data For the device change specification, monitored data can be specified from the devices listed in the following table. The data types that can be selected include bit/word (unsigned), word (signed), double word (unsigned), and double word (signed). If double word (unsigned) or double word (signed) is specified, a trigger occurs only when data equal to one double word is written.
  • Page 182 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 206 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, and also helps to prevent processing overflow.
  • Page 183 Data logging file transfer function (FTP server auto transfer) This function automatically transfers data logging files to the FTP server. FTP server LOG01_ LOG02_ LOG03_ 00000001 00000001 00000001 .bin .bin .bin Ethernet CPU module CPU module CPU module LOG03_ LOG01_ LOG02_ 00000001 00000001...
  • Page 184 Data logging file operation Data logging file transfer starts when the data logging file transfer function is set using CPU Module Logging Configuration Tool, and the data logging file is saved in the CPU module by the data logging start operation. After the data logging file transfer function starts, the saved data logging file is automatically transferred to the FTP server.
  • Page 185 Start timing of file transfer After data logging is started, the transfer of the files created at the file switching timing in the data logging function starts. When the transfer is started, the special relay (data logging file transfer execution status flag) for each setting number turns on.
  • Page 186 Configure the server setting. Click the [File Transfer Test] button to execute the file transfer test to the FTP server. Before operating the system, execute the file transfer test and ensure the connection with the FTP server. (Page 184 File transfer test) Set the timeout time and other items on the "File transfer"...
  • Page 187 Precautions • File transfer tests cannot be executed simultaneously with another configuration tool. Execute the file transfer test after the file transfer test from another configuration tool is completed. • If the engineering tool is operated or monitored from the same connection destination of the same computer during the file transfer test, the operation or monitoring will be executed after the file transfer test completion.
  • Page 188 Matching the folder structure of the transfer destination FTP server with the CPU module When the data logging file is transferred, the directory is automatically created in the specified folder path of the FTP server so that the structure is the same as the storage destination (Page 176 Destinations to save data logging files). If the same file exists, the file will be overwritten.
  • Page 189 Deleting files completed transfer At the completion of data logging file transfer, transferred files are automatically deleted. If there is no file in the saved file storage folder (subdirectory) as a result of the file deletion, the saved file storage folder (subdirectory) is deleted while data logging is stopped.
  • Page 190 Set the data logging setting number for SD1203 (Data logging file transfer stop information). Multiple data logging setting numbers can be set for SD1203. Turn off and on SM1203 (Data logging file transfer stop request). When multiple data logging setting numbers are specified for SD1203 and SM1203 is turned off and on, SM1203 turns off after the data logging file transfer of all the data logging setting numbers stops.
  • Page 191 20.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 Changing the clock data Whatever changes, such as advancing or reverting the clock, are made to the clock data of the CPU module during data logging, the CPU module performs data collection at the specified collection interval/timing, but the date/time column in the output file reports the changed clock data.
  • Page 195 RUN operation through switching operation or the RUN contact During execution of data logging, when the status of the CPU module is switched from STOP to RUN with the RUN/STOP/ RESET switch, or when remote STOP to RUN operation of the RUN contact, it may take time to return to the RUN state. Data logging file transfer function (FTP server auto transfer) Starting data logging during logging result file transfer Data logging with the same setting number cannot be started during transfer to the FTP server.
  • Page 196 Total size of data that can be written Capacity  Number of writes For the capacity of applicable SD memory cards and the number of writes, refer to the following. MELSEC iQ-F FX5S/FX5UJ/FX5U/FX5UC User's Manual (Hardware) 20 DATA LOGGING FUNCTION 20.7 SD Memory Card Life and Replacement...
  • Page 197 Size of data to be written per year The size of data to be written per year is obtained by the following formula. + 6144)  DN1 +  + (DSn + 6144)  DNn + (DCS1 + 6144)  Size of data to be written per year (G bytes/year)= ((DS1 DCN1 + ...
  • Page 198 Precautions If the internal buffer becomes full during the time between SD memory card replacement and the resumption of data writes to the SD memory card, processing overflow occurs resulting in missing data. Storage file numbers after SD memory card replacement The numbering of the first storage file created after SD memory card replacement differs depending on the storage file switching condition, as described in the following table.
  • Page 199 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...
  • Page 200 21.1 Object Data This section describes the data to be collected by memory dump. Data to be collected Of the devices listed below, all devices that are within the range specified in the device settings are subject to the collection. Type Device Bit device...
  • Page 201 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)
  • Page 202 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.
  • Page 203 21.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.
  • Page 204 21.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).
  • Page 205 21.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: ...
  • Page 206 21.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 782 Memory dump function) •...
  • Page 207 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...
  • Page 208 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.
  • Page 209 MEMO 22 INTERNAL BUFFER CAPACITY SETTING...
  • Page 210 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 211 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 212 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 213 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 ...
  • Page 214 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 215 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).
  • Page 216 Operating procedure Set 0 (Normal mode) for SD9350 (Operation mode setting). Turn on SM1351 (Data backup execution request). (1) Turn on SM1351. (2) The system turns on SM1350 (Data backup status flag). (3) The system turns off SM1351 after the backup processing is completed.
  • 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.
  • Page 218 Suspending backup processing The following operation can suspend a backup processing. • Setting the SD memory card forced disable Suspending a backup processing leaves the backup data in the SD memory card in an incomplete state which is in the middle of the backup processing.
  • Page 219 Time required for completing the backup processing It may take time for the backup to finish in the following cases: • When the size of data or number of folders/files stored on the CPU module is large • When a function that accesses the SD memory card, such as data logging function or event history function (save destination: SD memory card), is operating •...
  • Page 220 Restoration of the special relay and special register The setting for whether or not to restore the special relays and special registers differs according to the restoration function being executed. For restoration triggered by turning SM1354 ON, and automatic restoration using SD955 Set with SD955 (restoration function setting) b14 (special relay, special register restoration).
  • Page 221 Setting of operation after restoration Set whether after restoration the CPU module operation is to continue from the backup state or from the initialized state with SD955 (restoration function setting) b15 (setting of operation after restoration). The operation of each item using the operation setting after restoration is shown below.
  • Page 222 Turn on SM1354 (Data restoration execution request). (1) Turn on SM1354. (2) The system turns on SM1353 (Data restoration status flag). (3) The system turns off SM1354 after the restoration processing is completed. (4) The system turns off SM1353. SM1354 SM1353 END END END END END END END END END...
  • Page 223 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.
  • Page 224 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 225 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 programmable controller...
  • Page 226 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 227 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...
  • Page 228 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.
  • Page 229 MEMO 24 REAL-TIME MONITOR FUNCTION...
  • Page 230 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. 25.1 SD Memory Card Forced Stop SD memory card can be disabled without turning power ONOFF, even when a function that uses SD memory card is being executed, such as when the data logging function is running.
  • Page 231 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...
  • Page 232 25.2 Boot Operation At the time of power OFFON 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 233 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.
  • Page 234 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 246 Pulse density measurement mode Page 249...
  • Page 235 Pulse density measurement mode Select pulse density measurement mode if you want to count the number of pulses for a specified amount of time. (Page 249 High-speed counter (pulse density measurement mode)) Rotational speed measurement mode Select rotational speed measurement mode if you want to measure speed for a specified amount of time. (Page 251 High-speed counter (rotational speed measurement mode)) Input comparison When the current value and the set value of the high-speed counter are compared and when they match, the output of the...
  • Page 236 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. Set parameters such as channel (CH) of the high-speed counter. (Page 245 High-speed counter parameters) Create the program.
  • Page 237 1 phase, 2 input counter Counting method of 1 phase, 2 input counter is as follows. Input A phase Up-counting input +1 when OFF→ON Input B phase Down-counting input -1 when OFF→ON Up counting Down counting Current value 2 phase, 2 input counter [1 edge count] Counting method of 2 phase, 2 input counter [1 edge count] is as follows.
  • Page 238 2 phase, 2 input counter [4 edge count] Counting method of 2 phase, 2 input counter [4 edge count] is as follows. Up/down counter Counter timing At up-counting 1 count up when input B phase is OFF and input A phase switches OFFON 1 count up when input A phase is ON and input B phase switches OFFON 1 count up when input B phase is ON and input A phase switches ONOFF 1 count up when input A phase is OFF and input B phase switches ONOFF...
  • Page 239 When ring length is not set (ring counter) Up counting -2147483648 -2147483647 +2147483646 +2147483647 Down counting Maximum frequency The maximum frequency that each type of counter can count is as follows. For details concerning maximum frequency by input assignment, refer to Page 241 Input assignment-wise / maximum frequency for high-speed counters.
  • Page 240 Matched output performance CPU module If output is to Y0 to Y17 using high-speed comparison instructions (DHSCS, DHSCR, DHSZ instruction), high-speed comparison table, or multiple point output high-speed comparison table, time from pulse inputcomparison of count value (match)output to Y is follows. •...
  • Page 241 High-speed counter type 1-phase 1-count (S/W) 1-phase 1-count (H/W) 1-phase 2-count 1-phase 1-count (S/W) 1-phase 1-count (H/W) 1-phase 2-count 2-phase 2-count 1-phase 1-count (S/W) 1-phase 1-count (H/W) 1-phase 2-count 2-phase 2-count 1-phase 1-count (S/W) 1-phase 1-count (H/W) A: Input A phase (In the case of 1-phase 1-count, pulse input is employed and in the case of 1-phase 2-count, pulse input of down-counting direction is employed.) B: Input B phase (In the case of 1-phase 1-count (H/W), direction switch input is employed and in the case of 1-phase 2-count, pulse input of down-counting direction is employed.)
  • Page 242 High-speed counter type 1-phase 1-count (S/W) 1-phase 1-count (H/W) 1-phase 2-count 2-phase 2-count CH1 to Internal clock Not used A: Input A phase B: Input B phase (direction switch input is however employed in the case of 1-phase 1-count [H/W]) P: Input external preset E: Input external enable High-speed pulse input/output module...
  • Page 243 Input assignment-wise / maximum frequency for high-speed counters Input assignment-wise maximum frequency for high-speed counters is as follows. FX5S/FX5UJ CPU module High-speed counter X10 X11 X12 X13 X14 X15 X16 X17 Maximum type frequency 1-phase 1-count (S/W) 100 kHz 1-phase 1-count (H/W) 100 kHz 1-phase 2-count 100 kHz...
  • Page 244 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 245 High-speed counter X10 X11 X12 X13 X14 X15 X16 X17 Maximum type frequency 1-phase 1-count (S/W) 200 kHz 1-phase 1-count (H/W) 10 kHz 1-phase 2-count 10 kHz 2-phase 2-count [1 edge 10 kHz count] 2-phase 2-count [2 edge 5 kHz count] 2-phase 2-count [4 edge 2.5 kHz...
  • Page 246 High-speed counter X10 X11 X12 X13 X14 X15 X16 X17 Maximum type frequency 1-phase 1-count (S/W) 200 kHz 1-phase 1-count (H/W) 200 kHz 1-phase 2-count 200 kHz 2-phase 2-count [1 edge 200 kHz count] 2-phase 2-count [2 edge 100 kHz count] 2-phase 2-count [4 edge 50 kHz...
  • Page 247 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...
  • Page 248 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. For details concerning special relays and specials registers for high-speed counters, refer to Page 776 Special Relay List, Page 803 Special Register List.
  • Page 249 Item Description Setting range Default  Preset Input Enable/ Set the preset value when preset input is enabled. Change the • Disable Disable current value to the preset value when the preset is detected. • Enable The preset value cannot be set when the preset input is disabled. Input logic Sets preset input logic when preset input is enabled.
  • Page 250 Displayed items Item Description Setting range Default Use/Not Use Set whether use counter or not. • Disable Disable • Enable  Operation Mode Set operation mode. The mode is fixed to Normal Mode. Normal Mode  Pulse Input Mode Set pulse input mode. •...
  • Page 251 Precautions • Input used varies according to channel selected and pulse input mode. • If not using preset input or enable input, you can use it as input for other functions. • If mode is other than normal mode, preset input cannot be used. •...
  • Page 252 Item Description Setting range Default  Pulse Input Mode Set pulse input mode. • 1-Phase 1 Input (S/W Up/Down Switch) • 1-Phase 1 Input (H/W Up/Down Switch) • 1 Phase 2 Input • 2 Phase 1 Multiple • 2 Phase 2 Multiple •...
  • Page 253 When pulse density is measured, 14 pulses are input within measuring unit time, but the current value of the high-speed counter remains "0", as shown in the following figure. As a result, pulse density is "0" for this measuring unit time. Measurement intervals Direction...
  • Page 254 Navigation window  [Parameter]  [Module model name]  [Module Parameter]  [High Speed I/O]  "Input Function"  "High Speed Counter"  "Detailed Setting"  "Basic Settings" Window Displayed items Item Description Setting range Default Use/Not Use Set whether use counter or not. •...
  • Page 255 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. For details concerning special relays and specials registers for high-speed counters, refer to Page 776 Special Relay List, Page 803 Special Register List.
  • Page 256 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 257 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 Counter CH Set the counter CH of coincidence output target. Disable, CH+0(CH),CH+1(CH+1) Disable Comparison Type Set comparison type.
  • Page 258 Zone Compare Based on the current high-speed counter value, comparison value 1, and comparison value 2, one of the three output devices from the head output device will be set. The rest are reset. High-speed pulse input/output module is not supported. Comparison value 1 >...
  • Page 259 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 260 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 261 Comparison start/stop for multiple point output, high-speed comparison table 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).
  • Page 262 High-speed comparison match starts Use the high-speed counter function and external start signal (Page 385 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 263 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...
  • Page 264 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 265 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 266 Operation description The content of the operation when ON and when OFF is as follows. Operation when ON Operation when OFF Underflow occurs Underflow does not occur (Current value counted = -1 past maximum negative value) • Does not operate when ring length setting is enabled. •...
  • Page 267 High-speed counter (1-phase 1-input S/W) (internal clock) count direction switch Device for switching counter direction when using 1-phase 1-input (S/W) counter or internal clock. Corresponding devices The device numbers corresponding to each channel are as follows. CPU module SM4580 SM4581 SM4582 SM4583 SM4584...
  • Page 268 Operation description The content of the operation when ON and when OFF is as follows. Operation when ON Operation when OFF The preset input operates with negative logic The preset input operates with positive logic • The timing to execute the preset is determined by the preset input logic and the preset control switch. •...
  • Page 269 Precautions The comparison operation of the preset input comparison may not be performed depending on the timing of the preset input. When the comparison operation is required at every preset input, configure the interrupt settings for the input (X) that is to be used in the preset.
  • Page 270 Operation description The content of the operation when ON and when OFF is as follows. Operation when ON Operation when OFF Enables the ring length setting for a ring counter Disables the ring length setting for a ring counter (Counts in the range of 0 to ring length counter-1) (Counts in the range of -2147483648 to +2147483647) These devices do not operate when the FX3 compatible high-speed counter function is valid.
  • Page 271 Update timing The timing of device update is as follows. • Match output driven by the DHIOEN instruction • Match output stopped by the DHIOEN instruction and DHSCS, DHSCR, • ON execution by DHSCS, DHSCR, DHSZ instruction DHSZ instructions all OFF •...
  • Page 272 Operation description The content of the operation when ON and when OFF is as follows. Operation when ON Operation when OFF Multi-point output high-speed comparison table operating Multi-point output high-speed comparison tables stopped When the high-speed counter current value is equal to the set value specified Even when the high-speed counter current value is equal to the set value in the multi-point output high-speed comparison table parameters, the specified in the multi-point output high-speed comparison table parameters,...
  • Page 273 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 274 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 275 Description These devices stores the minimum values of the high-speed counters. • To rewrite the minimum value, only the HCMOV/DHCMOV instruction can be used. • If using the enable input, the minimum value is updated when the enable input is ON. •...
  • Page 276 High-speed counter rotational speed These devices store the measurement results of rotational speed measurement mode. Corresponding devices The device numbers corresponding to each channel of the CPU module are as follows. SD4509, SD4539, SD4569, SD4599, SD4629, SD4659, SD4689, SD4719, SD4508 SD4538 SD4568 SD4598...
  • Page 277 Clear timing The timing when the device is cleared is as follows. • Power ON, Reset, STOPRUN Description of operation This section describes the operations when the preset input logic and the preset control switch are combined. The preset value is set to 0. •...
  • Page 278 • Operation when preset input logic: positive logic, preset control switch: constant when ON The preset is constantly executed while the preset input is ON. Preset input Count input Current value • Operation when preset input logic: negative logic, preset control switch: rising edge The preset is executed when the preset input changes ONOFF.
  • Page 279 • Operation when preset input logic: negative logic, preset control switch: rising edge + falling edge The preset is executed when the preset input changes ONOFF and when it changes OFFON. Preset input Count input Current value • Operation when preset input logic: negative logic, preset control switch: constant when ON The preset is constantly executed while the preset input is OFF.
  • Page 280 Clear timing The timing when the device is cleared is as follows. • Power ON, Reset, STOPRUN High-speed counter ring length These devices set the ring length of the high-speed counters. Corresponding devices The device numbers corresponding to each channel are as follows. CPU module SD4515, SD4545,...
  • Page 281 Clear timing The timing when the device is cleared is as follows. • Power ON, Reset, STOPRUN Precautions If the set value for the measurement unit time is set to less than the lower limit value or more than the upper limit value, the measurement unit time operates at the lower limit value or the upper limit value.
  • Page 282 Clear timing The timing when the device is cleared is as follows. • Power ON, Reset, SM50 turned ON Error code High-speed comparison table maximum excess error: 3780H 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.
  • Page 283 Special relay Function Compatible with HCMOV/ Compatible with MOV/ DHCMOV instruction DMOV instruction     SM4516 to High-speed counter pulse density/rotational speed being SM4531 measured SM4532 to High-speed counter overflow     SM4547    ...
  • Page 284 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...
  • Page 285 Precautions when using high-speed counters This section describes the precautions when using high-speed counters. Common precautions when using high-speed counter instructions and parameters 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 286 The interrupt pointer is assigned to I8 (fixed). Program the processing required for preset input with the interrupt program of I8. In the following example, DY10 is directly output when an interrupt of I8 occurs (when CH1 preset input is enabled). SM400 FEND DY10...
  • Page 287 Program the processing required for preset input with the interrupt program of I50. In the following example, DY20 is directly output when an interrupt of I50 occurs (when CH9 preset input is enabled). SM400 DY20 FEND IRET A: Sequence program B: Interrupt program Timing at which the instruction is enabled The DHSCS, DHSCR, DHSZ instructions are enabled at the END instruction for the scan in which the instructions are driven.
  • Page 288 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 280 Special relays/special registers capable of high-speed transfers with the HCMOV/DHCMOV instruction HCMOV/DHCMOV instruction MOV instruction, etc.
  • Page 289 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 350 POSITIONING CONTROL FUNCTION FX5UJ CPU module •...
  • Page 290 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 291 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...
  • Page 292 26.2 FX3-compatible High-speed Counter Function FX3-compatible high-speed counter function is explained below. FX3-compatible high-speed counter function overview The FX3 compatible high-speed counter can assign the input terminals compatible with FX3 and use the device equivalent to C235 to C255 of FX3 as LC35 to LC55 (high-speed counter). The FX3-compatible high-speed counter function is not supported in high-speed pulse input/output modules.
  • Page 293 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 294 Starting/stopping the counting of the high-speed counter 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).
  • Page 295 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 296 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/...
  • Page 297 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 298 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.
  • Page 299 Item Description Setting range Default  Input logic Sets preset input logic when preset input is enabled. • Positive Logic • Negative Logic   Preset Value Not available for FX3-compatible high-speed counters.  Input Comparison Enable/ Sets whether to "enable" or "disable" input comparison •...
  • Page 300 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   ...
  • Page 301 26.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 302 • FX5UJ CPU module CPU module Measurement frequencies X0, X1, X3, X4 100 kHz • High-speed pulse input/output module High-speed pulse input/output module Measurement frequencies X+3, X+4 200 kHz *2 The number in  is the head input number for each high-speed pulse input/output module. The table below shows the measurement precision.
  • Page 303 Period maximum value and minimum value The maximum value and minimum value of the period from the start of measurements are stored in special devices. (Page 776 Special Relay List) 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.
  • Page 304 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. Configure the parameters such as the pulse measurement channel settings. (Page 302 Pulse width measurement parameters) Create the program.
  • Page 305 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 ...
  • Page 306 Clear timing The timing when the device is cleared is as follows. • Power OFFON • Reset • STOP/PAUSERUN • RUNSTOP/PAUSE • When measurement is stopped by the HIOEN/DHIOEN instruction Period measurement complete This flag turns ON at the end of the 1st period measurement. During measurement in the always measurement mode, it stays Corresponding devices The device numbers corresponding to each channel are as follows.
  • Page 307 Measurement mode The measurement mode can be checked. The measurement mode can also be changed by turning special relays ON/OFF. OFF: Always measurement mode ON: 1 time measurement mode Measurement mode is applied when measurement is started by the HIOEN/DHIOEN instruction. If the measurement mode is changed during measurement, operation in the measurement mode after the change begins when the next measurement is started.
  • Page 308 Update timing, clear timing Same as the rising edge ring counter value (Page 305 Rising edge ring counter value) Pulse width latest value The latest value of the pulse width is stored. • When logic switching is set to positive logic, the difference from the falling edge up to the rising edge. •...
  • Page 309 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 SD5029, SD5049, SD5069, SD5089, SD5109, SD5129, SD5149, SD5169, SD5189, SD5209, SD5229, SD5249, SD5028 SD5048...
  • Page 310 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.
  • Page 311 Parameter setting This program assumes that parameters are set as follows. Input signals X1 and X2 are assigned to CH1 (X1) and CH2 (X2) by parameters. CH3 and CH4 need not be set. Item CH to be used Input signal Input logic switching Positive logic Positive logic...
  • Page 312 26.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 313 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. Set the pulse catch setting and other parameters. (Page 311 Pulse catch parameters) Create the program.
  • Page 314 Parameter setting This section explains how to set pulse catch parameters. For input response time, refer to Page 318 General-purpose Input Functions. CPU module Navigation window  [Parameter]  [Module model name]  [Module Parameter]  [High Speed I/O]  "Input Function"...
  • Page 315 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 ...
  • Page 316 Operation when the same pulse is detected for two scans or more The input device is turned ON for the detected number of scans. Input pulse signals at intervals of one scan or longer. Step 0 END/Step 0 END/Step 0 END/Step 0 END/Step 0 Program...
  • Page 317 26.5 FX3-compatible Pulse Catch Function This section explains the FX3-compatible pulse catch function. Outline of FX3-compatible pulse catch function An FX3-compatible pulse catch function is mounted on the CPU module, When the input signal X0 to X7 turns OFFON, a special relay (SM8170 to SM8177) is immediately set to ON by interrupt processing.
  • Page 318 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. Set the pulse catch setting and other parameters. (Page 316 FX3-compatible pulse catch parameters) Create the program.
  • Page 319 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)" or "Interrupt (Rising) + Pulse Catch". • Interrupt (Rising) Input • Interrupt (Falling) • Interrupt (Rising + Falling) •...
  • Page 320 26.6 General-purpose Input Functions The FX5 programmable controller general-purpose inputs are explained below. Outline of general-purpose input functions For general-purpose inputs of the FX5 programmable controller, 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.
  • Page 321 • Hardware filter value The delay times of the hardware filter on the CPU module and high-speed pulse input/output module are shown below. The hardware filter value of I/O modules is 50s when the value is on, and 150s when the value is off. Input number Hardware filter value FX5UJ-24M...
  • Page 322 High-speed pulse input/output 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.
  • Page 323 Displayed items Item Description Setting range Default Response Type Select the input response time between 1 point unit and 8 point • High-Speed  unit. • Normal High-Speed: 1 point unit Normal: 8 point units FX5S CPU module Set the input response time. •...
  • Page 324 FX5UJ/FX5U/FX5UC CPU module and high-speed pulse input/output module Up to 12 channels (CPU module 4CH + high-speed pulse input/output module 2CH  4 modules) can be used for PWM output. The output device assignment is as follows. CPU module High-speed pulse input/output module First module Second module Third module...
  • Page 325 Relationship between cycle and pulse width The relationship between period and pulse width is shown below. When positive logic is set The relationship between the period and pulse width when the output pulse logic at start of pulse output is set to "Positive Logic"...
  • Page 326 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. Set the output destination, cycle, pulse width, output pulse logic, etc. of the PWM in parameters, (Page 324 PWM output parameters) Create the program.
  • Page 327 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 328 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 ...
  • Page 329 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 330 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 331 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 332 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.
  • Page 333 Examples of program An example of a program using the PWM function is explained below. Outline of operation An example of a program using output Y0 on the FX5U CPU module to output one pulse with a delay is explained below. Parameter setting This program assumes that parameters are set as follows.
  • Page 334 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. Not necessary when Y0 is already OFF. FEND Interrupt SM400 PWM output from CH1 starts by the rising pointer HIOEN edge interrupt of X0.
  • Page 335 PART 3 POSITIONING FUNCTIONS This part consists of the following chapters. 27 OUTLINE 28 FUNCTION LIST 29 SPECIFICATIONS 30 POSITIONING CONTROL FUNCTION 31 POSITIONING PARAMETER 32 POSITIONING INSTRUCTION 33 TABLE OPERATION 34 PROGRAMMING 35 TROUBLESHOOTING...
  • Page 336 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.
  • Page 337 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. MELSEC iQ-F FX5S/FX5UJ/FX5U/FX5UC User's Manual (Hardware) Wiring Refer to the following manual and the manual for each connection equipment.
  • Page 338 FUNCTION LIST When the positioning instructions and the positioning parameters are used together, various positioning operations are enabled. Page 404 POSITIONING INSTRUCTION Page 366 POSITIONING PARAMETER The positioning functions of the FX5 programmable controller are shown below. Positioning operation pattern Reference Positioning operation pattern Reference...
  • Page 339 Positioning operation pattern Reference Positioning operation pattern Reference   Interrupt stop Page 353 Operation speed Speed Start Interrupt Transfer distance *1 Only FX5S/FX5U/FX5UC CPU module and high-speed pulse input/output module support this operation. 28 FUNCTION LIST...
  • Page 340 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) 29.1 Performance Specifications The following list shows performance specifications of the positioning function. For details on positioning parameter, refer to Page 366 POSITIONING PARAMETER.
  • Page 341 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...
  • Page 342 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 343 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 344 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...
  • Page 345 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 366 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 346 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. •...
  • Page 347 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) CPU module For MELSERVO series servo amplifiers, use a sink input/sink output type CPU module.
  • Page 348 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 349 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...
  • Page 350 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 351 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...
  • Page 352 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 404 POSITIONING INSTRUCTION.
  • Page 353 30.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 389 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.
  • Page 354 30.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.
  • Page 355 Multi-speed operation 1-speed positioning operation (excluding the deceleration stop) is continued several times by the table operation instruction. (Page 352 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.
  • Page 356 Precautions When the interrupt input signal 1 does not turn on, the operation is the same as the 1-speed positioning. 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.
  • Page 357 Interrupt 2-speed positioning The variable speed operation of table 1 is performed by the table operation instruction. (Page 356 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.
  • Page 358 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.
  • Page 359 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.
  • Page 360 30.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 361 Forward limit and reverse limit) The OPR operation depends on the OPR start position. Near-point Reverse rotation limit 1 Rear end...
  • Page 361 (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.
  • Page 362 Dwell time Set the time (dwell time) until the complete flag turns on after positioning operation is completed between 0 and 32767 ms. (Page 402 Complete flag) When the positioning operation is completed, the complete flag remains off until the dwell time has elapsed.
  • Page 363 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.
  • Page 364 Precautions • The current address at start of a positioning instruction is used as the basis, thus, positioning operation is performed with the current address at startup as the basis even when the positioning address is changed during positioning operation. •...
  • Page 365 Precautions • When command speed is lower than bias speed, the bias speed is applied. The PLSY/DPLSY instruction, PLSV/DPLSV instruction and the table operation instruction (control method: [4: Variable Speed Operation] or [5: Table Transition Variable Speed Operation]) can be changed to lower than the bias speed. •...
  • Page 366 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 387 Remaining distance operation, Page 363 Pulse decelerate and stop) When the pulse decelerate and stop command turns off, the remaining distance operation starts.
  • Page 367 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 523 Continuous operation) After the operation is started, each axis operates independently, thus, table shift timing during continuous operation does not need to be considered.
  • Page 368 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 489 TABLE OPERATION. 31.1 Setting Method The following list shows the setting methods for the positioning parameter.
  • Page 369 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 STOPRUN. When items occupying I/O are changed, the high speed I/O assignment parameters are also refreshed together.
  • Page 370 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 371 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 372 *2*3 Output Device...
  • Page 372 *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 ...
  • Page 373 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] ...
  • Page 374 31.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 375 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 376 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 377 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 378 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 379 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.
  • Page 380 Operand: Table Operation Control Method Table operation control method Operand Range Reference 1: 1 Speed Positioning (Relative Address Specification) Operand 2 1 to 2147483647 Page 493 (When the positioning table data is set 2: 1 Speed Positioning (Absolute Address Specification) Page 495 to use device: Head device +2, +3) 3: Interrupt 1 Speed Positioning...
  • Page 381 Max. Speed Setting method: High Speed I/O Parameter, Special Device Set the upper limit (maximum speed) for command speed, OPR speed, and creep speed. The user unit is set by unit setting. (Page 375 Unit Setting) The setting range is as follows. Module Motor/multiple unit system Machine unit system...
  • Page 382 Acceleration Time Setting method: High Speed I/O Parameter, Special Device Set the time required for acceleration from the bias speed to the maximum speed. The setting range of acceleration time is 0 to 32767 ms. If command speed is slower than the maximum speed, the actual acceleration time becomes shorter than the set time.
  • Page 383 Operand: Positioning Instruction Positioning instruction Operand Range Ladder Reference Pulse Y output PLSY 0 to 65535 Page 407 DPLSY 0 to 2147483647 Relative positioning DRVI (s1) -32768 to +32767 Page 423 (s1) (s2) (d1) (d2) DDRVI -2147483648 to +2147483647 Absolute positioning DRVA (s1) -32768 to +32767...
  • Page 384 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.
  • Page 385 • 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 386 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 387 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 388 Device No. The external start signal assignment is as follows. 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...
  • Page 389 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 Reverse limit SM5676 SM5677...
  • Page 390 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 Remaining SM5612 SM5613...
  • Page 391 Items related to OPR The following lists the items related to the OPR. (Page 351 Mechanical OPR, Page 413 Mechanical OPR) For the input interrupt function, refer to the following. Page 232 HIGH-SPEED INPUT/OUTPUT FUNCTION OPR Enabled/Disabled Setting method: High Speed I/O Parameter Specify whether to use the OPR.
  • Page 392 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 375 Unit Setting, Page 377 Position Data Magnification) The origin address range is -2147483648 to +2147483647. Special Device Name CPU module...
  • Page 393 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 375 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 394 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 Clear signal SM5820 SM5821...
  • Page 395 Operand: Positioning Instruction When the FX3 compatible operand is specified, DSZR/DDSZR instruction can set the near-point dog signal. The FX3 compatible operand specification is supported only in CPU module. Instruction Operand Available device Ladder Reference Mechanical OPR DSZR (s1) X, Y, M, L, SM, F, B, SB Page 413 (s1) (s2)
  • Page 396 Precautions For details on the following precautions, refer to Page 528 Functions that share inputs and outputs. [CPU module] • This cannot be used when the assignment of another high-speed input function occupies 8 channels. However, it can overlap with an input interrupt. •...
  • Page 397 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 Zero signal SM5868 SM5869...
  • Page 398 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 399 Operand: Table Operation Control Method Table operation control method Operand Range Reference 10: Condition Jump Operand 4 0 to 32767 Page 509 (When the positioning table data is set to use device: Head device +5) When the positioning table data is set to use device, M No. for jump condition can be changed during positioning operation.
  • Page 400 Current speed (composite speed) This indicates the positioning operation speed (composite speed) for the interpolation operation. When the interpolation speed specified method is [0: Composite Speed], the current speed is stored in the corresponding special device of the reference-axis. The user unit is set by unit setting. (Page 375 Unit Setting) Special Device Name High-speed pulse input/output module...
  • Page 401 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 Positioning SD5506 SD5546...
  • Page 402 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 403 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 Positioning SM5532 SM5533...
  • Page 404 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 405 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...
  • Page 406 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). 32.1 Common Items This section describes the common items in the positioning instruction. For auxiliary functions, refer to Page 358 Auxiliary Function.
  • Page 407 (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.
  • Page 408 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 364 Remaining distance operation) Operation Deceleration Abnormal end...
  • Page 409 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.
  • Page 410 Setting data Description, range, data type (PLSY) • FX5 operand Operand Description Range Data type Data type (label) Word device number storing command speed or 0 to 65535 16-bit unsigned binary ANY16 data (User system unit) Word device number storing the positioning address 0 to 65535 16-bit unsigned binary ANY16...
  • Page 411 • FX3 compatible 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 or data...
  • Page 412 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...
  • Page 413 Outline of operation For each speed, refer to Page 377 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 414 For (d), specify the pulse output number. Specify an output device (Y) number set in the high speed I/O parameters. (Page 372 Pulse Output Mode) Operation cannot be performed if any other axis number is specified. • FX5S/FX5U/FX5UC CPU module: Y0 to Y3 (equivalent to axes 1 to 4) •...
  • Page 415 Program example The following is a program example of pulse output from axis 1 (Y0). Unlimited pulses output: Positioning address (operand (n)) = 0 Drive Unlimited pulses (K0) contact PLSY K1000 1000 pps Pulse output: Positioning address (operand (n)) > 0 Drive K500 contact...
  • Page 416 • FX3 compatible operand (Supported only for CPU module) Operand Description Range Data type Data type (label)  (s1) Bit device number to which the near-point dog signal ANY_ELEMENTARY is input (BOOL)  (s2) Bit device number to which the zero signal is input ANY_ELEMENTARY (BOOL) FX5S/FX5U/FX5UC CPU...
  • Page 417 • FX3 compatible operand (Supported only for CPU module) 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    ...
  • Page 418 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 402 complete flag SM8329 (FX3 compatible device)
  • Page 419 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,...
  • Page 420 Outline of operation For each speed, refer to Page 377 Items related to speed. For the items related to OPR, refer to Page 389 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 421 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 422 For (d2), specify the rotation direction signal output device number. (Page 374 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.
  • Page 423 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...
  • Page 424 Program example Drive DDSZR instruction SM5500 Drive Positioning Normally Abnormal DDSZR instruction instruction contact activation axis1 activation Drive DDSZR instruction in axis 1 SM5500 DDSZR K10000 K1500 Positioning DDSZR instruction instruction activation axis1 activation SM5500 Positioning instruction activation axis1 Stop event SM5628 Pulse stop Pulse output stop...
  • Page 425 • Use the near-point dog between the reverse rotation limit 1 (LSR) and the forward rotation limit 1 (LSF). The intended operation may not be performed if the relationship among the near-point dog, reverse rotation limit 1 (LSR), and forward rotation limit 1 (LSF) is not as shown in the figure below.
  • Page 426 DRVI/DDRVI This instruction executes 1-speed positioning by relative address. Ladder FBD/LD ENO:=DRVI(EN,s1,s2,d1,d2); ENO:=DDRVI(EN,s1,s2,d1,d2); (s1) (s2) (d1) (d2) Setting data Description, range, data type (DRVI) • FX5 operand Operand Description Range Data type Data type (label) (s1) Word device number storing the positioning address -32768 to +32767 16-bit signed binary ANY16...
  • Page 427 Description, range, data type (DDRVI) • 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 428 • FX3 compatible operand (Supported only for CPU module) 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 (s1)   ...
  • Page 429 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 402 complete flag ...
  • Page 430 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,...
  • Page 431 Operand specification When FX5 operand is specified For (s1), specify the relative positioning address. (Page 380 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 432 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.
  • Page 433 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 434 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...
  • Page 435 32.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 436 • 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 437 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       ...
  • Page 438 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 439 Special registers CPU module FX5 dedicated FX3 compatible Name High Reference speed I/O Axis 1 Axis 2 Axis 3 Axis 4 Axis 1 Axis 2 Axis 3 Axis 4 parameter      SD5500, SD5540, SD5580, SD5620, Current address (user unit) Page 382 SD5501 SD5541...
  • Page 440 Outline of operation For each speed, refer to Page 377 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 441 For (d1), 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. [FX5S CPU module] •...
  • Page 442 Operation of the abnormal end flag 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...
  • Page 443 Setting data Positioning parameter (high speed I/O parameter) Item Axis 1 Item Axis 1 Basic Parameter 1 Basic Parameter 2 Pulse Output Mode 1: PULSE/SIGN Interpolation Speed Specified 0: Composite Speed Method Output Device (PULSE/CW) Max. Speed 15000 pps Output Device (SIGN/CCW) Bias Speed 1000 pps Rotation Direction Setting...
  • Page 444 32.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 445 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 446 • FX3 compatible operand (Supported only for CPU module) 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 (s1)   ...
  • Page 447 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 402 complete flag ...
  • Page 448 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,...
  • Page 449 Basic operation The following describes the basic operation. After the drive contact is turned on, pulse output is started and the speed is increased from the bias speed. After the speed has reached the specified speed, the operation will be performed in the specified speed. From the point at which the interrupt input signal 1 is detected, operation for the specified positioning address is performed.
  • Page 450 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) •...
  • Page 451 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...
  • Page 452 Setting data Positioning parameter (high speed I/O parameter) Item Axis 1 Item Axis 1 Basic Parameter 1 Basic Parameter 2 Pulse Output Mode 1: PULSE/SIGN Interpolation Speed Specified 0: Composite Speed Method Output Device (PULSE/CW) Max. Speed 15000 pps Output Device (SIGN/CCW) Bias Speed 1000 pps Rotation Direction Setting...
  • Page 453 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.
  • Page 454 32.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 455 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...
  • Page 456 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 457 Special registers CPU module FX5 dedicated FX3 compatible Name High Reference speed I/O Axis 1 Axis 2 Axis 3 Axis 4 Axis 1 Axis 2 Axis 3 Axis 4 parameter      SD5500, SD5540, SD5580, SD5620, Current address (user unit) Page 382 SD5501 SD5541...
  • Page 458 Outline of operation For each speed, refer to Page 377 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 459 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 460 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. •...
  • Page 461 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...
  • Page 462 Program example Initial process Initial command speed of DPLSV instruction SM402 DMOV K10000 D300 Initial pulse Command speed 1 to change DMOV K7000 D302 Command speed 2 to change DMOV K15000 D304 Drive DPLSV instruction SM5500 Drive Positioning Normally Abnormal DPLSV instruction instruction...
  • Page 463 32.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);...
  • Page 464 Available device • 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        ...
  • Page 465 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.
  • Page 466 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 467 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 468 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 469 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 464 Table transition variable speed operation.
  • Page 470 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 471 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...
  • Page 472 32.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);...
  • Page 473 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...
  • Page 474 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.
  • Page 475 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 476 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 477 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 478 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 479 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 480 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...
  • Page 481 Setting data Description, range, data type Operand Description Range Data type Data type (label) FX5S CPU module (n1) Head axis number 16-bit unsigned binary ANY16_U FX5UJ/FX5U/FX5UC CPU module K1, K5, K7, K9, K11 (n2) Table number of the axis 1 0 to 100 16-bit unsigned binary ANY16_U...
  • Page 482 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  SM5920 SM5921 SM5922 SM5923 SM5924 SM5925 SM5926 SM5927...
  • Page 483 For (n2), specify the head table number (1 to 100*1) that is executed in the axis specified in (n1). When the positioning instruction of the axis (n1) is not to be executed or positioning parameters of the axis (n1) are not set for high speed I/O parameter, specify K0.
  • Page 484 Operation of the complete flags The operation timing of the complete flags depends on the table control method. The FX3 compatible devices (SM8029 and SM8329) cannot be used. 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.
  • Page 485 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 486 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 487 32.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-J4A or MR-J3A servo amplifier. The data is converted into pulse when being read.
  • Page 488 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) •...
  • Page 489 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: •...
  • Page 490 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 programmable controller is turned on after the power of the servo amplifier, or that power is turned on at the same time. •...
  • Page 491 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) 33.1 How to Use the Positioning Table The following procedure is required to perform positioning in table operation.
  • Page 492 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 493 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 494 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 491 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 programmable controller is stopped and restarted, or system is reset.
  • Page 495 Related devices Related devices of axis 4 are available only for the FX5S/FX5U/FX5UC CPU module. CPU module Axis 1 Axis 2 Axis 3 Axis 4 Name High Reference speed I/O parameter  SM8029 (FX3 compatible device) Instruction execution complete flag Page 402 SM8329 (FX3 compatible device) Instruction execution abnormal end flag...
  • Page 496 Processing details Operation with one table and operation of stepping operation are the same as that of the DRVI/DDRVI instruction. (Page 521 Stepping operation, Page 423 Relative Positioning) However, if dwell time is set, the complete flag turns on after the dwell time elapses.
  • Page 497 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 498 Processing details Operation with one table and operation of stepping operation are the same as that of the DRVA/DDRVA instruction. (Page 521 Stepping operation, Page 433 Absolute Positioning) However, if dwell time is set, the complete flag turns on after the dwell time elapses.
  • Page 499 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 500 Processing details Operation with one table and operation of stepping operation are the same as that of the DVIT/DDVIT instruction. (Page 521 Stepping operation, Page 442 Interrupt 1-Speed Positioning) If dwell time is set, the complete flag turns on after the dwell time elapses.
  • Page 501 Special registers • CPU module Axis 1 Axis 2 Axis 3 Axis 4 Name High Reference speed I/O parameter SD5506 SD5546 SD5586 SD5626 Positioning execution table number  Page 398  SD5511 SD5551 SD5591 SD5631 Positioning error (error occurrence table No.) Page 399 R: Read only, R/W: Read/write, : Not supported •...
  • Page 502 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) (User system unit)
  • Page 503 Special registers • CPU module Axis 1 Axis 2 Axis 3 Axis 4 Name High Reference speed I/O parameter SD5506 SD5546 SD5586 SD5626 Positioning execution table number  Page 398  SD5511 SD5551 SD5591 SD5631 Positioning error (error occurrence table No.) Page 399 R: Read only, R/W: Read/write, : Not supported •...
  • Page 504 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 505 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 506 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 507 Processing details Deceleration stop is performed from the point where the interrupt input signal 1 is detected during positioning operation. (Page 383 Interrupt Input Signal 1) When the interrupt input signal 1 is not detected, the operation becomes the same as that of the DRVI/DDRVI instruction or control method [1: 1 Speed Positioning (Relative Address Specification)].
  • Page 508 • 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  SM5920 SM5921 SM5922 SM5923 SM5924 SM5925 SM5926...
  • Page 509 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 510 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 511 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 512 Precautions • When this table specified for last table, jump is not executed and operation ends normally after deceleration stop. • In stepping operation, conditions are judged at completion of execution of the table immediately prior to control method [10: Condition Jump], and the jump destination table is immediately executed.
  • Page 513 Operation of the complete flags The following describes the operation timings of the complete flags. 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 Instruction execution Instruction execution Instruction execution...
  • Page 514 Processing details Using the reference axis (control method [20: Interpolation Operation (Relative Address Specification)]) and counterpart axis (control method [21: Interpolation Operation (Relative Address Specification Target Axis)]), which is specified in operand 4, linear interpolation positioning is performed. The transfer distance of the operation is the distance from the current stop position (start address) to the positioning addresses specified in operand 1 of the reference axis and the counterpart axis.
  • Page 515 Related devices 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 Axis 3 Axis 4 parameter     SM8029 Instruction execution ...
  • Page 516 Special registers • CPU module FX5 dedicated FX3 compatible Name High Reference speed I/O Axis 1 Axis 2 Axis 3 Axis 4 Axis 1 Axis 2 Axis 3 Axis 4 parameter      SD5500, SD5540, SD5580, SD5620, Current address (user Page 382 SD5501...
  • Page 517 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...
  • Page 518 Precautions • Interpolation operation cannot be activated from this table. Drive interpolation operation with the table control method [20: Interpolation Operation (Relative Address Specification)] of the reference axis. • Each speed is calculated based on the speed of the reference axis. Related devices Refer to Page 513 Related devices of control method [20: Interpolation Operation (Relative Address Specification)].
  • Page 519 Processing details Using the reference axis (control method [22: Interpolation Operation (Absolute Address Specification)]) and counterpart axis (control method [23: Interpolation Operation (Absolute Address Specification Target Axis)]), which is specified in operand 4, linear interpolation positioning is performed. The transfer distance of the operation is the distance from the current stop position (start address) to the positioning addresses specified in operand 1 of the reference axis and the counterpart axis.
  • Page 520 Related devices 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 Axis 3 Axis 4 parameter     SM8029 Instruction execution ...
  • Page 521 Special registers • CPU module FX5 dedicated FX3 compatible Name High Reference speed I/O Axis 1 Axis 2 Axis 3 Axis 4 Axis 1 Axis 2 Axis 3 Axis 4 parameter SD5500, SD5540, SD5580, SD5620,     Current address (user ...
  • Page 522 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...
  • Page 523 Precautions • Interpolation operation cannot be activated from this table. Drive interpolation operation with the table control method [22: Interpolation Operation (Absolute Address Specification)] of the reference axis. • Each speed is calculated based on the speed of the reference axis. Related devices Refer to Page 518 Related devices of control method [22: Interpolation Operation (Absolute Address Specification)].
  • Page 524 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.
  • Page 525 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 492 ends normally. 1: 1 Speed Positioning (Relative Address Specification) The table operates normally.
  • Page 526 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 527 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)
  • Page 528 PROGRAMMING This chapter describes common items and precautions related to programs. 34.1 Table Operation Instruction After setting table data, create a program that uses the table. (Page 489 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.
  • Page 529 External start signal When the external start signal is enabled and off, a positioning instruction that uses the corresponding axis cannot be used. (Page 385 External Start Signal) To use such a positioning instruction, turn on the drive contact of the instruction and then turn on the external start signal.
  • Page 530 Functions that share inputs and outputs The inputs and outputs specified with the positioning parameter cannot be simultaneously used with another high-speed input/ output function depending on the combination. (Page 232 HIGH-SPEED INPUT/OUTPUT FUNCTION) CPU module • Input The following functions occupy inputs of the high-speed input/output function. Function Up to CH/axis Device...
  • Page 531 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. Device Input interrupt High-speed counter Pulse width measurement Positioning   X X CH1 Input A phase X+1 X+1...
  • Page 532 • For the high-speed comparison table, only the tables driven by the HIOEN/DHIOEN instruction are included in the number of the simultaneous executions. • When the positioning function setting is made, high-speed comparison table becomes occupied and is included in the number of simultaneous executions. Correction of backlash The positioning function cannot correct mechanical backlash (clearance/ Turntable...
  • Page 533 34.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 534 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...
  • Page 535 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. Deceleration Acceleration Speed time time Reverse direction (100 ms) (100 ms) Command speed,...
  • Page 536 Parameter setting The setting values of the positioning parameters are shown below. (Page 367 Basic setting) Setting data Item Axis 1 Item Axis 1 Basic Parameter 1 Detailed Setting Parameter Pulse Output Mode 1: PULSE/SIGN External Start Signal Enabled/ 0: Disabled Disabled Output Device (PULSE/CW) Interrupt Input Signal 1 Enabled/...
  • Page 537 Forward/reverse rotation program The positioning instructions used in the program examples are shown below. Positioning instruction Reference Mechanical OPR DSZR/DDSZR Page 413 Page 433 Absolute positioning DRVA/DDRVA Variable speed operation PLSV/DPLSV Page 452 Program example Stop event SM5628 Axis1 pulse output stop (Immediate stop) Pulse stop Pulse stop...
  • Page 538 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 M105 being instruction performed activation JOG(+) operation is being performed.
  • Page 539 Forward direction positioning SM5500 M111 M112 Resets the forward direction positioning complete flag. Forward Positioning Instruction Abnormal direction instruction completion execution positioning activation complete flag M115 SM5500 Resets the reverse direction positioning complete flag. Forward Positioning direction instruction positioning activation being performed M115...
  • Page 540 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 -) .
  • Page 541 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. For other LEDs, refer to the following manuals. MELSEC iQ-F FX5S/FX5UJ/FX5U/FX5UC User's Manual (Hardware) Signal...
  • Page 542 35.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 345 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.
  • Page 543 35.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 375 Unit Setting) Check whether the origin is set properly. •...
  • Page 544 MEMO 35 TROUBLESHOOTING 35.3 Stop Position...
  • Page 545 PART 4 ANALOG FUNCTIONS This part consists of the following chapters. 36 CPU MODULE BUILT-IN ANALOG FUNCTION 37 ANALOG ADAPTERS...
  • Page 546 FX5U CPU module. 36.1 Specifications This section describes the specifications. Generic specifications For the general specification, refer to the following manual. MELSEC iQ-F FX5S/FX5UJ/FX5U/FX5UC User's Manual (Hardware) Performance specifications This section describes the performance specifications. Analog input Item Specifications No.
  • Page 547 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.
  • Page 548 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 255, 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.
  • Page 549 36.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 549 The conversion process time can be reduced by disabling conversion for unused channels.
  • Page 550 36.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...
  • Page 551 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.
  • Page 552 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 553 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.
  • Page 554 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...
  • Page 555 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...
  • Page 556 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...
  • Page 557 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 •...
  • Page 558 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...
  • Page 559 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.
  • Page 560 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.
  • Page 561 36.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...
  • Page 562 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...
  • Page 563 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.
  • Page 564 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...
  • Page 565 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...
  • Page 566 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 567 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...
  • Page 568 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.
  • Page 569 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.
  • Page 570 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);...
  • Page 571 Set item Set item Description Occupied points (s1) Target value The target value (SV) is set. 1 point (SV) The PID instruction does not change the settings. [Caution on using the auto-tuning (limit cycle method)] If the target value for auto-tuning is different from the target value in the PID control, it is necessary to set a value to which a bias value is added, and then store the actual target value when the auto-tuning flag turns OFF.
  • Page 572 Parameter Set item Description/Setting range Remarks (s3) Sampling time (TS) 1 to 32767 (ms) It cannot be shorter than operation cycle of the programmable controller. (s3)+1 Operation setting 0: Forward operation Operation direction (ACT) 1: Backward operation  0: Input variation alarm is invalid 1: Input variation alarm is valid 0: Output variation alarm is invalid Do not set b2 and b5 to ON at the same time.
  • Page 573 Set item Description/Setting range Remarks The following setting is required when using the limit cycle method (b6 of the operation setting (ACT) ((s3)+1) is "1"). (s3)+25 PV value threshold (hysteresis) Set it according to measured value (PV) fluctuation. The setting below is required when the limit cycle width (SHPV) method is used (when the operation setting (ACT) b6 is set to ON).
  • Page 574 Operation setting (s3)+1 Forward operation/backward operation Set the PID control direction (forward or backward). • During auto-tuning for the limit cycle method It is necessary to set the PID control direction (forward or backward) for auto-tuning. • During auto-tuning for the step response method The PID control direction (forward or backward) is not required, as the direction is automatically set when auto-tuning is complete.
  • Page 575 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. The check is executed by following the values of (s3) +20 to (s3) +23. These parameters can be set in (s3)+24.
  • Page 576 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 577 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 578 If the hunting suppression setting is not used, the PID control operation with similar performance to the FX3 programmable controller will be executed. 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.
  • Page 579 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 580 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 581 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 582 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 583 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 584 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.
  • Page 585 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 586 • 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 587 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 588 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 589 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.
  • Page 590 Examples of program System configuration example An example of the system configuration when the PID control function is used is shown below. System configuration X10: Auto-tuning command 24V X10 X11 X11: PID control command COM0 Y0 FX5U-32MT/ES FX5-4AD-TC-ADP Error indication 24 V DC power supply Temperature chamber...
  • Page 591 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 592 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 593 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 594 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 595 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 596 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 597 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 598 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 599 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 600 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...
  • Page 601 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 602 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 603 • 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 604 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 605 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.
  • Page 606 36.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.
  • Page 607 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  ...
  • Page 608 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 609 Parameter setting) Create a program. (Page 612 Programming) Write the parameters to the CPU module.
  • Page 609 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 609 Operating example 1 control...
  • Page 610 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 611 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 612 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 613 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...
  • Page 614 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 615 Setting item Setting range Control mode Device type Standard PID Heating- User System 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...
  • Page 616 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 617 Control method The following control methods can be executed by setting a proportional gain, integral time, and derivative time. • Two-position control ( Page 615 Two-position control) • P control ( Page 617 P control) • PD control ( Page 618 PD control) •...
  • Page 618 • 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 619 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 620 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 621 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 622 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 623 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 624 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 625 • 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 626 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 627 • 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 628 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 645 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 629 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 630 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 631 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 632 • 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.
  • Page 633 Control response parameter Set the response to the target value (SV) of PID control for either of the two levels (Normal and Fast). (1): When the response to the target value (SV) is "Normal" The overshoot and undershoot can be suppressed, but it takes longer to reach the target value (SV). (2): When the response to the target value (SV) is "Fast"...
  • Page 634 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 635 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 636 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 637 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 638 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 639 • 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 640 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 641 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 642 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 643 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 644 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 645 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) D/A conversion enable/disable setting SM6660 FX5-4DA-ADP(CH1) D/A conversion enable/disable setting (0: Enabled, 1: Disabled) SM6700 FX5-4DA-ADP(CH2) D/A conversion enable/disable setting (0: Enabled, 1: Disabled)
  • Page 646 • 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).
  • Page 647 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".
  • Page 648 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 649 Do not write to the special relay/special register in the user interrupt program. 36.8 Wiring For details on the wiring, refer to the following manual. MELSEC iQ-F FX5S/FX5UJ/FX5U/FX5UC User's Manual (Hardware) 36 CPU MODULE BUILT-IN ANALOG FUNCTION 36.7 Procedure to Execute the Built-in Analog Function...
  • Page 650 36.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.
  • Page 651 Application settings (analog input) Setting procedure Open "Application Settings" of the GX Works3. Start Module parameter. Navigation window  [Parameter]  Module model name  [Module Parameter]  [Analog Input]  [Application Settings] Window Displayed items Item Description Setting range Default Process Alarm Warning Setting Set whether to "enable"...
  • Page 652 Basic settings (analog output) Setting procedure Open "Basic Settings" of the GX Works3. Start Module parameter. Navigation window  [Parameter]  Module model name  [Module Parameter]  [Analog Output]  [Basic Settings] Window Displayed items Item Description Setting range Default D/A Conversion Enable/Disable Set whether to "enable"...
  • Page 653 Application settings (analog input) Setting procedure Open "Application Settings" of the GX Works3. Start Module parameter. Navigation window  [Parameter]  Module model name  [Module Parameter]  [Analog Output]  [Application Settings] Window Displayed items Item Description Setting range Default Warning Output Setting Set whether to "enable"...
  • Page 654 36.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.
  • Page 655 ANALOG ADAPTERS This chapter describes analog adapters. The following analog adapters are available. Product Model Function Description Analog I/O FX5-4A-ADP Analog input This analog adapter connects to the CPU module, captures two points of voltage/current, and expansion adapter Analog output outputs the two points of voltage/current.
  • Page 656 *1 For FX5-4A-ADP with the serial number 223**** or earlier, the maximum number of connectable modules is 2. 37.2 Specifications This section describes the specifications. Generic specifications For general specifications, refer to the following manual. MELSEC iQ-F FX5S/FX5UJ/FX5U/FX5UC User's Manual (Hardware) Power supply specifications Power supply specifications is shown below. Item Specification FX5-4A-ADP...
  • Page 657 Performance specifications Performance specifications is shown below. Analog input, analog output Analog input specifications Item Specification FX5-4A-ADP FX5-4AD-ADP Number of analog input points 2 points (CH1, CH2) 4 points (CH1, CH2, CH3, CH4) Analog input voltage -10 to +10VDC (input resistance value 1M) Analog input current -20 to +20mA DC (input resistance value 250) Digital output value...
  • Page 658 Item Specification FX5-4A-ADP FX5-4DA-ADP Ambient temperature 255: Within 0.1% Ambient temperature 255: Within 0.1% Accuracy (accuracy for the full scale of the digital (voltage 20mV, current 20A) (voltage 20mV, current 20A) output value) Ambient temperature 0 to 55: Within 0.2% : Within 0.2% Ambient temperature -20 to 55...
  • Page 659 Item Specification Celsius () Fahrenheit () Temperature measuring range -200 to +1200 -328 to +2192 -40 to +750 -40 to +1382 -200 to +350 -328 to +662 600 to 1700 1112 to 3092 0 to 1600 32 to 2912 0 to 1600 32 to 2912...
  • Page 660 Input range setting Digital output value Maximum Maximum 0 to 5V -384 16383 1 to 5V -3584 13183 -10 to +10V -8192 8191 • Use a value within the analog input practical range and digital output practical range of each input range. If the values are out of the range, the resolution and accuracy may not fall within the range of the performance specifications.
  • Page 661 • Use a value within the analog input practical range and digital output practical range of each input range. If the values are out of the range, the resolution and accuracy may not fall within the range of the performance specifications.
  • Page 662 Output range setting Digital value Maximum Maximum 0 to 10V -384 16383 0 to 5V -384 16383 1 to 5V -384 16383 -10 to +10V -8192 8191 Use a value within the digital input practical range and analog output practical range of each output range. If the values are out of the range, the resolution and accuracy may not fall within the range of the performance specifications.
  • Page 663 Use a value within the digital input practical range and analog output practical range of each output range. If the values are out of the range, the resolution and accuracy may not fall within the range of the performance specifications. (Avoid using the dotted line part of the current output characteristic graph.) Current output characteristic graph 0 to 20mA 4 to 20mA...
  • Page 664 Analog output accuracy Accuracy of D/A conversion is determined by the accuracy for the full scale of analog output value. An output characteristic change through changes of the offset/gain setting or the output range does not sacrifice the accuracy, which is maintained within the described range of the performance specifications. The following graph shows the fluctuation range of accuracy when the range of -10V to +10V is selected.
  • Page 665 For restrictions on installation with the CPU module, combination of analog adapters, and order of connection, refer to the following manual. MELSEC iQ-F FX5S/FX5UJ/FX5U/FX5UC User's Manual (Hardware) Connect the system to the external device. Wiring to external devices. (Page 663 Wiring) Set the parameters.
  • Page 666 37.5 List of Functions The following table lists the functions list. In the following explanation, the icons below indicate whether the corresponding analog adapter can be used in each function. (The functions cannot be used by analog adapters marked with .) FX5-4A-ADP FX5-4AD-ADP FX5-4DA-ADP...
  • Page 667 Item Description Availability Reference FX5-4A-ADP FX5-4AD-ADP Deviation detection between channel function Detects whether there is a difference of more than a   Page 698 certain level in digital operation values between channels.   Offset/gain setting function Corrects errors in digital output value. Page 701 ...
  • Page 668 Analog output : Supported, : Not supported Item Description Availability Reference FX5-4A-ADP FX5-4DA-ADP   D/A conversion enable/disable setting Controls whether to enable or disable the D/A Page 707 function conversion for each channel. Range switching function Allows switching the output range of an analog output ...
  • Page 669 The functions are processed in the order shown below. Digital value D/A conversion enable/disable function Range switching function Shift function Warning output function Scaling function Analog output HOLD/CLEAR function Digital operation value Analog output value monitor D/A conversion device D/A output enable/disable setting function Disconnection detection function...
  • Page 670 Temperature sensor input : Supported, : Not supported Function list Description Availability Reference FX5-4A-PT-ADP FX5-4AD-TC-ADP   Conversion enable/disable function Sets whether to enable or disable the Page 728 temperature conversion for each channel. Disabling the conversion on unused channels reduces the conversion cycles.
  • Page 671 The functions are processed in the order shown below. Conversion enable/disable function FX5-4AD-PT-ADP FX5-4AD-TC-ADP Thermocouple type choice function Temperature resistance choice function A/D conversion device Disconnection detection function Averaging function Temperature unit choice function Measured temperature value Maximum value/minimum Alarm output function (Process alarm) Alarm output function (Rate alarm) value hold function Minimum value...
  • Page 672 37.6 Functions (Analog Input) This section describes the A/D conversion functions and the setting procedures for those functions using the GX Works3. A/D conversion enable/disable setting function FX5-4A-ADP FX5-4AD-ADP FX5-4DA-ADP FX5-4AD-PT-ADP FX5-4AD-TC-ADP This function controls whether to enable or disable the A/D conversion for each channel. Operation The analog input is converted only for channel(s) whose "A/D conversion enable/disable setting"...
  • Page 673 Range switching function FX5-4A-ADP FX5-4AD-ADP FX5-4DA-ADP FX5-4AD-PT-ADP FX5-4AD-TC-ADP This function allows switching the input range of an analog input for each channel. Switching the range makes it possible to change the input conversion characteristics. Operation The input range is switched when the "input range setting" is changed while the "A/D conversion enable/disable setting" is set to "disable".
  • Page 674 Name Connection part Special relay/Special register Deviation detection flag between channel 1st adapter SM6325 SM6365 SM6405 SM6445 2nd adapter SM6685 SM6725 SM6765 SM6805 3rd adapter SM7045 SM7085 SM7125 SM7165 4th adapter SM7405 SM7445 SM7485 SM7525 Digital output value 1st adapter SD6300 SD6340 SD6380...
  • Page 675 Corresponding devices The devices which are used by the range switching function are listed below. Name Connection part Special register Input range setting 1st adapter SD6305 SD6345 SD6385 SD6425 2nd adapter SD6665 SD6705 SD6745 SD6785 3rd adapter SD7025 SD7065 SD7105 SD7145 4th adapter SD7385...
  • Page 676 Count average A/D conversion is executed for a set number of times of count average, the averaged value excluding the maximum value and minimum value is output in digital, and values are stored in the digital output value, digital operation value, and analog input value monitor.
  • Page 677 Corresponding devices The devices which are used by the A/D conversion method are listed below. Name Connection part Special register Digital output value 1st adapter SD6300 SD6340 SD6380 SD6420 2nd adapter SD6660 SD6700 SD6740 SD6780 3rd adapter SD7020 SD7060 SD7100 SD7140 4th adapter SD7380...
  • Page 678 Disconnection detection function FX5-4A-ADP FX5-4AD-ADP FX5-4DA-ADP FX5-4AD-PT-ADP FX5-4AD-TC-ADP Simple disconnection detection is performed. This function is enabled when the analog input range is 1 to 5 V or 4 to 20 mA. Disconnection detection condition The table below shows the disconnection detection condition and disconnection recovery condition. Input range Disconnection detection condition Disconnection recovery condition...
  • Page 679 • The "disconnection detection flag" automatically turns OFF. • To clear "A/D conversion latest alarm code", turn ON "A/D conversion alarm clear request" ("Alarm clear request" for the FX5-4AD-ADP). When the "disconnection detection recovery enable/disable setting" is set to "disable" Analog input value Range Out of range...
  • Page 680 Corresponding devices The devices which are used by the disconnection detection function are listed below. Name Connection part Special relay Disconnection detection flag 1st adapter SM6318 SM6358 SM6398 SM6438 2nd adapter SM6678 SM6718 SM6758 SM6798 3rd adapter SM7038 SM7078 SM7118 SM7158 4th adapter SM7398...
  • Page 681 Operation When the analog input value is outside the normal range, it is regarded as over-scale and the corresponding over-scale detection flag turns ON. • Over-scale upper limit detection flag: Turns ON when the analog input value is above the normal range. (Alarm code: 090H) •...
  • Page 682 Corresponding devices The devices which are used by the over scale detection function are listed below. Name Connection part Special relay Over scale upper limit detection flag 1st adapter SM6302 SM6342 SM6382 SM6422 2nd adapter SM6662 SM6702 SM6742 SM6782 3rd adapter SM7022 SM7062 SM7102...
  • Page 683 Setting procedure Set "Digital Clip Enable/Disable" to "enable". Navigation window  [Parameter]  [Module Information]  Module model name  [Module Parameter]  "Application Settings"  "Digital Clip Setting" Setting example When the following values are used for the channel with the input range of 0 to 10V Setting value •...
  • Page 684 Corresponding devices The devices which are used by the digital clipping function are listed below. Name Connection part Special relay Digital clipping enable/disable setting 1st adapter SM6309 SM6349 SM6389 SM6429 2nd adapter SM6669 SM6709 SM6749 SM6789 3rd adapter SM7029 SM7069 SM7109 SM7149 4th adapter...
  • Page 685 Setting procedure Set "Scaling enable/disable setting" to "Enable". Navigation window  [Parameter]  [Module Information]  Module model name  [Module Parameter]  "Application Settings"  "Scaling Setting" Set values for "Scaling upper limit value" and "Scaling lower limit value". Item Setting range Scaling upper limit value...
  • Page 686 Setting example When 5000 is set to the scaling upper limit value and 1000 is set to the scaling lower limit value for the channel with the input range of 0 to 5V Digital output value (16000) Scaling upper limit value: 5000 Scaling lower limit value: 1000 Analog input voltage (V) Voltage input (V)
  • Page 687 When 2500 is set to the scaling upper limit value and 500 is set to the scaling lower limit value for the channel with the input range of -10 to +10V Digital output value (8000) Scaling upper limit value: 2500 Scaling lower limit value: 500 (-8000) Analog input voltage (V)
  • Page 688 Warning output function FX5-4A-ADP FX5-4AD-ADP FX5-4DA-ADP FX5-4AD-PT-ADP FX5-4AD-TC-ADP This section describes process alarms and rate alarms used for the warning output function. Process alarm This function outputs an alarm when a digital operation value enters the preset warning output range. Digital operation value Warning output range Out of warning output range...
  • Page 689 Detection target for outputting a warning When using the digital clipping function, scaling function, and shift function, the digital operation value resulting from digital clipping, scale conversion, and shift additions becomes the detection target for outputting a warning. Always set the process alarm upper upper limit value, process alarm upper lower limit value, process alarm lower upper limit value, and process alarm lower lower limit value to values that take digital clipping, scale conversion, and shift addition into consideration.
  • Page 690 Corresponding devices The devices which are used by the process alarm are listed below. Name Connection part Special relay/Special register Warning output flag (process alarm 1st adapter SM6311 SM6351 SM6391 SM6431 upper limit) 2nd adapter SM6671 SM6711 SM6751 SM6791 3rd adapter SM7031 SM7071 SM7111...
  • Page 691 Rate alarm This function outputs a warning when the change rate of a digital output value is equal to or greater than the rate alarm upper limit value, or equal to or smaller than the rate alarm lower limit value. Digital output value CH1 Digital Rate alarm...
  • Page 692 Operation The digital output value is monitored every rate alarm warning detection period. When the change from the previous value shows a rate of change that is greater than or equal to the rate alarm upper limit value or less than or equal to the rate alarm lower limit value, the "Warning output flag (rate alarm upper limit)"...
  • Page 693 Application examples of rate alarms A rate alarm serves to monitor that the change rate of a digital output value lies in a limited range as shown below. To monitor that a rising rate of a digital output value is within the specified range (1) Rate alarm upper limit value Change rate of the digital output value (%) (2) Rate alarm lower limit value...
  • Page 694 Set a warning detection period of rate alarms. Set the cycle in "Rate alarm warning detection period setting". Item Setting range Rate alarm warning detection period setting 1 to 10000 (ms) When a value outside the setting range is set, the rate alarm warning detection period setting range error occurs.
  • Page 695 The details of the device used are listed below. Name Description Monitor Display description Default value value Warning output flag (rate alarm upper limit) Monitors the upper limit value warning and 0: OFF Normal 0: OFF Warning output flag (rate alarm lower) lower limit value warning in the rate alarm.
  • Page 696 Corresponding devices The devices which are used by the shift function are listed below. Name Connection part Special register Conversion value shift amount 1st adapter SD6310 SD6350 SD6390 SD6430 2nd adapter SD6670 SD6710 SD6750 SD6790 3rd adapter SD7030 SD7070 SD7110 SD7150 4th adapter SD7390...
  • Page 697 Convergence detection function FX5-4A-ADP FX5-4AD-ADP FX5-4DA-ADP FX5-4AD-PT-ADP FX5-4AD-TC-ADP This function detects whether the digital operation value is within a certain range for a specified time. Operation Time is measured when the digital operation value falls within the convergence range. If the digital operation value falls within the convergence range within the time set in the "Detection time setting for convergence detection", the "convergence detection flag"...
  • Page 698 Set values for "Convergence detection upper limit value" and "Convergence detection lower limit value". Item Setting range Convergence detection upper limit value -32768 to +32767 Convergence detection lower limit value Set values so that the condition "Convergence detection upper limit value > Convergence detection lower limit value"...
  • Page 699 Maximum value/minimum value hold function FX5-4A-ADP FX5-4AD-ADP FX5-4DA-ADP FX5-4AD-PT-ADP FX5-4AD-TC-ADP This function stores the maximum value and minimum value of the digital operation value to the special registers for each channel. This function can be set only with special devices. Operation When the "Maximum value reset request"...
  • Page 700 The details of the device used are listed below. Name Description Monitor value Display Default value description Maximum value/ This flag monitors the "maximum value/minimum value" reset 0: OFF Reset is not 0: OFF minimum value status. completed. reset completed flag When the "maximum value reset request"...
  • Page 701 Deviation detection CH1 Check the status of the deviation between CH detection flag in the 1st and 2nd FX5-4A-ADP, or FX5-4AD-ADP used in the deviation between CH detection function. Monitor value Display description Default value 0: OFF Normal 0: OFF 1: ON Deviation detection ■...
  • Page 702 Setting procedure Set "Deviation detection trigger between channel" to "Enable". Navigation window  [Parameter]  [Module Information]  Module model name  [Module Parameter]  "Application Settings"  "Deviation detection trigger between channel" Set values for "Deviation value for deviation detection between channel". Item Setting range Deviation value for deviation detection between channel...
  • Page 703 The details of the device used are listed below. Name Setting value Description Default value Deviation detection flag between This flag monitors the deviation 0: OFF Normal 0: OFF channel detection between channels. 1: ON Deviation detection Deviation detection trigger between Set whether to enable or disable the 0: OFF Deviation detection enable...
  • Page 704 Operation Offset/gain writing For changing the offset/gain data, set "E20FH" to the "offset/gain writing enable code" and set the "offset/gain writing" from OFF to ON to write the "input range setting", "offset setting value" and "gain setting value" to the built-in memory of the analog adapter.
  • Page 705 Select the target module for the offset/gain setting, and click [OK] button. Click [Yes] button. FX5-4A-ADP Execute the settings in A/D conversion. Mark the checkbox of the channel where offset and gain values are to be set, and click [Offset Setting] button. FX5-4AD-ADP Apply the offset voltage or current to the terminal of the corresponding channel, and click [Yes] button.
  • Page 706 Check that "Offset Status" has changed to "Changed", and click [Gain Setting] button. Apply the gain voltage or current to the terminal of the corresponding channel, and click [Yes] button. Check that "Gain Status" has changed to "Changed", and click [Close] button. Click [Yes] button.
  • Page 707 Corresponding devices The devices which are used by the offset/gain setting function are listed below. Name Connection part Special relay/Special register Offset/gain reading 1st adapter SM6332 SM6372 SM6412 SM6452 2nd adapter SM6692 SM6732 SM6772 SM6812 3rd adapter SM7052 SM7092 SM7132 SM7172 4th adapter SM7412...
  • Page 708 Offset/gain initialization function FX5-4A-ADP FX5-4AD-ADP FX5-4DA-ADP FX5-4AD-PT-ADP FX5-4AD-TC-ADP This function initializes the offset and gain values in the built-in memory of the analog adapter. This function can be set only with special devices. Operation Set "A/D conversion: E20FH" to "offset/gain writing enable code" and set the "offset/gain initialization" from OFF to ON to initialize the offset value and gain value saved in the built-in memory of the analog adapter.
  • Page 709 37.7 Functions (Analog Output) This section describes details of the D/A conversion functions and how to set them using the GX Works3. D/A conversion enable/disable function FX5-4A-ADP FX5-4AD-ADP FX5-4DA-ADP FX5-4AD-PT-ADP FX5-4AD-TC-ADP Set whether to enable or disable D/A conversion for each channel. Operation Digital values are D/A-converted only for channels whose "D/A conversion enable/disable setting"...
  • Page 710 Range switching function FX5-4A-ADP FX5-4AD-ADP FX5-4DA-ADP FX5-4AD-PT-ADP FX5-4AD-TC-ADP The output range of the analog output can be switched for each channel. Switching the range makes it possible to change the output conversion characteristics. Operation The output range is switched when the "output range setting" is changed while the "D/A conversion enable/disable setting" is set to "disable".
  • Page 711 Setting procedure Set the output range to be used in the "output range setting". Navigation window  [Parameter]  [Module Information]  Module model name  [Module Parameter]  "Basic Settings"  "Range switching function" Output range setting Digital input range 0 to 10V 0 to 16000 0 to 5V...
  • Page 712 Setting procedure Set the shift amount to "Input value shift amount". Navigation window  [Parameter]  [Module Information]  Module model name  [Module Parameter]  "Application Settings"  "Shift Function" Item Setting range Default value Input value shift amount -32768 to +32767 Corresponding devices The devices which are used by the shift function are listed below.
  • Page 713 Warning output function FX5-4A-ADP FX5-4AD-ADP FX5-4DA-ADP FX5-4AD-PT-ADP FX5-4AD-TC-ADP A warning will be output when the digital operation value after shift addition exceeds the warning output upper limit value or is less than the warning output lower limit value. Operation When the digital operation value after shift addition is greater than or equal to the warning output upper limit value or less than the warning output lower limit value and satisfies the conditions for warning output, "warning output upper flag"...
  • Page 714 Setting procedure Set "Warning Output Function" to "Enable". Navigation window  [Parameter]  [Module Information]  Module model name  [Module Parameter]  "Application Settings"  "Warning Output Function" Set values for "Warning output upper limit value" and "Warning output lower limit value". Item Setting range Warning output upper limit value...
  • Page 715 Scaling function FX5-4A-ADP FX5-4AD-ADP FX5-4DA-ADP FX5-4AD-PT-ADP FX5-4AD-TC-ADP This function performs the scale conversion on digital values within a specified range between a scaling upper limit value and a scaling lower limit value. The program for scale conversion can be omitted. Operation This function performs the scale conversion on digital values within the range between the scaling upper limit value and scaling lower limit value and stores the converted value in "Digital operation value".
  • Page 716 Corresponding devices The devices which are used by the scaling function are listed below. Name Connection part Special relay/Special register Scaling enable/disable setting 1st adapter SM6308 SM6348 SM6388 SM6428 2nd adapter SM6668 SM6708 SM6748 SM6788 3rd adapter SM7028 SM7068 SM7108 SM7148 4th adapter SM7388...
  • Page 717 When 1000 is set to the scaling upper limit value and 5000 is set to the scaling lower limit value for the channel with the output range of 0 to 5V Analog output voltage (V) Scaling lower limit value Digital value : 5000 Digital operation value (After scaling) Scaling...
  • Page 718 Setting methods Set "HOLD/CLEAR Setting" to "CLEAR", "Previous Value (hold)", or "Setting Value". Navigation window  [Parameter]  [Module Information]  Module model name  [Module Parameter]  "Application Settings"  "Analog Output HOLD/CLEAR Setting"  "HOLD/CLEAR Setting" It is the above 1, and when "Setting Value" is chosen, a value is set to HOLD setting value. Navigation window ...
  • Page 719 Setting methods Set "D/A output enable/disable setting" to "D/A output enable" or "D/A output disable". Navigation window  [Parameter]  [Module Information]  Module model name  [Module Parameter]  "Basic Settings"  "D/A Output Enable/Disable Setting" Corresponding devices The devices which are used by the D/A output enable/disable setting function are listed below. Name Connection part Special relay...
  • Page 720 When the "disconnection detection recovery enable/disable setting" is set to "enable" Analog output value Disconnection detection Time Disconnection detection flag Analog output status Normal Normal Disconnection Error clear request (SM50) □ D/A conversion latest error code 0000H 0000H • The "disconnection detection flag" automatically turns OFF. •...
  • Page 721 Setting procedure Set "Disconnection detection enable/disable setting" to "Enable". Navigation window  [Parameter]  [Module Information]  Module model name  [Module Parameter]  "Application Settings"  "Disconnection detection enable/disable setting" Set "Disconnection recovery detection enable/disable setting". Navigation window  [Parameter]  [Module Information]  Module model name  [Module Parameter]  "Application Settings"...
  • Page 722 External power supply disconnection detection function FX5-4A-ADP FX5-4AD-ADP FX5-4DA-ADP FX5-4AD-PT-ADP FX5-4AD-TC-ADP This function detects that the external power supply (24VDC) is not supplied to the analog adapter or that the supply is shut off. Operation The error occurs when the external power is not input. (Error code: 3081H) FX5-4A-ADP The error code is stored in "A/D conversion latest error code"...
  • Page 723 Operation Offset/gain writing For changing the offset/gain data, set "E210H" to the "offset/gain writing enable code" and set the "offset/gain writing" from OFF to ON to write the "output range setting", "offset setting value", and "gain setting value" to the built-in memory of the analog adapter.
  • Page 724 Select the target module for the offset/gain setting, and click [OK] button. Click [Yes] button. Execute the settings in D/A conversion. Specify the channel to configure the offset/gain setting and the user range setting. Use the radio button to specify whether to perform the offset setting or gain setting.
  • Page 725 The adjustment value of the offset value or gain value can be selected from "1", "100", "500", "1000", "2000", and "3000" or it can be set by inputting any value (1 to 3000). Clicking the [+(+)] or [-(-)] button fine-tunes the analog output voltage or analog output current value corresponding the set adjustment value.
  • Page 726 Corresponding devices The devices which are used by the offset/gain setting function are listed below. Name Connection part Special relay/Special register Offset/gain reading 1st adapter SM6332 SM6372 SM6412 SM6452 2nd adapter SM6692 SM6732 SM6772 SM6812 3rd adapter SM7052 SM7092 SM7132 SM7172 4th adapter SM7412...
  • Page 727 Offset/gain initialization function FX5-4A-ADP FX5-4AD-ADP FX5-4DA-ADP FX5-4AD-PT-ADP FX5-4AD-TC-ADP This function initializes the offset and gain values in the built-in memory of the analog adapter. This function can be set only with special devices. Operation Set E210H to "offset/gain writing enable code" and set the "offset/gain initialization" from OFF to ON to initialize the offset value and gain value saved in the built-in memory of the analog adapter.
  • Page 728 Analog output test when CPU module is in STOP status function FX5-4A-ADP FX5-4AD-ADP FX5-4DA-ADP FX5-4AD-PT-ADP FX5-4AD-TC-ADP Analog output tests can be carried out when the CPU module is in the STOP status. The following functions are enabled during the analog output test. •...
  • Page 729 Corresponding devices The devices that are used by the analog output test function when the CPU module is stopped are listed below. Name Connection part Special relay/Special register D/A conversion enable/disable setting 1st adapter SM6300 SM6340 SM6380 SM6420 2nd adapter SM6660 SM6700 SM6740...
  • Page 730 37.8 Functions (Temperature Sensor Input) This section describes details of the functions and how to set them using the GX Works3. Conversion enable/disable setting function FX5-4A-ADP FX5-4A-ADP FX5-4AD-ADP FX5-4DA-ADP FX5-4AD-PT-ADP FX5-4AD-TC-ADP This function sets whether to enable or disable the temperature conversion for each channel. Disabling the conversion on unused channels reduces the conversion cycles.
  • Page 731 Temperature resistance choice function FX5-4A-ADP FX5-4A-ADP FX5-4AD-ADP FX5-4DA-ADP FX5-4AD-PT-ADP FX5-4AD-TC-ADP This function sets a resistance temperature detector type for each channel. Selecting the resistance temperature detector type sets the input conversion characteristics. Operation A resistance temperature detector is switched when the "conversion enable/disable setting" is "disable" and "setting RTD type"...
  • Page 732 Name Connection part Special relay/Special register Minimum value 1st adapter SD6307 SD6347 SD6387 SD6427 2nd adapter SD6667 SD6707 SD6747 SD6787 3rd adapter SD7027 SD7067 SD7107 SD7147 4th adapter SD7387 SD7427 SD7467 SD7507 Offset temperature setting value 1st adapter SD6327 SD6367 SD6407 SD6447 2nd adapter...
  • Page 733 Setting procedure Set "Resistance temperature detector type setting" to a desired resistance temperature detector. Navigation window  [Parameter]  [Module Information] Module model name  [Module Parameter]  "Basic Settings"  "Resistance temperature detector type selection function" Item Temperature unit Temperature input range Input characteristics (measured temperature value) Pt100...
  • Page 734 Name Connection part Special relay/Special register Warning output flag (process alarm lower limit) 1st adapter SM6312 SM6352 SM6392 SM6432 2nd adapter SM6672 SM6712 SM6752 SM6792 3rd adapter SM7032 SM7072 SM7112 SM7152 4th adapter SM7392 SM7432 SM7472 SM7512 Warning output flag (rate alarm upper limit) 1st adapter SM6315 SM6355...
  • Page 735 Name Connection part Special relay/Special register Thermal EMF gain value (H) 1st adapter SD6333 SD6373 SD6413 SD6453 2nd adapter SD6693 SD6733 SD6773 SD6813 3rd adapter SD7053 SD7093 SD7133 SD7173 4th adapter SD7413 SD7453 SD7493 SD7533 Input offset value (L) 1st adapter SD6334 SD6374 SD6414...
  • Page 736 The details of the device used are listed below. Name Description Setting value Description Default value Thermocouple type setting Set the thermocouple type. K thermocouple If a value other than the setting value is set, the range J thermocouple setting/RTD type setting/thermocouple type range error (error T thermocouple code: 1A8H) occurs, and the temperature conversion cannot be performed.
  • Page 737 Setting procedure Set "Disconnection detection enable/disable setting" to "Enable". Navigation window  [Parameter]  [Module Information] Module model name  [Module Parameter]  "Application Settings"  "Disconnection detection function" Set "Enable/Disable setting for disconnection detection automatic clear" to "Enable" or "Disable". Using "Conversion setting for disconnection detection", set what value is to be stored in "Measured temperature value"...
  • Page 738 Corresponding devices The devices which are used by the disconnection detection function are listed below. Name Connection part Special relay/Special register Disconnection detection flag 1st adapter SM6318 SM6358 SM6398 SM6438 2nd adapter SM6678 SM6718 SM6758 SM6798 3rd adapter SM7038 SM7078 SM7118 SM7158 4th adapter...
  • Page 739 When upscale (upper limit value + 5% of measurement range) and downscale (lower limit value - 5% of measurement range) are selected, the values stored in "measured temperature value" are as follows. Temperature unit Downscale Upscale Pt100 Celsius () -2525 9025 Fahrenheit () -4225...
  • Page 740 Time average Temperature conversion is executed for a set time, the total value is averaged, and values are stored in the "measured temperature value". The number of times of processing within the set time varies depending on the number of channels for which temperature conversion is enabled.
  • Page 741 Set a value for "Time Average Counts Average Moving Average". Item Setting range Time Average 340 to 10000 (ms) Count average 4 to 4095 (times) Moving average 2 to 64 (times) Corresponding devices The devices which are used by the temperature conversion method are listed below. Name Connection part Special register...
  • Page 742 Temperature unit choice function FX5-4A-ADP FX5-4A-ADP FX5-4AD-ADP FX5-4DA-ADP FX5-4AD-PT-ADP FX5-4AD-TC-ADP Set whether to use centigrade or fahrenheit as the temperature unit. This setting is for all channels. Operation The "measured temperature value", "maximum value", and "minimum value" are displayed in the temperature unit set by the "temperature unit setting".
  • Page 743 Maximum value/minimum value hold function FX5-4A-ADP FX5-4A-ADP FX5-4AD-ADP FX5-4DA-ADP FX5-4AD-PT-ADP FX5-4AD-TC-ADP This function stores the maximum value and minimum value of the measured temperature value to the special registers for each channel. This function can be set only with special devices. Operation When the "maximum value reset request"...
  • Page 744 The details of the device used are listed below. Name Description Monitor value Display description Default value Maximum value/minimum This flag monitors the "maximum value/minimum 0: OFF Reset is not completed. 0: OFF value reset completed flag value" reset status. 1: ON Reset is completed.
  • Page 745 Warning output function FX5-4A-ADP FX5-4A-ADP FX5-4AD-ADP FX5-4DA-ADP FX5-4AD-PT-ADP FX5-4AD-TC-ADP This section describes process alarms and rate alarms used for the warning output function. Process alarm This function outputs an alarm when a measured temperature value enters the preset alarm output range. Measured temperature value Warning output range Out of warning output range...
  • Page 746 Precautions When "conversion enable/disable setting" is "enable", the data related to the warning output function (process alarm) cannot be changed. Detection cycle The process alarm detection is performed every sampling cycle. Setting procedure Set "Warning output setting (Process alarm)" to "Enable". Navigation window ...
  • Page 747 Corresponding devices The devices which are used by the process alarm are listed below. Name Connection part Special relay/Special register Warning output flag (process alarm 1st adapter SM6311 SM6351 SM6391 SM6431 upper limit) 2nd adapter SM6671 SM6711 SM6751 SM6791 3rd adapter SM7031 SM7071 SM7111...
  • Page 748 Rate alarm This function outputs an alert when the change of a measured temperature value is equal to or greater than the rate alarm upper limit value, or equal to or smaller than the rate alarm lower limit value. Measured temperature value CH1 Measured Rate alarm temperature...
  • Page 749 To clear "conversion alarm flag" and the alarm code stored in "conversion latest alarm code", turn on and off "conversion alarm clear request" after all of "warning output flag (rate alarm upper)" and "warning output flag (rate alarm lower)" turn off. Precautions When "conversion enable/disable setting"...
  • Page 750 To monitor that the change of a measured temperature value (temperature unit: Fahrenheit) falls within the specified range (1) Rate alarm upper limit value Change of the measured temperature value ( ) (2) Rate alarm lower limit value Time To monitor that the change of a measured temperature value (temperature unit: Celsius) is within the specified range (1) Rate alarm upper limit value °...
  • Page 751 Corresponding devices The devices used by the rate alarm are listed below. Name Connection part Special relay/Special register Warning output flag (rate alarm upper) 1st adapter SM6315 SM6355 SM6395 SM6435 2nd adapter SM6675 SM6715 SM6755 SM6795 3rd adapter SM7035 SM7075 SM7115 SM7155 4th adapter...
  • Page 752 Offset/gain setting function FX5-4A-ADP FX5-4A-ADP FX5-4AD-ADP FX5-4DA-ADP FX5-4AD-PT-ADP FX5-4AD-TC-ADP This function sets any analog (temperature) input values as offset and gain values (user range setting) instead of the preset settings. The function corrects error of the temperature conversion caused by noise or other factors. Note that the resolution is not changed.
  • Page 753 If the "offset temperature setting value" and the "gain temperature setting value" are set using this function, the following values are also stored. Item Description Setting range Input offset value Thermal EMF value obtained by temperature conversion averaging processing when the 0 to 78125 (V) measured temperature value reaches the lower limit value (offset reference value) Input gain value...
  • Page 754 Setting procedure Access to the offset/gain setting window in the GX Works3 to set the offset and gain values. The setting procedure for the offset/gain setting of the FX5-4A-ADP is as follows: [Tool]  [Module Tool List] In "Analog Adapter", select "Offset/gain setting" and click [OK] button.
  • Page 755 Apply the offset temperature to the terminal of the corresponding channel, and click [Yes] button. Check that "Offset Status" has changed to "Changed", and click [Gain Setting] button. Apply the gain temperature to the terminal of the corresponding channel, and click [Yes] button. Check that "Gain Status"...
  • Page 756 Corresponding devices The devices which are used by the offset/gain setting function are listed below. Name Connection part Special relay/Special register Offset/gain setting flag 1st adapter SM6331 SM6371 SM6411 SM6451 2nd adapter SM6691 SM6731 SM6771 SM6811 3rd adapter SM7051 SM7091 SM7131 SM7171 4th adapter...
  • Page 757 Name Description Range Default value FX5-4AD-PT-ADP Offset temperature setting value Set the offset temperature setting value used in the offset/gain setting function. Pt100 (Celsius): -2000 to +8500 Pt100 (Fahrenheit): -3280 to +15620 NI100 (Celsius): -600 to +2500 NI100 (Fahrenheit): -760 to +4820 FX5-4AD-TC-ADP K thermocouple (Celsius): -2700 to +13700 K thermocouple (Fahrenheit): -4540 to...
  • Page 758 Offset/gain initialization function FX5-4A-ADP FX5-4A-ADP FX5-4AD-ADP FX5-4DA-ADP FX5-4AD-PT-ADP FX5-4AD-TC-ADP This function initializes the offset and gain values in the built-in memory of the analog adapter. This function can be set only with special devices. Operation Set "E215H" (for the FX5-4AD-PT-ADP) or "E21AH" (for the FX5-4AD-TC-ADP) to the "offset/gain writing enable code" and set the "offset/gain initialization"...
  • Page 759 Corresponding devices The devices which are used by the offset/gain initialization function are listed below. Name Connection part Special relay/Special register Offset/gain initialization 1st adapter SM6334 SM6374 SM6414 SM6454 2nd adapter SM6694 SM6734 SM6774 SM6814 3rd adapter SM7054 SM7094 SM7134 SM7174 4th adapter SM7414...
  • Page 760 37.9 Other Functions Event history function FX5-4A-ADP FX5-4AD-ADP FX5-4DA-ADP FX5-4AD-PT-ADP FX5-4AD-TC-ADP This function collects errors from the analog adapter, 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.
  • Page 761 Analog output FX5-4A-ADP FX5-4AD-ADP FX5-4DA-ADP FX5-4AD-PT-ADP FX5-4AD-TC-ADP Disable D/A conversion. Set "D/A conversion enable/disable setting" to ON. (Page 707 D/A conversion enable/disable function) Change the value of a target special relay/device. Change the value of a target device. Enable D/A conversion. Set "D/A conversion enable/disable setting"...
  • Page 762 Alarm clear request Analog input FX5-4A-ADP FX5-4AD-ADP FX5-4DA-ADP FX5-4AD-PT-ADP FX5-4AD-TC-ADP It is necessary to set the "A/D conversion alarm clear request" from OFF to ON to clear the alarm code. The table below shows the necessity of the alarm clear request for turning OFF each flag and clearing the alarm code. : Alarm clear request required, : Alarm clear request not required Flag name Alarm clear request required to turn...
  • Page 763 Analog output FX5-4A-ADP FX5-4AD-ADP FX5-4DA-ADP FX5-4AD-PT-ADP FX5-4AD-TC-ADP It is necessary to set the "D/A conversion alarm clear request" from OFF to ON for clearing the alarm code. The table below shows the necessity of the alarm clear request for turning OFF each flag and clearing the alarm code. : Alarm clear request required, : Alarm clear request not required Flag name Alarm clear request required to turn...
  • Page 764 37.10 Parameter Setting Set the parameters of each channel. In the explanation for each setting, the icons below indicate the compatible analog adapters. (The functions cannot be used by analog adapters marked with .) FX5-4A-ADP FX5-4AD-ADP FX5-4DA-ADP FX5-4AD-PT-ADP FX5-4AD-TC-ADP Setting parameters here eliminates the need to program them. Parameters are enabled when the CPU module is powered ON or after a reset.
  • Page 765 Displayed items Item Description Setting range Default A/D Conversion Enable/Disable Set whether to "enable" or "disable" AD conversion value output. • Disable Disable Setting • Enable Average Processing Specify Execute whether to set "average process" or "sampling • Sampling Processing Sampling processing".
  • Page 766 Application settings (analog input) FX5-4A-ADP FX5-4AD-ADP FX5-4DA-ADP FX5-4AD-PT-ADP FX5-4AD-TC-ADP Setting procedure Open "Application Settings" of the GX Works3. Start Module parameter. • FX5-4A-ADP Navigation window  [Parameter]  [Module Information]  Module model name  [Module Parameter]  "Application Settings (Input)" •...
  • Page 767 Displayed items Item Description Setting range Default Warning output setting (Process Set whether to "enable" or "disable" process alarm warning. • Disable Disable alarm) • Enable  Process Alarm Upper Upper Limit Set the upper upper limit value of the digital output value. -32768 to +32767 Value Process Alarm Upper Lower Limit...
  • Page 768 Basic settings (analog output) FX5-4A-ADP FX5-4AD-ADP FX5-4DA-ADP FX5-4AD-PT-ADP FX5-4AD-TC-ADP Setting procedure Open "Basic Settings" of the GX Works3. Start Module parameter. • FX5-4A-ADP Navigation window  [Parameter]  [Module Information]  Module model name  [Module Parameter]  "Basic Settings (Output)" •...
  • Page 769 Application settings (analog output) FX5-4A-ADP FX5-4AD-ADP FX5-4DA-ADP FX5-4AD-PT-ADP FX5-4AD-TC-ADP Setting procedure Open "Application Settings" of the GX Works3. Start Module parameter. • FX5-4A-ADP Navigation window  [Parameter]  [Module Information]  Module model name  [Module Parameter]  "Application Settings (Output)" •...
  • Page 770 Click the item to be changed to enter the setting value. • Item where a value is selected from the pull-down list Click [] button of the item to be set, and from the pull-down list that appears, select the value. •...
  • Page 771 Displayed items Item Description Setting range Default Temperature unit setting Set whether to use 'Celsius' or 'Fahrenheit' as the temperature • Celsius Celsius unit. • Fahrenheit Conversion enable/disable setting Set whether to 'Enable' or 'Disable' output of conversion values for •...
  • Page 772 Application settings (temperature sensor input) FX5-4A-ADP FX5-4A-ADP FX5-4AD-ADP FX5-4DA-ADP FX5-4AD-PT-ADP FX5-4AD-TC-ADP Setting procedure Open "Application Settings" of the GX Works3. Start Module parameter. Navigation window  [Parameter]  [Module Information]  Module model name  [Module Parameter]  "Application Settings" Window Displayed items Item...
  • Page 773 Click the item to be changed to enter the setting value. • Item where a value is selected from the pull-down list Click [] button of the item to be set, and from the pull-down list that appears, select the value. •...
  • Page 774 Error history, alarm history can be checked with the event history window of the GX Works3. [Diagnostics]  [Module Diagnostics (CPU Diagnostics)]  [Event History] button Troubleshooting by Symptom The following describes troubles classified by symptoms. In the explanation for each item, the icons below indicate the applicable analog adapters. (The explanations do not apply to the analog adapters marked with .) FX5-4A-ADP FX5-4AD-ADP...
  • Page 775 Troubleshooting of analog input FX5-4A-ADP FX5-4AD-ADP FX5-4DA-ADP FX5-4AD-PT-ADP FX5-4AD-TC-ADP If the digital output value cannot be read Check item Action Whether the analog signal cable is disconnected from the analog Check the signal cables visually, and wire the analog signal cable correctly. adapter Whether the external equipment is wired correctly.
  • Page 776 Troubleshooting of analog output FX5-4A-ADP FX5-4AD-ADP FX5-4DA-ADP FX5-4AD-PT-ADP FX5-4AD-TC-ADP When the analog output value is not given Check item Action Whether the analog signal cable is disconnected from the analog Check the signal cables visually, and wire the analog signal cable correctly. adapter Whether the external equipment is wired correctly.
  • Page 777 Troubleshooting of temperature sensor input FX5-4A-ADP FX5-4A-ADP FX5-4AD-ADP FX5-4DA-ADP FX5-4AD-PT-ADP FX5-4AD-TC-ADP When a measured temperature value cannot be read Check item Action Whether the analog signal cable is disconnected from the analog Check the signal cables visually, and wire the analog signal cable correctly. adapter Whether the external equipment is wired correctly.
  • Page 778 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.
  • Page 779 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 ...
  • Page 780 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 ...
  • Page 781 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.
  • Page 782 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 ...
  • Page 783 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...
  • Page 784 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 OFFON: Backup requested ...
  • Page 785 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 786 • Pulse width measurement Name Description Compatible CPU module CH1 to CH4 FX5S FX5UJ FX5U/ FX5UC SM5020 to SM5023 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.
  • Page 787 • Positioning Name Description Compatible CPU module Axis 1 to Axis 4 FX5S FX5UJ FX5U/ FX5UC    SM5500 to SM5503 Positioning instruction activation OFF: Stopped ON: Operation    SM5516 to SM5519 Positioning pulse output monitor OFF: Stopped ON: Pulse output SM5532 to SM5535 Positioning error occurrence...
  • Page 788 High-speed pulse input/output module • High-speed counter Name Description Compatible CPU module CH9 to CH16 FX5S FX5UJ FX5U/ FX5UC    SM4508 to SM4515 High-speed counter operating OFF: Stopped ON: Operation    SM4540 to SM4547 High-speed counter overflow occurrence OFF: No error ON: Overflow SM4556 to SM4563...
  • Page 789 • PWM Name Description Compatible CPU module CH5 to CH12 FX5S FX5UJ FX5U/ FX5UC    SM5304 to SM5311 PWM pulse output monitor The operation/stopped status of PWM output on the target channel can be checked. OFF: Stopped ON: Operation ...
  • Page 790 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...
  • Page 791 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 792 Connection Name Description Compatible CPU module CH1, CH2, order FX5S FX5UJ FX5U/ CH3, CH4 FX5UC    SM6301, SM6341, 1st adapter A/D conversion Set whether to enable or disable A/D conversion. SM6381, SM6421 enable/disable Target:FX5-4A-ADP (CH1, CH2), FX5-4AD-ADP setting SM6661, SM6701, 2nd adapter SM6741, SM6781...
  • Page 793 Connection Name Description Compatible CPU module CH1, CH2, order FX5S FX5UJ FX5U/ CH3, CH4 FX5UC    SM6306, SM6346, 1st adapter Maximum value When "maximum value reset request" is set from OFF SM6386, SM6426 reset request to ON, the maximum value is updated to "digital operation value".
  • Page 794 Connection Name Description Compatible CPU module CH1, CH2, order FX5S FX5UJ FX5U/ CH3, CH4 FX5UC    SM6312, SM6352, 1st adapter Warning output This flag monitors the lower limit value warning in the SM6392, SM6432 lower limit value warning output. flag Target:FX5-4A-ADP (CH3, CH4), FX5-4DA-ADP SM6672, SM6712,...
  • Page 795 Connection Name Description Compatible CPU module CH1, CH2, order FX5S FX5UJ FX5U/ CH3, CH4 FX5UC    SM6318, SM6358, 1st adapter Disconnection This flag monitors the disconnection detection. SM6398, SM6438 detection flag Target:FX5-4AD-PT-ADP, FX5-4AD-TC-ADP SM6678, SM6718, 2nd adapter SM6758, SM6798 SM7038, SM7078, 3rd adapter SM7118, SM7158...
  • Page 796 Connection Name Description Compatible CPU module CH1, CH2, order FX5S FX5UJ FX5U/ CH3, CH4 FX5UC    SM6325, SM6365, 1st adapter Deviation detection This flag monitors the deviation detection flag between SM6405, SM6445 flag between channel. channel SM6685, SM6725, 2nd adapter SM6765, SM6805 SM7045, SM7085,...
  • Page 797 Connection Name Description Compatible CPU module CH1, CH2, order FX5S FX5UJ FX5U/ CH3, CH4 FX5UC    SM6337, SM6377, 1st adapter D/A conversion A D/A conversion alarm clear request is performed. SM6417, SM6457 alarm clear request OFF: With no D/A conversion alarm clear request ON: With D/A conversion alarm clear request SM6697, SM6737, 2nd adapter...
  • Page 798 Connection Name Description Compatible CPU module CH1, CH2, order FX5S FX5UJ FX5U/ CH3, CH4 FX5UC    SM6339, SM6379, 1st adapter A/D conversion "A/D conversion error flag" turns on when an error SM6419, SM6459 error flag occurs. OFF: Normal SM6699, SM6739, 2nd adapter ON: A/D conversion error occur...
  • Page 799 Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC    SM8007 Momentary power failure OFF: No momentary power failure ON: Momentary power failure detected SM8008 Power failure detected OFF: No momentary power failure    ON: During momentary power failure ...
  • Page 800 Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC    SM8043 STL: Zero return complete Set this in the last state of zero return mode SM8044 STL: Zero point condition Set this when machine zero return is detected ...
  • Page 801 Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC    SM8184 Data communication error (Slave station No.1 to OFF: No error No.7) ON: Error SM8190    SM8191 Data communication in execution OFF: Data communication in nonexecution ON: Data communication in execution ...
  • Page 802 Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC    SM8493 IP address storage area write completed • It turns on, if the write to the IP address storage area is completed. Moreover, it turns on also at the time of the write-in failure. •...
  • Page 803 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 804 Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC    SM8812, SM8822, Timeout (CH2 to CH4) OFF: No timeout SM8832 ON: Timeout    SM8861 Host station No. setting SD latch enabled OFF: Latch disabled (CH1) ON: Latch enabled ...
  • Page 805 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 806 Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC    SD81 to Detailed information 1 • Detailed information 1 corresponding to the error code (SD0) is stored. SD111 • There are six types of information to be stored as shown in the following figures.
  • Page 807 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 808 Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC    SD113 Detailed information 2 • Detailed information 2 corresponding to the error code (SD0) is stored. • There are four types of information to be stored as shown in the SD143 following figures.
  • Page 809 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.
  • Page 810 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.
  • Page 811 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). SD519 Initial scan time (s) ...
  • Page 812 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) ...
  • Page 813 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)
  • Page 814 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. ...
  • Page 815 Data backup/restoration function The special registers for data backup/restoration function are shown below. Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC SD1350 Number of uncompleted folders/files of CPU This register indicates the number of folders/files    module data backup/restoration where the backup/restoration of the CPU module is not completed.
  • Page 816 Memory dump function The special registers for memory dump function are shown below. Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC    SD1472 Memory dump error cause The cause of the error that occurred during the memory dump function is stored. 0: No error Other than 0: Error code Real-time monitor function...
  • Page 817 Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC    SD1540 Data link status for each station The data link status of each station is stored using the following bit pattern. (Off: Normally operating station , On: Faulty station) The numbers in the figure indicate station numbers.
  • Page 818 Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC    SD11128 Diagnostic information status After the END instruction of the scan where the bit 0 of 'Diagnostic flag information display request' (SD11126) is turned off and on is executed, the status (valid or invalid) of diagnostic information (Diagnostic information 1, Diagnostic information 2) of the remote station specified in 'Diagnostic request information' (SD11127) is...
  • Page 819 Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC    SD11144 Diagnostic information 2 When Diagnostic information 2 is valid (1 is stored in b8 to b15 of SD11128), the manufacturer code, model code, device version, SD11153 module information, error code, and detailed module information are stored.
  • Page 820 FX dedicated The special registers dedicated to FX are shown below. Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC    SD4110 to SD4125 Self-diagnostic error code 1 to 16 This register stores the self-diagnosis error code details details.
  • Page 821 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 822 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 823 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 824 Name Description Default Compatible CPU module FX5S FX5UJ FX5U/ FX5UC    SD5024, SD5044, Pulse width measurement latest value This register stores the 00000000H SD5064, SD5084 [Low-order] pulse width measurement (CH1 to CH4) latest value. SD5025, SD5045, Pulse width measurement latest value SD5065, SD5085 [High-order] (CH1 to CH4)
  • Page 825 Name Description Default Compatible CPU module FX5S FX5UJ FX5U/ FX5UC    SD5106, SD5126, Pulse width measurement maximum value This register stores the 00000000H SD5146, SD5166, [Low-order] pulse width measurement SD5186, SD5206, (CH5 to CH12) maximum value. SD5226, SD5246 SD5107, SD5127, Pulse width measurement maximum value SD5147, SD5167,...
  • Page 826 Name Description Default Compatible CPU module FX5S FX5UJ FX5U/ FX5UC    SD5306, SD5322, PWM pulse output number current value This register stores the SD5338, SD5354 [Low-order] PWM pulse output number (CH1 to CH4) current value. SD5307, SD5323, PWM pulse output number current value SD5339, SD5355 [High-order] (CH1 to CH4)
  • Page 827 Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC    SD5516, SD5556, Positioning maximum speed [Low-order] This register stores the maximum speed of SD5596, SD5636 (Axis 1 to Axis 4) positioning. SD5517, SD5557, Positioning maximum speed [High-order] SD5597, SD5637 (Axis 1 to Axis 4) ...
  • Page 828 Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC    SD5668, SD5708, Composite speed (user unit) [Low-order] This register stores the current speed SD5748, SD5788, (Axis 5 to Axis 12) (composite speed) of positioning. SD5828, SD5868, SD5908, SD5948 SD5669, SD5709, Composite speed (user unit) [High-order] SD5749, SD5789,...
  • Page 829 Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC    SD5690, SD5730, Positioning zero-point address [Low-order] This register stores the zero-point address of SD5770, SD5810, (Axis 5 to Axis 12) positioning. SD5850, SD5890, SD5930, SD5970 SD5691, SD5731, Positioning zero-point address [High-order] SD5771, SD5811, (Axis 5 to Axis 12) SD5851, SD5891,...
  • Page 830 Name Description Compatible CPU module CH1, CH2 FX5S FX5UJ FX5U/ FX5UC    SD6191 Warning output upper limit value This register stores the warning output upper limit value.    SD6192 Warning output lower limit value This register stores the warning output lower limit value.
  • Page 831 Special Connection Name Description Compatible CPU module registers order FX5S FX5UJ FX5U/ CH1, CH2, FX5UC CH3, CH4    SD6301, SD6341, 1st adapter Digital operation The digital operation value operated by the scaling SD6381, SD6421 value function, shift function, and digital clipping function is stored.
  • Page 832 Special Connection Name Description Compatible CPU module registers order FX5S FX5UJ FX5U/ CH1, CH2, FX5UC CH3, CH4    SD6305, SD6345, 1st adapter Input range setting Set the input range. SD6385, SD6425 Target:FX5-4A-ADP (CH1, CH2), FX5-4AD-ADP SD6665, SD6705, 2nd adapter SD6745, SD6785 SD7025, SD7065, 3rd adapter...
  • Page 833 Special Connection Name Description Compatible CPU module registers order FX5S FX5UJ FX5U/ CH1, CH2, FX5UC CH3, CH4    SD6309, SD6349, 1st adapter Scaling lower limit Set the lower limit value of the scaling conversion SD6389, SD6429 value range. SD6669, SD6709, 2nd adapter SD6749, SD6789...
  • Page 834 Special Connection Name Description Compatible CPU module registers order FX5S FX5UJ FX5U/ CH1, CH2, FX5UC CH3, CH4    SD6313, SD6353, 1st adapter Process alarm lower Set the lower upper limit value of warning output SD6393, SD6433 upper limit value function (process alarm).
  • Page 835 Special Connection Name Description Compatible CPU module registers order FX5S FX5UJ FX5U/ CH1, CH2, FX5UC CH3, CH4    SD6322, SD6362, 1st adapter Convergence Set the upper limit of the digital output value used in SD6402, SD6442 detection upper limit the convergence detection function.
  • Page 836 Special Connection Name Description Compatible CPU module registers order FX5S FX5UJ FX5U/ CH1, CH2, FX5UC CH3, CH4    SD6328, SD6368, 1st adapter CH setting 1 for Set the channels whose deviation will be checked in SD6408, SD6448 deviation detection the 1st and 2nd FX5-4A-ADP, or FX5-4AD-ADP between channel used in the deviation detection between channel...
  • Page 837 Special Connection Name Description Compatible CPU module registers order FX5S FX5UJ FX5U/ CH1, CH2, FX5UC CH3, CH4    SD6331, SD6371, 1st adapter Resistance offset The resistance offset value calculated based on the SD6411, SD6451 value (H) "offset temperature setting value" and "setting RTD type"...
  • Page 838 Special Connection Name Description Compatible CPU module registers order FX5S FX5UJ FX5U/ CH1, CH2, FX5UC CH3, CH4    SD6333, SD6373, 1st adapter Resistance gain The resistance gain value calculated based on the SD6413, SD6453 value (H) "gain temperature setting value" and "setting RTD type"...
  • Page 839 Special Connection Name Description Compatible CPU module registers order FX5S FX5UJ FX5U/ CH1, CH2, FX5UC CH3, CH4    SD6337, SD6377, 1st adapter Input gain value (H) Set the gain value used in the offset/gain setting SD6417, SD6457 function. SD6697, SD6737, 2nd adapter SD6777, SD6817...
  • Page 840 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 Programmable controller type and This register stores the programmable controller system version type and system version.
  • Page 841 Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC    SD8166 Module error occurrence conditions b0: No error (Module connection position 1 to 15) b1: Module connection No.1 b2: Module connection No.2 b3: Module connection No.3 b4: Module connection No.4 b5: Module connection No.5 b6: Module connection No.6 b7: Module connection No.7...
  • Page 842 Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC    SD8405, SD8425 RS2 communication parameter display These registers store the communication (CH1, CH2)/MODBUS communication parameter display (CH1, CH2)/MODBUS format display (CH1, CH2) communication format display (CH1, CH2).  ...
  • Page 843 Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC    SD8564 Receive sum (received result) (CH1) This register stores the receive sum (received result) (CH1). SD8565 Send sum (CH1) This register stores the send sum (CH1).   ...
  • Page 844 Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC    SD8865 Number of retries (CH1) This register stores the number of retries during timeout (CH1).    SD8871, SD8881, Host station number (CH2 to CH4) These registers store the host station number SD8891 (CH2 to CH4).
  • Page 845 Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC    SD9122 Predefined protocol setting data error When a protocol setting data error was detected, information: Packet No. information to identify the error position is stored. 0: Send packet 1 to 16: Receive packet 65535: Specification not allowed ...
  • Page 846 Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC    SD9230 Send/receive data monitoring function The setting (CH1) of the send/receive data setting (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 847 Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC    SD10064 Default gateway IP address [Low- This register stores the default gateway IP order] address. SD10065 Default gateway IP address [High- order]    SD10074 Local node MAC address This register stores the local node MAC address (5 and 6 bytes).
  • Page 848 Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC    SD10292 Time setting function execution time The month which the time setting function is (Month) executed is stored in a binary code. When the communication fails, this device is not updated.
  • Page 849 Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC    SD10350 Request to start communication Request contact to start data communication when the communication setting for the simple CPU communication is "Request" [b0] to [b15]: Setting No.1 to Setting No.16 0 to 1: Requested (start request) To make start request again, first stop the request and then make start request.
  • Page 850 Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC    SD10380 to SD10395 Simple CPU communication status The simple CPU communication status is stored. 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 851 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 852 Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC    SD10740 Connection No.1 protocol execution Stores the status of the protocol being executed status at connection No.1. 0: Unexecuted 1: Waiting for transmission 2: Sending 3: Waiting for data reception 4: Receiving 5: Execution completed SD10742 to SD10757...
  • Page 853 Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC    SD10799 Connection No.3 protocol Cancels the protocol executed in connection cancellation specification No.3. 0: No cancellation instruction 1: Cancel request 2: Cancellation completed    SD10800 Connection No.4 protocol execution Stores the status of the protocol being executed status at connection No.4.
  • Page 854 Name Description Compatible CPU module FX5S FX5UJ FX5U/ FX5UC    SD10858 Connection No.6 protocol execution Stores the number of protocol executions in count connection No.6. 0: Protocol not executed 1 to 65535: Number of executions    SD10859 Connection No.6 protocol Cancels the protocol executed in connection...
  • Page 855 The error code can be checked in either of the following ways. • Module diagnostics of the engineering tool (MELSEC iQ-F FX5S/FX5UJ/FX5U/FX5UC User's Manual (Hardware)) This section describes errors that may occur in the CPU module and actions to be taken for the errors.
  • Page 856 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.
  • Page 857 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 858 Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 1134H • A TCP ULP timeout error has Continue • Check the operation of the external device.  Always connection occurred in the TCP/IP • Review the TCP ULP timeout value for the timeout communication.
  • Page 859 Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 1FE1H Module • The module position specified Continue/ • Make sure that the parameters are System At power-on, configuration in the I/O assignment setting stop consistent with the connections.
  • Page 860 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 • Use up to 2 communication adapters. configuration at RESET error...
  • Page 861 Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 20E0H Invalid module • An unsupported module was Stop • Verify that the firmware version of the CPU System At power-on, detection detected. module is compatible with the module configuration at RESET where the error was detected.
  • Page 862 Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 2226H Parameter • The SFC settings in the CPU Stop • Check the detailed information (parameter Parameter At power-on, error parameter is incorrect. (Block information) in the module diagnosis of the information at RESET, at STOP ...
  • Page 863 RESET error possible cause is a hardware failure of the information CPU module or intelligent function module where the error has been detected. Consult with your local Mitsubishi Electric representative. APPX Appendix 3 Error Code...
  • Page 864 Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 2500H WDT error • The initial scan time exceeded Stop • Recheck the set value of execution monitor Time Always the set value of execution time or program.
  • Page 865 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 866 Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 3015H Data • A folder with a value that Stop • Check and correct the restoration target CPU module At power-on, restoration matches the restoration target date folder setting value or number folder data backup/ at RESET...
  • Page 867 Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 3046H Update error • The update file (HVF Stop • Replace the update file with the correct file Drive/file At power-on, extension) is not found. (HVF extension), and execute the update information at RESET...
  • Page 868 Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 3056H System bus • A timeout occurred during Continue • Verify that extension cables are correctly Error location At instruction error communication with a connected. information execution connected module when an...
  • Page 869 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 870 If the same error code is displayed again, the possible cause is a hardware SFC program failure of the CPU module. Please contact execution your nearest Mitsubishi Electric System Service Co., Ltd., or our branch or distributor. 3190H, SFC Program •...
  • Page 871 Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 31A1H SFC program • A non-existent SFC program Stop • Check the detailed information (error Error location At instruction block, step block was specified. location information) of the error by information execution, at specification...
  • Page 872 Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 3202H Program • The program file is invalid or Stop • Write the correct program file. Drive/file At power-on, execution error the file does not contain a •...
  • Page 873 Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 3362H Nesting depth • The number of nesting levels Continue/ • Make sure that the number of nesting Error location At END error of DI instructions is invalid. stop levels is 16 or lower.
  • Page 874 Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 33E6H Program • An instruction or interrupt Stop • Modify the program so that instruction or Error location At power-on, structure error pointer that cannot be used in pointer use becomes correct.
  • Page 875 Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 3421H Operation error • When writing data to the data Continue/ • Check if the SP.DEVST instruction is used Error location At instruction memory by using the stop correctly.
  • Page 876 Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 350CH Operation error • The variation of measured Continue/ • The operation is continued with the Error location At instruction value is greater than the stop maximum or minimum value.
  • Page 877 Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 351AH Operation error • The auto tuning time is longer Continue/ • Increase the difference (ULV - LLV) Error location At instruction than necessary. stop between the upper limit and lower limit of information execution...
  • Page 878 Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 3587H Operation error • An error was found in the data Continue/ • Re-create the file. Error location At instruction of the file. stop • Check that the SD memory card is information execution •...
  • Page 879 Error Error name Error details and cause Stop/ Action Detailed Diagnostic code continue information timing 3651H Axes 1 to 12 • When pulses were being Continue/ • Eliminate the error that has caused the stop Error location At END error stop output or positioning was stop and restart the positioning.
  • Page 880 At power-on, failure detected. If the same error appears, the hardware of at RESET the CPU module may be malfunctioning. Consult your local Mitsubishi Electric representative. 3C02H Hardware • A hardware failure was Stop • Reset the CPU module and perform RUN.
  • Page 881 Initialize the memory and then at RESET rewrite the project. If the same error is displayed again, there may be a hardware failure in the CPU module. Consult your local Mitsubishi Electric representative. 3C2FH Memory error • A memory error was detected. Stop •...
  • Page 882 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 883 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 884 Error Error name Error details and cause Action code 40B1H SFC file related • The SFC program specified with the SFC program file • Check and correct the specified file name. error operation does not exist. 40B2H SFC file related •...
  • Page 885 Error Error name Error details and cause Action code 4181H CPU module built-in • Transmission to the receiving modules is unsuccessful. • 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 886 Error Error name Error details and cause Action code 41FBH Online module • The specified file is already being processed by the • Execute again after the currently performed operation is change related error engineering tool. completed. 41FEH File related error •...
  • Page 887 Error Error name Error details and cause Action code 4283H Data logging • An attempt was made to register trigger logging in a state • Check and correct the internal buffer capacity setting. function error that the specified number of records before trigger has •...
  • Page 888 Error Error name Error details and cause Action code 4A00H Network error • Access to the specified station cannot be made since the • Set to the related stations the routing parameters for routing parameters are not set to the start source CPU access to the specified station.
  • Page 889 Error Error name Error details and cause Action code 4C0BH File transfer error • A data logging file that is being transferred is deleted. • Check and correct the number of files to be saved in the • Reading from (an access to) a data logging file is failed. file switching setting.
  • Page 890 Error Error name Error details and cause Action code 4C19H CPU module • The data restoration function was executed with backup • The backup data may have been corrupted. Execute the backup/restoration files ($BKUP_CPU_INF.BSC and BKUP_CPU.BKD) not data restoration function using another backup data. function error structured properly.
  • Page 891 Error Error name Error details and cause Action code 4D41H Firmware update • Access to the module to be updated has failed. • Check the module to be updated for any hardware failure function error (Via • The firmware cannot be updated on the target module. and perform the firmware update again.
  • Page 892 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 893 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 894 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 895 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 896 Error codes of the analog function (0000H to 3084H) The following table lists the error codes that may be stored. : Indicates the channel number where the error occurred. The square represents a number between 1 and 4, which corresponds to the channel numbers from CH1 to CH4. (CH1: 1, CH2: 2, CH3: 3, CH4: 4) For the CPU module built-in analog function •...
  • Page 897 Hardware error of analog ADP was detected. After resetting the CPU module, carry out RUN. If the same error is displayed again, there is a possibility of hardware error of the analog ADP. Consult the nearest Mitsubishi Electric representative. APPX Appendix 3 Error Code...
  • Page 898 After resetting the CPU module, carry out RUN. If the same error is displayed again, there is a possibility of analog ADP hardware failure. Consult the nearest Mitsubishi Electric representative. 3083H Analog ADP Memory Error An error was detected in offset/gain setting data of the After offset/gain initialization of the analog ADP is analog ADP.
  • Page 899 After resetting the CPU module, carry out RUN. If the same error is displayed again, there is a possibility of hardware error of the analog ADP. Consult the nearest Mitsubishi Electric representative. 3081H Analog ADP Power failure The power is not supplied to the analog ADP normally.
  • Page 900 After resetting the CPU module, carry out RUN. If the same error is displayed again, there is a possibility of analog ADP hardware failure. Consult the nearest Mitsubishi Electric representative. 3083H Analog ADP Memory Error An error was detected in offset/gain setting data of the After offset/gain initialization of the analog ADP is analog ADP.
  • Page 901 Appendix 4 Alarm Code The following table shows the list of the alarm codes stored. : Indicates the channel number where the error occurred. The square represents a number between 1 and 4, which corresponds to the channel numbers from CH1 to CH4. (CH1: 1, CH2: 2, CH3: 3, CH4: 4) For the CPU module built-in analog function •...
  • Page 902 Alarm code Alarm name Description and cause Action 0E0H Range change alarm during The range was changed during offset/gain writing or Wait until offset/gain writing or offset/gain offset/gain writing or offset/gain offset/gain initialization. initialization is finished, and then change the initialization range.
  • Page 903 Alarm code Alarm name Description and cause Action 0E0H RTD type change alarm during The RTD type was changed during offset/gain writing Wait until offset/gain writing or offset/gain offset/gain writing or offset/gain or offset/gain initialization. initialization is finished, and then change the initialization RTD type.
  • Page 904 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 0200H ...
  • Page 905 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 906 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 907 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 908 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 909 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 910 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 911 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 912 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.
  • Page 913 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...
  • Page 914 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. (...
  • Page 915 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, ...
  • Page 916 Appendix 7 Processing Time Each of the processing time that constitutes the scan time is as follows. SFC program processing time This section describes the time required for SFC program processing. For details on the SFC program, refer to the following. MELSEC iQ-F FX5 Programming Manual (Program Design) SFC program processing performance The SFC program execution time can be calculated with the following formula.
  • Page 917 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...
  • Page 918 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 919 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) •...
  • Page 920 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 150 Procedure for Using Operating environment For details on the operating environment for CPU Module Logging Configuration Tool, refer to following manual which is...
  • Page 921 Communication route To connect the CPU module to a personal computer, use the following methods. (Page 925 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.
  • Page 922 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 921 Menu structure  Tool bar The tool icons are displayed. ...
  • Page 923 Page 918 Help Open Manual E-Manual Viewer opens and its manual is displayed. Page 932 Connection to MITSUBISHI The Mitsubishi Electric Corporation FA website is displayed. Page 932 ELECTRIC FA Global Website About Configuration tool The product information is displayed.
  • Page 924 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 925 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 926 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 927 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 928 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 929 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 930 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 931 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 932 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 933 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.
  • Page 934 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 935 Collection The following window configures the collection interval and/or collection start conditions ( Page 165 Data collection conditions) Window Displayed items Item Description Setting range Default   Each scanning cycle Select this item to collect scan data obtained for each scan operation.
  • Page 936 Displayed items Item Description Setting range Default In this column, the data setting numbers from 001 to   128 are displayed. Page 168 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 937 Trigger The following window specifies the trigger condition when the trigger logging is selected ( Page 168 Trigger condition) Window Displayed items Item Description Setting range Default Page 169 Condition specification Condition specification Configure the trigger condition based on the device Checked data condition.
  • Page 938 Output The following window specifies the items to be output into the file. ( Page 169 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 939 Save The following window configures the target storage for data logging file and switching timing of storage files. ( Page 177 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 940 *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 941 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.] Total Size of Output Logging Files View the total capacity of the data logging file which is ...
  • Page 942 Data Logging File Transfer Status The following window is used to check the file transfer status of data logging files. Operating procedure The file transfer status can be checked on the "Data Logging File Transfer Status" window. [Online][Data Logging File Transfer Status] Window Displayed items Item...
  • Page 943 File Transfer Error Log The following window displays the error history of the data logging file transfer function. Up to 20 errors are displayed. When the number of errors exceeds 20, records are deleted in order from the oldest one. The error history is cleared after the power is off and on or the reset operation is performed.
  • Page 944 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 945 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. ...
  • Page 946 Page 343 Input assignment Page 348 Assignment of output numbers For details of the I/O module, refer to the following manuals. MELSEC iQ-F FX5S/FX5UJ/FX5U/FX5UC User's Manual (Hardware) For details of the servo amplifier, refer to the manual for each servo amplifier. APPX...
  • Page 947 MELSERVO-J5, MELSERVO-J4, MELSERVO-J3 series FX5S CPU module PULSE/SIGN mode MR-J5…A/ FX5S-30MT/ES 100V to 240V AC MR-J4…A/ MR-J3…A series 24 V DC servo amplifier DICOM DICOM Class-D DOCOM grounding Zero speed Positioning completed(INP) Torque being controlled Photocoupler Servo error(ALM) Immediate stop command OPR command JOG(+)command JOG(-)command...
  • Page 948 CW/CCW mode MR-J5…A/ FX5S-30MT/ES 100V to 240V AC MR-J4…A/ MR-J3…A series servo amplifier 24 V DC DICOM DICOM Class-D DOCOM 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 positioning command...
  • Page 949 Precautions • Use a CPU module and I/O module with transistor output. • Be sure to use the class-D grounding method (grounding resistance: 100  or less). • 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 950 FX5UJ CPU module PULSE/SIGN mode MR-J5…A/ FX5UJ-24MT/ES 100V to 240V AC MR-J4…A/ MR-J3…A series servo amplifier 24 V DC DICOM DICOM Class-D grounding DOCOM Zero speed Positioning completed(INP) Torque being controlled Photocoupler Servo error(ALM) Zero signal (PG0) Servo ON Reset Servo ready (RD) Pulse train...
  • Page 951 Precautions • Use a CPU module and I/O module with transistor output. • Be sure to use the class-D grounding method (grounding resistance: 100  or less). • 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 952 FX5U CPU module PULSE/SIGN mode MR-J5…A/ FX5U-32MT/ES 100V to 240V AC MR-J4…A/ MR-J3…A series servo amplifier 24 V DC DICOM Class-D DICOM grounding DOCOM Zero speed Positioning completed(INP) Torque being controlled Photocoupler Servo error(ALM) Zero signal (PG0) Servo ON Reset Servo ready (RD) Forward rotation...
  • Page 953 CW/CCW mode MR-J5…A/ FX5U-32MT/ES 100V to 240V AC MR-J4…A/ MR-J3…A series servo amplifier 24 V DC DICOM DICOM Class-D DOCOM grounding Zero speed Positioning completed(INP) Torque being controlled Photocoupler Servo error(ALM) Zero signal (PG0) Servo ON Reset Servo ready (RD) DOCOM 46 Forward rotation limit 2...
  • Page 954 Precautions • Use a CPU module and I/O module with transistor output. • Be sure to use the class-D grounding method (grounding resistance: 100  or less). • 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 955 FX5UC CPU module PULSE/SIGN mode MR-J5…A/ FX5UC-32MT/D MR-J4…A/ MR-J3…A series 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 COM0 Forward rotation Pulse train limit 2...
  • Page 956 CW/CCW mode MR-J5…A/ FX5UC-32MT/D MR-J4…A/ MR-J3…A series servo amplifier DICOM 24 V DC DOCOM DICOM Class-D Zero speed grounding Photocoupler Positioning completed(INP) Zero signal (PG0) Torque being controlled Servo error(ALM) Servo ready (RD) Servo ON DOCOM 46 Reset COM0 Forward rotation Forward rotation pulse train limit 2...
  • Page 957 Precautions • Use a CPU module and I/O module with transistor output. • Be sure to use the class-D grounding method (grounding resistance: 100  or less). • 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 958 High-speed pulse input/output module PULSE/SIGN mode MR-J5…A/ FX5U-32MT/ES 100V to 240V AC MR-J4…A/ MR-J3…A series servo amplifier 24 V DC DICOM Class-D DICOM grounding DOCOM Zero speed Positioning completed(INP) Torque being controlled Photocoupler Servo error(ALM) Servo ON FX5-16ET/ES-H Reset Servo ready (RD) Photocoupler Forward rotation...
  • Page 959 CW/CCW mode MR-J5…A/ FX5U-32MT/ES 100V to 240V AC MR-J4…A/ MR-J3…A series servo amplifier 24 V DC DICOM DICOM Class-D grounding DOCOM Zero speed Positioning completed(INP) Torque being controlled Photocoupler Servo error(ALM) Servo ON FX5-16ET/ES-H Reset Servo ready (RD) Photocoupler DOCOM Forward rotation limit 2 Zero signal (PG0)
  • Page 960 Precautions • Use a CPU module and I/O module with transistor output. • Be sure to use the class-D grounding method (grounding resistance: 100  or less). • 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 961 MELSERVO-JN series FX5S CPU module PULSE/SIGN mode 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 962 CW/CCW mode 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) Stop command Near-point signal (DOG)
  • Page 963 FX5UJ CPU module PULSE/SIGN mode MR-JN…A 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 rotation Pulse train COM0 limit 2...
  • Page 964 FX5U CPU module PULSE/SIGN mode MR-JN…A 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...
  • Page 965 CW/CCW mode MR-JN…A 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 rotation Forward rotation limit 2...
  • Page 966 FX5UC CPU module PULSE/SIGN mode MR-JN…A series FX5UC-32MT/D servo amplifier DICOM 24 V DC DOCOM DICOM Class-D grounding Photocoupler Positioning completed(INP) Zero signal (PG0) Servo error(ALM) Servo ready (RD) Servo ON Reset Emergency stop COM0 Forward rotation Pulse train limit 2 DOCOM COM0 Reverse rotation...
  • Page 967 CW/CCW mode MR-JN…A series FX5UC-32MT/D servo amplifier DICOM 24 V DC DOCOM DICOM Class-D grounding Photocoupler Positioning completed(INP) Zero signal (PG0) Servo error(ALM) Servo ready (RD) DOCOM 13 Servo ON Reset Emergency stop COM0 Forward rotation Forward rotation pulse train limit 2 COM0 Reverse rotation...
  • Page 968 High-speed pulse input/output module PULSE/SIGN mode MR-JN…A 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...
  • Page 969 CW/CCW mode MR-JN…A 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 (RD) Photocoupler DOCOM Forward rotation limit 2 Zero signal (PG0) Reverse rotation limit 2 DOCOM...
  • Page 970 Precautions • Use a CPU module and I/O module with transistor output. • Be sure to use the class-D grounding method (grounding resistance: 100  or less). • 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 971 Appendix 10 Substitute Functions File registers To use a file register of the FX3 programmable controller, use functions of the FX5 programmable controller. 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 programmable controller is OFFON or the programmable controller is STOPRUN.
  • Page 972 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.
  • Page 973 The firmware version can be confirmed with module diagnosis (CPU diagnosis). Refer to the following manuals for details on diagnosing the module (CPU diagnosis). MELSEC iQ-F FX5S/FX5UJ/FX5U/FX5UC User's Manual (Hardware) Refer to the GX Works3 Operating Manual for details on the software version.
  • Page 974 Add/Change Function Supported CPU module Supported engineering tool Reference firmware version software version Unicode character string to Shift JIS "1.030" or later "1.085P" or later MELSEC iQ-F FX5 Programming character string convert instruction is Manual (Instructions, Standard supported. Functions/Function Blocks) Shift JIS character string to Unicode "1.030"...
  • Page 975 "1.065" or later Page 126 SM9353 Expanding the number of input/output "1.100" or later "1.047Z" or later MELSEC iQ-F FX5S/FX5UJ/FX5U/ points to 384 points. FX5UC User's Manual (Hardware) Removing the limitation on the "1.100" or later "1.047Z" or later MELSEC iQ-F FX5S/FX5UJ/FX5U/ number of remote I/O points.
  • Page 976 Master Module User's Manual Expanding the number of remote I/O "1.110" or later "1.050C" or later MELSEC iQ-F FX5S/FX5UJ/FX5U/ station of CC-Link IE field network FX5UC User's Manual (Hardware) Basic from 6 to 16 stations. 1C frame of MC protocol "1.110"...
  • Page 977 Add/Change Function Supported CPU module Supported engineering tool Reference firmware version software version File operation instructions is "1.240" or later "1.075D" or later MELSEC iQ-F FX5 Programming supported. Manual (Instructions, Standard Functions/Function Blocks) Unicode string data transfer "1.240" or later "1.075D"...
  • Page 978 • To update the firmware of the FX5U/FX5UC CPU module to version "1.100" or later, use the CPU module with serial No. as follows. - FX5UC-32MT/DS-TS and FX5UC-32MT/DSS-TS: Serial No.178**** - FX5U/FX5UC CPU module other than the above: Serial No.17X**** •...
  • Page 979 INDEX ......169 0 to 9 Data logging file ......46 Data memory 1 speed positioning (absolute address specification) .
  • Page 980 ..... . .202 Memory dump file ....197 Memory dump function .
  • Page 981 ..... . 145 Remote password ..... . . 120 Remote PAUSE .
  • Page 982 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 983 Revision date Revision Description Added functions May 2020 Data logging function (CSV file output format) Added or modified parts RELEVANT MANUALS, TERMS, Section 3.2, Chapter 4, Section 10.2, Chapter 13, 20, Section 24.1, 24.2, 26.6, Appendix 1, 2, 3, 4, 6, 7, 9, TRADEMARKS Added or modified parts August 2020 SAFETY PRECAUTIONS, WARRANTY...
  • Page 984 Japanese manual number: JY997D54301AB 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.
  • Page 985 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...
  • Page 986 INFORMATION AND SERVICES For further information and services, please contact your local Mitsubishi Electric sales office or representative. Visit our website to find our locations worldwide. MITSUBISHI ELECTRIC Factory Automation Global Website Locations Worldwide www.MitsubishiElectric.com/fa/about-us/overseas/ TRADEMARKS Microsoft, Excel, Windows, Windows Vista, and Windows XP are trademarks of the Microsoft group of companies.
  • Page 988 Manual number: JY997D55401AD 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.