Mitsubishi Electric MELSEC iQ-F FX5 User Manual

Mitsubishi Electric MELSEC iQ-F FX5 User Manual

Hide thumbs Also See for MELSEC iQ-F FX5:
Table of Contents

Advertisement

MELSEC iQ-F
FX5 User's Manual (Application)
Industrial automation
Elincom Group
European Union: www.elinco.eu
Russia: www.elinc.ru

Advertisement

Table of Contents
loading

Summary of Contents for Mitsubishi Electric MELSEC iQ-F FX5

  • Page 1 Industrial automation Elincom Group European Union: www.elinco.eu Russia: www.elinc.ru MELSEC iQ-F FX5 User's Manual (Application)
  • Page 3: Safety Precautions

    SAFETY PRECAUTIONS (Read these precautions before use.) Before using this product, please read this manual and the relevant manuals introduced in this manual carefully and pay full attention to safety in order to handle the product correctly. This manual classifies the safety precautions into two categories: [ WARNING] and [ CAUTION].
  • Page 4 [DESIGN PRECAUTIONS] CAUTION ● After the CPU module is powered on or is reset, the time taken to enter the RUN status varies depending on the system configuration, parameter settings, and/or program size. Design circuits so that the entire system will always operate safely, regardless of this variation in time. [INSTALLATION PRECAUTIONS] CAUTION ●...
  • Page 5 [STARTUP AND MAINTENANCE PRECAUTIONS] WARNING ● Do not touch any terminal while the PLC's power is on. Doing so may cause electric shock or malfunctions. ● Before modifying the program in operation, forcible output, running or stopping the PLC, read through this manual carefully, and ensure complete safety.
  • Page 6: Introduction

    • 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 7 MEMO...
  • Page 8: Table Of Contents

    CONTENTS SAFETY PRECAUTIONS ..............1 INTRODUCTION .
  • Page 9 CHAPTER 6 CLOCK FUNCTION Time Setting ................46 Clock data .
  • Page 10 CHAPTER 10 CONSTANT SCAN 10.1 Constant scan settings ..............84 CHAPTER 11 REMOTE OPERATION 11.1 Remote RUN/STOP .
  • Page 11 CHAPTER 18 SECURITY FUNCTIONS CHAPTER 19 HIGH-SPEED INPUT/OUTPUT FUNCTION 19.1 High-speed Counter Function ............114 High-speed counter function overview .
  • Page 12 FX3-compatible pulse catch function execution procedure ........212 FX3-compatible pulse catch parameters .
  • Page 13 21.5 Index Registers (Z/LZ)..............244 Types of index registers.
  • Page 14: Relevant Manuals

    Describes N:N network, MELSEC Communication protocol, inverter communication, <JY997D55901> non-protocol communication, and predefined protocol support. MELSEC iQ-F FX5 User's Manual (MELSEC Communication Protocol) Explains methods for the device that is communicating with the CPU module by MC <JY997D60801> protocol to read and write the data of the CPU module.
  • Page 15 Terms Description Extension module (extension connector type) Generic term for Input modules (extension connector type), Output modules (extension connector type), Input/output modules, Extension power supply module (extension connector type), Connector conversion module(extension connector type), and Bus conversion module (extension connector type) I/O module Generic term for input modules, output modules, Input/output modules, powered input/output modules, and high-speed pulse input/output modules...
  • Page 16 MEMO...
  • Page 17: Part 1 Programming

    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...
  • Page 18: Chapter 1 Program Execution

    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 19: I/O Refresh

    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 20: Scan Time

    Scan Time The CPU module repeats the following processing. The scan time is the sum total of each process and execution time. RUN time RUN time initialization processing*1 I/O refresh Program operations Scan time END processing *1 This process is included in the initial scan time. Initial scan time This refers to the initial scan time when the CPU module is in the RUN mode.
  • Page 21: Program Execution Sequence

    Program Execution Sequence When the CPU module enters the RUN status, the programs are executed successively according to the execution type of the programs and execution order setting. STOP/PAUSE→RUN Does an initial Exists execution type program exist? Does not exist Standby type Initial execution program...
  • Page 22: Execution Type Of Program

    Execution Type of Program Set the program execution conditions. Initial execution type program This program type is executed only once when the CPU module changes from the STOP/PAUSE to the RUN status. This program type is used for programs, that do not need to be executed from the next scan once they are executed, like initial processing on an intelligent function module.
  • Page 23: Scan Execution Type Program

    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 24 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 25 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 26 ■Operation in the fixed scan execution mode This section describes the operation which can be performed in the fixed scan execution mode. • Execution Count Takes Priority The program is executed for all the pending number of executions so that it can be executed the same number of times as execution condition was satisfied.
  • Page 27: Event Execution Type Program

    Event execution type program Execution of this program type is triggered by a user-specified event. (Page 25 Trigger type) STOP/PAUSE→RUN 1st scan 2nd scan 3rd scan 4th scan 5th scan Execution order I60 interrupt occurs Scan execution type program A Scan execution type program B Event execution type program C (Executed when Y50 turns ON)
  • Page 28 ■Bit data ON (TRUE) When it is the turn of the corresponding program to be executed, the program is executed if the specified bit data is ON. This eliminates the need for creating a program for monitoring triggers in a separate program. STOP/PAUSE→RUN 1st scan 2nd scan...
  • Page 29 Trigger setting Use the event execution type detail setting. Navigation window  [Parameter]  [FX5UCPU]  [CPU Parameter]  "Program Setting" Operating procedure Click "Detailed Setting" on the Program Setting. "Program Setting" window Select the program name and set the execution type to "Detailed Setting"...
  • Page 30: Stand-By Type Program

    Stand-by type program This program is executed only when there is an execution request. Saving programs in library Subroutine programs or interrupt programs are saved as standby type programs so that they can be used when controlled separately from the main routine program. Multiple subroutine programs and interrupt programs can be created in one standby type program.
  • Page 31: Program Type

    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 32: Interrupt Program

    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 33 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 34 ■If an interrupt cause with the same or a lower priority occurs while the interrupt program is being executed • For I0 to I23 and I50 to I177 The occurred interrupt cause is memorized, and the interrupt program corresponding to the factor will be executed after the running interrupt program finishes.
  • Page 35 ■If the same interrupt cause occurs while the interrupt program is being executed • For I0 to I23 and I50 to I177 The interrupt cause that occured is memorized, and the interrupt program corresponding to the cause will be executed after the running interrupt program finishes.
  • Page 36 Processing at startup of interrupt program Processing is as follows when an interrupt program is started up. • Purge/restore of index registers (Z, LZ) ■Purge/restore of index registers (Z, LZ) When an interrupt program is started up, the values of the index registers (Z, LZ) in the currently executing program are purged, and those values are handed over to the interrupt program.
  • Page 37: Chapter 2 Processing Of Operations According To Cpu Module Operation Status

    PROCESSING OF OPERATIONS ACCORDING TO CPU MODULE OPERATION STATUS The CPU module has three operation statuses as follows: • RUN status • STOP status • Paused Processing of operations on the CPU module in each status is explained below. Processing of operations in RUN status In the RUN mode, operations in the sequence program are executed repeatedly in order step 0END (FEND) instructionstep 0.
  • Page 38 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 39: Chapter 3 Cpu Module Memory Configuration

    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 40 SD memory card The following files are stored in SD memory card. Category File type Max. number of files Storage area size Remarks  Program Program file 1 Mbytes  FB files 16 (Up to 15 for user) Restored information Restored information files 1 Mbytes ...
  • Page 41: Files

    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 42 MEMO 3 CPU MODULE MEMORY CONFIGURATION 3.2 Files...
  • Page 43: Part 2 Functions

    PART 2 FUNCTIONS This part consists of the following chapters. 4 FUNCTION LIST 5 SCAN MONITORING FUNCTION 6 CLOCK FUNCTION 7 ONLINE CHANGE 8 INTERRUPT FUNCTION 9 PID CONTROL FUNCTION 10 CONSTANT SCAN 11 REMOTE OPERATION 12 DEVICE/LABEL MEMORY AREA SETTING 13 INITIAL DEVICE VALUE SETTING 14 LATCH FUNCTION 15 MEMORY CARD FUNCTION...
  • Page 44: Chapter 4 Function List

    Input interrupt function output function Positioning function Executes positioning operation by using the transistor output of the MELSEC iQ-F FX5 User's CPU module or high-speed pulse input/output module. Manual (Positioning Control) PWM output function Executes a PWM output by using the transistor output of the CPU Page 216 module or high-speed pulse input/output module.
  • Page 45 Function Description Reference MODBUS RTU communication function Connection with the products which support MODBUS RTU is MELSEC iQ-F FX5 User's available. The master and slave functions can be used. Manual (MODBUS Communication) 4 FUNCTION LIST...
  • Page 46: Chapter 5 Scan Monitoring Function

    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 47: Scan Time When The Wdt Instruction Is Used

    Scan time when the WDT instruction is used Even though the watchdog timer is reset using the WDT instruction, the scan time value is not reset. The scan timer value is the value measured up to the END instruction. Internal Internal Program processing time...
  • Page 48: Chapter 6 Clock Function

    If the SD210 to SD216 clock data is out of the range SM211 Using instructions Writes the clock data to the CPU module, using the TWR(P) instruction. (MELSEC iQ-F FX5 Programming Manual (Instructions, Standard Functions/Function Blocks)) 6 CLOCK FUNCTION 6.1 Time Setting...
  • Page 49: Reading Clock Data

    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 50: Setting Time Zone

    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]  [FX5UCPU]  [CPU Parameter]  "Operation Related Setting"  "Clock Related Setting"...
  • Page 51: System Clock

    Counted number of scans for timing clock output 5 SM420 to SM424, SM8330 to SM8334, and SD8330 to SD8334 are used by the DUTY instruction. For the DUTY instruction, refer to the following. MELSEC iQ-F FX5 Programming Manual (Instructions, Standard Functions/Function Blocks) 6 CLOCK FUNCTION 6.3 System clock...
  • Page 52: Chapter 7 Online Change

    ONLINE CHANGE This chapter describes online change. Online Ladder Block Change Writes the portion edited on the ladder edit window of the engineering tool to the CPU module in increments of ladders. Edited contents spanning multiple files or multiple portions can be written to the CPU module at once. For details on the operating procedure of online ladder block change on engineering tools, refer to the following.
  • Page 53 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/DPLSV 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 54 ■Falling instruction When a falling instruction exists within the range to be changed, the falling instruction will not be executed even if the execution condition (ON to OFF) is fulfilled at completion of online program change. Online change completion (1) The falling instruction will not be executed even if the execution condition is [ PLF M0 ] OFF to OFF.
  • Page 55: Chapter 8 Interrupt Function

    INTERRUPT FUNCTION This chapter describes the interrupt function. 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 56 Interrupts with a priority equal or lower than that specified by the DI or EI instruction can be disabled or enabled even when multiple interrupts are present. For details, refer to MELSEC iQ-F FX5 Programming Manual (Instructions, Standard Functions/Function Blocks). Disabled interrupt priorities and the current interrupt priority can be checked in SD758 (Interrupt disabling for each priority setting value) and SD757 (Current interrupt priority) respectively.
  • Page 57: Chapter 9 Pid Control Function

    PID CONTROL FUNCTION Outline of Function PID control is performed by PID control instruction. The PID instruction requires the system to calculate the output (MV) value from the measured (PV) value. Through combining the P (proportional) action, I (integral) action, and D (derivative) action the target (SV) value can be obtained.
  • Page 58: How To Use Pid Instruction

    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 59: Relationship Between Parameter Setting And Auto-Tuning

    ■Precautions for using the PID instruction For the precautions for using the PID instruction, refer to the following manual. MELSEC iQ-F FX5 Programming Manual (Instructions, Standard Functions/Function Blocks) Relationship Between Parameter Setting and Auto-Tuning When auto-tuning is not executed (parameter setting) It is necessary to write the set value of the parameters (s3) to (s3)+6 using MOV instruction in advance, etc.
  • Page 60: Parameter

    Parameter Set item Description/Setting range Remarks (s3) Sampling time (TS) 1 to 32767 (ms) It cannot be shorter than operation cycle of the PLC. (s3)+1 Operation setting 0: Forward operation Operation direction (ACT) 1: Backward operation  0: Input variation alarm is invalid 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 61: Details Of Parameters

    Details of Parameters This chapter describes the details of parameters. Sampling time (s3) Set the cycle time (ms) for the PID operation. Setting range: 1 to 32767 (ms) • In PID control and auto-tuning (Limit cycle method) Set the sampling time longer than the operation cycle of the PLC. •...
  • Page 62 • Relationship between the forward/backward operation and the output (MV), measured value (PV) and target value (SV) The relationship is as follows. Output value (MV) Target value (SV) Backward Forward operation operation Measured value (PV) Alarm setting (for input variation and output variation) If b1 and b2 in (s3) +1 are turned ON, the input variation and the output variation can be checked.
  • Page 63: Input Filter Constant (S3)+2

    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 64: Proportional Gain (S3)+3

    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 65: Integral Time (S3)+4

    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 66: Differential Gain (S3)+5

    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 67: Differential Time (S3)+6

    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 68 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 69: Alarm Output (S3)+24

    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 70: Auto-Tuning

    Auto-Tuning This chapter 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 71 ■Operation characteristics (in an example of backward operation) During the "W" period after the tuning cycle is finished, the output value 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 72 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 73: Step Response Method

    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 74 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 Setting to ON b4 of (s3)+1 (operation setting ACT) to start auto-tuning When the variation from the measured value at the start of auto-tuning to the target value reaches 1/3 or more, auto-tuning is completed.
  • Page 75: Examples Of Program

    Examples of Program System configuration example An example of the system configuration when the PID control function is used is shown below. System configuration 24V X10 X11 X10: Auto-tuning command 10V 0V V1+ V2- X11: PID control command Power Resistance temperature sensor supply converter M2RS-44-R/UL...
  • Page 76: Program Example 1

    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 77 Program SM402 The target value is K5000 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 The output value upper PID instruction initial setting...
  • Page 78: Program Example 2

    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 79 Program The target value is set to 50°C K5000 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 K500...
  • Page 80: Program Example 3

    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 81 Program The target value is set to 50°C K5000 D500 Auto-tuning is started The sampling time is set to K1000 D510 1000 ms PID instruction initial setting The output of auto-tuning K1800 D502 is set to 1.8 sec. The auto-tuning mode is set to D511.6 step response method Auto-tuning is started...
  • Page 82: Program Example 4

    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 83 Program SM402 The target value is set to 50C K5000 D500 Initial pulse The sampling time is set to K500 D510 500 ms The operation direction is set to D511.0 backward operation PID instruction initial setting The upper and lower limits of D511.5 output value is set to valid The output value upper limit...
  • Page 84: Program Example 5

    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 85 Program SM402 The target value is set to 50°C K5000 D500 Initial pulse The operation direction is D511.0 set to backward operation PID instruction The upper and lower limits of D511.5 initial setting output value is set to valid The output value upper limit K2000 D532 is set to ON for 2 sec.
  • Page 86: Chapter 10 Constant Scan

    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 87 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 88: Chapter 11 Remote Operation

    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 89 Refer to the following. GX Works3 Operating Manual Method using external devices that use SLMP Execute by SLMP command. For details on commands, refer to the following manual. MELSEC iQ-F FX5 User's Manual (SLMP) Step 0 Step 0 Remote STOP command...
  • Page 90: Remote Pause

    Execute by SLMP command. For details on commands, refer to the following manual. MELSEC iQ-F FX5 User's Manual (SLMP) • Turns ON the PAUSE contact (SM204) when executing the END process of the scan that has received the remote PAUSE command.
  • Page 91: Remote Reset

    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 92: Method Of Execution Of Remote Reset

    Method using external devices that use SLMP Refer to the following. MELSEC iQ-F FX5 User's Manual (SLMP) When executing remote RESET, the settings that allow the remote reset of the CPU parameter must be written to CPU module beforehand. In the case that they are not set, remote RESET will not be possible.
  • Page 93: Relationship Between Remote Operation And Cpu Module

    11.4 Relationship Between Remote Operation and CPU Module Relationship between remote operation and RUN/STOP status of the CPU module The following table shows operation status of the CPU module by the combination of remote operation and RUN/STOP status of the CPU module. Switch RUN/STOP status Remote operation STOP...
  • Page 94: Chapter 12 Device/Label Memory Area Setting

    DEVICE/LABEL MEMORY AREA SETTING The capacity of each area in device/label memory can be specified. (1) The capacity of each area can be changed. (Page 94 Device/Label Memory Area Setting) (2) The number of points of user devices can be changed. (Page 95 Device Setting) 12.1 Default Capacity of Each Area The default capacity of each area is as follows.
  • Page 95: The Setting Range Of The Capacity Of Each Area

    12.2 The Setting Range of the Capacity of Each Area The setting range of the capacity of each area on the device/label memory is as follows. Item Setting range of capacity of each area Device (high speed) Area Capacity 0 to 12 K words Device (standard) Area Capacity 0 to 48 K words Label Area Capacity...
  • Page 96: Device/Label Memory Area Setting

    12.3 Device/Label Memory Area Setting The capacity of each data area allocated within the device/label memory can be changed. Navigation window  [Parameter]  [FX5UCPU]  [CPU Parameter]  "Memory/Device Setting"  "Device/Label Memory Area Setting" Operating procedure "Device/Label Memory Area Setting" window In "Option Battery Setting", select whether or not to use a option battery.
  • Page 97: Device Setting

    12.4 Device Setting The number of points of each user device can be changed. Navigation window  [Parameter]  [FX5UCPU]  [CPU Parameter]  "Memory/Device Setting"  "Device/Label Memory Area Setting"  "Device/Label Memory Area Detailed Setting"  "Device (high speed) Setting/Device (standard) Setting"...
  • Page 98: Range Of Use Of Device Points

    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  Input X0 to X1777 Output Y0 to Y1777...
  • Page 99: Chapter 13 Initial Device Value Setting

    INITIAL DEVICE VALUE SETTING Directly sets the initial value of a device used by the program (i.e., not via the program). CPU module SM402 MOV H100 D0 MOV H2020 D0 Device initial value setting Device memory CPU module (1) If initial device values are used, a program to set data to the devices becomes unnecessary. 13.1 Setting Initial Device Values This section describes the settings required to use initial device values.
  • Page 100: Applicable Devices

    Initial value setting Configure the initial value setting. Navigation window  [Parameter]  [FX5UCPU]  [CPU Parameter]  "File Setting"  "Initial Value Setting" Window Displayed items Item Description Setting range Default Setting of Device Initial Sets whether or not to use initial device values. •...
  • Page 101: Chapter 14 Latch Function

    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 102: Latch Settings

    14.3 Latch Settings Latch settings This subsection describes the latch setting. Setting latch on devices A range of multiple latches can be set for 1 type of device. Two latch ranges, latch (1) and latch (2), can be set. However, make sure that the range of latch (1) and latch (2) is not overlapping.
  • Page 103: Setting Latch On Labels

    Setting latch on labels This subsection describes latch setting on labels. Operating procedure In the label edit window, specify Label edit window "RETAIN" for label attribute. There are two types of latch for labels: "Device/Label Memory Area Detailed Setting" window latch (1) and latch (2).
  • Page 104: Precautions

    14.5 Precautions The precaution to be taken when using a latch function is described below. • When latch range and device no. of points are changed in the parameter, the latching for devices other than link register (W) and latch label will be the same as the latch settings before the change. Also, if the latch range setting parameter at the time of previous operation is different from that at the time of the current operation after the CPU module is powered OFF and ON or reset, the latch data is recovered only in the overlapping part of the latch ranges.
  • Page 105: Chapter 15 Memory Card Function

    MEMORY CARD FUNCTION The following explains the functions that use SD memory card. 15.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.
  • Page 106: Boot Operation

    Releasing the SD memory card forced stop status After the SD memory card has turned to disable status, release the SD memory card forced stop status by the operation shown below. Load SD card again. Turn OFFON the power or reset the CPU module. *1 The CARD READY LED will blinklight up.
  • Page 107 Configuring the boot setting Carry out the settings required for the boot operation. Navigation window  [Parameter]  [FX5UCPU]  [Memory Card Parameter]  [Boot Setting] Operating procedure Click "Detailed Setting" on the "Boot File Setting". "Boot Setting" window "Boot File Setting" window Click the "Type"...
  • Page 108 Maximum number of boot files that can be specified It is the same as the number of files that can be stored in transfer destination memory. Operation when security functions are enabled This section describes the operation when security functions are enabled. ■When a security key is set When a security key is set to the boot target program file and the security of the program file does not match with that of the CPU module, a boot error occurs.
  • Page 109: Chapter 16 Device/Label Access Service Processing Setting

    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 110 *1 Shows the maximum a scan time is extended by the service process. *2 Shows the extent of fluctuation of scan time or the degree of scattering by the service process. *3 Shows the time between receiving a service process request from the peripheral equipment to returning a response. *4 Shows the extent of fluctuation of time until returning the response or the degree of scattering due to the contents of service process request from the peripheral equipment.
  • Page 111: Chapter 17 Ras Functions

    RAS FUNCTIONS 17.1 Self-Diagnostics Function Checks if a problem exists with the CPU module. Self-diagnostics timing If an error occurs when the CPU module is powered on or while it is in the RUN/STOP state, the CPU module detects, and displays it, and stops operation.
  • Page 112: Cpu Module Operation Upon Error Detection Setting

    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]  [FX5UCPU]  [CPU Parameter]  "RAS Setting"  "Error Detections Setting" Window Displayed items Item...
  • Page 113 CPU Module Operation Setting Specify the operation which the CPU module should perform when an error occurs on each intelligent function module. Navigation window  [Parameter]  [System Parameter]  [I/O Assignment Setting] Window Displayed items Item Description Setting range Default CPU Module Operation Sets the CPU module operation upon the detection of major or...
  • Page 114: Error Clear

    Error Clear This function clears all the existing continuation errors at once. Errors that can be cleared Error code Error name 1080H ROM write count error 1090H Battery error 1800H Annunciator ON 1810H, 1811H Operation error 1900H Constant scan time error 1920H IP address setting error 1921H...
  • Page 115: Chapter 18 Security Functions

    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 116: Chapter 19 High-Speed Input/Output Function

    General-purpose input functions Page 214 PWM function Page 216 Positioning function MELSEC iQ-F FX5 User's Manual (Positioning Control) 19.1 High-speed Counter Function High-speed counter function is explained below. High-speed counter function overview The high-speed counter is a function that counts the number of high-speed pulse inputs that cannot be counted by a conventional counter, using the general purpose input terminal of the CPU module or high-speed pulse input/output module.
  • Page 117: High-Speed Counter Function Execution Procedure

    High-speed counter dedicated instructions The high-speed counter starts and stops counting using the HIOEN/DHIOEN instruction for the high-speed counter. (MELSEC iQ-F FX5 Programming Manual (Instructions, Standard Functions/Function Blocks)) Other high-speed counter instructions In addition to the dedicated instructions, there are instructions such as DHSCS, DHSCR, and DHSZ (hereafter referred to as "high-speed comparison instruction") for high-speed counters.
  • Page 118 ■1 phase, 1 input counter (H/W) Counting method of 1 phase, 1 input counter (H/W) is as follows. Input A phase Input B phase (Count direction switching input) Up counting Down counting Current value ■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...
  • Page 119 ■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 120 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 121 Input assignment-wise / maximum frequency for high-speed counters. Counter type Maximum frequency 1 phase, 1 input counter (S/W) 200 KHz 1 phase, 1 input counter (H/W) 200 KHz...
  • Page 121: Assignment For High-Speed Counters

    Assignment for high-speed counters Input assignment for high-speed counters Assignment for input devices of high-speed counters is set by parameters. Assignment is determined according to functions set for each channels by parameter. When using internal clock, assignment is same as 1-phase, 1-count (S/W) and A phase is not used. Input assignment of high-speed counters is as follows.
  • Page 122 ■High-speed pulse input/output module  of each input is the head input number for high-speed pulse input/output module. High-speed X X+1 X+2 X+3 X+4 X+5 X+6 X+7 counter type CH9, 1-phase 1-count (S/W) CH11, 1-phase 1-count (H/W) CH13, 1-phase 2-count CH15 2-phase 2-count CH10,...
  • Page 123 Input assignment-wise / maximum frequency for high-speed counters Input assignment-wise maximum frequency for high-speed counters is as follows. ■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...
  • Page 124 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 125 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 126 ■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 X...
  • Page 127: High-Speed Counter Parameters

    High-speed counter parameters High-speed counter parameters are explained below. High-speed counter parameters are set by GX Works3. Outline of parameters High-speed counter settings, high-speed comparison table, multiple point high-speed comparison table setting and input response time are set by parameters. The primary items that can be set by parameters are as follows.
  • Page 128: High-Speed Counter (Normal Mode)

    High-speed counter (normal mode) Normal mode for high-speed counters is explained below. Use normal mode if you want to use as an ordinary high-speed counter. Parameter setting Set operation mode to normal mode by high-speed counter parameter setting. Sets detailed settings for channel used. ■CPU module Navigation window ...
  • Page 129 Item Description Setting range Default  Control Switch Sets preset execution timing when preset input is enabled. • Rising • Falling • Rising + Falling Edge • Always During Input ON Preset Value Sets preset value when preset input is enabled. -2147483648 to +2147483647 ...
  • Page 130 High-speed counters cannot count by setting the parameter alone. The HIOEN/DHIOEN instruction is required to start/stop the count. For the HIOEN/DHIOEN instruction, refer to MELSEC iQ-F FX5 Programming Manual (Instructions, Standard Functions/ Function Blocks). Read/write of current value of high-speed counter The current value of the high-speed counter is stored in a special register for each channel.
  • Page 131: High-Speed Counter (Pulse Density Measurement Mode)

    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 132 The pulse density measurement mode cannot measure by setting the parameter alone. The HIOEN/DHIOEN instruction is required to start/stop measurement. For the HIOEN/DHIOEN instruction, refer to MELSEC iQ-F FX5 Programming Manual (Instructions, Standard Functions/ Function Blocks). 19 HIGH-SPEED INPUT/OUTPUT FUNCTION...
  • Page 133 If pulse density is currently being measured by the SPD/DSPD instruction, pulse density measurement cannot be started for the same channel. For details on the SPD/DSPD instruction, refer to MELSEC iQ-F FX5 Programming Manual (Instructions, Standard Functions/Function Blocks). ■Other precautions There are common precautions when using high-speed counters.
  • Page 134: High-Speed Counter (Rotational Speed Measurement Mode)

    High-speed counter (rotational speed measurement mode) The rotational speed measurement mode for high-speed counters is explained below. The rotational speed measurement mode is not supported in high-speed pulse input/output modules. When in rotational speed measurement mode, pulse is counted from count input of the high-speed counter, and the rotational speed for a specified amount of time is automatically calculated.
  • Page 135 Inversely, if pulse density is currently being measured by the SPD/DSPD instruction, rotational speed measurement cannot be started for the same channel. For details on the SPD/DSPD instruction, refer to MELSEC iQ-F FX5 Programming Manual (Instructions, Standard Functions/Function Blocks). 19 HIGH-SPEED INPUT/OUTPUT FUNCTION...
  • Page 136: High-Speed Comparison Table

    ■Other precautions There are common precautions when using high-speed counters. For details, refer to Page 176 Precautions when using high-speed counters. High-speed comparison table The high-speed comparison table is explained below. Used to set high-speed comparison table for high-speed counters. Parameter setting Sets match output setting for high-speed counters.
  • Page 137 ■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 the screen displayed from the following operation.
  • Page 138 High-speed comparison tables cannot execute comparison by setting the parameter alone. The HIOEN/DHIOEN instruction is required to start/stop the high-speed comparison table. For the HIOEN/DHIOEN instruction, refer to MELSEC iQ-F FX5 Programming Manual (Instructions, Standard Functions/ Function Blocks). The HIOEN/DHIOEN instruction is required to start/stop high-speed counters as well when using a high- speed comparison table.
  • Page 139: Multiple Point Output, High-Speed Comparison Tables

    Table operation is as follows when multiple HIOEN/DHIOEN instructions are executed within the same scan. Tables 1, 2 and 4 are started at the 1st HIOEN/DHIOEN instruction. Tables 3 and 5 are started, and 2 and 4 are stopped at the 2nd HIOEN/DHIOEN instruction. Table 2 is started and 5 is stopped at the 3rd HIOEN/DHIOEN instruction.
  • Page 140 • When using user devices, you can change comparison value or output data while the program is running. • When using user devices, each table occupies 4 devices. Word devices are used in order starting from the initial device. Multiple point output, high-speed comparison table operation Operation of each type high-speed comparison table is explained below.
  • Page 141 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 142: Special Relay List

    Special relay list A list of special relays used for high-speed counters is provided below. Special relays for individual channels A list of special relays by high-speed counter channel is provided below. R/W: Read or Write R: Read only Special relay Function Operation Default...
  • Page 143 Special relay Function Operation Default SM4548 High-speed counter underflow (CH1) Has occurred Has not occurred SM4549 High-speed counter underflow (CH2) SM4550 High-speed counter underflow (CH3) SM4551 High-speed counter underflow (CH4) SM4552 High-speed counter underflow (CH5) SM4553 High-speed counter underflow (CH6) SM4554 High-speed counter underflow (CH7) SM4555...
  • Page 144 Special relay Function Operation Default SM4580 High-speed counter count direction switching (CH1) (1-phase 1-input Down-counting Up-counting S/W) SM4581 High-speed counter count direction switching (CH2) (1-phase 1-input S/W) SM4582 High-speed counter count direction switching (CH3) (1-phase 1-input S/W) SM4583 High-speed counter count direction switching (CH4) (1-phase 1-input S/W) SM4584 High-speed counter count direction switching (CH5) (1-phase 1-input...
  • Page 145 Special relay Function Operation Default SM4612 High-speed counter preset input comparison (CH1) Valid Invalid Parameter setting values SM4613 High-speed counter preset input comparison (CH2) SM4614 High-speed counter preset input comparison (CH3) SM4615 High-speed counter preset input comparison (CH4) SM4616 High-speed counter preset input comparison (CH5) SM4617 High-speed counter preset input comparison (CH6) SM4618...
  • Page 146 Special relays shared by all channels A list of shared special relays is provided below. R/W: Read or Write R: Read only Special relay Function Operation Default SM4980 High-speed comparison table (high-speed compare instruction) Operating Stopped operation (CPU module) SM4982 High-speed comparison table (high-speed compare instruction) error Has occurred Has not occurred...
  • Page 147: Special Relay Details

    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 148 ■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 149 ■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 150 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 151 ■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 152 ■Update timing The timing of device update is as follows. • When ON by the user • When OFF by the user • When set to enabled with parameters • When set to disabled with parameters • Cannot be modified while the high-speed counter is operating. Operates in the configured status when the high-speed counter starts.
  • Page 153 High-speed counter ring length setting These devices enable or disable the ring length setting for ring counters. ■Corresponding devices The device numbers corresponding to each channel are as follows. CPU module SM4644 SM4645 SM4646 SM4647 SM4648 SM4649 SM4650 SM4651 High-speed pulse input/output module First module Second module Third module...
  • Page 154 ■Operation Description The content of the operation when ON and when OFF is as follows. Operation when ON Operation when OFF High-speed comparison table operating High-speed comparison table stopped When the high-speed counter current value and the high-speed comparison Even when the high-speed counter current value and the high-speed table set value or the DHSCS, DHSCR, DHSZ instruction set value are equal, comparison table set value or the DHSCS, DHSCR, DHSZ instruction set the specified bit device is set or reset.
  • Page 155 ■Update timing The timing of device update is as follows. • Updated in END processing • When OFF by the user • If an error occurs while the FX3 compatible DHSCS,DHSCR,and DHSZ • Power ON, reset instruction ON execution, an operation is made also when the high-speed counter function is valid.
  • Page 156 Multi-point output high-speed comparison table completion This device turns ON when the high-speed counter's multi-point output high-speed comparison tables have finished comparing all of the set tables. ■Corresponding devices The device number is shared for all channels of the CPU module. SM5001 ■Operation Description The content of the operation when ON and when OFF is as follows.
  • Page 157: Special Registers List

    Special registers list The following list shows the special registers used with high-speed counters. All set values except for ring length are handled as signed. Special registers for individual channels The following list shows the special registers for individual high-speed counter channels. R/W: Read or Write R: Read only Special register...
  • Page 158 Special register Function Range Default SD4548 High-speed counter number of pulses per rotation (CH2) 1 to 2147483647 Parameter set value SD4549 SD4550 to SD4559 Not used    SD4560 High-speed counter current value (CH3) -2147483648 to +2147483647 SD4561 SD4562 High-speed counter maximum value (CH3) -2147483648 to +2147483647 -2147483648...
  • Page 159 Special register Function Range Default SD4622 High-speed counter maximum value (CH5) -2147483648 to +2147483647 -2147483648 SD4623 SD4624 High-speed counter minimum value (CH5) -2147483648 to +2147483647 2147483647 SD4625 SD4626 High-speed counter pulse density (CH5) 0 to 2147483647 SD4627 SD4628 High-speed counter rotational speed (CH5) 0 to 2147483647 SD4629 SD4630...
  • Page 160 Special register Function Range Default SD4688 High-speed counter rotational speed (CH7) 0 to 2147483647 SD4689 SD4690 High-speed counter preset control switch (CH7) 0: Rising edge Parameter set value 1: Falling edge 2: Both edges 3: Constant when ON   ...
  • Page 161 Special register Function Range Default SD4754 High-speed counter ring length (CH9) 2 to 2147483647 Parameter set value SD4755    SD4756 to SD4769 Not used SD4770 High-speed counter current value (CH10) -2147483648 to +2147483647 SD4771 SD4772 High-speed counter maximum value (CH10) -2147483648 to +2147483647 -2147483648 SD4773...
  • Page 162 Special register Function Range Default SD4860 High-speed counter current value (CH13) -2147483648 to +2147483647 SD4861 SD4862 High-speed counter maximum value (CH13) -2147483648 to +2147483647 -2147483648 SD4863 SD4864 High-speed counter minimum value (CH13) -2147483648 to +2147483647 2147483647 SD4865    SD4866 to SD4869 Not used SD4870...
  • Page 163 Special register Function Range Default SD4954 High-speed counter minimum value (CH16) -2147483648 to +2147483647 2147483647 SD4955    SD4956 to SD4959 Not used SD4960 High-speed counter preset control switch (CH16) 0: Rising edge Parameter set value 1: Falling edge 2: Both edges 3: Constant when ON ...
  • Page 164: Special Register Details

    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 165 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 166 High-speed counter minimum value These devices store the minimum values of the high-speed counters. ■Corresponding devices The device numbers corresponding to each channel are as follows. CPU module SD4505, SD4535, SD4565, SD4595, SD4625, SD4655, SD4685, SD4715, SD4504 SD4534 SD4564 SD4594 SD4624 SD4654 SD4684...
  • Page 167 High-speed counter pulse density These devices store the measurement results of pulse density measurement mode. ■Corresponding devices The device numbers corresponding to each channel of the CPU module are as follows. SD4507, SD4537, SD4567, SD4597, SD4627, SD4657, SD4687, SD4717, SD4506 SD4536 SD4566 SD4596...
  • Page 168 High-speed counter preset control switch These devices set the preset input operation of the high-speed counters. ■Corresponding devices The device numbers corresponding to each channel are as follows. CPU module SD4510 SD4540 SD4570 SD4600 SD4630 SD4660 SD4690 SD4720 High-speed pulse input/output module First module Second module Third module...
  • Page 169 • Operation when preset input logic: positive logic, preset control switch: falling edge The preset is executed when the preset input changes ONOFF. Preset input Count input Current value • Operation when preset input logic: positive logic, preset control switch: rising edge + falling edge The preset is executed when the preset input changes OFFON and when it changes ONOFF.
  • Page 170 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. Preset input Count input Current value • Operation when preset input logic: negative logic, preset control switch: falling edge The preset is executed when the preset input changes OFFON.
  • Page 171 • 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 172 High-speed counter preset value These devices set the values to store in the current values when presets are executed. ■Corresponding devices The device numbers corresponding to each channel are as follows. CPU module SD4513, SD4543, SD4573, SD4603, SD4633, SD4663, SD4693, SD4723, SD4512 SD4542...
  • Page 173 Precautions If the ring length is set to less than the lower limit value or more than the upper limit value, the ring length operates at the lower limit value or the upper limit value. However, the set value is stored as is. High-speed counter measurement unit time These devices set the measurement unit of pulse density measurement mode.
  • Page 174 Precautions If the set value for the number of pulses per rotation is set to less than the lower limit value or more than the upper limit value, the number of pulses per rotation operates at the lower limit value or the upper limit value. However, the set value is stored as High-speed comparison table (high-speed compare instruction) error occurrence error code This device stores the high-speed comparison table, high-speed comparison instruction error.
  • Page 175: Special Relays/Special Registers Capable Of High-Speed Transfers With The Hcmov/Dhcmov Instruction

    Special relays/special registers capable of high-speed transfers with the HCMOV/DHCMOV instruction The table below shows the devices that can read and write the latest value with the HCMOV/DHCMOV instruction from special relays and special registers related to the high-speed counters. When special relays and special registers are specified for (s) and (d) of instructions other than the HCMOV/DHCMOV instruction, the operation is the same as one compatible with the MOV/DMOV instruction.
  • Page 176 Special relays shared by all channels : High-speed transfer capable (special relay is immediately updated) : Normal transfer capable (special relay is updated in END processing) : Transfer not possible (read-only) Special relay Function Compatible with HCMOV/ Compatible with MOV/ DHCMOV instruction DMOV instruction SM4980...
  • Page 177 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 178: Precautions When Using High-Speed Counters

    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 179 ■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 173 Special relays/special registers capable of high-speed transfers with the HCMOV/DHCMOV instruction HCMOV/DHCMOV instruction MOV instruction, etc.
  • Page 180 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 positioning function, refer to MELSEC iQ-F FX5 User's Manual (Positioning Control). ■CPU module • Input The following functions occupy inputs of the high-speed input/output function.
  • Page 181 ■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 High-speed counter Pulse width Positioning *1*2 interrupt measurement X X CH1 Input A phase ...
  • Page 182 Restrictions on simultaneous execution of the high-speed comparison table and high- speed comparison instructions There is a limit in the number of simultaneous executions of the high-speed comparison table and high-speed comparison instructions (DHSCS, DHSCR, DHSZ instruction). Shown below are conditions included in the number of simultaneous executions.
  • Page 183: Fx3-Compatible High-Speed Counter Function

    19.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 184: The Elements Of The Composition Of The Lc Device

    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 185 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 186: Assignment For Fx3-Compatible High-Speed Counters

    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. High-speed counter No. Pulse input mode Corresponding devices Preset input logic change ...
  • Page 187 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 No. Maximum frequency corresponding CPU module...
  • Page 188: Fx3-Compatible High-Speed Counter Setting

    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 189 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 • LC35 (Operation equivalent to C235)  is compatible with FX3. •...
  • Page 190: Special Relay List

    Item Description Setting range Default Preset Value Sets preset input logic when preset input is enabled.    Input Comparison Enable/ Sets whether to "enable" or "disable" input comparison • Disable Disable when preset input is enabled. • Enable ...
  • Page 191: Special Relays/Lc Devices Capable Of High-Speed Transfers With The Hcmov/Dhcmov Instruction

    Special relays/LC devices capable of high-speed transfers with the HCMOV/DHCMOV instruction Shown below are the special relay/LC device that can read and write the latest value with the HCMOV/DHCMOV instruction when the FX3 compatible high-speed counter function is valid. When special relays and special registers are specified for (s) and (d) of instructions other than the HCMOV/DHCMOV instruction, the operation is the same as one compatible with the MOV/DMOV instruction.
  • Page 192: Precautions When Using Fx3-Compatible High-Speed Counters

    LC device : High-speed transfer capable (special relay is immediately updated) : Normal transfer capable (special relay is updated in END processing) : Transfer not possible (read-only) LC device Function Compatible with Compatible with DHCMOV DMOV instruction instruction   ...
  • Page 193: Pulse Width Measurement Function

    19.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 194 Pulse width maximum value and minimum value The maximum value and minimum value of the pulse width from the start of measurements are stored in special devices. (Page 195 List of special relays/special registers) 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 195: Pulse Measurement Function Execution Procedure

    Pulse measurement function execution procedure The pulse measurement function execution procedure is shown below. Check the pulse measurement specifications. Check the specifications such as the measurement frequency of pulse measurements. (Page 191 Pulse width measurement specifications) Connect the CPU module to the external device. For details on wiring to external devices, refer to the following manual MELSEC iQ-F FX5U User's Manual (Hardware) MELSEC iQ-F FX5UC User's Manual (Hardware)
  • Page 196 ■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 the screen displayed from the following operation.
  • Page 197: List Of Special Relays/Special Registers

    List of special relays/special registers The list of special relays/special registers used in pulse width measurement is shown below. R/W: Read or write (Note, however, that only writing is allowed for the HCMOV/DHCMOV instruction.) R: Read only Special relays/ Function Description Default special...
  • Page 198 Special relays/ Function Description Default special registers SM5052 CH1 pulse width measurement These flags turn ON at the end of the 1st pulse width complete measurement on the target channel. (They remain ON during measurement in the always measurement mode.) SM5053 CH2 pulse width measurement complete...
  • Page 199 Special relays/ Function Description Default special registers SD5065, SD5064 CH3 pulse width latest value The latest value of the pulse width is stored. 00000000H SD5067, SD5066 CH3 pulse width maximum value The maximum value of the pulse width is stored. 00000000H SD5069, SD5068 CH3 pulse width minimum value...
  • Page 200 Special relays/ Function Description Default special registers SD5191, SD5190 CH9 period latest value The latest value of the period is stored. 00000000H SD5193, SD5192 CH9 period maximum value The maximum value of the period is stored. 00000000H SD5195, SD5194 CH9 period minimum value The minimum value of the period is stored.
  • Page 201: Details Of Special Relays/Special Registers

    Details of special relays/special registers Details of special relays/special registers used in pulse width measurement are explained below. Pulse width measurement status flag This flag is a device for monitoring the measurement in progress/measurement stopped status of pulse width measurement. ■Corresponding devices The device numbers corresponding to each channel are as follows.
  • Page 202 Pulse width measurement complete This flag turns ON at the end of the 1st pulse width measurement. During measurement in the always measurement mode, it stays ON. ■Corresponding devices The device numbers corresponding to each channel are as follows. CPU module High-speed pulse input/output module First module Second module...
  • Page 203 Rising edge ring counter value The ring counter value when the rising edge is detected is stored. ■Corresponding devices The device numbers corresponding to each channel are as follows. CPU module High-speed pulse input/output module First module Second module Third module Fourth module CH10 CH11...
  • Page 204 Pulse width maximum value The maximum value of the pulse width is stored. • When logic switching is set to positive logic, the difference from the rising edge up to the falling edge. • When logic switching is set to negative logic, the difference from the falling edge up to the rising edge. •...
  • Page 205 Period latest value The latest value of the period is stored. • When logic switching is set to positive logic, the difference from the previous rising edge up to the latest rising edge. • When logic switching is set to negative logic, the difference from the previous falling edge up to the latest falling edge.
  • Page 206: Cautions When Using The Pulse Width Measurement Function

    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 falling edge to falling edge. •...
  • Page 207: Examples Of Program

    Examples of program An example of a program using the pulse width measurement function is explained below. Outline of operation A program for measuring the delay time between the rising edges of input signals X1 and X2 on the CPU module is explained below.
  • Page 208: Pulse Catch Function

    Precautions If high-speed pulse input/output module operates in an interrupt program with the priority 1, operation error (3580H) occurs. The high-speed pulse input/output module operates in an interrupt program with the priority 2 or 3. 19.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.
  • Page 209: Pulse Catch Function Execution Procedure

    Pulse catch function execution procedure The procedure for executing the pulse catch function is explained below. Check the pulse catch specifications. Check specifications such as the input response time of the pulse catch. (Page 206 Specifications of pulse catch function) Connect the CPU module to the external device.
  • Page 210 Displayed items Item Description Setting range Default General/Interrupt/Pulse Set the function to be used. • General-purpose Input General-purpose Catch Set to “Interrupt (Rising) + Pulse Catch”. • Interrupt (Rising) Input • Interrupt (Falling) • Interrupt (Rising + Falling) • Interrupt (Rising) + Pulse Catch ■High-speed pulse input/output module Add the high-speed pulse input/output module.
  • Page 211: Operation Of Pulse Catch Function

    Operation of pulse catch function Operation of the pulse catch function is explained below. Basic operation of pulse catch function The corresponding input device is turned ON for the duration of the scan following the scan where the pulse signal is detected.
  • Page 212: Cautions When Using The Pulse Catch Function

    ■Operation when a pulse having an ON width of two scans or more is input The input device is turned ON for one scan only. END/Step 0 END/Step 0 Step 0 Program External Input signal turns ON input signal Input device 1 scan ON Cautions when using the pulse catch function •...
  • Page 213: Fx3-Compatible Pulse Catch Function

    19.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 214: Fx3-Compatible Pulse Catch Function Execution Procedure

    FX3-compatible pulse catch function execution procedure The procedure for executing the FX3-compatible pulse catch function is explained below. Check the FX3-compatible pulse catch specifications. Check specifications such as the input response time and corresponding special relay of the FX3-compatible pulse catch. (Page 211 Specifications of FX3-compatible pulse catch function) Connect the CPU module to the external device.
  • Page 215: Operation Of Fx3-Compatible Pulse Catch Function

    Operation of FX3-compatible pulse catch function Operation of the FX3-compatible pulse catch function is explained below. Operation of FX3-compatible pulse catch function When the status of the input (X0 to X7) changes OFFON after execution of the EI instruction, a special relay (SM8170 to SM8177) is immediately set to ON by interrupt processing.
  • Page 216: General-Purpose Input Functions

    19.6 General-purpose Input Functions The FX5 PLC general-purpose inputs are explained below. Outline of general-purpose input functions For general-purpose inputs of the FX5 PLC, the input response time can be set by parameters. Specifications of general-purpose inputs Performance specifications Input response times can be set to general-purpose inputs. ■Input response time setting Input response times that can be set are shown below.
  • Page 217: General-Purpose Input Function Parameters

    General-purpose input function parameters This section explains the general-purpose input parameters. Set the input response time parameters in GX Works3. Parameter setting This section explains how to set the input response time parameters. Set the input response time. Navigation window  [Parameter]  [FX5UCPU]  [Module Parameter]  [Input Response Time] Window Displayed items Item...
  • Page 218: Pwm Function

    19.7 PWM Function This chapter explains the PWM function. Outline of PWM output The CPU module and the high-speed pulse input/output module allow PWM output on up to 12 channels. For PWM output, the output channel assignment, pulse/cycle units, output pulse logic, pulse width, cycle, etc. are set using parameters, and the HIOEN/DHIOEN instruction is used to start/stop pulse output.
  • Page 219 The logical settings like output destination, cycle, pulse width, output pulse logic, etc. are set in parameters, and the HIOEN/ DHIOEN instruction is used to execute pulse output. For parameters, refer to Page 219 PWM output parameters. For the HIOEN/DHIOEN instruction, refer to MELSEC iQ-F FX5 Programming Manual (Instructions, Standard Functions/ Function Blocks).
  • Page 220: Pwm Output Function Execution Procedure

    PWM output function execution procedure The procedure for executing the PWM output function is explained below. Check the specifications of PWM output. Check specifications such as pulse output performance of PWM output. (Page 216 PWM output specifications) Connect the CPU module to the external device. For details on wiring to external devices, refer to the following manual MELSEC iQ-F FX5U User's Manual (Hardware) MELSEC iQ-F FX5UC User's Manual (Hardware)
  • Page 221: Pwm Output Parameters

    PWM output parameters This section explains the PWM output parameters. Set the PWM output parameters in GX Works3. Outline of parameters PWM output parameters are output destination, pulse width/cycle unit, output pulse logic, pulse width, and period. Parameter setting This section explains how to set the PWM output parameters. Set the output destination, pulse width/cycle unit, output pulse logic, pulse width, period, etc.
  • Page 222 ■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 the screen displayed from the following operation.
  • Page 223: List Of Special Relays/Special Registers

    List of Special relays/special registers The list of special relays/special registers used in PWM output is shown below. R/W: Read or write R: Read only Special relays/ Function Description Default special registers SM5300 Operation monitor (CH1) The operation/stopped status of PWM output on the target channel can be checked.
  • Page 224 Special relays/ Function Description Default special registers SD5303, SD5302 CH1 pulse width The pulse width is stored. SD5305, SD5304 CH1 period The period is stored. SD5307, SD5306 CH1 Number of output pulses The current value of the number of output pulses is stored. current value monitor SD5317, SD5316 CH2 number of output pulses...
  • Page 225: Details Of Special Relays/Special Registers

    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 226 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 227 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 228: Cautions When Using The Pwm Function

    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 229: Examples Of Program

    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 CPU module to output one pulse with a delay is explained below. Parameter setting This program assumes that parameters are set as follows.
  • Page 230 ■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 231: Chapter 20 Built-In Analog Function

    By setting values into the special registers in the FX5U CPU module, the signal after D/A conversion is automatically output. For details on the function, refer to the following manual. MELSEC iQ-F FX5 User's Manual (Analog Control) 20.2 Analog Input/Output Specifications Analog input/output specification is shown below.
  • Page 232: List Of Analog Input Functions

    Item Specifications No. of occupied input/output points 0 point (does not pertain to the max. No. of input/output points of the CPU module.) *1 There is a dead band near 0 V output, which is an area where some digital input values do not reflect analog output values. *2 External load resistance is set to 2 k...
  • Page 233: Part 3 Devices/Labels

    PART 3 DEVICES/LABELS This part consists of the following chapters. 21 DEVICES 22 LABELS...
  • Page 234: Chapter 21 Devices

    DEVICES This chapter explains devices. 21.1 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 number Annunciator Decimal Link special relay Hexadecimal number...
  • Page 235: User Devices

    21.2 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 236: Internal Relay (M)

    Internal relay (M) Device intended to be used as an auxiliary relay inside the CPU module. All internal relays are turned OFF by the following operation. • CPU module power OFFON • Reset • Latch clear Latch relay (L) Auxiliary relay that can latch (backup by battery) in the CPU module. Computation results (ON/OFF information) are latched even when performing the following operations.
  • Page 237 How to turn annunciator (F) ON Use SET F instruction. The annunciator (F) turns ON only during the rise time of input conditions (OFFON); the annunciator (F) remains ON even if the input condition is OFF. • The annunciator (F) can also be turned ON by OUT F instruction, but because it is processed every scan, scan time is slower than when using SET F...
  • Page 238: Link Special Relay (Sb)

    How to turn annunciator (F) OFF Annunciators (F) are turned OFF by the following instruction. Instruction Application RST F instruction Used to turn OFF annunciator (F) number set by SET F instruction. BKRST instruction Used to turn a specified range of annunciator (F) numbers OFF in a batch. You can turn OFF by OUT F...
  • Page 239: Timer (T/St)

    Timer (T/ST) Device whereby measurement starts when the timer coil is turned ON, time up occurs when current value reaches the setting value, and the contact is turned ON. The timer is an addition type counter. When time is up, the current value and setting value are the same value.
  • Page 240 Current value and measurement range of timer ■Timer The current value range is 0 to 32767. Timer processing method The timer's coil is turned ON/OFF, the current value is updated and the contact is turned ON/OFF when timer's coil (OUT T instruction) is executed.
  • Page 241 Routine timer setting The setting of the routine timer is made. Navigation window  [Parameter]  [FX5UCPU]  [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 Whether the routine timer is used is set.
  • Page 242: Counter (C/Lc)

    Counter (C/LC) Device that counts number of rises of input conditions in the program. Counters are addition type counters; they count up when the count value matches the setting value, and the contact is turned ON. For details on the FX3-compatible high-speed counter, refer to Page 181 FX3-compatible high-speed counter function. Counter type There is counter (C) that maintains the counter value in 16 bits and the long counter (LC) that maintains the counter value in 32 bits.
  • Page 243 Counter reset Current value of counters is not cleared even if its coil input is turned OFF. To clear (reset) the current value of the counter and turn the contact OFF, use the RST C instruction/RST LC instruction. The counter value is cleared and the contact is turned OFF as soon as the RST C...
  • Page 244: Data Register (D)

    Data register (D) Device capable of storing numerical data. Link register (W) Device intended to be used as a CPU side device when refreshing word data between CPU module and network module. Refreshing network module that uses link register (W) Sends/receives data mutually between link registers (LW) in network module and link register (W) in the CPU module.
  • Page 245: Module Access Device

    21.4 Module Access Device Device that allows you to directly access the buffer memory of intelligent function modules connected to the CPU module from the CPU module. Specification method Specified by U [module number of intelligent function modules]\[buffer memory address]. (Example: U5\G11) Processing speed Processing speed of reading/writing by module access device is faster than using FROM/TO instruction.
  • Page 246: Index Registers (Z/Lz)

    21.5 Index Registers (Z/LZ) Device used for indexing of devices. Types of index registers There are 2 types: the index register (Z) and long index register (LZ) Index register (Z) Used for 16-bit index modification. SM402 K100 D0Z0 Access D0Z0 = D100. Long index register (LZ) Used for 32-bit index modification.
  • Page 247: File Register (R)

    21.6 File Register (R) Device capable of storing numerical data. 21.7 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.
  • Page 248: Pointer (P)

    21.8 Pointer (P) Device used by instructions such as jump instruction (CJ instruction) and subroutine program call instruction (CALL instruction, etc.). Types of pointers are as follows. Pointer Description Global pointers Pointers that can be referred to from all programs. Label assignment pointers Pointers used by assignment to labels.
  • Page 249: Interrupt Causes Of The Interrupt Pointer Numbers

    Interrupt causes of the interrupt pointer numbers A list of interrupts is provided below. Interrupt Interrupt pointer number Description Input interrupt I0 to I15 interrupt pointer used for input interrupt of CPU module. 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 250: Constant

    21.10 Constant This section explains constants. Decimal constant (K) Device that specifies decimal data for the program. Specified by K. (Example: 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 251: Chapter 22 Labels

    No. *1 Label and device can be used in mixed manner. For details on label, refer to the following. MELSEC iQ-F FX5 Programming Manual (Program Design) 22 LABELS...
  • Page 252: Appendix

    APPENDIX Appendix 1 Special Relay List Diagnostic information The special relays for diagnostic information are shown below. R: Read only, R/W: Read/Write Name Description Latest self diagnostics error (including annunciator ON) OFF: No error ON: Error Latest self diagnostics error (not including annunciator OFF: No self-diagnosis errors ON: Self-diagnosis error SM50...
  • Page 253 System clock The special relay about system clock is shown below. R: Read only, R/W: Read/Write Name Description SM400 Always ON SM401 Always OFF SM402 After RUN, ON for one scan only 1 scan SM403 After RUN, OFF for one scan only 1 scan SM409 0.01 second clock...
  • Page 254 Drive information The special relays for drive information are shown below. R: Read only, R/W: Read/Write Name Description SM600 Memory card usable OFF: Unusable ON: Use enabled SM601 Memory card protect OFF: Not protected ON: Protected SM603 Memory card insertion OFF: No drive 2 ON: Drive 2 present SM605...
  • Page 255 Name Description SM4506 High-speed counter operation (CH7) OFF: Stopped ON: Operation SM4507 High-speed counter operation (CH8) OFF: Stopped ON: Operation SM4508 High-speed counter operation (CH9) OFF: Stopped ON: Operation SM4509 High-speed counter operation (CH10) OFF: Stopped ON: Operation SM4510 High-speed counter operation (CH11) OFF: Stopped ON: Operation SM4511...
  • Page 256 Name Description SM4544 High-speed counter overflow (CH13) OFF: No error ON: Overflow SM4545 High-speed counter overflow (CH14) OFF: No error ON: Overflow SM4546 High-speed counter overflow (CH15) OFF: No error ON: Overflow SM4547 High-speed counter overflow (CH16) OFF: No error ON: Overflow SM4548 High-speed counter underflow (CH1)
  • Page 257 Name Description SM4574 High-speed counter count direction monitor (CH11) OFF: Up-counting ON: Down-counting SM4575 High-speed counter count direction monitor (CH12) OFF: Up-counting ON: Down-counting SM4576 High-speed counter count direction monitor (CH13) OFF: Up-counting ON: Down-counting SM4577 High-speed counter count direction monitor (CH14) OFF: Up-counting ON: Down-counting SM4578...
  • Page 258 Name Description SM4604 High-speed counter preset input logic (CH9) OFF: Positive logic ON: Negative logic SM4605 High-speed counter preset input logic (CH10) OFF: Positive logic ON: Negative logic SM4606 High-speed counter preset input logic (CH11) OFF: Positive logic ON: Negative logic SM4607 High-speed counter preset input logic (CH12) OFF: Positive logic...
  • Page 259 Name Description SM4634 High-speed counter enable input logic (CH7) OFF: Positive logic ON: Negative logic SM4635 High-speed counter enable input logic (CH8) OFF: Positive logic ON: Negative logic SM4636 High-speed counter enable input logic (CH9) OFF: Positive logic ON: Negative logic SM4637 High-speed counter enable input logic (CH10) OFF: Positive logic...
  • Page 260 Name Description SM4988 High-speed comparison table operation (high-speed pulse OFF: Stopped input/output module second module) ON: Operation SM4990 High-speed comparison table error occurrence (high- OFF: No error speed pulse input/output module second module) ON: Error SM4992 High-speed comparison table operation (high-speed pulse OFF: Stopped input/output module third module) ON: Operation...
  • Page 261 Name Description SM5046 Pulse width measurement period measurement complete OFF: Cycle measurement not completed (CH11) ON: Cycle measurement completion SM5047 Pulse width measurement period measurement complete OFF: Cycle measurement not completed (CH12) ON: Cycle measurement completion SM5052 Pulse width measurement pulse width measurement OFF: Pulse width measurement not completed complete (CH1) ON: Pulse width measurement completion...
  • Page 262 Name Description SM5304 PWM function operation (CH5) OFF: Stopped ON: Operation SM5305 PWM function operation (CH6) OFF: Stopped ON: Operation SM5306 PWM function operation (CH7) OFF: Stopped ON: Operation SM5307 PWM function operation (CH8) OFF: Stopped ON: Operation SM5308 PWM function operation (CH9) OFF: Stopped ON: Operation SM5309...
  • Page 263 Name Description SM5342 PWM output abnormal end flag (CH11) OFF: No error ON: Abnormal end SM5343 PWM output abnormal end flag (CH12) OFF: No error ON: Abnormal end SM5500 Positioning instruction activation (axis 1) OFF: Stopped ON: Operation SM5501 Positioning instruction activation (axis 2) OFF: Stopped ON: Operation SM5502...
  • Page 264 Name Description SM5536 Positioning error (axis 5) OFF: No error ON: Error SM5537 Positioning error (axis 6) OFF: No error ON: Error SM5538 Positioning error (axis 7) OFF: No error ON: Error SM5539 Positioning error (axis 8) OFF: No error ON: Error SM5540 Positioning error (axis 9)
  • Page 265 Name Description SM5606 Positioning remaining distance operation enabled (axis OFF: Remaining distance operation disabled ON: Remaining distance operation enabled SM5607 Positioning remaining distance operation enabled (axis OFF: Remaining distance operation disabled ON: Remaining distance operation enabled SM5612 Positioning remaining distance operation start (axis 1) OFF: Remaining distance operation standby ON: Remaining distance operation start SM5613...
  • Page 266 Name Description SM5648 Positioning pulse decelerates stop command (axis 5) OFF: Pulse output is not stopped (With remaining distance operation) ON: Pulse output decelerates stop SM5649 Positioning pulse decelerates stop command (axis 6) OFF: Pulse output is not stopped (With remaining distance operation) ON: Pulse output decelerates stop SM5650 Positioning pulse decelerates stop command (axis 7)
  • Page 267 Name Description SM5686 Positioning reverse rotation limit (axis 11) OFF: Reverse rotation limit OFF ON: Reverse rotation limit ON SM5687 Positioning reverse rotation limit (axis 12) OFF: Reverse rotation limit OFF ON: Reverse rotation limit ON SM5772 Positioning rotational direction (axis 1) OFF: Forward rotation (Current address increases) ON: Reverse rotation (Current address increases) SM5773...
  • Page 268 Name Description SM5824 Positioning clear signal function (axis 5) OFF: Clear signal disabled ON: Clear signal enabled SM5825 Positioning clear signal function (axis 6) OFF: Clear signal disabled ON: Clear signal enabled SM5826 Positioning clear signal function (axis 7) OFF: Clear signal disabled ON: Clear signal enabled SM5827 Positioning clear signal function (axis 8)
  • Page 269 Name Description SM5926 Positioning axis 11 positioning table data initialization OFF: Disabled disable ON: Enabled SM5927 Positioning axis 12 positioning table data initialization OFF: Disabled disable ON: Enabled Built-in analog The special relays for built-in analog are shown below. R: Read only, R/W: Read/Write Name Description SM6020...
  • Page 270 Name Description SM6072 CH2 Warning output flag (Process alarm lower limit) OFF: No alarm ON: Alarm SM6073 CH2 Warning output setting (Process alarm) OFF: Enabled ON: Disabled SM6097 CH2 A/D alarm clear request OFF: No clear request ON: Clear request SM6098 CH2 A/D alarm flag OFF: No alarm...
  • Page 271 Name Description SM8014 1 min clock pulse ON and OFF in 1 min cycles OFF: 30 s ON: 30 s SM8015 Clock stop and preset When SM8015 turns ON, the real time clock is stopped. At the edge from ON to OFF, the time from SD8013 to SD8019 is written to the PLC and the clock is started again.
  • Page 272 Name Description SM8056 I60 disable OFF: Interrupt enabled ON: Interrupt disabled SM8057 I70 disable OFF: Interrupt enabled ON: Interrupt disabled SM8058 I80 disable OFF: Interrupt enabled ON: Interrupt disabled SM8059 I00 disable (Counter interrupt disable) OFF: Interrupt enabled ON: Interrupt disabled SM8063 Serial communication error1 (ch1) OFF: No error...
  • Page 273 Name Description SM8191 Data communication in execution OFF: Data communication in execution ON: Data communication in nonexecution SM8246 LC46 counting direction monitoring OFF: Down count operation ON: Up count operation SM8247 LC47 counting direction monitoring OFF: Down count operation ON: Up count operation SM8248 LC48 counting direction monitoring OFF: Down count operation...
  • Page 274 Name Description SM8408 MODBUS retry (ch1) OFF: Not retry ON: Retry SM8409 RS2 Time-out check flag (ch1)/MODBUS Timeout (ch1) ON when time-out occurs. SM8421 RS2 Send wait flag (ch2)/MODBUS request in process ON during send wait or MODBUS communication (ch2) SM8422 MODBUS communication error (ch2) OFF: No error...
  • Page 275 Name Description SM8565 Time-out check flag (ch1) This device turns ON when data receiving is suspended and the next set of receive data is not given within the time set by the time- out time setting device. SM8570 Data transfer delayed (ch2) This device remains ON while the PLC is waiting to send.
  • Page 276 Name Description SM8861 Host station No. setting SD latch enabled (ch1) OFF: Latch disabled ON: Latch enabled SM8871 Host station No. setting SD latch enabled (ch2) OFF: Latch disabled ON: Latch enabled SM8881 Host station No. setting SD latch enabled (ch3) OFF: Latch disabled ON: Latch enabled SM8891...
  • Page 277: Appendix 2 Special Register List

    Appendix 2 Special Register List Diagnostic information The special register for diagnostic information are shown below. R: Read only, R/W: Read/Write Name Description Latest self diagnostics error code This register stores the latest self-diagnosis error code. Clock time for self diagnosis error occurrence (Year) This register stores the latest self-diagnosis error time (Year).
  • Page 278 Name Description SD81 to Detailed information 1 • Detailed information 1 corresponding to the error code (SD0) is SD111 stored. • There are six types of information to be stored as shown in the following figures. • The type of detailed information 1 can be obtained using SD80 (the value of the "Detailed information 1 information category code"...
  • Page 279 Name Description 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. SD83 Function No. Module position Module position Function No.
  • Page 280 Name Description SD113 to Detailed information 2 • Detailed information 2 corresponding to the error code (SD0) is SD143 stored. • There are four types of information to be stored as shown in the following figures. • The type of detailed information 2 can be obtained using SD112 (the value of the "Detailed information 2 information category code"...
  • Page 281 System information The special registers for system information are shown below. R: Read only, R/W: Read/Write Name Description SD200 Switch Status This register stores the CPU switch status. 0: RUN 1: STOP SD201 LED Status This register stores the LED status. b0: STOP b4: RUN b5: PAUSE...
  • Page 282 Name Description SD302 LZ Device Size This register stores the number of LZ device points used. SD304 R Device Size [Lower] This register stores the number of R device points used as 32-bit value. SD305 R Device Size [Upper] System clock The special registers for system clock are shown below.
  • Page 283 Name Description SD526 END processing time (ms) • The time period from completion of a scan program until start of the next scan is stored into SD526 to SD527 (it is measured in SD527 END processing time (s) increments of s). SD526: stores a value in the ms place (storage range: 0 to 65535) SD527: stores a value in the s place (storage range: 0 to 999)
  • Page 284 Name Description SD758 Interrupt disabling for each priority setting value This register stores the disable interrupt priority according to the disable interrupt instruction (DI), disable interrupt after the setting priority instruction (DI), and enable interrupt instruction (EI). 1: Disable interrupt priority 1 or less. (Disable interrupt of all priority) (default value) 2: Disable interrupt priority 2 or 3.
  • Page 285 Name Description SD4166 Module 9 status information This register stores the module 9 status information. SD4167 Module 9 error information This register stores the module 9 error information. SD4168 Module 10 status information This register stores the module 10 status information. SD4169 Module 10 error information This register stores the module 10 error information.
  • Page 286 Name Description SD4532 High-speed counter maximum value [Low-order] (CH2) This register stores the high-speed counter maximum value (CH2). SD4533 High-speed counter maximum value [High-order] (CH2) SD4534 High-speed counter minimum value [Low-order] (CH2) This register stores the high-speed counter minimum value (CH2).
  • Page 287 Name Description SD4598 High-speed counter rotation speed [Low-order] (CH4) This register stores the high-speed counter rotation speed (CH4). SD4599 High-speed counter rotation speed [High-order] (CH4) SD4600 High-speed counter preset control switch (CH4) This register stores the high-speed counter preset control switch (CH4).
  • Page 288 Name Description SD4666 High-speed counter measurement-unit time [Low-order] This register stores the high-speed counter measurement-unit (CH6) time (CH6). SD4667 High-speed counter measurement-unit time [High-order] (CH6) SD4668 High-speed counter number of pulses per rotation [Low- This register stores the high-speed counter number of pulses per order] (CH6) rotation (CH6).
  • Page 289 Name Description SD4740 High-speed counter current value [Low-order] (CH9) This register stores the high-speed counter current value (CH9). SD4741 High-speed counter current value [High-order] (CH9) SD4742 High-speed counter maximum value [Low-order] (CH9) This register stores the high-speed counter maximum value (CH9).
  • Page 290 Name Description SD4870 High-speed counter preset control switch (CH13) This register stores the high-speed counter preset control switch (CH13). SD4872 High-speed counter preset value [Low-order] (CH13) This register stores the high-speed counter preset value (CH13). SD4873 High-speed counter preset value [High-order] (CH13) SD4874 High-speed counter ring length [Low-order] (CH13) This register stores the high-speed counter ring length (CH13).
  • Page 291 Name Description SD5020 Pulse width measurement rising ring counter value [Low- This register stores the pulse width measurement rising ring order] (CH1) counter value (CH1). SD5021 Pulse width measurement rising ring counter value [High- order] (CH1) SD5022 Pulse width measurement falling ring counter value [Low- This register stores the pulse width measurement falling ring order] (CH1) counter value (CH1).
  • Page 292 Name Description SD5060 Pulse width measurement rising ring counter value [Low- This register stores the pulse width measurement rising ring order] (CH3) counter value (CH3). SD5061 Pulse width measurement rising ring counter value [High- order] (CH3) SD5062 Pulse width measurement falling ring counter value [Low- This register stores the pulse width measurement falling ring order] (CH3) counter value (CH3).
  • Page 293 Name Description SD5100 Pulse width measurement rising ring counter value [Low- This register stores the pulse width measurement rising ring order] (CH5) counter value (CH5). SD5101 Pulse width measurement rising ring counter value [High- order] (CH5) SD5102 Pulse width measurement falling ring counter value [Low- This register stores the pulse width measurement falling ring order] (CH5) counter value (CH5).
  • Page 294 Name Description SD5140 Pulse width measurement rising ring counter value [Low- This register stores the pulse width measurement rising ring order] (CH7) counter value (CH7). SD5141 Pulse width measurement rising ring counter value [High- order] (CH7) SD5142 Pulse width measurement falling ring counter value [Low- This register stores the pulse width measurement falling ring order] (CH7) counter value (CH7).
  • Page 295 Name Description SD5180 Pulse width measurement rising ring counter value [Low- This register stores the pulse width measurement rising ring order] (CH9) counter value (CH9). SD5181 Pulse width measurement rising ring counter value [High- order] (CH9) SD5182 Pulse width measurement falling ring counter value [Low- This register stores the pulse width measurement falling ring order] (CH9) counter value (CH9).
  • Page 296 Name Description SD5214 Pulse width measurement cycle minimum value [Low- This register stores the pulse width measurement cycle minimum order] (CH10) value (CH10). SD5215 Pulse width measurement cycle minimum value [High- order] (CH10) SD5220 Pulse width measurement rising ring counter value [Low- This register stores the pulse width measurement rising ring order] (CH11) counter value (CH11).
  • Page 297 Name Description SD5252 Pulse width measurement cycle maximum value [Low- This register stores the pulse width measurement cycle maximum order] (CH12) value (CH12). SD5253 Pulse width measurement cycle maximum value [High- order] (CH12) SD5254 Pulse width measurement cycle minimum value [Low- This register stores the pulse width measurement cycle minimum order] (CH12) value (CH12).
  • Page 298 Name Description SD5382 PWM pulse width [Low-order] (CH6) This register stores the PWM pulse width (CH6). SD5383 PWM pulse width [High-order] (CH6) SD5384 PWM cycle [Low-order] (CH6) This register stores the PWM cycle (CH6). SD5385 PWM cycle [High-order] (CH6) SD5396 PWM pulse output number [Low-order] (CH7) This register stores the PWM pulse output number (CH7).
  • Page 299 Name Description SD5516 Positioning maximum speed [Low-order] (axis 1) This register stores the maximum speed of positioning (axis 1). SD5517 Positioning maximum speed [High-order] (axis 1) SD5518 Positioning bias speed [Low-order] (axis 1) This register stores the bias speed of positioning (axis 1). SD5519 Positioning bias speed [High-order] (axis 1) SD5520...
  • Page 300 Name Description SD5590 Positioning error code (axis 3) This register stores the error code of positioning (axis 3). SD5591 Positioning error table number (axis 3) This register stores the error table number of positioning (axis 3). SD5596 Positioning maximum speed [Low-order] (axis 3) This register stores the maximum speed of positioning (axis 3).
  • Page 301 Name Description SD5666 Positioning execution table number (axis 5) This register stores the execution table number of positioning (axis 5). SD5668 Positioning current speed (composite speed) [Low-order] This register stores the current speed (composite speed) of (axis 5) positioning (axis 5). SD5669 Positioning current speed (composite speed) [High-order] (axis 5)
  • Page 302 Name Description SD5733 Positioning zero-return dwell time (axis 6) This register stores the zero-return dwell time of positioning (axis SD5740 Positioning current address (user unit) [Low-order] (axis 7) This register stores the current address (user unit) of positioning (axis 7). SD5741 Positioning current address (user unit) [High-order] (axis SD5742...
  • Page 303 Name Description SD5801 Positioning deceleration time (axis 8) This register stores the deceleration time of positioning (axis 8). SD5806 Positioning zero-return speed [Low-order] (axis 8) This register stores the zero-return speed of positioning (axis 8). SD5807 Positioning zero-return speed [High-order] (axis 8) SD5808 Positioning creep speed [Low-order] (axis 8) This register stores the creep speed of positioning (axis 8).
  • Page 304 Name Description SD5868 Positioning current speed (composite speed) [Low-order] This register stores the current speed (composite speed) of (axis 10) positioning (axis 10). SD5869 Positioning current speed (composite speed) [High-order] (axis 10) SD5870 Positioning error code (axis 10) This register stores the error code of positioning (axis 10). SD5871 Positioning error table number (axis 10) This register stores the error table number of positioning (axis...
  • Page 305 Name Description SD5933 Positioning zero-return dwell time (axis 11) This register stores the zero-return dwell time of positioning (axis 11). SD5940 Positioning current address (user unit) [Low-order] (axis This register stores the current address (user unit) of positioning (axis 12). SD5941 Positioning current address (user unit) [High-order] (axis SD5942...
  • Page 306 Name Description SD6033 CH1 Process alarm lower upper limit value This register stores the process alarm lower upper limit value. SD6034 CH1 Process alarm lower lower limit value This register stores the process alarm lower lower limit value. SD6058 CH1 Latest alarm code This register stores the latest alarm code.
  • Page 307 Name Description SD8017 RTC: Month data This register stores the month data. SD8018 RTC: Year data This register stores the year data. SD8019 RTC: Day of week data This register stores the day of week data. SD8039 Constant scan duration This register stores the constant scan duration.
  • Page 308 Name Description SD8211 Code of communication error at master station This register stores the code of communication error at master station. SD8212 Code of communication error at slave station No.1 This register stores the code of communication error at slave station No.1.
  • Page 309 Name Description SD8415 RS2 receive sum (calculated result) (ch1) This register stores the ch1 receive sum (calculated result) . SD8416 RS2 send sum (ch1) This register stores the send sum (ch1). SD8419 Operation mode (ch1) This register stores the operation mode (ch1). SD8422 RS2 amount of remaining data (ch2)/MODBUS This register stores the amount of remaining data (ch2)/MODBUS...
  • Page 310 Name Description SD8570 Remaining points of send data (ch2) This register stores the remaining points of send data (ch2). SD8571 Receive data points monitor (ch2) This register stores the receive data points monitor (ch2). SD8573 Receive sum (received data) (ch2) This register stores the receive sum (received data) (ch2).
  • Page 311 Name Description SD8820 Current retry value (ch3) This register stores the current retry value (ch3). SD8830 Current retry value (ch4) This register stores the current retry value (ch4). SD8860 Communication format (ch1) This register stores the communication format (ch1). SD8861 Slave node address (ch1) This register stores the host station number (ch1).
  • Page 312 Name Description SD9052 Number of communication error at slave station No.7 This register stores the number of communication error at slave station No.7. SD9061 Code of communication error at master station This register stores the code of communication error at master station.
  • Page 313 Name Description SD10270 Remote password lock status connection No. 1 to 8 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: Unlock status/remote password setting none 1: Lock status SD10271 Remote password lock status system port...
  • Page 314 Name Description SD10710 Predefined protocol setting data error information protocol When a protocol setting data error is detected, stores the protocol number number where the error was detected. SD10711 Predefined protocol setting data error information setting 0 is stored if an error is detected in the packet setting or element type setting.
  • Page 315 Name Description SD10755 Connection No.1 received data verification result (receive Stores the verification results of receive packet No.14. packet No.14) Element No. where the verification result did not match (b0 to b7) The cause of mismatch (verification result code) (b8 to b15) SD10756 Connection No.1 received data verification result (receive Stores the verification results of receive packet No.15.
  • Page 316 Name Description SD10775 Connection No.2 received data verification result (receive Stores the verification results of receive packet No.14. packet No.14) Element No. where the verification result did not match (b0 to b7) The cause of mismatch (verification result code) (b8 to b15) SD10776 Connection No.2 received data verification result (receive Stores the verification results of receive packet No.15.
  • Page 317 Name Description SD10795 Connection No.3 received data verification result (receive Stores the verification results of receive packet No.14. packet No.14) Element No. where the verification result did not match (b0 to b7) The cause of mismatch (verification result code) (b8 to b15) SD10796 Connection No.3 received data verification result (receive Stores the verification results of receive packet No.15.
  • Page 318 Name Description SD10815 Connection No.4 received data verification result (receive Stores the verification results of receive packet No.14. packet No.14) Element No. where the verification result did not match (b0 to b7) The cause of mismatch (verification result code) (b8 to b15) SD10816 Connection No.4 received data verification result (receive Stores the verification results of receive packet No.15.
  • Page 319 Name Description SD10835 Connection No.5 received data verification result (receive Stores the verification results of receive packet No.14. packet No.14) Element No. where the verification result did not match (b0 to b7) The cause of mismatch (verification result code) (b8 to b15) SD10836 Connection No.5 received data verification result (receive Stores the verification results of receive packet No.15.
  • Page 320 Name Description SD10855 Connection No.6 received data verification result (receive Stores the verification results of receive packet No.14. packet No.14) Element No. where the verification result did not match (b0 to b7) The cause of mismatch (verification result code) (b8 to b15) SD10856 Connection No.6 received data verification result (receive Stores the verification results of receive packet No.15.
  • Page 321 Name Description SD10875 Connection No.7 received data verification result (receive Stores the verification results of receive packet No.14. packet No.14) Element No. where the verification result did not match (b0 to b7) The cause of mismatch (verification result code) (b8 to b15) SD10876 Connection No.7 received data verification result (receive Stores the verification results of receive packet No.15.
  • Page 322 Name Description SD10895 Connection No.8 received data verification result (receive Stores the verification results of receive packet No.14. packet No.14) Element No. where the verification result did not match (b0 to b7) The cause of mismatch (verification result code) (b8 to b15) SD10896 Connection No.8 received data verification result (receive Stores the verification results of receive packet No.15.
  • Page 323: Appendix 3 Error Code

    The error code can be checked in either of the following ways. • Module diagnostics of engineering tool (MELSEC iQ-F FX5 User's Manual (Startup)) • Special register (SD0 (latest self-diagnostics error code), SD10 to SD25 (self-diagnostics error code)) (Page 275 Special Register List) This section describes errors that may occur in the CPU module and actions to be taken for the errors.
  • Page 324: How To Clear Errors

    How to clear errors Continuation errors can be cleared. (Page 112 Error Clear) List of error codes Self-diagnostics error codes of the CPU module (1000H to 3FFFH) The following table lists the error codes detected by the self-diagnostics function of the CPU module. Error Error name Error details and cause...
  • Page 325 Error Error name Error details and cause Action Detailed Diagnostic code information timing 1825H Write during RUN • Writing during RUN (change or deletion) • Verify that the writing during RUN (change or Error location At END error (axis 5) is performed on an instruction being deletion) is performed on an instruction information...
  • Page 326 Error Error name Error details and cause Action Detailed Diagnostic code information timing 1920H IP address • Values such as the IP address setting • Recheck the values such as the IP address  At END setting error (SD8492 to SD8497) are outside the set setting (SD8492 to SD8497).
  • Page 327 Error Error name Error details and cause Action Detailed Diagnostic code information timing 2120H Memory card • An SD memory card error was detected. • Check the connection of the SD memory Drive/file Always error • The SD memory card may have been card.
  • Page 328 RESET execution error appears, the hardware of the CPU module may be malfunctioning. Consult your local Mitsubishi Electric representative. 3003H Boot function • A mismatch between the file password • Check the file password 32 of the boot...
  • Page 329 Error Error name Error details and cause Action Detailed Diagnostic code information timing 3050H System bus error • Communication with the module failed • Verify that the connected module is powered System At power-on, due to power discontinuity or the like. configuration at RESET •...
  • Page 330 Error Error name Error details and cause Action Detailed Diagnostic code information timing 3057H System bus error • A timeout occurred during • Verify that extension cables are correctly System At END communication with a connected module connected. configuration instruction during system processing.
  • Page 331 Error Error name Error details and cause Action Detailed Diagnostic code information timing 3213H Program • The parameter set value is out of range. • To use this parameter, a new version of the Parameter At power-on, execution error CPU module is required. Replace the CPU information at RESET module or perform version upgrade.
  • Page 332 Error Error name Error details and cause Action Detailed Diagnostic code information timing 33E7H Program • The relationship among a global pointer, • Modify the program so that the mutual Error location At power-on, structure error interrupt pointer, and return instruction is relationship between pointer and return information at RESET...
  • Page 333 Error Error name Error details and cause Action Detailed Diagnostic code information timing 3511H Operation error • The PID operation result is greater than • The operation is continued with the Error location At instruction the maximum value or lower than the maximum or minimum value.
  • Page 334 Error Error name Error details and cause Action Detailed Diagnostic code information timing 3581H Operation error • Modules subsequent to the bus • Modify the program so that no operand Error location At instruction conversion module are using an operand whose use is disabled for modules information execution...
  • Page 335 Error Error name Error details and cause Action Detailed Diagnostic code information timing 361BH CH11 pulse • The value of the special register to set • Modify the value of the special register and Error location At END width, period the pulse width and cycle of the PWM/ restart PWM.
  • Page 336 Error Error name Error details and cause Action Detailed Diagnostic code information timing 362CH Axis 12 limit • Both the forward and reverse limits were • Recheck the relationship between the near- Error location At END detection error detected at the time of zero return or the point dog and limits.
  • Page 337 Error Error name Error details and cause Action Detailed Diagnostic code information timing 3635H Axis 5 positioning • The 32-bit range was exceeded when • Start the positioning within specifications. Error location At END address error the unit of the positioning address was information instruction converted.
  • Page 338 Error Error name Error details and cause Action Detailed Diagnostic code information timing 3639H Axis 9 positioning • The 32-bit range was exceeded when • Start the positioning within specifications. Error location At END address error the unit of the positioning address was information instruction converted.
  • Page 339 Error Error name Error details and cause Action Detailed Diagnostic code information timing 3643H Axis 3 command • The 32-bit range was exceeded when • Start the positioning within specifications. Error location At instruction speed error the unit of the command speed was information execution converted.
  • Page 340 Error Error name Error details and cause Action Detailed Diagnostic code information timing 3652H Axis 2 error stop • When pulses were being output or • Eliminate the error that has caused the stop Error location At END (deceleration positioning was starting, the PLC and restart the positioning.
  • Page 341 Error Error name Error details and cause Action Detailed Diagnostic code information timing 3656H Axis 6 error stop • When pulses were being output or • Eliminate the error that has caused the stop Error location At END (deceleration positioning was starting, the PLC and restart the positioning.
  • Page 342 Error Error name Error details and cause Action Detailed Diagnostic code information timing 365AH Axis 10 error stop • When pulses were being output or • Eliminate the error that has caused the stop Error location At END (deceleration positioning was starting, the PLC and restart the positioning.
  • Page 343 Error Error name Error details and cause Action Detailed Diagnostic code information timing 3664H Axis 4 error stop • When pulses were being output or • Eliminate the error that has caused the stop Error location At END (immediately positioning was rising, the PLC stopped and restart the positioning.
  • Page 344 Error Error name Error details and cause Action Detailed Diagnostic code information timing 3675H Axis 5 positioning • The value of an operand in the table is • Set the correct value to the table. Error location At END table operand abnormal.
  • Page 345 Error Error name Error details and cause Action Detailed Diagnostic code information timing 3686H Axis 6 positioning • Tables which cannot be used together • Observe the restrictions on table operation. Error location At END table shift error were specified for continuous operation. information instruction (table...
  • Page 346 Error Error name Error details and cause Action Detailed Diagnostic code information timing 3695H Axis 5 positioning • Table shift cannot be completed in time • Set the interval of table shifts to 10 ms or Error location At interrupt table shift error because one or more tables shifted per greater.
  • Page 347 Error Error name Error details and cause Action Detailed Diagnostic code information timing 36A3H Axis 3 • The counterpart axis table for the • Set the table of the counterpart axis Error location At instruction interpolation interpolation operation cannot be found. correctly.
  • Page 348 Error Error name Error details and cause Action Detailed Diagnostic code information timing 36B3H Axis 3 • Conditions such as limits were satisfied • Verify that the reference axis and Error location At instruction interpolation to stop pulses in the reference axis or counterpart axis are not in use and the stop information execution...
  • Page 349 RESET CPU module may be malfunctioning. information Consult your local Mitsubishi Electric representative. 3C01H Hardware failure • A hardware failure was detected. • Reset the CPU module and perform RUN. If...
  • Page 350 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 351 Error Error name Error details and cause Action code 4053H Protect error • An error occurred when writing data to the specified drive • Check the specified drive (memory). Or, write data again (memory). after changing the corresponding drive (memory). 4060H Online •...
  • Page 352 Error Error name Error details and cause Action code 41D0H File related error • The specified drive (memory) has no free space. Or, the • Execute again after increasing the free space of the drive number of files in the directory of the specified drive (memory).
  • Page 353: Appendix 4 Parameter List

    Appendix 4 Parameter List A parameter list is shown below. System parameters Classification-Level 1 Classification-Level 2 Classification-Level 3  I/O Assignment Setting Model Name  Intelligent Module No.  Serial Communication ch  CPU Module Operation at Error Detection CPU parameters Classification-Level 1 Classification-Level 2 Classification-Level 3...
  • Page 354: Module Parameters

    Module parameters Ethernet Port Classification-Level 1 Classification-Level 2 Classification-Level 3 Basic Settings Own Node Settings IP Address External Device Configuration External Device Configuration Application Settings Security Disable Direct Connection with MELSOFT Do Not Respond to CPU Module Search 485 Serial Port ■MELSOFT Connection Classification-Level 1 Classification-Level 2...
  • Page 355 Classification-Level 1 Classification-Level 2 Classification-Level 3 SM/SD Setting Latch Setting Advanced Settings Station Number Header Setting Value Time-out Period FX3 Series Compatibility SM/SD for Compatible ■MODBUS_RTU Communication Classification-Level 1 Classification-Level 2 Classification-Level 3 Basic Settings Communication Protocol Type Communication Protocol Type Advanced Settings Parity Bit Stop Bit...
  • Page 356 Classification-Level 1 Classification-Level 2 Classification-Level 3 Link Device Pattern Pattern Link Device Bit Device Link Device Word Device SM/SD Setting Latch Setting Host Station No. Total Number of Local Station Refresh Range Timeout Retry Count Setting Monitoring Time FX3 Series Compatibility SM/SD for Compatible High Speed I/O Settings Classification-Level 1...
  • Page 357 ■High Speed Counter Classification-Level 1 Classification-Level 2 Classification-Level 3 Basic Settings Use/Do Not Use Counter Use/Not Use Operation Mode Operation Mode Pulse Input Mode Pulse Input Mode Preset Input Preset Input Enable/Disable Input Logic Preset Value Input Comparison Enable/Disable Control Switch Enable Input Enable Input Enable/Disable Input logic...
  • Page 358 ■Positioning Classification-Level 1 Classification-Level 2 Classification-Level 3 Basic Settings Basic Parameters 1 Pulse Output Mode Output Device (PULSE/CW) Output Device (SIGN/CCW) Rotation Direction Setting Unit Setting Pulse No. of per Rotation Movement Amount per Rotation Position Data Magnification Basic Parameters 2 Interpolation Speed Specified Method Max.
  • Page 359 ■PWM Classification-Level 1 Classification-Level 2 Classification-Level 3 Basic Settings Use PWM Output Use/Not Use Output Signal Output Signal Pulse Width/Cycle Unit Pulse Width/Cycle Unit Output Pulse Logic Output Pulse Logic Pulse Width Pulse Width Cycle Cycle Input Response Time Setting Classification-Level 1 Classification-Level 2 Classification-Level 3...
  • Page 360: Memory Card Parameters

    Memory card parameters Classification-Level 1 Classification-Level 2 Classification-Level 3 Boot Setting Boot Setting Clear the CPU built-in memory before boot Boot File Setting APPENDIX Appendix 4 Parameter List...
  • Page 361: Appendix 5 Substitute Functions

    Appendix 5 Substitute Functions File registers To use a file register of the FX3 PLC, use functions of the FX5 PLC. A file register is a device that sets an initial value to a data register that has the same device number. The values of the file registers set in the built-in memory or memory cassette is transferred collectively to the data registers when the power of the FX3 PLC is OFFON or the PLC is STOPRUN.
  • Page 362: Appendix 6 Added And Enhanced Functions

    Appendix 6 Added and Enhanced Functions The functions added or changed with the CPU module and engineering tool, and the supported CPU modules' firmware version and engineering tool software version are given below. • The firmware version can be confirmed with module diagnosis (CPU diagnosis). Refer to the User's Manual (Hardware) for the CPU module in use for details on diagnosing the module (CPU diagnosis).
  • Page 363: Index

    INDEX ......234 ......17 Annunciator (F) I/O refresh .
  • Page 364 ......89 Remote RESET ......86 Remote RUN .
  • Page 365 MEMO...
  • Page 366: Revisions

    Appendix, WARRANTY 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 367: Warranty

    WARRANTY Please confirm the following product warranty details before using this product. Gratis Warranty Term and Gratis Warranty 2. Onerous repair term after discontinuation of production Range If any faults or defects (hereinafter "Failure") found to Mitsubishi shall accept onerous product repairs for be the responsibility of Mitsubishi occurs during use of seven (7) years after production of the product is the product within the gratis warranty term, the...
  • Page 368: Trademarks

    TRADEMARKS   Microsoft and Windows are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries. Ethernet is a trademark of Xerox Corporation.  MODBUS is a registered trademark of Schneider Electric SA. SD logo and SDHC logo are trademarks or registered trademarks of SD-3C, LLC. The company name and the product name to be described in this manual are the registered trademarks or trademarks of each company.
  • Page 370 Manual number: JY997D55401D Model: FX5-U-OU-E Model code: 09R537 When exported from Japan, this manual does not require application to the Ministry of Economy, Trade and Industry for service transaction permission. HEAD OFFICE: TOKYO BUILDING, 2-7-3 MARUNOUCHI, CHIYODA-KU, TOKYO 100-8310, JAPAN Specifications are subject to change without notice.

Table of Contents