Download  Print this page
   
1
2
3
4
5
6
7
8
9
10
11
Table of Contents
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580

Advertisement

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

Advertisement

Table of Contents

   Related Manuals for Mitsubishi Electric Q01UCPU

   Summary of Contents for Mitsubishi Electric Q01UCPU

  • Page 1 QnUCPU User's Manual (Function Explanation, Program Fundamentals) -Q00U(J)CPU -Q01UCPU -Q02UCPU -Q03UDVCPU -Q03UD(E)CPU -Q04UDVCPU -Q04UD(E)HCPU -Q06UDVCPU -Q06UD(E)HCPU -Q10UD(E)HCPU -Q13UDVCPU -Q13UD(E)HCPU -Q20UD(E)HCPU -Q26UDVCPU -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

    When applying the program examples introduced in this manual to the actual system, ensure the applicability and confirm that it will not cause system control problems.  Relevant CPU module CPU module Model Q00U(J)CPU, Q01UCPU, Q02UCPU, Q03UD(E)CPU, Q03UDVCPU, Q04UD(E)HCPU, Q04UDVCPU, Q06UD(E)HCPU, Q06UDVCPU, Q10UD(E)HCPU, Q13UD(E)HCPU, Universal model QCPU Q13UDVCPU, Q20UD(E)HCPU, Q26UD(E)HCPU, Q26UDVCPU, Q50UDEHCPU, Q100UDEHCPU...
  • 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 ........459 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 iQ Sensor Solution Reference Manual Operating methods of iQ Sensor Solution, such as programming and <SH-081133ENG (13JV28)> monitoring CC-Link IE Field Network Basic Reference Manual Specifications, procedures before operation, system configuration, programming, functions, parameter settings, and troubleshooting of <SH-081684ENG (13JX62)>...
  • 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

    Generic term for the Q02CPU, Q02HCPU, Q06HCPU, Q12HCPU, Q25HCPU Process CPU Generic term for the Q02PHCPU, Q06PHCPU, Q12PHCPU, Q25PHCPU Generic term for the Q00UJCPU, Q00UCPU, Q01UCPU, Q02UCPU, Q03UDCPU, Q03UDVCPU, Q03UDECPU, Q04UDHCPU, Q04UDVCPU, Q04UDEHCPU, Q06UDHCPU, Universal model QCPU Q06UDVCPU, Q06UDEHCPU, Q10UDHCPU, Q10UDEHCPU, Q13UDHCPU,...
  • Page 24 Generic term/abbreviation Description Generic term for the Q5B, Q6B, Q6RB, QA1S5B, QA1S6B, Extension base unit QA1S6ADP+A1S5B/A1S6B, QA6B, and QA6ADP+A5B/A6B Slim type main base unit Another name for the Q3SB Redundant power main base unit Another name for the Q3RB Redundant power extension base unit Another name for the Q6RB Multiple CPU high speed main base unit Another name for the Q3DB...
  • 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 332, 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

    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 Q02UCPU, QnUD(H)CPU, QnUDE(H)CPU (SRAM card, Flash card, or ATA 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 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 UDECPU 4UDEHCPU 6UDEHCPU 40K bytes...
  • Page 41 CHAPTER 2 APPLICATION OF PROGRAMMING (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...
  • Page 42 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 Drive 2 System information file for CPU module...
  • Page 43: Parameter-valid Drive

    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. • Q00U(J)CPU, Q01UCPU Priority Drive where parameters are stored...
  • Page 44 (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 45: Files

    CHAPTER 2 APPLICATION OF PROGRAMMING 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 46 (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 47 CHAPTER 2 APPLICATION OF PROGRAMMING (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 48, Section 2.1.3 (4)) Calculate the rough size of each file with reference to the following table.
  • Page 48 File type File size (unit: byte) • CPU modules other than the High-speed Universal model QCPU: 66 + 44 × n + 2 × m + 8 • High-speed Universal model QCPU: 66 + 44 × n + 2 × m + 72 + 8 Initial device value •...
  • Page 49 CHAPTER 2 APPLICATION OF PROGRAMMING File type File size (unit: byte) 64 + (6+ (a × 34)) + (6 + (a × (336 + (12 × b) + (12 × c))) + (6 + (d × 198)) + 22 + 5440 + (6 + e × 6418)) •...
  • Page 50 The following table lists the file size unit of the CPU module and memory area to be written. Memory area CPU module model Program memory Standard RAM standard ROM Flash card Q00UJCPU 64 steps/256 bytes Q00UCPU, Q01UCPU 128 steps/512 Q02UCPU, Q03UD(E)CPU, bytes Q04UD(E)HCPU, Q06UD(E)HCPU 256 steps/1024 128 steps/512 Q10UD(E)HCPU, Q13UD(E)HCPU bytes...
  • Page 51 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 52: 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 53 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 54: 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 55: 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 56: 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 57 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 58 (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 59: 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 60 (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 61 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 62 (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 63 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 64: 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 65 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 66: 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 67: 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 65, Section 2.4.1 Initial processing Page 66, Section 2.4.2 Refresh processing...
  • Page 68: 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 69: 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 70: 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 71: 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 72 (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 73: 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 74: 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 75 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 135, Section 3.6.4) Note 2.2 •...
  • Page 76: 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 77: 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 78 Item Description Before program operation, input data are collectively read out from the input modules (1), the OR processing with Input refresh the programming tool input area and remote input refresh area is executed, and then the data are stored in the input (X) device memory.
  • Page 79 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 80: 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 81 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 82: 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 408, Section 4.11 When an interrupt factor occurs, the interrupt program of the interrupt pointer number corresponding to that factor...
  • Page 83 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 84 (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 85 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 86 (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 409, 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 87 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 88: 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 89 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 90 (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 91 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 92: 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 93 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 94: 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 95: 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 96 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 97 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 100, Section 2.10.5) • The PSCAN instruction changes the program "DEF" to a scan execution type program. •...
  • Page 98: 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 82, Section 2.9 (1) (b).
  • Page 99 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 100 (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 101 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 102: 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 103 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 104: Boot Operation

    The intelligent function module parameter is included. If the boot operation is performed while the CPU module is locked with a security key, "BOOT ERROR" (error code: 2214) occurs. Note 2.4 Universal The Q00UJCPU, Q00UCPU, and Q01UCPU do not support the boot operation.
  • Page 105 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 106 (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 107: 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 108: 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 109 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 110: 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 111 PART 2 FUNCTIONS In this part, functions of the CPU module are described. CHAPTER 3 FUNCTIONS ..........110...
  • Page 112: Chapter 3 Functions

    Q00UCPU, Q02U QnUD(H) QnUDE(H) QnUDV Function Description Reference JCPU Q01UCPU Transfers data stored in a memory card or SD memory card Page 102, Boot operation to the program memory or the × × Section 2.11 standard ROM at power-on or reset.
  • Page 113 Q00UCPU, Q02U QnUD(H) QnUDE(H) QnUDV Function Description Reference JCPU Q01UCPU Makes settings for the intelligent function modules and interrupt Intelligent function module modules. (Refer to manuals of Page 141, switch setting intelligent function modules and Section 3.10 interrupt modules for setting details.)
  • Page 114 Q00U Q00UCPU, Q02U QnUD(H) QnUDE(H) QnUDV Function Description Reference JCPU Q01UCPU Protects data in the CPU module Page 204, Security function against tampering and theft by Section 3.19 unauthorized persons. Prohibits writing/reading data Page 204, Password registration to/from each file in the CPU ×...
  • Page 115 Q02U QnUD(H) QnUDE(H) QnUDV Function Description Reference JCPU Q01UCPU Restores the error location automatically by using data in the program memory, which are Program cache memory Page 249, stored in the flash ROM, when the auto recovery function Section 3.28...
  • Page 116 Q00U Q00UCPU, Q02U QnUD(H) QnUDE(H) QnUDV Function Description Reference JCPU Q01UCPU 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,...
  • Page 117 Q02U QnUD(H) QnUDE(H) QnUDV Function Description Reference JCPU Q01UCPU Collects data from the specified device of a CPU module at a QnUDVCPU/ specified timing. The data logging LCPU User's Data logging function file can be transferred from a CPU ×...
  • Page 118: Constant Scan

    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 119 CHAPTER 3 FUNCTIONS (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 120 (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 121: Latch Function

    CHAPTER 3 FUNCTIONS 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 122 (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 123 CHAPTER 3 FUNCTIONS (5) Latch setting To latch data, a latch range and timing need to be set. (a) Latch range setting Latch-target devices and ranges are set. There are two range settings: the latch clear operation enable range setting (Latch (1)) and the latch clear operation disable range setting (Latch (2)). Project window [Parameter] [PLC Parameter]...
  • Page 124 (6) Device data latch method and influence on the scan time Data latch processing is performed during END processing. For this reason, the scan time increases. Consider an influence on the scan time when latching devices. ( Page 473, Appendix 3.2 (6)) To minimize the scan time increase due to latch , reduce the number of latch points (latch (1) setting, latch (2) setting, and latch relay) as much as possible by performing the following.
  • Page 125: 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 126 (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 127: 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 128 (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 129 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 130 (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 131: 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 132 (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 133 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 134: 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 135 CHAPTER 3 FUNCTIONS (c) Using an external device in the MC protocol Use MC protocol commands. For commands, refer to the following. MELSEC-Q/L 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 136: 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 137: 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 138: 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 139: 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 140 (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 141: 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 142: 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 143: 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 144 (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 145: Monitor Function

    : Available, : Available with restrictions, × : Not available Availability Built-in Monitor function Reference Q00UJ Q00UCPU, QnUD(H) Q02UCPU Ethernet Q01UCPU port QCPU Operating manual for the programming tool Monitor used Page 144, Section Monitor condition setting × × 3.11.1...
  • Page 146: Monitor Condition Setting

    Operating manual for the programming tool used Note 3.2 Universal The Q00UJCPU, Q00UCPU, and Q01UCPU do not support this function. Before executing the function with the Q02UCPU, Q03UDCPU, Q04UDHCPU, Q06UDHCPU, Q13UDHCPU, or Q26UDHCPU, check the versions of the CPU module and programming tool used. (...
  • Page 147 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 148 (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 149 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 150 (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 151: 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 418, 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 152 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 153 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 154: 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 155 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 156 (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 157 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 158 (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 159: 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 160 (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 161 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 162 (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 163 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 164 (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 165 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 166 (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 167 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 168: 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 166, Section 3.12.1 Online change (files) : • Page 169, Section 3.12.2 Data can also be written in the RUN status using a pointer. ( Page 190, Section 3.15.2) 3.12.1 Online change (ladder mode)
  • Page 169 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 170 (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 171, 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 172, Section 3.12.3 (3).
  • Page 171: 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 172 (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.
  • Page 173: 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 174 (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 175 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 176 (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 177 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 178 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 Q00UJCPU, Q00UCPU, Q01UCPU, Q02UCPU Ts × 320 + 4.8 (s) Q03UD(E)CPU, Q04UD(E)HCPU, Q06UD(E)HCPU Ts × 260 + 4.7 (s) Q10UD(E)HCPU Ts ×...
  • Page 179 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 180: 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 181: 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 182 (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 183 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 184: Sampling Trace Function

    This file stores the trace setting necessary for executing the function and trace results. A sampling trace file is stored in the following memory. CPU module Memory Q00UCPU, Q01UCPU, QnUDVCPU Standard RAM Q02UCPU, QnUD(H)CPU, QnUDE(H)CPU Standard RAM or SRAM card...
  • Page 185 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 186 • 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 187 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 188 (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 189: 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 190: 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 191 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 192: 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 193: 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 194 (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 195: 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 196 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 197 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 198 LED status Q00U QnUD Error Diagnostic Q00UJ CPU, Q02U QnUDV Diagnostics module (E)(H) message timing Q01U ERR. status Voltage drop of power supply for SINGLE PS. • Always Continue × redundant base DOWN unit Hardware Redundant power failure SINGLE PS. supply module •...
  • Page 199 CHAPTER 3 FUNCTIONS LED status Q00U QnUD Error Diagnostic Q00UJ CPU, Q02U QnUDV Diagnostics module (E)(H) message timing Q01U ERR. status • Power-on/reset • Switching from Parameter setting PARAMETER STOP to RUN Stop Flashing check ERROR • Writing to programmable controller •...
  • Page 200 LED status Q00U QnUD Error Diagnostic Q00UJ CPU, Q02U QnUDV Diagnostics module (E)(H) message timing Q01U ERR. status Operation OPERATION • Execution of an Stop/ Flashing Off/on *1*3 ERROR instruction continue error FOR to NEXT FOR NEXT • Execution of an instructions Stop Flashing...
  • Page 201 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 202: 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 219, Section 3.20) 3.17.2 Clearing errors Continuation errors can be cleared. The High-speed Universal model QCPU can clear those errors by types. No continuation Continuation Continuation...
  • Page 203 CHAPTER 3 FUNCTIONS (a) Clearing errors using a programming tool (High-speed Universal model QCPU only) Perform the following procedure. Check the continuation errors detected on the PLC Diagnostics window.  Eliminate the error causes of the detected errors.  Select the "Continuation Error Information" radio button and check the checkboxes of errors to be cleared.
  • Page 204 (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 Eliminate the error cause. Store the error code corresponding to the error to be cleared in SD50. Turn off and then on SM50.
  • Page 205: 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 206: 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 204, Section 3.19.1 Password registration To limit access to each file in the CPU module Page 206, Section 3.19.2...
  • Page 207 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 208, Section 3.19.2. • Write to PLC (data writing) • Read from PLC (data reading) •...
  • Page 208: 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 209 CHAPTER 3 FUNCTIONS (4) Online operations that require authentication Authentication is required to execute the following operations to password-protected files. ( Page 208, Section 3.19.2) • Write to PLC (data writing) • Read from PLC (data reading) • Online change (data writing) •...
  • Page 210 (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 211 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 212 (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 213: 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 214 (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 215 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 216 (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 217 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 257, Section 3.31 memory card Boot operation The function cannot be used.
  • Page 218: 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 219 CHAPTER 3 FUNCTIONS (2) Function overview Set a remote password in parameter ( Page 460, Appendix 1.4), and write it to the CPU module. The remote password is transferred to the target module ( Page 216, Section 3.19.4 (1)) when the CPU module is powered off and then on or is reset.
  • Page 220 (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 221: 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 222: 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 223 • Annunciator • BATTERY ERROR The Q00UJCPU, Q00UCPU, and Q01UCPU cannot display the error message. The Q00UJCPU cannot display the error message. ● To remain the LED off even in case of an error, set the cause number setting area (each 4 bits) of SD207 to SD209 that stores the corresponding cause number to "0".
  • Page 224: 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 225: 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 226: 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 227 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 228: 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 229 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 230 (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 231: 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 232: 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 233 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 234 (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 235 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 236 (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 237 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 452, Appendix 1.2.12) •...
  • Page 238 (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 239 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 240: 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. This function also improves the response of communication with a peripheral and restrains the increase of scan time due to service processing.
  • Page 241 CHAPTER 3 FUNCTIONS (2) Operations for service processing setting Operations for each service processing setting is described below. (a) Operation when "Execute the process as the scan time proceeds." is selected • Operation when 10% is set Program execution Programming tool END processing Request 1 When the time required for processing...
  • Page 242 (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 243 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 244 (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 245 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 246: 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 247 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 248 (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 249: 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 250: 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 251: 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 248, Section 3.27) detects an error in the program cache memory.
  • Page 252 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 176, 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 253: Latch Data Backup To Standard Rom

    CPU module Serial No. (first 5 digits) File size (byte) Error history 11042 or earlier 87210 Q00UJCPU, Q00UCPU, Q01UCPU 11043 or later 89790 11042 or earlier 87210 Q02UCPU Module error collection file (stored in the system memory) 11043 or later...
  • Page 254 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 255 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: Check the "Transfer to Standard ROM at Latch data backup operation"...
  • Page 256 (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 257 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 258: Writing/reading Device Data To/from Standard Rom

    (A file name is fixed to DEVSTORE). (a) File size setting The capacity that can be set varies depending on the CPU module. CPU module Setting range Q00UJCPU, Q00UCPU, Q01UCPU 1K Points (fixed) Q02UCPU 1 to 16K Points QnUD(H)CPU, Built-in Ethernet port QCPU...
  • Page 259: Cpu Module Change Function With Memory Card

    Page 269, Section 3.31.2 Note 3.19 Universal The Q00UJCPU, Q00UCPU, and Q01UCPU do not support this function. Before executing the function with the Q02UCPU, Q03UDCPU, Q04UDHCPU, Q06UDHCPU, Q13UDHCPU, Q26UDHCPU, or QnUDE(H)CPU, check the versions of the CPU module and programming tool used.
  • Page 260 (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 261 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 262: 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 263 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 264 (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 265 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 266 (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 267 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 268 (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 269 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 270 (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 271: 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 272 (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 273 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 274 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 275: 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 276 (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 277 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 278 (2) Target data for backup and restoration The backup target data is all the target data in a CPU module. ( Page 276, Section 3.32 (2) (b)) The restoration target data is set with SD917 (Restoration target data setting). ( Page 287, 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 279 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 280 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 281: 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 282 (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 283 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 284 (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 285 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 281, Section 3.32.1 (2) (a)) Set the day and time with SD912 and SD913.
  • Page 286 (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 281, Section 3.32.1 (2) (a)) To retry the automatic backup, turn on bit10 of SD910 (Backup function setting).
  • Page 287 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 288 (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 289: 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 290 (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 291 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 290, 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 292 (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 293 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 294 (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 295 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 286, 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 296: 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 297: 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 298 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 100 (Fixed) 1000 The memory is managed inside the system.
  • Page 299 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 300 (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 301: 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 302 (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 303: 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 304 (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 305: 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 306: 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 444, 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 307: 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 308: 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 309 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 310 (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 311: 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 312 (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 313: 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 314 (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 439, 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 315: 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 316 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 317 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 318 (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 319 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 439, 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 320 (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 439, 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 321 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 322 (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 323 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 324 (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 325: 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 326: 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 327: 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 328 (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 329 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 330 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 331 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 332: 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 333: Part 3 Devices, Constants

    PART 3 DEVICES, CONSTANTS In this part, the devices and constants used in the CPU module are described. CHAPTER4 DEVICES ..........332 CHAPTER5 CONSTANTS .
  • Page 334: 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...
  • Page 335 CHAPTER 4 DEVICES Default Parameter- Classification Type Name Reference set range Point Range Page 373, Function input FX0 to FXF Hexadecimal Section 4.3.1 Page 373, Function output FY0 to FYF Hexadecimal device Section 4.3.1 Internal system Cannot be Page 375, Special relay 2048 SM0 to SM2047...
  • Page 336 The range for the Q00UJCPU, Q00UCPU, and Q01UCPU is I0 to I127. The range for the Q00UJCPU is U0 to UF, and for the Q00UCPU and Q01UCPU is U0 to U3F and U3E0 to U3E2. The number of points for the Q00UJCPU, Q00UCPU, and Q01UCPU is 512.
  • Page 337 CHAPTER 4 DEVICES (2) QnUD(H)CPU, QnUDE(H)CPU Default Parameter- Classification Type Name Reference set range Point Range Page 344, Input 8192 X0 to X1FFF Hexadecimal Section 4.2.1 Page 346, Output 8192 Y0 to Y1FFF Hexadecimal Section 4.2.2 Page 347, Internal relay 8192 M0 to M8191 Decimal...
  • Page 338 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 380, U3En\G0 to Cannot be device device Cyclic 4096 Decimal Section 4.5 U3En\G4095 changed. transmission U3En\G10000 to Can be...
  • Page 339 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 340 (3) QnUDVCPU Default Parameter- Classification Type Name Reference set range Point Range Page 344, Input 8192 X0 to X1FFF Hexadecimal Section 4.2.1 Page 346, Output 8192 Y0 to Y1FFF Hexadecimal Section 4.2.2 Page 347, Internal relay Decimal 28672 M0 to M28672 Section 4.2.3 Page 348, Latch relay...
  • Page 341 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 380, U3En\G0 to Cannot be device device 4096 Decimal Section 4.5 Cyclic U3En\G4095 changed.
  • Page 342 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 343: Internal User Devices

    For the Universal model QCPU whose serial number (first five digits) is "12052" or later, the points for the step relay (S) can be set up to the following points in increments of 1K. ( Page 462, Appendix 2) •Q00UJCPU, Q00UCPU, Q01UCPU, and Q02UCPU: 8192 points •Universal model QCPU other than the Q00UJCPU, Q00UCPU, Q01UCPU, and Q02UCPU: 16384 points...
  • Page 344 ● 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 345 Page 462, Appendix 2) • Q00UJCPU, Q00UCPU, Q01UCPU, and Q02UCPU: 8192 points • Universal model QCPU other than the Q00UJCPU, Q00UCPU, Q01UCPU, and Q02UCPU: 16384 points Up to 32K points can be set for each device. However, up to 60K points can be set for each device of the internal relay and link relay if the Universal model QCPU whose serial number (first five digits) is "10042"...
  • Page 346: 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 347 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 348: 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 349: 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 350: 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 351: 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 352 (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 353 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 354 (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 355: 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 356: 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 357: 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 358: 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 359 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 360 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 361 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 362 (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 363 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 364 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 365 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 366 (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 367: 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 368 (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 369 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 370 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 371: 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 372: 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 373 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 374: 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 375: 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 376 (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 377: 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 378: 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 379 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 380 (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 381 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 382: 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 memories 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 383 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 384: 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 385: 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 386 (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 387: 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 388: 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 389 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 390: 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 391: Storage Location

    Section 4.7.4 (1) (c)) 4.7.1 Storage location File register data are stored in the following memory. CPU module Memory Q00UCPU, Q01UCPU, QnUDVCPU Standard RAM Q02UCPU, QnUD(H)CPU, QnUDE(H)CPU Standard RAM, SRAM card, Flash card 4.7.2 File register size The size of file register is the total number of points of the file register (ZR), extended data register (D), and extended link register (W).
  • Page 392 CPU module Point Q06UDVCPU 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 512K With an extended SRAM cassette (1M) 1024K With an extended SRAM cassette (2M) 1536K...
  • Page 393: 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 394 (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 395 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 396 (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 397: 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 398: 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 399 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 400: 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 401 This is the maximum number of points when a Flash card (4M bytes) is used. The Q00UCPU, Q01UCPU, and High-speed Universal model QCPU do not support the use of memory card. For the memory size when an extended SRAM cassette is used, refer to Page 389, Section 4.7.2.
  • Page 402 (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 403 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 404 • 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 405: 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 406: Pointer (p)

    The pointer that can be called in all running programs by the subroutine call instruction. (3) Number of available pointer points The following shows the available number of points. CPU module Points Q00UJCPU, Q00UCPU, Q01UCPU 512 points Q02UCPU, Q03UD(E)CPU, Q03UDVCPU, Q04UD(E)HCPU, Q04UDVCPU, Q06UD(E)HCPU, Q06UDVCPU, Q10UD(E)HCPU, 4096 points...
  • Page 407: 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 408 (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 409: 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 410: Interrupt Pointer(i)

    (1) Number of available points The number of points and the range available for the interrupt pointer are shown below. CPU module Point Range Q00UJCPU, Q00UCPU, Q01UCPU 128 points I0 to I127 Q02UCPU, Q03UD(E)CPU, Q03UDVCPU, Q04UD(E)HCPU, Q04UDVCPU, Q06UD(E)HCPU, Q06UDVCPU, Q10UD(E)HCPU, Q13UD(E)HCPU, Q13UDVCPU,...
  • Page 411: 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 412 (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 413: 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 414: 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 415: 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 488, Appendix 4.1) (1) Specification range The specification ranges for decimal constants are as follows:...
  • Page 416: 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 491, Appendix 4.4) EMOVP E1.234 D0 (1) Specification range (a) Real number setting range •...
  • Page 417: 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 418: 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 419 CHAPTER 6 CONVENIENT USAGE OF DEVICES ● All of the devices that have not been set as local devices ( Page 418, 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 420: 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 421 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 422 (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 423 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 424 (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 425 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 426 (5) Using the local device corresponding to the file where a subroutine program is stored When executing a subroutine program, you can utilize the local device corresponding to the file where the subroutine program is stored. 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 427 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 428 (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 429 CHAPTER 6 CONVENIENT USAGE OF DEVICES Memo...
  • Page 430: 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 435, Appendix 1.2) These parameters are set when a CPU module is used stand alone in a system. •...
  • Page 431: 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 432: Appendix 1.2.2 Plc System

    Parameter Item Set in: Reference Low Speed 1000 Timer Limit Setting High Speed Page 436, Appendix 1.2.2 1001 RUN-PAUSE Contacts PAUSE Page 134, Section 3.6.3, 1002 Remote Reset Page 436, Appendix 1.2.2 Page 123, Section 3.4, 1003 Output Mode at STOP to RUN Page 436, Appendix 1.2.2 1005 Common Pointer No.
  • Page 433: Appendix 1.2.4 Plc Ras

    APPENDICES Parameter Item Set in: Reference Page 332, Section 4.1, 2000 Device Points Page 444, Appendix 1.2.8 2001 Latch (1) Start/End Page 119, Section 3.3, Page 444, Appendix 1.2.8 2002 Latch (2) Start/End 2003 Local Device Start/End Page 444, Appendix 1.2.8 2000 Device Points Device...
  • Page 434 Parameter Item Set in: Reference 5000 Number of modules on MELSECNET/H 5001 Valid Module During Other Station Access 5002 Interlink Transmission Parameters 5003 Routing Parameters Start I/O No. 5NM0 Network No. Total Stations 5NM0 Mode MELSECNET/H Page 457, Appendix 1.3.3 5NM1 Refresh Parameters 5NM2...
  • Page 435 APPENDICES Parameter Item Set in: Reference A000 Number of modules on CC-Link IE Controller Network A002 Interlink Transmission Parameters A003 Routing Parameters A080 Network Type A082 Interlink Transmission Parameters Start I/O No. Network No. ANM0 CC-Link IE Total Stations Controller Page 455, Appendix 1.3.1, Station No.
  • Page 436 Parameter Item Set in: Reference E002 Communication Area Setting (Refresh Setting) E003 E006 Online Module Change E007 Refresh parameter detailed device specification Page 448, Appendix 1.2.10, Multiple CPU QCPU User’s Manual (Multiple E008 Multiple CPU High Speed CPU Specific Send Range CPU System) Transmission Area E009...
  • Page 437: 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 438: 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 356, Timer Limit Set the time limit for the low 1000 Section 0.01ms to 100.0ms (in increments of...
  • Page 439 APPENDICES Parameter Item Description Setting range Default Reference Page 407, 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 52, 1007 empty slots on the...
  • Page 440: 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 388, 1100 Not Used...
  • Page 441: 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 191, WDT Setting (in increments of 200ms the CPU module. Section 3.16 10ms) WDT (Watchdog...
  • Page 442 Q26UDHCPU, check the versions of the CPU module and programming tool. ( Page 462, Appendix 2) Not available for the Q00UJCPU, Q00UCPU, and Q01UCPU. The setting value differs depending on the CPU module used. CPU modules other than High-speed Universal model QCPU: in increments of 0.5ms High-speed Universal model QCPU: in increments of 0.1ms...
  • Page 443: 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 444: 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 445: 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 446: 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 447 • Q00UJCPU, Q00UCPU, Q01UCPU, and Q02UCPU: 8192 points • Universal model QCPU other than the Q00UJCPU, Q00UCPU, Q01UCPU, and Q02UCPU: 16384 points Available only when the serial number (first five digits) of the Universal model QCPU is "10042" or later.
  • Page 448 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 449 APPENDICES Parameter Item Description Setting range Default Reference Set whether to clear or hold the output Error Time Page 139, 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 140,...
  • Page 450: Appendix 1.2.10 Multiple Cpu Setting

    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 451 B, M, or Y. • One point in the send range equals one point in D, W, R, or ZR. Not available for the Q00UCPU, Q01UCPU, and Q02UCPU. SM, SD, SB, and SW are valid only when they are selected as send devices.
  • Page 452: Appendix 1.2.11 Built-in Ethernet Port Setting

    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 453 APPENDICES 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 454: Serial Communication

    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 455: Acknowledge Xy Assignment

    APPENDICES 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 456: Appendix 1.3 Network Parameters

    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 457: Cc-link Ie Controller Network Setting

    APPENDICES 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 458: Cc-link Ie Field Network Setting

    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 459: Melsecnet/h Setting

    APPENDICES 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 460: Appendix 1.3.4 Ethernet Setting

    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 Set Ethernet network...
  • Page 461: Appendix 1.3.5

    APPENDICES 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)
  • Page 462: Appendix 1.4 Remote Password

    Appendix 1.4 Remote Password This section provides the list of parameters for remote password and describes parameter details.
  • Page 463 APPENDICES 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 464: Appendix 2 Functions Added Or Changed By Version Upgrade

    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 465 APPENDICES 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 294, Section 3.33) or later or later "11043" or later Version 1.12N *1 *5 ×...
  • Page 466 Programming tool version Function Serial number Function version (first 5 digits) GX Works2 GX Developer Version 1.98C – × High-speed interrupt function ( Page 222, Section 3.21 ) or later Version 1.98C Data logging function QnUDVCPU/LCPU User's Manual (Data – ×...
  • Page 467 APPENDICES 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 251, Section 3.29).
  • Page 468: Appendix 3 Cpu Module Processing Time

    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 469: Appendix 3.2 Time Required For Each Processing Included In Scan Time

    (I/O refresh time) = (number of input points/16) × N1 + (number of output points/16) × N2 QA1S5B, QA1S6B, QA6B, Q3B, Q3SB, Q5B, Q6B, QA1S6ADP+A1S5B, QA6ADP+A5B, Q3RB, Q6RB CPU module Q3DB QA1S6ADP+A1S6B QA6ADP+A6B Q00UJCPU, Q00UCPU, Q01UCPU 1.8µs 1.1µs 2.6µs 1.9µs 4.9µs 4.0µs 5.7µs 4.9µs Q02UCPU 1.5µs 1.1µs 2.4µs 1.9µs...
  • Page 470 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 When set to 5 Q00UJCPU, Q00UCPU, Q01UCPU 0.0120ms 0.0140ms Q02UCPU 0.0050ms 0.0055ms Q03UD(E)CPU 0.0043ms...
  • Page 471 APPENDICES (b) Program-end overhead time for interrupt programs CPU module Without high-speed start With high-speed start Q00UJCPU, Q00UCPU, Q01UCPU 28µ 15µ Q02UCPU 26µ 7µ Q03UD(E)CPU 26µ 7µ Q04UD(E)HCPU, Q06UD(E)HCPU, Q10UD(E)HCPU, Q13UD(E)HCPU, 26µ 7µ Q20UD(E)HCPU, Q26UD(E)HCPU Q50UDEHCPU, Q100UDEHCPU 44µ 7µ Q03UDVCPU, Q04UDVCPU, Q06UDVCPU, Q13UDVCPU, Q26UDVCPU 5.4µs...
  • Page 472 When a local device file in the standard RAM is used (with an extended SRAM cassette) CPU module Additional time to the pre-start overhead time Additional time to the program-end overhead (Page 468, (Page 469, for interrupt programs time for interrupt programs Appendix 3.2 (3) (a)) Appendix 3.2 (3) (b)) Q03UDVCPU, Q04UDVCPU,...
  • Page 473 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 474 (SM210 changes from off to on) or the clock data read request (SM213 turns on) is issued. Processing time in END processing CPU module When the clock data set When the clock data request is issued read request is issued Q00UJCPU, Q00UCPU, Q01UCPU 0.028ms 0.017ms Q02UCPU 0.027ms 0.013ms Q03UD(E)CPU, Q04UD(E)HCPU, Q06UD(E)HCPU, Q10UD(E)HCPU, Q13UD(E)HCPU, Q20UD(E)HCPU, Q26UD(E)HCPU, Q50UDEHCPU, 0.011ms...
  • Page 475 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 0.185ms 0.180ms Q02UCPU 0.180ms 0.175ms Q03UD(E)CPU 0.068ms 0.062ms...
  • Page 476 (a) Processing time to monitor device data and read programs Processing time CPU module Monitoring device data Reading programs (Data register: 32 points) (10K step) Q00UJCPU, Q00UCPU, Q01UCPU 1.60ms 3.70ms Q02UCPU 1.00ms 1.55ms Q03UDCPU, Q04UDHCPU, Q06UDHCPU, Q10UDHCPU, Q13UDHCPU, 0.35ms 0.95ms...
  • Page 477 APPENDICES 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...
  • Page 478: Factors That Increase The Scan Time

    [Conditions] Processing time (when 50 points of the internal relay (for bit device) and 50 points of the data register (for word device) are set as sampling trace data) CPU module Processing time Q00UCPU, Q01UCPU 0.12ms Q02UCPU 0.09ms Q03UD(E)CPU 0.07ms...
  • Page 479 • N4: Number of index register points that were specified as a local device CPU module Processing time ((16.0 × N1) + (0.23 × (N2 + (N3  16))) + Q00UCPU, Q01UCPU (1.49 × N4) + 98.3) × n +92.0µs ((24.0 × N1) + (0.23 × (N2 + (N3  16))) + Q02UCPU (1.57 ×...
  • Page 480 (20.3 × N1) + (0.760 × (N2 + (N3  16))) + Q00UCPU, Q01UCPU 0.00µs (4.47 × N4) + 257.0µs (20.3 × N1) + (0.760 × (N2 + (N3  16))) + Q02UCPU 0.00µs...
  • Page 481 (3) Execution of multiple programs When multiple programs are executed, the processing time listed in the following table is required for each program. CPU module Processing time Q00UJCPU, Q00UCPU, Q01UCPU 0.053 × n Q02UCPU 0.04 × n Q03UD(E)CPU 0.02 × n Q04UD(E)HCPU, Q06UD(E)HCPU, Q10UD(E)HCPU, Q13UD(E)HCPU, 0.02 ×...
  • Page 482 Reserved area for online change CPU module The reserved area for online The reserved area for online change is not changed. change is re-set. Q00UJCPU, Q00UCPU, Q01UCPU Up to 2.1ms Up to 2.1ms Q02UCPU Up to 1.3ms Up to 1.3ms Q03UD(E)CPU Up to 1.0ms...
  • Page 483 Scan time = 2ms Scan time = 20ms Q00UJCPU Up to 4.00ms Up to 6.20ms Q00UCPU Up to 3.50ms Up to 5.80ms Q01UCPU Up to 3.50ms Up to 5.60ms Q02UCPU Up to 4.80ms Up to 4.80ms Q03UD(E)CPU Up to 3.75ms Up to 3.75ms...
  • Page 484 CPU module Processing time Q00UJCPU 180.3 + 5.9 × number of branch instructions µs Q00UCPU, Q01UCPU 179.5 + 5.8 × number of branch instructions µs Q02UCPU 40.0 + 3.0 × number of branch instructions µs Q03UD(E)CPU, Q04UD(E)HCPU, Q06UD(E)HCPU, Q10UD(E)HCPU, Q13UD(E)HCPU, Q20UD(E)HCPU, Q26UD(E)HCPU, Q50UDEHCPU, 40.0 + 1.5 ×...
  • Page 485 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 Scan time = 20ms Q00UJCPU, Q00UCPU, Q01UCPU 2.35ms 5.10ms Q02UCPU 2.35ms 4.50ms Q03UDCPU 1.10ms...
  • Page 486 (15)High-speed interrupt function The high-speed interrupt function performs the following operations. Main routine program Waiting time High-speed interrupt start Input (X) Buffer memory read High-speed interrupt program execution Buffer memory write Output (Y) High-speed interrupt end The processing time of each operation is as follows. (a) Waiting time For the waiting time before a high-speed interrupt starts, refer to Page 226, Section 3.21.3 (1).
  • Page 487 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 488: 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 489 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 490: 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 491: 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 492: Bcd (binary-coded Decimal)

    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 493: 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 494 (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 495 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 496 (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 497: 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 498: 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 499 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 178, 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 500 (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 501 (Hardware Design, • Q00JCPU, Q00CPU, Q01CPU position in the Reference column. Maintenance and ...On the front of the module. Inspection) • Q00UJCPU, Q00UCPU, Q01UCPU ...At the bottom of the module. (6) Program size Item Precautions Replacement method Reference Data in the program memory of the Basic model...
  • Page 502: 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 503 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 511, Appendix 5.3 511, 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 504 Item Precautions Replacement method Reference MELSEC-Q/L I/O refresh setting for each I/O refresh setting for each program is not Use the RFS instruction if I/O refresh setting for Programming Manual program available. each program is required. (Common Instruction) Replace the corresponding special relay and Usage of a part of the special relay and special special register as described in Page 555, Page 555, Appendix 5.5...
  • Page 505 APPENDICES Item Precautions Replacement method Reference A device comment file cannot be stored in an Store the file in the standard RAM. SRAM card. Device comment A device comment file cannot be stored in an Store the file in an SD memory card. ATA card nor Flash card.
  • Page 506 (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 203, Section 3.18 memory card. memory card (100) to the system memory.
  • Page 507 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 508 Programming Manual changed online.) changed by online change of inactive (SFC) block. This operation is available for the Universal model QCPU other than the Q00UJCPU, Q00UCPU, Q01UCPU, and Q02UCPU and whose serial number (first five digits) is "12052" or later.
  • Page 509: 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 510 (c) GOT GT Works3 OS version compatible with GT Designer2 OS version compatible with the Universal model QCPU the Universal model QCPU Product Model Used with Used with Used with Q03UDE/ Used with Used with High-speed Q00UJ/Q00U/ Q02U/Q03UD/ Q04UDEH/ Q13UDH/ Q10UDEH/ Universal model Q01U/Q10UDH/...
  • Page 511 QCPU • Q12HCPU • Q25HCPU • Q02PHCPU • Q06PHCPU Process CPU No restrictions • Q12PHCPU • Q25PHCPU (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 ...
  • Page 512 (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 513: Instructions

    APPENDICES 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 514 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 ANDI BLm\TRn...
  • Page 515: Appendix 5.3.2 Replacing Programs Using Multiple Cpu Transmission Dedicated Instructions

    (2) Replacing the module with the Q00UCPU, Q01UCPU, or Q02UCPU The Q00UCPU, Q01UCPU, and Q02UCPU support the same multiple CPU transmission dedicated instructions used in the Basic model QCPU. The alternative instructions in the table in (1) are not available for Q00UCPU, Q01UCPU, and Q02UCPU.
  • Page 516: Appendix 5.3.3

    Appendix 5.3.3 Program replacement examples This section shows program replacement examples for the instructions of which replacement programs are available in Page 511, Appendix 5.3.1. (Skip this section if instructions listed in Page 511, 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 517 APPENDICES (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 518 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 519 APPENDICES (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...
  • Page 520 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 521 APPENDICES (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...
  • Page 522 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 523 APPENDICES 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 524 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 525 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 An failure status is checked, and if a failure is detected, a failure number is stored in D200.
  • Page 526 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 527 APPENDICES 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...
  • Page 528 (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 529 APPENDICES 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 530: Appendix 5.4 Functions

    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 531 APPENDICES (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 532 (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 533 APPENDICES 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 534 (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 535 APPENDICES (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 536 • 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 537: Appendix 5.4.2

    APPENDICES 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 538 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 539 APPENDICES 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.) Make sure that there is no line (OR connection) between the valid data flag and the floating-point data comparison instruction.
  • Page 540 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 541: Appendix 5.4.3

    APPENDICES 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 542 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 543 APPENDICES (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 539, Appendix 5.4.3 (1) should be avoided, take actions described in 2) to 4).
  • Page 544 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 545: Appendix 5.4.4 Device Latch Function

    APPENDICES 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 546 (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 547: Appendix 5.4.5 File Usability Setting

    APPENDICES 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 548 (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 549 APPENDICES (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 550: Appendix 5.4.6

    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 551 APPENDICES 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 552 (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 553: Appendix 5.4.7

    APPENDICES 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 554 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 555 APPENDICES (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 556 (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 557: Appendix 5.5 Special Relay And Special Register

    APPENDICES 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 555, Appendix 5.5.1 and Page 558, 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 558 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 559 APPENDICES 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 560: Special Register List

    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 522, Appendix 5.3.3 (4).
  • Page 561 APPENDICES 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 562: Appendix 6 Precautions For Replacing Qnud(e)(h)cpu With Qnudvcpu

    Appendix 6 Precautions for Replacing QnUD(E)(H)CPU with QnUDVCPU 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 563 APPENDICES (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 564 (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 102, Section 2.11 card) cannot be specified as a transfer source. source.
  • Page 565 APPENDICES (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 566: Appendix 7 Precautions For Using Gx Works2 And Differences With Gx Developer

    Appendix 7 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. GX Works2 Version 1 Operating Manual (Common)
  • Page 567: Appendix 8 Ways To Use Different Types Of The Backup/restoration Function

    APPENDICES Appendix 8 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 568: Appendix 9 Device Point Assignment Sheet

    • Q00UJCPU, Q00UCPU, Q01UCPU, and Q02UCPU: 8192 points • Universal model QCPU other than the Q00UJCPU, Q00UCPU, Q01UCPU, and Q02UCPU: 16384 points Up to 32K points can be set for each device. However, up to 60K points can be set for each device of the internal relay and link relay for the Universal model QCPU whose serial number (first five digits) is "10042"...
  • Page 569 APPENDICES Memo...
  • Page 570: Index

    INDEX ....348 Clearing data in the latch relay ....366 Clearing the counter value .
  • Page 571 ..... 266 ......53 Error cause of backup I/O number .
  • Page 572 ..412 ......132 Macro instruction argument device (VD) PAUSE contact .
  • Page 573 ....22 ..276 Redundant power supply module Target files for backup and restoration ......75 Refresh mode Timer (T) .
  • Page 574: 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 575 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 576 Japanese manual version SH-080802-AB 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 577: 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 578 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 580 SH(NA)-080807ENG-Y(1708)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.

Comments to this Manuals

Symbols: 0
Latest comments: