Table of Contents

Advertisement

Quick Links

QnUCPU User's Manual
(Function Explanation, Program Fundamentals)
-Q00U(J)CPU
-Q01UCPU
-Q02UCPU
-Q03UDVCPU
-Q03UD(E)CPU
-Q04UDVCPU
-Q04UDPVCPU
-Q04UD(E)HCPU
-Q06UDVCPU
-Q06UDPVCPU
-Q06UD(E)HCPU
-Q10UD(E)HCPU
-Q13UDVCPU
-Q13UDPVCPU
-Q13UD(E)HCPU
-Q20UD(E)HCPU
-Q26UDVCPU
-Q26UDPVCPU
-Q26UD(E)HCPU
-Q50UDEHCPU
-Q100UDEHCPU

Advertisement

Table of Contents
loading

Summary of Contents for Mitsubishi Electric MELSEC-Q00U(J)CPU

  • Page 1 QnUCPU User's Manual (Function Explanation, Program Fundamentals) -Q00U(J)CPU -Q01UCPU -Q02UCPU -Q03UDVCPU -Q03UD(E)CPU -Q04UDVCPU -Q04UDPVCPU -Q04UD(E)HCPU -Q06UDVCPU -Q06UDPVCPU -Q06UD(E)HCPU -Q10UD(E)HCPU -Q13UDVCPU -Q13UDPVCPU -Q13UD(E)HCPU -Q20UD(E)HCPU -Q26UDVCPU -Q26UDPVCPU -Q26UD(E)HCPU -Q50UDEHCPU -Q100UDEHCPU...
  • Page 3: Safety Precautions

    SAFETY PRECAUTIONS (Read these precautions before using this product.) Before using this product, please read this manual and the relevant manuals carefully and pay full attention to safety to handle the product correctly. In this manual, the safety precautions are classified into two levels: " WARNING"...
  • Page 4 [Design Precautions] WARNING ● In an output module, when a load current exceeding the rated current or an overcurrent caused by a load short-circuit flows for a long time, it may cause smoke and fire. To prevent this, configure an external safety circuit, such as a fuse.
  • Page 5 [Installation Precautions] CAUTION ● Use the programmable controller in an environment that meets the general specifications in the QCPU User's Manual (Hardware Design, Maintenance and Inspection). Failure to do so may result in electric shock, fire, malfunction, or damage to or deterioration of the product.
  • Page 6 [Wiring Precautions] WARNING ● Shut off the external power supply (all phases) used in the system before installation and wiring. Failure to do so may result in electric shock or damage to the product. ● After wiring, attach the included terminal cover to the module before turning it on for operation. Failure to do so may result in electric shock.
  • Page 7 Pulling the cable connected to the module may result in malfunction or damage to the module or cable. ● Mitsubishi Electric programmable controllers must be installed in control panels. Connect the main power supply to the power supply module in the control panel through a relay terminal block.
  • Page 8 [Startup and Maintenance Precautions] CAUTION ● Shut off the external power supply (all phases) used in the system before mounting or removing a module. Failure to do so may cause the module to fail or malfunction. A module can be replaced online (while power is on) on any MELSECNET/H remote I/O station or in the system where a CPU module supporting the online module change function is used.
  • Page 9: Conditions Of Use For The Product

    CONDITIONS OF USE FOR THE PRODUCT (1) Mitsubishi programmable controller ("the PRODUCT") shall be used in conditions; i) where any problem, fault or failure occurring in the PRODUCT, if any, shall not lead to any major or serious accident; and ii) where the backup and fail-safe function are systematically or automatically provided outside of the PRODUCT for the case of any problem, fault or failure occurring in the PRODUCT.
  • Page 10: Introduction

    INTRODUCTION This manual, "QnUCPU User's Manual (Function Explanation, Program Fundamentals)" describes the memory maps, functions, programs, I/O number assignment, and devices of the Universal model QCPU. Before using this product, please read this manual and the relevant manuals carefully and develop familiarity with the functions and performance of the Q series programmable controller to handle the product correctly.
  • Page 11 Memo...
  • Page 12: Table Of Contents

    CONTENTS CONTENTS SAFETY PRECAUTIONS ............. 1 CONDITIONS OF USE FOR THE PRODUCT .
  • Page 13 2.8.2 Direct mode ............. . Interrupt Program .
  • Page 14 3.15 Debug from Multiple Programming Tools ........3.15.1 Simultaneous monitoring from multiple programming tools .
  • Page 15 3.38.1 Operation history save function ..........3.38.2 Operation history display .
  • Page 16 Extended Data Register (D) and Extended Link Register (W) ......Nesting (N)............. . . 4.10 Pointer (P).
  • Page 17 ........462 Appendix 1.3.5 CC-Link setting .
  • Page 18: Manuals

    MANUALS To understand the main specifications, functions, and usage of the CPU module, refer to the basic manuals. Read other manuals as well when using a different type of CPU module and its functions. Order each manual as needed, referring to the following list.
  • Page 19 (3) Operating manual Manual name Manual Description <manual number (model code)> type GX Works2 Version1 Operating Manual (Common) System configuration, parameter settings, and online operations of GX ● <SH-080779ENG (13JU63)> Works2, which are common to Simple projects and Structured projects GX Developer Version 8 Operating Manual Operating methods of GX Developer, such as programming, printing, <SH-080373E (13JU41)>...
  • Page 20 (5) Others Manual name Manual Description <manual number (model code)> type Communication method using the MC protocol, which reads/writes MELSEC Communication Protocol Reference Manual data to/from the CPU module via the serial communication module or <SH-080008 (13JF89)> Ethernet module iQ Sensor Solution Reference Manual Operating methods of iQ Sensor Solution, such as programming and <SH-081133ENG (13JV28)>...
  • Page 21: Manual Page Organization

    MANUAL PAGE ORGANIZATION In this manual, pages are organized and the symbols are used as shown below. The following page illustration is for explanation purpose only, and is different from the actual pages. "" is used for screen names and items. The chapter of the current page is shown.
  • Page 22 Icon Description Universal model QCPU Icons indicate that specifications described on the page contain Universal some precautions.
  • Page 23: Terms

    High-speed Universal model QCPU Q26UDVCPU Universal model Process CPU Generic term for the Q04UDPVCPU, Q06UDPVCPU, Q13UDPVCPU, and Q26UDPVCPU Generic term for the Mitsubishi Electric motion controllers: Q172CPUN, Q173CPUN, Motion CPU Q172HCPU, Q173HCPU, Q172CPUN-T, Q173CPUN-T, Q172HCPU-T, Q173HCPU-T, Q172DCPU, Q173DCPU, Q172DCPU-S1, Q173DCPU-S1, Q172DSCPU, and Q173DSCPU...
  • Page 24 Generic term/abbreviation Description  Base unit type Generic term for the main base unit, extension base unit, slim type main base unit, redundant Base unit power main base unit, redundant power extension base unit, and multiple CPU high speed main base unit Main base unit Generic term for the Q3B, Q3SB, Q3RB, and Q3DB Generic term for the Q5B, Q6B, Q6RB, QA1S5B, QA1S6B,...
  • Page 25 Extension cable cables Generic term for the Q6BAT, Q7BAT, and Q8BAT CPU module batteries, Q2MEM-BAT Battery SRAM card battery, and Q3MEM-BAT SRAM card battery Generic term for Mitsubishi Electric Graphic Operation Terminal, GOT-A*** series, GOT-F*** series, GOT1000 series, and GOT2000 series...
  • Page 26 Memo...
  • Page 27: Part 1 Programming

    PART 1 PROGRAMMING In this part, fundamental knowledge of programming is described. CHAPTER 1 BASIC PROCEDURE FOR PROGRAMMING ..... . . 26 CHAPTER 2 APPLICATION OF PROGRAMMING .
  • Page 28: Chapter 1 Basic Procedure For Programming

    CHAPTER 1 BASIC PROCEDURE FOR PROGRAMMING This chapter describes the basic procedure for programming. Start Check column Create projects with GX Works2. Creating projects Page 27, Section 1.2 Create programs. Creating programs Page 28, Section 1.3 Convert created programs into ones that can be Converting programs processed by the CPU module.
  • Page 29: Creating A Project

    CHAPTER 1 BASIC PROCEDURE FOR PROGRAMMING Creating a Project A project is a set of information, such as programs and parameters, which is necessary to operate a programmable controller. The following two projects are available. • Simple project • Structured project Create a new project using GX Works2.
  • Page 30: Creating A Program

    Creating a Program 1.3.1 Prior knowledge for creating a program (1) Device and constants Devices and constants, such as shown below, are used for creating a program. Page 334, CHAPTER 4) Device Constant (2) Concept of I/O numbers I/O numbers are automatically assigned. Power Input Output...
  • Page 31: How To Create A Program

    CHAPTER 1 BASIC PROCEDURE FOR PROGRAMMING 1.3.2 How to create a program This section shows how to create the following sample program. When X10 is turned on, Y20 turns on. To enter X10, type X10 at the original cursor position and select the contact shown in the left figure.
  • Page 32: Converting A Program

    Converting a Program Operation of a program is defined after converting its ladder. [Compile] [Build] The program has been converted. In the next procedure, write the program to a CPU module. ● To use a label, the program must be compiled. GX Works2 Version 1 Operating Manual (Common) ●...
  • Page 33: Writing To The Cpu Module

    CHAPTER 1 BASIC PROCEDURE FOR PROGRAMMING 1.5.2 Writing to the CPU module Open the "Online Data Operation" dialog box. In this chapter, a project is written to the program memory. [Online] [Write to PLC...] 2) Selecting this will automatically select the parameter and program checkboxes.
  • Page 34: Checking An Operation Of The Cpu Module

    Checking an Operation of the CPU Module To check an operation, execute the program written to the CPU module. In this chapter, operation is checked through the monitoring screen of GX Works2. (1) Executing a program Before operating the CPU module, data written to the CPU module must be validated. To validate, power off and then on or reset the CPU module.
  • Page 35 CHAPTER 1 BASIC PROCEDURE FOR PROGRAMMING (2) Checking operation Conductivity and power distribution status of contacts and coils can be checked by switching GX Works2 to the monitor mode. [Online] [Monitor] [Start Monitoring] When X0 and X1 are turned on, Y10 turns on. (to turn on X0 and X1, place the cursor on them and double-click while holding the key.) While contacts and coils are conducting, they are shown in blue.
  • Page 36: Saving A Project

    Saving a Project To save a project, open the "Save As" dialog box. [Project] [Save As...] Item Description Enter the storage destination folder (drive or path) of the workspace. Folders can be browsed for selection by Save Location clicking the button.
  • Page 37: Chapter 2 Application Of Programming

    CHAPTER 2 APPLICATION OF PROGRAMMING CHAPTER 2 APPLICATION OF PROGRAMMING Memory and Files 2.1.1 Memory configuration and storable data Memory configuration differs depending on the CPU module (refer to the following). CPU module Memory configuration Q00UJCPU Program memory, standard ROM Q00UCPU, Q01UCPU Program memory, standard RAM, standard ROM Program memory, standard RAM, standard ROM, memory card...
  • Page 38 (c) Transfer confirmation to the program memory Program transfer to the program memory can be checked by the following. • Checking the status in the progress screen The following figure is the progress screen in a programming tool. • Checking with the special relay and the special register The status can be checked using SM681 and SD681.
  • Page 39 CHAPTER 2 APPLICATION OF PROGRAMMING (4) Memory card This memory is used to extend memory in a CPU module. Three types of memory cards are applicable. • SRAM card • Flash card • ATA card (a) SRAM card Data can be read from or written to a file register file stored in an SRAM card by sequence programs. This card is used when: •...
  • Page 40 (6) Memory capacities and necessity of formatting The following tables list the memory capacities and necessity of formatting of each memory. Format a memory that requires formatting using a programming tool before use. Memory Q03UD/Q03 Q04UDH/Q0 Q06UDH/Q0 Q00UJCPU Q00UCPU Q01UCPU Q02UCPU Formatting device...
  • Page 41 CHAPTER 2 APPLICATION OF PROGRAMMING Q04UDVCPU/ Q06UDVCPU/ Q13UDVCPU/ Q26UDVCPU/ Q03UDVCPU Formatting Memory device Q04UDPVCPU Q06UDPVCPU Q13UDPVCPU Q26UDPVCPU 120K bytes 160K bytes 240K bytes 520K bytes 1040K bytes Program memory Necessary (30K steps) (40K steps) (60K steps) (130K steps) (260K steps) Standard ROM 1025.5K bytes 2051K bytes...
  • Page 42 (7) Memory and data to be stored The following table lists data that can be stored in each memory. :Required, :Storable, :Not storable × Memory Memory card Memory CPU module built-in memory card (RAM) (ROM) card (SD) Program Standard Standard Flash SD memory File name and...
  • Page 43 CHAPTER 2 APPLICATION OF PROGRAMMING Memory Memory card Memory CPU module built-in memory card (RAM) (ROM) card (SD) Program Standard Standard Flash SD memory File name and SRAM card Item Remarks memory card card card extension Drive 0 Drive 3 Drive 4 Drive 1 Drive 2...
  • Page 44: Parameter-Valid Drive

    2.1.2 Parameter-valid drive CPU modules operate according to parameter settings. Systems automatically select parameters from those stored in the drives for CPU module operation, according to the following priority order. A user does not have to select them. (1) Priority of the parameter-valid drives The CPU module operates according to parameters stored in a higher priority drive.
  • Page 45 CHAPTER 2 APPLICATION OF PROGRAMMING (2) When to determine valid parameters The CPU module automatically searches for parameters in the following timing and operates by the settings of the parameters stored in the drives: • the CPU module is powered off and then on, or •...
  • Page 46: Files

    2.1.3 Files The files written to the CPU module have information such as a file name, file size, and written date. These information can be checked on the window displayed by selecting [Read from PLC] from the menu of a programming tool. [Online] [Read from PLC...] Item...
  • Page 47 CHAPTER 2 APPLICATION OF PROGRAMMING (1) Precautions for handling files (a) Power-off or reset during file operation If the CPU module is powered off or is reset during file operation, files in each memory remain as is. (To hold files in the memory card or SD memory card used, do not remove the card during power-off. Power off and on the CPU module with the card being inserted.) When the programmable controller is powered off during an operation in which a file is moved, the data in operation are held in the internal memory of the CPU module.
  • Page 48 (2) File size The size of a file used in the CPU module depends on the file type. When a file is written to the memory area, the unit of the stored file size depends on the CPU module and memory area to be written. Page 50, Section 2.1.3 (4)) Calculate the rough size of each file with reference to the following table.
  • Page 49 CHAPTER 2 APPLICATION OF PROGRAMMING File type File size (unit: byte) • CPU modules other than the High-speed Universal model QCPU and Universal model Process CPU: 74 + 8 + (total comment data size of each device) • High-speed Universal model QCPU and Universal model Process CPU: Device comment 74 + 72 + 8 + (total comment data size of each device) Comment data size per device = 10 + 10240 ×...
  • Page 50 File type File size (unit: byte) 68 + (34 × (N + 1) + 34 × M) + L System information file for CPU • N: Number of target drives module data backup/restoration • M: Number of target files • L: Total size of file names of target files (including punctuation mark (.) and extension) 64 + (6+ (a ×...
  • Page 51 CHAPTER 2 APPLICATION OF PROGRAMMING (3) Program file structure A program file consists of a file header, execution program, and reserved area for online change. Program file structure 37 steps (default) File header (39 steps (Q50/Q100UDEHCPU)) Execution program These areas are reserved in increments of file size units.
  • Page 52 (4) Memory capacity When a file is written to the memory area, the unit of the stored file depends on the CPU module and memory area to be written. This unit is referred to as a file size unit. (a) File size unit for each memory area The following table lists the file size unit of the CPU module and memory area to be written.
  • Page 53 CHAPTER 2 APPLICATION OF PROGRAMMING (c) Calculation example of memory capacity The following describes a calculation example of memory capacity when parameters and a program are written to the program memory. • Conditions 1) CPU module to be written: Q26UDHCPU 2) Writing file: Table below File name File size...
  • Page 54: Base Unit Assignment

    Base Unit Assignment 2.2.1 Base mode Use this mode when assigning the number of available slots to the main base unit and extension base units. The following two modes are available. • Auto mode • Detail mode (1) Auto mode Use this mode when assigning the number of slots equal to that on the base unit used.
  • Page 55 CHAPTER 2 APPLICATION OF PROGRAMMING (b) Setting the number of slots smaller than the actual one Set the smaller number than the actual number of slots when slots with no module mounted need not be recognized. Four slots from the right end of the base unit will be the prohibited slots when using a 12-slot base unit and setting the number of available slots to eight.
  • Page 56: Base Unit Assignment Setting

    2.2.2 Base unit assignment setting Set base units on the I/O Assignment tab of the PLC parameter dialog box. Item Description Auto Base Mode Select a mode for base unit assignment either from auto mode or detail mode. Detail Base Model Name Enter the model names of base units, power supply modules, and extension cables to Power Model Name be used within 16 characters for reference or when printing out parameters.
  • Page 57: I/O Number Assignment

    CHAPTER 2 APPLICATION OF PROGRAMMING I/O Number Assignment The I/O number indicates addresses used for sequence programs in the following cases. • Input of on/off data to the CPU module • Output of on/off data from the CPU module to the external device (1) Input and output of on/off data The input (X) is used to input on/off data to the CPU module, and the output (Y) is used to output on/off data from the CPU module.
  • Page 58: Concept Of I/O Number Assignment

    2.3.1 Concept of I/O number assignment The CPU module assigns I/O numbers at power on or reset, according to the I/O assignment setting. (1) I/O number assignment The following figure shows an example of I/O number assignment to base units in the system where the CPU module is mounted on the main base unit.
  • Page 59 CHAPTER 2 APPLICATION OF PROGRAMMING (2) I/O assignment on a remote I/O stations The devices of input (X) and output (Y) in the CPU module can be assigned to I/O modules and intelligent function modules, which allows to control the modules in the remote I/O system such as CC-Link IE Field Network, MELSECNET/H remote I/O network and CC-Link.
  • Page 60 (b) Precautions for using remote station I/O numbers • Setting for future extension When the input (X) and output (Y) of the CPU module are used for the I/O numbers on the remote station, consider future extension of I/O modules and/or intelligent function modules on the CPU module side. Input/output (X/Y) X/Y0 I/O numbers used by I/O modules/intelligent function...
  • Page 61: Setting I/O Numbers

    CHAPTER 2 APPLICATION OF PROGRAMMING 2.3.2 Setting I/O numbers Set the I/O numbers on the I/O Assignment tab. (1) Purpose of I/O number assignment (a) Reserving points for future module changes The number of points can be flexibly set so that the I/O number modification can be avoided when changing the current module to another in the future.
  • Page 62 (2) I/O assignment The I/O assignment is set on the I/O Assignment tab of the PLC parameter dialog box. On the I/O Assignment tab, the following items can be set for each slot on the base unit. • "Type" (module type) •...
  • Page 63 CHAPTER 2 APPLICATION OF PROGRAMMING (3) Precautions (a) Type setting The type set in the I/O Assignment tab must be the same as that of the mounted module. Setting a different type may cause incorrect operation. For an intelligent function module, the number of I/O points must also be the same to the I/O assignment setting.
  • Page 64 (c) Start XY setting When the start XY has not been entered, the CPU module automatically assigns it. For this reason, the start XY setting of each slot may be duplicated with the one assigned by the CPU module in the case of 1) or 2) below.
  • Page 65 CHAPTER 2 APPLICATION OF PROGRAMMING (d) When using AnS/A series compatible extension base units When using the Q5B/Q6B in combination with the AnS/A series compatible extension base units, QA1S5B, QA1S6B, and QA6B, take the following precautions. • Connect the extension base units in the order of the Q5B/Q6B, QA1S5B/QA1S6B, QA6B from the closest position to the main base unit.
  • Page 66: I/O Number Setting Example

    2.3.3 I/O number setting example I/O number setting examples are provided as follows. (1) Changing the number of points of an empty slot from 16 to 32 Reserve 32 points for the currently empty slot (Slot 3) so that the I/O numbers of Slot No. 4 and later do not change when a 32-point input module is mounted there in the future.
  • Page 67 CHAPTER 2 APPLICATION OF PROGRAMMING (c) I/O number assignment after the I/O assignment setting Q38B Slot number The number of I/O points is changed from 16 points to 32 points. Number of I/O points points points points points points points points points X00 X20...
  • Page 68: Checking I/O Numbers

    (b) I/O assignment Set "200" for "Start XY" of the slot 3 and "70" for "Start XY" of the slot 4 in the I/O Assignment tab of the PLC parameter dialog box. (When the start I/O number is not set, the I/O number following the slot 3 will be set.) (c) I/O number assignment after the I/O assignment setting Q38B …Slot number...
  • Page 69: Scan Time Structure

    CHAPTER 2 APPLICATION OF PROGRAMMING Scan Time Structure A CPU module sequentially performs the following processing in the RUN status. Scan time is the time required for all processing and executions to be performed. Power-on or reset Page 67, Section 2.4.1 Initial processing Page 68, Section 2.4.2 Refresh processing...
  • Page 70: I/O Refresh (Refresh Processing With Input/Output Modules)

    If any parameter or program is changed in the STOP status, reset the CPU module using the RUN/STOP/RESET switch. RUN/STOP/RESET switch RESET STOP 2.4.2 I/O Refresh (Refresh Processing with Input/Output Modules) The CPU module performs the following before sequence program operations. •...
  • Page 71: Program Operation

    CHAPTER 2 APPLICATION OF PROGRAMMING 2.4.3 Program Operation The CPU module repeatedly executes the program stored in the module from step 0 to the END or FEND instruction. This program is referred to as a main routine program. This program is executed from step 0 in every scan. Step 0 Program Main routine program...
  • Page 72: End Processing

    2.4.4 END Processing The CPU module performs refresh processing with network modules and communication with external devices. END processing includes the following. • Refresh with network modules • Refresh with CC-Link IE Field Network Basic • Auto refresh with intelligent function module •...
  • Page 73: Operation Processing In The Run, Stop, Or Pause Status

    CHAPTER 2 APPLICATION OF PROGRAMMING Operation Processing in the RUN, STOP, or PAUSE Status There are three types of operating status of the CPU module. • RUN status • STOP status • PAUSE status This section describes program operation processing in the CPU module based on its operating status. (1) Operation processing in the RUN status RUN status is a status where sequence program operations are repeatedly performed in a loop between the step 0 and the END (FEND) instruction.
  • Page 74 (4) Operation processing when operating status of the CPU module changed CPU module operation processing RUN/STOP Sequence Device memory status program operation External output M, L, S, T, C, D processing The CPU module saves the The CPU module saves the The CPU module output (Y) status The CPU module holds the device...
  • Page 75: Operation Processing During Momentary Power Failure

    CHAPTER 2 APPLICATION OF PROGRAMMING Operation Processing during Momentary Power Failure When the input voltage supplied to the power supply module drops below the specified range, the CPU module detects a momentary power failure and performs the following operation. (1) When a momentary power failure occurs for a period shorter than the allowable power failure time The CPU module registers error data and suspends the operation processing.
  • Page 76: Data Clear Processing

    Data Clear Processing This section describes how to clear data in the CPU module and settings required for clearing latch data. (1) Clearing data Data in the CPU module are cleared when the reset operation (using the RUN/STOP/RESET switch or by powering off and on the module) is performed.
  • Page 77 CHAPTER 2 APPLICATION OF PROGRAMMING (4) Clearing latch data (a) Data in the latch clear operation enable range (Latch (1) Start/End) Perform either of the following. • Remote latch clear Perform the operation using a programming tool. ( Page 137, Section 3.6.4) Note 2.2 •...
  • Page 78: I/O Processing And Response Delay

    I/O Processing and Response Delay The CPU module performs I/O processing in the refresh mode. Using the direct access input/output in a sequence program, however, allows the CPU module to perform I/O processing in the direct mode at the time of each instruction execution. This section describes these I/O processing modes of the CPU module and response delays.
  • Page 79: Refresh Mode

    CHAPTER 2 APPLICATION OF PROGRAMMING 2.8.1 Refresh mode In a refresh mode, the CPU module batch-performs I/O processing before the start of sequence program operations. Input of on/off data by input refresh Device memory Output of on/off data by output refresh On/off data On/off data...
  • Page 80 (1) Outline of the processing The following describes the details of the refresh processing. CPU module Remote Network input refresh CPU (operation module area processing area) Input Built-in network Programming Input (X) refresh Input (CC-Link IEF Basic) tool input device module area memory...
  • Page 81 CHAPTER 2 APPLICATION OF PROGRAMMING (2) Response delay An output response which corresponds to the status change in the input module delays for two scans (maximum) depending on the on timing of an external contact. [Example] A program that turns on the output Y5E when the input X5 turns on.
  • Page 82: Direct Mode

    2.8.2 Direct mode In a direct mode, the CPU module performs I/O processing when each instruction is executed in a sequence program. Input of on/off data upon instruction execution Device memory Output of on/off data upon instruction execution On/off data DX10 On/off data...
  • Page 83 CHAPTER 2 APPLICATION OF PROGRAMMING Item Description The OR processing is performed with the input information of the input module (1)) and the input data of the Execution of an input programming tool input area (2)) or remote input refresh area. The result is stored in the input (X) device memory contact instruction and is used as input data (3)) to execute the program.
  • Page 84: Interrupt Program

    Interrupt Program An interrupt program is from an interrupt pointer (I ) to the IRET instruction. Main routine program Indicates the end of the main routine FEND program. Interrupt program (I0) IRET Interrupt program (I29) IRET Interrupt pointer The interrupt pointer (I ) number varies depending on the interrupt factor. ( Page 410, Section 4.11 When an interrupt factor occurs, the interrupt program of the interrupt pointer number corresponding to that factor...
  • Page 85 CHAPTER 2 APPLICATION OF PROGRAMMING Only one interrupt program can be created with one interrupt pointer number. FEND Interrupt program (I0) IRET Interrupt program (I29) IRET (1) Programming of interrupt programs Create interrupt programs between the FEND and END instructions in the main routine program. Program A Main routine program...
  • Page 86 (a) Before executing an interrupt program Before executing the interrupt programs of the interrupt pointers I0 to I15, I28 to I31, I45, I49, and I50 to I255, enable interrupts with the EI instruction. For details on the EI instruction, refer to the following. MELSEC-Q/L Programming Manual (Common Instruction) (b) Restrictions on programming •...
  • Page 87 CHAPTER 2 APPLICATION OF PROGRAMMING (2) Operation when an interrupt factor occurs There are restrictions on interrupt programs depending on the interrupt factor occurrence timing. (a) When an interrupt factor occurs before the interrupt program execution status is enabled The CPU module stores the interrupt factor occurred. As soon as the interrupt program execution status is enabled, the CPU module executes the interrupt program corresponding to the stored interrupt factor.
  • Page 88 (c) When multiple interrupt factors occur simultaneously in the interrupt program execution enabled status The interrupt programs are executed in the order of interrupt pointers (I ) with high priority. Page 411, Section 4.11.1) Other interrupt programs have to wait until processing of the interrupt program being executed is completed. Simultaneous occurrence of Interrupt multiple interrupt factors...
  • Page 89 CHAPTER 2 APPLICATION OF PROGRAMMING (f) Interrupt during END processing When the constant scan function is used and an interrupt factor occurs during the waiting time in END processing, an interrupt program corresponding to the interrupt factor is executed. (g) When an interrupt factor occurs during access to another module When an interrupt factor occurs during access to another module (during service processing or instruction processing), the interrupt program becomes standby status until the service processing or the instruction in execution is completed.
  • Page 90: Settings When Program Is Divided

    2.10 Settings When Program is Divided When one sequence program is divided into multiple programs, execution conditions, such as executing a program only once at start-up or executing a program at fixed intervals, can be set for each program. (1) Control by multiple programs dividing one program The CPU module can store multiple programs divided on the basis of each control unit.
  • Page 91 CHAPTER 2 APPLICATION OF PROGRAMMING Settings required for execution of multiple programs To execute multiple programs, names (file names) and execution conditions of the programs must be set. Set them in the Program tab of the PLC parameter dialog box. Item Description Enter the name (file name) of the program to be executed in the CPU module.
  • Page 92 (a) File usability setting Note 2.3 For each program, determine whether to use the file specified for the local device in the PLC file tab of the PLC parameter dialog box.Note 2.3 The default is set to "Use PLC File Setting". When "Not Used"...
  • Page 93 CHAPTER 2 APPLICATION OF PROGRAMMING (3) Program sequence in the CPU module The following figure shows the program sequence after the CPU module is powered on or its status is changed from STOP to RUN. Powered off on/STOP Executed only once when Initial execution the CPU module is powered type program...
  • Page 94: Initial Execution Type Program

    2.10.1 Initial execution type program Initial execution type program is executed only once when the CPU module is powered on or its operating status is changed from STOP to RUN. This type of program can be used as a program that need not be executed from the next scan and later once it is executed, like initial processing to an intelligent function module.
  • Page 95 CHAPTER 2 APPLICATION OF PROGRAMMING (b) Initial scan time Initial scan time is the sum of the execution time of initial execution type program and the END processing time. When multiple programs are executed, the initial scan time will be the sum of the time required for completing all the initial execution type program execution and the END processing time.
  • Page 96: Scan Execution Type Program

    2.10.2 Scan execution type program Scan execution type program is executed once in every scan, starting in the next scan of which the initial execution type program is executed and later. STOP Power supply ON 1st scan 2nd scan 3rd scan 4th scan END processing Initial execution type program...
  • Page 97: Stand-By Type Program

    CHAPTER 2 APPLICATION OF PROGRAMMING 2.10.3 Stand-by type program Stand-by type program is executed only when its execution is requested. This type of program can be changed to any desired execution type by a sequence program instruction. (1) Application (a) Program library Stand-by type program is used as a program library, a collection of subroutine programs and/or interrupt programs, and managed separately from a main routine program.
  • Page 98 Creating subroutine and/or interrupt programs in a single stand-by type program When creating subroutine and/or interrupt programs in a single stand-by type program, start the program from the step 0. The FEND instruction used in creation of a subroutine or interrupt program is not required after a main routine program.
  • Page 99 CHAPTER 2 APPLICATION OF PROGRAMMING (b) Changing the program execution type using instructions Use the PSCAN, PSTOP, or POFF instruction to change a program execution type. ( Page 102, Section 2.10.5) • The PSCAN instruction changes the program "DEF" to a scan execution type program. •...
  • Page 100: Fixed Scan Execution Type Program

    2.10.4 Fixed scan execution type program Fixed scan execution type program is a program executed at specified time intervals. This type of programs, unlike interrupt programs, can be interrupted in units of files without interrupt pointers or the IRET instruction. For the restrictions on programming, refer to Page 84, Section 2.9 (1) (b).
  • Page 101 CHAPTER 2 APPLICATION OF PROGRAMMING (1) Processing (a) When two or more fixed scan execution type programs exist Each fixed scan execution type program is executed at specified time intervals. If two or more fixed scan execution type programs reach the specified time at the same timing, programs will be executed in ascending order of the numbers set in the Program tab of the PLC parameter dialog box.
  • Page 102 (d) When the execution condition is established during END processing When the execution condition is established during the constant scan execution or the waiting time of the END instruction, a fixed scan execution type program is executed. Constant scan Fixed scan interval END processing Condition established...
  • Page 103 CHAPTER 2 APPLICATION OF PROGRAMMING (3) Precautions (a) Execution interval of a fixed scan execution type program Execution interval of a fixed scan execution type program may increase from the preset interval depending on the time set for disabling interrupts by the DI instruction (interrupt disabled time). If the interrupt disabled time by the DI instruction becomes too long, use an interrupt program by fixed scan interrupt (I28 to I31) instead of a fixed scan execution type program.
  • Page 104: Changing The Program Execution Type

    2.10.5 Changing the program execution type Changing the execution type using instructions (a) Instructions used to change the execution type The execution type of sequence programs can be changed using instructions even during execution. Use the PSCAN, PSTOP, or POFF instruction to change the execution type. PSCAN instruction Initial execution...
  • Page 105 CHAPTER 2 APPLICATION OF PROGRAMMING Execution type change example In a control program, a standby type program matching the preset condition is changed to a scan execution type program in the course of program execution. An unused scan execution type program can also be changed to a standby type program. The following figure shows an example where the execution type of the standby type programs "ABC", "DEF", "GHI", and "JKL"...
  • Page 106: Boot Operation

    2.11 Boot Operation Note 2.4 This section describes methods for executing the program stored in a memory card or SD memory card.Note 2.4 (1) Executing the program in a memory card or SD memory card To execute the program in a memory card or SD memory card, boot the program into the program memory. To execute the boot operation, set the boot target program in the Boot file tab of the PLC parameter dialog box.
  • Page 107 CHAPTER 2 APPLICATION OF PROGRAMMING (3) Procedure before boot operation The following is the procedure to store files to be booted in a memory card or SD memory card before the boot operation. Create a program. Configure the setting for a boot operation. Set the names of files to be booted to the program memory in the Boot File tab of the PLC parameter dialog box.
  • Page 108 (5) Precautions (a) Storage location of parameters • Store the parameter file set in the Boot file tab of the PLC parameter dialog box to the memory card or SD memory card. If it is stored in the program memory or standard ROM, the CPU module ignores the settings.
  • Page 109: Programming Language

    CHAPTER 2 APPLICATION OF PROGRAMMING 2.12 Programming Language Programming tools support the following programming languages. • Ladder • Structured text • SFC • Structured ladder (1) Ladder A graphical programming language used for contacts and coils. For a project with a label, the inline ST function can be used in the ladder editor which allows a user to edit structured text programs.
  • Page 110: Communications With Intelligent Function Modules

    2.13 Communications with Intelligent Function Modules The intelligent function module allows the CPU module to process analog quantity and high-speed pulses that cannot be processed by the I/O modules. The following is some of the intelligent function modules. • Serial communication module •...
  • Page 111 CHAPTER 2 APPLICATION OF PROGRAMMING (2) Communications with the FROM and TO instructions The FROM instruction stores data read from the buffer memory of the intelligent function module to the specified device. The TO instruction writes data stored in the specified device to the buffer memory of the intelligent function module.
  • Page 112: Access To The Ans/A Series Special Function Modules

    2.14 Access to the AnS/A Series Special Function Modules Note 2.5 (1) Effect of high-speed access to the special function module Processing time in the Q series CPU module has been speeded up so that the scan time is shortened. If the FROM or TO instruction is frequently executed to a special function module in short scan, processing in the special function module may not be completed correctly.Note 2.5...
  • Page 113: Chapter 3 Functions

    PART 2 FUNCTIONS In this part, functions of the CPU module are described. CHAPTER 3 FUNCTIONS ..........112...
  • Page 114: Function List

    CHAPTER 3 FUNCTIONS This chapter describes the functions of the Universal model QCPU. Function List The following table lists the functions of the Universal model QCPU. : Supported, Partly supported, : Not supported × QnUDV Q00U Q00UCPU, Q02U QnUD(H) QnUDE(H) CPU, Function Description...
  • Page 115 CHAPTER 3 FUNCTIONS QnUDV Q00U Q00UCPU, Q02U QnUD(H) QnUDE(H) CPU, Function Description Reference JCPU Q01UCPU QnUDP VCPU Sets whether to stop or continue operations in the CPU module H/W error time PLC Page 142, when a hardware error has operation mode setting Section 3.9 occurred in an intelligent function module or interrupt module.
  • Page 116 QnUDV Q00U Q00UCPU, Q02U QnUD(H) QnUDE(H) CPU, Function Description Reference JCPU Q01UCPU QnUDP VCPU Protects data in the CPU module Page 206, Security function against tampering and theft by Section 3.19 unauthorized persons. Prohibits writing/reading data Page 206, Password registration to/from each file in the CPU ×...
  • Page 117 CHAPTER 3 FUNCTIONS QnUDV Q00U Q00UCPU, Q02U QnUD(H) QnUDE(H) CPU, Function Description Reference JCPU Q01UCPU QnUDP VCPU Restores the error location automatically by using data in the program memory, which are Program cache memory Page 251, stored in the flash ROM, when the auto recovery function Section 3.28 memory check function detects an...
  • Page 118 QnUDV Q00U Q00UCPU, Q02U QnUD(H) QnUDE(H) CPU, Function Description Reference JCPU Q01UCPU QnUDP VCPU Enables MC protocol communications and the following Built-in Ethernet function × × × × functions by using built-in Ethernet ports. Enables the use of FTP (File Transfer Protocol) server function, which transfers files between the File transfer function...
  • Page 119 CHAPTER 3 FUNCTIONS QnUDV Q00U Q00UCPU, Q02U QnUD(H) QnUDE(H) CPU, Function Description Reference JCPU Q01UCPU QnUDP VCPU MELSEC- Writes/reads data by specifying Writing/reading data to/from the station number of the target Programming refresh devices with the × × × station, without considering the Manual specified station number assignment of refresh devices.
  • Page 120 Remark For details on the special relay (SM) and special register (SD) used for each function, refer to the following. QCPU User's Manual (Hardware Design, Maintenance and Inspection)
  • Page 121: Constant Scan

    CHAPTER 3 FUNCTIONS Constant Scan Scan time differs depending on the execution status of instructions used in sequence programs. This function repeatedly executes sequence programs keeping their scan time constant. (1) Application I/O refresh is performed before every sequence program execution. This function is used to maintain I/O refresh intervals constant even if the execution time of each sequence program differs.
  • Page 122 (a) Condition The constant scan time needs to satisfy the following relational expression. (WDT setting time) > (Constant scan setting time) > (Sequence program maximum scan time) If the sequence program scan time is longer than the constant scan setting time, the CPU module detects "PRG.
  • Page 123 CHAPTER 3 FUNCTIONS (4) Constant scan accuracy The constant scan accuracy is 0.01ms. However, the constant scan time may increase in the following cases. (a) When interrupt program or fixed scan execution type program is executed Interrupts are disabled while an interrupt program or fixed scan execution type program is executed. Even if the constant scan time runs out during execution of an interrupt program or fixed scan execution type program, the constant scan cannot be finished.
  • Page 124: Latch Function

    Latch Function This function holds data in each device of the CPU module when: • the CPU module is powered off and then on, • the CPU module is reset, or • power failure occurs exceeding the allowable momentary power failure time. Data in devices of the CPU module are cleared and set back to their default (bit device: off, word device: 0) if the latch function is not used.
  • Page 125 CHAPTER 3 FUNCTIONS (4) Latch interval setting Data are latched at each scan or at set intervals. Latch timing is set in parameter.Note 3.1 (a) Each scan Latch data processing is performed during END processing of each scan. Since device data is latched every scan, the CPU module holds the latest device data at all times.
  • Page 126 (b) Latch interval setting (High-speed Universal model QCPU and Universal model Process CPU only) A latch timing is set. ( Page 446, Appendix 1.2.8) Project window [Parameter] [PLC Parameter] Device " " (6) Device data latch method and influence on the scan time Data latch processing is performed during END processing.
  • Page 127: Output Mode At Operating Status Change (Stop To Run)

    CHAPTER 3 FUNCTIONS Output Mode at Operating Status Change (STOP to RUN) When the operating status is switched from RUN to STOP, the CPU module internally stores the outputs (Y) in the RUN status and turns off all the outputs (Y). The status of the outputs (Y) when the CPU module is changed from STOP to RUN can be selected from the following two options in the parameter setting.
  • Page 128 (2) Operation when the operating status is changed from STOP to RUN (a) Previous state (Default) The CPU module outputs the output (Y) status immediately before changed to the STOP status and then performs sequence program operations. (b) Recalculate (output is 1 scan later) All outputs are turned off.
  • Page 129: Clock Function

    CHAPTER 3 FUNCTIONS Clock Function This function reads the internal clock data of the CPU module by a sequence program and uses it for time management. The clock data is used for time management required for some functions in the system, such as storing date into the error history.
  • Page 130 (3) Changing and reading clock data Changing clock data Clock data can be changed using either a programming tool or a program. • Changing clock data by programming tool Open the "Set Clock" dialog box. [Online] [Set Clock...] • Changing clock data by a program Use the DATEWR instruction (instruction for writing clock data) to change the clock data.
  • Page 131 CHAPTER 3 FUNCTIONS (b) Reading clock data To read clock data to the data register, use either of the following instructions in the program. • DATERD (instruction for reading clock data) • S(P).DATERD (instruction for reading extended clock data) The following figure shows a program for storing clock data that are read using the DATERD instruction to D10 to D16.
  • Page 132 (4) Precautions (a) Initial clock data setting No clock data is set at the factory. Clock data is required for some functions of the CPU module used in the system, such as error history data storage, or for intelligent function modules. Before using the CPU module for the first time, set the time correctly.
  • Page 133: Remote Operation

    CHAPTER 3 FUNCTIONS Remote Operation The remote operation can change the operating status of the CPU module externally (using a programming tool, external devices in the MC protocol, link dedicated instructions for a CC-Link IE module or a MELSECNET/H module, or remote contacts).
  • Page 134 (3) Executing method (a) Using a RUN contact Set a RUN contact in the PLC system tab of the PLC parameter dialog box. The settable device range is X0 to 1FFF. The remote RUN/STOP operation can be performed by turning on/off the set RUN contact. •...
  • Page 135 CHAPTER 3 FUNCTIONS (4) Precautions Pay attention to the following since the STOP status is given priority over other status. (a) Timing of changing to the STOP status The operating status of the CPU module is changed to STOP when the remote STOP operation is performed from any one of the following: RUN contact, programming tool, or an external device using the MC protocol.
  • Page 136: Remote Pause

    3.6.2 Remote PAUSE This operation changes the operating status of the CPU module externally to PAUSE, keeping the RUN/STOP/RESET switch of the CPU module in the RUN position. PAUSE status is status where sequence program operations in the CPU module are stopped, holding the status (on or off) of all outputs (Y). (1) Application This operation is useful, especially during the process control, to hold the on status of outputs (Y) even after the operating status of the CPU module is switched from RUN to STOP.
  • Page 137 CHAPTER 3 FUNCTIONS (c) Using an external device in the MC protocol Use MC protocol commands. For commands, refer to the following. MELSEC Communication Protocol Reference Manual • The PAUSE contact (SM204) turns on during END processing of the scan where the remote PAUSE command is executed.
  • Page 138: Remote Reset

    3.6.3 Remote RESET This operation resets the CPU module externally when the CPU module is in the STOP status. Even if the RUN/STOP/RESET switch is in the RUN position, this operation can be performed when the module is stopped due to an error detected by the self-diagnostics function.
  • Page 139: Remote Latch Clear

    CHAPTER 3 FUNCTIONS 3.6.4 Remote latch clear This function resets the latched device data from a programming tool when the CPU module is in the STOP status. (1) Application This function is useful in the following cases if used together with the remote RUN/STOP operation. •...
  • Page 140: Relationship Between Remote Operation And Run/Stop Status Of The Cpu Module

    3.6.5 Relationship between remote operation and RUN/STOP status of the CPU module (1) Relationship between remote operation and RUN/STOP status of the CPU module The following table lists the operating status of the CPU module according to the combination of remote operation and RUN/STOP status of the CPU module.
  • Page 141: Q Series-Compatible Module Input Response Time Selection (I/O Response Time)

    CHAPTER 3 FUNCTIONS Q Series-compatible Module Input Response Time Selection (I/O Response Time) This function is used to change the input response time for each Q series-compatible module. The following table lists the modules available for input response time change and selectable time settings. Module name Type Settable time...
  • Page 142 (1) Input response time setting Set input response time values in the I/O Assignment tab of the PLC parameter dialog box. Set I/O assignment. Click the button. Select an input response time. (2) Precautions (a) When input response time is shortened The shorter the input response time is, the more the CPU module is susceptible to noise.
  • Page 143: Error Time Output Mode Setting

    CHAPTER 3 FUNCTIONS Error Time Output Mode Setting This function determines the output mode (clear or hold) from the CPU module to the Q series-compatible output modules, I/O combined modules, intelligent function modules, and/or interrupt module when a stop error occurs in the CPU module.
  • Page 144: H/W Error Time Plc Operation Mode Setting

    H/W Error Time PLC Operation Mode Setting This setting determines whether to stop or continue the CPU module operation when a hardware error (CPU module detects SP.UNIT DOWN) occurs in the intelligent function module or the interrupt module. (1) H/W error time PLC operation mode setting Set the H/W error time PLC operation mode in the I/O Assignment tab of the PLC parameter dialog box.
  • Page 145: Intelligent Function Module Switch Setting

    CHAPTER 3 FUNCTIONS 3.10 Intelligent Function Module Switch Setting Switches of a Q series-compatible intelligent function module or an interrupt module can be set in a programming tool. (1) Writing the switch settings The switch settings will be written from the CPU module to each intelligent function module and interrupt module when: •...
  • Page 146 (2) Switch setting for an intelligent function module or an interrupt module Set the switch details in the I/O Assignment tab of the PLC parameter dialog box. Set I/O assignment. Click the button. Set the switch details for an intelligent function module or an interrupt module.
  • Page 147: Monitor Function

    CHAPTER 3 FUNCTIONS 3.11 Monitor Function Programs and device data of the CPU module, and intelligent function module status can be read from a programming tool using this function. : Available, : Available with restrictions, × : Not available Availability Built-in Monitor function Reference...
  • Page 148: Monitor Condition Setting

    3.11.1 Monitor condition setting Note 3.2 Note 3.2 This setting is used to monitor data in the CPU module under a specified condition. (1) Setting method There are two kinds of monitor condition setting. • Monitor execution condition setting • Monitor stop condition setting For the setting method, refer to the following.
  • Page 149 CHAPTER 3 FUNCTIONS (a) When only a step number is specified Monitor data is collected when the status immediately before execution of the specified step becomes the specified status. The following status can be specified. • When the operation of the specified step changes from the non-execution status to the execution status: <>...
  • Page 150 (b) When only a device is specified Either word device or bit device can be specified. • When a word device is specified Monitor data is collected when the current value of the specified word device becomes the specified value. Enter the current value (in decimal or hexadecimal).
  • Page 151 CHAPTER 3 FUNCTIONS (2) Precautions (a) Files to be monitored When monitor conditions are set, a programming tool monitors the file displayed on the screen. Select [Online]  [Read from PLC] in the programming tool and read data from the CPU module so that the file name in the CPU module to be monitored matches the file name displayed on the screen of the programming tool.
  • Page 152 (j) Monitor operation with monitor condition setting When monitor operation with monitor condition setting is performed, other applications on the same personal computer cannot execute any online function using the same route for the monitor operation. The following applications must be noted. •...
  • Page 153: Local Device Monitor/Test

    CHAPTER 3 FUNCTIONS 3.11.2 Local device monitor/test Note 3.3 This operation is useful for debugging a program, monitoring local devices ( Page 420, Section 6.2) in the program monitored by a programming tool. Note 3.3 (1) Monitoring a local device The following table lists the monitor operation when the CPU module executes three programs "A", "B", and "C"...
  • Page 154 When local devices are set to be monitored and the program "B" is displayed for monitoring, the local device(s) used in the program "B" can be monitored. CPU module Program execution (A MOVP K2 D0 Program: A MOVP K3 D99 MOVP K4 D0 Program: B MOVP K8 D99...
  • Page 155 CHAPTER 3 FUNCTIONS (2) Monitoring procedure The following shows the local device monitoring procedure. Connect a personal computer to the CPU module. Display a program in ladder mode. Select [Online] Switching to the [Monitor] [Monitor mode]. monitor mode Select [Local device monitor] Setting of the local from the monitor window.
  • Page 156: External Input/Output Forced On/Off

    3.11.3 External input/output forced on/off Note 3.4 The external input/output can forcibly be turned on/off using a programming tool. The information registered for forced on/off can be cancelled by an operation from a programming tool.Note 3.4 (1) Input/output operation when a forced on/off operation is performed There are three kinds of forced on/off operations: forced on ("Set forced ON"), forced off ("Set forced OFF"), and forced on/off cancellation ("Cancel it").
  • Page 157 CHAPTER 3 FUNCTIONS (2) Specifications (a) CPU module status where input/output can forcibly be turned on/off Forced on/off can be registered regardless of the operating status (RUN/STOP) of the CPU module. Note, however, that only input can be forcibly turned on/off during a stop error. The CPU module outputs on/off data only to Y device.
  • Page 158 (d) External input/output forced on/off timing The following table lists the external input/output forced on/off timing. Refresh area Input Output • During END processing (output refresh) • During END processing (input refresh) • At execution of the COM instruction (output •...
  • Page 159 CHAPTER 3 FUNCTIONS (e) Cancelling on/off registration data The registered forced ON/OFF data can be canceled by a programming tool. Once the registered data is canceled, the status of the forced on/off registered devices will be as follows. Sequence program operations Sequence program operations Forced on/off registered device (on/off) performed...
  • Page 160 (h) Checking forced on/off execution status The execution status can be checked by: • reading the forced on/off registration status of a programming tool. • flashing of the MODE LED (green), (The MODE LED flashes in green when at least one forced on/off is registered.) or •...
  • Page 161: Executional Conditioned Device Test

    CHAPTER 3 FUNCTIONS 3.11.4 Executional conditioned device test Note 3.5 This function changes a device value within the specified step of a program.Note 3.5 This enables debugging of the specified ladder block without modifying the program. The executional conditioned device test is not available for the SFC program. (1) Operation of the executional conditioned device test A device value will be changed based on the registration data once after the executional conditioned device test setting is registered.
  • Page 162 (2) Available devices and number of settable devices The following table lists available devices and the number of settable devices. Number of Type Available device settable devices X, Y, M, L, B, F, SB, V, SM, T (contact), ST (contact), C (contact), J \X, J Bit device \B, J...
  • Page 163 CHAPTER 3 FUNCTIONS (4) Registering executional conditioned device test settings For how to register executional conditioned device test settings, refer to the following manual. Operating manual for the programming tool used (a) Multiple executional conditioned device test registrations for the same step number Multiple executional conditioned device test settings can be registered for one step number.
  • Page 164 (c) Execution timing Timing to change a device value can be specified. A device value can be changed either before or after an instruction of the specified step is executed. The following figure shows the module operation based on the execution timing.
  • Page 165 CHAPTER 3 FUNCTIONS The following table lists the instructions that do not change device values. Classification Instruction Operation Stop STOP • When the execution condition for an instruction is Jump satisfied. GOEND A device value will not be changed even when the Repeat (Loop) BREAK(P) specified step is executed.
  • Page 166 (5) Checking/disabling executional conditioned device test settings For how to check/disable executional conditioned device test settings, refer to the following. Operating manual for the programming tool used (a) Usage of the executional conditioned device test Usage of the executional conditioned device test can be checked in the special register (SD840). (b) Number of settings that can be disabled simultaneously in one scan Eight executional conditioned device test settings can be disabled simultaneously in one scan.
  • Page 167 CHAPTER 3 FUNCTIONS (8) Precautions (a) Operations from multiple programming tools Executional conditioned device test settings can be registered in the same CPU module from multiple programming tools connected via network. Note, however, that if multiple executional conditioned device test settings are registered with the same device name in the same step, the registration data will be overwritten.
  • Page 168 (e) Online change of the CPU module with executional conditioned device test registration • Online change (ladder mode) If any executional conditioned device test setting has been registered in the ladder block to be changed online, the CPU module disables the corresponding setting. Example 1) Step numbers of registrations 1 to 3 are specified in the executional conditioned device test settings.
  • Page 169 CHAPTER 3 FUNCTIONS • Online change (files) All executional conditioned device test settings registered to the program in the online change target file are disabled. (f) Precautions for specifying an index-modified device If an index-modified device name is specified to register the executional conditioned device test setting, the CPU module does not check whether the specified device is within the setting range.
  • Page 170: Writing Programs While Cpu Module Is In Run Status

    3.12 Writing Programs While CPU Module is in RUN Status There are two ways of writing programs in the RUN status. Online change (ladder mode • Page 168, Section 3.12.1 Online change (files) : • Page 171, Section 3.12.2 Data can also be written in the RUN status using a pointer. ( Page 192, Section 3.15.2) 3.12.1 Online change (ladder mode)
  • Page 171 CHAPTER 3 FUNCTIONS Also, programs can be written in the RUN status from a programming tool connected to another station on the network. Programming tool MELSECNET/H PLC-to-PLC network Change a program with programming tool and write it to the CPU module in the RUN status. (1) Memory for online change A program cache memory (program memory) is available.
  • Page 172 (4) Operations prohibited when programs are written to the CPU module in the RUN status, TC setting value is changed, or data are transferred from a program cache memory to a program memory Refer to Page 173, Section 3.12.3 (2). (5) Instructions that do not operate normally when programs are written to the CPU module in the RUN status Refer to Page 174, Section 3.12.3 (3).
  • Page 173: Online Change (Files)

    CHAPTER 3 FUNCTIONS 3.12.2 Online change (files) This function batch-writes files listed in the following table to the CPU module in the RUN status by online operation from a programming tool. : Can be written, : Cannot be written while being accessed, × : Cannot be written Memory Memory card CPU module built-in memory...
  • Page 174 (1) Availability (a) For the Q00UJCPU, Q00UCPU, and Q01UCPU The function cannot be performed in the following cases. • A program memory does not have enough area for storing a program file to be written. • A program memory stores the maximum number of files that can be stored. (b) For the Q02UCPU, QnUD(H)CPU, and Built-in Ethernet port QCPU Files can be written in the RUN status, regardless of free space in the program memory and the number of files to be stored.
  • Page 175: Precautions For Online Change

    CHAPTER 3 FUNCTIONS 3.12.3 Precautions for online change The following shows precautions for online change. (1) Online change during boot operation When data are written to the CPU module in the RUN status during boot operation, the status of boot source program is not changed.
  • Page 176 (3) Instructions that do not operate normally during online change When data are written to the CPU module in the RUN status, the following instructions do not operate normally. • Rise instruction • SCJ instruction • STMR instruction (a) Rise instruction The rise instruction is not executed when the instruction is in the data written to the CPU module in the RUN status, even if the execution condition (off on) is met.
  • Page 177 CHAPTER 3 FUNCTIONS (b) SCJ instruction When the SCJ instruction is in the data written to the CPU module in the RUN status and the execution condition is on at completion of the writing, a jump to the specified pointer is made without a wait of one scan. Completion of online change [ SCJ P0 ]...
  • Page 178 (c) STMR instruction Note that the STMR instruction operates when the instruction is used within the range written data by the online program change. The STMR instruction will be executed because the data in the ladder block has been changed online. Adding M10 online STMR M100...
  • Page 179 CHAPTER 3 FUNCTIONS When "Execute fall instruction" is checked in the "Options" window of a programming tool, the fall instruction is executed when the instruction is in the data written to the CPU module in the RUN status, even if the execution condition (on off) is not met.
  • Page 180 (4) Writing to the program memory during online change and TC setting value change Due to automatic data transfer to the program memory, the time takes to write data to the CPU module during the RUN status and to change TC setting value extends by the time shown in the following table. Ts: Scan time (s) CPU module Transfer time...
  • Page 181 CHAPTER 3 FUNCTIONS Automatic data transfer to the program memory can be disabled in the "Options" window of the programming tool. To avoid automatic transfer of program memory data, clear the checkbox. (Selected by default.) When the automatic data transfer is disabled, the following message appears after online change. Selecting "Yes"...
  • Page 182: Execution Time Measurement

    3.13 Execution Time Measurement This function displays the processing time of the program being executed. (1) Applications and types This function can be used to know the effect of processing time of each program on the total scan time when the system is adjusted.
  • Page 183: Scan Time Measurement

    CHAPTER 3 FUNCTIONS 3.13.3 Scan time measurement Note 3.8 This function displays the processing time of set program section during ladder monitoring. The time required for the subroutine and interrupt programs can be measured.Note 3.8 (1) Range specification of scan time measurement There are following two types for specifying a scan time measurement range.
  • Page 184 (5) Precautions (a) Measurement range setting Set the measurement range so that "Start step < End step" is satisfied. (b) Minimum unit of measurement time The minimum unit of measurement time is 0.01ms. If the measurement time is less than 0.01ms, 0.000ms is displayed. (c) When steps are specified between the FOR and NEXT instructions Scan time required to execute the program between the specified steps is measured.
  • Page 185 CHAPTER 3 FUNCTIONS • When only the start step is executed The specified end step is not executed by the JMP instruction. Start step: 3 The specified end step JMP P0 is not executed due to the JMP instruction. End step: 9 •...
  • Page 186: Sampling Trace Function

    3.14 Sampling Trace Function Note 3.9 This function samples the data of the specified device at a preset timing and at a preset interval (sampling cycle), and then stores the trace results in the sampling trace file.Note 3.9 (1) Application The change in the device data used in the program during debugging can be checked at a specified timing.
  • Page 187 CHAPTER 3 FUNCTIONS (b) Operation of the special relay • When the sampling trace is executed normally The execution status of the sampling trace can be checked in the special relays below. Number Name Description Turns on when the trace setting in a programming tool is written to the CPU module. The SM800 Trace preparation relay is used to check whether the sampling trace execution is enabled or not.
  • Page 188 • When the sampling trace is interrupted If SM801 (Trace start) is turned off during sampling trace, execution of the sampling trace will be suspended. When the sampling trace is suspended, the trace count is cleared. The sampling trace restarts by turning on SM801.
  • Page 189 CHAPTER 3 FUNCTIONS (8) Precautions (a) Areas where sampling trace can be performed The sampling trace can be performed from other stations on the network or serial communication module. However, it cannot be performed from multiple devices simultaneously. It can be performed from one device to the CPU module.
  • Page 190 (e) Sampling trace registration while the trigger condition is met Even if a trigger condition is met, the sampling trace setting can be registered by the following procedure. Turn on SM829 (Forced registration specification of trace setting). Enable the forced execution registration. [Debug] [Sampling Trace] [Forced Execution Registration Effective]...
  • Page 191: Debug From Multiple Programming Tools

    CHAPTER 3 FUNCTIONS 3.15 Debug from Multiple Programming Tools This function allows simultaneous debugging from multiple programming tools connected to modules (such as a CPU module and serial communication module). This function is useful when debugging multiple files divided according to processes or functions.
  • Page 192: Simultaneous Monitoring From Multiple Programming Tools

    3.15.1 Simultaneous monitoring from multiple programming tools This function allows simultaneous monitoring from multiple programming tools connected to modules (such as a CPU module and serial communication module). Creating a user setting system area allows high-speed monitoring from multiple programming tools. (Setting a monitoring file for the host station is not required.) Monitor target Programming tool Programming tool...
  • Page 193 CHAPTER 3 FUNCTIONS (2) Precautions (a) Monitoring condition setting The monitoring conditions can be set from one programming tool. (b) Necessity of system area setting A programming tool connected to another station can simultaneously monitor a CPU module without a user setting system area.
  • Page 194: Online Change From Multiple Programming Tools

    3.15.2 Online change from multiple programming tools This function allows online change from multiple programming tools. (1) Operating procedure Select [Tool] [Options] "Online Change" in the programming tool, and check the "Execute online change based on relative step No." checkbox. Set a pointer for online change in advance. Display the ladder including the specified pointer and write the changed ladder to the CPU module during RUN.
  • Page 195: Watchdog Timer (Wdt)

    CHAPTER 3 FUNCTIONS 3.16 (WDT) Watchdog Timer This function serves as a CPU module internal timer to detect errors of CPU module hardware and sequence programs. (1) Setting and resetting (a) Setting The watchdog timer setting can be changed in the PLC RAS setting of PLC parameter. The default is set to 200ms.
  • Page 196 (c) Scan time when using the WDT instruction The scan time value is not reset even if the watchdog timer is reset in the sequence program. The scan time is measured up to the END instruction. Internal Sequence program Internal processing time processing time Scan execution Scan execution...
  • Page 197: Self-Diagnostic Function

    CHAPTER 3 FUNCTIONS 3.17 Self-diagnostic Function This function allows the CPU module to diagnose itself to check for errors. This function aims to preventive measures and prevention of malfunction of the CPU module. (1) Self-diagnostic timing When an error occurs at power-on or during the RUN or STOP status of the CPU module, the error is detected and displayed by the self-diagnostic function, and the CPU module stops an operation.
  • Page 198 CPU module operation at error detection (a) Mode at error detection When an error is detected by the self-diagnostic function, the CPU module enters either of the following modes. • Mode that stops CPU module operation When an error is detected, the CPU module stops an operation and turns off all external outputs of the module set to "Clear"...
  • Page 199 CHAPTER 3 FUNCTIONS Self-diagnostics list The following table lists the self-diagnostics performed by the CPU module. The error messages in the "Error message" column can be checked on the screen displayed by selecting [Diagnostics] [PLC Diagnostics] in the programming tool. : Self-diagnostics is performed.
  • Page 200 LED status Q00U QnUDV QnUD Error Diagnostic Q00UJ CPU, Q02U CPU, Diagnostics module (E)(H) message timing Q01U QnUDP ERR. status VCPU Voltage drop of power supply for SINGLE PS. • Always Continue × redundant base DOWN unit Hardware Redundant power failure SINGLE PS.
  • Page 201 CHAPTER 3 FUNCTIONS LED status Q00U QnUDV QnUD Error Diagnostic Q00UJ CPU, Q02U CPU, Diagnostics module (E)(H) message timing Q01U QnUDP ERR. status VCPU • Power-on/reset • Switching from Parameter setting PARAMETER STOP to RUN Stop Flashing check ERROR • Writing to programmable controller •...
  • Page 202 LED status Q00U QnUDV QnUD Error Diagnostic Q00UJ CPU, Q02U CPU, Diagnostics module (E)(H) message timing Q01U QnUDP ERR. status VCPU Operation OPERATION • Execution of an Stop/ Flashing Off/on *1*3 ERROR instruction continue error FOR to NEXT FOR NEXT •...
  • Page 203 CHAPTER 3 FUNCTIONS The operating status can be set to "Continue" in parameter. (Default: "Stop") The check status can be selected in parameter. (Default: Checkbox selected) The error includes an operation error when a device range is checked at index modification. Only the Built-in Ethernet port QCPU supports this self-diagnostic item.
  • Page 204: Leds Indicating Errors

    3.17.1 LEDs indicating errors When an error occurs, the LEDs on the front of the CPU module turns on/flashes. ( Page 221, Section 3.20) 3.17.2 Clearing errors Continuation errors can be cleared. The High-speed Universal model QCPU and Universal model Process CPU can clear those errors by types.
  • Page 205 CHAPTER 3 FUNCTIONS (a) Clearing errors using a programming tool (High-speed Universal model QCPU and Universal model Process CPU only) Perform the following procedure. Check the continuation errors detected on the PLC Diagnostics window.  Eliminate the error causes of the detected errors. ...
  • Page 206 (b) Clearing errors using the special relay (SM) and special register (SD) Perform the following procedure. • CPU modules other than the High-speed Universal model QCPU and Universal model Process CPU Eliminate the error cause. Store the error code corresponding to the error to be cleared in SD50. Turn off and then on SM50.
  • Page 207: Error History

    CHAPTER 3 FUNCTIONS 3.18 Error History This function stores an error detected by the self-diagnostic function and the detection time as error history data in a memory. The error history data can be checked on the screen displayed by selecting [Diagnostics] [PLC Diagnostics] in the programming tool.
  • Page 208: Security Function

    3.19 Security Function This function protects data in the CPU module against tampering and theft by unauthorized persons. There are four security functions available. Use those functions according to your applications and needs. Function Purpose Reference Page 206, Section 3.19.1 Password registration To limit access to each file in the CPU module Page 208, Section 3.19.2...
  • Page 209 CHAPTER 3 FUNCTIONS (3) Online operations that require authentication Authentication is required to execute the following operations to password-protected files. For the authentication method, refer to Page 210, Section 3.19.2. • Write to PLC (data writing) • Read from PLC (data reading) •...
  • Page 210: File Password 32

    3.19.2 File password 32 Note 3.13 This function sets a read password and write password for each file stored in the CPU module so that files are protected against tampering and theft by unauthorized persons.Note 3.13 CPU module Read password registered for authentication: XYZ98756 File A Programming...
  • Page 211 CHAPTER 3 FUNCTIONS (4) Online operations that require authentication Authentication is required to execute the following operations to password-protected files. ( Page 210, Section 3.19.2) • Write to PLC (data writing) • Read from PLC (data reading) • Online change (data writing) •...
  • Page 212 (7) Authentication method Passwords are authenticated in three ways. • By a programming tool • By the FTP server • By the MC protocol (a) Authentication by a programming tool Whenever an online operation requiring password authentication is executed, the "Disable Password" window appears.
  • Page 213 CHAPTER 3 FUNCTIONS (b) Authentication by the FTP server To access a password-protected file from external devices using the FTP server function, password authentication is required for each file. Authentication is required whenever files are accessed. : Authentication required, Authentication not required Password authentication Operation FTP command...
  • Page 214 (c) Authentication by the MC protocol To access a password-protected file from external devices using the MC protocol, the request message format of the MC protocol needs to be changed and a command for the file password 32 must be specified. Add "Keyword"...
  • Page 215: File Access Control By Security Key

    CHAPTER 3 FUNCTIONS 3.19.3 File access control by security key Note 3.14 This function protects unauthorized access to the files in the CPU module by writing a security key to the module. The CPU module is locked with a security key and the files in the module can only be accessed from a programming tool where the same security key is registered.Note 3.14 With a security key (The status of the CPU module: Locked)
  • Page 216 (1) Access control target files With a security key, access to the following files is controlled. • Program • Device comment • Parameter • Symbolic information (2) Access control target drives With a security key, access to the following drives is controlled. : Available, ×: Not available Drive Read/write availability...
  • Page 217 CHAPTER 3 FUNCTIONS (4) Procedure To control file access, register a security key in the programming tool. Then, using the registered security key, lock the CPU module. Personal computer CPU module Programming tool Project Register a security key (a) Registering a security key to the programming tool.
  • Page 218 (d) Checking the security key information The information (name, date, and time) of the security key can be checked using a programming tool. (e) Unlocking the CPU module To unlock the CPU module, use the security key set with the project. Even if the security keys set with the CPU module and the project do not match, the CPU module can be unlocked.
  • Page 219 CHAPTER 3 FUNCTIONS (6) Precautions (a) Functions with restrictions Some restrictions apply to the following functions when the CPU module is locked. Function Restrictions Reference CPU module change function with The function cannot be used. Page 259, Section 3.31 memory card Boot operation The function cannot be used.
  • Page 220: Remote Password

    3.19.4 Remote password This function prevents unauthorized remote access to the CPU module. If a remote password has been set and the CPU module is remotely accessed, entering a remote password is required. (1) Settable modules and the number of settable modules The following table lists the modules for which the remote password can be set and the number of settable modules.
  • Page 221 CHAPTER 3 FUNCTIONS (2) Function overview Set a remote password in parameter ( Page 463, Appendix 1.4), and write it to the CPU module. The remote password is transferred to the target module ( Page 218, Section 3.19.4 (1)) when the CPU module is powered off and then on or is reset.
  • Page 222 (3) Locking/unlocking the remote password Unlock the remote password of a serial communication module via a modem or the password of an Ethernet module over Ethernet. When the entered password matches the registered password, the module is allowed to access the CPU module. Programming tool Unlocks the remote password when accesses the CPU module, and locks...
  • Page 223: Led Indication

    CHAPTER 3 FUNCTIONS 3.20 LED Indication Operating status of the CPU module can be checked by the LEDs on the front of the CPU module. For details of LED indications, refer to the following. QCPU User's Manual (Hardware Design, Maintenance and Inspection) 3.20.1 Methods for turning off the LEDs The LEDs can be turned off by the following operations (except for reset operation).
  • Page 224: Led Indication Priority

    3.20.2 LED indication priority This section describes a priority for error messages stored in the LED display data (SD220 to SD227) in case of an error. (1) Displayed error messages and their priorities In case of multiple errors, the error messages are displayed with the following conditions. •...
  • Page 225 CHAPTER 3 FUNCTIONS (2) Priorities and cause numbers The following table lists the description and priority of the cause numbers set to the special registers SD207 to SD209. Cause Priority number Displayed error message Remarks (hexadecimal) • AC/DC DOWN • Power-off •...
  • Page 226: High-Speed Interrupt Function

    3.21 High-Speed Interrupt Function Note 3.15 This function executes an interrupt program at fixed intervals of 0.1 to 1.0ms using the high-speed interrupt pointer (I49). Also, the I/O response improves because the I/O signal data set in parameters and the data in the buffer memory of each intelligent function module are refreshed before and after these high-speed interrupt programs are executed.
  • Page 227: High-Speed Interrupt Program Execution Function

    CHAPTER 3 FUNCTIONS 3.21.1 High-speed interrupt program execution function This function executes interrupt programs according to the high-speed interrupt pointer (I49). (1) Setting method Open the High Speed Interrupt Settings window and set a value to "I49 Fixed Scan Interval" within the range of 0.1 to 1.0ms.
  • Page 228: High-Speed I/O Refresh Function And High-Speed Buffer Transfer Function

    3.21.2 High-speed I/O refresh function and high-speed buffer transfer function The high-speed I/O refresh function refreshes I/O signal data between I/O modules or intelligent function modules and the CPU module at the specified interrupt intervals. The high-speed buffer transfer function refreshes data between the buffer memory in intelligent function modules and the devices in the CPU module at the specified interrupt intervals.
  • Page 229 CHAPTER 3 FUNCTIONS (b) High-speed buffer transfer function Open the High Speed Buffer Transfer Setting window and set the transfer ranges. Project window [Parameter] [PLC Parameter] "PLC System" tab "System Interrupt Settings", "High Speed Interrupt Settings" button "High Speed Buffer Transfer Setting" button Item Description Restrictions...
  • Page 230: Precautions

    3.21.3 Precautions This section describes precautions for executing the high-speed interrupt function. (1) Functions that delay the startup of high-speed interrupts When any of the functions in the table below is being executed, high-speed interrupts cannot be executed at preset intervals. Item Operation when executed Multiple CPU system configuration...
  • Page 231 CHAPTER 3 FUNCTIONS Item Operation when executed The startup of a high-speed interrupt delays for the following period of time. Scan time measurement • When registered: 100µs • During measurement: 15µs The startup of a high-speed interrupt delays for the following period of time. •...
  • Page 232 (2) Items disabled when the high-speed interrupt function is used Item Operation when used This function is not executed and ignored in high-speed interrupt programs. (No error External input/output forced on/off occurs.) High-speed interrupt programs do not save nor restore data in the index register. If data in Index register the index register are changed in a high-speed interrupt program, the data are overwritten.
  • Page 233: Interrupt From Intelligent Function Module

    CHAPTER 3 FUNCTIONS 3.22 Interrupt from Intelligent Function Module The CPU module can execute an interrupt program (I ) by the interrupt request from the intelligent function module. For example, the serial communication module can receive data by an interrupt program when the following data communication functions are executed.
  • Page 234: Serial Communication Function

    3.23 Serial Communication Function Note 3.16 This function communicates data using the MC protocol by connecting the RS-232 interface of the CPU module and a personal computer or HMI from other companies with an RS-232 cable. This section describes the specifications, functions, and settings of the function.
  • Page 235 CHAPTER 3 FUNCTIONS (1) Specifications (a) Transmission specifications The following is the transmission specifications of RS-232 used for this function. Check that the specifications of the personal computer or HMI from other companies match those in the following table. Item Setting range Default Communication method...
  • Page 236 (c) RS-232 cable Use either of the following RS-232 cables between a personal computer or HMI from other companies and a CPU module. • QC30R2 (cable length: 3m) • CH-M096234-*** (manufactured by CHUGAI Co., Ltd.) Cable with a Mini-DIN connector on one side and without connector on the other side *** indicates a cable length, which can be lengthened up to 15m in increments of 0.1m.
  • Page 237 CHAPTER 3 FUNCTIONS (2) Commands The following table lists the MC protocol commands that can be executed. Number of Function Command Processing processing points In units of ASCII: 3584 points 0401(00  1) Reads bit devices in units of 1 point. bits BIN: 7168 points Batch read...
  • Page 238 (3) Accessible devices The following table lists the accessible devices by the serial communication function. Device code Category Device Device number range ASCII Binary Function input Hexadecimal Function output (Cannot be accessed) Hexadecimal Internal system Function register Decimal device Special relay Decimal Special register Decimal...
  • Page 239 CHAPTER 3 FUNCTIONS (4) Setting transmission specifications Set a transmission speed, sum check status, transmission wait time, and online change status for this function in the Serial Communication tab of the PLC parameter dialog box. ( Page 455, Appendix 1.2.12) •...
  • Page 240 (6) Error codes during communication with the serial communication function The following table lists the error codes (together with their descriptions and corrective actions) sent from the CPU module to the external device when an error occurs during communication using the serial communication function.
  • Page 241 CHAPTER 3 FUNCTIONS Error code Error item Description Corrective action (hexadecimal) Reduce the communication speed and restart communication. Check the CPU module for momentary power failure. The next data was received before the CPU 7F67 Overrun error (For the CPU module, use the special register SD53 module completed receive processing.
  • Page 242: Service Processing

    3.24 Service Processing 3.24.1 Service processing setting This function allows to set the time and the number of times of service processing performed at END processing by parameters. Processing for requests from peripherals to the CPU module are performed with this function. The processing speed for the communication response to the requests varies depending on the scan time and communication load.
  • Page 243 CHAPTER 3 FUNCTIONS Item Description Setting range Remarks Even when the waiting time is Set whether to perform service 0.2ms or less, the service Execute it while waiting processing during waiting time for processing time (0.2ms) will be for constant scan setting. constant scan setting.
  • Page 244 (b) Operation when "Specify service process time." is selected • Operation when 0.5ms is set 0.5ms Program execution Programming tool END processing Request 1 When the time required for processing one request exceeds the service processing time (0.5ms) , the Program execution service processing is suspended and the processing is performed at END processing in the next scan.
  • Page 245 CHAPTER 3 FUNCTIONS (c) Operation when "Specify service process execution counts." is selected • Operation when 1 time is set Program execution Programming tool END processing Request 1 Regardless of request data size, one request Program execution is processed at one END processing. END processing Request 2 Even if the program execution time are the same,...
  • Page 246 (d) Operation when "Execute it while waiting for constant scan setting." is selected Constant scan Program execution END processing Programming tool Request 1 Waiting time Request 2 The service processing is performed during waiting time. Program execution END processing Request 3 Waiting time Request 4 ●...
  • Page 247 CHAPTER 3 FUNCTIONS (3) Precautions The following describes precautions when the service processing setting is configured. • For the following functions, scan time will be increased longer than the specified time during service processing even if the service processing time specification is set. •...
  • Page 248: Initial Device Value

    3.25 Initial Device Value This function registers data used in a program to the device of the CPU module or the buffer memory of the intelligent function module without a program. (1) Application Use of this function can omit device data setting program by initial processing program. Device memory SM402 H100...
  • Page 249 CHAPTER 3 FUNCTIONS (2) Timing when initial device values are written to the specified device The CPU module writes data in the specified initial device value file to the specified device or the buffer memory of the intelligent function module when the CPU module is powered off and then on, is reset, or is set to the STOP status and then the RUN status.
  • Page 250 (c) Devices that require module synchronization setting To set the following devices for the initial device value setting range, set "Module Synchronization" in the PLC system tab of the PLC parameter dialog box. If the setting is not configured, the initial device values may not be set to the target module properly. •...
  • Page 251: Battery Life-Prolonging Function

    CHAPTER 3 FUNCTIONS 3.26 Battery Life-prolonging Function Note 3.17 This function extends the life of battery installed in the CPU module by restricting data to be held by the battery to clock data only. This function initializes all data other than the clock data when the CPU module is powered off or is reset. Data held by a battery Description Error history...
  • Page 252: Memory Check Function

    3.27 Memory Check Function This function checks whether data in the memories of the CPU module are not changed due to such as excessive electric noise. Since the CPU module automatically checks a memory, setting for enabling this function is unnecessary. This function does not require processing time.
  • Page 253: Program Cache Memory Auto Recovery Function

    CHAPTER 3 FUNCTIONS 3.28 Program Cache Memory Auto Recovery Function Note 3.18 This function is to restore the error location automatically by using data in the program memory, which are stored in the flash ROM, when the memory check function ( Page 250, Section 3.27) detects an error in the program cache memory.
  • Page 254 To match the data in the program memory and those in the program cache memory, configure the setting to transfer the data of the program cache memory to the program memory from "Options" screen. Page 178, Section 3.12.3 (4)) [Tool] [Options] The transferring of the data in the program cache memory to the program memory is set by default.
  • Page 255: Latch Data Backup To Standard Rom

    CHAPTER 3 FUNCTIONS 3.29 Latch Data Backup to Standard ROM This function holds (backs up) latch data, such as device data and error history, to the standard ROM without using a battery when the system is stopped for a long period. This function helps to extend battery life. Remark When a CPU module other than the High-speed Universal model QCPU and Universal model Process CPU executes this function, the battery life-prolonging function is enabled regardless of its parameter setting.
  • Page 256 Backup target data File size (byte) Parameter Intelligent function module parameter Program Device comment 16 + File size Initial device value Drive heading Boot setting file Remote password...
  • Page 257 CHAPTER 3 FUNCTIONS The data are backed up only when the file register in the standard RAM is used and the following parameter is set. • CPU modules other than the High-speed Universal model QCPU and Universal model Process CPU: Check the "Transfer to Standard ROM at Latch data backup operation"...
  • Page 258 (3) Execution by remote operation (a) Execution method Open a dialog box to execute a remote operation. [Online] [Latch Data Backup] [Backup] After the backup operation is completed, the BAT. LED of the CPU module flashes (green). The module is in the standby status and is ready to be powered off.
  • Page 259 CHAPTER 3 FUNCTIONS (5) Deleting backup data The backup data can be deleted in the following screen. (Stop the CPU module before deleting the backup data. This operation cannot be performed when the CPU module is in the RUN status.) [Online] [Latch Data Backup] [Delete Backup Data]...
  • Page 260: Writing/Reading Device Data To/From Standard Rom

    3.30 Writing/Reading Device Data to/from Standard ROM This function writes device data to the standard ROM. Writing the fixed values for operation and operation results to the standard ROM can prevent losing data due to low battery. Also, timing of writing to the standard ROM can be set by an instruction.
  • Page 261: Cpu Module Change Function With Memory Card

    CHAPTER 3 FUNCTIONS 3.31 CPU Module Change Function with Memory Card Note 3.19 This function backs up all the data (only the file register files and latch-target device data) in a CPU module to a memory card or SD memory card. The data backed up can be restored to a replaced CPU module.Note 3.19 CPU module 1) Back up data to...
  • Page 262 (1) Backup data file After data are backed up, a backup data file "MEMBKUP0.QBP" is created in a memory card or SD memory card. Only one backup data file can be stored to each card. If a backup data file has existed in the card, the data in the *1*2 file are overwritten whenever the backup operation is performed.
  • Page 263 CHAPTER 3 FUNCTIONS (b) Data size The following table lists the maximum size of data to be backed up. (Unit: K byte) Q03UD/ Q04UDH/ Q06UDH/ Q10UDH/ Backup target data (drive) Q02UCPU Q03UDECPU Q04UDEHCPU Q06UDEHCPU Q10UDEHCPU Program memory (drive 0) Standard RAM (drive 3) 1026 Standard ROM (drive 4) 1032...
  • Page 264: Data Backup For The Cpu Module Change Function

    3.31.1 Data backup for the CPU module change function This function backs up all the data (only the file register files and latch-target device data) in a CPU module to a memory card or SD memory card. If a memory card or SD memory card is used in a running system, users can stop its operation, change the card, and back up data to another card.
  • Page 265 CHAPTER 3 FUNCTIONS (b) Operating procedure Turn on the backup start setup contact first, and then the backup start contact. Data are not backed up when only the backup start contact is on. Turn on the backup start setup contact. Preparation for backup: 1) Set the CPU module to the STOP status.
  • Page 266 (c) Operation of data backup using contacts The following figure shows the operations of the backup start setup contact, backup start contact, SM691 (Backup start preparation status flag), and SD690 (Backup status). Backup start setup request from Backup start request from the programming tool or the backup start the programming tool or the backup setup contact is turned on.
  • Page 267 CHAPTER 3 FUNCTIONS (3) Data backup operation details (a) Changing a memory card or SD memory card If a memory card or SD memory card is being used in a running system, the card can be changed to another card after the status of the data backup function shifts into the ready status. (SM609 (Memory card remove/insert enable flag) does not need to be turned on.) Upon the status change, the CPU module turns off SM604 (Memory card in-use flag).
  • Page 268 (c) Operations of the special relay and special register The following figure shows the operations of SM609 (Memory card remove/insert enable flag), SM691 (Backup start preparation status flag), and SD690 (Backup status). Backup start setup request from Backup start request from the programming tool or the backup the programming tool or the backup start setup contact is turned on.
  • Page 269 CHAPTER 3 FUNCTIONS (4) LED indication The LEDs on the front of the CPU module indicate backup status. Value stored in Backup status LED indication SD690 Backup start preparation completed MODE: Flash (green), BAT.: Flash (green) Indication status changes as follows at 800ms intervals. 1) MODE: Flash (green), BAT.: On (green) ...
  • Page 270 (5) Error causes Even when backup is not completed successfully, a diagnostic error is not detected. In that case, the error cause is stored in SD689 (Backup error factor) or the error response is returned to the programming tool. Value stored Error response Error cause in SD689...
  • Page 271 CHAPTER 3 FUNCTIONS (6) Operations and functions that cannot be performed during backup The following table lists the operations and functions that cannot be performed during backup. Operation and function Change TC setting Online change (ladder mode) Online change (inactive block) for SFC program Write to PLC (including writing data to the CPU module during RUN) Remote latch clear Password registration...
  • Page 272 (7) Precautions • Do not perform the following operations during data backup. • Insertion/removal of a memory card or SD memory card • Power-off of the CPU module • Reset • Even when parameters that are backed up using contacts are booted to the Universal model QCPU whose serial number (first five digits) is "10101"...
  • Page 273: Restoration For The Cpu Module Change Function

    CHAPTER 3 FUNCTIONS 3.31.2 Restoration for the CPU module change function This function restores data backed up in a memory card or SD memory card to a replaced CPU module. (1) Restoration using a programming tool Data restoration using a programming tool can be performed on the "Restoration execution from backup data" window.
  • Page 274 (3) Restoration behavior of data backed up The following figures show the restoration behavior of data backed up. • Automatic restoration • Restoration using a programming tool Start Start 1: Before restoration start 1: Before restoration start Insert a memory card or SD memory Insert a memory card or SD memory card storing the backup data to the card storing the backup data to the...
  • Page 275 CHAPTER 3 FUNCTIONS (5) LED indication The LEDs on the front of the CPU module indicate restoration status. Value stored in SD693 Restoration status LED indication Before restoration start MODE: On (green) Indication status changes as follows at 800ms intervals. 1) MODE: Flash (orange), BAT.: On (green) ...
  • Page 276 When automatic restoration did not complete normally, "RESTORE ERROR" (error code: 2228) occurs. Error code Error message Error cause 2225 The model of a restoration-target CPU module differs from that of a backup-source CPU module. • Backup data file is corrupted. (The contents of backup data file do not match with the check code.) •...
  • Page 277: Cpu Module Data Backup/Restoration Function

    CHAPTER 3 FUNCTIONS 3.32 CPU Module Data Backup/restoration Function Note 3.20 This function backs up data such as program files, a parameter file, and device data including the file register in a CPU module to an SD memory card. The data backed up can be restored as necessary. Except for devices and buffer memory in the intelligent function module Note 3.20 CPU module...
  • Page 278 (1) Backup data The data backed up is saved in an SD memory card. The following shows the folder structure of the backup data. MAIN.QPG 20151101 00001 Drive0 Backup_CPU PARAM.QPA DEVSTORE.QST Drive3 LOGCOM.QLG DEVSTORE.QST Drive4 LOGCOM.QLG BKUPINF.QSL BKUPDAT.QBK DEVDATA.QDT 00002 20151102...
  • Page 279 CHAPTER 3 FUNCTIONS Storable number of Folder type Folder name Description folders A folder which stores whole backup Backup data folder Backup CPU (fixed) data. Folders which store backup data by date. As for the upper limit value setting Automatically determined Depends on the for the number of backup data, the Folder name format: YYYYMMDD...
  • Page 280 (2) Target data for backup and restoration The backup target data is all the target data in a CPU module. ( Page 278, Section 3.32 (2) (b)) The restoration target data is set with SD917 (Restoration target data setting). ( Page 289, Section 3.32.2) (a) Target drives for backup and restoration Target drives are Drive 0 (Program memory), Drive 3 (Standard RAM), and Drive 4 (Standard ROM).
  • Page 281 CHAPTER 3 FUNCTIONS (d) Target device data for bakup and restoration The following lists target device data. : Available, ×: Not available Category Device name Backup Restoration Input (X) Output (Y) Internal relay (M) Latch relay (L) Annunciator (F) Edge relay (V) Step relay (S) Internal user device Link relay (B)
  • Page 282 The area used by the system may be overwritten after a restoration. Whether to be restored the device can be set with SD918 (Restoration function setting). Device data restored may be overwritten by the I/O refresh according to modules mounted on and refresh settings. (3) Progression status of backup and restoration Progression status of backup and restoration can be checked by SD1925(Number of backup/restoration uncompleted files) or SD1926(Backup/restoration progression status).
  • Page 283: Backup Function

    CHAPTER 3 FUNCTIONS 3.32.1 Backup function This function backs up data such as program files, a parameter file, and device data including the file register in a CPU module to an SD memory card. The backup function is performed even while the CPU module is in RUN state. When executing the backup function during RUN, do not make the device data change during the execution.
  • Page 284 (a) Status of special relay and special register The following figure shows the status of the special relay and special register when the upper limit value of the number of backup data is set. The CPU module checks the following at the timing when bit5 (Upper limit status setting for the number of backup data) of SD910 is turned on, and enables the upper limit value of the number of bakup data.
  • Page 285 CHAPTER 3 FUNCTIONS (2) Backup by turning on SM1926 This relay backs up data of a CPU module in a desired timing. (a) Operating procedure Back up data by turning on SM1926. To specify the upper limit value of the number of backup data, set the value with the following procedure •...
  • Page 286 (3) Automatic backup using SD910 The data of CPU module is automatically backed up by an execution timing which is set in advance. The execution timing of the automatic backup is set with SD910 (Backup function setting). Multiple execution timing can be set simultaneously. Bit pattern of SD910 Execution timing Bit0: On...
  • Page 287 CHAPTER 3 FUNCTIONS (b) Operating procedure (specifying day and time) The data is automatically backed up at the specified day and time. To specify the upper limit value of the number of backup data, set the upper limit value setting. (The setting method and operating procedure are the same as the backup by turning on SM1926.) Page 283, Section 3.32.1 (2) (a)) Set the day and time with SD912 and SD913.
  • Page 288 (d) Operating procedure (when a CPU stop error has occurred) The data is automatically backed up when a CPU stop error has occurred. To specify the upper limit value of the number of backup data, set the upper limit value setting. (The setting method and operating procedure are the same as the backup by turning on SM1926.) Page 283, Section 3.32.1 (2) (a)) To retry the automatic backup, turn on bit10 of SD910 (Backup function setting).
  • Page 289 CHAPTER 3 FUNCTIONS (f) The Special relay and special register which request function operations Before executing backup, turn off the special relay and special register which request operating of the functions such as SM801 (Trace start). If backup is executed while they are ON, the corresponding requests may be turned on and the functions are executed when the data of the special relay and special register are restored.
  • Page 290 (i) Operations and functions which cannot be performed The following lists the operations and functions which cannot be performed simultaneously during backup/restoration. Operation and function Change TC setting Online change (ladder mode) Online change (inactive block) for SFC program Write to PLC (including Write to PLC (during RUN)) Write title Remote latch clear Password/Keyword...
  • Page 291: Restoration Function

    CHAPTER 3 FUNCTIONS 3.32.2 Restoration function This function restores data backed up to an SD memory card as necessary. (a) Restoration target folders Set a folder to be restored from backup data in an SD memory card with SD919 to SD921. The latest backup data can be restored with bit13 of SD918.
  • Page 292 (d) Operation setting after restoration At a time of restoration, whether to operate a CPU module with the state at backup or to operate with the initial status can be set with bit15 of SD918 (Restoration function setting). If value of SD917 (Restoration target data setting) is set to 1 (restoration target data is device data only), this setting is invalid since the device initial value file or the module error collection file are not restored.
  • Page 293 CHAPTER 3 FUNCTIONS (1) Restoration by turning on SM1929 The backup data is restored in an optional timing. Use the restoration by turning on SM1929 for checking the backup data and operation check before an actual operation. To operate the system using the backup data, use the automatic restoration using SD918. Page 292, Section 3.32.2 (2)) Remark The restoration by turning on SM1929 can be executed only when the operating status of the CPU module is STOP.
  • Page 294 (2) Automatic restoration using SD918 The backup data is automatically restored when the CPU module is powered off and then on or is reset. (a) Formatting at automatic restoration At the execution of automatic restoration, set whether to format drives except for the SD memory card with bit1 of SD918 (Restoration function setting).
  • Page 295 CHAPTER 3 FUNCTIONS (4) Precautions The following describes precautions for the restoration function. (a) Removal/insertion of the SD memory card and power-off/reset of the CPU module during the restoration Do not perform the following operations during the restoration operation. • Removal and insertion of the SD memory card •...
  • Page 296 (i) Required time for restoration According to the number of data (folders) backed up, file size, and number of files, a restoration may take time. Due to the time, for an automatic restoration at a multiple CPU system configuration, an error occurs in other CPU modules, and an error occurs also in the CPU module restored automatically after the completion of the restoration.
  • Page 297 CHAPTER 3 FUNCTIONS (p) Operations and functions which cannot be performed Operations and functions which cannot be performed are the same as the ones at backup. ( Page 288, Section 3.32.1 (5) (i)) (q) Operation behavior of data logging function and sampling trace function If the data is backed up while the data logging function or sampling trace function is executed and each function is set as it is started automatically, when the CPU module is shift to RUN after restoration, the data logging function or sampling trace function is automatically started.
  • Page 298: Module Model Name Read

    3.33 Module Model Name Read Note 3.21 This function reads the model name of a module on a base unit. The mounted module is identified in a ladder program and processing according to the module can be performed.Note 3.21 QD75MH2 Processing 1 and 2 are performed.
  • Page 299: Module Error Collection

    CHAPTER 3 FUNCTIONS 3.34 Module Error Collection Note 3.22 This function collects errors occurred in the connected intelligent function modules in the CPU module. By storing the errors in a memory that can hold data in the event of a power failure, the errors can be held even after power-off or reset.Note 3.22 Error history (CPU module) and error log (intelligent function module) are displayed in one screen.
  • Page 300 (3) Storing module errors The module errors can be stored either in the system memory or the standard RAM. The errors are stored separately from error history (CPU module) data. CPU module System memory Standard RAM Q00UJCPU 40 (Fixed) Q00UCPU, Q01UCPU 40 (Fixed) 1000 Q02UCPU, QnUD(H)CPU, Built-in Ethernet port QCPU...
  • Page 301 CHAPTER 3 FUNCTIONS (5) Monitoring module errors Collected module error logs can be checked in the "Error History" screen of GX Works2. [Diagnostics] [System Monitor] [System Error History] button Item Description Remarks Displays error code numbers. Error Code Displays the year, month, day, hour, minute, and second when The year can be displayed within the Year/Month/Day/Time an error occurred.
  • Page 302 (6) Clearing module error history Module error logs can be cleared by clicking the button in the "Error History" screen. Note that error information on each intelligent function module displayed under "Error Details" is not cleared. The module error history is cleared when the standard RAM is formatted. Note that a module error collection file cannot be deleted since it is automatically created after the CPU module is powered off and then on or is reset.
  • Page 303: Local Device Batch Read Function

    CHAPTER 3 FUNCTIONS 3.35 Local Device Batch Read Function Note 3.23 This function batch-reads the contents of local devices in a CPU module and saves them in a CSV file. This function enables saving all the contents of local devices in one CSV file.Note 3.23 CPU module GX Works2...
  • Page 304 (1) Operating method Open the "Local Device Batch Read + Save CSV" screen of GX Works2. [Online] [Local Device Batch Read + Save CSV] For details, refer to the following. GX Works2 Version 1 Operating Manual (Common) (2) CSV file contents and format For the contents and format of CSV files, refer to the following.
  • Page 305: Send Points Extension Function (Cc-Link Ie Controller Network Module)

    CHAPTER 3 FUNCTIONS 3.36 Send Points Extension Function (CC-Link IE Controller Network Module) Note 3.24 This function extends the maximum number of link points per CC-Link IE Controller Network module. Cyclic transfer can be performed up to 32k points for link relay (LB) and 128k points for link register (LW). Note 3.24 General system System using the send points expansion function...
  • Page 306 (1) Settings Set the following network parameters using GX Works2. • Network type • Network range assignment • Refresh parameters For details, refer to the following. CC-Link IE Controller Network Reference Manual (2) Precautions (a) Boot operation If the parameters for the send points extension function are stored in a memory card or SD memory card and the parameters are transferred to a CPU module that does not support this function, "LINK PARA.
  • Page 307: Write-Protect Function For Device Data (From Outside The Cpu Module)

    CHAPTER 3 FUNCTIONS 3.37 Write-Protect Function for Device Data (from Outside the CPU Module) Note 3.25 This function disables device data writing (including the file register) from outside the CPU module such as the programming tool, GOT, SLMP/MC protocol, and FTP to the write-protected range set in the parameter. Desired device data can be protected from tampering.Note 3.25 Even when the write-protected range is set, the operation of the CPU module which is set and device data writing by...
  • Page 308: Setting Method

    3.37.1 Setting method Set the write-protected range in the device tab of the PLC parameter. Selecting the "Disable device write from external" checkbox allows input of the write-protected range (Write Protection Start/End). ( Page 446, Appendix 1.2.8) To input the write-protected range of the file register, extended data register, and extended link register, set the file register file to "Use the following file"...
  • Page 309: Target Devices

    CHAPTER 3 FUNCTIONS 3.37.2 Target devices This section describes the devices that can be write-protected from outside the CPU module. Device data writing by digit specification of bit data, bit specification of word, and index modification cannot be performed when it is specified in the write-protected range.
  • Page 310: Operations And Functions That Cannot Be Executed For Devices In Write-Protected Range

    3.37.3 Operations and functions that cannot be executed for devices in write-protected range This section describes operations and functions that cannot be executed for devices in the write-protected range. Operation and function Watch window Device/buffer memory batch monitoring Modify value Local device monitoring Device memory Write to PLC...
  • Page 311 CHAPTER 3 FUNCTIONS (1) SLMP/MC protocol An error occurs when the following operations are performed to devices in the write-protected range from an external device such as a personal computer via the SLMP/MC protocol: writing/clearing of device data, writing/changing of the initial device value file or file register file. An error also occurs when the following commands are executed in the predefined protocol support function or the SLMP frame send instruction.
  • Page 312 (2) Instruction An error occurs when the following operations are performed to devices in the write-protected range from other CPU modules by using instructions: writing/clearing of device data, writing/transferring of the initial device value file or file register file. • Writing or clearing device data by instructions Classification Operation Instruction...
  • Page 313: Precautions

    CHAPTER 3 FUNCTIONS 3.37.4 Precautions The following describes the precautions for the write-protect function for device data (from outside the CPU module). (1) Execution of the executional conditioned device test When specifying and registering the indirect specified/index-modified device or the file register (R) in the executional conditioned device test, disable the write-protect function for device data (from outside the CPU module) before execution.
  • Page 314 (3) Device memory or initial device value file, and writing parameter Settings for the write-protect function for device data (from outside the CPU module) are enabled at the following timing: • The CPU module is powered off and on. • The CPU module is reset. •...
  • Page 315: Operation History Function

    CHAPTER 3 FUNCTIONS 3.38 Operation History Function Note 3.26 This function saves the operation information of device data writing and writing of files from outside the CPU module such as the programming tool, GOT, SLMP/MC protocol, and FTP into the CPU module as an operation history file, and displays it in the programming tool.
  • Page 316 (1) Setting method To use the operation history function, select the "Save operation history of CPU module" checkbox in the PLC RAS tab of the PLC parameter. ( Page 441, Appendix 1.2.4) For a system where data is frequently written to devices and files, set a large capacity to save many histories. When setting a large capacity, specifying the SD memory card is highly recommended as the save destination memory.
  • Page 317: Operation History Save Function

    CHAPTER 3 FUNCTIONS 3.38.1 Operation history save function This function saves the memory operation history in the save destination set in the PLC parameter. (1) Operation histories to be saved The following table lists the operation histories to be saved. Operation and function •...
  • Page 318 This operation is saved when "Save device write operation" is enabled in the PLC RAS tab of the PLC parameter. This operation is saved only when data is written to the CPU module. Except when "Disable clearing operation history" is enabled in the PLC RAS tab of the PLC parameter. When this operation is performed to the drive specified as the target memory for saving operation history, the history of operation history file creation is saved.
  • Page 319 CHAPTER 3 FUNCTIONS (a) SLMP/MC protocol When the following operations are performed, operation histories are saved. • Writing to device Command SLMP and Classification Operation 4C/3C/4E/3E 2C frame 1C frame 1E frame frame Batch write 1401 Writing to device Random write (Test) 1402 Multiple blocks batch write 1406...
  • Page 320 (b) Instruction When the following operations are performed, operation histories are saved. • Writing to device Classification Instruction SP.WRITE JP/GP.WRITE Writing data to the programmable controller in another station JP/GP.SWRITE J(P).ZNWR Writing to device GP.RIWT Writing device data from another CPU module D(P).DDWR JP/GP.SWRITE Writing to a notification device for reading/writing data of programmable...
  • Page 321 CHAPTER 3 FUNCTIONS (2) Operation history file The following describes the operation history file. (a) Save destination memory The operation history file can be saved in one of the following. • Standard ROM • SD memory card Select the save destination memory in the RAS tab of the PLC parameter. ( Page 441, Appendix 1.2.4) When the SD memory card is set as the save destination and the write protect switch of the SD memory card is enabled (write inhibited), the operation history is not saved.
  • Page 322 (d) File size (size for saving) The size of the operation history file can be changed in the RAS tab of the PLC parameter. ( Page 441, Appendix 1.2.4) The setting range is from 1 to 1024K bytes. If the storage size exceeds the specified size, histories are deleted in order from the oldest one and the latest one is stored.
  • Page 323 CHAPTER 3 FUNCTIONS The following shows an example of the operating procedure and the size of the operation history file. When 100 programs (program name: 8 characters (12 characters including a period and extension)) are written to the CPU module by the following operating procedure. [Operating procedure] Power on the CPU module with STOP state.
  • Page 324 (e) File creation timing The following table lists the timing when an operation history file is created. Timing Description • When no operation history file exists • When an operation history file exists and the file size is changed in the operation The CPU module is powered off and on.
  • Page 325 CHAPTER 3 FUNCTIONS The following table lists operations of the CPU module by the SD memory card status when the SD memory card is specified as the save destination memory. • Operations when the CPU module is powered off and on or is reset Status Operation An SD memory card is not inserted.
  • Page 326 (f) Timing when the setting is enabled Any changed parameters take effect when: • The CPU module is powered off and on. • The CPU module is reset. Any parameters in which the save destination memory and file size are changed in STOP state does not take effect when the CPU module operating status is changed from STOP to RUN.
  • Page 327: Operation History Display

    CHAPTER 3 FUNCTIONS 3.38.2 Operation history display Operation histories can be checked in the "Operation History" window. [Diagnostics] [PLC Diagnostics] [Operation History] button For details on the operation method and screen items, refer to the following. GX Works2 Version 1 Operating Manual (Common) 3.38.3 Operation history clear function Clicking the [Clear History] button in the "Operation History"...
  • Page 328: Precautions

    3.38.4 Precautions This section describes the precautions for the operation history function. (1) Operation history display and data update during execution of another function The operation history cannot be displayed and data cannot be updated during execution of the following functions.
  • Page 329: List Of Operation Codes

    CHAPTER 3 FUNCTIONS 3.38.5 List of operation codes This section lists the operation codes displayed in the operation history window of the operation history function. (1) How to read the list The list contains the following information. Item Description Operation Type Information used to identify the operation type Operation Code (decimal) The ID number assigned to operation information...
  • Page 330 (2) List of operation codes The following table lists the operation codes. Detailed information Operation Operation Detailed Detailed Detailed Code Overview Description Type information information information (decimal) Operation Create Operation The operation history file was History File System 0001 History File created.
  • Page 331 CHAPTER 3 FUNCTIONS Detailed information Operation Operation Detailed Detailed Detailed Code Overview Description Type information information information (decimal) Write Device It was written to the device. 1111 (Random 101st Point (Write Random 101st Point to or later) 110th Point) Write Device It was written to the device.
  • Page 332 Detailed information Operation Operation Detailed Detailed Detailed Code Overview Description Type information information information (decimal) It was written to the device. Write Device (Block 1208 (Write Block 71st Point to 80th 71st Point or later) Point) It was written to the device. Write Device (Block 1209 (Write Block 81st Point to 90th...
  • Page 333 CHAPTER 3 FUNCTIONS Detailed information Operation Operation Detailed Detailed Detailed Code Overview Description Type information information information (decimal) ON/OFF Register External I/O The external I/O forced ON/OFF 1800 Registration Forced ON/OFF was registered. Information Registration Register Device Test Information for The device test with execution 1810 with Execution...
  • Page 334: Iq Sensor Solution Function

    3.39 iQ Sensor Solution Function Note 3.27 Note 3.28 The iQ Sensor Solution function performs the following operation. Note 3.27Note 3.28 Function Description Detects devices supporting iQ Sensor Solution connected to Automatic detection of connected device the CPU module, and automatically displays them on "List of devices"...
  • Page 335: Part 3 Devices, Constants

    PART 3 DEVICES, CONSTANTS In this part, the devices and constants used in the CPU module are described. CHAPTER4 DEVICES ..........334 CHAPTER5 CONSTANTS .
  • Page 336: Chapter 4 Devices

    CHAPTER 4 DEVICES This chapter describes the devices that can be used in the CPU module. Device List The following table shows the devices used in the CPU module and applicable ranges. (1) Q00UJCPU, Q00UCPU, Q01UCPU, Q02UCPU Default Parameter- Classification Type Name Reference...
  • Page 337 CHAPTER 4 DEVICES Default Parameter- Classification Type Name Reference set range Point Range Page 375, Function input FX0 to FXF Hexadecimal Section 4.3.1 Page 375, Function output FY0 to FYF Hexadecimal device Section 4.3.1 Internal system Cannot be Page 377, Special relay 2048 SM0 to SM2047...
  • Page 338 Default Parameter- Classification Type Name Reference set range Point Range Page 415, Decimal constant K-2147483648 to K2147483647 Section 5.1 Hexadecimal Page 415, H0 to HFFFFFFFF constant Section 5.2 Single-precision floating-point data: Page 416, E ± 1.17549435  38 to E ± 3.40282347 + 38 Section 5.3 Constant Real number...
  • Page 339 CHAPTER 4 DEVICES (2) QnUD(H)CPU, QnUDE(H)CPU Default Parameter- Classification Type Name Reference set range Point Range Page 346, Input 8192 X0 to X1FFF Hexadecimal Section 4.2.1 Page 348, Output 8192 Y0 to Y1FFF Hexadecimal Section 4.2.2 Page 349, Internal relay 8192 M0 to M8191 Decimal...
  • Page 340 Default Parameter- Classification Type Name Reference set range Point Range Intelligent Un\G0 to Cannot be function module 65536 Decimal changed. Un\G65535 device Module access Word Page 382, U3En\G0 to Cannot be device device Cyclic 4096 Decimal Section 4.5 U3En\G4095 changed. transmission U3En\G10000 to Can be...
  • Page 341 CHAPTER 4 DEVICES These devices are used as a bit device for contacts and coils, and as a word device for controlling the present value. The number of points that can be actually used varies depending on intelligent function modules. For the number of buffer memory points, refer to the manual for the intelligent function module used.
  • Page 342 (3) QnUDVCPU, QnUDPVCPU Default Parameter- Classification Type Name Reference set range Point Range Page 346, Input 8192 X0 to X1FFF Hexadecimal Section 4.2.1 Page 348, Output 8192 Y0 to Y1FFF Hexadecimal Section 4.2.2 Page 349, Internal relay Decimal 28672 M0 to M28672 Section 4.2.3 Page 350, Latch relay...
  • Page 343 CHAPTER 4 DEVICES Default Parameter- Classification Type Name Reference set range Point Range Intelligent Un\G0 to Cannot be function module 65536 Decimal changed. Un\G65535 device Module access Word Page 382, U3En\G0 to Cannot be device device 4096 Decimal Section 4.5 Cyclic U3En\G4095 changed.
  • Page 344 These devices are used as a bit device for contacts and coils, and as a word device for controlling the present value. The number of points that can be actually used varies depending on intelligent function modules. For the number of buffer memory points, refer to the manual for the intelligent function module used.
  • Page 345: Internal User Devices

    CHAPTER 4 DEVICES Internal User Devices Internal user devices can be used for various user applications. (1) Points for internal user devices The device points can be changed in the Device tab of the PLC parameter dialog box. Most of the default device points can be changed.
  • Page 346 ● When changing device points, the following refresh ranges must not exceed the corresponding device ranges. • Refresh range of network module • Refresh range of CC-Link IE Field Network Basic • Auto refresh range of intelligent function module If device points are set exceeding the corresponding device range, data may be written to any other device or an error may occur.
  • Page 347 CHAPTER 4 DEVICES (3) Device point assignment example The following table shows device point assignment examples based on the device point assignment sheet in Page 573, Appendix 10. Restriction check Number of device point Numeric Device name Symbol notation Points Range Size (words) Points (bits)
  • Page 348: Input (X)

    4.2.1 Input (X) The input (X) is used to send commands or data to the CPU module from external devices such as push-button switches, selector switches, limit switches, and digital switches. Push-button switch Selector switch Input (X) Sequence operation Digital switch (1) Concept of input (X) One input point is assumed to be a virtual relay Xn in the CPU module.
  • Page 349 CHAPTER 4 DEVICES ● When debugging a program, the input (X) can be set to on or off by the following: • Device test using a programming tool • OUT Xn instruction OUTX1 ON/OFF command ● The input (X) can also be used for the following. •...
  • Page 350: Output (Y)

    4.2.2 Output (Y) The output (Y) is used to output control results on programs to external devices such as signal lamps, digital displays, electromagnetic switches (contactors), or solenoids. Data can be output to the outside like using a normally open contact. Signal lamp Digital display Output (Y)
  • Page 351: Internal Relay (M)

    CHAPTER 4 DEVICES 4.2.3 Internal relay (M) The internal relay (M) is a device for auxiliary relays used in the CPU module. All of the internal relays are set to off in the following cases: • When the CPU module is powered on from off •...
  • Page 352: Latch Relay (L)

    4.2.4 Latch relay (L) The latch relay (L) is a device for auxiliary relays that can be latched inside the CPU module. Latch relay data are retained by batteries in the CPU module during power failure. Operation results (on/off information) immediately before the following will be also retained.
  • Page 353: Annunciator (F)

    CHAPTER 4 DEVICES 4.2.5 Annunciator (F) The annunciator (F) is an internal relay that can be effectively used in fault detection programs for a user-created system. When any annunciator turns on, SM62 turns on, and the number of annunciators turned on and the corresponding numbers are stored in SD62 to SD79.
  • Page 354 (3) Turning on the annunciator and processing (a) Turning on the annunciator The following instructions can be used. • SET F instruction The SET F instruction can be used to turn on the annunciator only on the leading edge (off to on) of an input condition.
  • Page 355 CHAPTER 4 DEVICES (4) Turning off the annunciator and processing (a) Turning off the annunciator The following instructions can be used. instruction • RST F This is used to turn off the annunciator number that was turned on with the SET F instruction.
  • Page 356 (b) Processing after annunciator off Data stored in the special register (SD62 to SD79) after execution of the LEDR instruction • The annunciator number in SD64 is deleted, and the other annunciator numbers in the register addressed SD65 and after are shifted accordingly. •...
  • Page 357: Edge Relay (V)

    CHAPTER 4 DEVICES 4.2.6 Edge relay (V) The edge relay (V) is a device in which the on/off information of contacts from the beginning of the ladder block is memorized. The device can be used only as contacts (cannot be used as coils). Stores on/off information of X0, X1, and X10.
  • Page 358: Link Relay (B)

    4.2.7 Link relay (B) The link relay (B) is a relay on the CPU module side, and it is used for refreshing the link relay (LB) data of another module such as a MELSECNET/H network module to the CPU module or refreshing the CPU module data to the link relay (LB) of the MELSECNET/H network module.
  • Page 359: Link Special Relay (Sb)

    CHAPTER 4 DEVICES To use the link device in the network module exceeding link relay points of the CPU module (default: 8192 points), change the link relay points in the Device tab of the PLC Parameter dialog box. 4.2.8 Link special relay (SB) The Link special relay (SB) is a relay that indicates various communication status and detected errors of intelligent function modules such as CC-Link IE module or MELSECNET/H module.
  • Page 360: Step Relay (S)

    4.2.9 Step relay (S) This device is provided for SFC programs. For how to use the step relay, refer to the following manual. MELSEC-Q/L/QnA Programming Manual (SFC) Because the step relay is a device exclusively used for SFC programs, it cannot be used as an internal relay in the sequence program.
  • Page 361 CHAPTER 4 DEVICES Low-speed timer This type of timer measures time in increments of 1 to 1000ms. The timer starts time measurement when its coil is turned on, and when it times out, the contact is turned on. If the timer's coil is turned off, the current value is changed to "0" and the contact is turned off. [Ladder example] When X0 is turned on, coil of T0 is turned on, and the contact turns on after 1s.
  • Page 362 Retentive timer This timer measures the period of time during which the coil is on. The timer starts time measurement when its coil is turned on, and when it times out, the contact is turned on. Even if the timer's coil is turned off, the current value and the on/off status of the contact are retained. When the coil is turned on again, the measurement restarts from the retained current value.
  • Page 363 CHAPTER 4 DEVICES Timer processing and accuracy Processing When the OUT T or OUT ST instruction is executed, the on/off switching of the timer coil, current value update, and on/off switching of the contact are performed. In the END processing, the current timer value is not updated and the contact is not turned on/off. [Ladder example] [Processing at execution of OUT T0 instruction] OUT TO...
  • Page 364 (b) Accuracy The value obtained by the END instruction is added to the current value when the OUT T or OUT ST instruction is executed. The current value is not updated while the timer coil is off even if the OUT T or OUT ST instruction is executed.
  • Page 365 CHAPTER 4 DEVICES Precautions for using timers (a) Use of the same timer Do not use the OUT T instruction that describes the same timer more than once within one scan. If this occurs, the current timer value will be updated by each OUT T instruction execution, resulting in incorrect time measurement.
  • Page 366 Make the value of the timer limit setting smaller by changing from low speed timer to high speed timer. (Assume that the scan time is 20ms.) After change (high-speed timer) Before change (low-speed timer) Timer setting value Scan time Timer Limit Setting Timer setting value Scan time Timer Limit Setting...
  • Page 367 CHAPTER 4 DEVICES When the timer setting value is 2 (2 × 100ms), the scan time is 110ms, and the timer limit setting is 100ms If the coil of the timer (T0) is turned on at the next scan after the values satisfy "Count at execution of the END instruction ...
  • Page 368 (g) When using multiple timers When using multiple timers to update the respective current values at execution of each OUT T instruction, pay attention to the ladder sequence. Creating an on/off ladder using two timers [Correct ladder example] Coil of T1 is turned on one scan after T0 is turned on. Measures for one second after T0 is turned on.
  • Page 369: Counter (C)

    CHAPTER 4 DEVICES 4.2.11 Counter (C) The counter (C) is a device that counts the number of rises for input conditions in sequence programs. When the count value matches the set value, the counting stops and its contact is turned on. The counter is of an incremental type.
  • Page 370 (c) Resetting the counter The current counter value is not cleared even if the OUT C instruction is turned off. To clear the current value and to turn off the contact of the counter, use the RST C instruction. At the time of execution of the RST C instruction, the counter value is cleared, and the contact is also turned off.
  • Page 371 CHAPTER 4 DEVICES [Precautions for resetting the counter] Execution of the RST C instruction also turns off the coil of C . If the execution condition for the OUT C instruction is still ON after execution of the RST C instruction, turn on the coil of C at execution of the OUT C...
  • Page 372 Maximum counting speed The counter can count only when the on/off time of the input condition is longer than the execution interval of the corresponding OUT C instruction. The maximum counting speed is calculated by the following expression: • n: Duty (%) Maximum counting •...
  • Page 373: Data Register (D)

    CHAPTER 4 DEVICES 4.2.12 Data register (D) The data register (D) is a memory in which numeric data (-32768 to 32767, or 0000 to FFFF ) can be stored. (1) Bit structure of the data register (a) Bit structure and read/write unit One point of the data register consists of 16 bits, and data can be read or written in units of 16 bits.
  • Page 374: Link Register (W)

    4.2.13 Link register (W) The link register (W) is a memory in the CPU module, which is refreshed with link register (LW) data of an intelligent function module such as a MELSECNET/H network module. CPU module MELSECNET/H network module Link register Link register Link refresh Link refresh...
  • Page 375 CHAPTER 4 DEVICES (b) When using a 32-bit instruction for the link register For a 32-bit instruction, two consecutive points of the data register (Wn and Wn+1) are the target of the processing. The lower 16 bits correspond to the link register number (Wn) specified in the sequence program, and the higher 16 bits correspond to the specified link register number + 1.
  • Page 376: Link Special Register (Sw)

    4.2.14 Link special register (SW) The link special register (SW) is used to store communication status data and error data of intelligent function modules, such as CC-Link IE module and MELSECNET/H module. Because the data link information is stored as numeric data, error locations and causes can be checked by monitoring the link special register.
  • Page 377: Internal System Devices

    CHAPTER 4 DEVICES Internal System Devices Internal system devices are provided for system operations. The allocations and sizes of internal system devices are fixed, and cannot be changed by the user. 4.3.1 Function devices (FX, FY, FD) Function devices are used in subroutine programs with argument passing. Data are read or written between such subroutine programs and calling programs, using function devices.
  • Page 378 (c) Function register (FD) • The function register is used for data writing or reading between a subroutine program and a calling program. • The CPU module auto-detects the input or output conditions of the function register. Source data are input data of the subroutine program. Destination data are output data from the subroutine program.
  • Page 379: Special Relay (Sm)

    CHAPTER 4 DEVICES 4.3.2 Special relay (SM) The special relay (SM) is an internal relay whose specifications are determined by the programmable controller. This device stores the CPU module status data. For details, refer to the following. QCPU User's Manual (Hardware Design, Maintenance and Inspection) 4.3.3 Special register (SD) The special register (SD) is an internal relay whose specifications are determined by the programmable controller.
  • Page 380: Link Direct Device

    Link Direct Device The link direct device is a device for direct access to the link device in a CC-Link IE Controller Network module, CC-Link IE Field Network master/local module or MELSECNET/H module. This CPU module can directly write data to or read data from the link device in each network module using sequence programs, regardless of the link refresh of the CPU module.
  • Page 381 CHAPTER 4 DEVICES (b) Application example For link register 10 (W10) of network number 2, "J2\W10" must be used. Network module of K100 J2\ W10 MOVP network number 2 LW 0 LW10 For a bit device (X, Y, B, or SB), the digit must be specified. J1\K1X0, J10\K4B0...
  • Page 382 (2) Specification range A link device that is not set in the Network parameter dialog box can be specified. (a) Writing • The write range must be within the link device send range that is set by common parameters on Network parameter setting dialog box, and it must be outside the refresh range set by network refresh parameters.
  • Page 383 CHAPTER 4 DEVICES (b) Reading The link device ranges of network modules can be read. Writing or reading data by using a link direct device is allowed for only one network module that is on the same network. If two or more network modules are mounted on the same network, a network module with the lowest slot number is the target of writing or reading by the link direct device.
  • Page 384: Module Access Devices

    Module Access Devices 4.5.1 Intelligent function module device The intelligent function module device allows direct access from the CPU module to the buffer memory of the intelligent function modules which are mounted on the main and extension base units. (1) Specification method and application example (a) Specification method Specify the I/O number and buffer memory address of the intelligent function module.
  • Page 385 CHAPTER 4 DEVICES (2) Processing speed The processing speed of the intelligent function module device is as follows: • The processing speed of writing or reading using the intelligent function module device is slightly higher compared with the case of using the FROM or TO instruction. "MOV U2\G11 D0"...
  • Page 386: Cyclic Transmission Area Device

    4.5.2 Cyclic transmission area device The cyclic transmission area device is used to access the CPU shared memory of each CPU module in a multiple CPU system. (1) Features • The transfer speed is higher than the case of using the write (S.TO or TO) or read (FROM) instruction to the CPU shared memory, resulting in reduced programming steps.
  • Page 387: Index Register (Z)/Standard Device Resister (Z)

    CHAPTER 4 DEVICES Index Register (Z)/Standard Device Resister (Z) 4.6.1 Index register (Z) The index register is used for indirect specification (index modification) in sequence programs. Index modification uses one point of the index register. K5 Z0 MOVP SM400 D0Z0 K4Y30 Specify the index register by one point (16 bits).
  • Page 388 (2) 32-bit index modificationNote 4.4 For 32-bit index modification, use two points of the index register. The index register areas to be used for 32-bit index modification is set in two ways:. • by specifying the index register range used, or Note 4.4 •...
  • Page 389: Standard Device Register (Z)

    CHAPTER 4 DEVICES 4.6.2 Standard device register (Z) By using the index register between register operations, operations can be executed at a higher speed. The index register used in this case is called the standard device resister. (1) Device number Since the standard device register is the same device as the index register, pay attention not to use the same device number when using the index modification.
  • Page 390: Switching From The Scan Execution Type To The Interrupt/Fixed Scan Execution Type Program

    4.6.3 Switching from the scan execution type to the interrupt/fixed scan execution type program The CPU module performs the following when switching from the scan execution type program to the interrupt/fixed scan execution type program. • Saving and restoring the index register data •...
  • Page 391 CHAPTER 4 DEVICES (b) When "High-speed execution" is selected • When switching from the scan execution type program to the interrupt/fixed scan execution type program The CPU module does not save/restore any index register values. • When switching from the interrupt/fixed scan execution type program to the scan execution type program If data are written to the index register by the interrupt/fixed scan execution type program, the values of the index register used in the scan execution type program will be corrupted.
  • Page 392: File Register (R)

    File Register (R) Note 4.5 The file register (R) is a device provided for extending the data register. The file register can be used at the same processing speed as the data register.Note 4.5 K100 R2 File register 100 is written to R2. (1) Bit structure of the file register (a) Bit structure and read/write unit One point of the file register consists of 16 bits, and data can be read or written in units of 16 bits.
  • Page 393: Storage Location

    CHAPTER 4 DEVICES (2) Clearing the file register If the Latch (2) is set in the Device tab of the PLC parameter dialog box, the data in the file register are not cleared even if the CPU module is powered off or reset. (Data cannot be initialized by performing latch clear operation. For how to clear the data, refer to the "Data Clear Processing"...
  • Page 394 CPU module Point Q06UDVCPU, Q06UDPVCPU 384K With an extended SRAM cassette (1M) 896K With an extended SRAM cassette (2M) 1408K With an extended SRAM cassette (4M) 2432K With an extended SRAM cassette (8M) 4480K Q10UD(E)HCPU, Q13UD(E)HCPU 512K Q13UDVCPU, Q13UDPVCPU 512K With an extended SRAM cassette (1M) 1024K With an extended SRAM cassette (2M)
  • Page 395: Differences In Available Accesses By Storage Memory

    CHAPTER 4 DEVICES 4.7.3 Differences in available accesses by storage memory Accesses available for the file register vary for each memory. Access Standard RAM SRAM card Flash card Program writing × Program reading Writing device memory to programmable controller × Reading device memory from programmable controller Online test operation using a programming tool ×...
  • Page 396 (b) Use the same file name as the program. Select this when executing the file register with the same file name as the sequence program. Select the memory to be used for the file register from a standard RAM or a memory card. •...
  • Page 397 CHAPTER 4 DEVICES (c) Use the following file. Select this when one file register is to be shared by all execution programs. Specify "Corresponding Memory", "File Name", and "Capacity" and write these parameters to the CPU module to create a file for the file register. If the capacity is not specified, note the following.
  • Page 398 (2) Registering a file register file to the CPU module Register a file to the CPU module by executing the write to PLC function. [Online] [Write to PLC] (a) Registration memory Select a memory where the file register file is to be registered from the following. •...
  • Page 399: Specification Methods Of The File Register

    CHAPTER 4 DEVICES 4.7.5 Specification methods of the file register (1) Block switching method The file register points used are divided and specified in units of 32K points (R0 to R32767). If multiple blocks are used, the desired block is specified with the block number in the RSET instruction. Each block has a specification range of R0 to R32767.
  • Page 400: Precautions For Using The File Register

    4.7.6 Precautions for using the file register (1) No registration or use of an invalid file register number (a) When the file of the file register has not been registered Writing to or reading from the file register will result in "OPERATION ERROR" (error code: 4101). (b) When writing to or reading from the file register exceeding the registered size (points) "OPERATION ERROR"...
  • Page 401 CHAPTER 4 DEVICES (c) File register size checking procedure • Check the file register size used for each sequence program. • Check the total file register size set in SD647 on the sequence program to see if there are sufficient number of points to be used or not.
  • Page 402: Extended Data Register (D) And Extended Link Register (W)

    Extended Data Register (D) and Extended Link Register Note 4.6 The extended data register (D) and extended link register (W) are devices for using the large-capacity file register (ZR) area as an extended area of the data register (D) and link register (W). These devices can be programmed as the data register (D) and link register (W) together with the file register (ZR) area.Note 4.6 Device numbers can be assigned to the...
  • Page 403 CHAPTER 4 DEVICES (2) Setting method Since the extended data register (D) and extended link register (W) use the file register area, data must be set for both the file register setting and the device setting. (a) File register setting Select "Use the following file."...
  • Page 404 (b) Device setting Set each number of points for the extended data register (D) and extended link register (W) in the File Register Extended Setting in the Device tab of the PLC parameter dialog box. Assign a part of the points set for the file register (ZR) in the PLC file tab to the extended data register (D) and extended link register (W).
  • Page 405 CHAPTER 4 DEVICES (4) Precautions For use of the extended data register (D) and extended link register (W), pay attention to the following. • Since the file register (ZR) area is used, the values of the following items will be the same as those for the file register (ZR) when the extended data register (D) and extended link register (W) are specified.
  • Page 406 • To access the extended data register (D) or extended link register (W) from a module that does not support the use of these devices, device numbers need to be specified with those of the file register (ZR). Calculation formulas for obtaining device numbers of the file register (ZR) to be specified to access the extended data register (D) and extended link register (W) and calculation examples are described below Item Calculation formula...
  • Page 407: Nesting (N)

    CHAPTER 4 DEVICES Nesting (N) Nesting (N) is a device used in the master control instructions (MC and MCR instructions) to program operation conditions in a nesting structure. (1) Specification method using master control instructions The master control instruction opens or closes a common ladder gate to switch the ladder of a sequence program efficiently.
  • Page 408: Pointer (P)

    4.10 Pointer (P) The pointer (P) is a device used in jump instructions (CJ, SCJ, or JMP) or subroutine call instructions (such as CALL). (1) Applications Pointers can be used in the following applications. • Specification of the jump destination in a jump instruction (CJ, SCJ, or JMP) and a label (start address of the jump destination) •...
  • Page 409: Local Pointer

    CHAPTER 4 DEVICES 4.10.1 Local pointer The local pointer is a pointer that can be used independently in jump instructions and subroutine call instructions in each program. The same pointer number can be used in respective programs. Program A Program B The same pointer No.
  • Page 410 (2) Precautions for using the local pointer (a) Program where the local pointer is described A jump from another program is not allowed. Use the ECALL instruction from another program when calling a subroutine program in a program file that contains any local pointer.
  • Page 411: Common Pointer

    CHAPTER 4 DEVICES 4.10.2 Common pointer The common pointer is used to call subroutine programs from all programs that are being executed. Program A Program C P204 CALL P204 CALL P0 FEND P205 Program B CALL P205 FEND Label (1) Common pointer range In the PLC system tab of the PLC parameter dialog box, set the start number for the common pointer.
  • Page 412: Interrupt Pointer(I)

    4.11 Interrupt Pointer(I) The interrupt pointer (I) is used as a label at the start of an interrupt program, and can be used in any programs. Interrupt pointer (interrupt program label) Interrupt program IRET (1) Number of available points The number of points and the range available for the interrupt pointer are shown below. CPU module Point Range...
  • Page 413: List Of Interrupt Pointer Numbers And Interrupt Factors

    CHAPTER 4 DEVICES 4.11.1 List of interrupt pointer numbers and interrupt factors The list of interrupt pointer numbers and interrupt factors are shown below. (1) When a Q series interrupt module is mounted I No. Interrupt factor Priority I No. Interrupt factor Priority 1st point...
  • Page 414 (2) When an A series interrupt module is mounted I No. Interrupt factor Priority I No. Interrupt factor Priority 1st point 2nd point 3rd point 4th point 5th point 6th point 7th point I32 to Interrupt by an 8th point interrupt module 9th point (A1SI61)
  • Page 415: Other Devices

    CHAPTER 4 DEVICES 4.12 Other Devices 4.12.1 SFC block device (BL) The SFC block is used to check that the specified block in the SFC program is activated. Remark For use of the SFC block device, refer to the following. MELSEC-Q/L/QnA Programming Manual (SFC) 4.12.2 Network No.
  • Page 416: I/O No. Specification Device (U)

    4.12.3 I/O No. specification device (U) The I/O No. specification device is used to specify I/O numbers in the intelligent function module dedicated instructions. (1) Specification method Specify as shown below by using the intelligent function module dedicated instructions. GP.READ S1 S2 S3 D I/O No.
  • Page 417: Chapter 5 Constants

    CHAPTER 5 CONSTANTS CHAPTER 5 CONSTANTS Decimal Constant (K) The decimal constant (K) is used to specify decimal data in sequence programs. Specify it as K (example: K1234) in sequence programs. In the CPU module, data are stored in binary (BIN). ( Page 494, Appendix 4.1) (1) Specification range The specification ranges for decimal constants are as follows:...
  • Page 418: Real Number (E)

    Real Number (E) The real number (E) is a device used to specify real numbers in sequence programs. In sequence programs, specify it as E (example: E1.234). ( Page 497, Appendix 4.4) EMOVP E1.234 D0 (1) Specification range (a) Real number setting range •...
  • Page 419: Character String (" ")

    CHAPTER 5 CONSTANTS Character String (" ") The character string is a device used to specify a character string in sequence program. Characters enclosed in quotation marks (example: "ABCD1234") are specified. (1) Available characters The shift JIS code can be used for character strings. The CPU module distinguishes between upper and lower case characters.
  • Page 420: Chapter 6 Convenient Usage Of Devices

    CHAPTER 6 CONVENIENT USAGE OF DEVICES When multiple programs are executed in the CPU module, each program can be executed independently by specifying an internal user device as a local device. Devices of the CPU module are classified into the following two types: •...
  • Page 421 CHAPTER 6 CONVENIENT USAGE OF DEVICES ● All of the devices that have not been set as local devices ( Page 420, Section 6.2) are global devices. ● For execution of multiple programs, the range to be shared by all programs and the range to be used independently by each program must be specified in advance.
  • Page 422: Local Device

    Local Device Note 6.1 The local device is a device that can be used independently for each program.Note 6.1 Using local devices allows programming of multiple independently-executed programs without considering other programs. Note that local device data can be stored in the standard RAM and a memory card (SRAM) only. CPU module If M7000 and higher portion is set as a local device, it can be separately used for each program that is executing M7000 and higher portion.
  • Page 423 CHAPTER 6 CONVENIENT USAGE OF DEVICES (2) Saving and restoring a local device file When some programs use a local device, respective local device file data in the standard RAM or a memory card (SRAM) are exchanged with the device memory data of the CPU module after execution of each program. For this reason, the scan time increases by the time spent for data exchange.
  • Page 424 (3) Local device setting (a) Setting the local device range In the Device tab of the PLC parameter dialog box, set the range that is used as a local device. Note that the local device range is common to all programs, and cannot be changed for each program. For example, if a local device range is specified as M0 to M100, this range setting applies to all programs that use the local device.
  • Page 425 CHAPTER 6 CONVENIENT USAGE OF DEVICES (b) Setting the drive and file name After setting the local device range, set a memory for storing the local device file and a file name in the PLC file tab of the PLC parameter dialog box. (c) Writing the setting data Write the data set in (a) and (b) to the CPU module.
  • Page 426 (4) Setting of whether to use a local device (for each program) Note 6.3 Use of the local device can be set for each program, and this function can reduce the scan time.Note 6.3 Also, since the area for saving and restoring data is not required for the programs not using a local device, the local device file size can be reduced.
  • Page 427 CHAPTER 6 CONVENIENT USAGE OF DEVICES (b) Precautions • Change of the local device Do not change or refer to the local device in a program for which the local device is set to "Not Used". Even if the local device is changed in such a program, the changed data will not be held. •...
  • Page 428 (5) Using the local device corresponding to the file where a subroutine program is stored When a subroutine program is executed, the local device corresponding to the file where the subroutine program is stored can be utilized. Use of the relevant local device is set by ON/OFF of SM776. SM776 Operation Perform operations with the local device that corresponds to the source file of the subroutine program.
  • Page 429 CHAPTER 6 CONVENIENT USAGE OF DEVICES Remark For details of SM776, refer to the following. QCPU User's Manual (Hardware Design, Maintenance and Inspection) (6) Usage of the local device when an interrupt/fixed scan execution type program is executed When the local device is used for an interrupt/fixed scan execution type program, turn on SM777 (Enable/disable local device in interrupt program).
  • Page 430 (a) Precautions • When SM777 is on, local device data are read out before execution of an interrupt/fixed scan execution type program, and the data are saved after execution of the IRET instruction. Because of this, the scan time is increased if one interrupt/fixed scan execution type program is executed with SM777 set to on.
  • Page 431 CHAPTER 6 CONVENIENT USAGE OF DEVICES Memo...
  • Page 432: Appendices

    APPENDICES Appendix 1 Parameters This chapter describes parameters set for programmable controller systems. (1) Parameter types The following parameters are provided for CPU modules. • PLC parameters ( Page 437, Appendix 1.2) These parameters are set when a CPU module is used stand alone in a system. •...
  • Page 433: Appendix 1.1 List Of Parameter Numbers

    APPENDICES Appendix 1.1 List of parameter numbers Each parameter number will be stored in SD16 to SD26 when an error occurs in the parameter settings. The following table lists the parameter items and corresponding parameter numbers. For explanation of M and N shown in the "Parameter No."...
  • Page 434 Parameter Item Set in: Reference Low Speed 1000 Timer Limit Setting High Speed Page 438, Appendix 1.2.2 1001 RUN-PAUSE Contacts PAUSE Page 136, Section 3.6.3, 1002 Remote Reset Page 438, Appendix 1.2.2 Page 125, Section 3.4, 1003 Output Mode at STOP to RUN Page 438, Appendix 1.2.2 1005 Common Pointer No.
  • Page 435 APPENDICES Parameter Item Set in: Reference Page 390, Section 4.7, 1100 File Register Page 440, Appendix 1.2.3 1101 Comment File Used in a Command Page 440, Appendix 1.2.3 Page 246, Section 3.25, 1102 Device Initial Value Page 440, Appendix 1.2.3 PLC File Page 420, Section 6.2, 1103...
  • Page 436 Parameter Item Set in: Reference Carry Out Battery Check Carry Out Fuse Blown Check Verify Module 3001 Error Check Check Device Range at Indexing Diagnose Redundant Power Supply System Computation Error Page 195, Section 3.17, Expanded Command Error Page 441, Appendix 1.2.4 Fuse Blown Module Verify Error Operating Mode When...
  • Page 437 APPENDICES Parameter Item Set in: Reference 9000 Number of modules on Ethernet Start I/O No. Network No. 9N00 Group No. Station No. Operation Setting 9N01 Initial Setting 9N02 Open Setting Ethernet Page 461, Appendix 1.3.4 9N03 Router Relay Parameter 9N05 Station No.<->IP Information 9N06 FTP Parameters...
  • Page 438 Parameter Item Set in: Reference C000 Number of Modules Remote Input (RX) Remote Output (RY) Remote Register (RWr) Remote Register (RWw) Ver.2 Remote Input (RX) CNM1 Ver.2 Remote Output (RY) Ver.2 Remote Register (RWr) Ver.2 Remote Register (RWw) Special Relay (SB) Special Register (SW) CC-Link Page 462, Appendix 1.3.5...
  • Page 439: Appendix 1.2 Plc Parameters

    APPENDICES Appendix 1.2 PLC parameters This section describes PLC parameter details with setting windows. Appendix 1.2.1 PLC name A label and a comment for the CPU module are set. The settings will be displayed in the list for the find CPU Note Appx.1 function.
  • Page 440: Appendix 1.2.2

    Appendix 1.2.2 PLC system Parameters required for use of the CPU module are set. Parameter Item Description Setting range Default Reference Low Speed 1ms to 1000ms (in increments of 1ms) 100ms Page 358, Timer Limit Set the time limit for the low 1000 Section 0.01ms to 100.0ms (in increments of...
  • Page 441 APPENDICES Parameter Item Description Setting range Default Reference Page 409, Set the start number of common 1005 Common Pointer No. P0 to 4095 Blank Section pointers. 4.10.2 Set the number of points for Points Occupied by 0, 16, 32, 64, 128, 256, 512, or 1024 Page 54, 1007 empty slots on the...
  • Page 442: Appendix 1.2.3 Plc File

    Appendix 1.2.3 PLC file Parameters required for the files used in the CPU module are set. Parameter Item Description Setting range Default Reference • Not Used Set a file for the file register used • Use the same file name as the Page 390, 1100 Not Used...
  • Page 443: Plc Ras

    APPENDICES Appendix 1.2.4 PLC RAS Parameters required for performing the RAS functions are set. Parameter Item Description Setting range Default Reference 10ms to 2000ms Set a watchdog timer value for Page 193, WDT Setting (in increments of 200ms the CPU module. Section 3.16 10ms) WDT (Watchdog...
  • Page 444 Parameter Item Description Setting range Default Reference Collection of intelligent Set whether to collect module function module error Selected/deselected Selected errors. histories is valid. • System Memory System Module Error Corresponding Memory Select a storage location. • Standard RAM Memory History Collection Page 297,...
  • Page 445: Boot File

    APPENDICES Appendix 1.2.5 Boot file Parameters required for a boot from a memory card are set. Parameter Item Description Setting range Default Reference Select whether to clear the Clear Program Boot Option program memory at the time of Selected/deselected Deselected Memory boot.
  • Page 446: Program

    Appendix 1.2.6 Program File names and execution types (execution conditions) are set for each program when two or more programs are written to the CPU module. Parameter Item Description Setting range Default Reference When writing two or more programs to •...
  • Page 447: Appendix 1.2.7 Sfc

    APPENDICES Appendix 1.2.7 The mode and conditions for starting an SFC program, and the output mode in the case of a block stop are set. Parameter Item Description Setting range Default Reference 8002 SFC Program Start Mode Initial Start Set the mode and conditions for MELSEC- 8003 starring an SFC program, and...
  • Page 448: Device

    Appendix 1.2.8 Device Number of points, latch range, and local device range are set for each device. Parameter Item Description Setting range Default Reference • X: 8K • Y: 8K • M: 8K • L: 8K • B: 8K X (8K), Y (8K), and S (8K) are fixed.
  • Page 449 APPENDICES Parameter Item Description Setting range Default Reference Point assignment to the file register (ZR), extended data register (D), or Page 334, Set points for the file register (ZR), Device extended link register (W). Assign part Section 4.1, 2000 extended data register (D), and Blank Points of the points of the file register to the...
  • Page 450 This setting item is available to the High-speed Universal model QCPU and Universal model Process CPU. Before setting this item, check the versions of the CPU module and GX Works2 used. ( Page 465, Appendix 2)
  • Page 451: I/O Assignment

    APPENDICES Appendix 1.2.9 I/O assignment The mounting status of each module in the system is set. Parameter Item Description Setting range Default Reference • CPU No.2 to No.4: No.n/Empty (Set "CPU (Empty)" for the slot where no CPU module is Type Set the type of the mounted module.
  • Page 452 Parameter Item Description Setting range Default Reference Set whether to clear or hold the output Error Time Page 141, 0403 in case of a stop error in the control Clear/Hold Clear Output Mode Section 3.8 CPU. Set whether to stop or continue the Operation operation of the control CPU in case Page 142,...
  • Page 453: Appendix 1.2.10 Multiple Cpu Setting

    APPENDICES Appendix 1.2.10 Multiple CPU setting Note Appx.2 Parameters required for configuring a multiple CPU system are set.Note Appx.2 Note Appx.2 Universal The Q00UJCPU cannot be used in multiple CPU systems.
  • Page 454 Parameter Item Description Setting range Default Reference Set the number of CPU modules used 0E00 No. of PLC 1 to 4 in a multiple CPU system. Set a CPU number for which the multiple CPU setting parameters are E00C PLC No.1 to No.4 Blank Host Station set.
  • Page 455: Appendix 1.2.11 Built-In Ethernet Port Setting

    APPENDICES Appendix 1.2.11 Built-in Ethernet port setting Note Appx.3 Parameters required for using the built-in Ethernet port are set.Note Appx.3 Note Appx.3 Universal The Universal model QCPUs other than the Built-in Ethernet port QCPU do not have any Ethernet port.
  • Page 456 Parameter Item Description Setting range Default Reference • IP Address: 0.0.0.1 to 223.255.255.254 • IP Address: • IP Address: (00000001 to 0DFFFFFFE Enter the IP address of the 192.168.3.39 • Subnet Mask Pattern: CPU module. • Subnet Mask Blank or •...
  • Page 457: Serial Communication

    APPENDICES Appendix 1.2.12 Serial communication Note Appx.4 The transmission speed, sum check, transmission wait time, and RUN write setting for using the serial communication function of the CPU module are set.Note Appx.4 Parameter Item Description Setting range Default Reference Select the item when using the Use Serial Communication Selected/deselected Deselected...
  • Page 458: Acknowledge Xy Assignment

    Appendix 1.2.13 Acknowledge XY assignment The parameters set in the I/O Assignment, Ethernet/CC IE/MELSECNET setting, and CC-Link setting can be checked. Parameter Item Description Setting range Default Reference The data set in the I/O Assignment, Ethernet/CC Acknowledge XY IE/MELSECNET setting, and CC-Link setting can be Assignment checked.
  • Page 459: Appendix 1.3 Network Parameters

    APPENDICES Appendix 1.3 Network Parameters This section describes network parameter details with setting windows. Symbols, M and N, used in the "Parameter No." column M and N in "Parameter No." in this section denote the following: • N: Indicates the module number. •...
  • Page 460: Cc-Link Ie Controller Network Setting

    Appendix 1.3.1 CC-Link IE Controller Network setting Network parameters for the CC-Link IE Controller Network are set. Item Parameter No. Description Setting range Default Reference Network Type A000 Station number setting method Start I/O No. Network No. ANM0 Total Stations Station No.
  • Page 461: Cc-Link Ie Field Network Setting

    APPENDICES Appendix 1.3.2 CC-Link IE Field Network setting Network parameters for the CC-Link IE Field Network are set. Item Parameter No. Description Setting range Default Reference Network Type A080 Station number setting method Start I/O No. Network No. ANM0 Total Stations Station No.
  • Page 462: Melsecnet/H Setting

    Appendix 1.3.3 MELSECNET/H setting Network parameters for MELSECNET/H are set Item Parameter No. Description Setting range Default Reference Number of modules on 5000 MELSECNET/H Start I/O No. 5NM0 Network No. Total Stations 05mn Group No. 5NM0 Mode 5NM1 Refresh Parameters Refer to the manual for the Q Set MELSECNET/H network 5NM2...
  • Page 463: Appendix 1.3.4 Ethernet Setting

    APPENDICES Appendix 1.3.4 Ethernet setting Network parameters for Ethernet are set Item Parameter No. Description Setting range Default Reference 9000 Number of modules on Ethernet Start I/O No. Network No. 9N00 Group No. Station No. Operation Setting 9N01 Initial Setting 9N02 Open Setting Refer to the manual for the...
  • Page 464: Appendix 1.3.5

    Appendix 1.3.5 CC-Link setting Parameters for CC-Link are set Item Parameter No. Description Setting range Default Reference Number of Modules C000 Type Start I/O No. CNM2 Operation Setting Total Module Connected Remote Input(RX) Remote Output(RY) Remote Register(RWr) Remote Register(RWw) CNM1 Ver.2 Remote Input(RX) Ver.2 Remote Output(RY) Ver.2 Remote Register(RWr)
  • Page 465: Appendix 1.4 Remote Password

    APPENDICES Appendix 1.4 Remote Password This section provides the list of parameters for remote password and describes parameter details.
  • Page 466 Parameter Item Description Setting range Default Reference Four characters or less (alphanumeric Password Setting Enter a remote password. characters, special symbols) Select a model name of the • Built-in Ethernet port QCPU Model module for which the remote • QJ71E71 Password Name password set to the CPU module...
  • Page 467: Appendix 2 Functions Added Or Changed By Version Upgrade

    APPENDICES Appendix 2 Functions Added or Changed by Version Upgrade The Universal model QCPU is upgraded when some functions are added or specifications are changed. Therefore, the functions and specifications differ depending on the function version and serial number. × : Not supported, : Not related to the programming tool –...
  • Page 468 Programming tool version Function Serial number Function version (first 5 digits) GX Works2 GX Developer Version 1.15R Version 8.82L Module model name read ( Page 296, Section 3.33) or later or later "11043" or later Version 1.12N *1 *5 × Module error collection function Page 297, Section 3.34) or later...
  • Page 469 APPENDICES Programming tool version Function Serial number Function version (first 5 digits) GX Works2 GX Developer Version 1.98C – × High-speed interrupt function ( Page 224, Section 3.21 ) or later Version 1.98C Data logging function QnUDVCPU/LCPU User's Manual (Data –...
  • Page 470 Some models do not support the function. For details, refer to the corresponding reference. Use the Universal model QCPU whose serial number (first five digits) is "10042" or later to store data of the extended data register (D) and extended link register (W) in the standard ROM using the latch data backup function. Page 253, Section 3.29).
  • Page 471: Appendix 3 Cpu Module Processing Time

    APPENDICES Appendix 3 CPU Module Processing Time This chapter describes the CPU module processing time. This section describes the scan time structures and CPU module processing time. Appendix 3.1 Scan time structure A CPU module sequentially performs the following processing in the RUN status. Scan time is the time required for all processing and executions to be performed.
  • Page 472: Appendix 3.2 Time Required For Each Processing Included In Scan Time

    (1) How to check scan time The CPU module measures current, minimum, and maximum values of the scan time. The scan time can be checked by monitoring the special register (SD520, SD521, and SD524 to SD527). Accuracy of each stored scan time is ±0.1ms. Current value SD520 SD521...
  • Page 473 APPENDICES Instruction execution time in END processing This is the processing time of the DUTY instruction in END processing. The user timing clock (SM420 to SM424 and SM430 to SM434) specified with the DUTY instruction is turned on/off during the END processing. Processing time in END processing CPU module When set to 1...
  • Page 474 Interrupt (I0 to I15) High- Multiple CPU from QI60 or interrupt Fixed scan interrupt speed synchronous interrupt (I50 to I127) from the (I28 to I31) interrupt (I45) intelligent function CPU module (I49) module Without Without With high- With high- Without With high- With high- high-speed...
  • Page 475 APPENDICES (d) Overhead time when local devices in the interrupt program are enabled When SM777 (Enable/disable local device in interrupt program) turns on, the time given in the following tables will be added to the overhead time given in Page 471, Appendix 3.2 (3) (a). Each n, N1, N2, and N3 in the table indicates the following.
  • Page 476 Refresh time Refresh time is the total time required for the CPU module to refresh data with the network such as CC-Link IE, MELSECNET/H, and CC-Link. (a) Refresh with CC-Link IE This is the time required for refreshing data between link devices in a CC-Link IE module and devices in the CPU module.
  • Page 477 APPENDICES (d) Refresh with CC-Link IE Field Network Basic This is the time required for refreshing data between link devices of CC-Link IE Field Network Basic and user devices in the CPU module.  Calculation method Calculate using the following formulas. Use the values in the following table for KN1 to KN4. T = KM1 + KM2 ×...
  • Page 478 (e) Auto refresh with an intelligent function module This is the time required for refreshing data between the buffer memory of an intelligent function module and devices in the CPU module.  Calculation method Calculate using the following formulas. Use the values in the following tables for KN1 and KN2. (Refresh time) = KN1 + KN2 ×...
  • Page 479 APPENDICES (b) Error clear The following processing time is required to clear continuation errors stored in SD50 on the rising edge of SM50 (Error reset). Processing time in END processing When the error is cleared CPU module (the one detected by the When the error is cleared annunciator) Q00UJCPU, Q00UCPU, Q01UCPU...
  • Page 480 (a) When the latch interval is set to "Each Scan" The processing time listed in the following table is required. CPU module Processing time (4.4 × N1) + (0.12 × (N2  16 + N3))µs Q00UJCPU, Q00UCPU, Q01UCPU (4.0 × N1) + (0.12 × (N2  16 + N3))µs Q02UCPU (3.0 ×...
  • Page 481 APPENDICES Service processing time Service processing is the communication processing with a programming tool and external devices. When monitoring device data, reading programs, and setting monitor conditions in a programming tool, the processing time listed in the following table is required. (a) Processing time to monitor device data and read programs Processing time CPU module...
  • Page 482 Common processing time The CPU module performs common processing by the system. The common processing time shown below is required. CPU module Processing time Q00UJCPU, Q00UCPU, Q01UCPU 0.28ms Q02UCPU 0.20ms Q03UDCPU 0.13ms Q04UDHCPU, Q06UDHCPU, Q10UDHCPU, Q13UDHCPU, 0.10ms Q20UDHCPU, Q26UDHCPU Q03UDECPU 0.22ms Q04UDEHCPU, Q06UDEHCPU, Q10UDEHCPU, Q13UDEHCPU, 0.18ms...
  • Page 483: Factors That Increase The Scan Time

    APPENDICES Appendix 3.3 Factors that increase the scan time When executing any of the functions or operations described in this section, add the given processing time in this section to the time value calculated in Page 469, Appendix 3.1. (1) Sampling trace When the sampling trace function ( Page 184, Section 3.14) is executed, the processing time listed in the following table is required.
  • Page 484 (2) Use of local devices When local devices are used, the processing time listed in the following table is required. Each n, N1, N2, N3, and N4 in the table indicates the following. • n: Number of programs using a local device •...
  • Page 485 APPENDICES (a) When local devices in a subroutine program are enabled When SM776 (Enable/disable local device at CALL) is turned on, the processing time listed in the following table is required for each subroutine call. Each n, N1, N2, N3, and N4 in the table indicates the following. •...
  • Page 486 When a local device file in the SRAM card is used Processing time when a CPU module Processing time when a subroutine program subroutine program in the same in a different file is called file is called (20.3 × N1) + (0.760 × (N2 + (N3  16))) + Q02UCPU 0.00µs (2.80 ×...
  • Page 487 APPENDICES (5) Removal and insertion of an SD memory card When an SD memory card is removed or inserted, the processing time listed in the following table is required only for one scan where a memory card is removed or inserted. Processing time When an SD When an SD...
  • Page 488 (7) Online change When data is written to the running CPU module, the processing time described below is required. (a) Online change (ladder mode) When a program in the running CPU module is changed in ladder mode, the processing time listed in the following table is required.
  • Page 489 APPENDICES (b) Online change (files) When a file is written to the running CPU module, the processing time listed in the following table is required. The time in the table is for the case where the service processing count is set to one. Processing time CPU module Scan time = 2ms...
  • Page 490 (9) Scan time measurement When the scan time is measured (Page 181, Section 3.13.3), the processing time listed in the following table is required. CPU module Processing time Q00UJCPU 180.3 + 5.9 × number of branch instructions µs Q00UCPU, Q01UCPU 179.5 + 5.8 ×...
  • Page 491 APPENDICES Main base unit Extension base unit CPU module Q03UDVCPU, Q04UDVCPU, Q04UDPVCPU, Q06UDVCPU, Q06UDPVCPU, Q13UDVCPU, Q13UDPVCPU, Q26UDVCPU, 6µs 45µs 6µs 70µs Q26UDPVCPU (12)Batch transfer of data to the program memory When data in the program cache memory is batch-transferred to the program memory, the processing time listed in the following table is required.
  • Page 492 (14)A-PLC compatibility setting When "A-PLC Compatibility Setting" is enabled in the PLC System tab of the PLC Parameter dialog box, the processing time listed in the following table is required. CPU module Processing time Q00UJCPU, Q00UCPU, Q01UCPU 95µs Q02UCPU 90µs Q03UD(E)CPU, Q04UD(E)HCPU, Q06UD(E)HCPU, Q10UD(E)HCPU, Q13UD(E)HCPU, Q20UD(E)HCPU, Q26UD(E)HCPU, Q50UDEHCPU, 34µs...
  • Page 493 APPENDICES (d) Buffer memory read The processing time listed in the following table is required. Processing time = (KM1 × total number of words transferred) + (KM2 × number of setting points) + KM3 [µs] Read data size: 16 words or less Read data size: more than 16 words CPU module Main base unit...
  • Page 494: Appendix 4 Data Used In Sequence Programs

    Appendix 4 Data Used in Sequence Programs The CPU module represents numeric and alphabetic data using two symbols (states): 0 (off) and 1 (on). Data represented using these two symbols is called binary number (BIN). The CPU module can also use hexadecimal (HEX) (each hexadecimal digit represents four binary bits), binary-coded decimal (BCD), or real numbers.
  • Page 495 APPENDICES (1) Inputting numeric values externally to the CPU module When setting a numeric value to the CPU module externally using a digital switch, BCD (binary-coded decimal) can be used as DEC (decimal) by the method given below. (a) Numeric values used inside the CPU module The CPU module performs program operations in binary.
  • Page 496: Bin (Binary Code)

    Appendix 4.1 BIN (Binary Code) (1) Definition Binary is a numeral system that represents numeric values using two symbols, 0 (off) and 1 (on). Decimal notation uses the symbols 0 through 9. When the symbols for the first digit are exhausted (a digit reaches 9), the next-higher digit (to the left) is incremented, and counting starts over at 0.
  • Page 497: Hex (Hexadecimal)

    APPENDICES Appendix 4.2 HEX (Hexadecimal) (1) Definition Hexadecimal (HEX) is a numeral system that represents four binary bits as one digit. With four binary bits, sixteen different numeric values, 0 to 15, can be represented. Hexadecimal notation uses 16 symbols to represent numeric values 0 to 15 in one digit, the symbols 0 to 9 to represent values zero to nine, and A to F to represent values ten to fifteen.
  • Page 498 Appendix 4.3 BCD (Binary-coded Decimal) (1) Definition BCD is a numeral system that uses four binary bits to represent the decimal digits 0 through 9. The difference from hexadecimal is that BCD does not use letters A to F. The following table lists the numeric representations in BIN, BCD, and DEC. DEC (Decimal) BIN (Binary) BCD (Binary-coded Decimal)
  • Page 499: Appendix 4.4 Real Number (Floating-Point Data)

    APPENDICES Appendix 4.4 Real number (Floating-point data) There are two types of real number data: single-precision floating-point data and double-precision floating-point data. (1) Single-precision floating-point data (a) Internal representation Internal representation of real numbers used in the CPU module is given below. Real number data can be represented as follows, using two word devices.
  • Page 500 (b) Calculation example Calculation examples are shown below. (The "X" in (nnnnnn) x indicates the numeral system used.) • Storing "10"  (1010)  (1.010000..× 2 (10) Positive  0 Sign: 3  82  (10000010) Exponent: Mantissa: (010 00000 00000 00000 00000) In this case, the value will be encoded as 41200000 Sign Exponent...
  • Page 501 APPENDICES (2) Double-precision floating-point data (a) Internal representation Real number data used in the CPU module is internally represented as follows, using four word devices. [Exponent] [Sign] 1. [Mantissa] × 2 The bit configuration and the meaning of each bit are described below. b52 to b62 b0 to b51 Exponent (11 bits)
  • Page 502 (b) Calculation example Calculation examples are shown below. (The "X" in (nnnnnn) x indicates the numeral system used.) • Storing "10"  (1010)  (1.010000..× 2 (10) Positive  0 Sign: 3  401  (100 0000 0001) Exponent: Mantissa: 0100 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 In this case, the value will be encoded as 4014000000000000...
  • Page 503: Appendix 4.5 Character String Data

    APPENDICES Appendix 4.5 Character string data (1) Definition The CPU module uses shift JIS code character strings.
  • Page 504: Appendix 5 Replacing Basic Model Qcpu Or Qn(H)Cpu With Qnucpu

    Appendix 5 Replacing Basic Model QCPU or Qn(H)CPU with QnUCPU Appendix 5.1 Replacement precautions This section describes precautions for replacing the Basic model QCPU or High Performance model QCPU with the Universal model QCPU and the replacement methods. Appendix 5.1.1 Replacing Basic model QCPU with Universal model QCPU (1) System configuration...
  • Page 505 APPENDICES Item Precautions Replacement method Reference Check the numbers of executions for interrupt Interrupt counter Interrupt counter is not supported. programs on the Interrupt program monitor list Page 180, Section 3.13.2 screen. When the SCJ instruction is used in the Universal Section 6.5 in the Insert the AND SM400 (or NOP instruction) model QCPU, the AND SM400 (or NOP instruction)
  • Page 506 (3) Drive and file Item Precautions Replacement method Reference Since the Universal model QCPU holds the data in the program memory even when the battery voltage drops, the boot file setting is not Boot file setting The boot file setting is not supported. necessary.
  • Page 507 APPENDICES (5) Battery installation position Item Precautions Replacement method Reference The battery replacement method is different. The battery installation position varies depending on QCPU User's Manual the model. Battery installation For the battery replacement method, refer to the (Hardware Design, •...
  • Page 508: Replacing High Performance Model Qcpu With Universal Model Qcpu

    Appendix 5.1.2 Replacing High Performance model QCPU with Universal model QCPU (1) System configuration Item Precautions Replacement method Reference The Universal model QCPU whose serial Use Q series modules when using the Universal Use of AnS/A series number (first 5 digits) is "13102" or later must model QCPU whose serial number (first 5 module be used.
  • Page 509 APPENDICES (2) Program Item Precautions Replacement method Reference Replace the instructions not supported in the Language and instruction Some instructions are not supported. Universal model QCPU are described in Page Page 518, Appendix 5.3 518, Appendix 5.3. Instructions for floating-point double-precision The Universal model QCPU performs program operations are added for the Universal model operations of floating-point data in single...
  • Page 510 Item Precautions Replacement method Reference The following file usability setting for each program is not available. File usability setting for When file usability is set, modify the program as Page 88, Section 2.10, • File register each program described in Page 552, Appendix 5.4.5. Page 552, Appendix 5.4.5 •...
  • Page 511 APPENDICES Item Precautions Replacement method Reference In the Boot file tab of the PLC parameter dialog box, select "standard ROM" for the transfer Automatic all data write destination. Note, however, that the transfer Page 104, Section 2.11 from memory card to The setting method of this function is different.
  • Page 512 (5) Diagnostic function Item Precautions Replacement method Reference The Universal model QCPU can store history Error history data cannot be stored in the Error history data by the number of storable history data in a Page 205, Section 3.18 memory card. memory card (100) to the system memory.
  • Page 513 APPENDICES (7) Switch on the front of the CPU module Item Precautions Replacement method Reference The RESET/STOP/RUN switch of the Section 6.1.3 in the QCPU The operation method with the Universal model QCPU can be used for the User's Manual (Hardware RESET/RUN/STOP switch is modified.
  • Page 514 (8) SFC Item Precautions Replacement method Reference Section 4.6 and Appendix Step transition The step transition monitoring timer is not Change the program as described in Appendix 3.1 in the MELSEC- monitoring timer supported. 3.1 in the manual in the Reference column. Q/L/QnA Programming Manual (SFC) Section 4.7.4 and Appendix...
  • Page 515: Appendix 5.2 Applicable Devices And Software

    APPENDICES Appendix 5.2 Applicable devices and software (1) Products need to be replaced for the compatibility with the Universal model QCPU The following tables show products need to be replaced for the compatibility with the Universal model QCPU. (As for products not listed in the tables below, replacement is not required.) (a) Communication module Serial number (first five digits) of the product compatible with the Universal model QCPU...
  • Page 516 (c) GOT GT Designer2 OS version compatible with the Universal model QCPU Used with Used with Used with Q03UDE/ Used with Used with Product Model Q00UJ/Q00U/ Q02U/Q03UD/ Q04UDEH/ Q13UDH/ Q10UDEH/ Q01U/Q10UDH/ Q04UDH/ Q06UDEH/ Q26UDHCPU Q20UDEHCPU Q20UDHCPU Q06UDHCPU Q13UDEH/ Q26UDEHCPU  ...
  • Page 517 APPENDICES (2) CPU modules that can configure a multiple CPU system with the Universal model QCPU CPU modules that can configure a multiple CPU system with the Universal model QCPU are shown below. (a) For the QnUD(H)CPU or Built-in Ethernet port QCPU Applicable version Configured with Q13UDH/...
  • Page 518 (b) For the Q00UCPU, Q01UCPU, or Q02UCPU Applicable version CPU module Model Restrictions Configured with Configured with Q02UCPU Q00U/Q01UCPU • Q172CPUN(-T) The multiple CPU high-speed  • Q173CPUN(-T) main base unit (Q3 Motion CPU No restrictions • Q172HCPU(-T) cannot be used as a main •...
  • Page 519 APPENDICES (3) Software need to be upgraded for the compatibility with the Universal model QCPU The following table shows software need to be upgraded for the communication with the Universal model QCPU. (As for software not listed in the table below, version upgrade is not required.) Version compatible with the Universal model QCPU Used with Used with Q00UJ/...
  • Page 520: Appendix 5.3 Instructions

    Appendix 5.3 Instructions Appendix 5.3.1 Instructions not supported in the Universal model QCPU and replacing methods The Universal model QCPU does not support instructions listed in the following tables. Instructions need to be replaced using replacing methods described in the tables. (If no instruction in the list is used, replacement is not required.) Symbol Instruction...
  • Page 521 APPENDICES Symbol Instruction Replacing method LD TRn AND TRn OR TRn LDI TRn ANDI TRn ORI TRn When the programmable controller type is changed, these instructions are converted into Forced transition check instruction SM1255. Modify programs as needed. LD BLm\TRn AND BLm\TRn OR BLm\TRn LDI BLm\TRn...
  • Page 522: Appendix 5.3.2 Replacing Programs Using Multiple Cpu Transmission Dedicated Instructions

    Appendix 5.3.2 Replacing programs using multiple CPU transmission dedicated instructions (1) Replacing the module with the QnUD(H)CPU or Built-in Ethernet port QCPU The following table shows instructions need to be replaced and corresponding alternative instructions. For the specifications of each instruction, refer to the manuals for the Motion CPU. Symbol of alternative Symbol Instruction description...
  • Page 523: Appendix

    APPENDICES Appendix 5.3.3 Program replacement examples This section shows program replacement examples for the instructions of which replacement programs are available in Page 518, Appendix 5.3.1. (Skip this section if instructions listed in Page 518, Appendix 5.3.1 are not used.) (1) Replacement example of the IX and IXEND instructions Since index registers are saved using the ZPUSH instruction, a 23-word index register save area is required.
  • Page 524 (c) Program after replacement • Replace the IX instruction with the ZPUSH instruction and the processing for setting the contents of index modification table to index registers. • Replace the IXEND instruction with the ZPOP instruction. Current index register is saved.
  • Page 525 APPENDICES Replacement example of the IXDEV and IXSET instructions Change the program so that the device offset value specified by the contacts between the IXDEV and the IXSET instructions are directly set to the index modification table using the MOV instruction. For the devices whose device offset value is not specified by the IXDEV and IXSET instructions, set the device offset value to 0 in the program after replacement.
  • Page 526 (a) Program before replacement The device offset values for input (X), output (Y), internal relay (M), data register (D), link register (W), and pointer (P) are set to the index modification table starting from D0. (b) Program after replacement The device offset values specified by the IXDEV and IXSET instructions are set to the index modification table starting from D0.
  • Page 527 APPENDICES Replacement example of the PR instruction The number of output characters can be switched by the on/off status of SM701. (a) Example of device assignment Before replacement After replacement Application Device Application Device Output string D0 to D3 Output string D0 to D3 ASCII code output signal Y100 to Y107...
  • Page 528 (c) Program after replacement In the sequence program after replacement, three programs are required as shown below. <Before transition> <After transition> Main routine Main routine program program Output strings and output string storage address are set. FEND Subroutine program Initial processing Interrupt program The strings stored in D0 are output.
  • Page 529 APPENDICES Subroutine program • In the subroutine program, the data for outputting ASCII codes using a fixed scan interrupt program (10ms) are set to work devices. Also, the flag for activating the processing in the fixed scan interrupt program is turned on. •...
  • Page 530 Interrupt program The following processing is added to a fixed scan interrupt program (10ms). The fixed scan interrupt program outputs ASCII codes from the output module and controls the strobe signal. The following signals are all turned off when all strings are output.
  • Page 531 APPENDICES Replacement example of the CHKST and CHK instructions In the example below, if the replacement program for the CHKST and CHK instructions detects a failure, a failure number (contact number + coil number) is stored in D200 and the annunciator F200 is turned on. (a) Example of device assignment Before replacement After replacement...
  • Page 532 (c) Program after replacement In the sequence program after replacement, two programs are required as shown below. <Before transition> <After transition> Main routine Main routine program program Initial processing FEND Subroutine program An failure status is checked, and if a failure is detected, a failure number is stored in D200.
  • Page 533 APPENDICES Subroutine program • In the subroutine program, a failure status is checked using a failure detection ladder pattern. • If a failure is detected, a failure number is stored in D200 and the annunciator F200 is turned on. • Specify the following arguments for the subroutine program. First argument Device number of X device targeted for failure check (Input)
  • Page 534 Replacement example of the KEY instruction (a) Example of device assignment Before replacement After replacement Application Device Application Device Numeric input execution Numeric input execution instruction instruction Input complete flag Input complete flag Input data area D200 to D203 Input data area D200 to D203 ASCII code input signal X100 to X107...
  • Page 535 APPENDICES (c) Program after replacement In the sequence program after replacement, two programs are required as shown below. <Before transition> <After transition> Main routine Main routine program program Initial processing FEND Subroutine program ASCII code is added to the input data area. Main routing program •...
  • Page 536 Subroutine program • In the subroutine program, ASCII codes specified by an argument are added to the input data area and the completion status is checked. • Specify the following arguments for the subroutine program. First argument ASCII code input from the input module (K2Xn) (Input) Second argument Number of digits to be input...
  • Page 537: Appendix 5.4 Functions

    APPENDICES Appendix 5.4 Functions Appendix 5.4.1 Floating-point operation instructions (1) Differences between High Performance model QCPU and Universal model QCPU (a) High Performance model QCPU The High Performance model QCPU can perform only the single-precision floating-point operation instructions. Note, however, that internal operation processing can be performed in double precision by selecting the item shown below (default: selected).
  • Page 538 (2) Floating-point operation instructions for the Universal model QCPU The following table lists floating-point operation instructions for the Universal model QCPU. Specifications of the single-precision floating-point operation instructions are compatible with those for the High Performance model QCPU. Instruction symbol Instruction name Remarks Single-precision...
  • Page 539 APPENDICES (3) Advantages and disadvantages when using the double-precision floating-point data of the Universal model QCPU The following table shows the advantages and disadvantages when executing the double-precision floating-point operation instructions in the Universal model QCPU. If higher accuracy is required in floating-point operations, it is recommended to replace the instructions with the double-precision floating-point operation instructions.
  • Page 540 Replacing the High Performance model QCPU with the Universal model QCPU (a) Replacing all single-precision floating-point operation instructions with double- precision floating-point operation instructions Single-precision floating-point data occupy two points of word device per data. On the other hand, four points are required per double-precision floating-point data. Therefore, all device numbers for storing floating-point data need to be reassigned.
  • Page 541 APPENDICES (b) Replacing a part of floating-point operation instructions with double-precision floating-point operation instructions Only operations that require high accuracy are replaced with double-precision floating-point operation instructions. Using the ECON and EDCON instructions, convert floating-point data mutually between single precision and double-precision.
  • Page 542 (c) Replacing a part of floating-point operation instructions with double-precision floating-point operation instructions using subroutine programs The flow of a replacement program described in (b) can be regarded as one subroutine program. Create a subroutine program for each floating-point operation instruction and then replace the original floating- point operation instructions with the CALL(P) instruction so that the corresponding subroutine program is called.
  • Page 543 APPENDICES • Program after replacement A subroutine program for multiplication using the double-precision floating-point operation instruction A subroutine program for addition using the double-precision floating-point operation instruction...
  • Page 544: Appendix 5.4.2 Error Check Processing For Floating-Point Data Comparison Instructions

    Appendix 5.4.2 Error check processing for floating-point data comparison instructions (excluding High-speed Universal model QCPU) (1) Input data check Error check processing for floating-point data comparison instructions performed in the Universal model QCPU are enhanced. Input of a "special value" (-0, nonnumeric, unnormalized number, or ± ) is checked, and if those special values are input, the CPU module detects "OPERATION ERROR"...
  • Page 545 APPENDICES Ex.2) Not detecting "OPERATION ERROR" (error code: 4140) in the ANDE instruction [Ladder mode] [List mode] In the ladder block starting from the step 104, the ANDE<= instruction of the step 105 is not executed when the M101 (valid data flag) is off. The ANDE<= instruction of the step 105 is not executed when the M101 is off in the LD instruction of the step 104 in the program above.
  • Page 546 Method of avoiding "OPERATION ERROR" (error code: 4140) in the floating-point data comparison instructions As shown in the modification examples below, connect the contacts of valid data flag in series for each floating- point data comparison instruction. (Use AND connection for connecting the contact of the valid data flag and the floating-point data comparison instruction.) Ensure that there is no line (OR connection) between the valid data flag and the floating-point data comparison instruction.
  • Page 547 APPENDICES Program examples after modification for Example 1) and 3) in (1) are shown below. Ex.4) Program after modification for Example 1) ("OPERATION ERROR" (error code: 4140) is no longer detected.) [Ladder mode] [List mode] Ex.5) Program after modification for Example 3) ("OPERATION ERROR" (error code: 4140) is no longer detected.) [Ladder mode] [List mode]...
  • Page 548: Range Check Processing For Index-Modified Devices

    Appendix 5.4.3 Range check processing for index-modified devices (1) Device range check Error check processing at index modification of devices has been enhanced for the Universal model QCPU. Each index-modified device range is checked, and if the check target device is outside the device range before index modification, the CPU module detects "OPERATION ERROR"...
  • Page 549 APPENDICES Ex.2) Detecting "OPERATION ERROR" (error code: 4101) (QnU(D)(H)CPU, QnUDE(H)CPU, LCPU) [Ladder mode] [List mode] In Example 2, in the ladder block starting from the step 15, the AND<> instruction of the step 17 or 21 is supposed to be not executed when M0 (valid data flag) is off. However, since the LD instruction which is always executed is used in the step 16 and 20, the AND<>...
  • Page 550 (2) Actions taken to avoid "OPERATION ERROR" (error code: 4101) If the index-modified device range does not need to be checked, set the parameter as described in 1). If the index-modified device range needs to be checked, but the detection of errors shown in Examples 2 and 3 in Page 546, Appendix 5.4.3 (1) should be avoided, take actions described in 2) to 4).
  • Page 551 APPENDICES When the index register is used as a local device Even when program A overwrites the index register Z0 with a value of 30000, no change is made to the index register Z0 used by program B. No error occurs as long as X10Z0 does not exceed the X device range. Program A Standard RAM/memory card (SRAM) For program A...
  • Page 552: Appendix 5.4.4 Device Latch Function

    Appendix 5.4.4 Device latch function (1) Overview The device latch function of the Universal model QCPU is more enhanced than than of the Basic model QCPU or High Performance model QCPU. This section describes the enhanced device latch function of the Universal model QCPU. The latch function is used to hold device data even when the CPU module is powered off or reset.
  • Page 553 APPENDICES (c) Specifying the latch range of internal user devices Device data of the Universal model QCPU can be latched by specifying a latch range of internal user devices in the same way as for the Basic model QCPU and High Performance model QCPU. The ranges can be set in the Device tab of the PLC parameter dialog box.
  • Page 554: Appendix 5.4.5 File Usability Setting

    Appendix 5.4.5 File usability setting (1) Differences between High Performance model QCPU and Universal model QCPU (a) High Performance model QCPU In the High Performance model QCPU, file usability ("Use PLC File Setting" or "Not Used") of the following files can be set for each program on the screen opened by clicking the "File Usability Setting"...
  • Page 555 APPENDICES (b) Universal model QCPU In the Universal model QCPU, file usability of the following files cannot be set for each program on the screen opened by clicking the "File Usability Setting" button on the Program tab of the PLC parameter dialog box. •...
  • Page 556 (2) Method of replacing High Performance model QCPU with Universal model QCPU Replacement method varies depending on the settings in the PLC file tab of the PLC parameter dialog box. Setting in the PLC file tab Setting in Universal model QCPU No change in parameter settings is required.
  • Page 557: Appendix 5.4.6

    APPENDICES Appendix 5.4.6 Parameter-valid drive and boot file setting (1) Differences between High Performance model QCPU and Universal model QCPU (a) High Performance model QCPU The parameter-valid drive is specified by the switches on the front panel of the High Performance model QCPU.
  • Page 558 Setting in High Performance model QCPU Setting in Universal model QCPU Setting in the Boot file tab of the PLC parameter dialog box Change the setting so that the Universal model QCPU can refer to the parameters in the memory card or SD memory card, and programs are booted Settings in the Boot file tab from the card to the program memory.
  • Page 559 APPENDICES (b) When the parameter-valid drive is set to the memory card (RAM) or memory card (ROM) in the High Performance model QCPU Setting in High Performance model QCPU Setting in Universal model QCPU Setting in the Boot file tab of the PLC parameter dialog box Change the setting so that the Universal model QCPU can refer to the parameters in the memory card or SD memory card.
  • Page 560: Appendix 5.4.7 External Input/Output Forced On/Off Function

    Appendix 5.4.7 External input/output forced on/off function (1) Differences between High Performance model QCPU and Universal model QCPU (a) High Performance model QCPU External input/output can be forcibly turned on/off on the screen opened by selecting [Online]  [Debug]  [Forced Input Output Registration/Cancellation] in programming tool.
  • Page 561 APPENDICES Forcibly turning X40, X77, and X7A on, and X41 and Y7B off The programs, "SETX" and "SETY", turns on or off the X and Y devices, which have been registered for forced on/off using the external input/output forced on/off function, at each scan using the SET and RST instructions. High Performance model QCPU Universal model QCPU •...
  • Page 562 (3) Replacing the COM instruction If the COM instruction is used, add subroutine calls for P10 and P11 before and after the COM instruction. (P10 and P11 are pointers shown in the program examples in (2).) When SM775 is on (Executes refresh set by SD778) and also the 0 bit of SD778 is off (Do not execute I/O refresh), replacement of the instruction is not necessary.
  • Page 563 APPENDICES (4) Replacing the RFS instruction If any I/O numbers targeted for forced on/off are included in the partial refresh range specified by the RFS instruction, add subroutine calls for P10 and P11 before and after the RFS instruction. (P10 and P11 are pointers shown in the program examples in (2).) If no I/O number targeted for forced on/off is included, addition of subroutine calls for P10 and P11 is not necessary.
  • Page 564: Appendix 5.5 Special Relay And Special Register

    Appendix 5.5 Special Relay and Special Register The Universal model QCPU does not support the use of the special relay and special register described in Page 562, Appendix 5.5.1 and Page 565, Appendix 5.5.2. Replace them using the method described in the table or delete the corresponding sections. Appendix 5.5.1 Special relay list The following table lists the special relay not supported by the Universal model QCPU and measures to be taken.
  • Page 565 APPENDICES Number Name/Description Measures The Universal model QCPU does not support low- SM330 Operation mode for low-speed execution type program speed execution type programs. Delete the corresponding sections. SM331 Normal SFC program execution status The Universal model QCPU supports only normal SFC programs.
  • Page 566 Number Name/Description Measures Power supply off detection flag SM1780 The Universal model QCPU does not store redundant Power supply failure detection flag SM1781 power supply system information in SM1780 to SM1783. Delete the corresponding sections. (SM1780 Momentary power failure detection flag for power supply 1 SM1782 to SM1783 are always off.) Momentary power failure detection flag for power supply 2...
  • Page 567: Special Register List

    APPENDICES Appendix 5.5.2 Special register list The following table lists the special register not supported by the Universal model QCPU and measures to be taken. Number Name/Description Measures The Universal model QCPU does not support the CHK instruction. For the replacing SD80 CHK number method of the CHK instruction, refer to Page 529, Appendix 5.3.3 (4).
  • Page 568 Number Name/Description Measures Service interval measurement SD550 module The Universal model QCPU does not support the service interval measurement SD551 function. Delete the corresponding sections. Service interval time SD552 Program No. specification for The Universal model QCPU does not support the PLAODP instruction. Delete the SD720 PLAODP instruction corresponding sections.
  • Page 569: Appendix 6 Precautions For Replacing Qnud(E)(H)Cpu With Qnudvcpu/Qnudpvcpu

    APPENDICES Appendix 6 Precautions for Replacing QnUD(E)(H)CPU with QnUDVCPU/QnUDPVCPU Appendix 6.1 Precautions (1) System configuration Item Precautions Replacement method Reference Use a USB or Ethernet port. RS-232 port To communicate with an RS-232 interface, There is no RS-232 port. use the QJ71C24N(-R2) in the system. •...
  • Page 570 (2) Program Item Precautions Replacement method Reference The number of basic steps differs in some If index modifications mentioned on the left instructions. are frequently used in the program, the program size may exceed the storage capacity of the replaced CPU module. After the program controller type is changed, check the program size using the confirm memory The number of steps increases by one when:...
  • Page 571 APPENDICES (4) Drive and file Item Precautions Replacement method Reference A memory card (SRAM card, ATA card, or Flash Specify an SD memory card as a transfer Boot file setting Page 104, Section 2.11 card) cannot be specified as a transfer source. source.
  • Page 572 (5) Built-in Ethernet port communications Item Precautions Replacement method Reference The security function has been enhanced from the password registration function to the file Use the FTP commands, passwd-rd and QnUCPU User's Manual File transfer function password 32 function. For this reason, the passwd-wr, that set/display/clear the (Communication via Built-in (FTP server)
  • Page 573: Appendix 7 Precautions For Replacing Qnphcpu With Qnudpvcpu

    APPENDICES Appendix 7 Precautions for Replacing QnPHCPU with QnUDPVCPU For the precautions for replacing the QnPHCPU with the QnUDPVCPU, refer to the following. Technical bulletin: No. FA-A-0155 (Method of replacing Process CPU with Universal model Process CPU) Appendix 8 Precautions for Using GX Works2 and Differences with GX Developer For the precautions for using GX Works2 and differences with GX Developer, refer to the following.
  • Page 574: Appendix 9 Ways To Use Different Types Of The Backup/Restoration Function

    Appendix 9 Ways to Use Different Types of the Backup/restoration Function The following table lists the backup/restoration functions. GOT also has the backup/restoration function. Application of each function, executable operating status, and target data are described as follows. Executable operating status Item Function Application...
  • Page 575: Appendix 10 Device Point Assignment Sheet

    APPENDICES Appendix 10 Device Point Assignment Sheet Restriction check Number of device points Numeric Device name Symbol notation Points Range Size (words) Points (bits) Hexadecimal 8K (8192) X0000 to X1FFF 512 × 8192 Input relay Hexadecimal 8K (8192) Y0000 to Y1FFF 512 ×...
  • Page 576 Memo...
  • Page 577: Index

    INDEX ....350 Clearing data in the latch relay ....368 Clearing the counter value .
  • Page 578 ....268 ......55 Error cause of backup I/O number .
  • Page 579 ..414 ......134 Macro instruction argument device (VD) PAUSE contact .
  • Page 580 ....22 Redundant power main base unit ....22 Redundant power supply module ......358 .
  • Page 581: Revisions

    REVISIONS *The manual number is given on the bottom left of the back cover. Print date *Manual number Revision Dec., 2008 SH(NA)-080807ENG-A First edition Mar., 2009 SH(NA)-080807ENG-B Revision on the new functions of the Universal model QCPU whose serial number (first 5 digits) is "11012" or later Partial correction SAFETY PRECAUTIONS, INTRODUCTION, MANUALS, MANUAL PAGE ORGANIZATION, GENERIC TERMS AND ABBREVIATIONS, Section 1.3, 1.6, 2.2.2,...
  • Page 582 Print date *Manual number Revision Jan., 2011 SH(NA)-080807ENG-G Partial correction SAFETY PRECAUTIONS, Section 5.3.3, 6.24.1, 12.1, 12.2, Appendix 2 May, 2011 SH(NA)-080807ENG-H Partial correction GENERIC TERMS AND ABBREVIATIONS, Section 3.8.1, 3.8.2, 5.1.1, 5.2, 6.1, 6.24.1, 6.27, 9.2.10, 9.11, Appendix 2 Addition Section 6.28 Deletion...
  • Page 583 Print date *Manual number Revision Mar., 2015 SH(NA)-080807ENG-R Revision on the new function of the High-speed Universal model QCPU whose serial number (first 5 digits) is "17012" or later Model addition NZ1MEM-2GBSD, NZ1MEM-4GBSD, NZ1MEM-8GBSD, NZ1MEM-16GBSD Partial correction MANUALS, TERMS, Section 2.1.1, 2.1.3, 2.3.2, 2.11, 3.1, 3.20.2, 3.29, 3.31.1, 3.31.2, Appendix 2, 3.2, 3.3, 5.1, 5.2, 7.1 Addition Section 3.36...
  • Page 584 Japanese manual version SH-080802-AD 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 585: Warranty

    WARRANTY Please confirm the following product warranty details before using this product. 1. Gratis Warranty Term and Gratis Warranty Range If any faults or defects (hereinafter "Failure") found to be the responsibility of Mitsubishi occurs during use of the product within the gratis warranty term, the product shall be repaired at no cost via the sales representative or Mitsubishi Service Company.
  • Page 586 Ethernet is a registered trademark of Fuji Xerox Co., Ltd. in Japan. Microsoft and Windows are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries. The company names, system names and product names mentioned in this manual are either registered trademarks or trademarks of their respective companies.
  • Page 588 SH(NA)-080807ENG-AA(1809)MEE MODEL: QNUCPU-U-KP-E MODEL CODE: 13JZ27 HEAD OFFICE : TOKYO BUILDING, 2-7-3 MARUNOUCHI, CHIYODA-KU, TOKYO 100-8310, JAPAN NAGOYA WORKS : 1-14 , YADA-MINAMI 5-CHOME , HIGASHI-KU, NAGOYA , JAPAN When exported from Japan, this manual does not require application to the Ministry of Economy, Trade and Industry for service transaction permission.

Table of Contents