background image

Programmable Controller

User's Manual

(Function Explanation,

Program Fundamentals)

QnUCPU

INDUSTRIAL AUTOMATION

MITSUBISHI ELECTRIC

MITSUBISHI ELECTRIC

01 12 2008
SH(NA)-080807ENG
Version A

Summary of Contents for melsec q00ucpu

Page 1: ...Programmable Controller User s Manual Function Explanation Program Fundamentals QnUCPU INDUSTRIAL AUTOMATION MITSUBISHI ELECTRIC MITSUBISHI ELECTRIC 01 12 2008 SH NA 080807ENG Version A ...

Page 2: ......

Page 3: ......

Page 4: ... levels DANGER and CAUTION Under some circumstances failure to observe the precautions given under CAUTION may lead to serious consequences Make sure that the end users read this manual and then keep the manual in a safe place for future reference DANGER CAUTION Indicates that incorrect handling may cause hazardous conditions resulting in death or severe injury Indicates that incorrect handling ma...

Page 5: ... may turn on when an error occurs in the part such as I O control part where the CPU module cannot detect any error To ensure safety operation in such a case provide a safety mechanism or a fail safe circuit external to the programmable controller For a fail safe circuit example refer to Chapter 10 LOADING AND INSTALLATION in the QCPU User s Manual Hardware Design Maintenance and Inspection 3 Outp...

Page 6: ... program to ensure that the entire system will always operate safely For program modification and operating status change read relevant manuals carefully and ensure the safety before operation Especially in the case of a control from an external device to a remote programmable controller immediate action cannot be taken for a problem on the programmable controller due to a communication failure To...

Page 7: ...ck the connection for looseness Poor contact may cause incorrect input or output When using a memory card fully insert it into the memory card slot Check that it is inserted completely Poor contact may cause malfunction Shut off the external power supply for the system in all phases before mounting or removing the module Failure to do so may result in damage to the product A module can be replaced...

Page 8: ...sconnected when the terminal screw comes loose resulting in failure Check the rated voltage and terminal layout before wiring to the module and connect the cables correctly Connecting a power supply with a different voltage rating or incorrect wiring may cause a fire or failure Connectors for external connection must be crimped or pressed with the tool specified by the manufacturer or must be corr...

Page 9: ...tion against electric shock For wiring methods refer to the QCPU User s Manual Hardware Design Maintenance and Inspection DANGER Do not touch any terminal while power is on Doing so will cause electric shock Correctly connect the battery connector Do not charge disassemble heat short circuit solder or throw the battery into the fire Doing so will cause the battery to produce heat explode or ignite...

Page 10: ...LSECNET H remote I O station or in the system where a CPU module supporting the online module change function is used Note that there are restrictions on the modules that can be replaced online and each module has its predetermined replacement procedure For details refer to the relevant sections in the QCPU User s Manual Hardware Design Maintenance and Inspection and in the manual for the correspo...

Page 11: ...other wastes according to the local regulations For details of the Battery Directive in EU countries refer to the QCPU User s Manual Hardware Design Maintenance and Inspection CAUTION When transporting lithium batteries follow the transportation regulations For details of the regulated models refer to the QCPU User s Manual Hardware Design Maintenance and Inspection ...

Page 12: ...al number Revision Dec 2008 SH NA 080807ENG A First edition This manual confers no industrial property rights or any rights of any other kind nor does it confer any patent licenses Mit subishi Electric Corporation cannot be held responsible for any problems involving industrial property rights which may occur as a result of using the contents noted in this manual C ...

Page 13: ...A 10 Memo ...

Page 14: ...duct correctly Relevant CPU module Remark This manual does not describe the specifications of the power supply modules base units extension cables memory cards and batteries For details of the specifications refer to the following QCPU User s Manual Hardware Design Maintenance and Inspection For multiple CPU systems refer to the following QCPU User s Manual Multiple CPU System CPU module Model Uni...

Page 15: ...2 3 Settings When Program is Divided 2 13 2 3 1 Initial execution type program 2 17 2 3 2 Scan execution type program 2 20 2 3 3 Stand by type program 2 21 2 3 4 Fixed scan execution type program 2 26 2 3 5 Changing the program execution type 2 30 2 4 Data Used in Sequence Programs 2 32 2 4 1 BIN Binary Code 2 35 2 4 2 HEX Hexadecimal 2 37 2 4 3 BCD Binary coded Decimal 2 38 2 4 4 Real number Floa...

Page 16: ...5 Standard RAM 5 12 5 1 6 Memory card 5 14 5 1 7 Writing to the Flash card by GX Developer 5 18 5 1 8 Operating the program in the memory card boot operation 5 23 5 1 9 Details of written files 5 27 5 1 10 Specifying valid parameters parameter valid drive setting 5 28 5 2 Program File Structure 5 30 5 3 File Operations by GX Developer and Handling Precautions 5 32 5 3 1 File operations 5 32 5 3 2 ...

Page 17: ...iple GX Developers 6 91 6 15 1 Simultaneous monitoring from multiple GX Developers function 6 91 6 15 2 Write during RUN function from multiple GX Developers 6 93 6 16 Watchdog Timer WDT 6 95 6 17 Self diagnostic Function 6 97 6 17 1 LEDs indicating errors 6 104 6 17 2 Error clear 6 104 6 18 Error History 6 105 6 19 System Protection 6 106 6 19 1 Password registration 6 106 6 19 2 Remote password ...

Page 18: ... 94 9 1 Device List 9 1 9 2 Internal User Device 9 3 9 2 1 Input X 9 6 9 2 2 Output Y 9 8 9 2 3 Internal relay M 9 9 9 2 4 Latch relay L 9 10 9 2 5 Annunciator F 9 11 9 2 6 Edge relay V 9 15 9 2 7 Link relay B 9 16 9 2 8 Link special relay SB 9 18 9 2 9 Step relay S 9 19 9 2 10 Timer T 9 20 9 2 11 Counter C 9 27 9 2 12 Data register D 9 31 9 2 13 Link register W 9 32 9 2 14 Link special register S...

Page 19: ...ces 9 78 9 12 1 SFC block device BL 9 78 9 12 2 Network No specification device J 9 78 9 12 3 I O No specification device U 9 79 9 12 4 Macro instruction argument device VD 9 80 9 13 Constants 9 81 9 13 1 Decimal constant K 9 81 9 13 2 Hexadecimal constant H 9 81 9 13 3 Real number E 9 82 9 13 4 Character string 9 83 9 14 Convenient Usage of Devices 9 84 9 14 1 Global device 9 84 9 14 2 Local devi...

Page 20: ...p 23 Appendix 3 3 1 Instructions not supported in the Universal model QCPU and replacing methods App 23 Appendix 3 3 2 Replacing programs using multiple CPU transmission dedicated instructions App 25 Appendix 3 3 3 Program replacement examples App 26 Appendix 3 4 Functions App 40 Appendix 3 4 1 Floating point operation instructions App 40 Appendix 3 4 2 Error check processing for floating point da...

Page 21: ...guring a multiple CPU system system configuration I O numbers communication between CPU modules and communication with the input output modules and intelligent function modules QnUCPU Userís Manual Communication via Built in Ethernet Port SH 080811ENG 13JZ29 Functions for the communication via built in Ethernet port of the CPU module Programming manual QCPU Programming Manual Common Instructions S...

Page 22: ...e Userís Manual Application SH 080010 13JL89 E mail function programmable controller CPU status monitoring function communication via MELSECNET H or MELSECNET 10 communication using the data link instructions and file transfer function FTP server of the Ethernet module CC Link System Master Local Module Userís Manual SH 080394E 13JR64 System configuration performance specifications functions handl...

Page 23: ... Note detailed explanation Reference Note icon The section in this manual or another relevant manual that can be referred to is shown with The chapter of the current page can be easily identified by this indication on the right side Chapter The detailed note corresponding to each icon is described Section title The section number and title of the current page can be easily identified The detailed ...

Page 24: ...Q06CCPU V H01 Q06CCPU V and Q06CCPU V B C Controller modules CPU module model QnUD H CPU Generic term for the Q03UDCPU Q04UDHCPU Q06UDHCPU Q10UDHCPU Q13UDHCPU Q20UDHCPU and Q26UDHCPU Base unit type Base unit Generic term for the main base unit extension base unit slim type main base unit redundant power main base unit redundant type extension base unit and multiple CPU high speed main base unit Ma...

Page 25: ... Ethernet Abbreviation for the Ethernet network system CC Link Abbreviation for the Control Communication Link Memory card Memory card Generic term for the SRAM card Flash card and ATA card SRAM card Generic term for the Q2MEM 1MBS Q2MEM 2MBS Q3MEM 4MBS and Q3MEM 8MBS SRAM cards Flash card Generic term for the Q2MEM 2MBF and Q2MEM 4MBF Flash cards ATA card Generic term for the Q2MEM 8MBA Q2MEM 16M...

Page 26: ...ed only once when the module is powered on or reset 2 Refresh processing with input and output modules Section 3 2 The CPU module takes on off data from the input module or intelligent function module and outputs on off data to the output module or intelligent function module 3 Program operation processing Section 3 3 The CPU module sequentially executes the program stored in the module from the s...

Page 27: ...e CPU module executes the programs stored in the program memory To execute the programs stored in a memory card the programs need to be booted to the program memory Section 5 1 8 when the CPU module is powered off and then on or reset Figure 1 2 Executing programs Figure 1 3 Executing programs stored in a memory card CPU module The CPU module executes the programs stored here Program memory Parame...

Page 28: ...ltiple files 1 Structuring in one program Structured programming is available by creating one program as a collection of three program sections main routine program Section 2 2 1 subroutine program Section 2 2 2 and interrupt program Section 2 2 3 Figure 1 4 Structuring in one program P8 RET RET Y10 Y11 Y12 P1 END FEND CALL P1 IRET I0 Main routine program Subroutine program 1 Subroutine program 2 ...

Page 29: ... processes 1 1 The processing contents divided according to the processes can further be divided and managed according to the functions 2 The execution order can be set in the Program tab of the PLC parameter dialog box Section 2 3 2 Figure 1 5 Structuring by dividing into multiple files Figure 1 6 Dividing into multiple files according to the processes GX Developer CPU module Multiple programs ca...

Page 30: ... tab of the PLC parameter dialog box Section 2 3 2 Figure 1 7 Dividing into multiple files according to the functions Program memory memory card Program A Initial processing Processing contents are divided according to the functions Main processing Communication processing Error processing Program B Program C Program D The execution order and conditions for program A to D can be set 1 ...

Page 31: ...ut pulse conversion required by using a differential contact Pulse conversion processing for inputs is no longer required with the use of a differential contacts and Figure 1 8 Specifying a bit of a word device Figure 1 9 Direct processing in units of one point Figure 1 10 Use of a differential contact D0 5 SET Y10 X0 SET D0 5 A bit specified word device turns on switches to 1 the 5th bit b5 of D0...

Page 32: ...12 The CPU module can read the data in the buffer memory address 12 of the Q64AD I O number X Y40 to X Y4F Specifying the buffer memory address Specifying the I O number of the intelligent function module Power supply module CPU module Input module 16 points Input module 16 points Input module 16 points Q64AD 16 points Q64AD 16 points Q62AD 16 points Output module 16 points Output module 16 points...

Page 33: ...version processing Figure 1 14 Using real numbers and character string constants Figure 1 15 Data processing with the table processing instruction X0 X1 PLS M0 M0 Y8 X10 X11 PLS M10 M10 Y18 X170 X171 PLS M170 M170 Y178 X0Z0 X1Z0 Y8Z2 FOR n NEXT V0Z1 Multiple number n of similar programs can be executed by one description Real number addition instruction Real number data X0 E P E1 23 E1 23 E3 45 E4...

Page 34: ...rams In addition creating and managing programs become easier Subroutine programs can be created within the same program and called Subroutine programs in other programs can also be called by using the common pointer Figure 1 16 Subroutine program sharing R0 K4X20 MOV SM400 R0 K4X0 MOV RET M0 M0 P1000 M10 P1000 CALLP 0 M0 P1000 CALLP 0 Program A Program B Calling P1000 Calling P1000 Common pointer...

Page 35: ...Calling subroutine program with argument passing FD2 FD1 MOV SM400 FD2 FD0 MOV RET FEND END M0 M0 M10 R10 K4X10 W10 P0 CALLP P0 100 0 Always on Argument from FD2 1 Source data Destination data M0 R0 K4X0 W0 P0 CALLP Argument from FD2 1 Argument to FD1 Argument to FD0 Argument to FD1 Argument to FD0 Argument specification Argument specification Subroutine program specification Main routine program ...

Page 36: ...n floating point operation instructions 64 bit instructions are available as well as the existing single precision floating point operation instructions Section 2 4 4 This enables more accurate analog control and positioning control 4 Using the file register area as the data register and link register The file register ZR area can be used as an pseudo extended area 3 of the data register D and lin...

Page 37: ...ing the MELSEC communication protocol hereafter MC protocol by connecting a RS 232 interface and personal computer or HMI The CPU module functions are added at the update of serial number of CPU module or GX Developer version For functions added by the update refer to Appendix 2 Figure 1 19 32 bit index modification Figure 1 20 Communication with the personal computer or HMI K1042431 Z0 DMOV ZR0Z0...

Page 38: ...king on the rating plate The rating plate is located on the side of the CPU module 2 Checking on the front of the module The serial number is printed on the rating plate on the front at the bottom of the module This applies only to the CPU module manufactured in mid September 2007 or later Figure 1 21 Rating plate Figure 1 22 Front of the module Serial number first five digits Relevant regulation ...

Page 39: ...e rating plate of the module is displayed in the Product No column Note that is displayed for the module that does not support the product number display The serial number displayed on the Product Information List screen of GX Developer may differ from that on the rating plate and on the front of the module The serial number on the rating plate and on the front of the module indicates the manageme...

Page 40: ... in the CPU module A sequence program consists of instructions such as sequence instructions basic instruction and application instruction Remark For the instructions used in sequence programs refer to the following QCPU Programming Manual Common Instructions Figure 2 1 Sequence program T0 X0 X1 X41 M0 K100 T0 Y30 BIN K4X10 D0 FROM H5 K0 D10 K1 Sequence instruction Basic instruction Application in...

Page 41: ...ols such as contacts and coils used in ladder mode are replaced with dedicated instructions The following instructions are used for normally open contacts normally closed contacts and coils Normally open contact LD AND OR Normally closed contact LDI ANI ORI Coil OUT Remark There are two other types of programs that can be executed in the CPU module SFC programs and ST programs For details refer to...

Page 42: ...gram Subroutine program Interrupt program Figure 2 3 Comparison between ladder mode and list mode Figure 2 4 Sequence program classification X0 X1 X5 X6 X7 X2 X3 X4 Y10 0 10 END 0 LD X0 1 AND X1 2 LD X2 3 AND X3 4 ORB 5 OR X4 6 AND X5 7 AND X6 8 AND X7 9 OUT Y10 10 END 1 2 3 6 4 5 7 8 9 10 11 0 1 2 3 4 5 6 7 8 9 10 11 Ladder mode From left to right From top to bottom Program operations are execute...

Page 43: ...m restarts its operations from the step 0 When multiple programs are executed the main routine program operation after execution of the END or FEND instruction varies depending on the preset execution conditions Section 2 3 1 Remark For details of the END and FEND instructions refer to the following QCPU Programming Manual Common Instructions Figure 2 5 Main routine program END FEND END FEND Main ...

Page 44: ...ogramming a program which is executed only when a certain condition is satisfied as a subroutine program can shorten the scan time 3 Programming of subroutine programs a Programming location Create subroutine programs between the FEND and END instructions in the main routine program Subroutine programs can be managed as one separate program stand by type program Section 2 2 3 b Programming order W...

Page 45: ...grams are executed only when the corresponding interrupt factor occurs Figure 2 7 Interrupt program Figure 2 8 Interrupt program execution timing FEND EI IRET IRET END I0 I29 Main routine program Interrupt program I0 Interrupt program I29 Indicates the end of the main routine program Interrupt pointer Main routine program Interrupt program I0 Interrupt program I29 Interrupt program execution timin...

Page 46: ...gramming of interrupt programs a Programming location Create interrupt programs between the FEND and END instructions in the main routine program Interrupt programs can be managed as one separate program stand by type program Section 2 3 3 Figure 2 9 Programming location of interrupt programs FEND EI IRET IRET END I0 I29 Interrupt program I29 Interrupt program I0 Program A I0 FEN IRET IRET IRET Y1...

Page 47: ...e disabled DI so that any other interrupt processing will not be executed Do not execute the EI or DI instruction during interrupt program execution 3 Timer T and counter C Do not use the timer T and counter C in interrupt programs If more than one interrupts occur in one scan the timer T in the interrupt program cannot measure the time correctly If more than one interrupts occur in one scan or de...

Page 48: ...ion Remark For details of the IMASK instruction refer to the following QCPU Programming Manual Common Instructions b When an interrupt factor occurs in the STOP or PAUSE status The CPU module executes the interrupt program corresponding to the interrupt factor as soon as the interrupt program execution status is enabled after the CPU module status is changed to RUN Figure 2 11 When an interrupt fa...

Page 49: ...factors of I0 to I15 I45 and I50 to I255 are stored only once and then the interrupt program corresponding to each stored interrupt factor is executed after completion of current interrupt program execution The interrupt factors of I28 to I31 and fixed scan execution type programs are all stored and then all the interrupt programs corresponding to interrupt factors are executed after completion of...

Page 50: ...e interrupt program In the interrupt program do not use any refresh target device Remark For the Block data assurance per station setting refer to the following Reference manual for each network module f Interrupt during END processing When the constant scan function is used and an interrupt factor occurs during the waiting time in END processing an interrupt program corresponding to the interrupt...

Page 51: ... the processing of the instruction being executed If the same device is used for the main routine program and interrupt program device data may become inconsistent In this case take the following measures to prevent device data inconsistency 1 Moving device data to another device Do not directly specify the device where the data is written by the interrupt program in the main routine program Use t...

Page 52: ...quence program by two or more designers 2 Settings required for execution of multiple programs To execute multiple programs in the CPU module names file names and execution conditions of the programs must be set Set them in the Program tab of the PLC parameter dialog box Figure 2 15 Control by multiple programs Figure 2 16 Program setting Control data A Control by one program Control data B Contro...

Page 53: ...e in every scan starting in the next scan of which the initial execution type program is executed and later Section 2 3 2 3 Stand by type Wait This program is executed only when its execution is requested Section 2 3 3 4 Fixed scan execution type Fixed scan This program is executed at time intervals specified with fixed scan interval and unit Section 2 3 4 Fixed scan interval Fixed scan interval E...

Page 54: ... box The default is set to Use PLC file setting When Not used is selected data in the local device is not saved or restored when the program execution type is changed 注 1 Figure 2 17 File usability setting Note2 1 The Q00UJCPU does not support the file usability setting When using the file usability setting for the Q02UCPU Q03UDCPU Q04UDHCPU Q06UDHCPU Q13UDHCPU or Q26UDHCPU check the versions of t...

Page 55: ...uired Figure 2 18 Program sequence Powered off on STOP RUN Initial execution type program Fixed scan execution type program Scan execution type program Stand by type program END processing Executed only once when the CPU module is powered on or its status is switched from STOP to RUN Executed at specified time intervals Program execution sequence Program execution when any subroutine program or in...

Page 56: ...sing is performed In the next scan and later scan execution type programs are executed Figure 2 19 When processing performed only once is separated as an initial execution type program Figure 2 20 Execution order of the initial execution type programs When an initial execution type program is used Program A Program B Control by one program Processing performed only once Processing performed in eve...

Page 57: ...ed in the special register is 0 1ms Even if the WDT instruction instruction that resets the watchdog timer is executed in the sequence program the measurement of the initial scan time continues 3 Execution of an interrupt program or fixed scan execution type program When an interrupt program or fixed scan execution type program is executed before completion of the initial execution type program ex...

Page 58: ...efault value is set a When the initial scan time exceeds the preset initial execution monitoring time WDT ERROR occurs and the CPU module stops program operations Set a time value so that the initial execution monitoring time becomes longer than actual initial scan time An error of the measurement value is 10ms for the initial execution monitoring time setting If the initial execution monitoring t...

Page 59: ...completing all the scan execution type program execution If an interrupt program or fixed scan execution type program is executed execution time of the executed program will be added to the scan time Figure 2 23 Execution order of the scan execution type programs 1st scan 2nd scan 3rd scan 4th scan END processing Initial execution type program Scan execution type program A Scan execution type prog...

Page 60: ...program Multiple subroutine programs and or interrupt programs can be created and managed in a single stand by type program b Program type change Stand by type program is used to create and store programs available in all systems Only required programs will be executed For example a program preset as a stand by Wait type program in the PLC parameter dialog box can be changed to a scan execution ty...

Page 61: ...subroutine and or interrupt programs in a single stand by type program When creating subroutine and or interrupt programs in a single stand by type program start the program from the step 0 The FEND instruction used in creation of a subroutine or interrupt program is not required after a main routine program Figure 2 25 Creating subroutine programs in a single stand by type program P508 RET RET Y1...

Page 62: ...restrictions on programming of subroutine and interrupt programs refer to the following Subroutine program Section 2 2 2 Interrupt program Section 2 3 2 Use common pointers Section 9 10 2 If local pointers are used subroutine programs in a stand by type program cannot be executed from any other program Figure 2 26 Operation when the subroutine and interrupt programs in the stand by type program ar...

Page 63: ... by type program Before execution of the PSCAN and PSTOP instructions After execution of the PSCAN and PSTOP instructions Scan execution type program ABC The PSCAN instruction changes the program DEF to a scan execution type program The PSTOP instruction changes the program ABC to a stand by type program Stand by type program DEF Scan execution type program GHI Stand by type program ABC Scan execu...

Page 64: ... GHI and DEF are executed in the order set in the Program tab of the PLC parameter dialog box 4 Precautions on programming a Unavailable devices Unavailable devices depend on the program type subroutine program or interrupt program or the execution type changed by an instruction b Use of local devices For execution of a subroutine program using a local device refer to Section 9 14 2 Figure 2 28 Ex...

Page 65: ...ictions on programming refer to Section 2 2 3 2 d The restrictions on programming are the same as those for interrupt programs To execute a fixed scan execution type program execute the EI instruction in the initial execution type program or scan execution type program to enable interrupts Figure 2 29 Execution of a fixed scan execution type program Fixed scan interval END processing Scan executio...

Page 66: ...he interrupt program will be given priority c When the execution condition is established during link refresh The link refresh is suspended and a fixed scan execution type program is executed Even if the Block data assurance per station setting is enabled in the CC Link IE controller network or MELSECNET H network this setting does not work when a device set as a refresh target is used in the fixe...

Page 67: ... For how to save and restore data in the index register when the program execution type is changed refer to Section 2 2 3 4 The method is the same as that for interrupt programs Figure 2 31 When the execution condition is established during the waiting time Fixed scan interval END processing Scan execution type program Fixed scan execution type program 1 Waiting time 2 If processing is not complet...

Page 68: ...n the expression below The following shows an example of the increase in execution time of a fixed scan execution type program With the settings above the condition 1 will be 0 5ms 5ms The execution time of a fixed scan execution type program whose execution interval is set to 10ms increases 100ms 5 0 5 10 100 at the most Highest common factor of fixed scan execution interval 1 Interrupt disabled ...

Page 69: ...ecution type Remains unchanged Changes to the stand by type Turns off outputs in the next scan Changes to the stand by type in two scans later Initial execution type Changes to the scan execution type Changes to the stand by type Turns off outputs in the next scan Changes to the stand by type in two scans later Stand by type Changes to the scan execution type Remains unchanged No processing Fixed ...

Page 70: ...ng the execution type from the Program monitor list screen The execution type of programs can be changed on the screen opened by selecting Online Monitor Program monitor list Section 6 13 1 Figure 2 34 Execution type change example PSCAN ABC M0 PSTOP ABC M1 PSCAN DEF Control program When M0 turns on the program ABC is changed from a stand by type to a scan execution type program When M1 turns on t...

Page 71: ...of BIN HEX BCD and DEC decimal Table2 2 Numeric representations of BIN HEX BCD and DEC 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 16 10 1 0000 1 0110 17 11 1 0001 1 0111 47 2F 10 1111 100 0111 32766 7FFE 0111 1111 1111 1110 327...

Page 72: ...rogram operations regarding the set value as binary Therefore the program operations are not performed correctly b below b Using any numeric data regardless of the data type To convert the data set in binary coded decimal into binary which can be used in the CPU module use the BIN instruction The BIN instruction allows the CPU module to use any external numeric data regardless of the data type Rem...

Page 73: ...t show the values correctly To convert the data set in binary into binary coded decimal which can be used in the external indicator use the BCD instruction The BCD instruction allows the external indicator to display values in decimal Remark For details of the BCD instruction refer to the following manual QCPU Programming Manual Common Instructions Figure 2 36 Display of operation results in the C...

Page 74: ...it reaches 9 the next higher digit to the left is incremented and counting starts over at 0 In binary notation only the symbols 0 and 1 are used After a digit reaches 1 an increment resets it to 0 and the next digit to the left is incremented The numeric value becomes 10 which is equal to 2 in decimal Table2 3 shows the numeric representations in BIN and DEC Table2 3 Numeric representations in BIN...

Page 75: ... for each bit of registers Note that an unsigned binary number 0 to 65535 cannot be used in the most significant bit position since the most significant bit is a sign bit The most significant bit is 0 Positive The most significant bit is 1 Negative Figure 2 37 Numeric representations for registers in the CPU module b15 8192 Bit name Decimal value Most significant bit sign bit A value will be negat...

Page 76: ... zero to nine and AH to FH to represent values ten to fifteen After a digit reaches FH the next higher digit to the left is incremented ï 2 4 shows the numeric representations in BIN HEX and DEC 2 Numeric representation in HEX Each register such as the data register link register in the CPU module consists of 16 bits In the 16 bit configuration register 0 to FFFFH can be specified in hexadecimal T...

Page 77: ...meric representation in BCD Each register such as the data register link register in the CPU module consists of 16 bits Therefore the numeric values can be stored in each register are those in the range between 0 to 9999 in BCD Table2 5 Numeric representations in BIN BCD and DEC DEC Decimal BIN Binary BCD Binary coded Decimal 0 0000 0 1 0001 1 2 0010 10 3 0011 11 4 0100 100 5 0101 101 6 0110 110 7...

Page 78: ...Exponent The bit configuration and the meaning of each bit are described below 1 Sign The most significant bit b31 is the sign bit 0 Positive 1 Negative 2 Exponent The 8 bits b23 to b30 represent the excess n of 2n The following shows the excess n according to the binary values in b23 to b30 3 Mantissa Each of the 23 bits b0 to b22 represents the XXXXXX portion when the data is represented in bina...

Page 79: ...onent 1 7EH 01111110 2 Mantissa 100 00000 00000 00000 00000 2 In this case the value will be encoded as 3F400000H Values after the decimal point in binary is calculated as follows 0 1101 2 0 1101 2 2 1 2 2 2 4 0 5 0 25 0 0625 0 8125 10 0 1 1 0 1 The bit represents 2 1 The bit represents 2 2 The bit represents 2 3 The bit represents 2 4 Sign Exponent Mantissa 0 1 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0...

Page 80: ...63 is the sign bit 0 Positive 1 Negative 2 Exponent The 11 bits b52 to b62 represent the excess n of 2n The following shows the excess n according to the binary values in b52 to b62 3 Mantissa Each of the 52 bits b0 to b51 represents the XXXXXX portion when the data is represented in binary 1 XXXXXX Figure 2 40 Bit configuration of real number data Figure 2 41 Relation between the exponent and exc...

Page 81: ...11 1101 2 Mantissa 1000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 2 In this case the value will be encoded as 3FD8000000000000H Values after the decimal point in binary is calculated as follows 0 1101 2 0 1101 2 2 1 2 2 2 4 0 5 0 25 0 0625 0 8125 10 0 1 1 0 1 The bit represents 2 1 The bit represents 2 2 The bit represents 2 3 The bit represents 2 4 Sign Exponent Mantissa 0 100 0...

Page 82: ...le2 6 ASCII code character strings b8 b7 b6 b5 b4 b3 b2 b1 Low 0 0 0 0 0 0 1 2 3 4 5 6 7 8 9 A B C D E F 0 0 0 1 1 0 0 1 0 2 0 0 0 1 1 3 0 1 0 0 4 0 1 0 1 5 1 0 1 1 0 6 1 1 1 1 0 1 0 1 1 1 1 1 7 1 0 0 0 8 1 1 0 0 1 9 1 0 1 0 A 1 0 1 1 B 0 1 1 1 0 E F D C NULL SP Comma Minus Period z Under line _ 0 1 2 3 4 5 6 7 8 9 A B C D E F G H I J K L M N O a b c d e f g h i j k l m n o P Q R S T U V W X Y Z p...

Page 83: ...S P instruction instruction for pulse conversion may not be executed properly with the above operation This is because the previous information may not be inherited depending on the program changes If any parameter or program is changed in the STOP status reset the CPU module using the RUN STOP RESET switch Table3 1 Initial processing list Initial processing item CPU module status Powered on Reset...

Page 84: ...ing with network modules and communication with external devices END processing includes the following Refresh with network modules CHAPTER 10 Auto refresh with intelligent function module Section 7 1 1 Intelligent function module dedicated instruction processing CHAPTER 10 Device data latch processing Section 6 3 CHAPTER 10 Service processing Section 6 24 CHAPTER 10 Watchdog timer reset Section 6...

Page 85: ...required before operations The processing time required for the CPU module to start sequence program operations after its operating status is changed from STOP to RUN varies depending on the system configuration and or parameter settings It takes one to three seconds normally 2 Operation processing in the STOP status STOP status is a status where sequence program operations are stopped by the RUN ...

Page 86: ...Communication with CC Link remote stations Table3 2 Operation processing when switch operation is performed RUN STOP status CPU module operation processing Sequence program operation processing External output Device memory M L S T C D Y RUN STOP The CPU module executes the program until the END instruction and stops The CPU module saves the output Y status immediately before its status is changed...

Page 87: ...er failure occurs for 15ms WDT ERROR occurs 2 When a momentary power failure occurs for a period longer than the allowable power failure tim The CPU module starts its operations initially Operation processing will be the same as that when any of the following is performed Programmable controller is powered on The CPU module is reset by the RUN STOP RESET switch The CPU module is reset by GX Develo...

Page 88: ...e file register b Clearing data that cannot be cleared by the reset operation 1 Data in the program memory Data can be cleared by selecting the Clear program memory checkbox in the Boot file tab of the PLC parameter dialog box or selecting Online Delete PLC data in GX Developer 2 Data in the standard ROM Data can be cleared automatically when the data is written to the standard ROM 3 Data in a mem...

Page 89: ...aring device data set in the latch clear operation enable range Clear data with the remote latch clear operation Section 6 6 4 c Clearing device data set in latch clear operation disable range Clear data by resetting devices with the RST instruction transferring K0 with the MOV or FMOV instruction or QCPU Programming Manual Common Instructions executing Clear device s whole memory including latch ...

Page 90: ... is a mode for the CPU module to access input output modules and perform I O processing at the timing when each instruction is executed in a sequence program To access input output modules in the direct mode use the direct access input or direct access output in a sequence program 1 Differences between refresh mode and direct mode The direct mode directly accesses input output modules at execution...

Page 91: ...ule are batch input to the area for communication with the input module in the CPU module before the start of sequence program operations The CPU module performs sequence program operations using the on off data stored in the input X device memory Figure 3 2 Refresh mode Input module or output module Device memory 0 X10 On off data On off data Input of on off data by input refresh Output of on off...

Page 92: ...Output refresh Before the start of sequence program operations the CPU module batch outputs data in the output Y device memory 2 to the output module When a contact instruction for input is executed The CPU module reads input data 3 from the input X device memory and executes a sequence program When a contact instruction for output is executed The CPU module reads output data 4 from the output Y d...

Page 93: ...twork or MELSECNET H Writing data from an external device using the MC protocol Auto refresh via CC Link 4 Response delay An output response which corresponds to the status change in the input module delays for two scans maximum depending on the on timing of an external contact Examples Figure 3 4 Y5E turns on the earliest Figure 3 5 Y5E turns on the latest 55 X5 Y5E A program that turns on the ou...

Page 94: ...d performs I O processing at the timing when each instruction is executed in a sequence program With this mode the CPU module uses the direct access input DX and direct access output DY to perform I O processing Figure 3 6 Direct mode Input module or output module CPU module Device memory 0 DX10 On off data On off data Input of on off data upon instruction execution Output of on off data upon inst...

Page 95: ...ecuted The CPU module performs a logical OR operation between input data from the input module 1 and input data in the GX Developer input area 2 or data in the remote input refresh area Then the module stores the result in the input X device memory and executes a sequence program using the stored result as input data 3 When a contact instruction for output is executed The CPU module reads output d...

Page 96: ...of an external contact Examples Figure 3 8 DY5E turns on the earliest Figure 3 9 DY5E turns on the latest 55 DX5 DY5E A program that turns on the output DY5E when the input DX5 turns on Delay time OFF ON 0 55 56 External contact OFF ON OFF ON DX5 External contact DY5E External load Devices in the CPU module OFF ON 0 55 56 External contact OFF ON OFF ON DX5 External contact DY5E External load Devic...

Page 97: ...base unit Any number of slots can be assigned irrespective of the actual number of slots on the base unit to be used a Setting the number of slots greater than the actual one Slots are occupied by the number of slots set The slots after actually used ones are regarded as empty slots For example three slots will be the empty slots when a 5 slot base unit is used and the number of available slots ar...

Page 98: ...se unit assignment setting Set base units on the I O assignment tab of the PLC parameter dialog box 1 Auto Detail Select the mode for the base unit assignment either from auto mode or detail mode 2 Base model name Enter the model names of mounted base units within 16 characters CPU modules do not use the entered model names Use the entered model names for user reference or when printing out parame...

Page 99: ...l is set select the number of slots on the base unit to use from the following 2 2 slots 3 3 slots 5 5 slots 8 8 slots 10 10 slots or 12 12 slots 6 8 Slot Default 12 Slot Default When Detail is set select either of these items for batch setting the base units to the specified number of slots In auto mode when any extension base number is skipped at the setting using the base number setting connect...

Page 100: ...sed to output on off data from the CPU module 2 I O number representation The I O numbers are represented in hexadecimal When a 16 point I O module is used the I O number for each slot will be 16 point sequence number from 0 to F as shown in Figure 4 4 X and Y is prefixed to the I O number of input modules and the I O number of output modules respectively Figure 4 4 I O numbers CPU module Power su...

Page 101: ...s by the number of I O points of the mounted modules Figure 4 5 I O number assignment example Number of I O points 16 points 16 points 16 points 16 points 16 points 16 points 16 points 16 points 16 points 16 points 16 points 16 points 16 points Q35B 5 slots occupied Q65B 5 slots occupied Q68B 8 slots occupied CPU 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 Slot number I O number assign the I O poi...

Page 102: ...le on remote I O stations When the input X and output Y of the CPU module are used for the I O numbers in the remote station assign the I O numbers later than those used for the I O modules and intelligent function modules on the CPU module side When X Y0 to X Y3FF 1024 points are used for the I O modules and intelligent function modules on the CPU module side X Y400 and later can be used in the r...

Page 103: ... CC Link system master local modules of lower numbers There are no restrictions on the I O number assignment order for the MELSECNET H remote I O networks CC Link or other networks Space can be provided between the I O area for MELSECNET H remote I O station and the I O area for CC Link remote station Figure 4 7 Remote station I O number assignment X Y0 X Y3FF X Y400 X Y4FF X Y500 X Y1FFF For MELS...

Page 104: ...umbers to those used in the program When the I O numbers used in the actual system differ from those in the designed program the I O numbers of each module on the base unit can be changed to the ones in the designed program If any of the I O modules whose number of I O points are other than 16 fails without I O assignment setting the I O numbers assigned following to the failed module may change l...

Page 105: ...r For example to change the I O number of the specified slot setting is allowed only to the number of points For other items that are not set settings are completed based on the installation status of the base unit a Slot The slot number and location of the slot are displayed When the base unit is set in Auto mode the base unit number is indicated in and the slot number is counted from slot 0 of t...

Page 106: ...haracters CPU modules do not use entered model names Use the entered model names for user reference d Points When changing the number of I O points for each slot the selections are as follows 0 points 16 points 32 points 48 points 64 points 128 points 256 points 512 points 1024 points If the number of points is not selected the points of the actually mounted module is used For empty slots the poin...

Page 107: ... slot where a 32 point input module is mounted the second half 16 points of the 32 point input module becomes unavailable 2 When the preset number of I O points exceeds those of mounted I O modules The exceeded number of points will not be used in I O modules 3 Last I O number Set the last I O number within the I O point range Failure to do so causes an error SP UNIT LAY ERR is displayed as an I O...

Page 108: ...automatically assigned slot are mixed An example of start XY duplication is given in Figure 4 9 below Do not set duplicated start XY for each slot Duplication of start XY will result in an error SP UNIT LAY ERR Setting Empty and 0 to Type and Points respectively even occupies one slot To set on and after the specific slot unoccupied set the number of slots in Detail mode Section 4 1 1 Figure 4 9 I...

Page 109: ...38B Q68B 32 points 32 points 32 points 32 points 32 points16 points 32 points 32 points 32 points 32 points 32 points 16 points 32 points 32 points 32 points 32 points 0 1 2 4 5 6 7 3 X00 X20 X40 Y70 Y90 YB0 YD0 Number of I O points Slot number I O number 60 X1F X3F X5F Y8F YAF YCF YEF 6F 8 9 10 12 13 14 15 11 F0 110 130 170 Y18 Y1A Y1C 150 10F 12F 14F 17F Y19 Y1B Y1D 16F Extension 1 Input module ...

Page 110: ... of the mounted module will be set Q38B Q68B Input module Input module Input module Empty Output module Output module Output module Output module 32 points 32 points 32 points 32 points 32 points 32 points 32 points 32 points 32 points 32 points 32 points 32 points 32 points 32 points 32 points 32 points 0 1 2 4 5 6 7 3 X00 X20 X40 Y80 YA0 YC0 YE0 Number of I O points Slot number I O number 60 X1F...

Page 111: ...nput module Empty Output module Output module Output module Output module 32 points 32 points 32 points 32 points 32 points 32 points 32 points 32 points 16 points 32 points 32 points 32 points 32 points 32 points 32 points 16 points 0 1 2 4 5 6 7 3 X00 to to to to to to to to to to to to to to to to X20 X40 Y70 Y90 YB0 YD0 Number of I O points Slot number I O number 60 X1F X3F X5F Y8F YAF YCF YEF...

Page 112: ...etting example b I O assignment Set 200 for the start XY of Slot 3 and 70 to Slot 4 in the I O assignment setting of PLC parameter in GX Developer Figure 4 15 I O assignment setting When changing I O numbers of Slot 3 Set 200 to start XY Set 70 to start XY If not set the I O number following the slot 3 will be set ...

Page 113: ... 11 F0 110 130 170 Y180 Y1A0 Y1C0 150 10F 12F 14F 17F Y19F Y1BF Y1DF 16F 32 points 32 points 32 points 32 points 32 points 16 points 32 points 32 points 32 points 32 points 32 points 32 points 32 points 32 points 32 points 32 points Number of I O points Slot number I O number Input module Input module Input module Input module to to to to to to to to to to to to to to to to Empty Output module Out...

Page 114: ...UJCPU Q00UCPU and Q01UCPU cannot be used with a memory card 2 The Q00UJCPU does not have the standard RAM Standard ROM Standard RAM ROM RAM Program memory program cache memory Parameter Program Device comment Initial device value Parameter Program Device comment Initial device value Parameter Program Device comment Initial device value Programmable controller user data File for data to be stored b...

Page 115: ...ion Section 5 1 3 b Standard ROM Section 5 1 4 This memory is for storing data such as parameters and programs c Standard RAM Section 5 1 5 This memory is for using file registers local devices and sampling trace files without a memory card d Memory card Section 5 1 6 This memory is for expansion of built in memory in the CPU module Three types of memory cards are available SRAM card Flash card an...

Page 116: ...rom a sequence program requires several scans 7 Only each one of file register one local device and or sampling trace file can be stored in the standard RAM 8 For the number of storable file register points refer to Section 9 7 9 A sequence program allows reading only No data can be written from the sequence program 10 Data can be written or read with the following instructions SP FREAD batch read...

Page 117: ...ytes 1024K bytes 1024K bytes Unnecessary Standard RAM 128K bytes 128K bytes 128K bytes 192K bytes 256K bytes Necessary 1 Memory card SRAM card Q2MEM 1MBS 1M byte Q2MEM 2MBS 2M bytes Q3MEM 4MBS 4M bytes Q3MEM 8MBS 8M bytes Necessary Use GX Developer Flash card Q2MEM 2MBF 2M bytes Q2MEM 4MBF 4M bytes Unnecessary ATA card Q2MEM 8MBA 8M bytes Q2MEM 16MBA 16M bytes Q2MEM 32MBA 32M bytes Necessary Use G...

Page 118: ...gram memory Device memory in Target memory b Creating a user setting system area When formatting a program memory set the capacity of user setting system area 1 Do not create a user setting system area the necessary system area only The user setting system area is not created during formatting 2 Create a user setting system area The user setting system area is created during formatting Table5 3 pr...

Page 119: ...ct Online Read from PLC in GX Developer 1 Select Program memory Device memory in Target memory on the Read from PLC screen 2 Click the button 3 The memory capacity appears in Total free space volume Figure 5 3 Procedure for checking the memory capacity Free space volume 1 Select the target memory 2 Click the Free space volume button 3 The memory capacity value is shown ...

Page 120: ...PLC in GX Developer Select Program memory Device memory in Target memory on the Write to PLC screen The file size has its minimum unit Section 5 3 4 The occupied memory capacity may be greater than the actual file size Note that as the number of files increases the difference between the occupied memory capacity and the actual file size increases Figure 5 4 Write to PLC screen ...

Page 121: ...ovides the flow of program operations Figure 5 5 Flow of program operation Drive 3 Standard RAM SRAM Power on reset Initial Processing transfers data in the program memory to the program cache memory I O module refresh processing Operation processing of the program END processing Drive 4 Standard ROM Flash ROM Drive 0 Program memory Flash ROM Program cache memory SRAM 2 Operation processing 1 Tran...

Page 122: ...me required when data are batch transferred to the program memory while the CPU module is in the RUN status Ts scan time s Figure 5 6 Flow of writing a program Table5 4 Transfer time of program memory batch transfer CPU module Transfer time Q00UJCPU Q00UCPU Q01UCPU Q02UCPU Ts 320 4 8 s Q03UDCPU Q04UDHCPU Q06UDHCPU Q03UDECPU Q04UDEHCPU Q06UDEHCPU Ts 260 4 7 s Q10UDHCPU Q10UDEHCPU Ts 439 6 2 s Q13UD...

Page 123: ... the status by the special relay and special register The status can be checked by SM681 and SD681 5 Checking whether data are transferred to the program memory Note5 1íç1 Whether data are transferred from the program cache memory to the program memory can be checked by SM165 Figure 5 7 Screen showing status of data transfer to the program memory 注 1 Note5 1 When checking the transfer status to th...

Page 124: ...e memory capacity appears in Total free space volume 3 Writing to the standard ROM Select Online Write to PLC in GX Developer Select Standard ROM in Target memory The file size has its minimum unit Section 5 3 4 The occupied memory capacity may be greater than the actual file size Note that as the number of files increases the difference between the occupied memory capacity and the actual file siz...

Page 125: ...n the memory card or reduce the number of points of the file register local device or sampling trace Note when file registers are stored in the memory card the access speed will be slower than when they are stored in the standard RAM 2 Before using the standard RAM Format the standard RAM by GX Developer a Formatting Select Online Format PLC memory in GX Developer Select Standard RAM in Target mem...

Page 126: ...standard RAM Select Online Write to PLC in GX Developer Select Standard RAM in Target memory on the Write to PLC screen The file size has its minimum unit Section 5 3 4 The occupied memory capacity may be greater than the actual file size Note that as the number of files increases the difference between the occupied memory capacity and the actual file size increases Figure 5 10 Procedure for check...

Page 127: ...he file registers can be written or read by the sequence program up to 4086K points b Flash card Data can be read only by the sequence program Write data by GX Developer and read it by the sequence program Use the Flash card when data are not changed File registers can be stored up to 2039K points c ATA card This card is used for programmable controller user data general purpose data With the file...

Page 128: ...RAM in Target memory When formatting the ATA card select Memory card ROM in Target memory Use only GX Developer to format the ATA card If formatting the ATA card by such as the formatting function of Microsoft Windows the card may not be used with the CPU module When formatting the SRAM card or ATA card the memory card information area is automatically secured Therefore the card capacity reduces b...

Page 129: ...ore writing and the methods for writing a Writing to the SRAM card or the ATA card Select Online Write to PLC in GX Developer When writing data to the SRAM card select Memory card RAM in Target memory on the Write to PLC screen When writing data to the ATA card select Memory card ROM in Target memory on the Write to PLC screen Figure 5 13 Procedure for checking the memory capacity Figure 5 14 Writ...

Page 130: ... unit Section 5 3 4 The occupied memory capacity may be greater than the actual file size Note that as the number of files increases the difference between the occupied memory capacity and the actual file size increases Remark For details of the selection criteria of writing methods applications procedures and precautions of the Flash card refer to the references mentioned above 4 How to use the p...

Page 131: ...sh card without change for boot operation Section 5 1 8 or storing the data in the program memory to the Flash card without battery backup b Writing by Write to PLC Flash ROM Files specified by GX Developer are batch written to the Flash card To batch write the files select Online Write to PLC Flash ROM Write to PLC Flash ROM in GX Developer Use this method when storing parameters device initial v...

Page 132: ...ed in Section 5 1 8 b Writing procedure The following describes a procedure for writing a file to the Flash card 1 Procedure for Write the program memory to ROM in GX Developer Select Online Write to PLC Flash ROM Write the program memory to ROM The program memory data into ROM screen appears Select the memory to be written in Target to write the program memory file to the Flash card When files ar...

Page 133: ...files using Write the program memory to ROM in GX Developer To read all files in the program memory select Online Read from PLC Add or change the read files Write the added or changed files to the program memory Select Online Write to PLC Flash ROM Write the program memory to ROM and write the files to the Flash card b When writing files using Write to PLC Flash ROM in GX Developer To read all fil...

Page 134: ...me out b Writing a file from GX Developer in another station via CC Link Since writing a file to the Flash card takes time make the CPU monitoring time setting SW000A of CC Link to 60 seconds or longer The default value of 90 seconds can be used Remark For settings of the communication time check period and CPU monitoring time refer to the following GX Developer Version8 Operating Manual Figure 5 ...

Page 135: ...C Flash ROM after setting the RUN STOP RESET switch to STOP when 1 File registers stored in the Flash card are used in the sequence program or 2 although Not used is set to the file registers by the PLC parameter dialog box they are used in the sequence program If Write to PLC Flash ROM is executed during the RUN status in either above situations of 1 or 2 an error may occur resulting the CPU modu...

Page 136: ...en on or is reset 3 in this section 4 The program whose file name is specified in the Boot file tab is booted from the memory card to the program memory after the CPU module is powered off and then on or is reset 2 Bootable files transfer source and transfer destination Table Table5 5 provides the combinations of bootable file transfer source and transfer destination Bootable Cannot be booted Figu...

Page 137: ...arameters and programs set in the Boot file tab to the memory card e Executing the program Set the RUN STOP RESET switch to RESET The BOOT LED turns on after a boot from the specified memory is completed f Checking whether a boot is normally completed The following status indicates normal completion of boot operation The BOOT LED turns on The special relay SM660 turns on The data written to the tr...

Page 138: ...he following status 1 and 2 occurs the CPU module is not operated by the parameters in the memory card but by the parameters in the program memory 1 There are parameters in the program memory 2 The parameters in the memory card are not set in the Boot file tab b Online change in boot operation 1 Memory card RAM When data are written to a program in the program memory in the RUN status Section 6 12...

Page 139: ...OT LED on the front of the CPU module is on the boot operation is active Refer to 4 in this section and stop the boot operation f Size after a boot from the memory card The size unit of a file stored in each memory differs between the memory card and the program memory Section 5 3 4 Therefore note that files transferred from the memory card to the program memory differ in memory capacity between b...

Page 140: ...osoft Windows cannot be used as a file name COM1 to COM9 PRN LPT1 to LPT9 NULL AUX CLOCK CON 3 How to specify a file name in the sequence program Since the sequence program is not case sensitive the file can be named by both upper case and lower case characters Both ABC and abc are treated as ABC In double byte characters an upper case character and lower case character are distinguished Name a fi...

Page 141: ...ters boot file setting in the memory card No boot file setting The boot file setting is stored Boot data to the specified transfer destination following the boot file setting parameters in the memory card If the destination is the program memory the data are also transferred to the program cache memory Are there the parameters in the program memory Yes The parameters are stored in the program memo...

Page 142: ... to PLC in GX Developer the timing for validating the parameters depends on the drive that stores the parameters a When parameters are stored to the drive different from the one that stores the parameters in operation The parameters are validated according to the priority set to the drive after the CPU module is powered off and then on or is reset b When parameters are stored to the drive same as ...

Page 143: ...gram This area stores the created program c Reserved area for online change This area is used when the number of steps is increased after writing data in the RUN status from GX Developer When such operation is performed the remaining reserved area for online change is shown 1 Default 500 steps 2000 bytes is set by default 2 Setting change To change the number of steps select Online Write to PLC Pr...

Page 144: ...ty of the reserved area for online change 500 steps is not included The size of program having the execution program area of 491 steps is displayed on the GX Developer screen as shown below The file header is fixed to 34 steps Since files are stored in units of file sizes in the program memory the program size displayed during programming by GX Developer may differ from the program file size in th...

Page 145: ...rite protection password is set to the file While write read protection password is set to the file While the CPU module is in the RUN status Read from PLC Reads a file from the target memory Write to PLC Writes a file to the program memory or SRAM card Writes a file to the standard ROM Verify with PLC Verifies the file in the target memory and the file of GX Developer Write the program memory to ...

Page 146: ...file is moved the data in operation are held in the internal memory of the CPU module The held data are recovered at power on To hold the internal memory data battery backup is required 2 Concurrent writing from multiple GX Developers to one file GX Developers other than the one writing data to a file cannot access the file until the writing ends Also GX Developers other than the one accessing a f...

Page 147: ...transfer settings 86 number of modules With the MELSECNET H setting Increase up to 6180 module With the Ethernet setting Increase up to 922 module With the CC Link setting Increase up to the values in the following table The values indicate an increment of each module With the remote password setting 92 number of target modules 10 increase up to 172 module Sequence program 148 3 4 number of steps ...

Page 148: ...he index register cannot be stored as local devices Section 9 14 2 Remark For calculation example of memory capacity refer to Section 5 3 4 Table5 8 Calculation of file size continued Function Rough file capacity unit Byte Sampling trace file 6 362 number of word device points number of bit device points 12 N1 N2 N3 number of word device points 2 number of bit device points 16 2 the number of trac...

Page 149: ...for each CPU module and memory area CPU module model Memory area Program memory standard ROM Flash card 1 Standard RAM Q00UJCPU Program memory 1 step 4 bytes Standard ROM 64 steps 256 bytes Q00UCPU Q01UCPU Program memory 1 step 4 bytes Standard ROM 128 steps 512 bytes 512 bytes Q02UCPU Q03UDCPU Q04UDHCPU Q06UDHCPU Q03UDECPU Q04UDEHCPU Q06UDEHCPU Program memory 1 step 4 bytes Standard ROM Flash car...

Page 150: ... area for online change 500 steps 2000 bytes b Memory capacity calculation The memory capacity is calculated in units of file sizes of the CPU module to be written The file size unit of the Q26UDHCPU in this example is 1 step 4 bytes 1 in this section 1 Calculation of parameter file size Since the parameter file size is 464 bytes 116 steps 464 bytes is occupied in the program memory Table5 11 File...

Page 151: ...ual to the program size is occupied 3 Result The calculation results of the memory capacities are as shown below Table5 12 Calculation results of memory capacities File name File size Memory capacity PARAM QPA 464 bytes 116 steps 464 bytes MAIN QPG Sequence program size 525 steps 1025 steps 4100 bytes Reserved area for online change 500 steps Total 1025 steps Total memory capacity 1141 steps 4564 ...

Page 152: ...t for time management Section 6 5 Remote RUN STOP Stops or runs the program operations in the CPU module Section 6 6 1 Remote PAUSE Stops the program operations in the CPU module holdng the status of outputs Y Section 6 6 2 Remote RESET Resets the CPU module when the CPU module is in a STOP status Section 6 6 3 Remote latch clear Clears the latch data in the CPU module when the CPU module is in a ...

Page 153: ...value within the specified step of a sequence program 1 1 Section 6 11 4 Online program change Writes programs when the CPU module is in the RUN status Section 6 12 Program monitor list Displays the scan time and execution status of the program being executed Section 6 13 1 Interrupt program monitor list Displays the execution count of interrupt programs Section 6 13 2 Scan time measurement Measur...

Page 154: ... function module Section 6 22 Serial communication function Connects the RS 232 interface of the CPU module and the personnel computer or HMI with RS 232 cable and communicates in the MC protocol 1 Section 6 23 Service processing setting Specifies the service processing count or time to be executed in END processing Section 6 24 1 Device initial value Registers data required for operations in a pr...

Page 155: ...ction is used to maintain I O refresh intervals constant even if the execution time of each sequence program differs Scan time without constant scan setting Scan time with constant scan setting 7ms Scan time for multiple programs with constant scan setting 10ms Figure 6 1 Constant scan operation END 5ms 0 END 0 END 0 END 0 6ms 5ms Sequence program END processing END 5ms 0 END 0 2ms 6ms END 0 1ms 5...

Page 156: ...In this case the constant scan setting will be ignored and the sequence program scan time will be applied If the sequence program scan time is longer than the WDT setting time the CPU module detects WDT ERROR In this case the program execution will be stopped Figure 6 2 When the constant scan time is set to 10ms WDT setting time Constant scan setting time Sequence program maximum scan time Figure ...

Page 157: ...per and intelligent function modules is enabled during the waiting time by setting a service processing parameter Section 6 24 1 5 Constant scan accuracy The constant scan accuracy is 0 01ms However when any program indicated below is being executed the constant scan time may increase a Interrupt program or fixed scan execution type program Interrupts are disabled while an interrupt program or fix...

Page 158: ... Program operation is the same regardless of the latch status 3 Application This function is used to hold the data managed by sequential control and continue control operation even when the CPU module is powered off and then on the CPU module is reset or power failure occurs exceeding the allowable momentary power failure time 4 Devices that can be latched The following devices can be latched By d...

Page 159: ...e register ZR extended data register D and extended link register W For the extended data register D and extended link register W assign a part of the file register area If Use the same file name as the program is selected in the PLC file tab of the PLC parameter dialog box a latch range of the file register ZR extended data register D and extended link register W cannot be set All data in the fil...

Page 160: ...performed 1 For the clearing method refer to Section 3 4 Data in the file register R or ZR will not be cleared by the latch clear operation To clear data in the file register R or ZR perform data clear operation by a sequence program or GX Developer Section 9 7 3 8 Precautions a When a local device or initial device value is specified Even if the device has been latch specified device data cannot ...

Page 161: ...vious state Clear the output Y status Recalculate output is 1 scan later 2 Application This function is used to determine the status of outputs whether to resume the outputs from the previous status or not when the operating status is changed from STOP to RUN in the holding circuit When outputting the output Y status prior to STOP When clearing the output Y status Figure 6 6 Holding circuit Figure...

Page 162: ...of the CPU module when the output Y status is forcibly turned on in the STOP status refer to 5 in this section 4 Setting the output mode when the operating status is changed from STOP to RUN Set the output mode when the operating status is changed from STOP to RUN in the PLC system tab of the PLC parameter dialog box Figure 6 9 Operation when the operating status is changed from STOP to RUN Figure...

Page 163: ...tus when the operating status is changed from STOP to RUN after the output forced on operation is performed Output mode Output mode at STOP to RUN selected Output status Previous state The output status prior to STOP is output Even if the outputs are forcibly turned on the on status is not held if the output status prior to STOP was off Recalculate output is 1 scan later The on status is held and ...

Page 164: ...ís Manual Communication via Built in Ethernet Port 2 Clock operation at power off and momentary power failure Clock operation continues by the internal battery of the CPU module even when the programmable controller is powered off or power failure occurs exceeding the allowable momentary power failure time 3 Clock data Table6 4 shows the details of clock data which is used internally in the CPU mo...

Page 165: ...ws a program for writing the set clock data to D0 to D6 For details of the DATEWR instruction refer to the following QCPU Programming Manual Common Instructions When clock data is changed by GX Developer or a program the clock of 1 1000 second is reset to 0 Year data settable by GX Developer is up to 2037 Figure 6 11 Set time screen Figure 6 12 Program example for writing clock data Write request ...

Page 166: ...k data stored in D10 to D16 For details of the DATERD and S P DATERD instructions refer to the following QCPU Programming Manual Common Instructions Clock data can also be written or read by the special relay SM210 to SM213 and special register SD210 to SD213 For details of the special relay and special register refer to CHAPTER 12 Figure 6 13 Program example for storing clock data Figure 6 14 Clo...

Page 167: ...reading data by SM SD storing the time of error occurrence as error history data reading data by GX Developer or reading data by dedicated instructions of other modules 2 When clock data is changed When clock data is changed by GX Developer or instructions including dedicated instruction of other modules the clock of 1 1000 sec is reset to 0 6 Clock data accuracy Accuracy of the clock data varies ...

Page 168: ...the CPU module in the RUN position 2 Application This operation is useful in the following cases When the CPU module is inaccessible To run or stop the CPU module in a control panel externally 3 Program operation The program operation will be as follows when the remote RUN STOP operation is performed a Remote STOP The CPU module executes a program until the END instruction and changes its operatin...

Page 169: ...ed off the CPU module status changes to RUN When the RUN contact is turned on the CPU module status changes to STOP b By GX Developer or an external device using the MC protocol Select Online Remote operation in GX Developer To perform the remote RUN STOP operation from an external device use the MC protocol command Q Corresponding MELSEC Communication Protocol Reference Manual Figure 6 15 Remote ...

Page 170: ...CPU module is changed to STOP when the remote STOP operation is performed from any one of the following RUN contact GX Developer or an external device using the MC protocol b When changing the status back to RUN To change the operating status back to RUN after the CPU module status was changed to STOP by the remote STOP operation perform the remote RUN operation in the same order for the remote ST...

Page 171: ...ontact in the PLC system tab of the PLC parameter dialog box The settable device range is X0 to 1FFF The PAUSE contact SM204 turns on during END processing of the scan where both the PAUSE contact and PAUSE enable coil SM206 turn on The CPU module executes one more scan until the END instruction after the scan where the PAUSE contact turns on and then changes its operating status to PAUSE In the P...

Page 172: ...he program operations are stopped Upon execution of the remote RUN command the CPU module will restart the sequence program operations from the step 0 4 Precautions a When forcibly keeping output status To forcibly keep the output status on or off in the PAUSE status provide an interlock with the PAUSE contact SM204 Figure 6 18 Remote PAUSE by GX Developer or an external device Figure 6 19 Program...

Page 173: ...ly be performed by GX Developer or an external device using the MC protocol Select Online Remote operation in GX Developer To perform the remote RESET operation from an external device use the MC protocol command Q Corresponding MELSEC Communication Protocol Reference Manual Before performing the remote RESET operation select the Allow checkbox for the remote RESET operation in the PLC system tab ...

Page 174: ... CPU module will be in the RUN status If the remote RESET operation is performed to the CPU module which is stopped due to an error note that the CPU module will be placed in the operating status set by the RUN STOP RESET switch after reset processing is completed If the CPU module cannot be reset by the remote RESET operation from GX Developer check that the Allow checkbox for the remote RESET op...

Page 175: ...wing steps 1 Change the operating status of the CPU module to STOP by the remote STOP operation 2 Clear the latched device data in the CPU module by the remote latch clear operation 3 After remote latch clear processing is completed perform the remote RUN operation to return the operating status to RUN 4 Precautions a Latch clear in the RUN status The latch clear operation cannot be performed when...

Page 176: ...Developer When remote operations are performed from a single GX Developer the operating status of the CPU module will be the status of the last remote operation performed 3 Remote operations from multiple GX Developers Any remote operation from multiple GX Developers via other stations cannot be performed to the CPU module where remote operations are being performed from GX Developer connected a P...

Page 177: ...series compatible modules in the table above take in external inputs within the set time here Table6 8 Modules available for input response time change Module name Type Settable time setting Input module Input 1ms 5ms 10ms 20ms 70ms Default 10ms I O combined module I O Mix High speed input module Hi Input 0 1ms 0 2ms 0 4ms 0 6ms 1ms Default 0 2ms Interrupt module Interrupt Figure 6 21 Input respon...

Page 178: ...sponse time value I O response time 3 Precautions a When input response time is shortened The shorter the input response time is the more the CPU module is susceptible to noise Consider the operating environment when setting input response time values b Enabling the setting The input response time setting will be enabled when the CPU module is powered off and then on or the CPU module is reset Fig...

Page 179: ...rameter dialog box 1 Make I O assignment for the target module 2 Click the button 3 On the screen opened select Clear or Hold Default Clear 3 Precautions The error time output setting will be enabled when the CPU module is powered off and then on or the CPU module is reset Failure to perform either of the operations above after changing the error time output mode setting will result in PARAMETER E...

Page 180: ... Set the H W error time PLC operation mode in the I O assignment tab of the PLC parameter dialog box 1 Make I O assignment for the target module 2 Click the button 3 On the screen opened select Stop or Continue Default Stop 3 Precautions The H W error time PLC operation setting will be enabled when the CPU module is powered off and then on or the CPU module is reset Figure 6 24 H W error time PLC ...

Page 181: ...g the switch settings The switch settings will be written from the CPU module to each intelligent function module and interrupt module when the CPU module is powered off and then on or the CPU module is reset Figure 6 25 Writing the switch settings to each intelligent function module GX Developer 1 Write the settings The settings are written when the CPU module is powered off and then on or reset ...

Page 182: ...ch setting details of each module For the switch setting details of each intelligent function module or interrupt module refer to the manual for the intelligent function module or interrupt module used b Enabling the setting The switch settings of each intelligent function module or interrupt module will be enabled when the CPU module is powered off and then on or the CPU module is reset Figure 6 ...

Page 183: ...ation status in the CPU module can be monitored under the specified condition Besides the monitoring status under the specified condition can be held by setting the monitoring stop condition 4 Local device monitor If multiple programs are executed and local devices are used data in local devices of each program can also be monitored Table6 9 List of monitor functions and availability Monitor funct...

Page 184: ... the non execution status to the execution status P When the operation of the specified step changes from the execution status to the non execution status F Always only when the operation of the specified step is in execution ON Always only when the operation of the specified step is in non execution OFF Always regardless of the status of the operation of the specified step Always 注 1 Figure 6 27 ...

Page 185: ...ion condition If the start of a ladder block other than the step 0 is specified for the step number 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 Be sure to set the condition of the step set a...

Page 186: ...ed when the status previous to execution of the specified status or the status current value of the specified bit device word device becomes the specified value When Step No 100 P Word device D1 K5 is specified as an execution condition a monitor execution condition is established on the rising edge of the step 100 and also D1 5 The monitor interval of GX Developer depends on the processing speed ...

Page 187: ...ecomes the specified status Select the execution condition on the rising edge or falling edge b When a step number is specified A monitor operation is stopped when the execution status of the step specified as a monitor condition becomes the specified status The following status can be specified When the operation of the specified step changes from the non execution status to the execution status ...

Page 188: ...sers are performing monitoring at the same time pay attention to the following High speed monitor can be performed by increasing 1K step per monitor file of other stations in the system area when formatting the program memory or setting a parameter in the Boot file tab of the PLC parameter dialog box Up to 15 stations can be set as the station monitor file but the program space will be reduced If ...

Page 189: ... applications must be noted GX Developer Application using MX Component MX Sheet If any online function is executed by other applications using the same route for the monitor operation the following situations may occur No response is returned from the CPU module for the online function executed An online communication function time out occurs The CPU module detects an error error code 4109 for th...

Page 190: ...d C and D0 to D99 are set as a local device Three programs are to be executed in the order of A B C END processing A B 注 1 Table6 10 Data displayed when three programs are executed Setting Monitor device D0 Local device D100 Global device When the device is not set as a local device D0 in the program C is monitored D100 after the program C is executed is monitored When the device is set as a local...

Page 191: ...eloper Local devices are set to be monitored and the program B is monitored The local device data of the program B is displayed Example If D0 to D99 are set as a local device D0 4 is displayed when X10 is on and D99 8 is displayed when X11 is on X0 X1 X10 X11 X20 X21 MOVP K2 DO MOVP K3 D99 MOVP K4 DO MOVP K8 D99 MOVP K3 DO MOVP K6 D99 Program A Program B Program C CPU module Program execution A B ...

Page 192: ...ace of the CPU module or the serial communication module c Monitoring local devices in a stand by type program When local devices in a stand by type program are monitored data in local devices are saved and restored For this reason the scan time increases Section 9 14 2 d Monitoring local devices in a fixed scan execution type program When local devices in a fixed scan execution type program are m...

Page 193: ...put operation when a forced on off operation is performed Operation Input X operation Output Y operation Forced on off cancellation no operation The CPU module performs sequence program operations using external inputs The CPU module outputs the results of sequence program operations externally Forced on The CPU module performs sequence program operations using inputs forcibly turned on The CPU mo...

Page 194: ...the CPU module to be refreshed from RX RY of a CC Link module When forcibly turning on off the devices outside the above refresh ranges for example empty slots only input output in the CPU module device memory are turned on off and the results are not output externally In multiple CPU systems inputs and outputs of control modules can forcibly turned on off Even when inputs and outputs of non contr...

Page 195: ... on off status Output of the CPU module to be refreshed from LX of a CC Link IE controller network or MELSECNET H module Output of the CPU module to be refreshed from RX of a CC Link module Output other than above outside of the refresh range Outputs the results of sequence program operations The results are not output externally Holds the forced on off status Table6 13 Forced on off timing Refres...

Page 196: ...tion is used To check the registration status using the MODE LED check the status of the executional conditioned device test function as well Section 6 11 4 When using SD840 to check the registration or cancellation status remind that SD840 is used to check the status of the executional conditioned device test function as well i Forcibly turning input or output on off from multiple GX Developers F...

Page 197: ...Table6 14 Items on the Forced input output registration cancellation screen No Item Description 1 Device Select the I O number for which forced on off is to be registered or cancelled 2 Registration status display area Displays the forced on off registration status 3 Update status Reads the forced on off registration status from the CPU module 4 Set forced ON OFF Registers forced on off for a devi...

Page 198: ...t a device value is changed within the specified step regardless of an execution status of the instruction in the specified step 注 1 Figure 6 39 Operation of the executional conditioned device test Figure 6 40 Operation example of the executional conditioned device test Note6 4 Note6 4 When using the executional conditioned device test in the Q02UCPU Q03UDCPU Q04UDHCPU Q06UDHCPU Q13UDHCPU or Q26UD...

Page 199: ...unction is used To check the execution status using the MODE LED check the status of the external input output forced on off function as well Section 6 11 3 When using SD840 to check the execution status remind that SD840 is used to check the status of the external input output forced on off function as well Table6 15 Available devices and number of settable devices Type Available device Number of...

Page 200: ...l be overwritten Even though the same device is specified if the execution timing differs two settings can be registered for one step one for Before executing instruction and the other for After executing instruction Figure 6 41 Screen for registering executional conditioned device test settings Table6 16 Items on the screen for registering executional conditioned device test settings No Item Sett...

Page 201: ... to step number for the END instruction in a sequence program can be specified Be sure to specify the start step of each instruction 3 Execution timing Timing of changing a device value can be specified A device value can be changed either before or after an instruction of the specified step is executed Figure 6 42 shows the module operation based on the execution timing Figure 6 42 CPU module ope...

Page 202: ...egistered specifying the step for the END instruction the execution timing is restricted to Before executing instruction only If After executing instruction is set the CPU module returns a registration error to GX Developer Table6 17 Instructions that do not change device values No Classification Instruction Operation 1 Stop STOP When the execution condition for an instruction is satisfied A devic...

Page 203: ...s can be disabled simultaneously in one scan When nine or more executional conditioned device test settings are to be disabled simultaneously by GX Developer they will be disabled over multiple scans c Batch disabling executional conditioned device test settings Select Online Debug Executional conditioned device test Batch disable executional conditioned device test in GX Developer Figure 6 43 Scr...

Page 204: ...ot be registered or disabled In the following cases executional conditioned device test setting cannot be registered or disabled When multiple settings are to be registered no setting can be registered if any of the settings applies to the cases below 1 Executional conditioned device test settings cannot be registered Specified program does not exist Specified step does not exist Specified device ...

Page 205: ...nal conditioned device test settings Executional conditioned device test setting can be disabled by any of the following operations in addition to the operation by GX Developer Powering off and then on the CPU module Resetting the CPU module Writing program files to the program memory while the CPU module is in the STOP status Clearing the program memory while the CPU module is in the STOP status ...

Page 206: ...the online change function is executed during execution of the executional conditioned device test The Online change function completes normally If any executional conditioned device test setting has been registered in the program to be changed online the corresponding setting will be disabled 5 e in this section ...

Page 207: ...ution of the online change function Since the registrations 1 and 3 are not included in the change target program they are not disabled Example 2 When multiple ladder blocks are to be changed online ladder blocks between the change target ladder blocks will be included in the change target For this reason if the online change function is executed as shown in Figure 6 48 all registrations 1 to 3 ar...

Page 208: ...ry of devices a device value will not be changed within the specified step g Precautions for specifying an indirectly specified device If indirectly specified device name is specified to register the executional conditioned device test setting the CPU module does not check whether the specified device is within the setting range If the indirectly specified device is out of the device range or on t...

Page 209: ...tatus using a pointer Section 6 15 2 6 12 1 Online change ladder mode 1 Definition This function writes programs to the CPU module in the RUN status This function enables the program to be changed without stopping the program operation in the CPU module Figure 6 50 Outline of online change ladder mode GX Developer Change a program with GX Developer and write it to the CPU module in the RUN status ...

Page 210: ...ted to another station on the network 2 Memory for online change A program cache memory program memory is available 3 Number of steps that can be batch written by online change Up to 512 steps can be batch written Figure 6 51 Outline of online change via network MELSECNET H PLC to PLC network Change a program with GX Developer and write it to the CPU module in the RUN status GX Developer ...

Page 211: ...rved area for online change is exceeded after a program is written in the RUN status the reserved area for online change can be re set before the writing if the user memory area has space c Increase time of scan time The scan time is increased when reserved area for online change is re set when programs are written in the RUN status For increased scan time refer to Section 10 1 3 5 Operations proh...

Page 212: ...le can be written if not being accessed by a sequence program Table6 20 Files that can be written to the CPU module in the RUN status File name CPU module built in memory Memory card RAM Memory card ROM Program memory Standard RAM Standard ROM SRAM card Flash card ATA card Parameter Intelligent function module parameter Program Device comment 1 1 1 Initial device value File register 1 1 Local devi...

Page 213: ... a file is accessed by a sequence program instruction An instruction in a program cannot access to the file being written to the CPU module in the RUN status If If doing so the instruction will not be executed 5 Online change files from multiple locations Do not simultaneously write files to one CPU module in the RUN status from multiple locations Doing so may delete program files 6 Online change ...

Page 214: ...are not normally completed if they are performed during online change TC setting value change or data transfer from the program cache memory to the program memory If performed write the data to the CPU module again Power off Reset b Operations from GX Developer The following operations cannot be performed during online change TC setting value change or data transfer from the program cache memory t...

Page 215: ...module in the RUN status even if the execution condition on off is not met For preventing the fall instruction execution during online change refer to POINT in this section The corresponding fall instructions are LDF ANDF ORF MEF PLF FCALLP and EFCALLP Figure 6 53 Operation of the fall instruction Completion of online change END 1 scan END END 0 0 0 OFF OFF ON OFF OFF OFF OFF OFF OFF ON ON ON ON O...

Page 216: ...tion of the writing a jump to the specified pointer is made without a wait of one scan Figure 6 54 Operation of the rise instruction Figure 6 55 Operation of the SCJ instruction Completion of online change END 1 scan END END 0 0 0 OFF OFF ON OFF OFF OFF OFF OFF OFF ON ON ON ON ON ON ON X0 status XO MO XO MO XO MO The rise instruction is not executed even if the execution condition is off on PLS MO...

Page 217: ... of the fall instruction whose execution condition is off Completion of online change END 1 scan END END 0 0 0 OFF OFF ON OFF OFF OFF OFF ON ON ON ON OFF X0 status XO MO XO MO The fall instruction is executed even if the execution condition is off off PLF MO XO A A a Operation when deselecting Trailing edge instructions are not executed Completion of online change END 1 scan END END 0 0 0 OFF OFF ...

Page 218: ...ed due to automatic transfer of the program memory by the time shown in Table6 21 Ts Scan time s Since the number of writes to the program memory Flash ROM is limited up to 100 000 times set the automatic transfer to the program memory to be disabled when data are written to the CPU module in the RUN status and changing T C setting value frequently Table6 21 Time increased due to automatic transfe...

Page 219: ...eveloper íç1 Program transfer status can be checked by the special relay SM165 Note6 5 When SM165 is on the program memory batch transfer has not completed When SM165 is off the program memory batch transfer has completed Figure 6 58 Online change TC setting value change program memory transfer settings 注 1 Data are not automatically transferred to the program memory by deselecting here Note6 5 Wh...

Page 220: ...list monitor Section 6 13 2 Scan time measurement Section 6 13 3 6 13 1 Program monitor list 1 Definition This function displays the processing time of the program being executed The scan time number of execution times and processing time by item can be displayed for each program 2 Execution Selecting Online Monitor Program monitor list displays the Program monitor list screen 1 Figure 6 59 shows ...

Page 221: ...s displayed 3 Low speed program Since a low speed execution type program is not used 0 000 is displayed 4 Constant waiting The constant scan waiting time is displayed when the constant scan time is set c Execution status of each program The execution status of a program selected at the program tab of the PLC parameter dialog box is displayed 1 Program The program name is displayed in the order set...

Page 222: ...s displayed is the addition of the execution times of the non execution processing For details of the POFF instruction refer to the following QCPU Programming Manual Common Instructions 3 Program start and stop Program cannot be started and stopped from the Program list monitor screen 4 Precautions The scan time of a fixed scan execution type program is not displayed during its execution is displa...

Page 223: ...Developer displays the Interrupt program monitor list screen Figure Figure 6 60 shows an execution example of the interrupt program monitor list a Execute count The number of executions of an interrupt program is displayed This function starts counting after the CPU module is in the RUN status When the counting reaches 65536 times it is reset to 0 b Common comment Device comments created to an int...

Page 224: ...ogram call instruction is in the measurement range When the subroutine program call instruction CALL is in the range of scan time measurement the scan time includes the time required for processing a subroutine program 4 When interrupt programs fixed scan execution type programs are executed in the scan time measurement range The execution time of interrupt programs and fixed scan execution type p...

Page 225: ...steps and click the button When the start step is 52 and the end step is 105 Remark When displaying the Scan time measurement screen after specifying the scan time measurement rage in the monitor mode the start and end steps are set in the specified range To specify the range press the Shift key and click the mouse The specified part is inverted Figure 6 62 Scan time measurement screen Figure 6 63...

Page 226: ...played d When between the FOR and NEXT instructions is specified The execution time of one scan between the specified steps is displayed e When scan time cannot be measured Scan time cannot be updated on the Scan time measurement screen in the following cases When the branch instruction is specified the to end step The JMP instruction is specified to the end step When only the start step is execut...

Page 227: ...on When the start step is executed continuously Only the start step is specified between the FOR and NEXT instructions Example 0 3 5 6 9 P0 End step 8 Start step 3 FEND CALL P0 RET The start step is executed after the end step due to the CALL instruction Example 3 6 8 10 11 End step 13 Start step 8 FOR K2 NEXT The start step is executed continuously since it is specified between the FOR and NEXT i...

Page 228: ...ion This function is useful to check the change of the device data used in the program during debugging at a preset timing In addition this function is used to read the device data at trigger condition establishment 3 Sampling trace file This file stores the trace setting necessary for executing the function and trace results Sampling trace file can be stored only in the Standard RAM or SRAM card ...

Page 229: ...of the trace condition setting N1 When Time sec is selected add 4 N2 When Step no is selected add 10 N3 When Program name is selected add 8 3 When the trigger is issued the CPU module samples data for the preset number of times and latches the data in the sampling trace area Figure 6 64 Sampling trace operation CPU module Standard RAM memory card 3 Specified device data Sampling trace area Device ...

Page 230: ... The relay is used to check the sampling trace execution status SM803 Trace trigger A trigger turns on upon the status change of the relay offF on SM804 After trace trigger Turns on when any of the following condition is established A trigger is issued by GX Developer The TRACE instruction is executed SM803 turns on Detailed setting Device and Step No The relay is used to check the trigger conditi...

Page 231: ...1 1 SM801 also turns off when the sampling trace is interrupted by GX Developer Figure 6 66 Operation flow chart of the special relay for sampling trace interruption SM800 Trace preparation SM801 trace start SM802 Trace execution in progress SM803 Trace trigger SM804 After trace trigger SM805 Trace completed Trigger executed Trigger executed SM801 off 1 SM801 on Trace completed Number of traces af...

Page 232: ... memory for storing the trace data and the file for writing the trace conditions Select either Standard RAM or Memory card RAM for the target memory setting Trace results will be stored in the memory set here under the selected file name 2 Trace execution method Select either of the following trace execution method Execute trace after overwriting the current trace setting to the PLC The CPU module...

Page 233: ...No of traces There are two items need to be set No of times and After trigger number of times No of times Select the number of executions from the start to the end of sampling trace After trigger number of times Select the number of executions from the trigger point to the end of sampling trace Set the numbers for each items within the following setting range After trigger number of times No of ti...

Page 234: ...am I45 execution trace data can be collected only when the following conditions are all satisfied The multiple CPU high speed main base unit Q3 DB is used The multiple CPU system where two or more CPU modules are used and the multiple CPU high speed transmission function is set Interrupt pointer I45 exists in a program Interrupts are enabled and interrupt mask of I45 is cancelled Detail A trace po...

Page 235: ...point setup item Item Description At the time of TRACE instuction execution The time of execution of the TRACE instruction is set as a trigger At the time of trigger operation from GX Developer The time when a trigger is issued by GX Developer is set as a trigger Detail A trace point device and or step number needs to be set The following devices can be set as a trace point Bit device X DX Y DY M ...

Page 236: ...ces can be set as trace data Item Description Bit device The following bit devices can be set up to 50 points 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 Word device The following word devices can be set up to 50 points T current value ST current value C current value D 1 SD W 2 SW R Z ZR U G J W J SW U3E G The following modifications are av...

Page 237: ...6 67 to open the Execute sampling trace screen Select an item shown in Table6 26 and click the button Figure 6 71 Execute sampling trace screen Table6 26 Trace point setting Item Description Start trace Starts the function and starts counting the number of sampling trace executions Stop trace Stops the function and clears the total sampling trace execution count and the execution count after trigg...

Page 238: ...ampling cycle and the current value of each word device Specified devices are read when the condition selected in Trigger point setup trigger condition is established Therefore when devices are sampled in every scan and the sampling is finished by trigger operation from a peripheral the data is sampled twice because timing of the sampling is the same with that of the establishment of trigger condi...

Page 239: ...e condition is not recognized as the trigger condition SM800 Trace preparation turns off Register the trace setting again with GX Developer 1 When selecting Standard RAM in Target memory configuring the setting that changes the local device size in the standard RAM 1 writing parameters to the CPU module and then performing any of the following operations The CPU module is powered off and then on T...

Page 240: ...egistry trace For start trace from Program and click the button When the sampling trace is registered by the procedures above d 1 to 3 start the sampling trace in status where the trigger condition is not established If the trigger condition has been established when the sampling trace starts the trigger may not be normally executed When selecting Wizard setting execution in the Sampling trace scr...

Page 241: ...ecified by the step number The online change is completed normally but the sampling trace is not performed The trace point and trigger point are specified by except the step number Both the online change and sampling trace can be performed 2 Performing online change during execution of sampling trace The trace point or trigger point is specified by the step number The sampling trace is suspended b...

Page 242: ...tion 6 11 1 other GX Developers cannot set them 2 The monitoring with monitor conditions and Write during RUN cannot be performed simultaneously 3 For how to perform Write during RUN to a file from multiple GX Developers refer to Section 6 15 2 6 15 1 Simultaneous monitoring from multiple GX Developers function 1 Definition This function allows simultaneous monitoring from multiple GX Developers c...

Page 243: ...ough multiple GX Developers in other stations can simultaneously monitor a CPU module without the user setting system area the monitor speed will be slow Since the system area is set in the program memory the area for storing programs reduces by the size of set system area c The number of GX Developers for which high speed monitoring can be set The number of GX Developers that can simultaneously m...

Page 244: ...e Select Relative step No by pointer Write during RUN to different files The writing can be executed without selecting Relative step No by pointer 2 Operating procedure for performing Write during RUN to one file Set a pointer for Write during RUN beforehand and select Relative step No by pointer a Displaying the Program common tab Select Tools Options Program common tab in GX Developer Figure 6 7...

Page 245: ...riting behavior 2 Select Absolute step No default or Relative step No by pointer in Step No specification used in writing c Performing Write during RUN Display the ladder including the specified pointer and write the changed ladder during RUN 3 Precautions Precautions for Write during RUN from multiple GX Developers are the same as those for usual Write during RUN Section 6 12 3 ...

Page 246: ... is executed within the setting value of watchdog timer The watchdog timer times up when the scan time of the sequence program is extended and the END FEND instruction could not be executed within the setting value of watchdog timer due to the hardware failure of the CPU module or execution of an interrupt program fixed scan execution type program 3 When the watchdog timer times up A WDT ERROR is ...

Page 247: ...e program with the same file name The scan time depends on the execution status of the following Instructions used in the program Interrupt program and fixed scan execution type program To keep the same scan time in every scan use the constant scan function Section 6 2 Resetting watchdog timer when the a program is executed between the FOR and NEXT instructions Figure 6 78 Resetting a watchdog tim...

Page 248: ...y the function configure a safety circuit external to the programmable controller so that the entire system operates safely 3 Checking errors a LED status When the CPU module detects an error the ERR LED turns on b Storage location of error information and error check When the CPU module detects an error the special relays SM0 SM1 turn on and the error information error code are stored in the spec...

Page 249: ... one instruction where an error occurred b Errors whether to continue or stop an operation can be selected Whether to continue or stop an operation can be selected in the following errors 1 Errors whether to continue or stop an operation can be selected in the PLC RAS tab of the PLC parameter dialog box Computation error including SFC program Expanded command error setting for future extension Fus...

Page 250: ...ns are checked executed by default 1 Carry out battery check 2 Carry out fuse blown check 3 Verify module 4 Check device range at indexing 5 Diagnose redundant power supply system Note6 9íç1 íç1 Note6 9 When setting the diagnostic function of the redundant power supply system for the Q02UCPU Q03UDCPU Q04UDHCPU Q06UDHCPU Q13UDHCPU or Q26UDHCPU check the versions of the CPU module and GX Developer A...

Page 251: ...eck RAM ERROR Power on reset Stop Off Flashi ng Operation circuit check OPE CIRCUIT ERR Power on reset Execution of the END instruction Stop Off Flashi ng Fuse blown 1 2 FUSE BREAK OFF Always Stop continue Off on Flashi ng on I O interrupt error I O INT ERROR Occurrence of an interrupt Stop Off Flashi ng LAN controller failure LAN CTRL DOWN Power on reset Stop Off Flashi ng Intelligent function mo...

Page 252: ...ution error 1 SP UNIT ERROR Execution of the FROM TO instructions Stop continue Off on Flashi ng on Intelligent function module version error SP UNIT VER ERR Power on reset Stop Off Flashi ng No parameter MISSING PARA Power on reset Switching from STOP to RUN Stop Off Flashi ng Boot error BOOT ERROR Power on reset Stop Off Flashi ng Backup error RESTORE ERROR Power on reset Stop Off Flashi ng Memo...

Page 253: ...error CANëT SET P Power on reset Switching from STOP to RUN Stop Off Flashi ng CANëT SET I Power on reset Switching from STOP to RUN Stop Off Flashi ng Program error Operation error 1 4 OPERATION ERROR Execution of an instruction Stop continue Off on Flashi ng on FOR to NEXT instructions structure error FOR NEXT ERROR Execution of an instruction Stop Off Flashi ng CALL to RET instructions structur...

Page 254: ...J CPU Q00U CPU Q01U CPU Q02U CPU QnUD H CPU Built in Ethernet port QCPU RUN ERR Program error SFC syntax error SFCP FORMAT ERR Switching from STOP to RUN Stop Off Flashi ng SFC block execution error BLOCK EXE ERROR Execution of an instruction Stop Off Flashi ng SFC step execution error STEP EXE ERROR Execution of an instruction Stop Off Flashi ng CPU error Watchdog error supervision WDT ERROR Alwa...

Page 255: ...m the error history Section 6 18 and clear the errors 2 Status after error clear When the CPU module is recovered by clearing an error the special relay special register and LEDs affected by the error return to the status before the error If the same error occurs after clearing the error it is logged in the error history again 3 Clear of annunciator When multiple annunciators are detected only the...

Page 256: ...s are saved to the storage memory for error history of the CPU module 1 When the number of storable histories is exceeded stored histories are overwritten by the number of latest histories in chronological order 2 How to clear error history To clear the storage memory for error history and error history file select Diagnostics PLC diagnostics in GX Developer and click the button This method clears...

Page 257: ...mory card 2 Operations that can be prohibited The following two operations can be prohibited Reading and writing a file Writing a file When a password has been registered with a file GX Developer cannot operate the file unless entered password does not match with the registered password Table6 31 System protection types Protection target File that can be protected Description Method Valid timing R...

Page 258: ... file stored in the target memory d Registration Displays when a password has been set to the target file e Password Enter current password or a password to be registered The Registration Condition column can be set after setting a password f Registration Condition 1 Write protect Writing to a password protected file is prohibited reading is allowed 2 Read Write protect Reading and writing to a pa...

Page 259: ...ote access to the CPU module If a remote password has been set and the CPU module is remotely accessed entering a remote password is required 2 Settable modules and the number of settable modules Table6 32 shows the modules for which the remote password can be set and the number of settable modules The number of settable modules in the above table indicates the number of modules for which the remo...

Page 260: ...te password is transferred to the target module when the CPU module is powered off and then on or is reset 2 in this section Figure 6 81 Outline of a remote password GX Developer GX Developer Transfers a remote password to the Ethernet module when the CPU module is powered off and then on or is reset Checks the remote password Sets changes or clearsthe the remote password and writes the result to ...

Page 261: ...dule can access the CPU module Figure 6 82 Outline of locking unlocking a remote password with an Ethernet module Ethernet module GX Developer Transfers a remote password to the Ethernet module when the CPU module is powered off and then on or is reset Checks the remote password GX Developer Ethernet Unlocks releases the remote password and accesses the CPU module When a line is closed the remote ...

Page 262: ...etting items on the Remote password settings screen Item Description Setting range option Password settings Enter a remote password Four characters or less alphanumeric characters special symbols Password active module settings Model name Select a model name QnUDE H CPU QJ71E71 QJ71C24 CMO Start X Y Set the start address of the module 0000H to 0FE0H Detail User connection No Select user connection...

Page 263: ... b Changing a remote password Change set password in the Remote password settings screen and write a new password to the CPU module c Clearing a remote password To delete set remote password click the button in the Remote password settings screen Write a remote password with GX Developer Clear ...

Page 264: ... of the PLC parameter dialog box is not displayed When using a redundant base unit mounted status of the power supply module is also displayed Note6 10íç1 2 Parameter status The I O number type and the number of points of the module on each slot of the selected base unit can be displayed If the Parameter status displays 0 for an empty slot or assignment error it indicates that the I O assignment s...

Page 265: ... intelligent function module refer to the manual for the intelligent function module used 7 Base Information The Overall Information and Base Information can be checked a Overall Information The number of base units and the number of modules on the base units can be checked b Base Information The name the number of slots type and the number of modules of the selected base unit can be checked 8 Pro...

Page 266: ... of the System Monitor screen of GX Developer refer to the following GX Developer Version 8 Operating Manual Figure 6 86 Detailed information of power supply module screen Table6 34 Description of the Detailed information of power supply module screen Item Description ON OFF status Displays the status of an input power supply to the redundant power supply module Error existence Displays whether a ...

Page 267: ...Methods for turing off the LEDs Method for turning off the LED Relevant LED ERR USER BAT BOOT Execute the LEDR instruction after resolving the error After resolving the error clear the error by the special relay SM50 and special register SD50 1 operation continuation error only Turn off the LED by the special relay SM202 and special register SD202 1 SM50 Clears an error of the error code stored in...

Page 268: ...g conditions A stop error is always set to the LED display data SD220 to SD227 An operation continuation error is displayed according to the priority cause number described in this section The priority can be changed set it to the special registers SD207 to SD209 When errors having the same priority occur simultaneously the error detected first is displayed The priority is determined with the spec...

Page 269: ...e ERR LED remains off If 0 is set to the cause number setting area setting that does not turn on the LED SM0 Diagnostic errors and SM1 Self diagnostic error turn on and the error code is stored to SD0 Diagnostic errors Table6 36 List of cause numbers and priorities Priority Cause number hexadecimal Displayed error message Remarks 1 1 AC DC DOWN Power off 2 2 UNIT VERIFY ERR FUSE BREAK OFF SP UNIT ...

Page 270: ...ction module To execute an interrupt program by an interrupt from the intelligent function module select Interrupt pointer setting in Intelligent function module setting of the PLC system tab in the PLC parameter dialog box Configure system setting at the intelligent function module is also required For execution of an interrupt program by an interrupt from the intelligent function module refer to...

Page 271: ...ding MELSEC Communication Protocol Reference Manual A personal computer or HMI can communicate with a CPU module by the serial communication function only when the CPU module is connected to it The CC Link IE controller network MELSECNET H Ethernet or CC Link cannot be communicated with another station The serial communication function is not used for connection of GX Developer or GX Configurator ...

Page 272: ...duplex communication Synchronization method Asynchronous method Transmission speed 1 19 2kbps 9 6kbps 19 2kbps 38 4kbps 57 6kbps 115 2kbps Data format Start bit 1 Data bit 8 Parity bit Odd Stop bit 1 MC protocol format 2 automatic detection Format 4 ASCII Format 5 binary Frame 2 QnA compatible 3C frame QnA compatible 4C frame Transmission control DTR DSR control Sum check 1 Checked Checked not che...

Page 273: ...icates a cable length which can be lengthened up to 15m in units of 0 1m Table6 39 RS 232 connector specifications Appearance Pin number Signal Signal name 1 RD RXD Receive data 2 SD TXD Send data 3 SG Signal ground 4 5 DSR DR Data setting ready 6 DTR ER Data terminal ready Pin number 1 2 3 4 5 6 Metal shell Signal RD SD SG DR ER Wire core Red Black Green white Yellow Brown Shield Figure 6 93 Effe...

Page 274: ...points Batch write 1 In units of bits 1401 00 1 Writes bit devices in units of 1 point ASCII 3584 points BIN 7168 points In units of words 1401 00 0 Writes bit devices in units of 16 points 480 words 7680 points Writes word devices in units of 1 point 480 points Random read In units of words 0403 00 0 Reads bit devices in units of 16 points or 32 points by specifying the device or device number at...

Page 275: ...device Input X 000000 to 001FFF Hexadecimal Output Y 000000 to 001FFF Hexadecimal Internal relay M 000000 to 008191 Decimal Latch relay L 000000 to 008191 Decimal Annunciator F 000000 to 002047 Decimal Edge relay V 000000 to 002047 Decimal Link relay B 000000 to 001FFF Hexadecimal Data register D 000000 to 012287 Decimal Link register W 000000 to 001FFF Hexadecimal Timer Contact TS 000000 to 00204...

Page 276: ...Developer during communication with the personal computer or HMI with the serial communication function However the personal computer or HMI in communication by the serial communication function results in a communication error For startup methods of the personal computer and HMI when they are reconnected to the CPU module refer to the manual for used device b Transmission speed set in the Transfe...

Page 277: ...sed 2 Communication is made at different transmission speed and data format 3 A frame to be sent has no correct starting end or terminal 3C frame format 4 ENQ CR LF 4C frame format 4 ENQ CR LF 4C frame format 5 1 DLE STX DLE ETX 1 When Sumcheck enable is set the sumcheck code is included 4 The frame identification number of a frame to be sent is incorrect 5 The number of transmission bytes is unde...

Page 278: ...t message of the external device and restart communication 7E42H Data count error The requested number of points exceeds the range of the command Check and correct the sent message of the external device and restart communication 7E43H Device error The device specified does not exist The device specified cannot be specified by the corresponding command Check and correct the sent message of the ext...

Page 279: ...ervice processing environment optimum for the system The service processing refers to communication service processing with a peripheral such as GX Developer and intelligent function modules Link refresh processing such as CC Link IE controller network module MELSECNET H module and CC Link Safety system master local module are not included Using the COM instruction enables service processing durin...

Page 280: ... process as the scan time proceeds Set the percentage of service processing for one scan Range 1 to 99 Unit 1 Default when selected 10 Specify service process time Set the time of service processing for one scan Range 0 2ms to 1000ms Unit 0 1ms Default when selected 0 2ms Specify service process execution counts Set the number of service processing for one scan Range 1 to 10 times Unit 1 time Defa...

Page 281: ...can selecting Execute it while waiting for constant scan setting can perform the service processing efficiently 3 d in this section Figure 6 96 Operation when 10 is set Figure 6 97 Operation for constant scan setting Program execution END processing 1st scan 10ms Request 1 Program execution END processing 2nd scan 10ms Request 2 1 Program execution END processing 3rd scan 12ms Request 3 GX Develop...

Page 282: ...ing the service processing count END processing speeds up by the request processing time The CPU module does not wait for requests Figure 6 98 Operation when 1 time is set Figure 6 99 Operation when 2 times is set Program execution END processing 1st scan Request 1 Program execution END processing 2nd scan Request 2 Program execution END processing 3rd scan Request 3 GX Developer Regardless of req...

Page 283: ...e processing time 0 5ms the service processing is suspended and the processing is performed at END processing in the next scan The scan time increases equally Request 1 Request 2 Request 3 Request 4 Request 5 Program execution END processing 1st scan Request 1 Program execution END processing 2nd scan GX Developer Program execution END processing 3rd scan Request 2 Request 2 Request 3 1ms Request ...

Page 284: ...performed Therefore when the waiting time is less than 0 2ms the constant scan time may be exceeded Figure 6 102 Operation when Execute it while waiting for constant scan setting is selected Program execution Waiting time END processing Program execution END processing Constant scan GX Developer Request 1 Request 2 Request 3 Request 4 Waiting time Constant scan The service processing is performed ...

Page 285: ...increased when the write or read size is large Access to a network module a Diagnostic functions CC IE Control diagnostics MELSECNET diagnostics Ethernet diagnostics CC Link CC Link LT diagnostics b Monitor function Module access device Link direct device 2 Note that the scan time will be increased much longer if the CPU module receives multiple requests simultaneously while the service processing...

Page 286: ... or the buffer memory of the intelligent function module without a program 2 Application Using an initial device value can omit device data setting program by initial processing program Figure 6 103 Data setting by initial program MOV H100 D0 MOV H2020 D1 Power on STOP RESET RUN Device memory Initial device value Device memory At power off on reset or STOP RUN SM402 ...

Page 287: ...9 1 2 The extended data register D is included 3 The extended link register W is included Figure 6 104 Flow of writing initial device value Current timer value T Link special register SW Current retentive timer value ST File register R Current counter value C File register ZR Data register D 2 Intelligent function module device U G Special register SD Link direct device J W J SW Link register W 3 ...

Page 288: ...nge setting screen appears Set the initial device value range The number of settable points is up to 8000 points per range setting Add device memory data in the project data list of GX Developer The device memory screen appears Set the initial device value data within the initial device value range set above When changing the setting on the Device initialization range setting screen always execute...

Page 289: ...le is powered off and then on and changed by a program the initial device value cannot be used Use an instruction such as the MOV instruction in the main routine program so that the initial device values will be set to the specified devices Use the TO instruction to write data to the buffer memory of the intelligent function module c Devices that require module synchronization setting When setting...

Page 290: ... entering the value to a slot in another station the value is ignored 3 Battery life For the life of battery installed in the CPU module when the battery life prolonging function is used refer to the following QCPU Userís Manual Hardware Design Maintenance and Inspection Table6 44 Initialization details Data held by a battery Description Error history The number of error history data is initialize...

Page 291: ...mpared with the user program written to the program memory If they do not match a stop error RAM ERROR error code 1160 is detected b Parameter The parameters are compared with the ones written to the parameter valid drive c Device memory If the devices cannot be read a stop error RAM ERROR error code 1161 is detected 2 Execution timing 1 Program At program execution 2 Parameter When the CPU module...

Page 292: ...Table6 45 shows data to be backed up 1 The data are backed up only when the Universal model QCPU having the serial number first five digits is 10042 or later is used Table6 45 Data to be backed up Data to be backed up Description Remarks Device data Internal user device M L B F V T ST C D W Index register Z standard device register Z File register R ZR Extended data register D 1 Extended link regi...

Page 293: ...U are 87210 bytes 2 The size depends on the parameter setting 3 Storage files are created only when data in the file register extended data register D and extended link register W are backed up 4 Storage files are created only when the trace registration has been made Figure 6 108 PLC file tab Table6 46 Sizes of files to be stored Data to be backed up File size Device data Internal user device M L...

Page 294: ...truction data are not backed up even if a contact is turned on off on or off on off in one scan c In the following cases data are not backed up unless the latch data backup start contact to the standard ROM is turned off and then on again The latch data backup start contact to the standard ROM is set to X and the CPU module is powered off and then on or is reset after backup by turning off and the...

Page 295: ...rations to normally complete restoring data Return the status of data when the parameters are backed up Delete the backup data Backup data again 6 Deleting backup data Select Online Latch data backup operation of GX Developer Set the CPU module to STOP since data cannot be deleted in the RUN status Also information of special registers SD671 to SD675 can be initialized cleared to 0 by deleting the...

Page 296: ...ch device or latch range setting is used backup data has a priority Therefore even when data of latch device and latch range setting are changed after backup it is overwritten by data backed up when the CPU module is powered off and then on or is reset 4 Devices where local device range setting is configured are not backed up They are initialized cleared to 0 when the CPU module is powered off and...

Page 297: ...an be written to the standard ROM Table6 48 shows the devices whose data can be written to the standard ROM 1 The extended data register D is included 2 The extended link register W is included 4 Setting method The area for storing the device data is set in the standard ROM by the PLC file tab of the PLC parameter dialog box Remark For details of the instructions refer to the following QCPU Progra...

Page 298: ...tion Section 6 30 2 Figure 6 113 CPU module change function with memory card íç1 Note6 12 GX Developer Standard ROM Standard RAM Memory card for storing backup data 2 Changes the CPU module 3 Restores backup data 1 Backs up to a memory card Universal model QCPU Program memory Device data System data Note6 12 The Q00UJCPU Q00UCPU and Q01UCPU do not support the CPU module change function with memory...

Page 299: ... of data that can be backed up Unit K byte The backup data size can be checked by the following methods Execution screen of GX Developer Section 6 30 1 1 b SD698 and SD699 CHAPTER 12 1 1 Can check the data size after backup starts Table6 49 Data to be backed up Backup data drive Description Backup selection by the user Program memory drive 0 All data in the program memory drive 0 1 Selectable Stan...

Page 300: ...lected in Backup target data only device data and system data are backed up 5 The title is used for identifying backup data Settings for the title of the backup data stored in a memory card can be checked on the Delete PLC data screen of GX Developer Figure 6 114 PLC module change setting screen Table6 51 Setting items Item Description Setting range Default Backup start setup contact 1 At the rise...

Page 301: ...memory card so that the card can be removed 1 Check that the preparation for backup is completed by the following methods Check the LEDs Check the special relay and special register a SM691 is on b SD690 stores 2h 2 Remove the mounted memory card 3 Mount a memory card for storing backup data 4 Turn on the backup start setup contact Back up data Check that the backup is completed by the following m...

Page 302: ... contact is on before the value in SD690 becomes 2H Backup start preparation completed turning off and then on the backup start contact again while the value in SD690 is 2H Backup start preparation completed starts backup Figure 6 116 Operation of contacts ON OFF OFF ON 0 1 2 3 4 OFF ON Backup start setup contact SM691 Backup start preparation status flag Backup start contact SD690 Backup status B...

Page 303: ...ersion 8 Operating Manual Clicking the button on the screen shown in Figure 6 117 displays the size of backup data created at backup Data size can be checked by GX Developer connected to the CPU module This function is available regardless of the operating status of the CPU module RUN STOP PAUSE or mounting status of a memory card Figure 6 117 Create backup data screen Confirm data size ...

Page 304: ...us Description Value in SD690 Before backup start Backup is not started 0H Backup start prepared A memory card can be mounted removed 1H Backup start preparation completed Set data to be backed up 2H Backup in execution Backup is in execution 3H Backup completed Backup is normally completed 4H Backup error Backup failed due to an error FFH Figure 6 118 Flow of status change at backup Start Before ...

Page 305: ...N switch to RUN the CPU module remains in the STOP status 1 The status includes a stop error Figure 6 119 Special relays and special register at backup Figure 6 120 Operating status of the CPU module at backup ON OFF OFF ON 0 1 2 3 4 Backup start setup request from GX Developer or the backup start setup contact is turned on Backup start request from GX Developer or the backup start contact is turn...

Page 306: ... Table6 54 Error cause of restoration Value stored in SD689 Error response number Error cause 100H Restoration started while a memory card was not mounted 200H Size of data to be backed up exceeds the capacity of mounted memory card 300H Write protection has been set to the memory card 400H Writing to the memory card was not normally completed 500H Reading from a drive storing backup data was not ...

Page 307: ...eady to start the following functions stop do not resume the operations even after the backup Refresh of network modules Data link transfer Auto refresh of intelligent function modules Auto refresh of CPU shared memory Table6 55 Functions that cannot be performed during backup Category Function Category Function Drive operation Format PLC memory Trace Sampling trace registration Write the program ...

Page 308: ...tect switch of the SRAM card is set to be valid write protection the setting does not become valid and the data are restored even after the first time RESTORE ERROR error code 2226 occurs 2 When using the FLASH card restoration can be performed even after the first time 3 Restoration after the first time can be performed from GX Developer Data are restored at initial processing after the CPU modul...

Page 309: ...ure 6 123 Operation of the special relay Start End Restoration is performed again 1 Before restoration start Mount a memory card storing the backup data to the CPU module and restore the data with GX Developer Restoration failed 4 Restoration error Restoration is suspended 2 Restoration in execution Restoration is completed 3 Restoration completed After restoration power off and then on the CPU mo...

Page 310: ...T Flashing green Automatic restoration MODE On green FFH Restoration error Restoration from GX Developer MODE Flashing orange USER Flashing red BAT Flashing green Automatic restoration MODE On green ERR Flashing red Table6 59 Error cause of restoration Value stored in SD692 Error response number Error cause 800H The CPU module where data are restored is different model with the one where the backu...

Page 311: ...cted c Do not use a memory card where the boot file setting parameter is stored If used data in the memory card are overwritten by the boot file setting even restoration is performed d If restoration is started from GX Developer the following functions stop do not resume the operations even after the restoration Refresh of network modules Data link transfer Auto refresh of intelligent function mod...

Page 312: ...ds between the CPU module and intelligent function modules and the communication timing Executed Not executed 1 Indicates the program that uses the intelligent function module device FROM or TO instruction or the intelligent function module dedicated instruction 2 The RUN STOP RESET switch is set from STOP RUN RUN LED flashes STOP RUN Data such as initial settings used for communications with inte...

Page 313: ...GX Developer 2 Setting in GX Configurator An example of initial setting and auto refresh setting for the A D conversion module Q64AD is used in this section a Initial setting The initial setting for the Q64AD offers the following four types A D conversion enable disable setting Sampling process averaging process setting Time number of times specifying Average time average number of times setting M...

Page 314: ...le devices for storing the following data can be set in the Auto refresh setting screen Digital output of the Q64AD Maximum and minimum values of the Q64AD Error codes Make auto refresh settings of the Q64AD in the Auto refresh setting screen in GX Configurator as shown in Figure 7 2 The auto refresh setting data set in this screen are stored into the intelligent function module parameters of the ...

Page 315: ...ing Remark For details of GX Configurator refer to the manual for the intelligent function module used Table7 2 Number of parameters set in GX Configurator CPU module Number of parameter settings Initial setting Auto refresh setting Q00UJCPU Q00UCPU Q01UCPU 512 256 Q02UCPU 2048 1024 Q03UDCPU Q04UDHCPU Q06UDHCPU Q10UDHCPU Q13UDHCPU Q20UDHCPU Q26UDHCPU Q03UDECPU Q04UDEHCPU Q06UDEHCPU Q10UDEHCPU Q13U...

Page 316: ...owing Set the device data of the intelligent function module Section 9 5 1 used as the initial device value to the device memory In the initial device value setting specify the device range of the intelligent function module used as the initial device value 7 1 3 Communications with the FROM and TO instructions The FROM instruction stores data read from the buffer memory of the intelligent functio...

Page 317: ... X Y20 to X Y2F 2 Difference from the FROM and TO instructions The intelligent function module device processes data read from the intelligent function module with one instruction as the device can be treated as one of the CPU module devices A program example is given below for the case where data read from the intelligent function module are added and then the result is stored in D2 This reduces ...

Page 318: ...ses the intelligent function module every time when an instruction is executed When writing or reading buffer memory data using multiple intelligent function module devices in a sequence program write or read the data with the FROM or TO instruction in one location of the program Figure 7 6 Writing using multiple intelligent function module devices Figure 7 7 Writing using the TO instruction Store...

Page 319: ... module Transmission by the OUTPUT instruction 2 Processing of the intelligent function module dedicated instruction Some of intelligent function module dedicated instructions can specify the completion device This completion device turns on for one scan when an instruction execution is completed When using multiple intelligent function module dedicated instructions to one intelligent function mod...

Page 320: ...le is set from RUN to STOP before the completion device turns on the completion device will not turn on until the CPU module is set to RUN and then finishes one scan b Available range The intelligent function module dedicated instructions are not applicable to the intelligent function modules mounted on remote I O stations of MELSECNET H The instructions are applicable to the intelligent function ...

Page 321: ...ers are set when the remote password function is used for an Ethernet module serial communication module modem interface module or Built in Ethernet port QCPU 2 Parameter setting method Use GX Developer For the setting details refer to the following GX Developer Version 8 Operating Manual Grayed out unselectable parameter settings in GX Developer are not available since the corresponding function ...

Page 322: ...n the list for the find CPU function Note8 1íç1 注 1 Figure 8 1 PLC name Table8 1 PLC name setting list Item Parameter No Description Setting range Default Reference Label 0000H Set a label name application for the CPU module Up to 10 characters Blank Comment 0001H Set a comment for the CPU module label Up to 64 characters Blank Note8 1 The Universal model QCPUs other than the Built in Ethernet por...

Page 323: ...tion valid contact 1014H Set the valid contact device No for backup of latch data to the standard ROM X M B Blank Section 6 28 Remote reset 1002H Select whether to allow the remote reset from GX Developer Selected deselected Deselected Section 6 6 3 Output mode at STOP to RUN 1003H Set the status of the outputs Y when the operating status is switched from STOP to RUN Previous state Recalculate out...

Page 324: ... 9 11 Interrupt program Fixed scan program setting 1008H Enable or disable high speed execution of interrupt programs or fixed scan execution type programs Selected deselected Deselected Section 2 2 3 2 3 4 Service processing setting 1013H Select any of the following options Execute the process as the scan time proceeds Specify service process time Specify service process execution counts Execute ...

Page 325: ...ta backup to the standard ROM Checked unchecked Not selectable Section 6 27 Comment file used in a command 1101H Set a file for device comments used in the program Not used Use the same file name as the program Use the following file Not used Initial Device value 1102H Set a file for initial values of the devices used for the CPU module Not used Use the same file name as the program Use the follow...

Page 326: ...ecution monitoring time Set a watchdog timer value in the case of using an initial execution type program 10ms to 2000ms in increments of 10ms Blank Section 2 3 1 Operating mode when there is an error Computation error 3002H Set the operation mode of the CPU module when an error is detected Stop Continue Stop Section 6 17 Expanded command error 1 Fuse blown Module verify error Intelligent module p...

Page 327: ... 3 T 2K ST 0K C 1K D 12K W 8K SW 2K Section 9 1 Latch 1 start end Latch clear valid 2 2001H Set a latch range start and end device numbers which can be cleared by remote latch clear operation Setting is available for only one range for each of B F V T ST C D and W devices Blank Section 3 4 6 3 Latch 2 start end Latch clear invalid 2 2002H Set a latch range start and end device numbers which cannot...

Page 328: ...14 2 6 Not available for the Q00UJCPU Table8 5 Device setting list continued Item Parameter No Description Setting range Default Reference File register extended setting 6 Device points 2000H Set points for the file register ZR extended data register D and extended link register W Point assignment to the file register ZR extended data register D or extended link register W Assign part of the point...

Page 329: ... available for the Q00UJCPU Figure 8 6 Program Table8 6 Program setting list Item Parameter No Description Setting range Default Reference Program setting 7000H When writing two or more programs to the CPU module set a file name and execution type execution condition of each program Also set a fixed scan interval execution interval of the fixed scan execution type program Program name Execute type...

Page 330: ...tion Setting range Default Reference Boot option Clear program memory 7000H Select whether to clear the program memory at the time of boot Selected deselected Deselected Section 5 1 8 Boot file setting Set the type and data name of the boot file and transfer source drive for boot operation Type Data name and Transfer from the transfer target drive Transfer to is automatically set in the program me...

Page 331: ...arameter No Description Setting range Default Reference SFC program start mode 8002H Set the mode and conditions for starring an SFC program and also set the output mode in case a program block is stopped Refer to the QCPU Q Mode QnACPU Programming Manual SFC Initial start Start conditions 8003H Autostart block 0 Output mode when the block is stopped 8006H Turn OFF ...

Page 332: ...aracters Points Set the number of points assigned to each slot 0 16 32 48 64 128 256 512 or 1024 points Start XY Set the start I O number of each slot 0H to FF0H Base setting Base model name 0401H Set the model name of the main base unit or extension base unit Entered at user s discretion Do not use the one for the CPU module Up to 16 characters Blank Section 4 1 2 Power model name Set the model n...

Page 333: ...me PLC operarion mode 4004H Set whether to stop or continue the operarion of the control CPU in case of a hardware failure of the intelligent function module Stop Continue Stop Section 6 9 I O response time 0405H Set a response time for the input module high speed input module I O combined module or interrupt module Input or I O mix 1ms 5ms 10ms 20ms or 70ms Hi input or Interrupt 0 1ms 0 2ms 0 4ms...

Page 334: ...add a sum check code to a message sent or received when using the serial communication function according to the specifications of the external device Selected deselected Selected Transmission wait time Set a period of waiting time on the Basic model QCPU side in case the CPU module cannot receive data immediately after the external device sends data No waiting time 10ms to 150ms in increments of ...

Page 335: ...etting and CC Link setting can be confirmed Figure 8 11 Acknowledge XY assignment Table8 11 Acknowledge X Y assignment list Item Parameter No Description Setting range Default Reference X Y assignment The data set in the I O assignment Ethernet CC IE MELSECNET setting and CC Link setting can be checked ...

Page 336: ...em Host CPU number 1 E00CH Set a CPU number for which the multiple CPU setting parameters are set Set the number of the connected CPU module PLC No 1 to No 4 Blank Operating mode 0E01H Select the multiple CPU system operation to be performed in case a stop error occurs in any of CPU No 2 to No 4 When CPU No 1 results in a stop error the multiple CPU system stops Fixed Selected deselected All items...

Page 337: ...8H Set the size of the multiple CPU high speed transmission area that is assigned to each CPU module of the multiple CPU system Simple setting 0 to 12K in increments of 1K points Advanced setting 0 to 16K in increments of 0 5K points 3K points Auto refresh setting Refresh setting E009H E00AH Set an area range for data communication performed with the auto refresh function in the user area of the m...

Page 338: ...efault router IP address Enter the IP address of the router IP address 0 0 0 1 to 223 255 255 254 00000001H to 0DFFFFFFEH Subnet mask pattern Blank or 192 0 0 0 to 255 255 255 252 0C0000000H to 0FFFFFFFCH Default router IP address Blank or 0 0 0 1 to 223 255 255 254 00000001H to 0DFFFFFFEH IP address 192 168 3 39 Subnet mask pattern Blank Default router IP address Blank QnUCPU Userís Manual Com mu...

Page 339: ...Enable online change FTP MC protocol Enable or disable writing data in devices or files to the running CPU module when MC protocol or FTP is used Selected deselected Deselected Disable direct connection to MELSOFT Enable or disable direct connection to MELSOFT To enhance the security with the remote password setting check it to disable it Selected deselected Deselected Do not respond to search for...

Page 340: ...ET H mode Control station MELSECNET H Extended mode Control station MELSECNET 10 mode Control station 2H CC IE Control Normal station MELSECNET H mode Normal station MELSECNET H Extended mode Normal station MELSECNET 10 mode Normal station 5H MELSECNET H Remote master AH MELSECNET H Standby station BH MELSECNET H mode multiplexed remote I O network master station DH MELSECNET H mode multiplexed re...

Page 341: ...tem Parameter No Description Setting range Default Reference Number of modules on CC Link IE controller network A000H Set network parameters for the CC Link IE controller network Refer to the manual for the CC Link IE controller network Starting I O No ANM0H Network No Total stations Station No Group No 0AmnH Mode ANM0H Refresh parameters ANM1H Common parameters ANM2H Station inherent parameters A...

Page 342: ...ault Reference Number of modules on MELSECNET H 5000H Set MELSECNET H network parameters Refer to the manual for the Q series compatible MELSECNET H Starting I O No 5NM0H Network No Total stations Group No 05mnH Mode 5NM0H Refresh parameters 5NM1H Common parameters 5NM2H Station inherent parameters 5NM3H Common parameters 2 5NMAH Station inherent parameters 2 5NMBH Interrupt settings Valid module ...

Page 343: ... modules on Ethernet 9000H Set Ethernet network parameters Refer to the manual for the Q series compatible Ethernet Starting I ONo 9N00H Network No Group No Station No Operational settings Initial settings 9N01H Open settings 9N02H Router relay parameter 9N03H Station No IP information 9N05H FTP Parameters 9N06H E mail settings 9N07H News setting 9N08H Interrupt settings 9N09H Valid module during ...

Page 344: ...al for CC Link Start I O No CNM2H Operational setting All connect count Remote input RX CNM1H Remote output RY Remote register RWr Remote register RWw Ver 2 Remote input RX Ver 2 Remote output RY Ver 2 Remote register RWr Ver 2 Remote register RWw Special relay SB CNM2H Special register SW Retry count Automatic reconnection station count Standby master station No PLC down select Scan mode setting ...

Page 345: ...l QJ71C24 Serial communication module manual QJ71CMO Modem interface module manual Password active module settings Model name Select a model name of the module for which the remote password set to the CPU module is checked QnUDE H CPU QJ71E71 QJ71C24 CMO Start XY Set the start address of the module for which the remote password is checked 0000H to 0FE0H Detail Set details of the remote password fo...

Page 346: ...Data register 12288 D0 to D12287 Decimal Section 9 2 12 Link register 8192 W0 to W1FFF Hexadecimal Section 9 2 13 Link special register 2048 SW0 to SW7FF Hexadecimal Section 9 2 14 Internal system device Bit device Function input 16 FX0 to FXF Hexadecimal Cannot be changed Section 9 3 1 Function output 16 FY0 to FYF Hexadecimal Section 9 3 1 Special relay 2048 SM0 to SM2047 Decimal Section 9 3 2 W...

Page 347: ...E0 to U3E3E2 for the Q00UCPU and Q01UCPU and U0 to U7F or U3E0 to U3E3E2 for the Q02UCPU ï 9 1 Device list continued Classification Type Device name Default Parameter set range Reference Points Range File register 7 Word device File register 0 0 to 4086K points 6 Section 9 7 Extended data register 7 Word device Extended data register 0 Section 9 8 Extended link register 7 Word device Extended link...

Page 348: ... points can be set for each device Note9 2 Up to 29K words can be set for total internal user devices One point set for the timer retentive timer or counter must be regarded as two points one for coil and one for contact Figure 9 1 Device tab of the PLC parameter dialog box 注 1 Default Most of the default device points can be changed Note9 1 The points for the step relay S can be changed to 0 if t...

Page 349: ...mory size Set the internal user devices so that the following condition is satisfied Bit device size Timer retentive timer and counter sizes Word device size 29K words a Bit device For bit devices 16 points are calculated as one word b Timer T retentive timer ST and counter C For the timer T retentive timer ST and counter C 16 points are calculated as 18 words c Word device For the data register D...

Page 350: ...of device point 1 2 Restriction check Points Range Size words 3 Points bits 2 Input relay X Hexadecimal 8K 8192 X0000 to X1FFF 16 512 1 8192 Output relay Y Hexadecimal 8K 8192 Y0000 to Y1FFF 16 512 1 8192 Internal relay M Decimal 16K 16384 M0 to M16383 16 1024 1 16384 Latch relay L Decimal 4K 4096 L0 to L4095 16 256 1 4096 Link relay B Hexadecimal 4K 4096 B0000 to B0FFF 16 256 1 4096 Annunciator F...

Page 351: ...f normally open or closed contacts There are no restrictions on the number of normally open or closed contacts of Xn used in a program as long as the program capacity is not exceeded Figure 9 2 Commands from external devices to a CPU module Figure 9 3 Concept of input X Figure 9 4 Input X used in a program 1 2 3 Push button switch Selector switch Digital switch Input X Sequence operation LS2 PB1 X...

Page 352: ... off by the following Device test in GX Developer OUT Xn instruction The input X can also be used for the following Refresh target device CPU module side of RX in CC Link Refresh target device CPU module side of CC Link IE controller network or MELSECNET H Figure 9 5 Input X on off with the OUT Xn instruction X1 OUTX1 ON OFF command ...

Page 353: ...d in a program as long as the program capacity is not exceeded 3 Using the output Y as the internal relay M The output Y corresponding to the slots for input modules or empty slots can be utilized as the internal relay M Figure 9 6 Output from a CPU module to external devices Figure 9 7 Output Y used in a program Figure 9 8 Using as the internal relay Signal lamp Digital display Contactor Output Y...

Page 354: ...s There are no restrictions on the number of normally open or closed contacts used in a program as long as the program capacity is not exceeded 4 Method for external output The output Y is used to output sequence program operation results to external devices Use the latch relay L when latch data retention during power failure is required Section 9 2 4 Figure 9 9 Internal relay M used in a program ...

Page 355: ...e are no restrictions on the number of normally open or closed contacts used in a program as long as the program capacity is not exceeded Scan time is prolonged when the latch relay L is used Reducing the points of latch relay L can reduce the prolonging scan time Section 10 1 2 4 Method for external output The output Y is used to output sequence program operation results to external devices If la...

Page 356: ... to SD79 when the special relay SM62 turns on In this program when annunciator F5 is turned on the corresponding annunciator number is output to the outside 4 Allowable number of normally open or closed contacts There are no restrictions on the number of normally open or closed contacts used in a program as long as the program capacity is not exceeded Special relay SM62 Turns on even if only one o...

Page 357: ...e of the SET F instruction is recommended If the annunciator is turned on with any instruction than SET F and OUT F for example the MOV instruction the same operation as the internal relay M is performed The ON information is not stored in SM62 and annunciator numbers are not stored in SD62 and SD64 to SD79 b Processing after annunciator on 1 Data stored in the special register SD62 to SD79 Turned...

Page 358: ...rned on or off with the same instruction However even if an annunciator number is turned off with the OUT F instruction the off processing described in 6 b in this section is not performed If the annunciator is turned off with the OUT F instruction execution of the RST F LEDR or BKRST instruction is required Turning off annunciator 5 F5 Turning off all of the turned on annunciator numbers Remark F...

Page 359: ...ed off 3 LED indication When all of the annunciator numbers in SD64 to SD79 turn off the LED that was turned on by turn on of the annunciator will turn off 5 b in this section If the LEDR instruction is executed while the annunciator is on and at the same time the operation continuation error that has higher priority Section 6 21 1 than the annunciator has occurred the LEDR instruction clears the ...

Page 360: ...he on off information of X0 is stored in V0 and that of X1 is stored in V1 3 Precautions The edge relay of the same number cannot be set only once in a program Figure 9 16 Edge relay Figure 9 17 Application example and timing chart of the edge relay X0 X1 X10 V1 Stores on off information of X0 X1 and X10 Returns to FOR instruction SM400 X0Z1 V0Z1 SM400 1 1 MOV KO Z1 FOR K10 M0Z1 INC Z1 NEXT Clears...

Page 361: ... on the number of normally open or closed contacts used in a program as long as the program capacity is not exceeded Figure 9 18 Link refresh Figure 9 19 Link relay Link relay Link relay B0 LB0 CPU module MELSECNET H network module Link refresh setting range Link refresh X0 B0 TO Y20 X1 B0 B100 X2 B0 B1FFF SET B0 K20 No restrictions on the quantity used B0 is set to on when X0 turns on from off Li...

Page 362: ...nal relay Link relay range where latch is performed Latch relay Although the points for the link relay in a CC Link IE controller network module is 32768 the default for the link relay in the CPU module is 8192 points Although the points for the link relay in a MELSECNET H network module is 16384 the default for the link relay in the CPU module is 8192 points To use the link relay exceeding the ab...

Page 363: ...e Device tab of the PLC parameter dialog box Section 9 1 To an intelligent function module that has a link special relay such as a CC Link IE controller module or MELSECNET H network module 512 points are assigned Assigning the link special relay as shown in Figure 9 20 allows refresh of the CC Link link special relay SB to the link special relay SB of the CPU module Remark For details of the link...

Page 364: ...s provided for SFC programs Because the step relay is a device exclusively used for SFC programs it cannot be used as an internal relay in the sequence program If used an SFC error will occur and the system may go down Remark For use of the step relay refer to the following QCPU Q Mode QnACPU Programming Manual SFC ...

Page 365: ...e included in timer 2 3 Specification of the timer The same device is used for the low and high speed timers and the type is determined according to the instruction used For the OUT T0 instruction the low speed timer is specified and for the OUTH T0 instruction the high speed timer is specified The same device is used for the low and high speed retentive timers and the type is determined according...

Page 366: ...ed on and when it times out the contact is turned on If the timerís coil is turned off the current value is changed to 0 and the contact is turned off b Time increment setting The time increment is set in the PLC system tab of the PLC parameter dialog box The default is 10 0ms and it can be changed in increments of 0 01ms Figure 9 22 Ladder example and timing chart of a low speed timer Figure 9 23...

Page 367: ... in the same manner as the corresponding low or high speed timer Low speed retentive timer Low speed timer High speed retentive timer High speed timer To use a retentive timer set the points for it in the Device tab of the PLC parameter dialog box Figure 9 24 Ladder example and timing chart of a retentive timer X1 RST ST0 X0 ST0 K200 OFF OFF ON ON ON X0 OFF OFF 0 to 1 0 X1 150 ON X0 ON time is mea...

Page 368: ...imer coil current value update and on off switching of the contact are performed In the END processing the current timer value is not updated and the contact is not turned on off Figure 9 25 Processing at execution of the OUT T0 instruction X0 TO K10 END OUT TO END Processing at execution of OUT T0 instruction Ladder example Sequence program Processing Coil ON OFF Current value update Contact ON O...

Page 369: ...mit setting Figure 9 26 Timer accuracy in the case of 10ms X0 TO H K8 2 1 1 1 2 1 1 2 1 2 3 2 3 2 3 OUT T0 OUT T0 OUT T0 OUT T0 OUT T0 OUT T0 2 ON OFF OFF OFF ON ON OFF ON 3 2 3 2 3 Ladder example Current value update timing Program External input to X0 CPU module s X0 Coil of T0 Contact of T0 10ms counting Count with END instruction Current value of T0 END processing END processing END processing...

Page 370: ...curred the current timer value is not updated Also if a timer exists in a subroutine program execute a subroutine call including the OUT T1 instruction once in each scan while the coil of the timer for example T1 is on Failure to do so will not update the current timer value c Programs that cannot use timers Timers cannot be used in interrupt programs and fixed scan execution programs d When the s...

Page 371: ...T T1 OUT T0 OUT T1 OUT T0 OUT T1 OUT T0 OUT T1 OUT T0 OUT T1 OUT T0 END processing Contact of T0 Current value of T0 Coil of T1 Contact of T1 Current value of T1 Measures for one second when T1 is off Alternates on and off every second K10 T1 T1 K10 T0 T0 M0 T1 OUT T0 OFF OFF 0 0 0 1 One second 900ms 9 10 10 0 0 1 1 2 9 10 10 0 OFF OFF ON ON OFF ON OFF OFF OFF ON OUT T1 END processing OUT T0 OUT T...

Page 372: ...he current value is updated the count value 1 and the contact is turned on In the END processing the current counter value is not updated and the contact is not turned on b Current value update count value 1 The current value is updated count value 1 at the leading edge OFFÅ ON of the OUT C instruction The current value is not updated while the coil is off or when it remains on or turns off from o...

Page 373: ...e RST C instruction At the time of execution of the RST C instruction the counter value is cleared and the contact is also turned off Figure 9 31 Resetting the counter X0 RST C0 X0 OFF OFF ON END END END RST C0 RST C0 RST C0 Ladder example Counter reset timing Sequence program Execution Count value cleared the contact turned off Count value cleared the contact turned off RST C0 instruction ...

Page 374: ... scan the current value is updated since the coil of C0 turns on from off at execution of the OUT C0 instruction The current value is changed to 1 To prevent the above it is recommended to add a normally closed contact of the OUT C0 instruction execution to the condition for the RST C0 instruction execution so that the coil of C0 does not turn off while the execution condition M0 of the OUT C0 ins...

Page 375: ...ed If an interrupt occurs during execution of the processing shown below counting is suspended until completion of the processing execution Upon completion of the processing the counting restarts However if the same interrupt occurs again during each processing these interrupts are counted as once Each instruction on the sequence program Interrupt program Fixed scan execution type program n Duty 1...

Page 376: ... Dn and Dn 1 are the target of the processing The lower 16 bits correspond to the data register number Dn specified in the sequence program and the higher 16 bits correspond to the specified data register number 1 When D12 is specified in the DMOV instruction D12 represents the lower 16 bits and D13 represents the higher 16 bits Data of 2147483648 to 2147483647 or 0H to FFFFFFFFH can be stored in ...

Page 377: ...bits and data can be read or written in units of 16 bits Link register data are handled as signed data In the case of the hexadecimal notation 0000H to FFFFH can be stored However because the most significant bit represents a sign bit decimal values that can be specified are 32768 to 32767 The area range in the link register which is not used for a MELSECNET H network module can be used as a data ...

Page 378: ...hat the stored data are initialized when the CPU module is powered off or reset Although the number of points for the link register in a CC Link IE controller network module is 131072 points the default value for the link register in the CPU module is 8192 points Although the number of points for the link register of a MELSECNET H network module is 16384 points the default value for the link regis...

Page 379: ... parameter dialog box Section 9 1 The points for an intelligent function module such as a CC Link IE controller network module or a MELSECNET H network module are 512 By assigning it as shown in Figure 9 42 data of the link special register SW in a CC Link module can be also refreshed to the link special register SW in the CPU module Remark For details of the link special register refer to the man...

Page 380: ...assed to FX0 and M0 respectively and D0 data are passed to FD2 2 Applications of function devices Because a device in each calling program can be determined by using a function device for subroutine programs the same subroutine program can be used without considering other calling programs 3 Types of function devices The following three types of function devices are available Function input FX Fun...

Page 381: ...re output data from the subroutine program The function register of one point can occupy up to four words Note that however the number of words used differs depending on the instruction in the subroutine program 1 A one word instruction uses one word only 2 two word instruction uses two words 3 At a destination using 32 bit multiplication or division four words are used Word devices of the CPU mod...

Page 382: ...s occurs function register values will not be normally passed to the calling program Remark For use of function devices refer to the following QCPU Programming Manual Common Instructions Figure 9 47 Ladder example in which use of devices is not allowed in a subroutine program with argument passing CALLP P0 D0 D R0 R10 FD0 P0 MOV K0 D3 Since D0 to D3 are used for FD0 D3 cannot be used in the subrou...

Page 383: ...f the PLC parameter dialog box 3 Applicability differs depending on the CPU module version Appendix 2 Remark For details of the special relay refer to CHAPTER 12 Table9 3 Special relay classification list Classification Special relay Diagnostics information SM0 to SM199 Serial communication function SM100 to SM115 1 System information SM200 to SM399 System clocks and counters SM400 to SM499 Scan i...

Page 384: ...1000 is selected in the PLC system tab of the PLC parameter dialog box 3 Applicability differs depending on the CPU module version Appendix 2 Remark For details of the special register refer to CHAPTER 12 Table9 4 Special register classification list Classification Special register Diagnostics information SD0 to SD199 Serial communication function SD100 to SD111 1 System information SD200 to SD399...

Page 385: ...h 2 Specification method and application example a Specification method Specify a network number and a device number b Application example For link register 10 W10 of network number 2 J2 W10 must be used For a bit device X Y B or SB the digit must be specified J1 K1X0 J10 K4B0 Figure 9 48 Specification method Figure 9 49 Application example Network number 1 to 255 Input Output Link relay Link regi...

Page 386: ...es on the CPU module side which are set by refresh parameters Refresh parameter settings 1 Network number 1 2 CPU module W0 to W3F Network module LW0 to LW3F If data are written to another stationís write range using a link direct device the data will be overwritten with other data that are received from the corresponding station Figure 9 50 Write range of a link direct device Figure 9 51 Writing ...

Page 387: ...etwork refresh parameters refer to the following Details Network manual for each network module Setting method GX Developer Version 8 Operating Manual Figure 9 52 When two or more network module are mounted on the same network Table9 5 ÉäDifferences between link direct devices and link refresh Item Link direct device Link refresh Description on programs Link relay J K4B0 or higher B0 or higher Lin...

Page 388: ...rter module is mounted in the position of I O number 020 X Y020 to X Y02F to store digital output values of CH 1 to CH 4 into D0 to D3 accordingly specify the device as shown in Figure 9 53 If the intelligent function module device is used device comments can be attached to the buffer memory GX Developer Version 8 Operating Manual Figure 9 53 Specification method Figure 9 54 Application example Sp...

Page 389: ... D10 Instead of using the intelligent function module device in the sequence program twice or more to write or read buffer memory data using the FROM or TO instruction once in one place can increase the processing speed Remark 1 For buffer memory addresses and applications refer to the manual for each intelligent function module special function module 2 For the FROM and TO instructions refer to t...

Page 390: ...lic transmission area device program readability is increased Because information on the CPU shared memory can be directly specified as an argument of the instruction no interlock device is required 3 Specification method Specify the I O number of the CPU module and the CPU shared memory address Remark For details of the cyclic transmission area device refer to the following QCPU Userís Manual Mul...

Page 391: ...it One point of the index register consists of 16 bits and data can be read or written in units of 16 bits Index register data are handled as signed data In the case of the hexadecimal notation 0000H to FFFFH can be stored However because the most significant bit represents a sign bit decimal values that can be specified are 32768 to 32767 Figure 9 58 Index register Figure 9 59 Bit structure of th...

Page 392: ... register D extended link register W using the serial number access method 32 bit index modification using two points of the index register is available The following two kinds of methods can be used to specify the index register Specify the range used for 32 bit index modification Specify the 32 bit index modification using ZZ Note9 3íç1 Remark For details of index modification refer to the follo...

Page 393: ... in this case is called the standard device resister 2 Device number Since the standard device register is the same device as the index register pay attention not to use the same device number when using the index modification Remark For operation processing and processing time of the standard device register refer to the following QCPU Programming Manual Common Instructions ...

Page 394: ... to the interrupt fixed scan execution type program Saving and restoring the index register data Saving and restoring block numbers of the file register 1 Setting for saving and restoration Saving and restoration setting can be enabled in the PLC system tab of the PLC parameter dialog box To disable writing to the index register in the interrupt fixed scan execution type program select High speed ...

Page 395: ...ogram The CPU module restores the saved index register values 1 The Z0 value is changed to 3 in the interrupt program To pass index register values from the interrupt fixed scan execution type program to the scan execution type program use word devices Figure 9 62 Saving and restoring index register data when High speed execution is not selected Execution program Z0 1 Z0 1 Z0 3 1 Z0 0 Z0 1 Passed ...

Page 396: ...e program will be corrupted 1 The Z0 value is changed to 3 in the interrupt program When writing data to the index register by the interrupt fixed scan execution type program use the ZPUSH or ZPOP instruction to save and restore the data Figure 9 63 Saving and restoring index register data when High speed execution is selected Figure 9 64 Writing data to the index register in the interrupt fixed s...

Page 397: ...ram b When switching from the interrupt fixed scan execution type program to the scan execution type program The CPU module restores the saved block numbers of the file register Figure 9 65 Saving and restoring file registerís block numbers RSET K0 Execution program Save area Switching Restored Block 1 Restored Block 1 Block 1 Block 1 Block 1 Block 0 Block 1 Passed Saved Block1 0 Block No of file ...

Page 398: ...uence program and the higher 16 bits correspond to the specified file register number 1 For example when R2 is specified in the DMOV instruction R2 represents the lower 16 bits and R3 represents the higher 16 bits Data of 2147483648 to 2147483647 or 0H to FFFFFFFFH can be stored in a two point area of the file register The most significant bit in a 32 bit structure is a sign bit 注 1 Figure 9 66 Wr...

Page 399: ... Clear all file registers 9 7 1 File register data storage location There are the following three kinds of memory media for storing file register data Standard RAM SRAM card Flash card 9 7 2 File register size 1 When using the standard RAM The table below shows the maximum points of file register data that can be stored in the standard RAM Note that however if the standard RAM is used for an appli...

Page 400: ...rd capacity and the size of the programs and device comments stored in the memory card Remark For the memory cards available for the CPU module refer to Section 5 1 1 9 7 3 Differences in available accesses by storage memory Accesses available for the file register vary for each memory Table9 7 Differences in accesses available for the file register Access Standard RAM SRAM card Flash card Program...

Page 401: ... Registration procedure for the file register PLC file tab of the PLC parameter dialog box File register setting New Device memory window Select Use the following file Writing the file register Online Write to PLC Write parameters to the CPU module Write the file register to the CPU module Start Setting a file register Select Not used or Use the same name as the program ...

Page 402: ... not using any file register When specifying a file register used in the sequence program the QDRSET instruction is used for specification b Use the same file name as the program Select this when executing the file register with the same file name as the sequence program 1 When the program is changed The file name of the file register is automatically changed to the same name as the program This f...

Page 403: ...programs Specify Corresponding memory File name and Capacity and write these parameters to the CPU module to create a file for the file register If the capacity is not specified note the following When the specified file register file is stored in the specified drive the file is used The capacity is the same as that of the stored file register file If the file register file with the specified file...

Page 404: ...register This step is not needed when you specify only the capacity of file register 3 Registering the file register file to the CPU module When either of the following is selected in the PLC file tab of the PLC parameter dialog box the file register file must be registered to the CPU module Not used 1 a in this section Use the same name with the program 1 b in this section File register files can...

Page 405: ...e of the CPU module The file register size can be set in increments of one point Note that each file size is ensured in units of 256 points Even if a file register is not specified from ZR0 the created file will have an assignment from ZR0 to the last number For example if the write range of a file register is specified to be ZR1000 to ZR1791 the created file register file will have an assignment ...

Page 406: ...se size is exceeding 32K points can be specified using consecutive device numbers Multiple blocks of a file register can be used as a continuous file register This kind of device is expressed as ZR The block numbers and ZR device points that can be specified vary depending on the following Storage location of the file register Section 9 7 1 File register size Section 9 7 2 Figure 9 75 Block switch...

Page 407: ...ze can be checked in the File register capacity area SD647 1 The file register size data in units of 1K points is stored in this SD647 1 If a file register file is switched to another the size of the currently selected file register file is stored in SD647 The remainder after dividing the file register size by 1K points is discarded To ensure an accurate range of use check specify the file registe...

Page 408: ...QDRSET instruction Program example 3 When a block is switched to another 3 Deleting a file register file To delete an unnecessary file register file select Online Delete PLC data in GX Developer Figure 9 77 Program examples of file register checking SM400 M0 Y0 M0 Transfer command M0 MOVP K4X20 R0 SD647 K4 4K points specified Final file register range check Writing to file register Alarm processin...

Page 409: ...ta register D and extended link register W cannot be used For using them for the Q02UCPU Q03UDCPU Q04UDHCPU Q06UDHCPU Q13UDHCPU Q26UDHCPU and Built in Ethernet port QCPU check the version of GX Developer Appendix 2 Universal Device Internal user device File register file Device numbers can be assigned to the data register and extended data register consecutively Extended data register Data registe...

Page 410: ...device and the extended data register D and between the link register W internal user device and the extended link register W To use them as one contiguous area set the points for the data register D and link register W internal user device to 0 in the Device tab of the PLC parameter dialog box and use only the extended data register D and extended link register W When using the file register ZR e...

Page 411: ...d 8M bytes is used 3 This is the maximum number of points when a Flash card 4M bytes is used 4 For the Q00UCPU and Q01UCPU no memory card can be used Figure 9 79 Dialog box for file register point setting Table9 8 File register setting item list Item Corresponding memory File name Capacity 1 Remarks Use the following file Memory card RAM 4 Any name 1 to 4086K points 2 Memory card ROM 4 Any name 1 ...

Page 412: ...ster D and extended link register W is set areas for these devices are reserved in the file register file Figure 9 80 File register extended setting Figure 9 81 Areas for the extended data register D and extended link register W Specify the latch range if data are to be latched Set these points so that the total is equal to the file register size set in the PLC file tab The number of file register...

Page 413: ...ROR error code 4100 4 Set the refresh ranges for the following auto refresh properly so that each refresh range does not cross over the boundary between the internal user device and the extended data register D or extended link register W Auto refresh with network modules Auto refresh with intelligent function modules Auto refresh between CPU shared memories 5 Set the following properly so that ea...

Page 414: ...ister W hexadecimal WC Points of the link register W Calculation example DC Points of the data register D 12288 points WC Points of the link register W 8192 points ZRC Points of the file register ZR 2048 points EDC Points of the extended data register D 2048 points 1 Device number of the file register ZR used to access D13000 EDZN 2048 13000 12288 2760 2 Device number of the file register ZR used ...

Page 415: ...ide of the nesting structure Remark For use of the nesting refer to the following QCPU Programming Manual Common Instructions Figure 9 83 Programming example using the nesting Executed when conditions A and B are met Executed when conditions A B and C are met Executed when conditions A and B are met Executed when condition A is met Executed when condition A is met M15 N0 B C A M15 N0 MC M16 N1 MC ...

Page 416: ...ne call instruction CALL or CALLP and a label start address of the subroutine program 3 Pointer types There are the following two different pointer types Local pointer Section 9 10 1 The pointer used independently in each program Common pointer Section 9 10 2 The pointer that can be called in all running programs by the subroutine call instruction 4 Number of available pointer points The number of...

Page 417: ...le the number of points used will be 100 which is from P0 to P99 For using the local pointer for several programs use the pointers in ascending order starting from P0 in each program The total is 600 points when the pointer is used as shown below Figure 9 85 Using the same pointer in respective programs local pointer Figure 9 86 Concept of the local pointer points Program B Program A P0 P0 CALL P0...

Page 418: ...m another program is not allowed jump instructions and sub routine CALL instructions Use the ECALL instruction from another program when calling a subroutine program in a program file that contains any local pointer b Total number of local pointer points If the total number of pointers in all programs exceeds 4096 points a Pointer configuration error error code 4020 occurs ...

Page 419: ...number that can be entered here is a number higher than the total points used for the local pointer If a total of 400 points are used in three programs 100 points in each of Program A and Program B and 200 points in Program C for example P400 and higher numbers can be set for the common pointer Figure 9 87 Calling pointers in another program common pointer Figure 9 88 Dialog box for setting the co...

Page 420: ...r a Pointer configuration error error code 4020 will occur The jump instructions are not capable of executing a jump to the common pointer in other programs Use the common pointer with subroutine call instructions only Figure 9 89 Concept of the common pointer range Program A Program B Program C Using P0 to P99 Using P0 to P99 Using P0 to P199 100 points of P0 to P99 occupied 100 points of P0 to P...

Page 421: ...h speed counter module For details refer to the manual for each module To use the intelligent function module interrupt Section 6 22 the intelligent function module setting interrupt pointer setting is required in the PLC system tab of the PLC parameter dialog box Figure 9 90 Interrupt pointer Table9 10 Classification of interrupt factors Interrupt factor Interrupt pointer No Description Interrupt...

Page 422: ...he highest priority priority 22 and I255 has the lowest priority priority 227 5 When an interrupt occurs even if no interrupt pointer exists on the program CANíT EXECUTE I error code 4220 does not occur Table9 11 List of interrupt pointer numbers and interrupt factors I No Interrupt factor Priority I No Interrupt factor Priority I0 Interrupt by interrupt module QI60 1st point 6 I32 to I44 N A I1 2...

Page 423: ...work No specification device is used to specify the network number in the link dedicated instructions 2 Specification method In the link dedicated instruction this device is specified as shown in Figure 9 91 Remark For details of the link dedicated instructions refer to the following Reference manual for each network module Figure 9 91 How to use the network No specification device Jn JP READ S1 S...

Page 424: ...instructions 2 Specification method In the intelligent function module dedicated instruction this device is specified as shown in Figure 9 92 Remark For details of the intelligent function module dedicated instructions refer to the following Manual for the intelligent function module used Figure 9 92 How to use the I O áÇ specification device Un GP READ S1 S2 S3 D Instruction name I O No specifica...

Page 425: ...ion ladders in ascending order With the macro instruction argument device VD0 to VD9 can be used in one macro registration ladder The GX Developer read mode provides an option to view a program in macro instruction format To change the display select View Display macro instruction format Figure 9 93 Macro instruction argument device specification Figure 9 94 Setting for macro instruction display P...

Page 426: ...32768 to K32767 When using 2 word data 32 bit data K 2147483648 to K2147483647 The most significant bit represents a sign bit 9 13 2 Hexadecimal constant H 1 Definition The hexadecimal constant H is a device for specifying hexadecimal or BCD data in sequence programs For BCD data each digit of a hexadeciml number is specified with 0 to 9 In sequence programs specify it as H example H1234 Section 2...

Page 427: ...tion c When a special value 1 is input If operation is performed with input data that contains a special value OPERATION ERROR error code 4140 occurs 1 The special values are 0 unnormalized numbers nonnumeric characters and 3 Specification method Real numbers can be specified in sequence programs by the following expressions Normal expression A numeric value can be specified as it is 10 2345 can b...

Page 428: ...osed in quotation marks example ABCD1234 are specified 2 Available characters All ASCII code characters can be used in character strings The CPU module distinguishes between upper and lower case characters 3 Number of specified characters A string from the specified character to the NUL code 00H is one unit Note that however up to 32 characters can be specified for an instruction using a character...

Page 429: ...ple programs that are being executed Local device that is used independently for each program 9 14 1 Global device Programs being executed in the CPU module can share the global device Global device data are stored in the device memory of the CPU module and can be shared by all programs Figure 9 96 Using a global device Y12 M0 Program A Y11 M0 Program B M0 ON OFF data Device memory Internal relay ...

Page 430: ...idering other programs Note that local device data can be stored in the standard RAM and a memory card SRAM only Figure 9 97 Range specification for a device 注 1 Figure 9 98 Using local devices Example Internal relay M0 Shared by all programs Used in program A Used in program B Used in program C The range must be specified for each program Note9 6 Note9 6 For the Q00UJCPU local devices cannot be u...

Page 431: ...ot be specified For details refer to the pages describing devices available for each instruction in the following manual QCPU Programming Manual Common Instructions 2 For the concept of the number of words used for the local devices refer to Section 9 2 注 1 Figure 9 99 Saving and restoring local device files Note9 7 When using the index register as a local device for the Q02UCPU Q03UDCPU Q04UDHCPU...

Page 432: ...l programs that use the local device The 32 bit index modification range must not overlap with the local device setting range of the index register If overlapped 32 bit index modification values will be written over the local device values When CPU module parameters which contains local device setting of the index register are read out from the GX Developer that does not support the setting all of...

Page 433: ...memory for storing the local device file and a file name in the PLC file tab of the PLC parameter dialog box c Writing the setting data Write the data set in a and b to the CPU module Select Online Write to PLC in GX Developer Figure 9 102 PLC file Figure 9 103 Device memory writing ...

Page 434: ...ice for each program Note9 8íç1 Use of the local device can be set for each program and this function can reduce the scan time Also since the area for saving and restoring data is not required for the programs not using a local device the local device file size can be reduced 注 1 Figure 9 104 Save area configuration of a local device file Trace result PLC read Trace result Create CSV file Note9 8 ...

Page 435: ...ng a local device file Creation of a local device file depends on the PLC parameter settings Table9 13 shows the conditions for creating a local device file Creates a file Not create a file 1 Indicates the local device range setting in the Device tab Figure 9 105 File usability setting dialog box Table9 13 Conditions for creating a local device file PLC parameter setting File creation Error detect...

Page 436: ...he local device that corresponds to the source file of the subroutine program ON Perform operations with the local device that corresponds to the file where the subroutine program is stored Figure 9 106 When SM776 is off Figure 9 107 When SM776 is on X0 X2 P100 D0 CALL INCP END RET P100 Subroutine program Local device area for file name ABC Local device area for file name DEF File name ABC File na...

Page 437: ...e of this the scan time is increased if one subroutine program is executed with SM776 set to on The on off status of SM776 is set for each CPU module It cannot be set for each file If the on off status of SM776 is changed during sequence program execution control is implemented according to the information after the change Remark For details of SM776 refer to CHAPTER 12 ...

Page 438: ...SM777 Operation OFF Perform operations with the local device that corresponds to the program executed before the interrupt fixed scan execution type program ON Perform operations with the local device that corresponds to the program file where the interrupt fixed scan execution type program is stored Figure 9 108 When SM777 is off Figure 9 109 When SM777 is on X0 X2 D1 D0 DECP INCP END Interrupt o...

Page 439: ...e on off status of SM777 is set for each CPU module It cannot be set for each file If the on off status of SM777 is changed during sequence program execution control is implemented according to the information after the change Remark For details of SM777 refer to CHAPTER 12 7 Clearing local device data Local device data is cleared by either of the following When the CPU module is powered off and t...

Page 440: ...ime Instruction execution time Processing in the RUN status Program check I O refresh Execution of the DUTY instruction in END processing no execution when the DUTY instruction is not used Program execution End the program 1 Refresh via MELSECNET H Refresh via CC Link IE controller network Refresh via CC Link Refresh by the intelligent function module parameters set in GX Configurator Calendar upd...

Page 441: ...he main base unit and extension base units Input module Output module Intelligent function module Calculation method Use the following expression to calculate the I O refresh time I O refresh time number of input points 16 N1 number of output points 16 N2 For N1 and N2 refer to Table10 1 Figure 10 2 Scan time storage location Table10 1 I O refresh time CPU module Q3 B Q3 SB Q3 RB Q3 DB Q5 B Q6 B Q...

Page 442: ...e The instruction execution time is the time required for all instructions used in the program to be exe cuted Remark For the processing time required for each instruction refer to the following QCPU Programming Manual Common Instructions Table10 2 Instruction execution time in END processing CPU module Processing time in END processing When set to 1 When set to 5 Q00UJCPU Q00UCPU Q01UCPU 0 0120ms...

Page 443: ...ith high speed start Q00UJCPU Q00UCPU Q01UCPU 55 s 35 s 76 s 55 s Q02UCPU 48 s 17 s 60 s 31 s Q03UDCPU Q03UDECPU 47 s 17 s 46 s 16 s 54 s 22 s Q04UDHCPU Q06UDHCPU Q10UDHCPU Q13UDHCPU Q20UDHCPU Q26UDHCPU Q04UDEHCPU Q06UDEHCPU Q10UDEHCPU Q13UDEHCPU Q20UDEHCPU Q26UDEHCPU 46 s 16 s 44 s 14 s 52 s 22 s Table10 4 Program end overhead time for interrupt programs CPU module Without high speed start With h...

Page 444: ...ograms Table10 3 Additional time to the program end overhead time for interrupt programs Table10 4 Q00UCPU Q01UCPU 13 2 N1 0 22 N2 N3 16 210 s 8 N1 0 23 N2 N3 16 30 s Q02UCPU 13 2 N1 0 22 N2 N3 16 210 s 8 N1 0 22 N2 N3 16 30 s Q03UDCPU Q03UDECPU 8 N1 0 22 N2 N3 16 80 s 8 N1 0 22 N2 N3 16 20 s Q04UDHCPU Q06UDHCPU Q10UDHCPU Q13UDHCPU Q20UDHCPU Q26UDHCPU Q04UDEHCPU Q06UDEHCPU Q10UDEHCPU Q13UDEHCPU Q2...

Page 445: ...tween link devices in a CC Link IE controller network module and devices in the CPU module b Refresh via MELSECNET H This is the time required for refreshing data between link devices in a MELSECNET H network module and devices in the CPU module c Auto refresh via CC Link This is the time required for refreshing data between a CC Link system master local module and CPU module Remark For each refre...

Page 446: ...0 9 When the number of auto refresh points for the analog digital converter module Q64AD is 4 points when the module is mounted on the Q26UDHCPU main base unit Table10 8 When an intelligent function module is mounted on the main base unit CPU module KN1 KN2 Q00UJCPU Q00UCPU Q01UCPU 96 3 s 6 7 s Q02UCPU 23 s 6 s Q03UDCPU Q03UDECPU 6 s 5 s Q04UDHCPU Q06UDHCPU Q10UDHCPU Q13UDHCPU Q20UDHCPU Q26UDHCPU ...

Page 447: ...cessing time CPU module Processing time in END processing When the clock data set request is issued When the clock data read request is issued Q00UJCPU Q00UCPU Q01UCPU 0 040ms 0 019ms Q02UCPU 0 040ms 0 019ms Q03UDCPU Q04UDHCPU Q06UDHCPU Q10UDHCPU Q13UDHCPU Q20UDHCPU Q26UDHCPU Q03UDECPU Q04UDEHCPU Q06UDEHCPU Q10UDEHCPU Q13UDEHCPU Q20UDEHCPU Q26UDEHCPU 0 011ms 0 004ms Table10 11 Error clear processi...

Page 448: ... where the points are set for the latch relay L is included 3 The scan time will not increase if the latch range is set for the file register R ZR extended data register D or extended link register W To shorten the scan time minimize the number of latch points The number of latch points can be reduced by performing the following Move data to be latched to the file register Store device data that i...

Page 449: ... s Manual Multiple CPU System Table10 13 Processing time to monitor device data and read programs CPU module Processing time 1 Monitoring device data Data register 32 points Reading programs 10K step Q00UJCPU Q00UCPU Q01UCPU 1 60ms 3 70ms Q02UCPU 1 00ms 1 55ms Q03UDCPU Q04UDHCPU Q06UDHCPU Q10UDHCPU Q13UDHCPU Q20UDHCPU Q26UDHCPU Q03UDECPU Q04UDEHCPU Q06UDEHCPU Q10UDEHCPU Q13UDEHCPU Q20UDEHCPU Q26UD...

Page 450: ...hown in Table10 16 is required Table10 16 Processing time when 50 points of the internal relay for bit device and 50 points of the data register for word device are set as sampling trace data CPU module Processing time Standard RAM Q00UCPU Q01UCPU 0 12ms Q02UCPU 0 09ms Q03UDCPU Q03UDECPU 0 07ms Q04UDHCPU Q06UDHCPU Q10UDHCPU Q13UDHCPU Q20UDHCPU Q26UDHCPU Q04UDEHCPU Q06UDEHCPU Q10UDEHCPU Q13UDEHCPU ...

Page 451: ...rlier n indicates the number of executed programs Table10 17 Processing time when local devices are used CPU module Processing time Standard RAM Q00UCPU Q01UCPU 12 5 N1 0 24 N2 N3 16 170 n s Q02UCPU 12 N1 0 22 N2 N3 16 140 n s Q03UDCPU Q03UDECPU 8 N1 0 22 N2 N3 16 50 n s Q04UDHCPU Q06UDHCPU Q10UDHCPU Q13UDHCPU Q20UDHCPU Q26UDHCPU Q04UDEHCPU Q06UDEHCPU Q10UDEHCPU Q13UDEHCPU Q20UDEHCPU Q26UDEHCPU 8 ...

Page 452: ...ime when a subroutine program in the same file is called Processing time when a subroutine program in a different file is called Q00UCPU Q01UCPU 0 00 s 24 N1 0 73 N2 N3 16 280 s Q02UCPU 0 00 s 24 N1 0 44 N2 N3 16 280 s Q03UDCPU Q03UDECPU 0 00 s 16 N1 0 44 N2 N3 6 100 s Q04UDHCPU Q06UDHCPU Q10UDHCPU Q13UDHCPU Q20UDHCPU Q26UDHCPU Q04UDEHCPU Q06UDEHCPU Q10UDEHCPU Q13UDEHCPU Q20UDEHCPU Q26UDEHCPU 0 00...

Page 453: ... 1 ms Q02UCPU 0 04 n 1 ms Q03UDCPU Q03UDECPU 0 02 n 1 ms Q04UDHCPU Q06UDHCPU Q10UDHCPU Q13UDHCPU Q20UDHCPU Q26UDHCPU Q04UDEHCPU Q06UDEHCPU Q10UDEHCPU Q13UDEHCPU Q20UDEHCPU Q26UDEHCPU 0 02 n 1 ms Table10 21 Processing time when a memory card is removed or inserted CPU module Processing time When a memory card is inserted When a memory card is removed Q02UCPU 0 7ms 0 2ms Q03UDCPU Q04UDHCPU Q06UDHCPU...

Page 454: ...ble10 23 Proceccing time online change ladder mode CPU module Processing time The reserved area for online change is not changed The reserved area for online change is re set Q00UJCPU Q00UCPU Q01UCPU Up to 2 1ms Up to 2 1ms Q02UCPU Up to 1 3ms Up to 1 3ms Q03UDCPU Q03UDECPU Up to 1 0ms Up to 1 0ms Q04UDHCPU Q06UDHCPU Q10UDHCPU Q13UDHCPU Q20UDHCPU Q26UDHCPU Q04UDEHCPU Q06UDEHCPU Q10UDEHCPU Q13UDEHC...

Page 455: ...d during the scan time measurement Pointer branch instruction CJ SCJ JMP Subroutine program call instruction CALL P FCALL P ECALL P EFCALL P XCALL P RET Figure 10 3 Multiple CPU settings screen Table10 25 Processing time when the scan time is measured CPU module Processing time Q00UJCPU Q00UCPU Q01UCPU 179 5 5 8 number of branch instructions s 1 Q02UCPU 40 0 3 0 number of branch instructions s 1 Q...

Page 456: ...y module has failed Power for the redundant power supply module is turned off The redundant power supply module is not mounted Table10 26 Processing time when data is batch transferred to the program memory CPU module Processing time Scan time 2ms Scan time 20ms Q00UJCPU Q00UCPU Q01UCPU 1 90ms 4 90ms Q02UCPU 1 55ms 4 50ms Q03UDCPU Q03UDECPU 1 10ms 3 65ms Q04UDHCPU Q06UDHCPU Q10UDHCPU Q13UDHCPU Q20...

Page 457: ... or memory card can be set If the program size above is required for only programs store the parameters in the standard ROM or memory card 2 Determining a unit for structuring the programs When creating multiple programs determine a unit process function for structuring the programs 3 Setting the execution conditions for programs to be created When executing multiple programs set their execution c...

Page 458: ...number of device points used in the program CHAPTER 9 5 Setting the initial device value Set data necessary as an initial value to the device memory and the buffer memory of the intelligent function module Section 6 25 6 Setting boot operation When storing a program to the memory card execute the program after boot operation For boot operation make the setting in the Boot file tab of the PLC param...

Page 459: ...eveloper Version 8 Operating Manual Select Online Write to PLC Program memory Device memory for Target memory in GX Developer and write the parameters and program Write the PLC parameters and program with the same settings immediately after the project was created by GX Developer Start GX Developer and create a project Connect the personal computer to which GX Developer is installed to the CPU mod...

Page 460: ...e programmable controller and then on or reset the CPU module Set the RUN STOP RESET switch to RUN to change the CPU module in the RUN status Is the RUN LED on Is the ERR LED off Please consult your local Mitsubishi service center or representative explaining a detailed description of the problem Check the error cause in the System Monitor screen displayed by selecting Diagnostics System Monitor i...

Page 461: ...n 6 25 Use the initial device value Set the device memory Set the initial device value range Set a file name for initial device value in the PLC file tab of the PLC parameter dialog box Set the RUN STOP RESET switch to STOP and power on the CPU module the ERR LED turns on NO YES Start Start GX Developer Set the project Change the number of device points Change the number of device points in the De...

Page 462: ...rk number 1 only Figure 11 2 Flowchart for writing one program 1 YES NO YES NO To Section 11 5 Select Online Format PLC memory in GX Developer and format the program memory To write the parameters created program and initial device value make settings in the Write to PLC screen displayed by selecting Online Write to PLC in GX Developer Power off the programmable controller and then on or reset the...

Page 463: ...n on the CPU module side Section 6 25 YES NO Section 6 25 Section 6 25 Use the initial device value Set the device memory Set the initial device value range Set a file name for initial device value in the PLC file tab of the PLC parameter dialog box NO YES 1 Section 9 2 Start Start GX Developer Set the project Change the number of device points Change the number of device points in the Device tab ...

Page 464: ...O Section 2 3 Set local devices Set the local device range in the Device tab of the PLC parameter dialog box Set a file name for the local devices in the PLC file tab of the PLC parameter dialog box Use the common pointers Set the start pointer number in the PLC system tab of the PLC parameter dialog box Set the names and execution conditions of programs to be executed in the Program tab of the PL...

Page 465: ...the control CPU in the MELSECNET H system the Universal model QCPU can communicate with the Universal model QCPU where MISSING PARA has been detected via the MELSECNET H for the network number 1 only Figure 11 3 Flowchart for writing multiple programs NO NO 3 YES To Section 11 5 YES Is the ERR LED on the CPU module on flashing QCPU User s Manual Hardware Design Maintenance and Inspection Start boo...

Page 466: ...itial values and device comments in the Boot file tab of the PLC parameter dialog box Set the names and execution conditions of programs to be executed in the Program tab of the PLC parameter dialog box This setting is necessary when one program is written Use the memory card except the Flash card Select Online Format PLC memory in GX Developer and format the program memory Select Online Write to ...

Page 467: ...r and if it is set by the system when setting is performed Set by S Set by system U Set by user sequence programs or test operations from GX Developer S U Set by both system and user When set Indicated only for registers set by system Each END Set during each END processing Initial Set only during initial processing when power supply is turned ON or when going from STOP to RUN Status change Set on...

Page 468: ... Error common information OFF No error common information ON Error common information When SM0 is ON turns ON if there is error common information S Error New QCPU SM16 Error individual information OFF No error individual information ON Error individual information When SM0 is ON turns ON if there is error individual information S Error New SM50 Error reset OFF ON Error reset Conducts error reset ...

Page 469: ... to SD95 M9113 SM96 Corresponds to SD96 M9114 SM97 Corresponds to SD97 New SM98 Corresponds to SD98 New SM99 Corresponds to SD99 New SM100 Serial communication function using flag OFF Serial communication function is not used ON Serial communication function is used Stores the setting of whether the serial communication function is used or not in the serial communication setting parameter S Power ...

Page 470: ... interlock for accessing the CPU module No 1 when the multiple CPU synchronous setting is asynchronous S When status changed New QnU SM221 CPU No 2 preparation completed OFF CPU No 2 preparation uncompleted ON CPU No 2 preparation completed Turned ON when access can be made to the CPU module No 2 from the other CPU module at power on or reset operation SM221 is used as interlock for accessing the ...

Page 471: ...e CPU module is removed from the base The other CPUs result in MULTI CPU DOWN error code 7000 Qn H 1 QnPH QnU 5 SM244 No 1 CPU error flag OFF No 1 CPU normal ON No 1 CPU during stop error Goes OFF when the No 1 CPU is normal including a continuation error Comes ON when the No 1 CPU is during a stop error Q00 Q01 1 Qn H 1 QnPH QnU 8 SM245 No 2 CPU error flag OFF No 2 CPU normal ON No 2 CPU during s...

Page 472: ...te For refresh from CPU module to link B W etc designate whether to write to the link module U New SM270 MELSECNET 10 MELSECNET H module 4 information OFF Operative network ON Standby network Goes ON for standby network If no designation has been made concerning active or standby active is assumed S Initial New SM271 OFF Reads ON Does not read For refresh from link to CPU module B W etc indicate w...

Page 473: ...ar processing mode when end step is reached OFF Clear processing is performed ON Clear processing is not performed Select whether clear processing will be performed or not if active steps other than the ones being held exist in the block when the end step is reached When this relay turns OFF all active steps are forcibly terminated to terminate the block When this relay is ON the execution of the ...

Page 474: ...ution type programAfter RUN OFF for 1 scan only After RUN OFF for 1 scan only This connection can be used for low speed execution type programs only S Every END processing New SM409 0 01 second clock Repeatedly changes between ON and OFF at 5 ms interval When Programmable Controller power supply is turned ON or a CPU module reset is performed goes from OFF to start Note that the ON OFF status chan...

Page 475: ...24 User timing clock No 4 M9024 SM430 User timing clock No 5 For use with SM420 to SM424 low speed programs S Every END processing New Qn H QnPH SM431 User timing clock No 6 SM432 User timing clock No 7 SM433 User timing clock No 8 SM434 User timing clock No 9 Table12 5 Special relay Number Name Meaning Explanation Set by When Set Corres ponding ACPU M9 Corresponding CPU SM510 Low speed program ex...

Page 476: ...n memory card is in use S Status change New SM605 Memory card remove insert prohibit flag OFF Remove insert enabled ON Remove insert prohibited Goes ON when memory card cannot be inserted or removed U New SM609 Memory card remove insert enable flag OFF Remove insert prohibited ON Remove insert enabled Turned ON by user to enable the removal insertion of memory card Turned OFF by the system after t...

Page 477: ...SM676 is ON restore the data every time turning ON from OFF the power supply from the next power on Delete the backuped latch data or restore the data every time turning ON from OFF the power supply until the latch data backup operation will be executed again U New SM680 Program memory write error OFF Write error ON Write not executed normal Turns ON if a write error is detected at writing to prog...

Page 478: ...ns as originally set when OFF CHK priorities updated when ON S Instruction execution New Qn H QnPH QnPRH SM715 EI flag OFF During DI ON During EI ON when EI instruction is being executed S Instruction execution New QCPU SM716 Block comparison Except an interrupt program OFF Mismatch found ON No mismatch Turns on when all data conditions are confirmed that they are met by the DBKCMP instruction Ini...

Page 479: ...truction is executed S Instruction execution New Qn H QnPRH SM750 Scaling instruction search method setting OFF Search next ON 2 part search Determines a search method when the scaling instruction is executed U New QnU 8 SM774 PID bumpless processing for complete derivative OFF Matched ON Not matched Specifies whether to match the set value SV with the process value PV or not in the manual mode U ...

Page 480: ... ON at instruction execution Turns OFF when the empty area exists at END processing S When instruction END processing executed New SM799 Block information using multiple CPU high speed transmission dedicated instruction for CPU No 4 OFF Block is secured ON Block set by SD799 cannot be secured Turns ON when the number of the remaining blocks of the dedicated instruction transmission area used for t...

Page 481: ...to save the time taken for processing special relays Remark The following are additional explanations about the Special Relay for Modification column When a special relay for modification is provided the device number should be changed to the provided QCPU special relay When is provided the converted special relay can be used for the device number When is provided the device number does not work w...

Page 482: ...an special relays and special registers in remote run mode from computer etc when SM1017 is on M9020 SM1020 User timing clock No 0 Relay which repeats on off at intervals of predetermined scan When power is turned on or reset is per formed the clock starts with off Set the intervals of on off by DUTY instruction n1 ON scan interval n2 OFF scan interval If DUTY instruction which specified from SM 1...

Page 483: ...trace completed OFF Sampling trace in progress ON Sampling trace completed Turned on upon completion of sampling trace performed the number of times preset by parameter after STRA instruction is executed Reset when STRAR instruction is executed M9044 SM1044 SM803 Sampling trace OFF ON Same as STRA instruction execution ON OFF Same as STRAR instruction execution Turning on off SM1044 can execute ST...

Page 484: ... OFF Other than when P I set being requested ON P I set being requested M9070 SM1070 A8UPU A8PUJrequired search time 3 OFF Read time not shortened ON Read time shortened Turned ON to shorten the search time in the A8UPU A8PUJ In this case the scan time is extended by 10 M9084 SM1084 Error check OFF Error check executed ON No error check It is set whether the error checks below are performed or not...

Page 485: ...art equivalent of SD96 M9196 SM1196 SM325 Operation output at block stop OFF Coil output OFF ON Coil output ON Selects the operation output when block stop is executed ON Retains the ON OFF status of the coil being used by using operation output of the step being executed at block stop OFF All coil outputs are turned off Operation output by the SET instruction is retained regardless of the ON OFF ...

Page 486: ... by When Set Corres ponding ACPU M9 Corresponding CPU SM1510 Operation mode OFF Redundant system backup mode stand alone system ON Redundant system separate mode Turns on when the operating mode is redundant system separate S Each END New QnPRH SM1511 System A identification flag Distinguishes between system A and system B The flag status does not change even if the tracking cable is disconnected ...

Page 487: ...side S Each END New SM1520 Data tracking transfer trigger specification OFF No trigger ON Trigger SM1520 Block 1 When data is transferred based on the tracking setting of the redundant parameter dialog box the target block is specified as trigger When Auto Tracking block No 1 is enabled in the tracking setting SM1520 is turned ON by the system at power ON STOP to RUN In other cases SM1520 to SM158...

Page 488: ... 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 SM1583 Block 64 SM1590 System switching enable disable flag from network module OFF System switching request issuing module absent ON Syste...

Page 489: ...other system completion flag OFF Memory copy not completed ON Memory copy completed Turns on once the memory copying to the other system has completed S finish U New SM1598 Copy contents of standard ROM during memory copy OFF Copy standard ROM data ON Standard ROM data is not copied If set to on by user the standard ROM data is not copied to the other system while memory copy is executing U Table1...

Page 490: ...09 2 System switching due to any of the following conditions is executed even during online program change redundant tracking regardless of the status of this relay Power off reset hardware failure CPU stop error 3 In either of the following statuses the system switching disable status can also be canceled by this relay Multiple block online program change redundant tracking execution status File ...

Page 491: ...13 SM1725 SM1725 Block 14 SM1726 SM1726 Block 15 SM1727 SM1727 Block 16 SM1728 SM1728 Block 17 SM1729 SM1729 Block 18 SM1730 SM1730 Block 19 SM1731 SM1731 Block 20 SM1732 SM1732 Block 21 SM1733 SM1733 Block 22 SM1734 SM1734 Block 23 SM1735 SM1735 Block 24 SM1736 SM1736 Block 25 SM1737 SM1737 Block 26 SM1738 SM1738 Block 27 SM1739 SM1739 Block 28 SM1740 SM1740 Block 29 SM1741 SM1741 Block 30 SM1742...

Page 492: ...er supply module with input power OFF detected ON Redundant power supply module with input power OFF detected Turns ON when one or more redundant power supply modules with input power OFF are detected Turns on if any of SD1780 bits is on Turns off if all bits of SD1780 are off Turns OFF when the main base unit is not the redundant main base unit Q38RB When the multiple CPU system is configured the...

Page 493: ...tail Set by When set Indicates whether the relay is set by the system or user and if it is set by the system when setting is performed Set by S Set by system U Set by user sequence programs or test operations from GX Developer S U Set by both system and user When set Indicated only for registers set by system Each END Set during each END processing Initial Set only during initial processing when p...

Page 494: ...rogram error location 5 System switching cause for Redundant CPU only 6 Reason s for tracking capacity excess error specific to Redundant CPU 7 Base No Power supply No The first 5 digits of serial number 10072 or higer are chosen for Universal model QCPU 8 Tracking transmission data classification specific to Redundant CPU For a multiple CPU system that consists of the Basic model QCPU High Perfor...

Page 495: ... to identify the base unit on which the CPU module has been mounted The following shows the definition of the base No Slot No Value used to identify the slot of each base unit and the module mounted on that slot The I O slot 0 slot on the right side of the CPU slot of the main base unit is defined as the slot of Slot No 0 The slot Nos are consecutively assigned to the slots of the base units in or...

Page 496: ...7 SD8 SD9 SD10 SD11 SD12 SD13 SD14 SD15 SD5 SD6 SD7 SD8 SD9 SD10 SD11 SD12 SD13 SD14 SD15 Number Meaning Time 1 s units 0 to 999 s Time 1ms units 0 to 65535ms Empty SD5 SD6 SD7 SD8 SD9 SD10 SD11 SD12 SD13 SD14 SD15 6 7 Number Meaning File name ASCII code 8 characters Extension 2EH ASCII code 3 characters Pattern Block No Step No transition condition Sequence step No L Sequence step No H 0 0 0 0 to...

Page 497: ...tion argument Empty 1 Power OFF reset hardware failure watchdog timer error 2 Stop error except watchdog timer error 3 System switching request by network module 16 Control system switching instruction 17 Control system switching request from GX Developer 0 No system switching condition default SD15 SD5 SD8 SD9 SD6 SD7 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 SM1535 Block16 0 b15 b14 0 b13 0 b12 0 b11 0 ...

Page 498: ...cking transmission data classification Stores the data classification during tracking 15 Details of data classification S Error New QnPRH SD6 SD7 SD8 SD9 SD10 SD11 SD12 SD13 SD14 SD15 SD5 SD6 SD7 SD8 SD9 SD10 SD11 SD12 SD13 SD14 SD15 Number Meaning Data type 15 Empty b15 b5 b4 b3 b2 b1 b0 to b14 0 b6 Each bit Device data Signal flow PIDINIT S PIDINIT instruction data SFC execution data System swit...

Page 499: ...6 SD16 SD17 SD18 SD19 SD20 SD21 SD22 SD23 SD24 SD25 SD26 6 ABCDEFGH IJK 42H B 41H A 44H D 43H C 46H F 45H E 48H H 47H G 49H I 2EH 4BH K 4AH J b15 to b8 b7 to b0 Number Meaning Drive File name ASCII code 8 characters Extension 2EH ASCII code 3 characters Empty Example File name SD16 SD17 SD18 SD19 SD20 SD21 SD22 SD23 SD24 SD25 SD26 Number Meaning Time 1 s units 0 to 999 s Time 1ms units 0 to 65535m...

Page 500: ...ters 51H 50H 47H QPG Sequence program SFC program 51H 43H 44H QCD Device comment 51H 44H 49H QDI Initial device value 51H 44H 52H QDR File register 51H 44H 4CH QDL Local device Other than the Basic model QCPU 51H 54H 44H QTD Sampling trace data Other than the Basic model QCPU 51H 46H 44H QFD Breakdown history data Other than the Basic model QCPU and the Universal model QCPU 51H 53H 54H QST SP DEVS...

Page 501: ...ring in control system 9 Online program change 11 System switching being executed 12 Online module change in progress 8 During memory copy from control system to standby system 6 Standby system is in stop error except watchdog timer error 4 Preparing for tracking 5 Time limit exceeded 2 Hardware failure power OFF reset or watchdog timer error occurring in standby system 0 Normal switching completi...

Page 502: ...ame configuration as SD51 above After the alarm is detected ON the alarm turns OFF by error detection ON For the Universal model QCPU only Turns to 0 OFF when the battery voltage returns to normal thereafter S Error New SD53 AC DC DOWN detection Number of times for AC DC DOWN detection Every time the input voltage falls to or below 85 AC power 65 DC power of the rating during operation of the CPU ...

Page 503: ...timer set value and time over error Corresponds to SM90 Set the annunciator number F number that will be turned ON when the step transition monitoring timer setting or monitoring timeout occurs Turning ON any of SM90 to SM99 during an active step starts the timer and if the transition condition next to the corresponding step is not met within the timer time limit the set annunciator F turns ON U D...

Page 504: ... 38 4kbps 576 57 6kbps 1152 115 2kbps Other than RS 232 connection holds the data at RS 232 connection When disconnected the default value is 1152 S New Qn H QnPH QnPRH QnU 3 SD110 Data sending result storage area Stores the data sending result when the serial communication function is used Stores the error code at the timeout sending data S Error New Q00 Q01 Q00UJ Q00U Q01U Q02U 4 SD111 Data rece...

Page 505: ...ith verify errors 0 No I O verify errors 1 I O verify error present When I O modules of which data are different from those entered at power ON have been detected the I O module numbers in units of 16 points are entered in bit pattern Preset I O module numbers set in parmeters when parameter setting has been performed Not cleared even if the blown fuse is replaced with a new one This flag is clear...

Page 506: ...e bit pattern 3 USER 7 Empty 0 OFF 1 Green 4 BAT 8 MODE 2 Orange The Basic model QCPU does not include 3 to 8 S Status change New Q00J Q00 Q01 Qn H QnPH QnPRH The following bit patterns store the status of the LEDs on the CPU module 0 is off 1 is on and 2 is flicker 1 RUN 5 BOOT 2 ERROR 6 Empty 3 USER 7 Empty 4 BAT 8 MODE The Q00UJCPU Q00UCPU and Q01UCPU do not include 5 S Status change New QnU b1...

Page 507: ...y END processing D9015 format change QCPU SD204 LED display color CPU LED display color The LED display color of the LED status shown in SD201 1 to 8 The Q00UJCPU Q00UCPU and Q01UCPU do not include 5 S status change New QnU b15 b8 b4 b0 USER LED BOOT LED Fixed to 0 Fixed to 0 Fixed to 0 b15 b12 b11 b8 b7 b4 b3 b0 1 to to to to 2 1 Operating status of CPU 0 1 2 3 2 STOP PAUSE cause 0 1 2 3 4 Error ...

Page 508: ... Basic model QCPU the ERR LED does not turn ON when the annumciator turns ON if 7 has not been set to either of priorities 1 to 11 However even if 0 has been set information concerning CPU module operation stop including parameter settings errors will be indicated by the LEDs without conditions U D9038 Q00J Q00 Q01 9 Qn H QnPH QnPRH QnU SD208 Priorities 5 to 8 D9039 format change SD209 Priorities ...

Page 509: ...ader I O number of which the online module change is being performed S During online module change New QnPH QnPRH SD240 Base mode 0 Automatic mode 1 Detail mode Stores the base mode S Initial New QCPU SD241 Extension stage number 0 Main base only 1 to 7 Extension stage number Stores the maximum number of the extension bases being installed S Initial New b15 b12 to b11 b8 to b7 b4 to b3 b0 to 0 1 2...

Page 510: ...e each area stores the number of slots being installed Number of set slots when parameter setting has been made S Initial New Q00J Q00 Q01 SD244 SD245 No of base slots Mounting status No of base slots As shown above each area stores the number of module mounted slots of the base unit actual number of slots of the installed base unit S Initial Q00J Q00 Q01 9 SD246 SD250 Loaded maximum I O Loaded ma...

Page 511: ... stations the module number of the standby station is stored 1 to 4 Qn H QnPH QnPRH QnU 10 SD260 to SD264 Information from 2nd module Configuration is identical to that for the first module SD265 to SD269 Information from 3rd module Configuration is identical to that for the first module Qn H QnPH QnPRH QnU 11 SD270 to SD274 Information from 4th module Configuration is identical to that for the fi...

Page 512: ...oints assigned for X Stores the number of points currently set for X devices S Initial New QCPU SD291 Number of points assigned for Y Stores the number of points currently set for Y devices SD292 Number of points assigned for M Stores the number of points currently set for M devices SD293 Number of points assigned for L Stores the number of points currently set for L devices SD294 Number of points...

Page 513: ...ded link register W and link register in internal device memory area stores the value in 32 bit binary SD311 SD315 Time reserved for communication processing Time reserved for communication processing Reserves the designated time for communication processing with GX Developer or other units The greater the value is designated the shorter the response time for communication with other devices GX De...

Page 514: ...irst module SD382 Instruction reception status of 3rd module Configuration is identical to that for the first module SD383 Instruction reception status of 4th module Configuration is identical to that for the first module b0 b1 b2 b3 b4 b5 b6 b7 b8 b15 0 to Instruction reception status of channel 1 Instruction reception status of channel 2 Instruction reception status of channel 3 Instruction rece...

Page 515: ...lowing programmable controller CPU module RUN 1 is added each second Count repeats from 0 to 32767 to 32768 to 0 S Status change D9022 QCPU SD414 2n second clock setting 2n second clock units Stores value n of 2n second clock Default is 30 Setting can be made between 1 and 32767 U New SD415 2nms clock setting 2nms clock units Stores value n of 2nms clock Default is 30 Setting can be made between 1...

Page 516: ...7 format change SD525 Minimum scan time in 100 s units S Every END processing New SD526 Maximum scan time Maximum scan time in 1 ms units Stores the maximum value of the scan time except that of an initial execution type program into SD526 and SD527 Measurement is made in 100 s units For the Universal model QCPU in 1 s units SD526 Stores the ms place Storage range 0 to 65535 SD527 Stores the s pla...

Page 517: ...age range 0 to 900 Cleared to 0 after the end of one low speed scan S Every END processing New Qn H QnPH SD545 Cumulative execution time for low speed execution type programs in 100 s units SD546 Execution time for low speed execution type programs Execution time for low speed execution type programs in 1 ms units Stores the execution time of a low speed execution type program during one scan into...

Page 518: ...ory card use conditions Memory card use conditions The use conditions for memory card are stored as bit patterns In use when ON The significance of these bit patterns is indicated below S Status change New Qn H QnPH QnPRH Memory card use conditions Memory card use conditions The use conditions for memory card are stored as bit patterns In use when ON The significance of these bit patterns is indic...

Page 519: ...Drive 3 4 use conditions Drive 3 4 use conditions The conditions for usage for drive 3 4 are stored as bit patterns In use when ON The significance of these bit patterns is indicated below 1 Turned ON at boot start and OFF at boot completion S Status change New QnU SD624 Drive 3 4 use conditions Drive 3 4 use conditions The conditions for usage for drive 3 4 are stored as bit patterns S Status cha...

Page 520: ...t file name Stores the comment file name with extension selected at the parameters or by the QCDSET instruction in ASCII code S Status change New SD652 SD653 SD654 SD655 SD656 SD660 Boot operation designation file Boot designation file drive number Stores the drive number where the boot designation file QBT is being stored S Initial New Qn H QnPH QnPRH QnU 4 SD661 File name of boot designation fil...

Page 521: ... and hour when backup is performed in 2 digit BCD code SD674 Backup time Minute and second Stores the minute and second when backup is performed in 2 digit BCD code SD675 Backup time Year and day of week Stores the first 2 digits of year and day of week when backup is performed in BCD code Presence absence of backup data 0 No backup data Absent Restoring not executed 1 Restore ready completion Pre...

Page 522: ...x up to present Stores the index value for the number of write operations to the standard ROM flash ROM up to the present in BIN 32 bit value When the index value exceeds 100 thousand times FLASH ROM ERROR error code 1610 occurs The index value is calculated even when exceeding 100 thousand times Note The write count does not equal to the index value Since a flash ROM write life is prolonged by th...

Page 523: ... restoration to the CPU module in percentage 0 to 100 0 is set before the restoration Sets 0 Before restoring however when the restoration is completed only during the automatic restoration S Status change New SD695 Specification of writing to stan dard ROM instruction count Specification of writing to standard ROM instruction count Specifies the maximum number of executions of the writing to stan...

Page 524: ...SD742 SD743 SD744 SD745 SD746 SD747 SD748 SD749 SD750 SD751 SD752 SD753 SD754 SD755 SD756 SD757 SD758 SD759 SD760 SD761 SD762 SD763 SD764 SD765 SD766 SD767 SD768 SD769 SD715 SD716 SD717 l15 l1 l0 l31 l47 l17 l33 l16 l32 b15 b0 b1 to to to SD738 SD739 SD740 SD741 SD742 SD743 b15 to b8 b7 to b0 SD744 SD745 SD746 SD747 SD748 SD749 SD750 SD751 SD752 SD753 SD754 SD755 SD756 SD757 SD758 SD759 SD760 SD76...

Page 525: ...9 Qn H 11 Selects whether or not the data is refreshed when the COM instruction is executed Designation of SD778 is made valid when SM775 turns ON Refresh between multiple CPUs by COM instruction is performed under the following occasion Receiving operation from other device b4 of SD778 refresh in the CPU shared memory is turned to 1 Sending operation from host CPU b15 of SD778 communication with ...

Page 526: ...n of IMASK instruction Mask pattern Stores the mask patterns masked by the IMASK instruction as follows S During execution New Q00J Q00 Q01 SD794 to SD795 PID limit setting for incomplete derivative 0 With limit 1 Without limit Specify the limit of each PID loop as shown below U New Qn H 13 QnPRH QnU SD794 PID limit setting for incomplete derivative 0 With limit 1 Without limit Specify the limit o...

Page 527: ...he dedicated instruction of Multiple CPU transmission is executed to the CPU No 2 and the number of empty blocks of the dedicated instruction transmission area is less than the setting value of this register SM797 is turned ON which is used as the interlock signal for consecutive execution of the dedicated instruction of Multiple CPU transmission U At 1 scan after RUN New SD798 Maximum number of b...

Page 528: ... copy from control system to standby system Latest status of memory copy from control system to standby system Stores the completion status of the memory copy from control system to standby system executed last 1 Stores the same value as stored into SD1596 at normal completion abnormal completion of the memory copy from control system to standby system 2 Backed up for a power failure this special ...

Page 529: ...for the corresponding CPU and MELSECNET or MELSECNET B Data Link System Reference Manuals Check Use special relay special register from SM SD1000 for A PLC on the PLC system tab of PLC parameter in GX Developer when the converted special registers are used with the High Performance model QCPU Process CPU and Universal model QCPU When not using the converted special registers uncheck Use special re...

Page 530: ... SD1002 I O module verify error I O module verify error module number If I O modules of which data are different from data entered are detected when the power is turned on the first I O number of the lowest number unit among the detected units is stored in hexadecimal Storing method is the same as that of SD1000 To monitor the number by peripheral devices perform monitor operation given in hexadec...

Page 531: ...ts of SD1010 are renewed Qn H QnPH D9011 SD1011 Error step Step number at which operation error has occurred When operation error has occurred during execution of application instruction the step number at which the error has occurred is stored in BIN code Since the step number is stored into SD1011 when SM1011 turns from OFF to ON the data of SD1011 is not updated unless SM1011 is cleared by a us...

Page 532: ...Scan time Maximum scan time 10 ms units If scan time is larger than the content of SD1019 the value is newly stored at each END Namely the maximum value of scan time is stored into SD1019 in BIN code D9020 SD1020 Constant scan Constant scan time User sets in 10 ms units Sets the interval between consecutive program starts in multiples of 10 ms 0 No setting 1 to 200 Set Program is executed at inter...

Page 533: ... is executed the value stored in SD1044 is used as the sampling trace condition At scanning 0 At time Time 10 msec unit The value is stored into SD1044 in BIN code D9049 SD1049 Work area for SFC Block number of extension file register Stores the block number of the expansion file register which is used as the work area for the execution of a SFC program in a binary value Stores 0 if an empty area ...

Page 534: ...2 PLC communication check Data check of serial communication module In the self loopback test of the serial communication module the serial communication module writes reads data automatically to make communication checks Qn H QnPH D9085 SD1085 Register for setting time check value 1 s to 65535 s Sets the time check time of the data link instructions ZNRD ZNWR for the MELSECNET 10 Setting range 1 ...

Page 535: ...1113 D9114 SD1114 D9116 SD1116 I O module verification error Bit pattern in units of 16 points indicating the modules with verification errors When I O modules of which data are different from those entered at power ON have been detected the I O module numbers in units of 16 points are entered in bit pattern Preset I O module numbers set in parmeters when parameter setting has been performed I O m...

Page 536: ...he F numbers stored after the erased F number are shifted to the preceding registerers By executing LEDR instruction the contents of SD1125 to SD1132 are shifted upward by one When there are 8 annunciator detections the 9th one is not stored into SD1125 to SD1132 even if detected Qn H QnPH QnU 1 D9126 SD1126 SD65 D9127 SD1127 SD66 D9128 SD1128 SD67 D9129 SD1129 SD68 D9130 SD1130 SD69 D9131 SD1131 ...

Page 537: ...FH when the above limit is exceeded SD1276 Forced connection invalidation Specifies forced connection invalidation Specify this when a connection is to be invalidated forcibly on the user program If invalidation is specified for a connection it stops communication and does not respond When a remote password is used and frequent unlock processing errors have occurred on a connection this is useful ...

Page 538: ...al Stores reception status Reception status of connections using socket communication functions is stored All bits corresponding to connections using any communications other than the socket communication are fixed to 0 For TCP Normal reception mode 0 Data have not been received 1 Data have been received For TCP Fixed length reception mode 0 Data have not been received or received data size has no...

Page 539: ...118 SD1403 D9119 SD1404 D9120 SD1405 D9121 SD1406 D9122 SD1407 D9123 SD1408 New SD1409 to SD1430 New SD1431 New Table12 33 Special register Number Name Meaning Explanation Set by When Set Corres ponding ACPU D9 Corresponding CPU SD1500 SD1501 Basic period Basic period tome Set the basic period 1 second units use for the process control instruction using floating point data U New QnPH SD1502 Proces...

Page 540: ...itialization 5 Communication timeout 6 Serious error except WDT error on the Standby system 7 There is difference between both systems detected as Backup mode only 8 During memory copy from control system to standby system 9 During online program change 10 During detection of intelligent function module failure on the standby system 11 System switching being executed Resets to 0 when host system i...

Page 541: ...ion SP CONTSW The parameters SD1602 for SP CONTSW are stored in both systems A B SD1602 is only valid when 16 is stored in SD1601 This SD1602 is updated once system switch instruction SP CONTSW is activated S when system is switched SD1610 Other system diagnostic error Diagnostic error code The error value sorted in BIN code Stores SD0 of the other system CPU module S Every END SD0 SD1611 Other sy...

Page 542: ... mode Note A communication error is caused by the following When the power supply is switched off or when the other system is reset H W error occurs on either of system A or B WDT error occurs Tracking cable is not connected Tracking cable is disconnected or damaged S Every END SD1690 Network module head address whichrequested system switching on host control system Network module head address whi...

Page 543: ... no online program change request is issued to the standby system CPU module within the preset time after completion of the online program change to the control system CPU module both system CPU modules judge it as the failure of the online program change for redundancy In this case both system CPU modules resume the consistency check between system A B suspended during the online program change A...

Page 544: ...wer supply 1 Counts the number of times of momentary power failure of the power supply 1 2 Monitors the status of the power supply 1 2 mounted on the redundant power main base unit Q38RB and counts the number of times of momentary power failure Status of power supply 1 power supply 2 mounted on the redundant extension base unit is not monitored When the CPU module starts the counter of the power s...

Page 545: ... 6 8 Section 8 1 9 Control PLC 0406H Section 8 1 9 QCPU User s Manual Muitiple CPU System No of PLC 0E00H Section 8 1 12 QCPU User s Manual Muitiple CPU System Operating mode 0E01H I O sharing when using Multiple CPUs All CPUs can read all inputs 0E04H All CPUs can read all outputs Timer limit setting Low speed 1000H Section 8 1 2 High speed RUN PAUSE contacts RUN 1001H Section 6 6 1 Section 8 1 2...

Page 546: ... points 2000H Section 9 1 Section 8 1 5 Latch 1 start end 2001H Section 3 4 6 3 Section 8 1 3 Latch 2 start end 2002H Local device start end 2003H Section 9 14 2 Section 8 1 5 File register extended setting Device points 2000H Section 9 8 Section 8 1 5 Latch 1 start end 2004H Latch 2 start end 2005H 32 bit Indexing 2000H Section 8 1 5 WDT watchdog timer setting WDT setting 3000H Section 6 16 Secti...

Page 547: ...t parameters 2 5NMBH Interrupt settings Program 7000H Section 2 3 Section 8 1 6 Boot option Clear program memory 7000H Section 5 1 2 5 1 8 Section 8 1 7 Auto Download all Data from Memory card to Standard ROM Boot file setting SFC program start mode 8002H Section 8 1 8 Start conditions 8003H Output mode when the block is stopped 8006H Nunber of modules on Ethernet 9000H Section 8 2 3 Starting I O ...

Page 548: ...rameters ANM1H Common parameters ANM2H Station inherent parameters ANM3H Number of modules C000H Section 8 2 4 Remote input RX CNM1H Remote output RY Remote register RWr Remote register RWw Ver 2 Remote input RX Ver 2 Remote output RY Ver 2 Remote register RWr Ver 2 Remote register RWw Special relay SB Special register SW Operational setting CNM2H All connect count Retry count Automatic reconnecti...

Page 549: ...tion 8 1 12 QCPU User s Manual Muitiple CPU System Online module change E006H Refresh parameter detailed device specification E007H Multiple CPU high speed transmission area setting CPU specific send range E008H Auto refresh setting E009H Auto refresh device setting E00AH Multiple CPU synchronous startup setting E00BH Host CPU number E00CH ...

Page 550: ...nstruction 1 QCPU Programming Manual Common Instructions Amount of battery consumption display QCPU User s Manual Hardware Design Maintenance and Inspection Bit device extension Section 9 2 10042 or later Version 8 68W or later Executional conditioned device test Section 6 11 4 Sampling trace auto start function 1 Section 6 14 CC Link IE group cyclic transmission function CC Link IE Controller Net...

Page 551: ...tained in the standard ROM by using the latch data backup to standard ROM function Section 6 28 if the serial number first five digits of the Universal model QCPU is 10042 or later 3 Communication using the A compatible 1E frame is available only via any Ethernet module If the module is connected to the built in Ethernet port of the CPU module this function is not available ...

Page 552: ...QCPU are described in Appendix 3 2 Appendix 3 2 Multiple CPU system To configure a multiple CPU system CPU modules compatible with the Universal model QCPU must be used CPU modules compatible with the Universal model QCPU are described in Appendix 3 2 Appendix 3 2 TableApp 4 Precautions for replacement and replacement methods Program Item Precautions Replacement method Reference Language and instr...

Page 553: ...re used is available The Basic model QCPU ignores the device specified in D3 To get the same operation as the Basic model QCPU omit D3 or use the READ instruction instead of the SREAD instruc tion Section 8 3 2 in the QCPU Programming Manual Common Instructions ZPUSH instruction The number of index registers is increased to 20 for the Universal model QCPU The area for saving the data in the index ...

Page 554: ...acement method Reference Boot file setting The boot file setting is not supported Since the Universal model QCPU holds the data in the program memory even when the battery voltage drops the boot file setting is not necessary Move files with the boot setting from the standard ROM to the program memory to the program memory Section 5 1 8 TableApp 6 Precautions for replacement and replacement methods...

Page 555: ...lacement methods Program size Item Precautions Replacement method Reference Program size Data in the program memory of the Basic model QCPU may exceed the size of the program memory of the Universal model QCPU Store parameter and device comment files in the standard ROM ...

Page 556: ...mmunication with the Universal model QCPU are described in Appendix 3 2 Appendix 3 2 Multiple CPU system To configure a multiple CPU system CPU modules compatible with the Universal model QCPU must be used CPU modules compatible with the Universal model QCPU are described in Appendix 3 2 Appendix 3 2 In a multiple CPU system using the Motion CPU an existing auto refresh area and user setting area ...

Page 557: ...pendix 3 4 2 Device range check at index modification When a device number exceeds a setting range due to index modification OPERATION ERROR error code 4101 is detected Deselect the Check device range at indexing checkbox in the PLC RAS tab of the PLC parameter dialog box so that checking is not performed Section 6 17 Program execution type Low speed execution type programs are not supported Use s...

Page 558: ... registers is increased to 20 for the Universal model QCPU The area for saving the data in the index register with the ZPUSH instruction is increased as well Increase the save areas used for the ZPUSH instruction as needed Section 7 18 8 in the QCPU Programming Manual Common Instructions File usability setting for each program The following file usability setting for each program is not available ...

Page 559: ... the Boot file tab of the PLC parameter dialog box select standard ROM for the transfer destination Note however that the transfer destination of program is fixed to program memory Setting by DIP switches is not necessary Section 5 1 8 TableApp 12 Precautions for replacement and replacement methods External communication Item Precautions Replacement method Reference Module service interval time re...

Page 560: ...xecution of the specified step on the rising falling edge of bit devices when the value of word devices coincide with the setting value at every specified time settable range 1 to 5000ms Section 6 11 1 6 14 Scan time measurement by GX Developer 3 Time required for executing a part of the program cannot be measured using the scan time measurement function 1 Calculate the time using instruction proc...

Page 561: ...t be cleared by the switch To clear latch data use the remote latch clear operation of GX Developer Section 4 4 in the QCPU User s Manual Hardware Design Maintenance and Inspection The system protect cannot be set by the switch Data in the files can be protected by setting a password for each file Password for each file can be registered with GX Developer Section 6 19 The parameter valid drive set...

Page 562: ... operation mode at transition to active step cannot be selected Fixed to TRANSFER Section 4 7 6 in the QCPU Q Mode QnACPU Programming Manual SFC SFC program for program execution management SFC programs for program execution management are not supported Section 5 2 3 in the QCPU Q Mode QnACPU Programming Manual SFC SFC control instruction Some SFC control instructions are not supported SFC control...

Page 563: ...n compatible with the Universal model QCPU 1 Used with Q02U Q03UD Q04UDH Q06UDHCPU Used with Q13UDH Q26UDHCPU Used with Q00UJ Q00U Q01U Q10UDH Q20UDHCPU or Built in Ethernet port QCPU CC Link IE controller network interface board Q80BD J71GP21 SX Q80BD J71GP21S SX No restrictions Version 1 03D or later Version 1 06G or later MELSECNET H interface board SI QSI H PCF optical cable Q80BD J71LP21 25 Q...

Page 564: ...r or GOT accesses the CPU module on another station via the MELSECNET H module controlled by another CPU 4 The access target on another station is A QnA series CPU module TableApp 20 Product need to be replaced Network module and serial communication module Product Model Module version compatible with the Universal model QCPU Used with Q00UJ Q00U Q01U Q02U Q03UD Q04UDH Q06UDH Q10UDH Q13UDH Q20UDH ...

Page 565: ...1 01 or later Driver S W PPC DRV 02 version 1 02 or later Driver S W PPC DRV 02 version 1 03 or later C Controller module Q06CCPU V Q06CCPU V B No restrictions Serial number first five digits 10012 or later Serial number first five digits 10102 or later High Performance model QCPU Q02CPU Q02HCPU Q06HCPU Q12HCPU Q25HCPU Function version B or later Process CPU Q02PHCPU Q06PHCPU Q12PHCPU Q25PHCPU No ...

Page 566: ...2D5C QDAU E Version 2 06G or later 1 Version 2 06G or later 2 Version 2 06G or later 3 Version 2 06G or later 4 GX Configurator SC SW2D5C QSCU E Version 2 12N or later 1 Version 2 12N or later 2 Version 2 17T or later 3 Version 2 17T or later 4 GX Configurator CT SW0D5C QCTU E Version 1 25AB or later 1 Version 1 25AB or later 2 Version 1 25AB or later 3 Version 1 25AB or later 4 GX Configurator TI...

Page 567: ...evice in the replacement program of the PR instruction after reading data using the reading device comment data instruction COMRD P CHKST Specific format failure check instruction Instructions can be replaced using a replacement program Appendix 3 3 3 4 CHK CHKCIR Format change instruction for CHK instruction Failure detection ladder patterns can be changed in a replacement program CHKEND PLOW Pro...

Page 568: ... TRn OR TRn LDI TRn ANDI TRn ORI TRn LD BLm TRn AND BLm TRn OR BLm TRn LDI BLm TRn ANDI BLm TRn ORI BLm TRn SCHG D Active step change instruction Refer to Appendix 3 Restrictions and replacing method of the Basic model QCPU and Universal model QCPU in the QCPU Q Mode QnACPU Programming Manual SFC SET TRn Transition control instruction Refer to Appendix 3 Restrictions and replacing method of the Ba...

Page 569: ...e instructions in TableApp 27 are not available for those CPU modules TableApp 27 SFC instructions not supported in the QnUD H CPU and Built in Ethernet port QCPU and thier alternatives Symbol Instruction description Symbol of alternative instruction S P DDWR Write other CPU device data into host CPU D P DDWR S P DDRD Read other CPU device data into host CPU D P DDRD S P SFCS Request of motion SFC...

Page 570: ...D instructions Since index registers are saved using the ZPUSH instruction a 23 word index register save area is required a Example of device assignment If the device numbers in the example above are used for other applications assign unused device numbers instead b Program before replacement TableApp 28 Example of device assignment Before replacement After replacement Application Device Applicati...

Page 571: ...o index registers Replace the IXEND instruction with the ZPOP instruction Figure App 2 Sample program Current index register is saved Contents of the index modification table are set to the index registers Z0 to Z15 Modification target No change required The saved index register is restored Transition from the IXEND instruction Transition from the IX instruction ...

Page 572: ...ion table 2 Start I O numbers U are represented in hexadecimal Use hexadecimal constants H when setting values in the index modification table 3 Devices B W X or Y can be specified following J Set device numbers for B W X and Y as device offset values of each device in the index modification table For example if J10 Y220 is specified by the IXDEV and IXSET instructions set K10 in D 13 and H220 in ...

Page 573: ...ample program The device offset values for input X output Y internal relay M data register D link register W and pointer P are set to the index modification table starting from D0 The device offset values specified by the IXDEV and IXSET instructions are set to the index modification table starting from D0 ...

Page 574: ... D3 Output string D0 to D3 ASCII code output signal Y100 to Y107 ASCII code output signal Y100 to Y107 Strobe signal Y108 Strobe signal Y108 In execution flag Y109 In execution flag Y109 Output string storage address BIN32 D20 to D21 Output string storage address BIN32 Used for sub routine programs and interrupt programs D200 to D201 Number of output characters D202 Output module start Y number D2...

Page 575: ... b cannot be specified directly as output Y number with the CALL instruction Specify the output Y number in integer An interrupt program is used to output character codes via the output module Enable the execution of interrupt programs using the EI instruction Figure App 7 Program execution Figure App 8 Sample program FEND RET IRET END P1 I31 After transition END Before transition Output strings a...

Page 576: ...m is turned on Specify the following arguments for the subroutine program First argument Output string storage address Input Second argument Output module start Y number Input Figure App 9 Sample program Data specified by the CALL P arguments are saved Output string storage address Number of output strings Output module start number Devices used for the string output processing of the interrupt pr...

Page 577: ...re output Yn0 to Yn7 ASCII code Yn8 strobe signal Yn9 in execution flag Status 0 One character is extracted from the output string using the MIDR instruction and output to the Y module The strobe signal is turned off for 10ms Status 1 The strobe signal is turned on for 10ms Status 2 The strobe signal is turned off for 10ms The status value is incremented by one Status 3 The status value is returne...

Page 578: ...Advance end detection sensor input 1 X100 Retract end detection sensor input 1 X101 Retract end detection sensor input 1 X101 Advance end detection sensor input 2 X102 Advance end detection sensor input 2 X102 Retract end detection sensor input 2 X103 Retract end detection sensor input 2 X103 Advance end detection sensor input 3 X104 Advance end detection sensor input 3 X104 Retract end detection ...

Page 579: ...t shown in b four CALL instructions need to be added since there are four check conditions in front of the CHK instruction Device number and contact number of X devices check condition are specified in each CALL instruc tion Contact number is used to display failure number when a failure is detected Figure App 12 Program execution Figure App 13 Sample program FEND RET END After transition END Befo...

Page 580: ...cement method when failure detection ladder patterns are changed by the CHKCIR and CHKEND instructions Failure detection ladder patterns can be changed in the subroutine program described in c First argument Device number of X device targeted for failure check Input Second argument Contact number of X device targeted for failure check Input Figure App 14 Sample program Failure detection target If ...

Page 581: ...execution instruction M0 Numeric input execution instruction M0 Input complete flag M1 Input complete flag M1 Input data area D200 to D203 Input data area D200 to D203 ASCII code input signal X100 to X107 ASCII code input signal X100 to X107 Strobe signal X108 Strobe signal X108 Input data area address BIN32 D210 to D211 Input data area 0 address BIN32 D212 to D213 Input data area 1 address BIN32 ...

Page 582: ...rogram input codes are added to the input data area and the completion status is checked Pass the following data to the subroutine program at execution of the CALL instruction 1 ASCII code input values from the input module Xn0 to Xn7 2 Number of digits to be input 3 Indirect address of the input data area Use the ADRSET instruction to acquire the indirect address for the input data area 4 Bit dev...

Page 583: ...igure App 18 Sample program Numeric entry is ended when the at completion on signal is on or 0DH is input Addresses of the input data area are saved in the work devices The 1st to 4th digit numerals in input data area 2 are shifted for one digit to the left Numeral entered in ASCII code is converted into one numeral in BIN data using the HABIN instruction The 5th to 8th digit numerals in input dat...

Page 584: ... depending on the data There fore the Perform internal arithmetic operations in double precision item in the PLC system tab of the PLC parameter dialog box cannot be selected Because of this new function operation results both in single precision and double precision slightly differ between the High Performance model QCPU and the Universal model QCPU if Perform internal arithmetic operations in do...

Page 585: ...ing point data subtraction E P ED P Floating point data multiplication E P ED P Floating point data division E P ED P Data conversion Conversion from BIN 16 bit data to floating point data FLT P FLTD P Conversion from BIN 32 bit data to floating point data DFLT P DFLTD P Conversion from floating point data to BIN 16 bit data INT P INTD P Conversion from floating point data to BIN 32 bit data DINT ...

Page 586: ...recision floating point data TableApp 34 Advantages and disadvantages when using the double precision floating point operation instructions Advantage Disadvantage The results are more accurate than those of the single precision floating point operation instructions The instruction processing speed is slower than that of the single precision floating point operation instructions 1 Double precision ...

Page 587: ...reassigned 1 Device assignment 2 Program before replacement 3 Program after replacement Example Replacing the floating point operation A B C Changing all floating point data into double precision TableApp 36 Device assignment Before replacement After replacement Application Device Data type Application Device Data type Data A D0 to D1 Floating point data single precision Data A D0 to D3 Floating p...

Page 588: ...on using the double precision floating point operation instruc tions Operation results are converted from double precision to single precision using the EDCON instruction A program example that floating point data are converted mutually between single precision and double precision before and after operations is shown below 1 Device assignment 2 Program before replacement Example Replacing the flo...

Page 589: ...ample program Floating point data are converted from single precision to double precision Operation is performed using double precision floating point data The floating point operation result data are converted from double precision to singe precision ...

Page 590: ...calling subroutine programs increases the scan time In addition since conversions from double precision to single precision are performed for each instruction rounding off errors generated during operations are larger than those in the replacement program described in b 1 Device assignment 2 Program before replacemennt Example Replacing the floating point operation A B C Using a subroutine program...

Page 591: ...nt Figure App 25 Sample program A subroutine program for multiplication using the double precision floating point operation instruction A subroutine program for addition using the double precision floating point operation instruction ...

Page 592: ... are considered to be stored in the following cases The same device is used for storing floating point data and other data such as binary values BCD values and strings Use different devices for storing floating point data and data other than floating point data Floating point data externally written are invalid Take measures on the external source side so that valid data are written If an error oc...

Page 593: ...rting from the step 104 the ANDE instruction of the step 106 and the OR instruction of the step 110 are not executed when the M101 valid data flag is off However if the M90 is on in the LD instruction of the step 105 the ANDE instruction of the step 106 is exe cuted Therefore even when the M101 is off OPERATION ERROR error code 4140 will be detected in the ANDE instruction of the step 106 if the M...

Page 594: ...lid data flag and the floating point data comparison instruction Make sure that there is no line OR connection between the valid data flag and the floating point data compari son instruction Modification example 1 Modification example 2 Before modification After modification E D100 E10 E D100 E200 E D100 E10 E D100 E200 Valid data flag Valid data flag Valid data flag Make sure that there is no lin...

Page 595: ...are shown below Ladder mode List mode Ladder mode List mode Example 4 Program after modification for Example 1 OPERATION ERROR error code 4140 is no longer detected Example 5 Program after modification for Example 3 OPERATION ERROR error code 4140 is no longer detected ...

Page 596: ... in the file register can be latched by batteries File register size is larger and processing speed is higher in the Universal model QCPU compared to the Basic model QCPU and High Performance model QCPU To latch a lot of data many device points use of the file register is effective TableApp 37 shows the file register size available for each CPU module b Writing reading device data to the standard ...

Page 597: ...e remove unnecessary latch device points to minimize the latch range The scan time will not increase when a latch range of the file register R ZR is specified 4 How to shorten the scan time When data to be latched are stored in the file register R ZR the processing time is shorter than that for latching internal user device 1 Time indicates the time required additionally when the file register is ...

Page 598: ...etween High Performance model QCPU and Universal model QCPU a High Performance model QCPU In the High Performance model QCPU file usability Use PLC file setting or Not used of the following files can be set for each program on the screen opened by clicking the File usability setting button on the Program tab of the PLC parameter dialog box File register Initial device value Comment Local device Fi...

Page 599: ...ity of local device file cannot be set if the serial number first five digits of the Q02UCPU Q03UDCPU Q04UDHCPU or Q06UDHCPU is 10011 or earlier If the local device is set to be used in the PLC file tab of the PLC parameter dialog box in the High Performance model QCPU all the programs use the local device in the Universal model QCPU after replacement When the file usability setting is set in the ...

Page 600: ...Universal model QCPU executes a program without using a program file if no program file that uses the same name as the program exists in the target memory Use the following file is selected No change in parameter settings is required Operation of the Universal model QCPU is the same regardless of the file usability setting in the High Performance model QCPU PLC parameter setting High Performance m...

Page 601: ...xist in the program memory and memory card 2 Settings in the Boot file tab No boot file setting for parameters Change the setting so that programs are stored in the program memory in the first place instead of booting from the standard ROM Delete all settings for parameter in the Boot file tab of the PLC parameter dialog box Delete parameters that exist in the program memory and memory card 2 Move...

Page 602: ...and programs and parameters are booted from the memory card to the program memory Move the parameters in the standard ROM into the memory card Make setting so that programs and parameters are booted from the memory card to the program memory in the Boot file tab of the PLC parameter dialog box 3 Settings in the Boot file tab Delete all settings for data other than programs and parameters in the bo...

Page 603: ...e programs targeted for booting from the standard ROM into the program memory 1 Delete all settings for program in the Boot file tab of the PLC parameter dialog box Delete parameters that exist in the program memory 2 Settings in the Boot file tab Change the setting so that programs are stored in the program memory in the first place instead of booting from the standard ROM Move the programs targe...

Page 604: ... External input output can be forcibly turned on off by using the replacement program described below 2 Method of replacing High Performance model QCPU with Universal model QCPU As shown in Figure App 28 add programs SETX and SETY in the Program tab of the PLC parameter dialog box The following table shows the program setting of the SETX and SETY 注 1 Figure App 28 Modification in the Program tab o...

Page 605: ...or forced on off using the external input output forced on off function at each scan using the SET and RST instructions Example Forcibly turning X40 X77 and X7A on and X41 and Y7B off High Performance model QCPU Universal model QCPU Program example of SETX Program example of SETY 1 2 3 4 5 1 2 3 4 5 ...

Page 606: ...r P10 and P11 before and after the COM instruc tion P10 and P11 are pointers shown in the program examples in 2 When SM775 is on Executes refresh set by SD778 and also the 0 bit of SD778 is off Do not execute I O refresh replacement of the instruction is not necessary a Program before replacement b Program after replacement Selection of refresh processing during COM instruction execution Selection...

Page 607: ...the RFS instruction Add a subroutine call that executes forced input after the RFS instruction b When partial refresh for output Y is executed by the RFS instruction Add a subroutine call that executes forced output before the RFS instruction 5 Restrictions Replacements described in 2 to 4 do not apply in the following cases Input and output targeted for forced on off are referred to or changed us...

Page 608: ...argest mounted I O number read Operation of SD250 is not necessary The Universal model QCPU always stores the largest mounted I O number in SD250 Delete the corresponding sections SM255 MELSECNET H module 1 information Indicates operative network or standby network These are special relays for the simple dual structured network function Since the Universal model QCPU does not support this function...

Page 609: ...ck No 6 for low speed execution type programs SM432 User timing clock No 7 for low speed execution type programs SM433 User timing clock No 8 for low speed execution type programs SM434 User timing clock No 9 for low speed execution type programs SM510 Low speed execution type program executing flag The Universal model QCPU does not support low speed execution type programs Delete the correspondin...

Page 610: ...TableApp 45 Special relay not supported in the Universal model QCPU and measures Continued Number Name Description Measures SM1780 1 Power supply off detection flag The Universal model QCPU does not store redundant power supply system information in SM1780 to SM1783 Delete the corresponding sections SM1780 to SM1783 are always off SM1781 1 Power supply failure detection flag SM1782 1 Momentary pow...

Page 611: ...ocessing time Other setting methods can be selected as well SD394 CPU mounting information Check the type and model of other CPU modules mounted on the System monitor screen of GX Developer Check the mounting status of other CPU modules in SD396 to SD398 SD430 Low speed scan counter The Universal model QCPU does not support low speed execution type programs Delete the corresponding sections or rep...

Page 612: ...rsal model QCPU does not support the service interval measurement function Delete the corresponding sections SD551 Service interval time SD552 SD720 Program No specification for PLAODP instruction The Universal model QCPU does not support the PLAODP instruction Delete the corresponding sections SD1780 1 Power supply off detection status The Universal model QCPU does not store redundant power suppl...

Page 613: ...can be changed to 0 TableApp 47 Device point assignment sheet Device name Symbol Numeric notation Number of device point 1 2 Restriction check Points Range Size words 3 Points bits 2 Input relay X Hexadecimal 8K 8192 X0000 to X1FFF 16 512 1 8192 Output relay Y Hexadecimal 8K 8192 Y0000 to Y1FFF 16 512 1 8192 Internal relay M Decimal K M0 to 16 1 Latch relay L Decimal K L0 to 16 1 Link relay B Hexa...

Page 614: ...etting the counter 9 28 Cyclic transmission area device U3En G 9 45 D D Data register 9 31 DX Direct access input 3 12 DY Direct access output 3 12 Data clear processing 3 6 Data register D 9 31 Debug execution Operation procedure 6 92 Debug function from multiple GX Developers 6 91 Decimal constant K 9 81 Detail mode 4 1 Device list 9 1 Device point assignment sheet App 69 Device setting 8 7 Dire...

Page 615: ... 9 Internal system device 9 35 Internal user device 9 3 Interrupt Interrupt form intelligent function module 6 119 Interrupt module 6 26 Interrupt pointer I 9 76 Interrupt pointer setting 8 3 Interrupt program 2 6 Interrupt program monitor list 6 72 List of interrupt factors 9 77 Interrupt program Fixed scan program setting 8 4 J J Network No specification device 9 78 J Link direct device 9 40 K K...

Page 616: ... B A 21 Q6 B A 21 Q6 RB A 21 QI60 6 26 QnUD H CPU A 21 R R File register 9 53 RUN status 3 3 Reading clock data 6 15 Redundant power extension base unit A 21 Redundant power main base unit A 21 Refresh mode 3 9 Remote PAUSE 6 20 Remote RESET 6 22 Remote RUN STOP 6 17 Remote latch clear 6 24 Remote operation 6 17 Remote password 6 108 S S Step relay 9 19 SB Link special relay 9 18 SD Special regist...

Page 617: ...Macro instruction argument device 9 80 W W Link register 9 32 WDT Watchdog timer 6 95 WDT setting 6 95 Watchdog timer WDT 6 95 Write the program memory to ROM 5 18 Write to PLC Flash ROM 5 20 Writing Writing data to the memory card 5 16 Writing data to the program memory 5 7 Writing data to the standard RAM 5 13 Writing data to the standard ROM 5 11 Writing reading device data to from standard ROM...

Page 618: ...ed not to be so by the user 2 Onerous repair term after discontinuation of 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 available after production is discontinued 3 Overseas service O...

Page 619: ...n in the United States and other countries Ethernet is a trademark of Xerox Co Ltd in the United States CompactFlash is a trademark of SanDisk Corporation VxWorks Tornado WindPower WindSh and WindView are registered trademarks of Wind River Systems Inc Other company names and product names used in this document are trademarks or registered trademarks of respective owners SH NA 080807ENG A ...

Page 620: ......

Page 621: ......

Page 622: ...5 Riga Phone 371 0 784 2280 Fax 371 0 784 2281 LITHUANIA Beijer Electronics UAB Savanoriu Pr 187 LT 02300 Vilnius Phone 370 0 5 232 3101 Fax 370 0 5 232 2980 EUROPEAN REPRESENTATIVES MOLDOVA INTEHSIS srl bld Traian 23 1 MD 2060 Kishinev Phone 373 0 22 66 4242 Fax 373 0 22 66 4280 NETHERLANDS Koning Hartman b v Haarlerbergweg 21 23 NL 1101 CH Amsterdam Phone 31 0 20 587 76 00 Fax 31 0 20 587 76 05 ...

Reviews: