background image

App - 27                                                                                                                                                       App - 27

MELSEC-Q

APPENDICES

Special Register List (Continued)

Number

Name

Meaning

Explanation

Set by

(When set)

Corresponding

ACPU

D9

Corresponding

CPU

SD50

Error reset

Error number that
performs error reset

• Stores error number that performs error reset

U

New

+Rem

SD51

Battery low

latch

Bit pattern

indicating where

battery voltage drop

occurred

• All corresponding bits go ON when battery voltage drops.
• Subsequently, these remain ON even after battery voltage has

been returned to normal.

B4 B3

B0

B2 B1

CPU error

Memory card A alarm

Memory card A error

Memory card B alarm

Memory card B error

0<                       >

-------------------

• When QCPU is used, this flag is always OFF because memory

card B is used as standard memory.

S (Error)

New

SD52

Battery low

Bit pattern
indicating where
battery voltage drop
occurred

• Same configuration as SD51 above
• Subsequently, goes OFF when battery voltage is restored to

normal.

• When High Performance model QCPU is used, this flag is

always OFF because memory card B is used as standard
memory.

S (Error)

New

SD53

AC/DC

DOWN

detection

Number of times for

AC/DC DOWN

• Every time the input voltage falls to or below 85% (AC

power)/65% (DC power) of the rating during calculation of the
CPU module, the value is incremented by 1 and stored in BIN
code.

S (Error)

D9005

+Rem

SD54

MINI link

errors

Error detection

state

1

The relevant station bit goes ON when any of the Installed

MINI (-S3) X(n+0)/X(n+20), X(n+6)/(n+26), X(n+7)/(n+27) or

X(n+8)/X(n+28) goes ON.

2

Goes ON when communications between the installed MINI

(-S3) and the CPU are not possible.

B15

B8

B9

B0

8th 

module

8th

module

1st

module

1st

module

.........

Information on 

Information on 

1

2

S (Error)

D9004 format

change

QnA

SD60

Blown fuse
number

Number of module
with blown fuse

• Value stored here is the lowest station I/O number of the module

with the blown fuse.

S (Error)

D9000

SD61

I/O module
verification
error number

I/O module
verification error
module number

• The lowest I/O number of the module where the I/O module

verification number took place.

S (Error)

D9002

+Rem

SD62

Annunciator
number

Annunciator
number

• The first annunciator number to be detected is stored here.

S

(Instruction

execution)

D9009

SD63

Number of
annunciators

Number of
annunciators

• Stores the number of annunciators searched.

S

(Instruction

execution)

D9124

Summary of Contents for QCPU (Q Mode)

Page 1: ...U User s Manual Mitsubishi Programmable Logic Controller High Performance Model QCPU Q Mode Function Explanation Program Fundamentals ...

Page 2: ...trouble could result from erroneous output or erroneous operation 1 Outside the PLC construct mechanical damage preventing interlock circuits such as emergency stop protective circuits positioning upper and lower limits switches and interlocking forward reverse operations 2 When the PLC detects the following problems it will stop calculation and turn off all output in the case of a In the case of ...

Page 3: ...perate safely Also before exercising other control program change operating status change status control on the running PLC read the manual carefully and fully confirm safety Especially for the above control on the remote PLC from an external device an immediate action may not be taken for PLC trouble due to a data communication fault In addition to configuring up the interlock circuit in the sequ...

Page 4: ...e When installing more cables be sure that the base unit and the module connectors are installed correctly After installation check them for looseness Poor connections could cause an input or output failure Securely load the memory card into the memory card loading connector After installation check for lifting Poor connections could cause an operation fault Completely turn off the external power ...

Page 5: ...re no foreign substances such as sawdust or wiring debris inside the module Such debris could cause fires damage or erroneous operation The module has an ingress prevention label on its top to prevent foreign matter such as wire offcuts from entering the module during wiring Do not peel this label during wiring Before starting system operation be sure to peel this label because of heat dissipation...

Page 6: ... cause damage or problems with of the module Do not disassemble or modify the modules Doing so could cause trouble erroneous operation injury or fire Use a cellular phone or PHS more than 25cm 9 85 inch away from the PLC Not doing so can cause a malfunction Switch all phases of the external power supply off before mounting or removing the module If you do not switch off the external power supply i...

Page 7: ... 5 7 8 7 14 7 18 7 19 1 7 20 1 Chapter 9 Section 10 2 10 10 Section 11 3 Appendix 1 2 Addition Section 2 3 Section 4 1 3 4 2 5 Section 5 4 5 5 2 5 6 2 Section 6 6 6 6 2 6 7 Section 7 6 3 7 7 2 7 7 3 7 9 1 7 9 3 7 16 7 17 7 17 2 7 20 1 Section 10 10 Jun 2001 SH NA 080038 C The explanation of the multiple PLC system added to the function version B of the QCPU was added to Chapters 13 to 19 General n...

Page 8: ...al No and Function Versions 2 6 3 PERFORMANCE SPECIFICATION 3 1 to 3 3 4 SEQUENCE PROGRAM CONFIGURATION AND EXECUTION CONDITIONS 4 1 to 4 52 4 1 Sequence Program 4 1 4 1 1 Main routine program 4 3 4 1 2 Sub routine programs 4 4 4 1 3 Interrupt programs 4 6 4 2 Program Execute Type 4 10 4 2 1 Initial execution type program 4 15 4 2 2 Scan execution type program 4 17 4 2 3 Low speed execution type p...

Page 9: ... GX Developer 5 11 5 6 1 Purpose of I O assignment by GX Developer 5 11 5 6 2 Concept of I O assignment using GX Developer 5 12 5 7 Examples of I O Number Assignment 5 15 5 8 Checking the I O Numbers 5 18 6 HIGH PERFORMANCE MODEL QCPU FILES 6 1 to 6 25 6 1 About the High Performance model QCPU s Memory 6 3 6 2 Program Memory 6 6 6 3 About the Standard ROM 6 8 6 4 About the Standard RAM 6 9 6 5 Mem...

Page 10: ...ting data in the circuit mode during RUN 7 35 7 10 2 Writing a batch of files during RUN 7 38 7 11 Execution Time Measurement 7 40 7 11 1 Program monitor list 7 40 7 11 2 Interrupt program monitor list 7 44 7 11 3 Scan time measurement 7 45 7 12 Sampling Trace Function 7 47 7 13 Debug Function with Multiple Users 7 56 7 13 1 Multiple user monitoring function 7 57 7 13 2 Multiple user RUN write fun...

Page 11: ...cation using device initial value 8 7 8 3 2 Communication using FROM TO instruction 8 8 8 3 3 Communication using the intelligent function module device 8 8 8 3 4 Effects of quicker access to the special function module and countermeasures against them 8 9 9 PARAMETER LIST 9 1 to 9 10 10 DEVICES 10 1 to 10 71 10 1 Device List 10 1 10 2 Internal User Devices 10 3 10 2 1 Inputs X 10 5 10 2 2 Outputs...

Page 12: ... O No designation device U 10 59 10 11 5 Macro instruction argument device VD 10 60 10 12 Constants 10 61 10 12 1 Decimal constants K 10 61 10 12 2 Hexadecimal constants H 10 61 10 12 3 Real numbers E 10 62 10 12 4 Character string 10 62 10 13 Convenient Uses for Devices 10 63 10 13 1 Global devices and local devices 10 63 10 13 2 Device initial values 10 69 11 HIGH PERFORMANCE MODEL QCPU PROCESSI...

Page 13: ...formance model QCPU stop errors occur 14 18 14 2 9 Reducing the time required for multiple PLC system processing 14 20 15 ALLOCATING MULTIPLE PLC SYSTEM I O NUMBERS 15 1 to 15 3 15 1 Concept behind Allocating I O Numbers 15 1 15 1 1 I O modules and intelligent function module I O numbers 15 1 15 1 2 I O number of High Performance model QCPU Motion CPU and PC CPU module 15 2 15 2 Purpose of PC Para...

Page 14: ... the Multiple PLC System 19 1 19 2 Setting Up the Multiple PLC System Parameters Multiple PLC Settings Control PLC Settings 19 3 19 2 1 System configuration 19 3 19 2 2 Creating new systems 19 4 19 2 3 Using existing preset multiple PLC settings and I O allocations 19 7 APPENDICES App 1 to App 58 APPENDIX 1 Special Relay List App 1 APPENDIX 2 Special Register List App 22 APPENDIX 3 List of Interru...

Page 15: ...Names and Settings 4 3 Switch Operation After Writing in Program 4 4 Latch Clear Operation 4 5 Executing automatic Write to standard ROM 5 POWER SUPPLY MODULE 5 1 Specification 5 1 1 Power supply module specifications 5 1 2 Selecting the power supply module 5 1 3 Precaution when connecting the uninterruptive power supply 5 2 Names of Parts and Settings 6 BASE UNIT AND EXTENSION CABLE 6 1 Base Unit...

Page 16: ...orm to the Low Voltage Directive 8 2 1 Standard applied for MELSEC Q series PLC 8 2 2 MELSEC Q series PLC selection 8 2 3 Power supply 8 2 4 Control box 8 2 5 Grounding 8 2 6 External wiring 9 LOADING AND INSTALLATION 9 1 General Safety Requirements 9 2 Calculating Heat Generation by PLC 9 3 Module Installation 9 3 1 Precaution on installation 9 3 2 Instructions for mounting the base unit 9 3 3 In...

Page 17: ...perform boot operation from memory card 11 2 16 Flowchart when UNIT VERIFY ERR occurs 11 2 17 Flowchart when CONTROL BUS ERR occurs 11 3 Error Code List 11 3 1 Procedure for reading error codes 11 3 2 Error code list 11 4 Canceling of Errors 11 5 I O Module Troubleshooting 11 5 1 Input circuit troubleshooting 11 6 Special Relay List 11 7 Special Register List APPENDICES APPENDIX 1 Error Code Retur...

Page 18: ...al describes how to use the sequence instructions and application instructions Sold separately SH 080039 13JF58 QCPU Q Mode QnACPU Programming Manual PID Control Instructions This manual describes the dedicated instructions used to exercise PID control Sold separately SH 080040 13JF59 QCPU Q Mode QnACPU Programming Manual SFC This manual explains the system configuration performance specifications...

Page 19: ...escribes communication with intelligent function modules 5 Chapters 9 and 10 Describe parameters and devices used in the CPU modules 6 Chapter 11 Describes the CPU module processing time 7 Chapter 12 Describes the procedure for writing parameters and programs created at the GX Developer to the CPU module 8 Chapters 13 to 19 Describes an overview of the multiple PLC system the system configuration ...

Page 20: ...pply module Battery General name for battery for Q6BAT type CPU module and Q2MEM BAT type SRAM card Extension cable General name for QC05B QC06B QC12B QC30B QC50B QC100B type extension cable Q5 B General name for Q52B and Q55B that accept the Q Series I O and intelligent function modules Control PLC High Performance model QCPU motion CPU that controls any of the I O and intelligent function module...

Page 21: ...Added functions Corresponding GX Developer A 02092 or later Automatic write to standard ROM Enforced ON OFF for external I O Remote password setting Increased standard RAM capacity of Q12HCPU Q25HCPU Compatibility with MELSECNET H remote I O network Interrupt module QI60 compatibility Version 6 or later Compatibility with the multiple PLC system Version 6 or later 03051 or later Installation of PC...

Page 22: ...refresh of the network have been realized by the connection system System bus connection of the newly developed base unit Access to the intelligent function module 20 s word approx 7 times 1 MELSECNET H link refresh processing 4 6ms 8k word approx 4 3 times 1 1 Where Q02HCPU is compared with Q2ASHCPU S1 4 Increase in debugging efficiency through high speed communication with GX Developer In the Hi...

Page 23: ...yte max can be connected 32 Mbyte is available when a ATA card is used When a memory card of large capacity is installed a large capacity of file can be controlled comments to all data devices can be set up and the programs in the past can be stored in the memory as they are in the form of the corrected histories If a memory card is not installed a program can be stored onto the standard ROM built...

Page 24: ...rial communication module is made externally whether access to the High Performance model QCPU can be made or not can be selected with a remote password 12 Remote I O network of MELSECNET H can be configured You can load the remote master station of the MELSECNET H to configure an MELSECNET H remote I O system REMARK Features 9 to 12 are functions added to the High Performance model QCPU whose ser...

Page 25: ...process is enabled Standard RAM 2 File register 32k word RAM Parameter Program File register ROM Parameter Program File register When Flash card is used only read process is enabled Memory card 1 The standard ROM is used when parameters and programs are written to ROM 2 The standard RAM is used when access to the file register need to speed up b The QCPU processes programs stored in the program me...

Page 26: ...grams can therefore be stored in the program memory standard ROM or memory card by using different file names GX Developer Multiple program writing is enabled by using different file names QCPU Parameter Writing from GX Developer to QCPU Program File name ABC Device comments File name ABC Program File name DEF Therefore the program creation can be split among several designers so that they control...

Page 27: ...Example of programs split by function Program memory Standard ROM Memory card Split by function Initial processing Main processing Communication processing Error processing QCPU Program A Program B Program C Program D The execution sequence and execution conditions can be set to conform to programs A to D 2 REMARK 1 Programs split by process can be further split by function 2 See Section 4 2 for d...

Page 28: ... M10 D0 5 Bit designation Word device designation Bit designation of word device D0 5 b Direct processing in 1 point units is permitted within a program simply by using direct access inputs DX and direct access outputs DY Output to output module at instruction execution In the case of QCPU M0 DX10 DY100 In the case of AnS M9036 K1B0 K1B0 K1X10 SEG K1Y100 SEG X10 Y100 M9036 M9052 SET M0 M9036 X10 t...

Page 29: ...4f Power supply module QCPU Input 16 points Input 16 points Input 16 points Q64AD 16 points Q64AD 16 points Q62AD 16 points Output 16 points Output 16 points e Direct access to link devices LX LY LB LW SB SW of MELSECNET H network modules e g QJ71LP21 25 is allowed without refresh settings Direct readout of the No 5 network module s LW12 link register X0 D0 J5 W12 P Network No 5 J5 W12 Link regist...

Page 30: ...Return to FOR instruction When Z1 0 X0 OFF V0 OFF M0 OFF ON ON ON 1 Scan Timing chart When Z1 1 X1 OFF V1 OFF M1 OFF ON ON ON 1 Scan 3 Simple data processing a Real numbers floating decimal point data and character string constants can be used in the programming as they are X0 R0 D0 E1 23 E P D10 D5 P Real number ADD instruction Character string data LINK instruction Real number data D0 Real numbe...

Page 31: ...am A Subroutine program R0 K4X20 MOV SM400 Always ON R0 K4X0 MOV RET M0 M0 P1000 P1000 call Program B P1000 call M10 P1000 CALLP 0 M0 P1000 CALLP 0 Common pointer b The use of sub routine call instructions with arguments simplifies the creation of sub routine programs which are called several times Sub routine program FD2 FD1 MOV SM400 FD2 FD0 MOV RET M0 M0 P0 P0 call Argument designation P0 call ...

Page 32: ...base units are used for the power supply module I O module and special function module of the AnS series 3 The Q series power supply module is not required for the Q5 B type extension base unit 2 Q6 B extension base unit Q63B Q65B Q68B Q612B Q5 B extension base unit Q52B Q55B Memory card Q2MEM 1MBS Q2MEM 2MBS Q2MEM 2MBF Q2MEM 4MBF Q2MEM 8MBA Q2MEM 16MBA Q2MEM 32MBA High Performance model QCPU Q02C...

Page 33: ...card adapter Q2MEM ADP Memory card 1 Q2MEM 1MBS Q2MEM 2MBS Q2MEM 2MBF Q2MEM 4MBF Q2MEM 8MBA Q2MEM 16MBA Q2MEM 32MBA Only Q02HCPU Q06HCPU Q12HCPU and Q25HCPU can be used USB cable 1 To be procured yourself Personal Computer GX Developer Version 4 or later SW4D5C GPPW E MITSUBISHI 1 For writing into memory card on GX Developer and USB cable refer to the operating manual of the GX Developer 2 ...

Page 34: ... Q68B Power supply module Extension base unit Q65B Power supply module Extension base unit QA1S65B Power supply module Extension base unit QA1S68B Power supply module Extension base unit QA1S68B Power supply module Maximum number of Extension Stages Seven Extension Stages Maximum number of I O modules to be installed 64 modules Maximum number of occupied I O points 4096 Main base unit Q33B Q35B Q3...

Page 35: ...dule A1SI61 QI60 One unit only A maximum of 4 modules if the network parameters for CC Link are set and controlled by the GX Developer There is no restriction in the number of modules when the parameters are set by the special purpose instructions for the CC Link For details on the CC Link System Master Local Unit that can set parameters with the special purpose instructions refer to the manual fo...

Page 36: ...D module A1SJ71ID1 R4 A1SJ71ID2 R4 f Some system configurations and functions are restricted when writing the parameter of the High speed interrupt fixed scan interval setting Refer to the following manual for the restrictions when the parameter of the High speed interrupt fixed scan interval setting has been written High Performance model QCPU Q mode User s Manual Function Explanation Program Fun...

Page 37: ...AN LISTED 80M1 IND CONT EQ MODEL SERIAL 020920000000000 B Serial No First five digits Function version 2 Confirming the serial No on the system monitor list of product information The CPU module serial No and function version can be confirmed with the list of product information on the GX Developer Version 6 or later system monitor Serial Nos and function versions of the intelligent function modul...

Page 38: ... max ATA card 32 Mbyte max For memory capacity see Section 7 1 Standard RAM Drive 3 64kbyte 128kbyte 256kbyte Standard ROM Drive 4 112 kbyte 240 kbyte 496 kbyte 1008 kbyte Memory capacity CPU shared memory 3 8 kbyte Program memory 28 60 124 252 1 Memory card RAM 256 Flash card 288 Memory card ROM ATA card 512 Standard RAM 2 Only one file register and one local device Maximum number of stored files...

Page 39: ...6HCPU The number of points of up to 65536 points can be used by block conversion in increments of 32768 points R0 to 32767 Q12HCPU Q25HCPU The number of points of up to 131072 points can be used by block conversion in increments of 32768 points R0 to 32767 When a SRAM card 1Mbyte is used The number of points of up to 517120 points can be used by block conversion in increments of 32768 points R0 to...

Page 40: ...0 to 4 The number of device points is fixed Link direct device Device having a direct access to link device MELSECNET 10 H use only Specified form J X J Y J W J B J SW J SB Intelligent function module device Device having a direct access to the buffer memory of the intelligent function module Specified form U G Latch power failure compensation range L0 to 8191 default Latch range can be set for B ...

Page 41: ...ce instructions basic instructions and application instructions etc Sequence instruction T0 X0 X1 X41 M0 K100 T0 Y30 BIN K4X10 D0 FROM H5 K0 D10 K1 Basic instruction Application instruction b There are 3 types of sequence program main routine programs sub routine programs and interrupt programs For details on these programs see the following sections of this manual Main routine programs Section 4 ...

Page 42: ...de The list mode uses dedicated instructions instead of the contact symbols coil symbols etc used in the ladder mode Contact a contact b and coil instructions are as follows a contact LD AND OR b contact LDI ANI ORI coil OUT 3 Program operation In sequence program the instructions are executed in order beginning from step 0 and ending at the END FEND With ladder mode the instructions in a ladder b...

Page 43: ... of them will be operated according to the designated execution conditions after the END FEND instruction is processed 2 Execution conditions for main routine programs 2 If multiple programs are being executed the following five types of execution conditions can be designated by the program in the PLC parameters according to the application Initial execution program See Section 4 2 1 Scan executio...

Page 44: ...program management Sub routine programs are created after the main routine program after FEND instruction and the combination of main and sub routine programs can be managed as one program a When created after the main routine program A sub routine program is created between the main routine program s FEND and END instructions Because there are no restrictions on the order in which sub routine pro...

Page 45: ...NFIGURATION AND EXECUTION CONDITIONS b Using the sub routine program as a separate program Sub routine programs can also be managed as separate separate programs stand by type programs See Section 4 2 4 for details on stand by type programs ...

Page 46: ...tervals See Section 7 20 for details on the high speed interrupt function REMARK 1 See Section 10 10 for details on interrupt factors and interrupt pointers 2 Interrupt program management Interrupt programs are created after the main routine program after the FEND instruction and the combination of main and sub routine programs can be managed as one program a When created after the main routine pr...

Page 47: ...am for I0 activated Interrupt program for I29 activated Program execution FEND EI IRET IRET END I0 interrupt program I29 interrupt program End of main routine program I0 I29 I0 I29 Interrupt program example Interrupt program execution Fig 4 3 Interrupt Program Execution b When an interrupt factor occurs the interrupt program with the interrupt pointer number corresponding to that factor is execute...

Page 48: ...type program or low speed execution type program 4 High speed execution of an interrupt program and overhead time By default High Performance model QCPU performs the following process when executing an interrupt program To hide and restore an index register See section 10 6 2 To hide and restore the file name of a file register in use The above listed processes are not performed if Execute at a Hi...

Page 49: ...m fixed scan execution type program is executed at a measuring time such as the scan time or execution time the values of the interrupt program fixed scan execution type program are added to the measured time Thus if the interrupt program fixed scan execution type program is executed the values stored in the following special registers and GX Developer monitor values will be longer than when the i...

Page 50: ...ion This permits the programming procedure to be split up among several program designers who can design separate programs for each operation and can store them in the standard ROM or memory card When multiple programs are executed by High Performance model QCPU program name file name and execute type settings of the programs must be designated Control contents A Control by separating into multipl...

Page 51: ...Program name This column is used to specify a program name file name of the program to be executed by High Performance model QCPU 2 Execute type This column is used to specify the execute type of the program defined in the Program name column See Section b 3 Fixed scan This column is used to specify time intervals at which to an execution type program The Fixed Scan setting range is determined by ...

Page 52: ... program if you want to receive an input X or produce an output Y before executing the fixed scan execution type program b There are following 5 execute types 1 Initial execution Initial This program type is executed once only at power ON or when STOP RUN switching occurs See Section 4 2 1 2 Scan execution Scan This program type is executed once per scan beginning from the scan which follows execu...

Page 53: ...ocessing Scan execution type program Run only when execution request is given Low speed execution type program Run only when constant scan or low speed program execution time has been set Stand by type program Power ON STOP to RUN Program run at specified cyclic time intervals Fxied scan execution type program POINT Not all execute types need to be set for the High Performance model QCPU Use the i...

Page 54: ...e remains scan execution type Initial execution type Becomes stand by type Output is turned OFF in the next scan Becomes stand by type from the next scan after that Stand by type Becomes scan execution type No change remains stand by type No processing Becomes low speed type Low speed execution type Low speed execution type execution is stopped becomes scan executions from the next scan Execution ...

Page 55: ...several scans to complete the execution Initial execution type program Using initial execution type program Program A Scan execution type program Program B Initial program Control with one program Program to execute at every scan Division into initial execution type program and scan execution type 2 Using multiple initial execution type programs When multiple initial execution type programs are us...

Page 56: ...ters is 0 1 ms The initial scan time count will continue even if a watchdog time reset instruction WDT is executed at the sequence program 5 Initial execution monitor time a The execution period of the initial execution type program can be monitored by this timer The default value is not set When monitoring the execution time of the initial execution type program designate the initial execution mo...

Page 57: ...ted again when all scan execution type programs are executed and the END processing is completed The END processing network refresh can be performed for each program while several scan execution type programs are executed To do this include a COM instruction at the end of each scan execution type program First scan Second scan Third scan Forth scan STOP to RUN Power ON to RUN END processing Initia...

Page 58: ...he SD521 value is 400 the initial scan time is 3 4 ms POINT 1 The accuracy of the scan time stored at the special registers is 0 1 ms The scan time count will continue even if a watch dog timer reset instruction WDT is executed at the sequence program 6 WDT Watch dog timer This is the timer which monitors the scan time and its default setting is 200 ms This WDT setting can be designated within the...

Page 59: ...uting multiple low speed execution type programs When multiple low speed execution type programs are used they are executed one by one in ascending number order of the program in the PLC parameters 3 Execution time of the Low speed execution type program to be executed per scan a If all the low speed execution type program operation is completed within one scan and there is surplus time the proces...

Page 60: ...can time has been designated the surplus time after completion of low speed END processing is waiting time and execution of a scan execution type program starts when the constant scan time has elapsed This means that the scan time is constant in each scan However if the surplus time after the constant scan is less than 0 5 ms low speed execution type programs cannot be executed If using a low spee...

Page 61: ...ing execution 0 5ms 1ms Low speed END processing execution Low speed END processing execution Low speed scan time Low speed scan time 13ms 8 5ms 8 5ms 2 Low speed program execution time setting The low speed execution type program is operated under the following conditions as shown below Low speed program execution time 3ms Total scan execution type program time 4ms to 5ms Execution time of low sp...

Page 62: ...t time 0 5ms 2 5ms Low speed END processing execution 0 5ms 3ms 1ms 2 5ms 0 5ms Low speed END processing execution 0 5ms 3 5ms Low speed scan time 13ms 15 5ms 2 Low speed program execution time setting The low speed execution type program is operated under the following conditions as shown below Low speed program execution time 3ms Total scan execution type program time 4ms to 5ms Execution time o...

Page 63: ...5010 will occur if surplus time of constant scan low speed program execution time 5 Low speed END processing The low speed END processing is performed when all the low speed execution type programs are executed The following processing is performed for the low speed END processing Low speed program special relay special register setting Low speed execution type program write during RUN Low speed s...

Page 64: ...he scan time count will continue even if a watchdog time reset instruction WDT is executed in the sequence program 7 Low speed execution monitor time The execution time of the low speed execution type program can be monitored by this timer The default value is not set When monitoring the execution time of the low speed execution type program designate the low speed execution monitor time in a 10 t...

Page 65: ... Stand by type program applications a Placing programs in the library 1 This application is used to manage sub routine and interrupt programs separately from the main routine program Multiple sub routine and interrupt programs can be created for a single stand by type program Scan execution type program Main routine program Sub routine program Interrupt program P100 I0 Stand by type program Scan e...

Page 66: ... a scan execution type program by using a constantly executed scan execution type program as the management program Then execute the converted program Scan execution type programs which are not required can be converted to stand by type programs Execute types of ABC DEF GHI and JKL stand by type programs are converted as shown below PSCAN is an instruction that switches the specified ABC program t...

Page 67: ...pe and DEF program to stand by type the execute types of ABC and DEF programs are switched as shown below Before execution of PSCAN and PSTOP instructions Scan execution type program ABC PSCAN DEF M0 PSTOP ABC PSCAN is an instruction that switches the specified DEF program to a scan type program PSTOP is an instruction that switches the specified ABC program to a stand by type program Stand by typ...

Page 68: ...s specified for a same program in a same scan the last specified execute type becomes effective Execution program name END processing ABC GHI GHI DEF GHI END processing END processing PSTOP ABC execution PSCAN DEF execution Switches DEF to the scan execution type and ABC to the stand by type program respectively GHI REMARK 1 The GHI and DEF programs are executed in the order as set at the Program ...

Page 69: ...e pointer numbers need not be assigned in ascending order when creating multiple sub routine programs 3 Use common pointers Sub routine programs with common pointers can be called from all programs executed by High Performance model QCPU If local pointers are used the stand by type program s sub routine programs will not be executed High Performance model QCPU Program memory Standard ROM Memory ca...

Page 70: ...re no restrictions on the order of creating interrupt programs the pointer numbers need not be assigned in ascending order when creating multiple interrupt programs END Program B Stand by type program Interrupt pointer This does not have to be created in order I32 IRET IRET Y10 IRET Y11 Y12 I0 I28 Interrupt program High Performance model QCPU Program memory Standard ROM Memory card Program A Write...

Page 71: ... unit is ms 0 5 to 999 5ms When the unit is s 1 to 60s c When the specified times of fixed scan execution type programs and interrupt programs I28 to I31 have come simultaneously the priority of execution is given to the interrupt programs d Execution during network refreshing When the execution conditions of fixed scan execution type programs are established during the network refreshing the netw...

Page 72: ... selected High speed execution is selected Q02CPU 380 230 Q02HCPU Q06HCPU Q12HCPU Q25HCPU 165 100 4 Cautions on programming a If a device is turned ON in a fixed scan execution type program by a PLS instruction it is kept ON until the same type of the fixed scan execution type program is executed again X0 OFF ON M0 OFF ON END 0 0 ENDEND0 END 0 0 END END 0 PLS M0 X0 PLS M0 X0 Switched OFF by PLS M0...

Page 73: ... when the interrupt program fixed scan execution type program is not executed 1 Special registers SD520 SD521 Current scan time SD522 SD523 Initial scan time SD524 SD525 Minimum scan time SD526 SD527 Maximum scan time SD528 SD529 Current scan time for low speed SD532 SD533 Minimum scan time for low speed SD534 SD535 Maximum scan time for low speed SD540 SD541 END processing time SD542 SD543 Consta...

Page 74: ... information setting and network communication Switch setting of intelligent function module CC Link data setting Ethernet data setting Setting of device initialization values executed not executed REMARK 1 When parameters or programs are changed in the STOP status reset by the RESET L CLR switch When the RUN STOP switch is turned from STOP to RUN without the reset RUN LED flickes When the RUN STO...

Page 75: ... completing the whole sequence program operation processing once a When a refresh request is made from the network module refresh processing is performed b When the trace point of the sampling trace is set at every scan after END instruction execution the set device status is stored in the sampling trace area POINT 1 When the constant scan function See Section 7 2 is set END processing time result...

Page 76: ...n the output Y is retained 3 PAUSE Status Operation Processing a The PAUSE status indicates that the sequence program operations are paused by remote PAUSE function while maintaining the output and device memory status See Section 7 6 2 for details on remote PAUSE function 4 High Performance model QCPU Operation Processing with RUN STOP Status Operation processing RUN STOP status Sequence program ...

Page 77: ...s b When there is an SFC continue specification a system saving processing is performed c When a momentary power failure ends the operation processing is resumed d Even if the operation is interrupted due to momentary power failure the watch dog timer WDT measurement continues For example if the GX Developer PLC parameter mode WDT setting is set at 200 ms when a momentary failure of 15 ms occurs a...

Page 78: ...creen in the PLC Parameter dialog box There are two types of latch range settings 1 Valid latch clear key Sets the latch range that can be cleared by operating latch clear with the RESET L CLR switch and remote latch clear 2 Invalid latch clear key Sets the latch range that can not be cleared even by operating latch clear with the RESET L CLR switch or operating remote latch clear from GX Develope...

Page 79: ... batch output of the ON OFF data in output device memory to the output module is executed when sequence program operation starts Input module Output module GX Developer input area For device memory output Y CPU operation processing area 1 2 4 5 High Performance model QCPU At input refresh At output refresh 3 Input X device memory Area for communication with input module 1 At input refresh 2 Y20 Y2...

Page 80: ...ion module CC Link automatic refresh 2 The output Y device memory can be switched ON and OFF by the following Test operation by GX Developer A network refresh by the MELSECNET H network system Writhing from a serial communication module CC Link automatic refresh 3 The remote I O refresh area indicates the area used when automatic refresh setting is made to the input X with MELSECNET H and CC Link ...

Page 81: ...p 56 and the external load turns ON at the output refresh following execution of the END instruction In this case the time lag between the external contact ON and the external load ON is 1 scan When Y5E turns ON slowest OFF OFF ON ON 0 External contact X5 OFF ON Y5E OFF ON External load END 0 56 END 0 Input refresh Input refresh Output refresh QCPU devices Lag time Maximum 2 scan Y5E turns on slow...

Page 82: ... input X device memory Then this data is then used as input information 3 at sequence program execution When an output contact instruction has been executed Output information 4 is read from the output Y device memory and a sequence program is executed When an output OUT instruction has been executed The sequence program s operation result 5 is output to the output module and is stored in the outp...

Page 83: ...ediately before the step 55 operation If DX5 is ON when step 55 s LD DX5 is executed DY5E will turn ON within that scan Therefore in this case output DY5E lags minimally behind input DX5 When DY5E turns ON slowest OFF OFF ON ON 0 DX5 DY5E END 0 Lag time Maximum of 1 scan OUT DY5E LD DX5 55 56 55 56 DY5E output turns ON slowest if the DX5 input is turned ON immediately after the step 55 operation I...

Page 84: ...s may also be used See Section 4 8 4 The numeric expressions by BIN HEX BCD and Decimal DEC notations are shown in Table 4 1 below Table 4 1 BIN HEX BCD and Decimal Numeric Expressions DEC Decimal HEX Hexadecimal BIN Binary BCD Binary Coded Decimal 0 0 0 0 1 1 1 1 2 2 10 10 3 3 11 11 9 9 1001 1001 10 A 1010 1 0000 11 B 1011 1 0001 12 C 1100 1 0010 13 D 1101 1 0011 14 E 1110 1 0100 15 F 1111 1 0101...

Page 85: ...eric values from an external source without being conscious of the corresponding BIN values BINP K4X0 D0 BCD D5 K4Y30 Digital switch Numeric data designation BCD input BIN data High Performance model QCPU XF X0 1 2 3 4 Fig 4 11 Digital Switch Data Input to High Performance model QCPU 2 External numeric outputs from High Performance model QCPU A digital display can be used to display numeric data w...

Page 86: ...s link registers etc consist of 16 bits and a 2 n value is allocated to each of the register bits The most significant bit initial bit is used to discriminate between positive and negative 1 When most significant bit is 0 Positive 2 When most significant bit is 1 Negative The numeric expressions for the High Performance model QCPU registers are shown in Fig 4 13 below b15 8192 Bit name Decimal val...

Page 87: ...o 15 Then a carry occurs after F Table 4 3 shows numeric expressions by binary hexadecimal and decimal notations Table 4 3 Comparison of BIN HEX and DEC Numeric Expressions DEC Decimal HEX Hexadecimal BIN Binary 0 0 0 1 1 1 2 2 10 3 3 11 9 9 1001 10 A 1010 11 B 1011 12 C 1100 13 D 1101 14 E 1110 15 F 1111 16 10 1 0000 Carry 17 11 1 0001 47 2F 10 1111 2 Hexadecimal numeric expression High Performan...

Page 88: ...ic expressions by binary BCD and decimal notations Table 4 4 Comparison of BIN BCD and DEC Numeric Expressions DEC Decimal BIN Binary BCD Binary Coded Decimal 0 0 0 1 1 1 2 10 10 3 11 11 4 100 100 5 101 101 6 110 110 7 111 111 8 1000 1000 9 1001 1001 10 1010 1 0000 Carry 11 1011 1 0001 12 1100 1 0010 2 BCD numeric expression High Performance model QCPU registers data registers link registers etc c...

Page 89: ...antissa code Mantissa code The mantissa code is expressed at b31 as follows 0 Positive 1 Negative Characteristic The n of 2n is expressed in various ways at b23 to b30 depending on the b23 to b30 BIN value b23 to b30 n FFH FEH 127 FDH 126 00H 02H 125 01H 126 81H 2 80H 1 7FH 0 7EH 1 Non numeric Non numeric Mantissa For a binary value of 1 XXXXXX the XXXXXX portion of the value is expressed at b0 to...

Page 90: ... the operation will be short precision regardless of the floating point arithmetic processing setting It is recommended that Do not perform internal arithmetic operation in double precision is selected if increased speed for the real arithmetic operations is required and Perform internal arithmetic operation in double precision is selected if precision is required when applying compatibility with ...

Page 91: ...N CONDITIONS REMARK In binary notation the portion of the value following the decimal point is calculated as follows 0 1 1 0 1 This bit expresses 2 1 This bit expresses 2 2 This bit expresses 2 3 This bit expresses 2 4 0 1101 2 2 1 2 2 2 4 0 5 0 25 0 0625 0 8125 10 ...

Page 92: ...ing 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 Column Low Comma Minus Period Under line 0 1 2 3 4 5 6 7 8 9 A B C D E F b8 b7 b6 b5 b4 b3 b2 b1 0 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 0 1 0 0 0 1 1 0 0 1 1 1 1 0 0 0 1 0 0 1 1 0 1 0 1 0 1 1 1 1 0 0 1 1 0 1 1 1 1 0 1 1 1 1 0 1 2 3 4 5 6 7 8 9 A B C D E F NUL SP 0 P ...

Page 93: ...ction module is installed to the 65th or subsequent slots Be sure to install modules within the range of 64 slots An error does not occur as long as all modules are installed within the range of 64 slots even if the total number of slots of the main and extension base units results in 65 slots or more e g When 6 12 slot base units are installed 60 61 62 63 48 49 50 51 52 53 54 55 56 57 58 59 24 25...

Page 94: ...es If you assign stage numbers to base units in Auto mode and assign some stage numbers to no modules 0 is assigned to the skipped stage as the number of slots Consequently the number of empty slots does not increase The skipped stage is also assigned with 0 of I O point b It is impossible to set and use the same extension stage number with two or more extension base units c You cannot use the sys...

Page 95: ... which can be mounted to the current base unit a For 3 slot base unit 3 slots are occupied Q33B type main base unit CPU module 0 1 2 Power supply Five slots are not occupied Q63B type extension base unit 3 4 5 Power supply Five slots are not occupied Q63B type extension base unit 6 7 8 Power supply Five slots are not occupied b For 5 slot base unit 5 slots are occupied Q35B type main base unit CPU...

Page 96: ...unit CPU module 0 1 2 3 4 Power supply 5 6 7 Q68B type extension base unit 8 9 10 11 12 Power supply 13 14 15 d For 12 slot base unit 12 slots are occupied Q312B type main base unit CPU module 0 1 2 3 4 Power supply 5 6 7 8 9 10 11 Q612B type extension base unit 12 13 14 15 16 Power supply 17 18 19 20 21 22 23 ...

Page 97: ...base unit Among the designated slots those after the slots occupied by the installed base unit will be empty slots For example when 8 slots are designated for a 5 slot base unit 3 slots will be empty slots Q35B type main base unit 0 1 2 3 4 Three slots are occupied 5 6 7 Empty Power supply Empty Empty CPU module The number of points for the empty slots is the one designated at the I O assignment t...

Page 98: ...does not use the designated model name It is used as a user s memo or for parameter printing c Increase cable name Designate the model name of the extension cable being used with 16 or less characters High Performance model QCPU does not use the designated model name It is used as a user s memo or for parameter printing d Points Used with High Performance model QCPU Select the number of points for...

Page 99: ...I O numbers are expressed as hexadecimal When using 16 point I O modules I O numbers are consecutively assigned to the slots having 0 to F 16 points as follows The module mounted in the base unit assigns the following For the input module X is assigned at the beginning of the I O number For the output module Y is assigned at the beginning of the I O number CPU module 16 input points X 0 0 0 X 0 1 ...

Page 100: ...U in the main base unit 3 Order of I O number assignment for extension base units The I O numbers for extension base units continue from the last number of the I O number of the main base unit The I O numbers are assigned to the extension base units from left I O 0 to right consecutively in the order in which the setting connectors of the extension base unit are set 4 I O numbers of each slot Each...

Page 101: ...age s extension base unit continue from the last slot number of the 1st stage s extension base unit 2 Q65B 5 slots occupied 16 points Input module Input module Input module Output module Output module 16 points 32 points 16 points 64 points Power supply module Intelligent function module Intelligent function module Intelligent function module Output module Empty 32 points 32 points 32 points 16 po...

Page 102: ...ules then numbers above X Y400 can be used by the remote station However the I O numbers for remote stations should be set in consideration of additions to the main base unit and extension base units I O modules and intelligent function modules For example if 1024 points from X Y0 to X Y3FF are being used by the main base unit and extension base units and 256 points from X Y400 to X Y4FF are to be...

Page 103: ...mbers each module s I O number of base units can be set to program I O number 4 Setting the input response time of input modules and interrupt modules I O response time To match the input response time of the input modules and interrupt modules to the system select Type at the I O assignment tab screen in advance For details see Section 7 7 5 Setting the switch of intelligent function modules To s...

Page 104: ...ot No and the ordinal position of the slot in the base unit If the base unit is not designated in Detail mode the stage number of the base unit is shown as and the ordinal number of a slot is counted from slot 0 of the main base unit b Type For High Performance model QCPU Select the type of module being mounted from the followings Empty Empty slot Input Input module Hi Input Q Series high speed mo...

Page 105: ... not designated for a slot the I O number continuing from the last number of the currently designated slot is assigned 2 Avoid the I O number designation of each slot from overlapping the I O numbers assigned by High Performance model QCPU An error SP UNIT LAY ERR occurs when the I O numbers overlap 2 Slot status after I O assignment When the I O number is assigned to a slot the assigned I O numbe...

Page 106: ...points are the same Actually installed module I O assignment Result Input module Output Empty Empty Output module Input Empty Empty Input module output module Intelligent Error SP UNIT LAY ERR Empty Empty Intelligent function module Input output Error SP UNIT LAY ERR Empty slot Intelligent No error occurs d Be sure to assign the I O numbers so that the last I O number is within the range of FFFH o...

Page 107: ... 14 15 F0 10F 110 12F 130 14F 150 16F 170 17F Y180 Y19F Y1A0 Y1BF Y1C0 Y1DF 1 5 6 7 X00 X1F X20 X3F X40 X5F 60 6F Y70 Y8F Y90 YAF YB0 YCF YD0 YEF Power supply module Input module Input module Input module Output module Output module Output module Output module Empty 32 points 32 points 32 points 16 points 32 points 32 points 32 points 32 points Power supply module Intelligent function module Intel...

Page 108: ... 160 17F 180 18F Y190 Y1AF Y1B0 Y1CF Y1D0 Y1EF 1 5 6 7 X00 X1F X20 X3F X40 X5F 60 7F Y80 Y9F YA0 YBF YC0 YDF YE0 YFF Power supply module 32 points Input module Input module Input module Output module Empty 32 points 32 points 32 points 32 points Output module Output module 32 points 32 points Output module 32 points IN OUT Power supply module Intelligent function module Intelligent function module...

Page 109: ...15 F0 10F 110 12F 130 14F 150 16F 170 17F Y180 Y19F Y1A0 Y1BF Y1C0 Y1DF 1 5 6 7 X00 X1F X20 X3F X40 X5F 60 6F Y70 Y8F Y90 YAF YB0 YCF YD0 YEF IN OUT Power supply module Intelligent function module Intelligent function module Intelligent function module Empty 32 points 32 points 32 points 32 points 16 points Power supply module 32 points Input module Input module Input module Output module Output m...

Page 110: ...0 Y1DF 1 5 6 7 X00 X1F X20 X3F X40 X5F X200 X21F Y70 Y8F Y90 YAF YB0 YCF YD0 YEF Power supply module 32 points Input module Input module Input module Output module Output module 32 points 32 points 32 points 32 points Output module Output module 32 points 32 points Input module 32 points IN OUT Power supply module Intelligent function module Intelligent function module Output module Output module ...

Page 111: ...5 19 5 19 MELSEC Q 5 ASSIGNMENT OF I O NUMBERS MEMO ...

Page 112: ...is impossible to set and use the same extension stage number with two or more extension base units 2 High Performance model QCPU file management The use of different file and extension names permits multiple files to be stored in the High Performance model QCPU Because the High Performance model QCPU can also process a given program as one file programs created can be managed individually accordin...

Page 113: ...n the file was written in the High Performance model QCPU by GX Developer is automatically appended to the file name 2 The following Windows reserved words cannot be used for a file name COM1 to COM9 LPT1 to LPT9 AUX CON PRN NUL CLOCK b Date time The date time when the file was written from GX Developer to the High Performance model QCPU is indicated The set date and time indicate the GX Developer...

Page 114: ...sters in the standard RAM will enable high speed access as is the case with data registers d Memory card A memory card can be connected to a memory card interface of the High Performance model QCPU This allows the read write of data The High Performance model QCPU supports three types of memory cards SRAM card Flash card and ATA card 1 The SRAM card allows the write read of programs through a sequ...

Page 115: ...n be written by operating from the GX Developer Device comments cannot be used in an instruction of a sequence program 3 The read from a sequence program requires several scans 4 A sequence program allows the read only No data can be written through access from a sequence program 5 A standard RAM hold a single file 6 Data can be written or read with the following instructions S FREAD allows the ba...

Page 116: ...her to format a memory Q02CPU Q02HCPU Q06HCPU Q12HCPU Q25HCPU Whether to Format Standard RAM 64 kbyte 128 kbyte 1 256 kbyte 1 2 Program memory 28 k steps 112 kbyte 28 k steps 112 kbyte 60 k steps 240 kbyte 124 k steps 496 kbyte 252 k steps 1008 kbyte 2 Standard ROM 112 kbyte 112 kbyte 240 kbyte 496 kbyte 1008 kbyte 3 SRAM card Q2MEM 1MBS 1 Mbyte Q2MEM 2MBS 2 Mbyte Required Use the GX Developer or ...

Page 117: ...r details on the formatting procedure by GX Developer refer to GX Developer manuals POINT 1 Before using the High Performance model QCPU for the first time the program memory must be formatted by GX Developer For details on the formatting procedure by GX Developer refer to GX Developer manuals 2 Programs are stored in the program memories in 1 k step units 2 Data Storage Data on parameters and pro...

Page 118: ...for the user setting system area System area User files Parameters programs etc 0 to 15k steps Unit of 1k step Memory capacity after formatting 2 System area setting If RS 232 and USB interfaces are connected to GX Developer the system area user setting data is used for registering monitor data from the GX Developer connected to serial communication module The allocation of space for system and us...

Page 119: ...in a standard ROM must be read out and copied into the program memory at first There read through and modify it as necessary Then write the modified data back into a standard ROM at a time Please note that an error may occur if data stored in the standard ROM is used in a sequence program with data being written in the standard ROM 2 For details on the formatting procedure by GX Developer refer to...

Page 120: ...s cannot be written into a standard RAM 3 Format a Formatting To format a standard RAM choose Online Format PLC memory and then select Standard RAM in the Target memory list box See Section 6 2 for the PLC Memory Format dialog box b Memory capacity after formatted Table 6 3 shows the memory capacity of a formatted standard RAM Table 6 3 Memory Capacity Number of Files Stored CPU Type Serial No Num...

Page 121: ...mber whose upper five digits are 02091 or earlier POINT When specifying file registers using the serial access method ZR with commands that access the standard RAM on 02092 and subsequent High Performance model QCPUs the amount of time required for processing each command from 02091 and previous High Performance model QCPUs will be prolonged QnCPU Average 0 65µs QnHCPU Average 1 1µs The processing...

Page 122: ...tten on the Flash card 3 Programs are stored in the memory card in 512 byte 128 steps step units 2 Stored Data A memory card holds parameter and program data See Section 6 1 for the types of data stored in a memory card 3 Format a Formatting To format a memory card choose Online Format PLC memory and then select Memory card RAM or Memory card ROM in the Target memory list box See Section 6 2 for t...

Page 123: ...k to 60 seconds or longer Shorter time check may cause a time out on the GX Developer side To execute the Write the program memory to ROM function via the CC Link network by operating from a GX Developer at a local station set the length of CC Link s CPU monitoring time SW0A to 60 seconds or longer The default is 90 seconds Use the default value when making the setting 2 Write to PLC Flash ROM a T...

Page 124: ...igh Performance model QCPU enters into STOP status 1 The file registers of the Flash card is used in a sequence program 2 The file registers are used in a sequence program by setting the file register to set not to use in the PLC parameter If the Write to PLC Flash ROM function is executed when the High Performance model QCPU is in RUN status an error may occur and the High Performance model QCPU ...

Page 125: ...tandard ROM moves the memory card in which the parameters and the changed programs are written to the High Performance model QCPU so that they are written into the standard ROM from the memory card Automatic write to standard ROM is available with a combination of the High Performance model QCPU with the upper five digits of its serial No as 02092 or later and GX Developer Version 6 or later If th...

Page 126: ...ry card that contains the parameters and programs to be booted onto the High Performance model QCPU 3 Set the parameter valid drive to the mounted memory card with the CPU s dip switches as follows When a SRAM card is mounted SW2 ON SW3 OFF When a Flash ATA card is mounted SW2 OFF SW3 ON 4 Switch on the power supply to the PLC Boot the file specified with the parameter to the program memory from t...

Page 127: ...is exceeded b It is possible to select whether to perform the boot after the program memory has been cleared or perform the boot without clearing the program memory when booting from the memory card to the program memory Performing the boot after the program memory has been cleared when Automatic write to standard ROM prevents the program memory from overflowing during the boot c The Auto Download...

Page 128: ... reset 2 Preparation for Boot Run Perform the following steps in preparation for boot run a Create a program using GX Developer Create a program used for the boot run b Select a boot file using GX Developer Select a boot file at the Boot file tab screen in the PLC Parameter dialog box c Make the High Performance model QCPU hardware setting Set High Performance model QCPU Dip switches to specify a ...

Page 129: ...ons for Executing Programs in the Standard ROM Memory Card a For boot run store parameters PLC parameters of the boot file setting in a standard RAM or memory card If parameters are stored in a program memory and a parameter valid drive is set to Program Memory the boot file setting made in the PLC Parameter dialog box is ignored As a result a boot run is not performed when power is turned on or w...

Page 130: ... of the High Performance model QCPU the boot operation mode is selected Cancel the boot operation mode with the following procedure 1 Write parameters in which no boot file settings are made into the program memory 2 Using the DIP switch of the CPU module set program memory for the valid drive setting DIP switch setting SW2 OFF SW3 OFF 3 Turn off and on the PLC or reset the CPU module After the pr...

Page 131: ...Execution program The created program is stored in this area 1 step is 4 bytes 3 Memory allocated for Write during RUN This area is used when write during RUN that write during RUN increases the number of steps is executed from GX Developer Default value is set to 500 steps 2000 bytes The number of memory allocated for Write during RUN can be changed using the online write to PLC program The numbe...

Page 132: ...le header is fixed at 34 steps Executed program File header 491 steps 34 steps Display on GX Developer 34 steps 491 steps 525 steps Status of File on GX Developer However when the above program is written to the High Performance model QCPU it occupies 2k steps on the High Performance model QCPU The reason is as shown below Steps secured for write during RUN File header Executed program 34 steps 50...

Page 133: ...rite the program memory to ROM Write a batch of files from the program memory to the standard ROM or Flash card Write to PLC Flash ROM Write a batch of files from GX Developer to the standard ROM or Flash card Delete PLC data A file stored in memory is deleted Format PLC memory Memory formatting is executed Arrange PLC memory Memory files which are no longer contiguous are re organized to make the...

Page 134: ...the PLOAD instruction Files stored in the memory card will not be lost unless the memory card is removed from the High Performance model QCPU while the power is OFF POINT If the above operations are done the half processed data will be stored in the High Performance model QCPU internal memory and will be restored when power is switched ON again A battery backup is required in order to save interna...

Page 135: ...maximum 251 units increased Sequence program 136 4 Number of steps Device comment 74 Total of comment data size of each device Comment data size of a device 10 10250 a 40 b a quotient of Number of device points 256 b remainder of Number of device points 256 Device init 66 44 n 2 Total number of device points specified in the device initial value setting n specified number of device initial values ...

Page 136: ...aders and created program steps See Section 6 8 2 Writing conditions a Parameter Default setting 564 bytes b Secured writing steps during RUN Default setting 500 steps 2000 bytes 3 File memory capacity calculations File name File capacity units bytes Memory capacity 3 PARAM QPA 564 4 096 bytes 1 k steps Sequence program capacity 20 000 Secured writing steps during RUN 2 000 MAIN QPG Total 22 000 2...

Page 137: ...nction monitors and or tests the local devices of the designated program using the GX Developer Section 7 9 2 Turn ON OFF external I O This function forcibly turns the external I O of the CPU module on or off from the GX Developer Section 7 9 3 Write during RUN This function writes programs when the CPU module is in the RUN status Section 7 10 Measure execution time This function displays the proc...

Page 138: ...nstant rate even if the sequence program execution time varies Scan time when constant scan is not used END 5ms Sequence program 0 END 0 END 0 END 0 END processing 6ms 5ms Scan time when constant scan setting is set to 7 ms END 5ms Sequence program 0 END 0 END processing 2ms Wait time 6ms END 0 1ms 5ms END 0 2ms 7ms 7ms 7ms Scan time when constant scan is set to 10 ms during multiple program execu...

Page 139: ...et time shorter than the WDT set time WDT Set Time Constant Scan Set Time Sequence Program maximum Scan Time If the sequence program scan time is longer than the constant scan set time the High Performance model QCPU detects PRG TIME OVER an error code 5010 the sequence program is executed with the scan time by ignoring the constant scan 0 1 2 3 4 1 2 3 4 0 0 1 END 0 END 2 3 4 1 2 3 4 0 END 0 END ...

Page 140: ...rogram interrupt program fixed scan execution type program 2 Wait time is 0 5 ms when a low speed execution type program is used If the maximum processing time for one instruction in a low speed execution type program is 0 5 ms the remaining portion of constant scan time is the same as described in 1 If the maximum processing time exceeds 0 5 ms constant scan delays for an excessive duration 3 Int...

Page 141: ...tch can be used to continue control by maintaining the production quantity defect count and address even when there is a momentary power failure for more than the permissible amount of time c The following devices can use the latch function The default latch range is only the latch relay 1 Latch relay L 2 Link relay B 3 Annunciator F 4 Edge relay V 5 Timer T 6 Retentive timer ST 7 Counter C 8 Data...

Page 142: ...ng file registers 4 Precautions a Even if the device has been latch specified it will not be latched the when the local device or the device initialization is specified b The device details of the latch range are maintained with the battery Q6BAT attached to the High Performance model QCPU 1 The battery is necessary to latch the device if ROM operation is performed using the sequence program that ...

Page 143: ...Default After transition from STOP to RUN the output Y status prior to STOP is output then the program is executed a Output Y status prior to STOP is output After the output Y status before the STOP status is output the sequence program calculations are performed b Output is cleared Clears all output Y and outputs the output Y after executing the sequence program calculations STOP status to RUN st...

Page 144: ...be set at the PLC System tab screen in the PLC Parameter dialog box Output mode setting at STOP to RUN 3 Precaution If an output Y is forcefully turned ON with the High Performance model QCPU in the STOP status it will not remain in the ON status even if the STOP status is switched to the RUN status The output status is effected as set for Output mode at STOP to RUN at the PLC System tab screen ...

Page 145: ...for longer than the permitted time occurs b Clock Data The following table lists the time data that are used for the High Performance model QCPU clock element Data Name Contents Year Four digits in AD Countable from 1980 to 2079 Month 1 to 12 Day 1 to 31 Automatic leap year calculation Hour 0 to 23 24 hours Minute 0 to 59 Second 0 to 59 0 Sunday 1 Monday 2 Tuesday 3 Wednesday 4 Thursday 5 Friday D...

Page 146: ... use the time data read instruction DATERD from the program The figure below shows an example of a program used to read the clock data with the DATERD instruction and then store it in D10 to D16 DATERD D10 X1 The time data is read and then stored in D10 to D16 Read request Refer to the QCPU Q mode QnACPU Programming Manual Common instructions for the details on the DATERD instruction REMARK 1 Time...

Page 147: ...f Section 7 5 is written to the clock element correct clock operation is unavailable Example Writing to clock element CPU module operation status February 30 Executed When DATEWR instruction is executed OPERATION ERROR Error code 4100 When SM210 is on SM211 is on 32 of month 13 Not executed Error is not detected 4 Accuracy of Clock Data The accuracy of the clock function differs with the ambient t...

Page 148: ...used as the example to describe the intelligent function module 7 6 1 Remote RUN STOP 1 What is Remote RUN STOP a The remote RUN STOP performs RUN STOP of the High Performance model QCPU externally with the CPU module RUN STOP switch at RUN b Using remote RUN STOP for the following remote operations are useful 1 When the High Performance model QCPU is at a position out of reach 2 When performing R...

Page 149: ...g 7 4 Time Chart for RUN STOP with Remote RUN Contact b Method with GX Developer serial communication module etc High Performance model QCPU RUN STOP can be performed by the remote RUN STOP operation from the GX Developer serial communication module etc The GX Developer operation is performed with on line remote operations The serial communication module and Ethernet interface module are controlle...

Page 150: ...t the High Performance model QCPU to RUN status from STOP status again perform the remote RUN from the external factor remote RUN contact GX Developer serial communication module etc from which the remote STOP was performed REMARK The RUN STOP status is described below RUN Status Status in which the calculations are repeatedly executed from step 0 to the END FEND instruction in the sequence progra...

Page 151: ...ers to set output retention 2 Method with Remote PAUSE There are two ways to use remote PAUSE a Method with remote PAUSE Contact The remote PUASE contact is set at the PLC system tab screen in the PLC Parameter dialog box of GX Developer The device can be set in the range of input X0 to 1FFF 1 The PAUSE status contact SM204 is turned on when the END processing is executed for the scan with both re...

Page 152: ...cepted the PAUSE status contact SM204 is turned on When the scan after the PAUSE status contact is turned on is executed to the END process it enters the PAUSE status and stops the calculations 2 When the remote RUN command is received the sequence program calculations are performed again from step 0 Remote PAUSE command OFF 0 END PAUSE status 0 END 0 END 0 Remote RUN command SM204 OFF ON RUN PAUS...

Page 153: ... to arrange the STOP status 2 Remote RESET Method The remote RESET can only be performed from GX Developer or by operating serial communication module To perform the remote RESET follow the following steps a At the PLC system tab screen in the PLC Parameter dialog box check the Allow check box at the Remote reset section and then write parameters to the High Performance model QCPU Allow the Remote...

Page 154: ...enters into the RUN status d Take care that Remote RESET does not reset High Performance model QCPU if an error occurs in the High Performance model QCPU due to noise If Remote RESET does not reset use the RESET L CLR switch to reset or turn the PLC off POINT 1 If Remote RESET is executed when the High Performance model QCPU is stopped due to an error the High Performance model QCPU enters the ope...

Page 155: ... Performance model QCPU to the Latch Clear status 1 The GX Developer operations are performed by on line remote operation 2 The serial communication module and Ethernet interface module are controlled by commands complying with the MC protocol For details of the MC protocol refer to the following manual Q Corresponding MELSEC Communication Protocol Reference Manual c To return the High Performance...

Page 156: ... box 4 RESET or LATCH CLEAR can be performed if the High Performance model QCPU changed to the STOP status by a remote operation 5 This includes a situation where the High Performance model QCPU is stopped due to error 2 Remote Operations from the Same GX Developers When remote operations are performed from the same GX Developer the status of the remote operation that is executed last will be effe...

Page 157: ...n in the PLC Parameter dialog box specify the desired input response time Select Input in the Type column of a slot for which to specify the desired input response time Select Input Select Detailed setting Select I O response time 3 Reactions a Higher input response time may result in response to inputs being influenced by noise Set the desired input response time by taking into consideration the ...

Page 158: ...onse time is set at the I O assigment tab screen in the PLC Parameter dialog box Select Hi input among the slot types for which the input response time is to be set Select Hi input Select Detailed setting Select I O response time 3 Precautions a The system will be adversely affected by noise etc when the input response time is set to high speed Set the input response time in consideration of the o...

Page 159: ...esponse time is to be set Select Interrupt Select Detailed settings Select Input response time 3 Precautions a The system will be adversely affected by noise etc when the input response time is set to high speed Set the input response time in consideration of the operating environment b The input response time cannot be amended for the A1SI61 interruption module that supports the AnS Series No pro...

Page 160: ...tion module Select Intelli Select Switch Setting Designate the contents of the intelligent function module switch 3 Precautions a Do not apply the switch setting for an intelligent function module to an AnS Series corresponding special function module If the switch setting for an intelligent function module is specified for an AnS Series corresponding special function module an error SP PARA ERROR...

Page 161: ...ion of multiple programs makes it possible to monitor local device data 7 9 1 Monitor condition setting 1 Setting monitor execution conditions when monitoring circuits Choose Online Monitor Monitor condition to open the Monitor Condition dialog box The following shows an example in which to start a monitoring operation at the leading edge of Y70 Select when monitoring by setting the contents of th...

Page 162: ...0 3 If the beginning of a ladder block not at Step 0 is specified in Step No as a detailed condition monitor data is collected when the execution status of the instruction immediately before execution becomes the specified status If Step No 2 ON is specified in the following ladder monitor data is collected when OUT Y10 turns ON 0 Y10 X0 0 LD X0 1 OUT Y10 2 LD X1 3 OUT Y11 Y11 X1 2 b When only Dev...

Page 163: ...00 100 100 M0 Step No 2 Monitor Stop Condition Set Up Choose Online Monitor Monitor stop condition to open the Monitor Stop Condition dialog box The following shows an example of stopping a monitoring operation at the leading edge of Y71 a When Step No is specified 1 Monitoring is stopped when the status at execution of the specified step becomes as specified 2 The specification method for the exe...

Page 164: ...telligent function module the scan time takes longer as well as when executing the FROM TO instruction e Multiple users can perform monitoring at the same time When multiple users are performing monitoring at the same time take note of the following High speed monitoring can be performed by increasing 1k step in the system area for other station s monitor file when formatting of program memory Up ...

Page 165: ...ng A B Monitor Device D0 D100 When local devices are specified D0 in Program C is monitored D100 is monitored after Program C is executed When local devices are not specified D0 in the displayed program is monitored D100 is monitored after the displayed program is executed If the local device monitor setting is made and Program B is displayed for example this makes it possible to monitor the local...

Page 166: ...cautions a It is only a single program that local devices can be monitored or tested by operating from a single GX Developer Local devices in multiple programs cannot be monitored or tested by operating from a single GX Developer b It is a maximum of 16 programs that local devices can be monitored or tested by operating from multiple GX Developers connected to a RS 232 serial communication module ...

Page 167: ...operations in the enforced ON status Outputs ON externally regardless of the results of sequence program operations During enforced OFF Performs sequence program operations in the enforced OFF status Outputs OFF externally regardless of the results of sequence program operations The operations when enforced ON OFF is performed are shown in the diagram below Output enforced ON OFF operations Output...

Page 168: ...dules mounted on the base unit Assumes the ON OFF status received from the module Input of High Performance model QCPUs to be refreshed from LX of MELSECNET H module Assumes the refreshed ON OFF status from MELSECNET H Input of High Performance model QCPUs to be refreshed from RX of CC Link Assumes the refreshed ON OFF status from CC Link Input Input other than above outside of the refresh range M...

Page 169: ...mmand f A total of thirty two devices can be registered for enforced ON and OFF g Sequence program operations take precedence when used with an output Y contact h The enforced ON OFF and cancelled status including those that are not set up can be confirmed with GX Developer Confirmation is also allowed with the MODE judgment LED when at least one device is registered the MODE LED will flicker i It...

Page 170: ...iptions of the fields to set up are provided below No Name of setup field Function description 1 Device Enter the I O number for which enforced ON OFF is to be set or for which enforced ON OFF is to be cancelled 2 Registration status displayed area Displays the registration status of registered enforced input and output 3 Load registration status Displays the registration status loaded from CPU mo...

Page 171: ... data in the circuit mode during RUN Status a Writing data in the circuit mode during RUN is a function to write a program during the High Performance model QCPU RUN status b The program can be changed without stopping the process in High Performance model QCPU program by performing writing data in the circuit mode during RUN status X0 X2 X1 Y30 X3 X4 X5 SET M10 END GX Developer c Writing program ...

Page 172: ...omplete Also the low speed execution is stopped temporarily during a RUN write Scan execution type program step 0 to END 1 Scan 1 Scan 1 Scan 1 Scan Low speed execution type program step 201 to 320 Low speed execution type program step 321 to END Low speed execution type program step 0 to 120 Low speed execution type program step 0 to 200 1 2 3 4 Scan execution type program step 0 to END Scan exec...

Page 173: ...p for Write During RUN CPU Type If Not Changed If Assigned Again QnCPU max 2 ms max 30 ms QnHCPU max 1 ms max 90 ms f High Performance model QCPU does not work correctly if the following instructions are written during RUN write 1 Trailing edge instruction If the execution conditions of the following trailing edge instructions are not arranged upon completion of writing the trailing edge instructi...

Page 174: ...telligent function module parameter Program Device comment Device initial value File register Local device Debug data Failure history data PLC user data Writable data Unwritable data Writable data if access is not being made in sequence program Personal computer GX Developer Program file A Writing of program file A POINT The file write during RUN allows writing three types of files Program program...

Page 175: ... in a program memory max 80 ms max 300 ms When space is available in a program memory max 80 ms max 300 ms When space is available in a memory card except ATA card max 120 ms max 570 ms Please note that scan tame is extended for 1 25 seconds at 30 k step when an ATA card is in use c Please note that no access can be made from an instruction in a sequence program while a batch of files is written w...

Page 176: ...ections 7 11 1 to 7 11 3 Program monitor list Interrupt program monitor list Scan time measurement 7 11 1 Program monitor list 1 What is Program Monitor List a This is a function to display the processing time of the program being executed b The scan time number of times executed and processing time by item can be displayed for each program 2 Using the Program Monitor List a Choose Online Monitor ...

Page 177: ...dicates the total execution time of a low speed execution type program when making the setting for the execution time of a low speed execution type program or constant scan time 4 Constant waiting The constant scan waiting time is displayed when setting the constant scan time However when the low speed execution type program execution time is set as well this value is 0 000 ms c Each Program Execu...

Page 178: ... 1 2 1 Program name Only the program that is set at the Program tab screen in PLC Parameter dialog box can be selected It is not allowed to enter a program name freely 2 Startup mode A stand by type program for Scan execution Low speed execution or Fixed scan execution can be set Startup mode defaults to the value that was set by choosing PLC Parameter Program ms or s can be selected as the unit ...

Page 179: ...ext scan The program is put in the standby status at and after the next scan This operation is the same as performed when the POFF instruction is executed Executing After stop output stop for the standby program stops the program after one scan OFF is executed as scan execution For this reason Execute count is also increased by 1 Execute count is also increased by 1 if an error occurs in the RET I...

Page 180: ... Online Monitor Interrupt program monitor list The Interrupt Program Monitor List dialog box appears on screen The following shows an execution example of the interrupt program monitor list b a a Execute count The number of times the interrupt program was executed is displayed This function starts counting the number when High Performance model QCPU is in RUN status When the number reaches 65536 t...

Page 181: ...rrupt program can be measured as well d The time includes the time required for processing sub routines when the sub routine CALL command is within the range of scan time measurement The amount of time required for executing interruption programs and fixed scan execution type programs is all added to this Main program Sub routine program Measurement range Measurement range 2 Measuring Scan Time To...

Page 182: ...rt button 3 Precautions a Set the Measurement limit so that the value of Start step is larger than that of End step b The scan time to skip to another program file cannot be measured c If the measurement time is less than 0 100 ms 0 000 ms is displayed d If a measurement range is specified between the FOR instruction and the NEXT instruction scan time will show the execution time of making a measu...

Page 183: ...ling trace file stores the trace condition data and trace execution data necessary to perform the sampling trace When trace is started by using GX Developer the trace is performed as many times as specified The sampling trace area is 60 kbyte The number of traces can be obtained by dividing 60 kbyte by the number of bytes specified as a device The experssion is Number of Bit Devices 8 2 Number of ...

Page 184: ...ce POINT Device details are read under trigger conditions specified in the trigger point setting Sampling is performed for each scan Before the sampling is finished by a trigger operation of a peripheral device data is sampled twice because the sampling timing is the same as that of trigger conditions Data when trigger condition is met Sampling trace data ...

Page 185: ...g turns on SM802 indicates whether the sampling trace is executed or not A trace from GX Developer starts SM801 is turned on 3 When a next trigger condition is satisfied SM804 after sampling trace trigger turns on SM804 indicates whether the trigger conditions are satisfied or not A trigger from GX Developer executed The TRACE instruction is executed SM803 is turned on 4 After the sampling trace i...

Page 186: ...gain trace is restarted SM800 Sampling trace ready SM801 Sampling trace start SM802 Sampling trace executing SM803 Sampling trace trigger SM804 After sampling trace trigger SM805 Sampling trace complete Clear the trace count Trigger execution When trace is interrupted from GX Developer the SM800 is also turned off SM801 OFF SM801 ON Trigger execution Trace complete Number of trace after trigger Nu...

Page 187: ...ce Device Setting Set the device to perform sampling trace at the Trace data tab screen in the Sampling trace dialog box 1 Bit Device Maximum of 50 bit devices can be set as follows X DX Y DY M L F SM V B SB T contact T coil ST contact ST coil C contact C coil J X J Y J B J SB BL S 2 Word Device Maximum of 50 word devices can be set as follows T current value ST current value C current value D SD ...

Page 188: ... No of traces a The No of times sets the number of times to execute the sampling trace from trace execution to trace complete b The After trigger number of times sets the number of times to executes the sampling trace from trigger execution to trace complete Trace start Trigger point Trace complete No of times Number of total times After trigger number of traces c The setting range for each number...

Page 189: ...vices Bit device number of digits specification Word device bit number specification 3 Trigger Point setup This sets the point to execute the trigger Select one from the following a At the time of TRACE order The time of execution of TRACE instruction is set as the trigger b At the time of trigger operation The trigger operation from GX Developer device is set as the trigger c Detailed setting The...

Page 190: ...tion Results storing dest and Trace condition can be set when Execute and Status is displayed 1 At the Operation section select one of the following Start trace The trace is started Starts to count the trace count Stop trace The trace is interrupted The total trace count and trace count after trigger are cleared When restarting trace select Start trace again Execute trigger Starts to count the tra...

Page 191: ...tion trace file registered in the High Performance model QCPU is registered in the SRAM card and latched As the condition data is stored in the trace file even if the power is off or the High Performance model QCPU is reset the sampling trace can be executed under registered trace conditions At power on reset of High Performance model QCPU latched trace information is cleared in the cases where Th...

Page 192: ...nce 2 Function Description The debug function combination for multiple users are as follows Functions to be executed later Functions being executed Monitor Write during RUN Execution time measurement Sampling trace Monitor Write during RUN Execution time measurement Sampling trace Can be performed at the same time However the detailed condition can only be set from one GX Developer In this case th...

Page 193: ...ory list box 3 At the Format Type section select Create a user setting system area so that its radio button is checked 4 Specify the desired k steps in the System Area text box b The follwing figure illustrates an example in which 1k step is specified in the System Area text box 1 A maximum of 15 k steps can be set in 1 k step modules as a system area Only 1 k step can correspond to one station mo...

Page 194: ...ite during RUN in advance and then select Relative step No by pointer so that its radio button is checked 2 Operation Procedure The multiple user RUN write operation is performed in the following procedures a Select Tool from Option menu and set After conversion writing behavior and Step No specification used in writing 1 2 1 Set Write during RUN while PLC is runnning in After conversion writing b...

Page 195: ...to be written during RUN Serial communication module P0 X0 X2 X1 Y30 P1 X3 X4 X5 SET M10 END Area after P1 in the processing program is written during RUN P0 X0 X2 X1 Y30 P1 X3 X4 X5 SET M10 END Area after P0 in the processing program is written during RUN Personal computer A GX Developer Personal computer B GX Developer 3 Precautions Precautions on write during RUN is the same as precautions on w...

Page 196: ...tch dog timer during the END processing 1 When the END FEND instruction is executed within the set value of the watch dog timer in the sequence program and the High Performance model QCPU is operating correctly the watch dog timer does not time out 2 When the scan time of a sequence program is extended due to the High Performance model QCPU hardware error or execution of interrupt program fixed sc...

Page 197: ... processing time WDT reset QCPU internal processing Scan execution type program A Fig 7 9 Watch dog Timer Reset REMARK Scan time is the time from when the High Performance model QCPU starts processing a sequence program at Step 0 until it restarts processing another sequence program with the same filename at Step 0 The scan time is not the same at every scan and differs depending on Whether the co...

Page 198: ... PLC diagnostics mode The failure history can be stored even when the power is shut off using the battery backup 3 High Performance model QCPU operation at the time of error detection a When an error is detected from the self diagnosis there are two types of modes that the High Performance model QCPU operation can change to 1 High Performance model QCPU calculation stop mode The calculation is sto...

Page 199: ...on module allocation error SP UNIT LAY ERR When the power is turned on when reset When switched from STOP to RUN Intelligent program execution error Default Stop 1 SP UNIT ERROR When the FROM TO instruction is executed Intelligent function module version error SP UNIT VER ERR When the power is turned on when reset No parameter MISSING PARA When the power is turned on when reset Boot error BOOT ERR...

Page 200: ... possible INST FORMAT ERR When an instruction is executed SFC program structure error SFCP CODE ERROR When switched from STOP to RUN SFC block structure error CAN T SET BL When switched from STOP to RUN SFC step structure error CAN T SET S When switched from STOP to RUN SFC syntax error SFCP FORMAT ERR When switched from STOP to RUN SFC operation check error Default Stop 1 SFCP OPE ERROR When an i...

Page 201: ...OPERATION ERROR SFCP OPE ERROR I36 SFCP EXE ERROR ICM OPE ERROR FILE OPE ERROR I38 PRG TIME OVER I39 CHK instruction Annunciator detect I40 to I47 Empty Errors that occur when the system can continue the drive mode where or continue is selected from continues stops I37 EXTEND INS ERR POINT 1 The interrupt pointers I32 to I39 is at an execution disable mode when the power is started or High Perform...

Page 202: ...r error cancellation When the CPU module is recovered by canceling the error the special relay special register and LED affected by the error are set to the status before the error occurred When the same error occurs after canceling the error it is logged again in the failure history c Cancellation of annunciator For the cancellation of the annunciator detected multiple times only the first detect...

Page 203: ...mory is trandferred to the history file 1 When the history count in the parameter history file is changed in the middle of operation 2 When a memory card which has a different history count from that set in the parameter is mounted d The storage area in the failure history file is as follows Storage area File in the set memory card Amount that can be stored Max 100 can be changed 1 1 When the numb...

Page 204: ...re as follows Item Description Control instruction High Performance model QCPU operation instruction by remote operation Remote RUN remote STOP etc Read Write display Program read write operations Write Operation related with write processing such as program writes the program and tests POINT The following functions set the PLC Parameter and High Performance model QCPU dip switches are performed e...

Page 205: ...d Defines or changes a password f Registration Condition 1 Write Protect Write operation is restricted by a password Reading is not allowed 2 Read Write protect Read Write operation is restricted by a password 3 Clear Password is cleared Sets password currently registered in Password POINT 1 Password protected files are limited to program files device comment files and device initial value files O...

Page 206: ...el QCPU will transmit the remote password to specified serial communication modules and Ethernet modules when the power supply to the sequence is switched on or the High Performance model QCPU is reset b Amending and canceling remote passwords It is possible to amend and cancel remote passwords by connecting the GX Developer to the relevant High Performance model QCPU Remote passwords set in the H...

Page 207: ...s up For example an outline of what will happen during remote password lock unlock processing with an Ethernet module is shown below Power supply GX Developer Ethernet The remote password is unlocked relesed and access to the QCPU is allows The remote password locking process is performed when the line is closed A check is run on the remote password The remote password is transmitted to QJ71E71 wh...

Page 208: ...e settings Start XY Module s head address setup 0000H to 0FE0H Detail Setup Not setup User s connection No User s connection No setup Connection No 1 to Connection No 16 Automatic open UDP port FTP communication port TCP IP GX Developer communication port TCP IP GX Developer communication port UDP IP System connection HTTP port Adds a check to the valid remote password port POINT Refer to the foll...

Page 209: ...e of a base unit main base or extension base 1 to 7 the number of slots base type the number of modules mounted on the base 1 The Base name field indicates the main base or extension base with power source It indicates the extension base even if a power source module is not installed on the extension base 2 The Base type field indicates the following abbreviations Q for Q33B Q35B Q38B Q312B Q for ...

Page 210: ... Overall Information section shows the number of base units used and the number of modules installed on the base e Base The Base section indicates the status of base units used and modules installed The Module column indicates the status of a module when the module is in an abnormal condition f PLC diagnostics This button is used to monitor the status of the High Performance model QCPU and an erro...

Page 211: ...t tab screen in the PLC Parameter dialog box the module s model will not be displayed when if a module has been mounted b Parameter status Enables the I O number the module type and the number of modules mounted for each of the slots on the selected base unit to be confirmed If the operation status shows 0 empty points and an allocation error is displayed it means that the PLC parameter s I O allo...

Page 212: ...tion Enables the number of base units in use and the number of modules mounted on the base units to be confirmed 2 Base information Enables the base name the number of slots the base type and the number of modules mounted onto the base for the selected base unit main base unit additional base units 1 to 7 to be confirmed g Product Information List Enables the individual information for mounted CPU...

Page 213: ...perations in order to illuminate the RUN LED after parameter writing Reset the system with the RESET L CLR switch Switch on the power to the PLC again When the RUN STOP switch has been set to RUN STOP RUN after the parameters have been amended the parameters related to intelligent function modules and other network parameters will not be reflected back ERR Indicates the CPU module error detection ...

Page 214: ...er information on error codes see the High Performance model QCPU Q Mode Users Manual Hardware Design Maintenance and Inspection SM202 When turned from OFF to ON the LED corresponding to each bit in the SD202 is turned off SD202 This specifies the LED to turn off Only USER LED and BOOT LED can be turned off 15 bit SD202 0 bit 8 4 1 0 1 0 BOOT LED USER LED 1 means turn off and 0 means leave on in t...

Page 215: ...When errors with the same priority level occur the error detected first is displayed The priority is set with the special registers SD207 to SD 209 in the following manner Priority order 4 to 15 12 Priority order 3 to 11 8 Priority order 2 to 7 4 Priority order 1 to 3 0 bit Factor number setting area SD207 15 SD207 4 3 2 1 0 bit to Factor number default value Hexadecimal Priority order 8 Priority ...

Page 216: ...monitoring time time up 6 6 CHK instruction 7 7 Annunciator 8 8 9 9 BATTERY ERR 10 A Clock data POINT 1 When leaving the LED turned off at the error described above set the factor number setting area each 4 bits which stores the factor number corresponding to SD207 to SD209 to 0 Example To leave the ERR LED off when a fuse shutoff error is detected set the factor number setting area to 0 where the...

Page 217: ...nction module buffer memories in the parameter set ranges before and after the execution of the high speed interrupt program High accuracy control e g accurate positioning detection is available with the PLC CPU alone END Main routine program Scan time 1ms Step 0 Interrupt cycle interval 0 2ms parameter setting I49 interrupt program Main routine program Waiting time High speed interrupt start X in...

Page 218: ...mpatible Upper 5 digits of serial No is 04012 or later Q02CPU Incompatible 2 Specifications of high speed interrupt function Item Description Remarks Interrupt cycle interval 0 2 to 1 0ms 0 1ms units Number of interrupt programs 1 Interrupt pointer I49 To set the high speed interrupt function choose PLC system System interrupt settings High speed interrupt setting on the PLC parameter screen 3 Det...

Page 219: ...terrupt settings High speed interrupt setting on the PLC parameter screen Set within the range 0 2 to 1 0ms Note the following when executing a high speed interrupt program 1 The high speed interrupt program is only executed as interrupt enable Refer to Section 7 20 3 3 for the items that delay high speed interrupt s start from interrupt disable 2 If the interrupt disable period continues longer t...

Page 220: ...at interrupt cycle intervals 1 To execute this function set High speed interrupt I49 fixed scan interval that was set in Section 7 20 1 and High speed I O regresh setting and High speed buffer transfer setting High speed I O refresh setting Set the X Y refresh ranges Choose here when setting the high speed buffer transfer ranges High speed buffer transfer setting Set the buffer memory transfer ran...

Page 221: ... for read and write respectively 1 Only multiples of 16 can be set for both the head device No and the number of transferred bits 2 Since the QA base cannot be connected the A QnA series intelligent function modules are not the target When the QA base is connected PARAMETER ERROR 3006 is detected PARAMETER ERROR 3006 is also detected if an error occurs in intelligent function module mounting check...

Page 222: ...rrupt end 22 s X input 1 Main base Time 0 14 total number of X points 0 65 number of settings 0 85 2 Extension base Time 0 21 total number of X points 0 65 number of settings 0 85 Calculation example 3 74 s when the module is mounted on the main base the number of settings is 1 and the number of X points is 16 Buffer memory read 1 Main base a 16 words or less Time 0 47 total number of transferred ...

Page 223: ...al number of transferred words 2 65 number of settings 0 95 b More than 16 words Time 1 15 total number of transferred words 0 95 Calculation example 4 54 s when the module is mounted on the main base the number of settings is 1 and the number of words is 2 Y output 1 Main base Time 0 13 total number of Y points 1 55 2 Extension base Time 0 2 total number of Y points 1 55 Calculation example 3 63 ...

Page 224: ...set cycle 6 Programming unit Programming unit is not available Response to instruction search will be slow or communication error may occur on programming unit side 7 SFC The following two SFC functions are not available 1 SFC transition monitor check function using SM90 to 99 SD90 to 99 2 Fixed time executed block execution function Functions given on the left are not available and are ignored 8 ...

Page 225: ... When Used 1 Device comment In high speed interrupt program device comment that is the same as program name is not saved restored Device comment in high speed interrupt program is overwritten 2 Index register In high speed interrupt sequence index register is not saved restored Index register in high speed interrupt program is overwritten 3 Bus access flag SM390 In high speed interrupt program bus...

Page 226: ...ction in the high speed interrupt program 3 Timers cannot be used in the high speed interrupt program 4 If the high speed interrupt program is executed during time measurement such as scan time or execution time measurement the high speed interrupt program running time is added to the measurement time Hence if the high speed interrupt program is executed the values to be stored into the following ...

Page 227: ...Module service interval time measured module Set the I O number of the module whose module service interval time will be measured Set the I O number of the peripheral device connected to the RS 232 or USB interface of the CPU module to FFFFH SD551 to SD552 Module service interval time Stores the service interval time from the module specified in SD550 when SM551 is turned on SD551 1ms units range ...

Page 228: ... Q 7 FUNCTION REMARK The module service interval indicates the time between a transient request such as monitor test program read write The access interval in cyclic communication from the network module is not stored ...

Page 229: ...hods enable the communication between High Performance model QCPU and intelligent function modules Initial setting or automatic refresh setting using GX Configurator Device initial value FROM TO instruction Intelligent function module device Instructions dedicated for intelligent function modules The following table shows the communication timing for the communication methods with intelligent func...

Page 230: ... the intelligent function module Moreover you can conduct the initial setting or automatic refresh setting without designating the buffer memory address of the intelligent function module 2 Setting using the GX Configurator This section describes the example to set the initial setting and automatic refresh setting of A D conversion module Q64AD a Initial setting The initial setting of Q64AD offers...

Page 231: ...8 1 2 Communication using device initial value 1 Device initial value The device initial value is used to designate the initial setting of the intelligent function module without using a program The designated device initial value is written from High Performance model QCPU to the intelligent function module when High Performance model QCPU is turned ON is reset or is switched from STOP to RUN 2 D...

Page 232: ...emory of the intelligent function module represented as a device of High Performance model QCPU in High Performance model QCPU programs It enables reading data stored in the buffer memory of the intelligent function module or enables writing data to the buffer memory of the intelligent function module 2 Difference from the FROM TO instruction The intelligent function module device can be handled a...

Page 233: ...he execution of the instruction dedicated for intelligent function modules is completed When the completion device turns ON another instruction dedicated for intelligent function modules can be executed to the same intelligent function module To use two or more instructions dedicated for intelligent function modules to one intelligent function module be sure to execute the next instruction dedicat...

Page 234: ...bi directional protocol Processing data reception with an interrupt program improves the data reception speed of High Performance model QCPU Main program The objective serial communication module reception Occurrence of interrupt Serial communication module data transmission Interrupt program execution Main program FEND BUFRCVS SM400 PLC CPU I 2 Setting an interrupt from the intelligent function m...

Page 235: ...le REMARK 1 Indicates whether the data of the device initial value is stored in High Performance model QCPU or in a special function module 2 Represents the internal memory of High Performance model QCPU or a memory card 3 Special represents a special function module 4 Represents the program using the intelligent function module device or the FROM TO instruction 8 3 1 Communication using device in...

Page 236: ...mory of the special function module represented as a device of High Performance model QCPU in High Performance model QCPU programs It enables reading data stored in the buffer memory of the special function module to be read or writing data to the buffer memory of the special function module 2 Difference from the FROM TO instruction The intelligent function module device can be handled as a device...

Page 237: ...8DAV A1S68DAI A1S68TD A1SD75P1 S3 A1SD75P2 S3 A1SD75P3 S3 A1SD75M1 A1SD75M2 A1SD75M3 b Special function modules which suspend processing of the FROM TO instruction 1 Even when the FROM TO instruction is executed the special function module continues its processing and suspends processing of the FROM TO instruction until the processing is completed As a result the scan time becomes longer by the pe...

Page 238: ... switch settings and the network parameters will be transmitted from the High Performance model QCPU to a specified intelligent function module in the following cases and will be validated within the intelligent function module When the power supply to the PLC is switched on When the CPU module is reset The PLC parameter s I O assignment switch settings and the network parameters will not be trans...

Page 239: ... Number of empty slots 1007H Designates the number of empty slot points in the main extension base units Interrupt counter start No Designates the interrupt counter first No Fixed scan interval 1008H Specifies time intervals at which to execute interrupt pointers I28 to I31 X input 100FH Y output 1010H Buffer read 1011H System interrupt settings High speed interrupt setting Buffer write 1012H Sets...

Page 240: ...s Section 5 6 1 No setting C0 to C22722 Counter setting points can be set up to 256 Section 10 2 11 I28 100 0 ms I29 40 0 ms I30 20 0 ms I31 10 0 ms 0 5 to 1000 ms 0 5 ms units Section 10 10 No setting I49 0 2 to 1 0 ms 0 1ms units Section 7 20 The high speed execution is disabled Enable Disable the high speed execution Section 4 1 3 Section 4 2 5 The start of an intelligent function module is syn...

Page 241: ...ory Device These settings designate the number of points for each device the latch range and the local device range Device point 2000H Designates the number of device points used Latch 1 range Latch clear key enabled 2001H Designates the latch range where the latch clear key is enabled Latch 2 range Latch clear key disabled 2002H Designates the latch range where the latch clear key is disabled Loc...

Page 242: ...range of 29 k words is available For one device Max 32 k points Total number for the bit devices Max 64 k points Section 10 1 Section 10 2 No setting Only 1 range is designated for each device of B F V T ST C D W Section 7 3 No setting Only 1 range is designated for each device of L B F V T ST C D W Section 7 3 No setting Only 1 range is designated for each device of M V T ST C D Section 10 13 1 N...

Page 243: ...r retained upon a stopping error of the control PLC H W error time PLC operation mode 404H Designates whether the control PLC continues operation or it is stopped upon a hardware error of the intelligent function module I O response time 405H Designates the response time of the input module high speed input module and I O mixture module Detailed setting Control PLC 406H Designates the control PLC ...

Page 244: ... 10 ms High speed input 0 2 ms Input I O mixture 1 ms 5 ms 10 ms 20 ms 70 ms High speed input 0 1 ms 0 2 ms 0 4 ms 0 6 ms 1 0 ms Section 7 7 PLC No 1 PLC No 1 PLC No 2 PLC No 3 No 4 Section 14 2 1 1 module 1 to 4 modules Section 14 2 1 Stop all PLCs upon error of PLC No n Stop or do not stop all PLCs upon an error of PLC No n Section 14 2 8 Do not permit inputs from outside group Permit or do not ...

Page 245: ...k parameters for MELSECNET H Ethernet setting 1 No of boards in module 9000H Starting I O No Network No Operational settings Initial settings Open settings Routing information MNET 10 routing information FTP Parameters E mail setting 9N00H Designates network parameters for Ethernet CC Link setting 2 No of boards in module C000H Remote input RX Remote output RY Remote register RWr Remote register R...

Page 246: ... 9 PARAMETER LIST Default Value Setting Range Reference Section No setting Refer to the Q Corresponding MELSECNET H manual No setting Refer to the Q Corresponding Ethernet manual No setting Refer to the CC Link manual ...

Page 247: ...T 10 mode Control station MELSECNET H mode Control station 2H MELSECNET 10 mode Normal station MELSECNET H mode Normal station 5H MELSECNET H Remote master AH MELSECNET H Stand by station 2 N and M indicate the following N Indicates the module number M Indicates the network type M Network Type 0H Master station 1H Local station 2H Standby master station ...

Page 248: ...FFF Section 10 2 7 Timer 1 2048 points T0 to T2047 Retentive timer 1 0 points ST0 to ST2047 Section 10 2 10 Counter 1 1024 points C0 to C1023 Section 10 2 11 Data register 12288 points D0 to D12287 Section 10 2 12 Link register 8192 points W0 to W1FFF Section 10 2 13 Internal user devices Word devices Link special register 1 2048 points SW0 to SW7FF Changeable within 29k words 3 Section 10 2 14 Fu...

Page 249: ... transition device 512 points TR0 to TR511 Section 10 11 2 Network No 256 points J1 to J255 Section 10 11 3 Other I O No U0 to UFF Unchangeable Section 10 11 4 Decimal constants K 2147483648 to K2147483647 Section 10 12 1 Hexadecimal constants H0 to HFFFFFFFF Section 10 12 2 Real number constants E 1 17549 38 to E 3 40282 38 Section 10 12 3 Constants Character string constants ABC and 123 Section ...

Page 250: ...ds for an internal user device range at the Device tab screen in the PLC Parameter dialog box The following gives more information a Setting range 1 The number of device points is designated in 16 point units 2 A maximum of 32 k points can be designated for one device The maximum total number of points for the internal relay latch relay anunciator edge relay link relay link special relay step rela...

Page 251: ...are calculated as 16 words Word device capacity D W total number of points 16 16 Word POINT 1 When an internal user device s number of usable points setting is changed the following files which were created under the previous setting cannot be used as they are The sequence program The SFC program After changing the setting the sequence program and SFC program must be read from the High Performance...

Page 252: ...n b If the input point is the Xn virtual relay inside the High Performance model QCPU the program uses the Xn s N O contact or N C contact LS2 PB1 X0 X1 XF PB16 XF X1 X0 Virtual relay Programmable controller Input ladder external device Program Figure 10 1 Inputs X c There are no restrictions on the number of Xn N O contacts and N C contacts used in a program provided the program capacity is not e...

Page 253: ...b Differences between refresh input and direct access input The direct access input accesses an input module directly when an instruction is executed which results in slower processing speed compared with the refresh input The direct access input is used only for inputting to the input module or the intelligent function module special function module mounted on the main base unit or extension base...

Page 254: ...t refresh before sequence program operation starts Direct access input Operation is based on the ON OFF data read from the input module X0 Operation is based on the ON OFF data read at the direct access input Figure 10 3 Refresh Input Direct Access Input POINT 1 When debugging a program an input X can be set to ON OFF as described below OUT Xn instruction ON OFF command X1 OUT X1 GX Developer test...

Page 255: ...n the number of output Yn N O contacts and N C contacts used in a program provided the program capacity is not exceeded M51 Load Programmable controller No restrictions on the quantity used Program Out ladder external device Y22 Y21 Y20 Y20 X0 X1 Y20 Y20 X3 X2 Figure 10 4 Output Y 2 Using outputs as internal relays M Y corresponding to the slots installed with input modules and empty slots can ser...

Page 256: ...y when an instruction is executed which realizes shorter external output time However it processes an instruction slower compared with the refresh output The direct access output is used only for outputting to the output module or the intelligent function module special function module mounted on the base unit or extension base unit The refresh and direct output differences are shown in Table 10 3...

Page 257: ...ram provided the program capacity is not exceded X0 M0 T0 Y20 X1 M0 M100 X2 M0 M2047 SET M0 K20 No restrictions on the quantity used M0 switches ON at X0 OFF to ON The internal relay M0 ON can only be used for internal High Performance model QCPU processing and cannot be output externally M0 ON OFF information is output from the output module to an external destination Figure 10 5 Internal Relay 2...

Page 258: ...annot be turned off even when the RESET L CLR switch remote latch clear is made for latch clear of it c There are no restrictions on the number of contacts N O contacts N C contacts used in the program provided the program capacity is not exceeded X0 L0 T0 Y20 X1 L0 L100 X2 L0 L2047 SET L0 K20 No restrictions on the quantity used L0 switches ON at X0 OFF to ON The latch relay L0 ON can only be use...

Page 259: ...are ON is stored here SD64 to SD79 Anunciator Nos are stored in the order in which they switched ON The same anunciator No is stored at SD62 and SD64 The anunciator No stored at SD62 is also registered in the fault history area c Using annunciators for a fault detection program an equipment fault or fault presence absence annunciator number can be checked by monitoring the special register SD62 to...

Page 260: ...e way as the internal relay Does not switch ON at SM62 and anunciator Nos are not stored at SD62 SD64 to SD79 b Processing at anunciator ON 1 Data stored at special registers SD62 to SD79 a Nos of anunciators which switched ON are stored in order at SD64 to SD79 b The anunciator No which was stored at SD64 is stored at SD62 c 1 is added to the SD63 value 0 0 0 0 0 0 0 SD62 SD63 SD64 SD65 SD66 SD67...

Page 261: ...re ON F0 K10 Display reset input F0 to F9 OFF program Fault detection program Annunciator ON program BKRSTP REMARK For details on the LEDR and BKRST instruction refer to the QCPU Q mode QnACPU Programming Manual Common Instructions b Processing at anunciator OFF 1 Special register SD62 to SD79 data operation at execution of LEDR instruction a Anunciator No stored at SD64 is deleted and anunciator ...

Page 262: ...1 50 0 0 0 0 50 2 50 25 0 0 0 50 3 50 25 2047 0 0 SET F50 SET F25 SET F2047 50 2 50 2047 0 0 0 RST F25 3 Processing by High Performance model QCPU If all SD64 to SD79 anunciator Nos are switched OFF the USER LED on the High Performance model QCPU front display is switched OFF POINT If an error occurs to continue operation with the higher priority over an anunciator when the anunciator is switched ...

Page 263: ...dge relays are used for detecting the leading edge OFF to ON in programs configured using index modification SM400 Ladder example X0Z1 1 V0Z1 1 SM400 Z1 M0Z1 K10 Z1 NEXT K0 FOR INC MOV Index register Z1 clear Repetition 10 times designation M0Z1 is turned ON 1 scan at leading edge of X0Z1 Increment Index Register Z1 1 Return to FOR instruction When Z1 0 X0 OFF V0 OFF M0 OFF ON ON ON 1 Scan Timing ...

Page 264: ...X0 B0 T0 Y20 X1 B0 B100 X2 B0 B1FFF SET B0 K20 No restrictions on the quantity used B0 switches ON at X0 OFF to ON The link relay B0 ON can only be used for internal QCPU processing and cannot be output externally B0 ON OFF information is output from the output module to an external destination Figure 10 7 Link Relay 2 Using link relays in the network system In order to use link relays in the netw...

Page 265: ...e such as the MELSECNET H Network Module Link special relays are assigned as shown below For 1st network module For 2nd network module For 3rd network module For 4th network module SB200 SB3FF SB400 SB5FF SB600 SB7FF SB0 SB1FF 512 points 512 points 512 points 512 points 2048 points REMARK For details on link special relays used at the QCPU refer to the QCPU Q mode QnACPU Programming Manual Common ...

Page 266: ...ng instruction format a device is assigned for a low speed retentive timer or high speed retentive timer The OUT T0 instruction is used to assign a device for a low speed retentive timer The OUTH T0 instruction is used to assign a device for a high speed retentive timer Low speed timers 1 Definition a Low speed timers are valid only while the coil is ON b The time measurement begins when the timer...

Page 267: ...ct switches OFF X0 H Ladder example When X0 switches ON the T200 coil switches ON and the contact switches ON 2 second later The high speed timer measures time in 10 ms units K200 T200 High speed timer display T200 coil OFF OFF OFF ON ON ON 2s Time chart X0 T200 contact 2 Measurement units a The default time measurement units setting for high speed timers is 10 ms b The time measurement units sett...

Page 268: ... example When X1 switches ON the ST0 contact is reset and the current value is cleared X0 ON time is measured as 20 seconds when the timer measures time in 100 ms units Retentive timer display T0 coil OFF OFF ON ON ON 15s Time chart X0 T0 present value OFF OFF 0 to 1 151 200 to 5s 0 Contact remains ON when coil switches Present value is saved when coil switches X1 T0 contact RST ST0 instruction 15...

Page 269: ...ion is executed the current value is added to the scan time measured at the END instruction If the timer coil is OFF when the OUT T instruction is executed the current value is not updated X0 T0 H Ladder example K8 QCPU s X0 2 1 1 1 2 1 1 2 1 2 3 2 3 2 3 2 3 5 0 2 2 5 2 7 7 3 10 OUT T0 END processing OUT T0 OUT T0 OUT T0 OUT T0 OUT T0 Input reading timing 1 scan Timer accuracy 1 scan time timer ti...

Page 270: ...OUT T instruction is skipped the timer current value will not be updated c Timers cannot be used in interrupt programs and fixed scan execution programs d If the timer set value is 0 the contact turnes ON when the OUT T instruction is executed e If the set value changes to a value which is higher than the current value following a timer time out the time out status will remain in effect and timer ...

Page 271: ...d the following counter processing occurs coil ON OFF current value update count value 1 and contact ON OFF Counter current value update and contact ON OFF processing are not performed at END processing Processing content Coil ON OFF Current value update Contact ON OFF X0 C0 K10 Ladder example Sequence program END OUT C0 END Processing at OUT C0 Instruction X0 OFF to ON b The current value update ...

Page 272: ...instruction X0 Ladder example RST C0 X0 OFF OFF ON Execution Counter reset timing END END END RST C0 RST C0 RST C0 Count value cleared contact OFF Count value cleared contact OFF Sequence program RST C0 instruction 4 Maximum counting speed The counter can count only when the input condition ON OFF time is longer than the execution interval of the corresponding OUT C instruction The maximum countin...

Page 273: ...e figure below shows a sample program in which M0 is switched ON after 10 interrupt inputs are performed In this example C300 is the interrupt counter No corresponding to I0 K10 C300 M0 3 Setting the interrupt counter a In order to use interrupt counters at first interrupt counter No setting must be designated at the PLC system tab screen in the PLC Parameter dialog box 256 points are then allocat...

Page 274: ...of sequence program instructions During interrupt program execution During execution of a fixed scan execution type program c The maximum counting speed of the interrupt timer is determined by the longest processing time of the items shown below Instruction with the longest processing time among the instructions used in the program Interrupt program processing time The processing time of a fixed s...

Page 275: ...its of data are stored at the data register No Dn designated in the sequence program and the higher 16 bits of data are stored in the designated register No 1 Dn 1 For example if register D12 is designated in the DMOV instruction the lower 16 bits are stored in D12 and the upper 16 bits are stored in D13 K500000 D12 DMOV D13 Upper 16 bits Lower 16 bits D12 Processing object D12 D13 Two data regist...

Page 276: ... instructions the data is stored in registers Wn and Wn 1 The lower 16 bits of data are stored in the link register No Wn designated in the sequence program and the higher 16 bits of data are stored in the designated register No 1 Wn 1 For example if link register W12 is designated in the DMOV instruction the lower 16 bits are stored in W12 and the upper 16 bits are stored in W13 K500000 W12 DMOV ...

Page 277: ...c data the link special registers serve as a tool for identifying the locations and causes of faults 2 Number of link special register points There are 2048 link special register points from SW0 to SW7FF The link special register points are assigned at the rate of 512 points per intelligent function module such as a MELSECNET H network module By default the following points are assigned for link r...

Page 278: ...es used for each sub routine program CALL source can be set the same sub routine program can be used without regard to other sub routine CALL sources 2 Types of function devices There are 3 function device types function input devices FX function output devices FY and function register devices FD a Function input devices FX These devices are used to designate inputs of ON OFF data to a sub routine...

Page 279: ... MOV R0 FD0 P0 The data is stored in one point D0 A two words instruction requires 2 words DMOV R0 FD0 CALLP P0 D0 P0 The data is stored in two points D0 and D1 The destination of 32 bit multiplication division operation requires 4 words CALLP P0 D0 D R0 R10 FD0 P0 The data is stored in four points D0 to D3 Valid devices cannot be used in a sub routine program that contains arguments If devices as...

Page 280: ...nter SM400 to SM499 d Scan information SM500 to SM599 e Memory card information SM600 to SM699 f Instruction related SM700 to SM799 g For debugging SM800 to SM899 h Latch area SM900 to SM999 i For A PLC SM1000 to SM1299 REMARK 1 For details on special relays which can be used by the High Performance model QCPU refer to Appendix 1 2 This takes effect only after you have turned on the Use special re...

Page 281: ...499 d Scan information SD500 to SD599 e Memory card information SD600 to SD699 f Instruction related SD700 to SD799 g For debugging SD800 to SD899 h Latch area SD900 to SD999 i For A PLC SD1000 to SD1299 j Fuse blown module SD1300 to SD1399 k Check of I O modules SD1400 to SD1499 REMARK 1 For details on special relays which can be used by the High Performance model QCPU refer to Appendix 2 2 This ...

Page 282: ... For link register 10 W10 of network No 2 the designation would be J2 W10 K100 J2 W10 MOVP Network modules at network No 2 W 0 W10 For a bit device X Y B SB digit designation is necessary Designation example J1 K1X0 J10 K4B0 2 Designation range Link direct device designations are allowed for all the link devices in network modules Device outside the range specified by the network refresh parameter...

Page 283: ...l QCPU W0 to W3F Network module LW0 to LW3F 3 When data is written to another station s writing range using a link direct device the data which is received from that station will replace the written data b Reading Reading by link direct device is allowed in the entire link device range of network modules POINT Only one network module capable of writing reading link direct devices can be used per n...

Page 284: ...tation method Link special register J SW0 or later SW0 or later Number of steps 2 steps 1 step Network module access range All network module link devices Refresh parameter designated range Access data guarantee range Word units 16 bits REMARK 1 For details on the MELSECNET H network system refer to the Q Corresponding MELSECNET H Network System Reference Manual 2 For details on network parameters...

Page 285: ...ddress are specified as shown below U2 G11 D0 BMOV Q64AD 12 13 CH 1 Digital output value 11 14 CH 2 Digital output value CH 3 Digital output value CH 4 Digital output value K4 2 Processing speed The processing speed for intelligent function module devices is a Reading or writing the buffer memory of the intelligent function module special function module is rather faster than the processing speed ...

Page 286: ...b15 b0 d If the index registers are used for 32 bit instructions the data is stored in registers Zn and Zn 1 The lower 16 bits of data are stored in the index register No Zn designated in the sequence program and the upper 16 bits of data are stored in the designated index register No 1 For example if register Z2 is designated in the DMOV instruction the lower 16 bits are stored in Z2 and the uppe...

Page 287: ... to a scan execution type program occurs the low speed execution type program s index register data is saved and the scan execution type program s index register data is restored Executed program Index register value Index register storage area Scan execution type program Switch ing Z0 1 Low speed execution type program Z0 3 Z0 0 Z0 0 Z0 1 Z0 0 Z0 1 Z0 0 Z0 1 Z0 3 Z0 1 Z0 3 Z0 6 Z0 3 Z0 6 Z0 3 Sav...

Page 288: ...d execution check box is OFF a When the scan low speed execution type program is switched to the interrupt fixed scan execution type program the scan low speed execution type program s index register value is first saved and is then transferred to the interrupt fixed scan execution type program b When the interrupt fixed scan execution type program is switched to the scan low speed execution type ...

Page 289: ...rupted Executed program Index register value Scan low speed execution type program Z0 1 Z0 0 Z0 0 Index register storage area For scan low speed execution type program Interrupt program Fixed scan execution type program Z0 1 to Z0 3 Z0 0 Reset Z0 0 Z0 3 Z0 0 Scan low speed execution type program For interrupt program Z0 is changed to 3 Switch ing Transf erred Transf erred c Before writing data to ...

Page 290: ...egisters Rn and Rn 1 The lower 16 bits of data are stored in the file register No Rn designated in the sequence program and the upper 16 bits of data are stored in the designated file register No 1 For example if file register R2 is designated in the DMOV instruction the lower 16 bits are stored in R2 and the upper 16 bits are stored in R3 D0 R2 DMOV R3 Upper 16 bits Lower 16 bits R2 Processing ob...

Page 291: ...mber of expandable blocks depends on the size of programs or device comments stored on a memory card REMARK For details regarding the High Performance model QCPU memory cards see Section 6 1 10 7 2 Differences in memory card access method by memory card type File registers are stored in three types of memories standard RAM SRAM card and Flash card Note that the file register access method differs ...

Page 292: ...eps Start Setting of file register to be used PLC file tab screen at PLC parameter dialog box File register setting Creating new device memory screen Not used or Use the same file name as the program is selected Use the following files is selected Writing of file register Online write to PLC screen Writing of the file register to the QCPU Writing of the parameter to the QCPU ...

Page 293: ...aving the same file name as the sequence program are to be used 2 If the program is changed the file registers are automatically changed to conform to the new program name There are also cases where it is convenient to use the file registers as local devices which can only be used with the program currently being executed 3 The number of file register to use can be set by writing to PLC online Whe...

Page 294: ...ile register file with the specified filename is stored on the specified drive that file register file is used If a file register file with the specified filename is not found on the specified drive a PARAMETER ERROR 3002 will occur When an ATA card is used a memory card ROM cannot be registered with the targeted memory If a memory card is registered with the targeted memory a parameter error 3000...

Page 295: ...egister file c Specifying the capacity and filename This section is used to specify the capacity of file registers and a filename of the file register file to be written onto the High Performance model QCPU QCPU side filename 1 The capacity of file registers can be specified from ZR0 in the units of 1 point Note that the capacity is secured in 256 point units as a file If file registers cannot be ...

Page 296: ... settings Settings are designated in the R0 to R32767 range for each block D0 R0 MOV Memory card Block 0 Block 1 Block 2 D0 R0 MOV R0 R0 R0 designation for block 1 RSET K1 RSET K2 R0 designation for block 2 R32767 R32767 R0 2 Serial number access format This format is used for designating file register beyond 32k points by device name Multiple blocks of file registers can be used as a continuous f...

Page 297: ...med within the size number of points set in the High Performance model QCPU A file register capacity check should be executed at step 0 of programs in which file registers are used After switching to another file register file using the QDRSET instruction execute a file register capacity check When using the RSET instruction to switch blocks confirm that the switching destination block has a capac...

Page 298: ...check M0 MOVP K4X20 R0 Alarm processing Writing to file register SD647 K4 Designates 4k points Program example 2 The file register range of use is checked after executing the QDRSET instruction SM400 M0 Y0 M0 Transfer command Final file register range check M0 MOVP K4X20 R0 Alarm processing Writing to file register SD647 K4 QDRSET 1 ABCD File register is changed to drive 1 ABCD Program example 3 F...

Page 299: ...lation For details on how to use master control refer to the QCPU Q mode QnACPU Programming Manual Common Instructions N0 nesting control range N1 nesting control range N2 nesting control range Executed when conditions A and B are satisfied Executed when condition A is satisfied M15 N0 B C A M15 N0 MC M16 N1 MC N2 MCR N1 MCR M17 N2 MC N0 M16 N1 M17 N2 Executed when condition A B and C are satisfie...

Page 300: ...ependently in programs and common pointers Section 10 9 1 which are used to call sub routine programs from all programs executed in the CPU 10 9 1 Local pointers 1 Definition a Local pointers are pointers which can be used independently in program jump instructions and sub routine call instructions Local pointers cannot be used from other program jump instructions and sub routine CALL instructions...

Page 301: ...error error code 4020 occurs P0 to P99 used in program P100 to P199 used in program Only P299 is used in program P0 to P99 occupy 100 points P0 to P199 occupy 200 points P0 to P299 occupy 300 points If P0 is used the number of occupied points is 1 If P0 to P99 are used the number of occupied points is 100 Total of 600 points used Program A Program B Program C If the local pointer points are used a...

Page 302: ...e all local pointers after P400 can be used as common pointers If the last number of local pointers used in several programs overlaps the first number of common pointers a pointer configuration error Error Code 4020 will occur P0 to P99 used in program P0 to P99 used in program P0 to P199 used in program P0 to P99 occupy 100 points P0 to P99 occupy 100 points P0 to P199 occupy 200 points Program A...

Page 303: ...enerator Interruption input from special function module factor modules which can dictate an interrupt start to the High Performance model QCPU QI60 A1SI61 excluded Internal time factor Fixed scan interruption by High Performance model QCPU s internal timer Error interruption Interruption by an error that does not stop sequence program operation Intelligent function Interruption by an intelligent ...

Page 304: ...ameters 18 to 223 REMARK 1 1st to 12th points are allocated in order beginning from the sequence start generator module installed closest to the High Performance model QCPU 2 The internal times shown are the default setting times These times can be designated in 0 5 ms units through a 0 5 to 1000 ms range set at the PLC system tab screen in the PLC Parameter dialog box 3 When an error interruption...

Page 305: ...ock For details regarding the use of SFC transition devices refer to the QCPU Q mode QnACPU Programming Manual SFC 10 11 3 Network No designation device J 1 Definition The network No designation device is used to designate the network No in data link instructions 2 Designating network No designation device The network No designation device is designated in the data link instruction as shown below ...

Page 306: ...s 2 Designating the I O No designation device I O No designation devices are designated with the intelligent function module instructions as shown below Un GP READ I O No designation device n I O No Instruction name I O No designation instruction S1 S2 S3 D REMARK For details on intelligent function module instructions refer to the corresponding manual for the intelligent function module to be use...

Page 307: ...ignate devices that correspond to the macro argument devices used in the macro registration ladders in ascending order when using macro instructions in a sequence program Transfer to VD2 VD0 MOV VD2 VD0 VD1 D0 M MAX D1 R0 Transfer to VD1 Transfer to VD0 VD1 MOV VD2 VD0 VD1 Name of ladder registered as a macro Actual sequence program executed at CPU Sequence program Ladder registered as a macro reg...

Page 308: ...s For word data 16 bits K 32768 to K32767 For 2 word data 32 bits K 2147483648 to K2147483647 10 12 2 Hexadecimal constants H 1 Definition Hexadecimal constants are devices which designate hexadecimal or BCD data in sequence programs For BCD data designations 0 to 9 digit designations are used Hexadecimal constants are designated as H settings e g H1234 See Section 4 8 3 for details on hexadecimal...

Page 309: ...nated as it is For example 10 2345 becomes E10 2345 Exponential expression The specified value is multiplied by a 10 n exponent For example 1234 becomes E1 234 3 1 REMARK 1 The 3 in the above example represents a 10 n value 10 3 10 12 4 Character string 1 Definition Character string constants are devices used to designate character strings in sequence programs They are designated by quotation mark...

Page 310: ...by all the programs being executed and local devices used independently by each of the programs 1 Global devices a Global devices can be shared by all the programs being executed in the High Performance model QCPU Global device data are stored in the High Performance model QCPU s device memory and can be used by all programs Y12 M0 Program A Y11 M0 Program B M0 ON OFF data Device memory Internal r...

Page 311: ...ice types can be used as local devices internal relays M edge relays V timers T ST counters C and data registers D c Programs used as local devices exchange the local device file data stored in the memory card with the data in the device memory of High Performance model QCPU Therefore the scan time is extended by this data exchange time Local device Program A Program B Program C Local device Local...

Page 312: ...cal device at the PLC file tab screen in the PLC Parameter dialog box If a local device is not specified the local devices used for previously executed programs are selected This does not require replacing local devices in a memory card with the device memory of the High Performance model QCPU If local devices are not used for Program B while executing Programs A B and C the local devices are used...

Page 313: ...ALL P100 X0 INCP D0 X2 END Local devices used by the file name ABC File name ABC Local devices used by the file name DEF File name DEF Standby program RET P100 Sub routine program Read write of the local devices Execution of the sub routine program 2 Cautions If SM776 is ON the local device data is read when the sub routine program is called and the local device data is saved after the execution o...

Page 314: ...fixed scan execution type program ON Executes operation with the local devices in the file where the interrupt fixed scan execution type program is stored Operation at SM777 OFF DECP D1 X0 INCP D0 X2 END Local devices used by the file name ABC File name ABC Local devices used by the file name DEF File name DEF Standby program IRET I0 Interrupt program Occurrence of interrupt Execution of the inter...

Page 315: ...ON OFF setting of SM777 is enabled in CPU module units Setting in file unit is not enabled If the ON OFF setting of SM777 is changed while a sequence program is executed the control is made according to the information after change g Clearing the Local Device Data The local device data is cleared in the following cases where 1 The PLC is powered on or the CPU module is reset 2 The CPU module enter...

Page 316: ...vice initial value b In order to use the device initial values the device initial data must be created with GX Developer in advance and this data must be stored as a device initial value file in the High Performance model QCPU s program memory standard RAM or memory card At power ON or on switching from STOP to RUN the High Performance model QCPU writes the data from the device initial value file ...

Page 317: ...W J SW 2 Procedure for using device initial values a Designate the device initial value range settings in the device mode in the Device initial value setting screen b Designate the device initial value data settings in the device mode screen Device initialization range setting screen Device mode screen c At the PLC file tab screen in the PLC Parameter dialog box designate the name of the file wher...

Page 318: ...d in areas where no setting is made for switching from STOP to RUN for data that is changed by a program at power ON Create a program to specify a device by using the MOV instruction in the main routine program Use the TO instruction to write data to the buffer memory of the intelligent function module REMARK For details on the setting procedures for the device initial value range device initial v...

Page 319: ...2 c The table below shows N1 and N2 N1 N2 CPU type Q3 B Q5 B Q6 B QA1S B Q3 B Q5 B Q6 B QA1S B Q02CPU 2 2 s 2 9 s 4 3 s 1 3 s 2 1 s 3 5 s Q02HCPU Q06HCPU Q12HCPU Q25HCPU 1 7 s 2 4 s 3 7 s 1 3 s 2 1 s 3 5 s 2 Instruction execution time a Instruction execution time is the total processing time required to execute an instruction in a program on the High Performance model QCPU For details on the execu...

Page 320: ...rk System Reference Manual 2 CC Link automatic refresh CC Link automatic refresh requires additional processing time to refresh data between the High Performance model QCPU and the CC Link s master local module When a CC Link master local module is installed extended scan time can be shortened by adjusting a CC Link setting to a system setting For details on CC Link automatic refresh time see the ...

Page 321: ... processing time of local devices to the total processing time CPU Type Processing Time Q02CPU 0 94 0 40 n ms Standard RAM Q02HCPU Q06HCPU Q12HCPU Q25HCPU 0 39 0 17 n ms Q02CPU 0 94 1 38 n ms SRAM Card Q02HCPU Q06HCPU Q12HCPU Q25HCPU 0 39 0 95 n ms Conditions Local devices 1k points n number of program files 6 Execution of multiple programs Execution of multiple programs requires overhead time of ...

Page 322: ...r SM1000 SD1000 is set in the PLC system settings of the PLC parameter the scan time can be reduced by the value in the following table by setting to Do not use special relay special register after SM1000 SD1000 In this case the A series compatible special relays special registers SM1000 SD1000 to SM1299 SD1999 must be replaced with the Q series dedicated special relays special registers SM0 SD0 t...

Page 323: ... k steps Q06HCPU 60 k steps Q12HCPU 124 k steps Q25HCPU 252 k steps If the CPU module capacity is only adequate for the program the parameter data should be stored in the standard ROM memory card 2 Designating a program file name The file name of the program to be stored in the High Performance model QCPU must be designated This file name is used when writing the program and parameters from GX Dev...

Page 324: ...details regarding High Performance model QCPU DIP switches refer to the High Performance model QCPU Q mode User s Manual Hardware Design Maintenance and Inspection When writing programs and parameters to the High Performance model QCPU program memory the steps indicated by asterisks below are not required Procedural steps shown in boxes are performed at the GX Developer and those shown in boxes ar...

Page 325: ...ecuted and its execution condition Connect the GX Developer to the CPU module 2 In the PLC file setting in the PLC parameter designate the name of file to be used for the designated device initial values Set the CPU module s RUN STOP key to the STOP position then switch the power ON ERR LED switches ON Right click on the device memory and select Add to specify device initial value data Select the ...

Page 326: ... switch to execute a reset CPU module s BOOT LED switches ON End If a boot file setting is not made or when writing parameters or programs onto the program memory the BOOT LED does not light up In Write to PLC Flash ROM in the GX Developer online mode select Standard ROM and write the parameter data and crated program ...

Page 327: ...en writing the program and parameters from GX Developer to the High Performance model QCPU and when designating the program to be executed in the High Performance model QCPU See Chapter 6 for details regarding file names 3 Designating the program execution conditions In order to execute multiple programs in the High Performance model QCPU execution conditions must be designated for each program Ex...

Page 328: ...rs must be designated by GX Developer For details regarding High Performance model QCPU DIP switches refer to the High Performance model QCPU Q mode User s Manual Hardware Design Maintenance and Inspection When writing programs and parameters to the High Performance model QCPU program memory the steps indicated by asterisks below are not required Procedural steps shown in boxes are performed at GX...

Page 329: ... PLC parameter designate the name of the local device file Use the common pointers YES NO In the PLC system setting item in the PLC parameter desig nate the first pointer No See Section 10 13 2 In the PLC file setting in the PLC parameter designate the name of file to be used for the designated device initial values See Section 10 13 1 See Section 10 9 2 Right click on the device memory and select...

Page 330: ...e cuted and its execution condition Set the CPU module s RUN STOP switch to the STOP position then switch the power ON In the GX Developer online mode select the memory card RAM then use the PLC memory batch operation to format the memory card In the GX Developer online mode select the program memory and use the PLC memory batch operation to format the program memory When the device initial value ...

Page 331: ...l QCPU between several High Performance model QCPUs it is possible to reduce the overall system scan time Data processing low speed Mechanical control high speed Mechanical control PLC Control at 1 ms or higher Data processing CPU Control at several to several tens of ms Everything controlled on a single CPU Mechanical control made even father by load dispersion in accordance with control tact b I...

Page 332: ... as necessary c Instructions dedicated to Motion can be used to issue control commands from the High Performance model QCPU to the Motion CPU 1 d The High Performance model QCPU can issue instructions dedicated to communication between multiple PLCs to read or write device data from to the Motion CPU or PC CPU module The High Performance model QCPU can issue events to the PC CPU module 2 REMARK 1 ...

Page 333: ...rformance model QCPU and motion CPUs are to control which I O modules and intelligent function modules with a multiple PLC system CPU 0 1 2 3 4 5 6 7 Power supply 1 2 Input module 1 Output module 1 1 Intelligent function module 1 2 2 2 Control performed with the QCPU1 sequence program Setup of the controlling QCPU 1 Input module Input module Intelligent function module Output module Control perfor...

Page 334: ...nt function module s buffer memory CPU 0 1 2 3 4 5 6 7 1 2 1 1 1 1 2 2 2 Possible to read with the QCPU1 Power supply Input module Output module Intelligent function module Input module Input module Output module Intelligent function module Possible to read with the QCPU2 QCPU QCPU 4 GX Developer access range a It is possible to write parameter programs and perform monitoring and tests in High Per...

Page 335: ...there are more PLC parameter items on a multiple PLC system Of the PC parameters that have been added to the multiple PLC system the parameters that must be set are listed below Number of CPUs Sets the number of mounted High Performance model QCPUs motion CPUs and PC CPU module that are in use Control PLC settings Sets which High Performance model QCPU motion CPU and PC CPU module controls while m...

Page 336: ...ions FROM instruction Control instruction from the High Performance model QCPU to the motion CPU with Motion dedicated PLC instructions Writing and reading of the device data from the High Performance model QCPU to the Motion CPU PC CPU module with communication dedicated instructions between multiple PLCs Event issuance from High Performance model QCPU to PC CPU module using instructions dedicate...

Page 337: ... extension base unit Q63B Q65B Q68B Q612B Power supply module 3 I O module Intelligent function module of the Q Series Extension cable QC05B QC06B QC12B QC30B QC50B QC100B QA1S6 extension base unit QA1S65B QA1S68B Power supply module I O module Special function module of the AnS Series Extension of AnS Series modules Extension of Q Series modules MITSUBISHI MITSUBISHI LITHIUM BATTERY 1 2 Motion CP...

Page 338: ...GX Developer Version 6 or later SW6D5C GPPW E MITSUBISHI 1 For writing into memory card on GX Developer and USB cable refer to the operating manual of the GX Developer POINT Refer to the Motion Controller User s Manual for connection between the Motion CPU and peripheral modules The GX Developer installed in a Personal computer connected to the Motion CPU is not used to communicate with the High P...

Page 339: ...ows the configuration when 32 I O modules are mounted to each slot Extension cable Prohibit 160 17F 140 15F 120 13F Number of CPU CPU1 PLC No 1 CPU2 PLC No 2 CPU3 PLC No 3 CPU4 PLC No 4 Maximum number of extension stages 7 extension stages Module count setting for the multiple PLC setting 1 2 3 4 Maximum number of mounted I O modules Number of module mounted 64 modules 63 modules 62 modules 61 mod...

Page 340: ...s with different function versions Function version A High Performance model QCPUs cannot be used on a multiple PLC system Errors shown in table 14 1 will occur and the multiple PLC system will not start up if function version A High Performance model QCPUs are used on a multiple PLC system If any of the errors shown in table 14 1 are displayed after executing GX Developer Version 6 or later PLC d...

Page 341: ...ht end of CPU modules No CPU module can be mounted on the right side of the PC CPU module Table 14 2 Installation positions of CPU modules Number of CPUs Mounting positions of CPU modules 1 Power supply CPU 0 1 2 QCPU 2 Power supply CPU 0 1 2 QCPU QCPU CPU 0 1 2 Motion CPU Power supply QCPU CPU 0 1 2 PC CPU module Power supply QCPU 1 CPU 0 1 2 Power supply QCPU QCPU QCPU CPU 0 1 2 Motion CPU Power...

Page 342: ...the multiple PLC system No CPU module can be mounted on the right side of the PC CPU module CPU 0 1 2 Power supply QCPU Motion CPU 3 PC CPU module d An empty slot is secured for future addition of a CPU module The number of CPU module including empty slots are set with the No of PLC setting and the type is set in the CPU empty setting from the slot immediately to the right of the number of CPU mod...

Page 343: ...oper personal computer is not connected in the multiple PLC system To set up control PLCs with the I O Assignment in the multiple PLC system b The High Performance model QCPU stores the host number in the special register SD395 It is recommended to build a program for checking the host number using the High Performance model QCPU This will enable easy verification when High Performance model QCPUs...

Page 344: ...ntrol PLC However only control PLC can be accessed from serial communication modules and other external modules MELSECNET H serial communication modules and other external modules cannot access non control PLCs The SP UNIT VER ERR error code 2150 occurs if any of PLC No 2 to No 4 has been set as a control PLC and the multiple PLC system will not be a started up 3 Ranges of access to control and no...

Page 345: ...rol PLC on which I O modules and special function modules compatible with the AnS Series are mounted are set as the PLC No 2 The PARAMETER ERROR error code 3009 occurs even if only one AnS Series corresponding I O module or special function module is set up the multiple PLC system will not be started up Power supply PLC 1 PLC 2 PLC 3 PLC 4 Module 1 Module 1 Module 2 Module 2 Module 3 Module 4 Modu...

Page 346: ...trol modules The following table indicates accessibility to the control and non control modules in the multiple PLC system Accessibility Non control module I O setting outside of the group Access target Control module Disabled Enabled Input X Read Output Y Write Read Buffer memory Write Accessible Inaccessible ...

Page 347: ...E71 B2 QJ71E71 100 Maximum of four Maximum of four Q series CC Link system master local modules QJ61BT11 No limit No limit MELSECNET MINI S3 data link modules A1SJ71PT32 S3 A1SJ71T32 S3 No restrictions however the automatic refresh function cannot be set up No restrictions however the automatic refresh function cannot be set up AnS series corresponding Special function modules A1SD51S A1SD21 S1 A1...

Page 348: ...1 Compatible GX Developers GX Developer Version 6 SW6D5C GPPW E or later are compatible with on multiple PLC systems GX Developer Version 5 SW5D5C GPPW E or earlier are not compatible with multiple PLC system 2 Compatible GX Configurators The GX Configurators listed can be used on multiple PLC systems without modification ...

Page 349: ... Type Model name Points Start Standard setting Base model name Power model name Extension cable Points Switch settings Detailed settings Error time output made H W error time PLC operation made I O response time I O Assignment Control PLC PLC system settings Number of empty slots No of PLC Operation mode Online module change The input condition outside of the group is taken The output condition ou...

Page 350: ...eter s Multiple PLC settings screen in the PLC Parameter dialog indicated with the A arrow A 2 Ensure that the No of PLC set for the multiple PLC system is the same as the number of CPUs actually mounted When an empty slot is secured for the purpose of mounting additional CPU modules in the future set PLC Empty at the I O assignment tab screen in the PLC Parameter dialog box For example when setti...

Page 351: ...O settings outside of the group optional This is set when the input and output X Y for I O modules and intelligent function modules being controlled by other PLCs is to be downloaded to the host PLC See Section 17 2 for further details d Refresh setting optional This is set up to automatically refresh the device data on the multiple PLC system See Section 16 1 for further details e Control PLC set...

Page 352: ...RAMETER ERROR error code 3012 will occur in the host PLC if they do not match When PLCs in the RUN mode exist A comparison check will be run on the multiple PLC settings and I O Assignments for the PLC in the RUN mode with the lowest number A PARAMETER ERROR error code 3012 will occur in the host PLC if they do not match When PLCs in the RUN mode do not exist A comparison check will be run on the ...

Page 353: ... the multiple PLC system will assume the MULTIPLE PLC DOWN status PLC No 3 PLC No 4 QCPU QCPU QCPU QCPU POINT 1 It is not possible to reset the CPU modules for PLC No 2 to No 4 individually in the multiple PLC system If an attempt to reset any of the CPU modules for PLC No 2 to No 4 during operation of the multiple PLC system a MULTIPLE PLC DOWN error code 7000 error will occur for the other PLCs ...

Page 354: ... and the system restored when the PLC No 1 is reset or the power to the PLC is restarted 2 When a stop error occurs at the PLC No other than No 1 Whether the entire system is halted or not is determined by the multiple PLC setting s Operating Mode setting when a stop error occurs in the CPU modules for PLC No 2 to No 4 The default setting is for all PLCs to be stopped with a stop error When you do...

Page 355: ...TIPLE PLC DOWN There are cases where the system will be halted with stop error detected on the PLC No 3 depending on the timing of error detection becomes MULTIPLE PLC DOWN PLC No 2 PLC No 3 Owing to this there are cases where a different PLC No to the PLC that initially caused the stop error will be stored in the error data s common information category In this event remove the reason for the err...

Page 356: ... a multiple PLC system When four CPU modules are used on the multiple PLC system When additional base units are in use When intelligent function modules that possess vast quantities of data are mounted onto additional base units When four CPU modules simultaneously access modules mounted onto additional base units 3 Reducing the time required for multiple PLC system processing The following method...

Page 357: ...e slots occupied by the CPU modules c I O number of a system without PC CPU module The I O number for the I O modules and intelligent function modules mounted from the right of the slots occupied by the CPU modules is set as 00H and consecutive numbers are then allocated sequentially to the right 1 Example Two modules are mounted 0 1 2 3 4 Power supply 5 6 7 I O number 00H QCPU QCPU 2 Example Thre...

Page 358: ...0H 3E10H 3E20H 3E30H The CPU modules I O numbers are used in the following cases When writing data in the host PLC s CPU shared memory with the S TO instruction 1 When reading data from other PLC s CPU shared memory with the FROM instruction 1 When reading data from other PLC s CPU shared memory with the intelligent function module device U_ G_ 1 When specifying the High Performance model QCPU to ...

Page 359: ...C system s I O modules and intelligent function modules a Q Series I O modules and intelligent function modules can be selected as control PLCs for each slot b AnS Series I O modules and intelligent function modules are set as control PLCs on the same CPU modules Q38B 0 1 2 3 4 5 6 7 Power supply QCPU QCPU QCPU Q68B 8 9 10 11 12 13 14 15 Power supply QA1S68B 16 17 18 19 20 21 22 23 Power supply QA...

Page 360: ...vice data of other PLCs Host PLC s operation information area System area Automatic refresh area for writing in the PLC No 1 PLC No 1 User s free area CPU shared memory Device memory For use of the PLC No 1 For use of the PLC No 2 Reading performed with the PLC No 2 END process Reading performed with the PLC No 1 END process Writing performed with the PLC No 1 END process Writing performed with th...

Page 361: ...3 4 PLC No 2 Host PLC s operation information area CPU shared memory Automatic refresh area for writing in the No 2 machine Reading performed with the PLC No 1 END process B0 to B1F For use of the PLC No 1 B20 to B3F For use of the PLC No 1 The processes performed during the PLC No 1 END process 1 The B0 to B1F transmission device data for the PLC No 1 is transferred across to the host PLC shared ...

Page 362: ...ransmission range for each CPU is set in units of two CPU shared memory points two words Becomes 2 points when specifying the word device with the CPU device and 32 points when specifying the bit device PLC data for which the point is set at 0 with the range of transmission for each CPU will not be refreshed As the bit device becomes 16 points at one point of the CPU shared memory when refreshing ...

Page 363: ...ints must be set for all PLCs on the multiple PLC system A PARAMETER ERROR occurs if the number of transmission points for one PLC is different b CPU devices The following devices can be used for automatic refresh purposes other devices cannot be set up with the GX Developer Settable devices Caution Data register D Link register W File register R ZR The device in the left column occupies one point...

Page 364: ...device and set up settings 1 to 4 The same devices can be specified for settings 1 to 4 However as setting 1 in the illustration on the left uses 160 points between B0 and B9F BA0 and higher can be used for setting 3 No part of a device number can be duplicated as shown with B0 to B9F on setting 1 and B90 to B10F on setting 3 Setting 1 In the case of link relays Setting 2 In the case of link regis...

Page 365: ...r example the PLC No 1 can be set up as a link relay and the PLC No 2 can be set up as an internal relay Set the same point for all the PLC Refresh setting for PLC No 1 Refresh setting for PLC No 2 When the PLC No 1 and PLC No 2 devices have been set up with different devices When the PLC No 1 and PLC No 2 devices have been set up with the same device ...

Page 366: ... No 2 PLC No 4 transmission data No 3 PLC No 4 transmission data No 4 PLC No 1 transmission data No 1 PLC No 2 reception data No 1 PLC No 3 reception data No 1 PLC No 4 reception data No 1 PLC No 1 transmission data No 2 PLC No 2 reception data No 2 PLC No 3 reception data No 2 PLC No 4 reception data No 2 PLC No 1 transmission data No 3 PLC No 2 reception data No 3 PLC No 3 reception data No 3 PL...

Page 367: ...ion points 1024 points D0 to D1023 PLC No 2 transmission points 1024 points D1024 to D2047 Used for the PLC No 1 interlock D0 D1023 to D1024 D2047 to PLC No 1 transmission device PLC No 2 transmission device Transmission data set in D0 to D1023 Writing command D1024 0 D0 0 Interlock with b0 of the PLC No 2 first device D1024 b0 of the PLC No 1 first device D0 for the use of the interlock is set at...

Page 368: ...ow Host PLC s operation information area System area Automatic refresh area for the use of No 1 machine writing PLC No 1 CPU shared memory Sequence program Read with FROM instruction or U G Writing performed with the S TO instruction S TO instruction execution FROM instruction execution 1 2 Data written with the S TO instruction PLC No 2 Host PLC s operation information area System area CPU shared...

Page 369: ...ith the FROM instruction the S TO instruction and instructions that use U G There are cases where old data and new data will be mixed together if simultaneous access is carried out e The instruction that uses the S TO instruction U G cannot be used to write data to the CPU shared memory of other PLCs SP UNIT ERROR error code 2115 occurs if data is written to the CPU shared memory of other PLCs wit...

Page 370: ...en in the real mode S CHGA SP CHGA Changes the current values of the halted axes the synchronized encoder and the cam axes For example it is possible to start up the Motion CPU s motion SFC from the High Performance model QCPU with the S P SFCS instruction High Performance model QCPU Motion SFC Motion SFC S SFCS instruction Startup request POINT One High Performance model QCPU module can operate u...

Page 371: ...e model QCPU device data can be written into the Motion CPU s device data with the S DDWR instruction of the communication dedicated instruction between multiple PLCs High Performance model QCPU Motion CPU S DDWR instruction Writes in the device memory Reads the device memory Device memory Device memory POINT One High Performance model QCPU can operate up to 32 Motion dedicated PLC instructions an...

Page 372: ...cessing sequence programs are shown in the illustration below Host PLC operation information area System area Automatic refresh area User s free area CPU shared memory 0H 1FFH to 200H 7FFH to 800H FFFH to Host PLC Other PLCs Writing Disable Enable Reading Writing Reading 2 1 Disable Disable Disable Disable Disable Disable Disable Disable Disable Disable Disable Disable Enable Enable REMARK 1 Use t...

Page 373: ...ormation has been stored in the common error information and individual error information SD4 6H to 10H Common error information Common error information The common information corresponding with the number of the error during diagnostic is stored SD5 to SD15 11H to 1BH Individual error information Individual error information The individual information corresponding with the number of the error d...

Page 374: ...e PLC system is automatically refreshed Writing is not enabled with the S TO instruction and reading is not enabled with the FROM instruction or intelligent function module device U G 4 User s free area The area for performing communication between CPU modules with the multiple PLC system s S TO instruction FROM instruction and intelligent function module device U G The area used after the number ...

Page 375: ...dule with the control PLC 17 2 Range of Non control PLC Communications It is possible for non control PLCs to read the contents of the intelligent function module s buffer memory It is also possible to load non control module input X ON OFF data and another PLC module output Y ON OFF data with the PLC parameters Input modules controlled by other PLCs can be used as interlocks for the host PLC and ...

Page 376: ... PLCs by performing input refresh before a sequence program calculation starts 2 Input X loading is performed for the modules mounted onto the following additional base unit slots I O allocation type Mounted module Remarks Input module None Intelligent function module Input module Input Output module Loads OFF data Intelli Intelligent function module 3 It is possible to load ON OFF data from input...

Page 377: ...before a sequence program calculation starts 2 Output Y loading is performed for the modules mounted onto the following additional base unit slots I O allocation type Mounted module Remarks Output module None Intelligent function module Input module Output Output module Intelli Intelligent function module 3 It is possible to load output ON OFF data being controlled by other PLCs with direct access...

Page 378: ...e 7 Readable from the buffer memory with the FROM command and U G Slot No Control PLC settings PLC No 1 Readable from the buffer memory with the FROM command and U G PLC No 2 Intelligent function module Intelligent function module Intelligent function module Output module PLC No 1 PLC No 1 PLC No 1 PLC No 2 PLC No 2 PLC No 2 b It is not possible to write in the buffer memory of intelligent functio...

Page 379: ...S 5 Accessing MELSECNET H modules Only control PLCs can access MELSECNET H modules Link direct devices cannot be used in MELSECNET H modules being controlled by other PLCs OPERATION ERROR error code 4102 occurs if a program that uses link direct devices is used in MELSECNET H modules being controlled by other PLCs ...

Page 380: ...tion explained in Section 11 1 The I O refresh time for the following values only are prolonged when bus access overlaps with other PLCs input points output points Prolonged time 16 N3 number of other PLCs s Use the following values for N3 N3 CPU type Systems with only a main base unit Systems that include additional base units Q02CPU Q02HCPU Q06HCPU Q12HCPU Q25HCPU 8 7 s 21 s 2 Total value of com...

Page 381: ...tings with the PLC parameter multiple PLC settings b The automatic refresh period of the CPU shared memory is calculated in the following equation Automatic refresh time N1 received word points N2 number of other PLCs N3 transmitted word points N4 s The received word points must equal the word points transmitted by other PLCs For example if the host PLC is the PLC No 1 then this value must equal t...

Page 382: ...er Transferal between data links Refer to the following table for N5 N5 CPU type Systems with only a main base unit Systems that include additional base units Q02CPU Q02HCPU Q06HCPU Q12HCPU Q25HCPU 0 54 s 1 30 s 3 CC Link automatic refresh a The amount of time required for performing the refresh process between High Performance model QCPU and CC Link master local modules Refer to the following man...

Page 383: ...functions executed in the multiple PLC system Installation of module Install the selected module to the main base unit and expansion base units GX Developer startup Start the GX Developer Version 6 or later For the starting method refer to the GX Developer operating manual 1 1 1 1 PLC power ON Select STOP at the RUN STOP switch of the QCPU and turn off the RESET L CLR switch and turn on the PLC Co...

Page 384: ...the reset status for the PLC No 1 is canceled If errors occurs confirm the details and recover the situation with the GX Developer s system monitor PLC No 1 to PLC No 4 on the multiple PLC system debugged individually 1 RUN STOP switch setting of all PLCs Select RUN at the RUN STOP switch of the QCPU for PLC No 1 to No 4 Cancellation of resetting of QCPU of PLC No 1 Set the RESET L CLR switch of t...

Page 385: ...oper s operation manual for details on setting up all other parameters 19 2 1 System configuration The following shows an example procedures for setting up the multiple PLC system parameters PLC No 1 Power supply No 1 input module No 1 output module No 1 intelligent function module GX Developer Power supply No 3 input module No 3 output module No 4 input module No 4 output module No 2 intelligent ...

Page 386: ...ndow on the GX Developer opened Start 1 Refer to GX Developer operating manual Refer to GX Developer operating manual Setting the number of CPUs required item Sets the number of CPU modules to be mounted onto the main base unit with the multiple PLC system Select Multiple PLC Settings to display the multiple PLC setup window ...

Page 387: ...PLC No 2 The operation mode for the PLC No 1 cannot be changed Out of the group input output settings optional Sets whether or not the I O status of non control PLCs are acquired Default Default Do not acquire No check Multiple PLC system optional Sets the device and number of PLC share memory G points to perform data communications with the automatic refresh process between CPU modules This is li...

Page 388: ...lots on which CPU modules are not to be mounted by type Select Detailed Settings on the I O assignment window to display the detail settings window Control PLC settings required item Selects the control PLCs PLC No 1 to No 4 for each slot Function version A intelligent function modules set the control PLC No 1 Output modules and special function modules that support the AnS series set a single PLC...

Page 389: ... Developer s operation manual Opens the GX Developer s PC parameter setup window Select Multiple PLC settings to display the multiple PLC setup window Transferring multiple PLC settings Click on Diversion multiple PLC parameters Setting up transferred projects Select the project into which existing multiple PLC settings and I O allocations are to be transferred Click on Open ...

Page 390: ...when OK is selected Confirming the multiple PLC settings When changing the CPU devices in the Refresh settings enter the device number after it has been changed indicates the item can be changed Confirm the I O Assignment and standard settings on the I O Allocation Window Select Detailed Settings to display the detailed setting window Confirm the control PLC settings ...

Page 391: ...19 9 19 9 MELSEC Q 19 STARTING UP THE MULTIPLE PLC SYSTEM Set parameters written onto the hard disk or floppy disk End Setup of parameters other than the multiple PLC system settings 2 ...

Page 392: ...UN Status change Set only when there is a change in status Error Set when error is generated Instruction execution Set when instruction is executed Request Set only when there is a user request through SM etc Corresponding ACPU M9 Indicates special relay M9 corresponding to the ACPU Change and notation when there has been a change in contents Items indicated as New have been newly added for High p...

Page 393: ...ON AC DC DOWN detected Comes ON if a momentary power interruption of less than 1ms occurred during use of the DC power supply module and reset by turning power OFF then ON S Error M9005 QnA SM54 MINI link errors OFF Normal ON Error Goes ON if MINI S3 link error is detected at even one of the installed AJ71PT32 S3 modules Stays ON subsequently even after normal operation is restored S Error M9004 Q...

Page 394: ... PLC No 1 resetting Goes OFF when reset of the PLC No 1 is canceled Comes ON when the PLC No 1 is resetting including the case where the PLC is removed from the base The other PLCs are also put in reset status SM241 No 2 CPU reset flag OFF PLC No 2 reset cancel ON PLC No 2 resetting Goes OFF when reset of the PLC No 2 is canceled Comes ON when the PLC No 2 is resetting including the case where the...

Page 395: ...For refresh from link to CPU B W etc indicate whether to read from the link module U New SM262 MELSECNET 10 module 2 information OFF Writes ON Does not write For refresh from CPU to link B W etc designate whether to write to the link module U New SM265 OFF Operative network ON Standby network Goes ON for standby network If no designation has been made concerning active or standby active is assumed...

Page 396: ...ag OFF When transition is executed ON When no transition When continuous transition is effective goes ON when continuous transition is not being executed goes OFF when continuous transition is being executed Normally ON when continuous transition is not effective S Instruction execution M9104 SM325 Output mode at block stop OFF OFF ON Preserves When block stops selects active step operation output...

Page 397: ...0 5 sec M9032 SM413 2 second clock 1 sec 1 sec Repeatedly changes between ON and OFF at each designated time interval When PLC power supply is turned OFF or a CPU module reset is performed goes from OFF to start Note that the ON OFF status changes when the designated time has elapsed during the execution of the program S Status change M9033 SM414 2n second clock n sec n sec Goes between ON and OFF...

Page 398: ...emory card Turned OFF by the system after the memory card is removed U S New Always ON S Initial New QCPU SM620 Memory card B usable flags OFF Unusable ON Use enabled ON when memory card B is ready for use by user S Initial New Q2A S1 Q3A Q4A Q4AR Always ON S Initial New QCPU SM621 Memory card B protect flag OFF No protect ON Protect Goes ON when memory card B protect switch is ON S Initial New Q2...

Page 399: ...ginally set when OFF CHK priorities updated when ON S Instruction execution New SM711 Divided transmission status OFF Other than during divided processing ON During divided processing In processing of AD57 S1 goes ON when screen is split for transfer and goes OFF when split processing is completed S Instruction execution M9065 SM712 Transmission processing selection OFF Batch processing ON Divided...

Page 400: ...enabled Determines whether to enable disable the local device at the execution of interrupt programs U Status change New SM780 CC Link dedicated instruction executable OFF CC Link dedicated instruction executable ON CC Link dedicated instruction not executable Switches ON when the number of the CC Link dedicated instructions that can be executed simultaneously reaches 32 Switches OFF when the numb...

Page 401: ...n OFF Related special M all OFF S Status change M9182 format change SM822 Step trace execution underway OFF Suspend ON Start Goes ON when step trace execution is underway Goes OFF at completion or suspension S Status change M9181 SM823 After step trace trigger OFF Not after trigger ON Is after first trigger Goes ON if even 1 block within the step trace being executed is triggered Goes OFF when ste...

Page 402: ...ed for the device number 3 When is provided the device number does not work with QCPU QnACPU Special Relay List ACPU Special Relay Special Relay after Conversion Special Relay for Modification Name Meaning Details Applicable CPU M9000 SM1000 Fuse blown OFF Normal ON Module with blown fuse Turned on when there is one or more output units of which fuse has been blown Remains on if normal status is r...

Page 403: ... off by DUTY instruction DUTY n1 n2 M9020 M9025 SM1025 Clock data set request OFF Ignored ON Set request present used Writes clock data from SD1025 to SD1028 to the clock element after the END instruction is executed during the scan in which SM1025 has changed from off to on M9026 SM1026 Clock data error OFF No error ON Error Switched on by clock data SD1025 to SD1028 error M9027 SM1027 Clock data...

Page 404: ... batch processing are executed used when the scan time exceeds 200 ms M9046 SM1046 SM802 Sampling trace OFF Trace not in progress ON Trace in progress Switched on during sampling trace M9047 SM1047 SM801 Sampling trace preparations OFF Sampling trace suspended ON Sampling trace started Sampling trace is not executed unless SM801 is turned ON Sampling trace is suspended when SM801 goes OFF M9049 SM...

Page 405: ...ed at SD1091 and remains set after normal status is restored Set when an error occurred at execution of the microcomputer program package and remains set after normal status is restored M9094 SM1094 SM251 I O change flag OFF Replacement ON No replacement After the head address of the required I O module is set to SD251 switching SM251 on allows the I O module to be changed in online mode One modul...

Page 406: ...ctive step sampling trace execution flag OFF Trace not being executed ON Trace execution under way Set when sampling trace is being executed Reset when sampling trace is completed or suspended M9182 SM1182 SM821 Active step sampling trace permission OFF Trace disable suspend ON Trace enable Selects sampling trace execution enable disable ON Sampling trace execution is enabled OFF Sampling trace ex...

Page 407: ...sults OFF YES ON NO Depends on whether or not the link parameter setting of the master station in tier two matches that of the master station in tier three in a three tier system Valid only for the master stations in a three tier system M9208 SM1208 Sets master station B and W transmission range for lower link master stations only OFF Transmits to tier2 and tier 3 ON Transmits to tier2 only Depend...

Page 408: ...N Abnormal Depends on the error condition of the forward loop line M9242 SM1242 Reverse loop line error OFF Normal ON Abnormal Depends on the error condition of the reverse loop line M9243 SM1243 Loopback implementation OFF Loopback not being conducted ON Loopback implementation Depends on whether or not loopback is occurring at the local station M9246 SM1246 Data not received OFF Reception ON No ...

Page 409: ...peration is hot start when the CPU operation is switched for a redundant system S Initial New SM1515 Output hold mode OFF Output reset ON Output hold Turns on when the output mode during a stop error is output hold S Each END New SM1516 Operation system status OFF Control system ON Standby system Turns on when the CPU operation system status is the standby system S Status change New SM1517 CPU sta...

Page 410: ...1567 SM1567 Block 48 SM1568 SM1568 Block 49 SM1569 SM1569 Block 50 SM1570 SM1570 Block 51 SM1571 SM1571 Block 52 SM1572 SM1572 Block 53 SM1573 SM1573 Block 54 SM1574 SM1574 Block 55 SM1575 SM1575 Block 56 SM1576 SM1576 Block 57 SM1577 SM1577 Block 58 SM1578 SM1578 Block 59 SM1579 SM1579 Block 60 SM1580 SM1580 Block 61 SM1581 SM1581 Block 62 SM1582 SM1582 Block 63 SM1583 Data tracking transmission ...

Page 411: ...ntact STOP status Turns on when in the STOP status S Each END New SM1654 PAUSE contact PAUSE status Turns on when in the PAUSE status S Each END New SM1655 STEP RUN contact STEP RUN status Turns on when in the STEP RUN status S Each END New Q4AR 1 Stores other system CPU diagnostic information and system information 2 This shows the special relay SM for the host system CPU 12 For redundant system ...

Page 412: ...lock 40 SM1752 SM1752 Block 41 SM1753 SM1753 Block 42 SM1754 SM1754 Block 43 SM1755 SM1755 Block 44 SM1756 SM1756 Block 45 SM1757 SM1757 Block 46 SM1758 SM1758 Block 47 SM1759 SM1759 Block 48 SM1760 SM1760 Block 49 SM1761 SM1761 Block 50 SM1762 SM1762 Block 51 SM1763 SM1763 Block 52 SM1764 SM1764 Block 53 SM1765 SM1765 Block 54 SM1766 SM1766 Block 55 SM1767 SM1767 Block 56 SM1768 SM1768 Block 57 S...

Page 413: ...wer supply is turned ON or when going from STOP to RUN Status change Set only when there is a change in status Error Set when error occurs Instruction execution Set when instruction is executed Request Set only when there is a user request through SM etc Corresponding ACPU M9 Indicates corresponding special register in ACPU D9 Change and notation when there has been a change in contents Items indi...

Page 414: ...48 sec past the hour H3548 Seconds 0 to 59 S Error New SD4 Error information categories Error information category code Category codes which help indicate what type of information is being stored in the common information areas SD5 through SD15 and the individual information areas SD16 through SD26 are stored here Individual information category codes Common information category codes B15 B7 B0 B8...

Page 415: ...ule loaded in the MELSECNET H remote I O station the network number is stored into the upper 8 bits and the station number into the lower 8 bits Use the I O No to check the module where the fuse blown or I O verify error occurred 2 File name Drive name Number SD5 SD6 SD7 SD8 SD9 SD10 SD11 SD12 SD13 SD14 SD15 Meaning Drive 2EH File name ASCII code 8 characters Vacant 42H B 41H A 44H D 43H C 46H F 4...

Page 416: ...H 4 4 Contents of pattern data SFC block designation present 1 absent 0 0 0 0 0 to 0 1 2 3 4 15 14 to SFC step designation present 1 absent 0 SFC transition designation present 1 absent 0 Not used Bit number S Error New Rem SD15 Error common information Error common information 5 Switch cause Switch direction 0 standby system to control system 1 control system to standby system Number SD5 SD6 SD7 ...

Page 417: ...D20 SD21 SD22 SD23 SD24 SD25 SD26 Meaning 2EH File name ASCII code 8 characters Extension ASCII code 3 characters Pattern Block No Step No transition No Sequence step No L Sequence step No H Contents of pattern data SFC block designation present 1 absent 0 0 0 0 0 to 0 1 2 3 4 15 14 to SFC step designation present 1 absent 0 SFC transition designation present 1 absent 0 Not used Bit number 4 Param...

Page 418: ...tection Number of times for AC DC DOWN Every time the input voltage falls to or below 85 AC power 65 DC power of the rating during calculation of the CPU module the value is incremented by 1 and stored in BIN code S Error D9005 Rem SD54 MINI link errors Error detection state 1 The relevant station bit goes ON when any of the Installed MINI S3 X n 0 X n 20 X n 6 n 26 X n 7 n 27 or X n 8 X n 28 goes...

Page 419: ...0 151 210 0 0 0 0 0 0 0 0 0 0 0 210 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Number of annunciators detected Number detected SET F50 SET F25 SET F99 RST F25 SET F15 SET F70 SET F65 SET F38 SET F110 SET F151 SET F210LEDR S Instruction execution New SD80 CHK nu...

Page 420: ...Memory card switch Always OFF 3 DIP switch B8 through BC correspond to SW1 through SW5 of system setting switch 1 0 OFF 1 ON BD through BF are vacant S Every END processing New QCPU The CPU switch status is stored in the following format B15 B12B11 B8 B7 B4 B3 B0 Vacant 3 2 1 1 CPU key Status of switch 0 RUN 1 STOP 2 L CLR 2 Memory cards switch B4 corresponds to card A and B5 corresponds to card B...

Page 421: ...ff Bit pattern of LED that is turned off Stores bit patterns of LEDs turned off Only USER and BOOT enabled Turned off at 1 not turned off at 0 U New QnA The operating status of the remote I O module is stored in the following format B15 B4 B3 B0 1 Vacant 1 Remote I O module operating status Always 2 STOP S Always New Remote The CPU operating status is stored as indicated in the following figure B1...

Page 422: ...ts and month are stored as BCD code at SD210 as shown below B15 B12B11 B8 B7 B4 B3 B0 Year Month Example July 1993 H9307 to to to to D9025 SD211 Clock data Clock data day hour The day and hour are stored as BCD code at SD211 as shown below B15 B12B11 B8 B7 B4 B3 B0 Day Hour Example 31st 10 a m H3110 to to to to D9026 SD212 Clock data Clock data minute second The minutes and seconds after the hour ...

Page 423: ...pansion 3 Expansion 2 Expansion 1 Main Expansion 7 Expansion 6 Expansion 5 Expansion 4 SD244 B15 B12 B11 B8 B7 B4 B3 B0 As shown above each area stores the number of slots being installed S Initial New QCPU Remote SD250 Loaded maximum I O Loaded maximum I O No When SM250 goes from OFF to ON the upper 2 digits of the final I O number plus 1 of the modules loaded are stored as BIN values S Request E...

Page 424: ...A SD290 Number of points allocated for X Stores the number of points currently set for X devices SD291 Number of points allocated for Y Stores the number of points currently set for Y devices SD292 Number of points allocated for M Stores the number of points currently set for M devices Rem SD293 Number of points allocated for L Stores the number of points currently set for L devices SD294 Number o...

Page 425: ...read with the ERRORRD instruction S Initial New SD348 to SD354 Information from 2nd module Configuration is identical to that for the first module SD355 to SD361 Information from 3rd module Configuration is identical to that for the first module SD362 to SD368 Ethernet information Information from 4th module Configuration is identical to that for the first module S Initial New QCPU Remote SD340 No...

Page 426: ...he host CPU is stored PLC No 1 1 PLC No 2 2 PLC No 3 3 PLC No 4 4 S Initial New QCPU function Ver B or later 3 System clocks counters Number Name Meaning Explanation Set by When set Corresponding ACPU D9 Corresponding CPU SD412 1 second counter Number of counts in 1 second units Following programmable controller CPU module RUN 1 is added each second Count repeats from 0 to 32767 to 32768 to 0 S St...

Page 427: ...ts Stores maximum value of scan time excepting the first scan in 1 ms units Range from 0 to 65535 D9019 format change SD527 Maximum scan time Maximum scan time in 100 µs units Stores maximum value of scan time excepting the first scan in 100 µs units Range of 000 to 900 S Every END processing New SD528 Current scan time in 1 ms units Stores current scan time for low speed execution type program in...

Page 428: ...ecution type programs in 1 ms units Stores low speed program execution time during 1 scan in 1 ms units Range from 0 to 65535 Stores each scan SD547 Execution time for low speed execution type programs Execution time for low speed execution type programs in 100 µs units Stores low speed program execution time during 1 scan in 100 µs units Range of 000 to 900 Stores each scan S Every END processing...

Page 429: ...use when ON The significance of these bit patterns is indicated below B0 Boot operation QBT B1 Parameters QPA B2 Device comments QCD B3 Device initial value QDI B4 File register R QDR B5 Trace QTS B6 Not used B7 Not used B8 Not used B9 CPU fault history QFD BA Not used BB Local device QDL BC Not used BD Not used BE Not used BF Not used S Status change New QCPU The use conditions for memory card A ...

Page 430: ...use when ON The significance of these bit patterns is indicated below B0 Boot operation QBT B1 Parameters QPA B2 Device comments QCD B3 Device initial value QDI B4 File R QDR B5 Sampling trace QTS B6 Status latch QTL B7 Program trace QTP B8 Simulation data QDS B9 CPU fault history QFD B10 SFC trace QTR B11 Local device QDL B12 Not used B13 Not used B14 Not used B15 Not used SD624 Memory card B use...

Page 431: ...orresponding ACPU D9 Corresponding CPU SD705 SD706 Mask pattern Mask pattern During block operations turning SM705 ON makes it possible to use the mask pattern being stored at SD705 or at SD705 and SD706 if double words are being used to operate on all data in the block with the masked values U New SD714 Number of vacant communicati on request registration areas 0 to 32 Stores the number of vacant...

Page 432: ...8th character 29th character 30th character 31st character 32nd character 33rd character 34th character 35th character 36th character 37th character 38th character 39th character 40th character 41st character 42nd character 43rd character 44th character 45th character 46th character 47th character 48th character 49th character 50th character 51st character 52nd character 53rd character 54th charac...

Page 433: ...ame with extension from point in time when status latch was conducted as ASCII code SD806 SD807 SD808 SD809 SD810 SD811 First character Second character Third character Fourth character Fifth character Sixth character seventh character Eighth character B15 B8 to B7 B0 to First character of extension 2EH 2nd character of extension Third character of extension S During execution New SD812 Stores ste...

Page 434: ... to 1st character of extension 2EH 2nd character of extension 3rd character of extension S Status change New SD910 SD911 SD912 SD913 SD914 SD915 SD916 SD917 SD918 SD919 SD920 SD921 SD922 SD923 SD924 SD925 RKEY input RKEY input Stored in sequence that PU key code was entered SD910 SD911 SD912 SD913 SD914 SD915 B15 B8 B7 B0 SD916 SD917 SD918 SD919 SD920 SD921 SD922 SD923 SD924 SD925 1st character 2n...

Page 435: ...cial register for QCPU QnACPU 2 For the device numbers for which is specified special register after conversion can be used 3 Device numbers for which is specified do not function for QCPU QnACPU Special Register List ACPU Special Conversion Special Register after Conversion Special Register for Modification Name Meaning Details Corresponding CPU D9000 SD1000 Fuse blown Number of module with blown...

Page 436: ...ule is used 1 is added at occurrence of an instantaneous power failure of within 10ms The value is stored in BIN code It is reset when power is switched from OFF to ON D9005 SD1005 AC DOWN counter Number of times for AC DOWN When the DC power supply module is used 1 is added at occurrence of an instantaneous power failure of within 1ms The value is stored in BIN code It is reset when power is swit...

Page 437: ...elow are stored in SD203 CPU key switch Remains the same in remote RUN STOP mode 0 RUN 1 STOP 2 3 STEP RUN Remote RUN STOP by parameter setting PAUSE 1 Remote RUN STOP by computer instruction execution STOP Status in program Except below B15 B12 B11 B8 B7 B4 B3 B0 0 RUN 1 STOP 2 PAUSE 1 0 RUN 1 STOP 2 PAUSE 1 0 1 to to to to 1 When the CPU is in RUN mode and SM1040 is off the CPU remains in RUN mo...

Page 438: ... Clock data Clock data minute second Stores the Minute and second in BCD B15 B12 B11 B8 B7 B4 B3 B0 Minute Second Example 35 minutes 48 seconds H3548 to to to to D9028 SD1028 SD213 Clock data Clock data day of week Stores the day of the week in BCD B15 B12 B11 B8 B7 B4 B3 B0 Example Friday H0005 0 must be set Day of the week 0 1 2 3 4 5 6 Sunday Monday Tuesday Wednesday Thursday Friday Saturday to...

Page 439: ...re error occurred Stores the transfer condition number in which error 84 occurred in the SFC program in BIN code Stored 0 when errors 80 81 82 and 83 occurred D9054 SD1054 Error sequence step Sequence step number where error occurred Stores the sequence step number of transfer condition and operation output in which error 84 occurred in the SFC program in BIN code D9055 SD1055 SD812 Status latch S...

Page 440: ... 0 0 0 0 0 0 0 1 Y7 B0 SD1100 SD1101 SD1107 1 YCO Indicates fuse blow 1 Y7 30 Fuse blow check is executed also to the output module of remote I O station If normal status is restored clear is not performed Therefore it is required to perform clear by user program D9108 SD1108 D9109 SD1109 D9110 SD1110 D9111 SD1111 D9112 SD1112 D9113 SD1113 D9114 SD1114 Step transfer monitoring timer setting Timer ...

Page 441: ... to 2047 for AuA and AnU is turned on by SET F F number which has turned on is entered into SD64 to SD71 in due order in BIN code F number which has been turned off by RST F is erased from SD64 to SD71 and the contents of data registers succeeding the data register where the erased F number was stored are shifted to the preceding data registers By executing LEDR instruction the contents of SD64 to...

Page 442: ...to numbers 1 to 16 D9203 SD1203 Local station link type Stores conditions for up to numbers 17 to 32 Stores whether the slave station corresponds to MELSECNET or MELSECNET11 Bits corresponding to the MELSECNET 11 stations become 1 Bits corresponding to the MELSECNET stations or unconnected become 0 SD1202 SD1203 SD1241 SD1242 b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0 L16 L15 L14 L13 L1...

Page 443: ...main 1 and 3 Reset using sequence program or the RESET key D9210 SD1210 Number of retries Stored as cumulative value Stores the number of retry times due to transmission error Count stops at maximum of FFFFH RESET to return the count to 0 D9211 SD1211 Number of times loop selected Stored as cumulative value Stores the number of times the loop line has been switched to reverse loop or loopback Coun...

Page 444: ...s monitored its value is 8208 2010H D9224 SD1224 Stores conditions for up to numbers 1 to 16 D9225 SD1225 Stores conditions for up to numbers 17 to 32 D9226 SD1226 Stores conditions for up to numbers 33 to 48 D9227 SD1227 Local station and remote I O station initial communications underway Stores conditions for up to numbers 49 to 64 Stores the local or remote station numbers while they are commun...

Page 445: ...le When the forward loop line of station 5 has an error bit 8 of SD1232 become 1 and when SD1232 is monitored its value is 256 100H D9240 SD1240 Number of times communications errors detected Stores cumulative total of receive errors Stores the number of times the following transmission errors have been detected CRC OVER AB IF Count is made to a maximum of FFFFH RESET to return the count to 0 D924...

Page 446: ...17 L33 L49 L10 L9 L8 L7 L6 L5 L4 L3 L2 L1 Bit Device number The bit corresponding to the station number which is in error becomes 1 Example When local station 12 is in error bit 11 of SD1252 becomes 1 and when SD1252 is monitored its value is 2048 800H QnA 11 Fuse blown module Number Name Meaning Explanation Set by When set Corresponding ACPU D9 Corresponding CPU SD1300 D9100 SD1301 D9101 SD1302 D...

Page 447: ...on refer to 11 3 S Error New Rem 13 For redundant systems Host system CPU information 1 for Q4AR only SD1510 to SD1599 are only valid for redundant systems They are all set to 0 for standalone systems Number Name Meaning Explanation Set by When set Corresponding ACPU D9 Corresponding CPU SD1500 SD1501 Basic period Basic period tome Set the basic period 1 second units use for the process control in...

Page 448: ...D8 SD1608 SD9 SD1609 SD10 SD1610 SD11 SD1611 SD12 SD1612 SD13 SD1613 SD14 SD1614 SD15 SD1615 S Each END New SD1616 SD1617 SD1618 SD1619 SD1620 SD1621 SD1622 SD1623 SD1624 SD1625 SD1626 Error individual information Error individual information Stores the individual information for the error code Refer to SD16 to SD26 for the storage status SD16 SD1616 SD17 SD1617 SD18 SD1618 SD19 SD1619 SD20 SD1620...

Page 449: ... 1st to 12th points are allocated in order beginning from the sequence start generator module installed closest to the High Performance model QCPU 2 The internal times shown are the default setting times These times can be designated in 0 5 ms units through a 0 5 to 1000 ms range set at the PLC system tab screen in the PLC Parameter dialog box 3 When an error interruption with I32 error that stops...

Page 450: ...App 59 App 59 MELSEC Q APPENDICES MEMO ...

Page 451: ... access input 10 6 Direct access output 10 9 Direct mode 4 41 Drive Number 6 5 Duty 10 25 DX Direct access input 10 6 DY Direct access output 10 9 E E Real numbers 10 62 Edge relay V 10 16 END processing 4 34 Enforced ON OFF 7 31 Enforced ON OFF for external I O 1 4 Execute type 4 10 Execution time measurement 7 39 Execution time of the low speed execution type program 4 19 Extension 6 2 6 4 F F A...

Page 452: ...rocessing 4 23 Low speed execution monitor time 4 24 Low speed execution type program 4 19 Low speed retentive timer ST 10 21 Low speed scan timer 4 23 Low speed timer T 10 19 M M Internal relay 10 10 Macro instruction argument device VD 10 60 Main routine program 4 3 Memory card 6 11 Monitor condition setting 7 25 Monitoring the local devices 7 30 N N Nesting 10 52 O Output Y 10 8 P P Pointer 10 ...

Page 453: ...ng the number of stages 5 2 SFC block device BL 10 58 SFC transition device TR 10 58 Single precision floating decimal point data 4 48 Size File capacity 6 2 SM Special relay 10 33 SM415 2n ms clock 8 9 Link special register SW 10 30 Link special relay SB 10 18 Special register SD 10 34 Special relay SM 10 33 SRAM card 6 11 ST Retentive timer OUT ST 10 21 Stand by type program 4 25 Standard RAM 6 ...

Page 454: ...f production 1 Mitsubishi shall accept onerous product repairs for seven 7 years after production of the product is discontinued Discontinuation of production shall be notified with Mitsubishi Technical Bulletins etc 2 Product supply including repair parts is not possible after production is discontinued 3 Overseas service Overseas repairs shall be accepted by Mitsubishi s local overseas FA Center...

Page 455: ...tates and other countries Pentium is a registered trademark of Intel Corporation in the United States and other countries Ethernet is a registered trademark of Xerox Co Ltd in the United States Other company and product names herein are either trademarks or registered trademarks of their respective owners ...

Page 456: ... without notice MODEL MODEL CODE QCPU Q U KI E 13JL98 SH NA 080038 D 0204 MEE High Performance Model QCPU Q Mode When exported from Japan this manual does not require application to the Ministry of Economy Trade and Industry for service transaction permission HEAD OFFICE 1 8 12 OFFICE TOWER Z 14F HARUMI CHUO KU 104 6212 JAPAN NAGOYA WORKS 1 14 YADA MINAMI 5 HIGASHI KU NAGOYA JAPAN ...

Reviews: