Home
Basic Model QCPU(Q Mode)User`s Manual(Function Explanation
Contents
1. MELSEG AiseaP MELSEG ASG Aisx1o a Atsyso fe Aisxat oa Aisyat 8 Aisxet_ Ta Misyar gg Aisxa2 Ansyaa 7 POWER RUN ICLR RUN if ix ay iS es ae aes a oe bee po ERROR RESET RESET ge f rR 4 f Aot a eta e zE MITSUBISHI wiTsusisHi E ce Peo e eo e Ate PSB cE f a HELSEG erer QOTCPU 0X10 0X10 0X10 QX10 QX41 0X41 0X41 RUN C1 ERR I 0 0 0 o T T T T 98mm 3 3 3 3 3 86 lt 1PULL oo g Fn gl inch PULL Io SESIR Sg 9 9 9 F A A A A 5 B B Cc y C C D D D D RS 232 E E E E 4 MITSUBISHI v F F F F 5 Slot Main Base Unit 245mm 9 65inch a 8 Slot Main Base Unit 328mm 12 92inch R 12 Slot Main Base Unit 439mm 17 30inch 1 OVERVIEW MELSEC Q 6 Connection of up to four two extension base units a The QOOJCPU can connect up to two extension base units three base units including the main and accepts up to 16 modules b The Q00 Q01CPU can connect up to four extension base units five base units including the main and accepts up to 24 modules c The overall distance of the extension cables is up to 13 2m to ensure high degree of extension base unit arrangement POINT When bus connecting the GOT the number of extension base units connected decreases by one since the GOT uses one stage of the above base units 7 Serial communication function for communication with p
2. Device Program Boot file Serial HAW error time PLC operation mode Error time Model name output mode r120 Assignment PLC Switch settjhg Interrupt Interrupt 16points Detailed setting KIKIKIKIKIKIKI KIKIKIKIKIKIKIKI r Standard setting If the start X and Y are not input the PLC assigns them automatically It is not possible to check correctly when there is a slot of the unsetting on the way Base mode Auto Detail Jsettings should be set as same when using multiple PLC End ema 8 fixation Increased 12 fixation Jsettings should be set as same when using multiple PLC Acknowledge XY assignment Multiple PLC setting Diversion of multiple PLC parar Default Check End Cancel Read PLC data 3 Precautions a Setting of a higher input response rate increases sensitivity to noise or like Take the operating environment into consideration when setting the input response rate b The setting of the input response rate is made valid when e The PLC is powered ON or e CPU module is reset 7 FUNCTION MELSEC Q 7 8 Setting the Switches of the Intelligent Function Module 1 Setting the Switches of
3. gt gt 2 8 3 8 Q35 o Setting of extension stage z Refer to Section 5 2 a C PU slot 56789 a i gt oS 58 5 Q65B URE 10 11 12 13 14 lone 2 oo To 3 Q65B tle a 15 16 17 18 19 oo gt OO Q a 3 2 00 5 Q65B j 20 21 22 23 oo gt oo Ter 3 OO E g ee 4 7 E Q65B oo ea PL Module cannot be installed Installing module will result in error When the GOT has been bus connected one slot of extension base 1 is used Also one GOT occupies 16 I O points When using the GOT consider the number of slots and the number of I O points Refer to the GOT Manual for details of bus connecting the GOT 5 ASSIGNMENT OF I O NUMBERS MELSEC Q 5 2 Installing Extension Base Units and Setting the Number of Stages As extension base units you can use the Q5__ B and Q6__B that are designed for installation of Q series compatible modules The QA1S6_ B and QA65B extension base units are unusable 1 Setting order of the extension stage numbers for extension base units Extension base units require the setting of the extension stage numbers using the stage setting connector Assign the extension stage numbers starting from 1 to 2 4 to the extension base units counting from the one which is connected to the main base unit 2 Cautions to assign extension stage numbers to extension base units a Setting of extension stage Stage setting connector
4. b Operation status Enables the I O number the module type and the number of modules mounted for each of the slots on the selected base unit to be confirmed If the operation status shows 0 empty points and an allocation error is displayed it means that the PC parameter s I O allocation and the actual status are different In this event align the PLC parameter s I O allocation with the actual status by allocating an I O c Base Enables the status of the modules mounted onto the base unit in use to be confirmed The module column displays an error or warning status if even one module is faulty d Diagnostics This function is used to confirm the status of Basic model QCPU and errors 7 FUNCTION MELSEC Q e Module s detailed information This function is used to confirm the detailed information for selected modules Refer to the instruction manual for the relevant intelligent function module for details on the detailed information for intelligent function modules f Base information Enables the Overall Information and Base Information to be confirmed 1 Overall information Enables the number of base units in use and the number of modules mounted on the base units to be confirmed 2 Base information Enables the base name the number of slots the base type and the number of modules mounted onto the base for the selected base unit main base unit additional base units 1 to 7 to be confirmed g List
5. eeee 5 2 Special link register SW cceeeeeee 10 30 Special link relay SB eceeeeeeeeeee 10 18 Special register SD cccseeeeseeee 10 34 Special relay SM cccecceeeseseeeeeeeeees 10 33 ST Retentive timer OUT ST 2 uu 10 21 Standard RAM c cccceesesceseteesessesseesseeeeees 6 9 Standard ROM c cccccccccsscesseessessesseeeeeeeees 6 5 Step relay Seesmic sinen 10 18 Sub routine Program eccescceceeceseeeeeeeeteees 4 4 SW Special link register c ceeeeeee 10 30 Switch setting of intelligent function module 7 24 System Protect cecceececeeeeeeeteeseeeeeeeeeeeaes 7 35 T Temerin ave Wet aaiend Ria ied 10 19 ACCU ACY nid rarer drano aie Peed 10 22 PrOcCeSSiINg sinihan anian 10 22 U U I O No designation device 10 48 U 22 G i Intelligent function module device 10 38 User MEMOS 2 ccecceeeeeeeeeeeeeeeeeeeeeteeeeenees 6 2 V V Edge relay aseetita iaiaaeaia 10 16 VD Macro instruction argument device 10 49 W W Link register ccceeeeeeseeeeeteeeeees 10 29 WDT Watchdog timer ccceeeeeeeeeees 7 28 Write during RUN ceeceeeeeeeeeeeeeeteeees 7 25 Writing to the time data cceeeeee 7 9 X X MOUT naa aaa errr aE 10 5 Y YOUU ae eA at che ant canta 10 8 Index 2 WARRANTY Please confirm the following prod
6. gt Argument to FD1 L s gt Argument to FDO Argument from FD2 Argument to FD1 Sub routine program FENDH Destination data SM400 MO source data MOV FDO FD2 gt Argument to FDO For details regarding the argument input output condition refer to Section 10 3 1 1 10 1 10 2 SYSTEM CONFIGURATION MELSEC Q 2 SYSTEM CONFIGURATION This section describes the system configuration of the Basic model QCPU cautions on use of the system and configured equipment 2 1 System Configuration 2 1 1 QOOJCPU This section explains the equipment configuration of a QOOJCPU system and the outline of the system configuration 1 Equipment configuration a ees Basic model QCPU Input output module QO00JCPU Intelligent function module Battery Q6BAT ii Extension cable QC05B QCO6B QC12B QC30B QC50B QC100B Q6LB extension base unit Q63B Q65B Q68B Q612B Q50B extension base unit Q52B Q55B gog Power supply module Input output module Intelligent function module Input output module Intelligent function module 2 SYSTEM CONFIGURATION MELSEC Q 2 Outline of system configura
7. Assign consecutive numbers to extension stages If you assign stage numbers to base units in Auto mode and assign some stage numbers to no modules 0 is assigned to the skipped stage as the number of slots Consequently the number of vacant slots does not increase The I O assignment also assigns 0 to the skipped stage as the I O points It is impossible to set and use the same extension stage number with two or more extension base units You cannot use the system if two or more connector pins are inserted to the stage setting connector On the contrary you cannot use the system if no connector pin is inserted to the stage setting connector 012345 6 7 Q38B Main base unit Power supply QOOCPU foo 9 10111213 1415 Q68B Power supply 16 17 18 19 20 21 22 23 Ce Power supply Q68B 5 ASSIGNMENT OF I O NUMBERS MELSEC Q 5 3 Base Unit Assignment Base Mode There are Auto and Detail modes to assign the number of modules of the main and extension base units of Basic model QCPU 1 Auto mode In Auto mode the number of slots is assigned to the base units according to that of the installed main and extension base units The I O numbers are assigned according to the modules which can be installed to the current base unit Since the AnS series main and extension base units were fixed to eight slots a three five slot base un
8. However this setting can be changed by PLC parameter device setting Device setting screen SFC 1 0 assignment al name PLCsystem PLC file PLC RAS Boot file Sym Dig Dev Latch 1 Latch 1 Latch 2 Latch 2 Local Local point start end start end dev start dev end Input relay x 16 2K Output rela ities el bi ake Intemalrelay M 10 8K Latch rela L 10 2k Link relay B 16 2k Annunciator_ F 10 1K Link special SB 16 1K Edge relay v 10 1k Step relay S 10 2k Timer Aaaa 512 Retentive timer ST 10 OK Counter Cc 10 512 Data register D 10 11136 Link register W 16 2K Link special _ Sw 16 1K Default value Device total K words The total number of device points is up to 16704 words Wi Bit device sie High speed area X0 C511 Dev point can be changed at devices where a Dev point value is shown in brackets Latch 1 The clear is possible with latch clear ord device K words Latch 2 The clear is impossible with latch clear Please do the clear with the PLC memory clear Acknowledge XY assignment Default Check End Cancel 1 10 3 Setting range in the internal user device For all Basic model QCPU internal user devices other than the input X output Y step relay S special link relay and special link registers SW devices the number
9. When writing program and parameter to the Basic model QCPU program memory the steps indicated by asterisks below are not required Procedural steps shown in C3 boxes are performed at the GX Developer and those shown in L boxes are performed in the Basic model QCPU START Start GX Developer f Refer to the GX Developer manual Set the project Do you change the number of device points used SERRAS Refer to Section 10 1 2 Device setting screen Change the number of device points in device setting of PLC parameter Do you perform boot operation Select boot from standard ROM in boot file setting of PLC parameter Create a program to be executed in the CPU module 12 2 12 PROCEDURE FOR WRITING PROGRAMS TO BASIC MODEL QCPU MELSEC Q 1 Connect GX Developer and CPU module ata Refer to the GX Developer manual Move the RUN STOP RESET ERR LED is lit switch of the CPU module to the STOP position and switch power on Write to PLC screen Choose Program memory in online write to PLC of GX Developer and write the parameters and created program to the program memory Write the program memory to ROM in online write to PLC flash ROM of GX Developer to write the program memory data to the standard ROM Make a reset with the RUN _
10. 0 0 0 1 1 a 2 2 is 20 3 3 11 9 9 1001 10 A 1010 11 B 1011 12 C 1100 13 D 1101 14 E 1110 15 F 1111 Sien 16 10 1 0000 ae 17 11 1 0001 47 2F 10 1111 2 Hexadecimal numeric expression Basic model QCPU registers data registers link registers etc consist of 16 bits Therefore as expressed in hexadecimal code the numeric value range which can be stored is 0 to FFFFn 4 SEQUENCE PROGRAM CONFIGURATION amp EXECUTION CONDITIONS MELSEC Q 4 8 3 BCD Binary Coded Decimal 1 BCD notation BCD numeric expressions are binary expressions with a carry format identical to that of the decimal system As with the hexadecimal system BCD expressions are the equivalent of 4 binary bits although the BCD system does not use the A to F alphabetic characters A comparison of binary BCD and decimal numeric expressions is shown in Table 4 4 below Table 4 4 Comparison of BIN BCD and DEC Numeric Expressions BCD Binary Coded Decimal i 9 1 10 11 DEC Decimal BIN Binary 0 1 2 3 4 5 6 7 8 9 Carry _ oot N O 2 BCD numeric expression Basic model QCPU registers data registers link registers etc consist of 16 bits Therefore as expressed in BCD code the range of numeric values to be stored is O to 9999 4 SEQUENCE PROGRAM CONFIGURATION amp EXECUTION CONDITIONS MELSEC Q 4 9 Character String Data 1 Character String Data The Basic model QCPU uses ASC
11. If the SD520 value is 3 and the SD521 value is 400 the initial scan time is 3 4 ms POINT x1 The accuracy of the scan time stored at the special registers is 0 1 ms The scan time count will continue even if a watchdog time reset instruction WDT is executed at the sequence 2 Constant scan setting 2 When constant scanning is designated the main routine program is executed at each designated constant scan period 3 WDT Watchdog timer This is the timer which monitors the scan time and its default setting is 200 ms This WDT setting can be designated in a 10 ms to 2000 ms range in the PLC RAS settings of the PLC parameter Setting units 10 ms The WDT measurement error is 10 ms Therefore a WDT setting t of 10 ms will result in a WDT ERROR if the scan time is in the following range 10 ms lt t lt 20 ms 1 The constant scan function executes the scan type program repeatedly at regular intervals For details regarding of the constant scan refer to Section 7 2 4 SEQUENCE PROGRAM CONFIGURATION amp EXECUTION CONDITIONS MELSEC Q 4 3 Operation Processing 4 3 1 Initial processing This is a preprocessing for sequence operation execution and is performed only once as shown in the table below When the initial processing is completed the Basic model QCPU goes in the RUN STOP RESET switch setting status See Section 4 4 Basic model QCPU status Initial processing it
12. Power supply QOOCPU Q612B type extension base unit 12 13 14 15 16 17 18 19 20 21 22 23 Power supply 5 ASSIGNMENT OF I O NUMBERS MELSEC Q 2 Detail mode a b In Detail mode the number of slots is assigned to the individual base units main and extension base units by setting the I O assignment of PLC Parameter Use this mode to match the number of slots to the one for the AnS series base units 8 fixation Since one slot is occupied if an empty slot is set for zero points in I O assignment this mode is also used to make the slot without a module and later unrecognized Cautions on setting the number of slots The number of slots can be set regardless of the number of slots of the module being used However the number of slots must be set for all the base units in use If the number of slot is not set for all the base units I O assignment may not work correctly The followings result if the preset number of slots differs from that of the installed base units 1 When the designated number of slots is larger than that of the installed base unit Among the designated slots those after the slots occupied by the installed base unit will be empty slots For example when 8 slots are designated for a 5 slot base unit 3 slots will be empty slots Q35B type main base unit 0123456 Toot Q I j 1 S EAE a Gu Ee ELi 3 Ere es LoL Lu Pibe
13. STOP STOP STOP STOP RESET Latch clear x1 When performing the operation with remote RUN contact RUN PAUSE contact must be set in the parameter mode PLC system setting x2 When performing the operation with remote PAUSE contact RUN PAUSE contact must be set in the parameter mode PLC system setting In addition the remote PAUSE enable coil SM206 must be set ON 3 Remote reset enable must be set in the parameter mode PLC system setting x4 RESET or LATCH CLEAR can be performed if the Basic model QCPU changed to the STOP state from a remote operation 5 This includes a situation where the Basic model QCPU is stopped due to error 2 Remote Operations from the Same GX Developers When remote operations are performed from the same GX Developer the status of the remote operation that is executed last will be effective 3 Remote Operations from Multiple GX Developers While a remote operation is being performed by one GX Developer another remote operation cannot be performed by another GX Developer After a remote operation that is being performed by one GX Developer is cancelled a new remote operation can be performed by another GX Developer For example a remote PAUSE operation is being performed by one GX Developer the PAUSE status will remain active even if a remote STOP remote RUN operation is attempted by another GX Developer When a remote RUN operation is performed by the GX Developer that is performing a remote
14. e Tighten the terminal screws with the specified torque If the terminal screws are loose it could result in short circuits fire or erroneous operation Tightening the terminal screws too far may cause damages to the screws and or the module resulting in fallout short circuits or malfunction e Be sure there are no foreign substances such as sawdust or wiring debris inside the module Such debris could cause fires damage or erroneous operation e The module has an ingress prevention label on its top to prevent foreign matter such as wire offcuts from entering the module during wiring Do not peel this label during wiring Before starting system operation be sure to peel this label because of heat dissipation Startup and Maintenance precautions lt gt DANGER e Do not touch the terminals while power is on Doing so could cause shock or erroneous operation e Correctly connect the battery Also do not charge disassemble heat place in fire short circuit or solder the battery Mishandling of battery can cause overheating or cracks which could result in injury and fires e Switch all phases of the external power supply off when cleaning the module or retightening the terminal or module mounting screws Not doing so could result in electric shock Undertightening of terminal screws can cause a short circuit or malfunction Overtightening of screws can cause damages to the screws and or the module resulting in fall
15. 48 sec after the hour Minute H3548 e Stores the year two digits and the day of the week in SD213 in the BCD code format as shown below B15 to B12B11 t B8 B7 Example Ree tll ant E th Friday 1 1 1 1 1 1 H0005 Clock data Day of week Clock data oe S U Request day of week PN unday Higher digits 1 Monday of year 0 to 99 2 Tuesday 3 Wednesday 4 Thursday 5 Friday 6 Saturday App 11 App 11 APPENDICES MELSEC Q Special Register List Continued Explanation Set by When set Stores the message 16 characters of ASCII data at error occurrence including annunciator ON B15 to B8 B7 to BO D220 15th character from the right 16th character from the right D221 13th character from the right 14th character from the right D222 11th character from the right 12th character from the right Display indicator data SD223 9th character from the right 10th character from the right S When changed D224 7th character from the right 8th character from the right D225 5th character from the right 6th character from the right SD226 3rd character from the right 4th character from the right D227 1st character from the right 2nd character from the right The display device data at PRG CHK is not stored Automatic m Base mode ne atic mode e Sto
16. 6 6 Guideline for Use of Extension Base Units Q501B 7 MEMORY CARD AND BATTERY 7 1 Battery Specifications 7 2 Installation of Battery 8 EMC AND LOW VOLTAGE DIRECTIVES 8 1 Requirements for conformance to EMC Directive 8 1 1 Standards applicable to the EMC Directive 8 1 2 Installation instructions for EMC Directive 8 1 3 Cables 8 1 4 Power supply module QOOJCPU power supply section 8 1 5 Others 8 2 Requirement to Conform to the Low Voltage Directive 8 2 1 Standard applied for MELSEC Q series 8 2 2 MELSEC Q series PLC selection 8 2 3 Power supply 8 2 4 Control box 8 2 5 Grounding 8 2 6 External wiring 9 LOADING AND INSTALLATION 9 1 General Safety Requirements 9 2 Calculating Heat Generation by PLC 9 3 Module Installation 9 3 1 Precaution on installation 9 3 2 Instructions for mounting the base unit 9 3 3 Installation and removal of module 9 4 Setting the Stage Number of the Extension Base Unit 9 5 Connection and Disconnection of Extension Cable 9 6 Wiring 9 6 1 The precautions on the wiring 9 6 2 Connecting to the power supply module 10 MAINTENANCE AND INSPECTION 10 1 Daily Inspection 10 2 Periodic Inspection 10 3 Battery Replacement 10 3 1 Battery service life 10 3 2 Battery replacement procedure 11 TROUBLESHOOTING 11 1 Troubleshooting Basics 11 2 Troubleshooting 11 2 1 Troubleshooting flowchart 11 2 2 Flowchart for when POWER LED is turned off 11 2 3 Flowchart for when the RUN LED is turned off 11 2
17. Bit pattern indicating SAEF aa these remain ON even after battery voltage has been returned to Battery low latch where battery voltage BO drop occurred p gt CPU error D52 B a Br e Same configuration as SD51 above SD5 attery low where oanery vonage Subsequently goes OFF when battery voltage is restored to normal drop occurred Every time the input voltage falls to or below 85 AC power 65 DC power of the rating during calculation of the CPU module the value is incremented by one and stored in BIN sp60 Blown fuse Number of module e Value stored here is the lowest station I O number of the module with the blown S E number with blown fuse fuse rror sp61 E Sior VO module verification e The lowest I O number of the module where the I O module verification number S E number error module number took place rror Annunciator Annunciator number The first annunciator number to be detected is stored here SD64 When F goes ON due to OUT F or SET F the F numbers which go progressively ON from SD64 through SD79 are registered SD65 F numbers turned OFF by RST F are deleted from SD64 to SD79 and are shifted to the data register following the data register where the deleted F numbers had SD66 been stored Execution of the LED R instruction shifts the contents of SD64 to SD79 up by one eal This can also be done by us
18. The Q00J Q00 A01CPU features devices and instructions which facilitate program creation A few of these are described below 1 Flexible device designation a Word device bits can be designated to serve as contacts or coils For the case of AnS ee Bit designation of xo D0 5 word device N XO MOV Do K4Mo H Switches b10 of DO ON and M10 gt The 1 0 status OFF 1 0 of b5 of DO is used N OFF data as ON OFF data MOV K4MO DO x DOS b15b14b13b12b11b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 bO gt Bit designation pl 3 11 0 Pa 1 0 ror Word device designation b Direct processing in 1 point units is possible within a program simply by using direct access inputs DX _ and direct access outputs DY _ For the case of Basic model QCPU a Direct access input For the case of AnS Mo Dx1047 M9036 o Vammen SET M9052 Always ON bce to output M9036 module at t _ sec k1x10 KiBoH instruction execution X10 to X13 refresh gt Read from input i ae a va module at I instruction execution M9036 SEG kiY100 K1B0 H Y100 to Y103 refresh c Differential contacts HH eliminate the need for converting inputs to pulses For the case of Basic model QCPU Differential contact For the case of AnS XO Xi X0 tt lt vo HI Y100 MO XI Y100 4 ON at leading Y100
19. a If the designated number of I O points is smaller than that of the actually installed input output module some I O points of the installed module are not used For example if a slot where a 32 point input module is installed is designated for a 16 point input module the latter 16 points of the 32 point input module are disabled If the designated number of I O points is larger than that of the actually installed input output module the points exceeding the points of the actually installed module are set as dummies Be sure to set the same module type for the installed module and the I O assignment If the module type of the I O assignment is different from that of the actually installed module a malfunction may result For the intelligent function module make sure that the numbers of I O points are the same 5 ASSIGNMENT OF I O NUMBERS d e MELSEC Q Actually installed module I O assignment Input module Output Empty Empty Output module Input Empt Input module output module Intelligent Error SP UNIT LAY ERR Empty Empty Intelligent function module Input output Error SP UNIT LAY ERR Vacant slot Intelligent No error occurs SP UNIT LAY ERR occurs if the number of points set is less than the number of points of the installed intelligent function module Be sure to assign the I O numbers so that the last I O number is within the range of FFH 3FFu or less An error SP UNIT LAY ERR occurs
20. edge of X0 1 OVERVIEW MELSEC Q d The buffer memory of intelligent function module e g Q64AD Q62DA can be used in the same way as devices when programming For the case of Basic model QCPU For the case of AnS XO x P U4 G12 DO ea Readout of Q64AD buffer memory s address 12 data ee Buffer memory address designation Intelligent function module designation Power supply module QOOCPU Input 16 points Input 16 points Input 16 points Q64AD 16 points Q64AD 16 points Q62AD 16 points Output 16 points Output 16 points i Input output Nos X Y40 to X Y4f e Direct access to link devices LX LY LB LW LSB LSW of MELSECNET H network modules e g QU71LP21 25 is possible without refresh settings XO P J5 W12 DO Direct readout of the No 5 network module s LW12 link register JO W12 I gt Link register designation Network No designation QJ71LP21 25 Input 16 points Input 16 points Q68AD 16 points Q62AD 16 points Output 16 points Output 16 points Power supply module QOOCPU Q68AD 16 points Zz D Q Zz Oo ol f If index qualified each instruction of the Basic model QCPU does not increase in processing time facilitating writing of a structured program 1 OVERVIEW MELSEC Q 2 Edge relays simplify pulse conversion proces
21. i This function provides read write protection for files stored in the Basic model QCPU against Password registration Section 7 17 1 access from the GX Developer ystem display This function connects to the GX Developer and monitors system configuration Section 7 18 LED display This function enables the front mounted LEDs to indicate the operating conditions of the Basic Section 7 19 model QCPU This function makes communication in the MC protocol with the RS 232 interface of the QOOCPU ion 7 17 Q01CPU connected with a personal computer display device or like by an RS 232 cable Section Serial communication function 7 FUNCTION MELSEC Q 7 2 Constant Scan 1 What is Constant Scan The scan time differs because the processing time differs depending on whether the instruction which is used in the sequence program is executed or not Constant scan is a function to execute the sequence program repeatedly while maintaining the scan time at a constant time The I O refresh is executed before the sequence program is executed So the I O refresh stays constant even when the execution time of the sequence program varies Scan time when constant scan is not used Sequence program END processing END 0 ENDy 0 END 0 S Sequence program END processing END 0 END 0 END 4 ange Wait time 7 5ms 2ms 7ms Fig 7 1 Constant scan operation 7 FUNCTION MELSEC Q 2 Setting
22. 4 Purpose of I O assignment ccceeeee 5 12 Purpose of I O assignment using Q C1 O ne 7 23 QIGPU E A 17 QNHCPU eccccesecceseeeessecesseeesseeesseeeseeeeaees A 17 R R File register e ccecccecceecceeeceeeeteeteeetes 10 42 Reading from the time data cceee 7 9 Refresh input 2 2 ceccecceececeeceeeeeeeseeeeenetees 10 6 Refresh Mode 0 cc 2 ccesecveceesetesvescs cevescetveectes 4 15 Refresh OUtQut eeeeeeeeeeeeeeeeeeeeeeeeteeatens 10 9 Remote latch Clear cccccceeeeeeeeeseeeeees 7 19 Remote Operation eceecseeeeeeeeeeseteeteees 7 12 Remote PAUSE 4 fie 256 r 7 15 Remote RESET T ren aeneae 7 17 Remote RUN STOP cccccscceseeseesteeeseeees 7 12 Remote station I O nUMbe cc ceeceeees 5 11 Retentive timer OUT ST 02 eeeeeeee 10 21 RUN Status einan aiana 4 12 S S Step relay ccecccescscesssseesssseeseeeees 10 18 SB Special link relay cceseceeseeeteeeees 10 18 Index 2 SCAN time woe cece eee eeeeceecseeeeeeeeeseeessneeeaee 4 9 SD Special register ceccseeeeeseeee 10 34 SD520 SD521 Scan time present value 4 9 D524 SD525 Scan time Maximum value 4 9 SD526 SD527 Scan time Minimum value 4 9 Self diagnosis function 7 30 Sequence program eceeeeeeeeeeeteeteeeeeteeaes 4 1 Setting range in the internal user device 10 3 Setting the number of stages
23. A BCD instruction is therefore provided for the Basic model QCPU to convert the BIN data to BCD data A program which converts BIN data to BCD data can be created at the sequence program in order to display the output data in a manner identical to decimal data Basic modle QCPU Numeric data designation BINP K4X0 Do H Digital display AEAEE Ys Y30 A ecn eee BCD output BIN data Fig 4 11 Digital Display of Data from Basic model QCPU 4 SEQUENCE PROGRAM CONFIGURATION amp EXECUTION CONDITIONS MELSEC Q 4 8 1 BIN Binary Code 1 Binary code In binary code numeric values are expressed by numerals 0 OFF and 1 ON numerals When counting in the decimal system a carry to the tens column occurs following 9 8 to 9 to 10 In the binary system this carry occurs following 1 0 to 1 to 10 The binary 10 therefore represents the decimal 2 Binary values and their respective decimal values are shown in Fig 4 2 below Table 4 2 Binary and Decimal Numeric Value Comparison DEC Decimal BIN Binar 0000 0001 0010 0011 Carry Carry 0100 0101 0110 0111 1000 1001 1010 1011 2 Binary numeric expression a Basic model QCPU registers data registers link registers etc consist of 16 bits with a 2 value is allocated to each of the register bits The most significant bit initial bit is used to discriminate between positi
24. Intelligent function module program execution error For example when the I O module verification error is set to continues the calculations are continued in the I O address before the error occurred 7 FUNCTION MELSEC Q 4 Error check selection The error checking can be set to yes no in the following error checking in the parameter mode PLC RAS setting All parameter defaults are set at Yes a Battery check b Fuse blown check c I O unit comparison Self Diagnosis List Diagnosis description Diagnostic timing Hardware failure Handling error Parameter error Fuse short default stop FUSE BRAKE OFF When the END instruction is executed p e ieee E 2 VO IVO interrupt error o error OINTERROR INT ERROR e When an When an interrupt occurs o occurs e When the power is turned on when reset Intelligent function module error SP UNIT DOWN eigen union mote enor SPUNTDOWN When the FROM TO instruction is executed e When the power is turned on when reset CONTROL BUS ERROR e When the END instruction is executed e When the FROM TO instruction is executed Battery low BATTERY ERROR e Always Default Yes g 1 0 module verification Default UNIT VERIFY ERROR When the END instruction is executed Stop 1 Default Yes 2 Intelligent function module error SP UNIT ERROR e When an instruction is executed Intelli f i When the power is turned on when rest ntel igent unctio
25. LED starts flashing 3 SM1 turns ON and the error code is stored in SDO The default value of the watchdog timer is 200 ms The setting range is 10 to 2000 ms 10ms units 2 Watchdog Timer Setting and Reset a b The PLC RAS setting of the PLC parameter resets the watchdog timer Basic model QCPU resets the watchdog timer when the END instruction is executed 1 When the END FEND instruction is executed within the set value of the watchdog timer in the sequence program and the Basic model QCPU is operating correctly the watchdog timer does not time out 2 When there is a Basic model QCPU hardware failure or the sequence program scan time is too long and the END FEND instruction could not be executed within the set watchdog timer value the watchdog timer times out 3 Precautions a b An error of 0 to 10 ms occurs in the measurement time of the watchdog timer Set the watchdog timer for a desired value by taking such an error into account The watchdog timer is reset with the WDT instruction in the sequence program If the watchdog timer expires while the FOR and NEXT instructions are repetitiously executed reset the watchdog time with the WDT instruction FOR K1000 Program for repetition processing Repetition Mo uci A 1000 times H WDT WDT reset NEXT 7 FUNCTION MELSEC Q c The scan time value is not reset even if the watchdog timer is reset in the sequence
26. OFF No error e ON when error is generated in clock data SD210 through SD213 OME Eh Clock dataenor ON Error value and OFF if no error is detected Request Clock data read OFF Ignored e When this relay is ON clock data is read to SD210 through SD213 SM213 U request ON Read request as BCD values This flag is enabled when the time reserved for communication processing is set in SD315 e Turns ON to delay the END processing by the time set in SD315 if OFF Without delay there is no communication processing ON With delay The scan time increases by the period set in SD315 Turns OFF to perform the END processing without a delay of the time set in SD315 when there is no communication processing Defaults to OFF Clock data set OFF Ignored request ON Set request Communication reserved time delay enable disable flag 3 System clocks counters Set by When Set N _ SM400 Always ON Ne e Normally is ON S Every END processing ON y SM401 Always OFF OFF e Normally is OFF S Every END processing ON for 1 scan ON 1 scan After RUN ON for 1 scan only Sm4o2 only after RUN e This connection can be used for scan execution type programs only S Every END processing After RUN OFF ON lt gt __ After RUN OFF for 1 scan only SM403 Jor 1 scan only oFF 1 scan This connection can be used for scan execution type programs only S Every END processing SM410 0 1 second
27. Q01CPU only S Status change ON File register in use OFF Program memory execution ON Boot operation in progress SM660 Boot operation Goes ON while boot operation is in process S Status change 5 Instruction Related Special Relays Set by When Set OFF Carry OFF ETA 5 A SM700 Carry flag ON Carry ON Carry flag used in application instruction S Instruction execution OFF Search next Designates method to be used by search instruction ae ae SMACe Searchmethod ON 2 part search e Data must be arranged for 2 part search E SM703 Sort order OFF Ascending order e The sort instruction is used to designate whether data should be U ON Descending order sorted in ascending order or in descending order SM704 Block comparison OFF Non match found Goes ON when all data conditions have been met for the BKCMP S Instruction execution ON All match instruction 0 During DI A wee F A SM715 EIlflag 1 During El ON when EIl instruction is being executed S Instruction execution File being OFF File not accessed Switches ON while a file is being accessed by the S FWRITE S Status change accessed ON File being accessed S FREAD COMRD PRC or LEDC instruction g BIN DBIN OFF Error detection performed Turned ON when OPERATION ERROR is suppressed for BIN or instruction error i i ON Error detection not DBIN instruction disabling flag performed Selection of link refresh OFF Performs l
28. The table below shows the drive numbers used to specify a selected memory program memory standard RAM or standard ROM when using a sequence program The drive number must be used to specify a selected memory when the read write is made through access from a serial communication module eee E QCPU built in StandadRAM Standard ROM DO a 4 Memory Capacity and Formatting The table below shows the size of a memory of the Basic model QCPU and whether to format a memory a QOOJCPU QOOCPU Q01CPU Whether to Format Standard RAM kb None Not required x e kbyte Standard ROM Not required kbyte Before using the Basic model QCPU always format the memory using GX Developer However if the memory is in an initial status or has been unformatted due to battery Q6BAT exhaustion the Basic model QCPU formats automatically at power on or reset of the PLC 6 FILES HANDLED BY BASIC MODEL QCPU MELSEC Q 6 2 Program Memory 1 What is the Program Memory a The program memory is an internal RAM that stores program executed by the Basic model QCPU b The data storage in the program memory is backed up by Basic model QCPU s built in battery Q6BAT c Before using the Basic model QCPU always format the memory using GX Developer 1 However if the memory is in an initial status or has been unformatted due to battery Q6BAT exhaustion the Basic model QCPU does formatting automatically at power on or reset of th
29. __athpoint 9 10th point 11th point 12th point 13th point 14th point 15th point 16th point 11 4 fo tathpoint 13 tathpoint 1 Eep a o a Le ooms 100ms 20 129 ini li ies 4oms O 49 nternal timer factor 17 131 pee Te to Unusable 1127 x1 The internal times shown are the default setting times These times can be designated in 1 ms units through a 2 ms to 1000 ms range by the PLC system settings in the PLC parameter setting 10 47 10 47 10 DEVICES MELSEC Q 10 11 Other Devices 10 11 1 Network No designation device J 1 Definition The network No designation device is used to designate the network No in data link instructions 2 Designating network No designation device The network No designation device is designated in the data link instruction as shown below H P READ un S1 2 3 gt Network No designation device n network No gt Instruction name gt Network No designation instruction For details regarding data link instructions refer to the Q Corresponding MELSECNET H Network System Reference Manual 10 11 2 I O No designation device U 1 Definition I O No designation devices are used with intelligent function module instruction module instructions to designate I O numbers 2 Designating the I O No designation device I O No designation devices are designated with the intelligent function mod
30. copied to the standard ROM b Standard ROM Parameter and program are stored in the standard ROM These data are used for ROM operation of the Basic model QCPU c Standard RAM This memory stores file register data The file registers of the standard RAM allow fast access like the data registers 2 Types of Data Stored in the Basic model QCPU Memory The table below shows the type of data stored in a program memory standard RAM and standard ROM QOOJCPU Built In Q00 Q01CPU Built In Data Name 4 Eag File name EA a E e Parameter O PARAM QPA Intelligent function module parameter E MAIN QPG Fileregister xp x os x MANGDA hosa Oo oe at one MAIN QCD Needed Stored X Not stored x1 To execute a program actually booting must be specified for the program memory using the PLC parameter x2 Data can be written with GX Developer Device comments cannot be used in an instruction of a Sequence program x3 Standard RAM hold a single file at a maximum of 32 k points 6 FILES HANDLED BY BASIC MODEL QCPU MELSEC Q 3 Drive Number a The Basic model QCPU uses drive numbers to control program memory standard RAM and standard ROM The GX Developer specifies a selected memory program memory standard RAM or standard ROM to execute the read write of parameter and program from and to the Basic model QCPU There is no need to specify the drive number when using the GX Developer b
31. is read from the output Y device memory and a sequence program is executed e When an output OUT instruction has been executed The sequence program s operation result 5 is output to the output module and is stored in the output Y device memory Fig 4 8 Input Output Information Flow at Direct Mode 1 The GX Developer input area can be switched ON and OFF by the following e Test operation by the GX Developer e A network refresh by the MELSECNET H network system e Writhing from a serial communication module e CC Link automatic refresh 2 The output Y device memory can be switched ON and OFF by the following e Test operation by the GX Developer e A network refresh by the MELSECNET H network system e Writhing from a serial communication module e CC Link automatic refresh 4 SEQUENCE PROGRAM CONFIGURATION amp EXECUTION CONDITIONS MELSEC Q 2 Response lag Output response lags of up to 1 scans can result from input module changes See Fig 4 10 Ladder examples DX5 55 H l DY5E Fastest possible DY5E ON Ladder for switching the DY5E output ON in response to an DX5 input ON LD DX5 OUT DY5E 0 55 56 ON OFF pxs OFF _ ON OF gt DY5E The fastest possible DY5E output ON occurs if the DX5 input is switched ON immediately prior to the step 55 operation If DX5 is ON when step 55 s LD DX5 is executed DY5E will switch ON within that scan This condition represents the minimum time lag betwe
32. ne Device comments Pe be BEN the file in the Password Always pa 1 Read Write display prohibit Device initial values i RO Registration 2 Write prohibit The control instruction read write display and write are mentioned above are as follows Description Read Write displa Program read write operations Write Operation that writes the program and tests 7 14 1 Password registration Password is used to prohibit the data read and write of the program and comments in Basic model QCPU from a GX Developer peripheral device The Password Registration is set for the specified memory program memory standard memory program file device comment file and device initial file There are two descriptions of items to be registered e The file name is not displayed and read write cannot be performed as well e Write cannot be performed to the file Read only If the password is registered file operations from GX Developer cannot be performed unless the same password is input 7 FUNCTION MELSEC Q 1 Password Registration To perform the password registration select GX Developer Online Password setup keyword set up for writing to PLC Register password Password registration change Password is set up for the PLC and the project currently selected on GX Developer a gt Target memory Program memory Device memory Ba Data type Data name Registration Password istration
33. z1 H Index register Z1 OFF FoR K10H Repetition 10 times designation xozi vozi g MOZ1 4 1 scan ON at X0 leading edge SM400 i INC Z1 7 Increment Index Register Z1 1 i NEXT H Return to FOR instruction Timing chart ON XO OFF ON When Z1 0 VO OFF l ON MO OFF i 1 Scan ON X1 OFF f ON 1 scan ON at X1 leading edge When Z1 1 Vi OFF ON M1 OFF 1 Scan 1 1 The ON OFF information for XOZ1 is stored at the VOZ1 edge relay For example the XO ON OFF information is stored at VO and the X1 ON OFF information is stored at V1 10 16 10 16 10 DEVICES MELSEC Q 10 2 7 Link relays B 1 Definition a A link relay is the Basic model QCPU relay used to refresh the Basic model QCPU from the MELSECNET H network module s link relay LB and to refresh the MELSECNET H network module s link relay LB from the Basic model QCPU data Basic model QCPU___ MELSECNET H network module Link relay Link relay BO LBO i Link refresh i Link refresh setting range Cee S E E E a Internal relays or latch relays can be used for data ranges not used by the MELSECNET H network system e Range where no link relay latch occurs Internal relay e Range where link relay latch occurs Latch relay b There are no restrictions regarding the number of contacts N O contacts N C contacts used in the program No restrictions regarding the quantity used Ve BO swit
34. 1 Main routine program 1 Definition of main routine program a A main routine program is a program which begins from step 0 and ends at the END FEND instruction 1 b The main routine program execution begins from step 0 and ends at the END FEND instruction When the END FEND instruction is executed in the main routine program END processing is performed and operation is then restarted from step 0 Step 0 k Program execution Main routine program a Returns to step 0 END FEND END FEND END processing 2 Execution of main routine program The main routine program is executed every scan x1 For details regarding the END FEND instruction refer to the QCPU Q mode QnACPU Programming Manual Common Instructions 4 SEQUENCE PROGRAM CONFIGURATION amp EXECUTION CONDITIONS MELSEC Q 4 1 2 Sub routine programs 1 Definition of sub routine program a Asub routine program is a program which begins from a pointer P _ and ends at a RET instruction b Asub routine program is executed only when called by a CALL instruction e g CALL P FCALL P from the main routine program c Sub routine program application 1 The overall step count can be reduced by using a sub routine program as a program which is executed several times in one scan 2 The step count of a constantly executed program can be reduced by using a sub routine program as a program which is executed only when a given condi
35. 100 us units 7 100 Bs units R Range of 000 to 900 e Stores execution time for scan execution type program during 1 scan in 1 ms Scan program execution time unis i f e Range from 0 to 65535 in 1 ms units Scan program e Stores each scan S Every END execution time e Stores execution time for scan execution type program during 1 scan in 100 us processing Scan program z execution time units in 100 us units e Range of 000 to 900 HS e Stores each scan App 14 App 14 APPENDICES MELSEC Q 5 Memory card Explanation Set by When set e Indicates memory card B models installed B15 B8 B7 B4 B3 Bo 4 Memory card B Memory card B Drives Or Asant 7 Standard RAM 1 Present S Initial models Fixed at 3 Drive 4 eae Standard ROM because of built in naar nee standard ROM Drive 4 is fixed to 3 because it has built in flash ROM Drive 3 e Drive 3 capacity is stored in 1kbyte units ae RAM D Initial Hn TERAM Drive 4 capacity Fixed to 61 because it has 61kbyte RAM built in Sinita Drive 4 Standard ROM Drive 4 capacity e Drive 4 capacity is stored in 1kbyte units S Initial capacity e Drive 3 use conditions are stored in bit pattern n n n n g g g g O OQ OQ OQ A N N N A wo N B15 B4 Bo Drive 3 use Pa 0 0 ojojojojo i Drive 3 use conditions na S Status change condition
36. 1ms 100 speed ress nist Number of empty slots f16 w Points RUN PAUSE contacts System interrupt settings Output mode setting PUNIS area Interrupt counter start No 0 768 PAUSE x lt 0 lt 1 FFF 128 fixed at stop to RUN scan interval 100 0 ms 0 5ms 1000ms Remote reset 129 fixed I Allow scan interval 40 0 ms 0 5ms 1000ms 130 fixed ae mode at STOP to RUN Rte aA 20 0 ms 0 5ms 1000ms Previous state 131 fixed 100 Recalculate output is 1 scan later scan interval ms 0 5ms 1000ms Floating point arithmetic processing Interrupt program Fixed scan program setting Perform internal arithmetic operations in double precision Intelligent functional module setting Unit synchronization IV Synchronize intelligent module s pulse up Interrupt pointer settings Compatibility with 4 PLC MV Use special relay special register from SM SD1000 T High speed execution Acknowledge XY assignment Default Check End setup Cancel 3 Precaution If an output Y is forcefully turned ON with the Basic model QCPU in the STOP status it will not remain in the ON status even if the STOP status is switched to the RUN status The output status is effected as set in the PLC System setting of the output mode at STOP to RUN 7 FUNCTION MELSEC Q 7 5 Clock Function 1 What is Clock Function a The Basic model QCPU has a clock function in the CPU module Because the time data from the clock function can be
37. 92 48 QOiCPU ee ae O Example When the number of automatic refresh points is 4 for the analog digital converter module Q64AD when installed on the main base unit of Q01CPU 0 249 ms 0 085 0 041 X 4 5 Execution times of various functions processed at END a Calendar update processing time 1 Time to write the clock data stored in SD210 to SD213 to the clock element at END processing when a clock data set request is given SM210 turns from OFF to ON 2 Time to read the clock data to SD210 to SD213 at END processing when a clock data read request is given SM213 turns ON END Processing Time ms CPU Type At clock data set request At clock data read request qooucpu 0 04 QOO0CPU 0 03 QO1CPU b Error cancel processing Time to cancel the continuation error stored in SD50 on the leading edge of SM50 error cancel when it turns from OFF to ON CPU Type f QOOCPU 0 14 Q01CPU 0 08 QOOJCPU 11 4 11 4 11 PROCESSING TIMES OF THE BASIC MODEL QCPU MELSEC Q 6 Service processing time a Monitoring using GX Developer Processing time unit ms for monitoring using GX Developer Added when monitoring is performed on GX Developer When Connected to RS 232 of Host CPU When Connected to Other Station x4 Function Module Device monitor x2 12 10 o9 24 20 f 19 x1 Time taken to read an 8k step program from program memory x2 Time taken when 32 points have been set in re
38. A H Buffer memory address 1 O number X Y20 2 Difference from the FROM TO instruction The intelligent function module device can be handled as a device of Basic model QCPU enabling the processing of data read from the intelligent function module with one instruction For example programming can be performed as show below when the result of adding the data imported from the intelligent function module and the data of DO is stored into D2 1 U2 GO DO D2 H This saves the number of steps in the entire program The processing speed is the total of the instruction execution time and the access time to from the intelligent function modules When reading and processing the data of the intelligent function module frequently in the program use the FROM instruction to read the data at one point in the program and store and process it in a data register instead of using the intelligent function module device every time Otherwise the intelligent function module device accesses the intelligent function module every time the instruction is executed resulting in longer scan time for the program For the intelligent function module device refer to Section 10 5 8 COMMUNICATION WITH INTELLIGENT FUNCTION MODULE MELSEC Q 8 4 Communication Using The Instructions Dedicated for Intelligent Function Modules 1 Description of the instructions dedicated for intelligent function modules a Basic model QCPU The instructions
39. Ethernet and CC Link for MELSECNET H Ethernet and CC Link MELSECNET Ethernet setting Set the MELSECNET and Ethernet network parameters CC Link setting Set the CC Link lSettheCC Linkparameters 2 Intelligent function module Make the initial and automatic refresh settings of the intelligent function module set Write during RUN setting arameters on GX Configurator 9 PARAMETER LIST MELSEC Q Default Value Setting Range Reference Section 9 6 kbps 19 2 kbps 38 4 kbps 57 6 kbps 115 2 kbps No Yes es ce Section 7 17 No wait 10ms to 150ms 10ms increments See the Q compatible MELSECNET H and Ethernet No setting anliale No setting Refer to the CC Link Manual No setting Refer to the manual of the intelligent function module used 10 10 DEVICES MELSEC Q 10 DEVICES This chapter describes all devices that can be used in Basic model QCPU 10 1 Device List The names and data ranges of devices which can be used in Basic model QCPU are shown in Table 10 1 below Table 10 1 Device List Default Values Parameter Class Type Device Name Designated Reference ua Number of Points Range Used J Section Setting Range 2048 points XO to X7FF Section 10 2 1 3 2048 points YO to Y7FF Section 10 2 2 Internal relay 8192 points MO to M8191 Section 10 2 3 Latch relay 2048 points LO to L2047 Section 10 2 4 Bit devices Section 10 2 5 Section 10 2 6 2048 points Section 10 2 9 Section 10 2 8 Sect
40. File registers can be deleted by performing online PLC data deletion 10 43 10 43 10 DEVICES MELSEC Q 10 8 Nesting N 1 Definition Nesting devices are used to nest MC or MCR master control instructions when programming operating conditions 2 Designation method with master control The master control instructions are used to open and close the ladders common bus so that switching of ladders may be executed efficiently by the sequence program Nesting devices must be numbered in descending order from NO to N7 of nested relation For details on how to use master control refer to the QOPU Q mode QnACPU Programming Manual Common Instructions Designated in ascending No order gt Executed when condition A is satisfied gt Executed when conditions A and B are satisfied NO nesting control range N1 nesting control range N2 nesting control range Designated in descending No order gt Executed when condition A B and C are satisfied MC2 to 7 are reset gt Executed when conditions A and B are satisfied MC1 to 7 are reset gt Executed when condition A is satisfied MCO to 7 are reset gt Executed regardless of A B C condition statuses 10 44 10 44 10 DEVICES MELSEC Q 10 9 Pointers 1 Definition Pointer devices are used in jump instr
41. GX Developer at a local station set the length of CC Link s CPU monitoring time SWOA to 180 seconds or longer 6 FILES HANDLED BY BASIC MODEL QCPU 6 5 About the Standard RAM MELSEC Q 1 What is the standard RAM a b d The standard RAM is used when using file registers The standard RAM data are backed up by the battery Q6BAT fitted to the CPU module Even if ROM operation is to be performed with a program written to the standard ROM the battery is needed when the standard RAM is used by the file registers Be sure to format the program memory by GX Developer before using Basic model QCPU However Basic model QCPU automatically formats at the time of PLC power off or reset if it is in the initial state or the battey runs out to cause unstable memory Refer to the GX Developer manual for formatting by GX Developer Data can be written onto the standard RAM by using the online function Write to PLC 2 Stored Data A standard RAM holds one file file register file Any other files cannot be written onto a standard RAM 6 FILES HANDLED BY BASIC MODEL QCPU MELSEC Q 6 6 Program File Configuration 1 Program File Configuration a Program files consist of a file header and an execution program File header 34 steps by default Areas are reserved in units of 4 bytes Execution program A b As shown below the size of a program stored in the Basic model QCPU inc
42. MC protocol 1 by connecting the RS 232 interface of the CPU module and personal computer display device or the like by an RS 232 cable The serial communication function is not used for connection of GX Developer or GX Configurator and the CPU module Communication using the serial communication function can be made by the QOOCPU or QO1CPU The QOOJCPU does not have the serial communication function The following explains the specifications functions and various settings needed to make communication with a personal computer display device or the like using the serial communication function RS 232 cable Personal computer display device L Communication in MC protocol 1 The MC protocol is the abbreviation of the MELSEC communication protocol The MELSEC communication protocol is a name of the communication method to access from the mating equipment to the QCPU in accordance with the communication procedure of the Q series PLC e g serial communication module Ethernet interface module Serial communication function enables the communication of data in ASCII format and Binary format The CPU that can make communication with a personal computer Display device or the like using the serial communication function is only the QO0OCPU Q01CPU that is connected with the personal computer Display device or like Communication cannot be made with the other station of MELSECNET H Ethernet or CC Link via the Q
43. MO ON can only be used for internal Basic model QCPU processing and cannot be output Mo K20 externally TO Y20 MO ON OFF information is output from the output module ye to an external destination X1 MO A M100 lt M2047 Figure 10 5 Internal Relay 2 Procedure for external outputs Outputs Y are used to output sequence program operation results to an external destination 1 Latch relays L should be used when a latch memory backup is required See Section 10 2 4 for details regarding latch relays 10 10 10 10 10 DEVICES MELSEC Q 10 2 4 Latch relays L 1 Definition a Latch relays are auxiliary relays which can be latched by the programmable controller s internal latch memory backup Latch relay operation results ON OFF information are saved even in the following cases e When power is switched from OFF to ON e When a Basic model QCPU reset occurs The latch is backed up by the Basic model QCPU battery b Performing remote latch clear using GX Developer turns OFF the latch relay However the latch relay that has been set to Latch 2 Cannot be cleared by latch clear in the device setting PLC parameters cannot be turned OFF if remote latch clear is performed c There are no restrictions regarding the number of contacts N O contacts N C contacts used in the program No restrictions regarding the quantity used LO switches ON at X0 OFF to ON The latch relay LO ON
44. N 2 output Y Network module e Input refresh Input information is read in a batch 1 from the input module at END processing and is stored in the input X device memory by an OR operation in the peripheral device input area e Output refresh Data in the output Y device memory is output in a batch 2 to the output module at END processing e When an input contact instruction has been executed Input information is read 3 from the input X device memory and a sequence program is executed When an output contact instruction has been executed Output information is read 4 from the output Y device memory and a sequence program is executed e When an output OUT instruction has been executed The sequence program operation result 5 is stored in the output Y device memory Fig 4 7 Input Output Information Flow at Refresh Mode 4 SEQUENCE PROGRAM CONFIGURATION amp EXECUTION CONDITIONS MELSEC Q 1 The GX Developer input area can be switched ON and OFF by the following e Test operation by the GX Developer e A network refresh by the MELSECNET H network system e Writhing from a serial communication module e CC Link automatic refresh 2 The output Y device memory can be switched ON and OFF by the following e Test operation by the GX Developer e A network refresh by the MELSECNET H network system e Writhing from a serial communication module e CC Link automatic refresh x3 The remote input outp
45. O number following the 3rd slot will be assigned If the start X and Y are not input the PLC assigns them automatically It is not possible to check correctly when there is a slot of the unsetting on the way Standard setting Base mode Auto C Detail 8 fixation XI 12 fixation settings should be set as same when Read PLC data using multiple PLC Base model name Power model name Extemsion cable Acknowledge XY assignment Default Check End Cancel c I O number assignment after the I O assignment with GX Developer Q38B 0 1 2 3 4 5 6 7 0 v2 2 2 2 2 2 2 21 5 3 8 38 8 8 18 31 38 fo O O fo O fe fe fe e Q E E E E E E 3 E O 5 5 5 5 5 5 5 Q a a a a a a Q Q Q 5 5 5 5 a J l fe z 32 32 32 32 32 32 32 32 a points points points points points points points points X00 X20 X40 X200 Y70 Y90 YBO YDO X1F X3F X5F X21F Y8F YAF YCF YEF Q68B 8 9 10 11 12 13 14 15 2 2 2 2 eoj gt 2 2 2 3 les esl e8 23 2 83133 AE EEEIEE IE gt cj c c c 5 5 5 es gs gs gs alal lt le Q ae C og 93 oye r eo z 32 32 32 32 16 32 32 32 9 QO points points points points points points points points FO 110 130 150 170 mer Ru Ea 10F 12F 14F 16F 17F Y19F Y1BF Y1DF 5 8 Checking the I O Numbers System m
46. OFF of the anunciator No by the same instruction However if an anunciator is switched OFF by the OUT F instruction the processing at anunciator OFF item b below does not occur Execute the RST Fc or BKRST instructions after the anunciator has been switched OFF by the OUT F instruction 1 To switch OFF only the anunciators stored at SD62 and SD64 Fault detection program ___ Annunciator ON program _ Display reset input MOV SD63 ZH SD62 and SD64 annuciators OFF RST Foz program To switch OFF all anunciators which are ON Fault detection program ___ Annunciator ON program _ Display reset input BKRSTP FO K10H FO to F9 OFF program REMARK For details regarding the RST and BKRST instruction refer to the QCPU Q mode QnACPU Programming Manual Common Instructions 10 14 10 14 10 DEVICES MELSEC Q b Processing at anunciator OFF 1 Special register SD62 to SD79 data operation when an anunciator is switched OFF by the RST F instruction e The anunciator No which was switched OFF is deleted and all subsequent anunciator Nos are moved up to fill the vacant space e If the anunciator No stored at SD64 was switched OFF the new anunciator No which is stored at SD64 is stored at SD62 e 1 is subtracted from the SD63 value e If the SD63 value is 0 SM62 is switched OFF SETF50 SETF25 SETF1023 RST F50 PO TALK OR OR OR SD62 0 g
47. Overhead time at the end of interrupt program B2 CPU Type Without rapid start With rapid start QOOJCPU 150 QoocPU QO1CPU 4 Module refresh time a Refresh of MELSECNET H Refresh time between the Basic model QCPU and MELSECNET H network module Refer to the following manual for the refresh time of the MELSECNET H Q Corresponding MELSECNET H Network System Reference Manual b Automatic refresh of CC Link Refresh time between the Basic model QCPU and CC Link master local module Refer to the following manual for the automatic refresh time of CC Link e Control amp Communication Link System Master Local Module User s Manual c Intelligent utility package Intelligent automatic refresh 1 Refresh time between the intelligent function module and CPU module which is designated on Auto refresh setting screen of the utility package for the intelligent function module 2 Calculate the intelligent automatic refresh time with the following expression Refresh time KN1 KN2 X number of refresh points 11 3 11 3 11 PROCESSING TIMES OF THE BASIC MODEL QCPU MELSEC Q 3 As KN1 and KN2 use the values in the following table When the intelligent module is installed on the main base unit CPU Type KN1 x 10 ms KN2 x 10 ms QOOJCPU Er 5 O QOOcPU ee ee QO1CPU a ee ee ee When the intelligent module is installed on the expansion base unit CPU Type KN1 x 10 ms KN2 x 10ms QO0JCPU QOOCPU
48. Seconds 0 to 59 e The common information category codes store the following codes No error Unit module No PLC No Base No File name Drive name Time value set Program error location Error information Error information categories category code e The individual information category codes store the following codes 0 No error 1 Open 2 File name Drive name 3 Time value actually measured 4 Program error location 5 Parameter number 6 Annunciator number App 6 App 6 APPENDICES MELSEC Q Special Register List Continued e Common information corresponding to the error codes SDO is stored here e The following four types of information are stored here Slot No Number Meaning SD5 Slot No Base No SD6 VO No Not used for base No SD7 SD8 SD9 SD10 SD11 SD12 SD13 SD14 SD15 When OFFFF is stored in SD6 I O No the I O No may not be identified due to I O No overlapping or like in the I O assignment parameter Use SD5 to identify the error location File name Drive name Example Number Meaning MAIN OPG SD5 Drive B15 to B8 B7 to BO SD6 41H A 4DH M SD7 File name 4EH N 49H 1 ASCII code 8 characters 20H SP 20H SP 20H SP 20H SP Extension 1 2EH 51H Q 2EH ASCII code 3 characters 47H G 50H P n is oO Error common Err
49. Switch on the power to the PLC again Perform the following operations in order to illuminate the RUN LED after parameter writing e Reset the system with the RUN STOP RESET switch e Switch on the power to the PLC again When the RUN STOP RESET switch has been set to RUN STOP RUN after the parameters have been amended the parameters related to intelligent function modules and other network parameters will not be reflected back Indicates Basic model QCPU error detection status On When a self diagnosis error that does not stop the operation is detected Set the operation error ERR set mode to continue in the parameter mode PLC RAS setting f Off Normal Flicker When an error that stops the operation is detected When the CPU is reset with the RUN STOP RESET switch Goes off on completion of reset Indicates the 5VDC output status of the power supply built in the QOOJCPU On Normal output of 5VDC Off PLC power off or 5VDC output error 7 FUNCTION MELSEC Q 2 How to turn off the ERR LED To turn off the ERR LED that is on remove the cause of the error and then operate the special relay SM50 and special register SD50 to cancel the error This does not apply to reset operation Refer to Section 7 12 2 for canceling the error 7 FUNCTION MELSEC Q 7 17 Serial Communication Function Usable with the QOOCPU or Q01CPU The serial communication function is designed to make communication in the
50. a 10 input becomes X10 2 Direct access inputs are ON OFF data read from the input module using the direct mode 2 CPU module Input module Input refresh area Acquisition of ON OFF data DX104 These inputs are indicated as DX in the sequence program For example a 10 input becomes DX10 Direct access input can be made in a LD AND OR instruction that uses an input in units of 1 point b Differences between refresh input and direct access input Since the direct access input accesses the input module directly at instruction execution it imports an input faster than the refresh input However the direct access input takes longer instruction processing time than the refresh input Moreover direct access inputs can only be used for inputs used with the input module and intelligent special function module which are installed at main and extension base unit The refresh and direct input differences are shown in Table 10 2 below Table 10 2 Differences Between Refresh Refresh Input Direct Access Inputs Input module installed at base extension base unit Inputs of intelligent function module installed at base extension base unit Usable Usable Inputs of I O link module installed at base extension base unit Inputs used at MELSECNET H network REMARK 1 See Section 4 7 1 for details regarding the refresh mode 10 6 10 6 10 DEVICES MELSEC Q c The same input number can be de
51. a device for a high speed retentive timer 1 Definition a Low speed timers are those that are only operative while the coil is ON b The time measurement begins when the timer s coil switches ON and the contact switches ON when a time out occurs When the timer s coil switches OFF the present value becomes 0 and the contact switches OFF Ladder example mek XO K10 When X0 switches ON the TO coil switches ON and the To contact switches ON 1 second later The low speed timer measures time in 100 ms units Time chart ON X0 OFF h ON TO coil TO contact 2 Measurement units a The default time measurement units setting for low speed timers is 100 ms b The time measurement units setting can be designated in 1 ms units within a 1 ms to 1000 ms range This setting is designated in the PLC system settings in the PLC parameter setting 10 19 10 19 10 DEVICES MELSEC Q High speed timers 1 Definition a High speed timers are timers which are only operative while the coil is ON A high speed timer is marked with a symbol H b The time measurement begins when the timer s coil switches ON and the contact switches ON when the time elapses When the timer s coil switches OFF the present value becomes 0 and the contact switches OFF addsr example High speed timer display XO H a When X0 switches ON the T200 coil switches ON and T200 the contact switches ON 2
52. clock Repeatedly changes between ON and OFF at each designated time interval SM411 0 2 second clock e When power supply is turned OFF or reset is performed goes from 05 sec OFF to start S Status change SM412 1 second clock x Note that the ON OFF status changes when the a designated time has elapsed during the execution of nsec Goes between ON and OFF in accordance with the number of h SM414 2n second clock seconds designated by SD414 S Status change SM420 User timing clock No 0 SM421 Vsertming elack Relay repeats ON OFF switching at fixed scan intervals No 1 g When power supply is turned ON or reset is performed goes from gm422 User timing clock OFF to start S No 2 The ON OFF intervals are set with the DUTY instruction Every END processing DUTY n1 n2 SM420H User timing clock smog App 3 App 3 APPENDICES MELSEC Q Special Relay List 4 Memory cards Set by When Set Memory card B OFF Unusable usable flags ON Use enabled palwaye ON inital SM620 Memory card B OFF No protect y ai SM621 protect flag ON Protect Always ON S Initial OFF No drive 3 eis SM622 Drive 3 flag ON Drive 3 present Always ON S Initial k OFF No drive 4 ae SM623 Drive 4 flag ON Drive 4 present Always ON S Initial SM640 File register use OFF File register not in use Goes ON when file register is in use QOOCPU
53. device eesecteeceseeteseseeeeteseseeteteseaeeeeeeeeaeeteeeeeeeaeeteees 8 4 8 4 Communication using the instructions dedicated for intelligent function modules ceeeeeeeeeeeteeeteees 8 5 8 5 Communication using FROM TO instruction ccccsesecesesseseceseseseseeeeeseaeenseeseaeeeseeseseseeneeasatenseeesaeeneneeeeeaeeneees 8 6 9 PARAMETER LIST 9 1to9 8 10 DEVICES 10 1 to 10 50 101 Device Listas sete zie ate cdi e a a EE a E a E a E 10 1 toa mema Usor DOViCes uron a E E EE e EO 10 3 TOZ UOUE A i E S 10 5 10 22 QUIDUTISH Y e r a a n eE eA eine ante erate 10 8 10 23 Internal relays M Sir innr taata AeL EAEk LEARAAR ERE CLERA EARTE A AEri EFAA eSATA S LEIFR RARER 10 10 10 2 4 Laich relays Le otc wok nt ae a eee 10 11 1 0 2 5 sANUNCIAtOrS FR ssh aee a eden i etn idee ita ab eee ated RITE 10 12 10 2 6 Edge raay NV a A AA A A inhi dustin vida dai devi dea 10 16 10 2 7 Link relays B EN den swesk E O A A vee sh anton A E 10 17 10 2 8 Special link relays SB initiis aiii ineine anpa ataa aiaiai aaa aaia 10 18 10 2 9 Step relays Sjiieten a a eee tates eg AN 10 18 10210 Timers T oaa a A a sone sa oe sonia a TAAT AEEA TE 10 19 10 211 Counters C aea ae avd dl di es ie A a eae 10 24 10 2 12 Data regits D ira e ateh tien cat ahah tien siete ben eta ce 10 28 10 22 13 Link registers WW eiaa aA ib niethni AAAA 10 29 10 2 14 Special link registers SW ccccecessseseecseseeseeeeeeeeeaecseeses
54. ea anat aana ta ta aa atleast a eel al dh al achat lat adhe hn ah 7 1 2 GONSTANLOCAN Siti hete aa tite ida th dich E E E 7 2 7 3 Lateh FUNCIONS enserir eiria i iA EE E cc ea dh EEN AEA A AEA 7 5 7 4 Setting the Output Y Status when Changing from STOP Status to RUN Status ccceeeeseeeeeeeeteees 7 7 T O Glock FUNGON tise vette Teast tenet ou a nn ain ell a iaeia di 7 9 7 6 Remote Operati N isie a aaee aaae ed Mae alata tgs 7 12 Bal Remote RUNS TOP ariii a a aa aa a aaa esas Me tt ees eee tA eee bale 7 12 76 2 Remote PAUSE sss scesszserenecittcstoslececesetscecazetacnetactinecapetantecnzegsant cana iaesacagtaaaritedacaaeseiata pans E 7 15 7 6 3Remote RESE Pama vans ada ihG wi daednh a aa a a toda aa e aan wide nak ei dees 7 17 7 6 4 Remote Latch Clear s sicagscct desi na ie eeeaess Wotan adie cde ada ee aaa a aa aaie ae 7 19 7 6 5 Relationship of the remote operation and Basic model QOPU RUN STOP switch cc 7 20 7 7 Selection of Input Response Time of the Q Series Compatible Input Module and Interrupt Module I O Response Tims ceca tho sh he i i a a ide 7 21 7 7 1 Selection of input response time of the input module ececeeeeeeeeeeeeeeeeeeeeeeeeeeeeaeeaeeeeeeaeeaeeaeeeeeeaes 7 21 7 7 2 Selection of input response time of the high speed input MOUIE ceeeeeeeeeeeeeeeteeeeeeeeeeees 7 22 7 7 3 Selection of input response time of the interrupt MOCUIE cccceceeeeeeeeeeeeeeeeeeeeeeeaeeaesaeeeeeeaeeaes
55. for a 5 slot base unit and 12 slots are assigned for a 12 slot base unit b In Detail mode the number of slots is determined as the one designated by I O assignment of PLC Parameter 2 Order of I O number assignment The I O numbers are assigned to the modules from left to right consecutively starting from OH assigned to the module on the right of the Basic model QCPU in the main base unit 3 Order of I O number assignment for extension base units The I O numbers for extension base units are assigned continuing from the last number of the I O number of the main base unit The I O numbers for extension base units are assigned to the units from left silk screened I O 0 of extension base unit to right consecutively in the order of the setting of the stage setting connectors of the extension base units 4 1 0 numbers of each slot Each slot of base units occupies the points of I O numbers of the installed I O modules or intelligent function modules When 32 point input module is installed on the right of Basic model QCPU X0 to X1F are assigned as I O numbers 5 I O numbers of empty slots If the base unit has vacant slots where no I O modules or no intelligent function modules are installed the points designated by PLC system setting of PLC Parameter are assigned to the empty slots Default value is 16 points When the assignment of base units is conducted in Auto mode the number of empty extension stages is not assured even
56. function a When using the serial communication function to make communication with the personal computer Display device or the like specify Use serial communication b The default values of the transmission speed sum check transmission wait time and write during RUN setting are displayed You can change the transmission speed sum check transmission wait time and write during RUN setting according to the specifications of the external device Qn H Parameter Click here to use the serial PLE name PLC system PLC file PLCRAS Device communication function E 70 assignment I Use serial communication ra Baud rate fsx z Selecting Use serial K communication allows lt Transmission weight time you to change the settings RUN write setting r Data format value is fixed as below Start bit 1 Parity bit Odd Data bit 8 Stop bit 1 Acknowledge XY assignment Defaut End Cancel 5 Instructions a Connection can be switched to GX Developer during communication with the personal computer Display device or the like using the serial communication function However the personal computer Display device or the like that was making communication using the serial communication function results in a communication error Refer to the manual of the used device for the way to start the personal computer Display device or the like when the CPU module is reconnected with the
57. if the extension stage is skipped at the stage number setting connector of the base unit Smaller input output numbers are assigned first To reverse empty extension stages for future extension use the PLC parameter to set the base unit 5 ASSIGNMENT OF I O NUMBERS MELSEC Q The following shows the example of the I O number assignment when the base unit is set in Auto mode without I O assignment Q35B 5 slots occupied 0 2 3 qee Slot No gt 2 2 2 2 2 5 a 5 5 5 5 3 3 o 1s8 8 8 8 8 E S EJEJEJEJ E gt So 5 5 5 5 3 Allocate the I O number with 2 5 5 2 the I O points of each slot g 16 16 32 16 64 points points points points points De peee I O numbering direction X00 X10 X20 Y40 Y50 S C S The slot numbers of the 1st stage s extension XOF X1F X3F Y4E Yap _ base unit continue from the last slot number Extension gt Q65B 5 slots occupied of the main base unit cable Pa 6 7 8 9 2 2 2 o 2 gt 3 le3 e3 23 2 2 fe sello fe AT E E y a l 2 c 5 __ Empty slot points designated on the PLC system amp E E s S Setting screen under the parameter mode are oo a 5 5 5 0 allocated Default 16 points oo z 32 32 32 16 16 points points points points points gt 90 BO i YFO 100 The slot numbers of the 2
58. in bits 1401 gt BIN 7168 points Batch write 1 Mites to bit devices by 16 points 480 words 7680 points in words 1401 Writes to word devices by 1 point 480 words Reads bit devices pola e A 16 points or 32 points by pola e A the devices at random f Random read in words 0403 00L10 96 points Reads word devices by 1 point or 2 points by designating the devices at random 1402 ac esat bit devices by 1 point by designating in mois 1402 1402 0000 94 eapon the devices at random Test 1 Sets resets bit devices by 16 points or 32 points Random write by designating the units at random in words 1402 00L_ 0 y g g Writes to word devices ee ee 1 point or 2 points by ee ee the devices at random Foe eet the bit devices to be monitored by 16 Monit ts or Ena eae ints i Gepos onitor oin or in words 0801 00 _ 0 p registration De ian uagiaclal the word devices to be monitored by 1 f 96 points point or ee ee en points 0802 coc Montos the devices registered for monitoring Number of points Monitor 0802 0802 oo registered for monitor 1 When performing write during RUN of the CPU module set write during RUN setting to Enable 2 Set the number of processing points within the range of the following expression Number of word access points x 12 number of double word access points x 14 lt 960 e One point of a bit device corresponds to 16 bits for word access or to 32 bits for double
59. in the sequence program and the higher 16 bits of data are stored in the designated register No 1 Dn 1 For example if register D12 is designated in the DMOV instruction the lower 16 bits are stored in D12 and the upper 16 bits are stored in D13 H _ pov ks00000 oa Processing object D12 D13 D13 D12 Upper 16 bits Lower 16 bits Ha Je Two data registers can store a range of numeric data from 2147483648 to 2147483647 or from OH to FFFFFFFFn d Data stored by the sequence program is maintained until another data save operation occurs 10 28 10 28 10 DEVICES MELSEC Q 10 2 13 Link registers W 1 Definition a A link register is the Basic model QCPU memory used to refresh the Basic model QCPU with data from the link registers LW of intelligent function modules including MELSECNET H network module Link registers are used to store numeric data 32768 to 32767 or O000H to FFFFn Basic model QCPU Link register W MELSECNET H network module Link register LWO Link refresh linkrefresh_ setting range When used outside the MELSECNET H network system s range link registers can serve as data registers b Link registers consist of 16 bits per point with reading and writing executed in 16 bit modules b15 z bo Wale ae ea ee ee c Ifthe link registers are used for 32 bit instructions the data is stored in regis
60. interrupt program index register data will not be saved restored b If data is written onto index registers by using an interrupt program the values of index registers used for an main routine sub routine program will be corrupted Main routine Switch Main routine sub routine ing Reset sub routine l Executed program l program Interrupt program program Transf Transf Index register value i zo 1 ered gt 79 1 to Z0 3 emed gt 79 3 Index register storage area Z0 0 Z0 0 Z0 0 Z0 0 Z0 0 x For interrupt program Z0 is changed to 3 c Before writing data onto index registers by using an interrupt program use the ZPUSH ZPOP instruction to save restore the data SM400 F lo H ZPUSH DOH The points after DO store the data Z0 to Z9 sii POP DOL The data after DO is stored z in points ZO to Z9 IRET 10 41 10 41 10 DEVICES MELSEC Q 10 7 File Registers R 1 Definition a File registers are expansion devices for data registers b File register data is stored in files in the CPU standard RAM 1 The standard RAM has 32k points assigned for file registers File registers can be used at the same processing speed as data registers vov so ri Standard RAM _ File register RO i I R1 100 is written to R2 LR2 w c File registers consist of 16 bits per point with reading and writing occurring
61. located for Y umber of points Device e Stores the number of points currently set for L devices located for L S Initial v zl zo zo g zZz umber of points x F P Stores the number of points currently set for M devices located for M allocation umber of points Same as P Stores the number of points currently set for B devices located for B parameter Barer coin umber of points x A contents p Stores the number of points currently set for F devices ocated for F umber of points 5 P Stores the number of points currently set for SB devices located for SB umber of points p Stores the number of points currently set for V devices located for V umber of points e 4 Stores the number of points currently set for S devices located for S 29 zZzj amp z g zZ g zZ App 12 App 12 APPENDICES MELSEC Q Special Register List Continued Number of points A Device p e Stores the number of points currently set for T device f allocated for T allocation Number of points Same as p e Stores the number of points currently set for ST devices S Initial allocated for ST eas Number of points u i contents p Stores the number of points currently set for C devices allocated for C Number of points y Device Stores the number of points currently set for D devices i allocated for D allocation Number of points Same as P Stores the number of points currently set for W devices S Initial al
62. model QCPU provides the RUN STOP RESET switches for switching between the STOP status and the RUN status The RUN STOP RESET switch also provides the Reset and Latch Clear functions The Basic model QCPU performs self control of the operation status from an external GX Developer function intelligent function module and remote contact source The following four options are available for remote operations e Remote RUN STOP e Remote PAUSE e Remote RESET e Remote LATCH CLEAR The serial communication module is used as the example to describe the intelligent function module 7 6 1 Remote RUN STOP 1 What is Remote RUN STOP a The remote RUN STOP performs RUN STOP of the Basic model QCPU from an external source with the Basic model QCPU RUN STOP RESET switch at RUN b Using remote RUN STOP for the following remote operations are useful 1 When the Basic model QCPU is at a position out of reach 2 When performing RUN STOP of the control board Basic model QCPU from an external source c Calculations during Remote RUN STOP The program calculation that performs remote RUN STOP is as follows 1 Remote STOP Executes the program to the END instruction and enters the STOP state 2 Remote RUN When remote RUN is performed while in the STOP state using remote STOP the state changes to RUN and executes the program from step 0 7 FUNCTION MELSEC Q 2 Remote RUN STOP Method There are two ways to perform remote RUN ST
63. module is directly accessed by executing an instruction and the processing speed is therefore slower than that for refresh outputs A refresh output takes longer to process instructions than a direct access output Moreover direct access outputs can only be used for outputs used with the output module and intelligent function module which are installed at base unit and extension base unit The refresh and direct output differences are shown in Table 10 3 below Table 10 3 Differences Between Refresh Outputs amp Direct Access Outputs Output module installed at main extension base unit PEENE i Outputs of intelligent function module eae meane installed at base extension base unit Outputs used at MELSECNET H network Usable Unusable system or CC Link system 1 See Section 4 7 1 for details regarding the refresh mode 10 9 10 9 10 DEVICES MELSEC Q 10 2 3 Internal relays M 1 Definition a Internal relays are auxiliary relays which cannot be latched by the programmable controller s internal latch memory backup All internal relays are switched OFF at the following times e When power is switched from OFF to ON e When reset occurs e When latch clear operation is executed b There are no restrictions regarding the number of contacts N O contacts N C contacts used in the program No restrictions regarding the quantity used MO switches ON at X0 OFF to ON xo VA SET MO The internal relay
64. ol B B Power supply module Input output module Intelligent function module Input output module Intelligent function module 2 SYSTEM CONFIGURATION MELSEC Q 2 Outline of system configuration Main base unit Q312B 0123 4 5 6 7 8 9 1011 Slot No 00 20 40 60 80 aof co Eo 100 120 140 160 STSYSPSFSES IS SSIS IS 3F 5F 7F 9F 13F Extension cable Power supply PX module Extension base uni Extension 1 1415 Power supply module System configuration Extension base unit Q65B 20 21 22 23 pply Power su module Loading will cause error The above system assumes that each slot is loading with a 32 point module Maximum number of 3 f Four Extension Stages Extension Stages Maximum number of input output modules to 24 modules be installed Maximum number of 1024 input output points Q33B Q35B Q38B Q312B Q52B Q55B Q63B Q65B Q68B Q612B Extension cable QCO5B QC06B QC12B QC30B QC50B QC100B 1 Do not use an extension cable longer than an overall extension length of 13 2m 43 31ft 2 When using an extension cable do not bind it together with the main circuit high voltage and heavy current line or do not lay down them closely to each other 3 When setting the No of t
65. output modules 16 points indicating 15 1413 12 11109 8 765 4 3 210 0130 9 9 ola 9 9 O Jody Of Of Of Of O O Oj o 0131 fro 0 2 0 O vtnf Of Of Of Of of of Oj oj oj o 0 No blown fuse hanan AANA AA Ot ee SD135 1 Blown fuse present SD137 olololo oe ololololololo oe 0 0 0 SD136 E Indicates a blown fuse e Not cleared even if the blown fuse is replaced with a new one SD137 This flag is cleared by error resetting operation SD156 When the power is turned on the module numbers of the I O modules whose information differs from the registered I O module information are set in this register in units of 16 points Bit pattern in units of If the O numbers are set by parameter the parameter set numbers are stored 16 points indicating Also detects I O module information the modules with 15 14 19 212 11 109 I O module verification errors SD150 0 ojojojojo verification error 0 No I O verification D151 o 1 errors 1 I O verification error SD157 ol olololololololololololo present 7 NN NON ON ON NN NNN 0 0 o0 o 0 o DA Indicates an I O module verification error e Not cleared even if the blown fuse is replaced with a new one This flag is cleared by error resetting operation App 10 App 10 APPENDICES MELSEC Q Special Register List 2 System information Expla
66. program 1 For details regarding the IMASK and EIl instructions refer to the QCPU Q mode QnACPU Programming Manual Common Instructions x2 See Section 10 10 for details regarding the priority ranking of interrupt programs x3 For assurance of station unit blocks in cyclic data see the MELECNET H Network System Reference Manual 4 SEQUENCE PROGRAM CONFIGURATION amp EXECUTION CONDITIONS MELSEC Q 5 Program creation restrictions a A device which is switched ON by a PLS instruction in an interrupt program will remain ON until the PLS instruction for the same device is executed again XO XO PLS PLS MO END 0 IO IRET END 0 END 0 IO IRET END 0 ON yore PE LE iON X A Switched OFF by PLS M0 instruction Switched ON by PLS M0 instruction at X0 leading edge OFF to ON b During execution of the interrupt program interrupts are disabled DI so that other interrupt processing is not performed Do not execute El DI instructions in the interrupt program c Timers cannot be used in interrupt programs As timers are used at OUT T instructions to update present values and switch contacts ON and OFF the use of a timer in the interrupt program would make a normal time count impossible d The following instructions cannot be used in interrupt programs COM e ZCOM e When the interrupt program is executed when measuring time such as the scan time or execution time the measured ti
67. program The scan time value is measured to the END instruction Internal processing time Sequence program Internal processing time A z END END Next scan time WDT reset Scan time WDT reset QCPU internal processing QCPU internal processing Watchdog timer measured time Fig 7 9 Watchdog Timer Reset Scan time is the time elapsed from the time the Basic model QCPU starts processing a sequence program at Step 0 until the it restarts processing another sequence program with the same filename at Step 0 The scan time is not the same at every scan and differs depending on e Whether the commands used are executed or not executed e Whether to execute or not an interrupt program Use the constant scan function to execute a program at the same scan time every scan Refer to section 7 2 for details of the constant scan function 7 FUNCTION MELSEC Q 7 12 Self Diagnosis Function 1 What is Self Diagnosis Function a The self diagnosis is a function performed by Basic model QCPU itself to diagnose whether there is an error in the Basic model QCPU b The self diagnosis function s objective is to prevent Basic model QCPU erroneous operation and as preventive maintenance The self diagnosis processing detects and displays the error when an error occurs when the Basic model QCPU power is turned on or during Basic model QCPU RUN mode It also stops Basic model QCPU calculations 2 Processing for Error Detectio
68. programs only This chapter describes the sequence program configuration and execution conditions 4 1 Sequence Program 1 Definition of sequence program a A sequence program is created using sequence instructions basic instructions and application instructions etc 7 Sequence instruction KO MO K100 lI al rm TO lt Y30 gt H 4 X1 Basic instruction HBn kaxi0 Do X41 Application instruction FROM H5 Ko DIO K H b There are 3 types of sequence program main routine programs sub routine programs and interrupt programs For details regarding these programs refer to the following sections of this manual e Main routine programs Section 4 1 1 e Sub routine programs Section 4 1 2 e Interrupt programs Section 4 1 3 MAIN Main routine program Sub routine program PO Interrupt program For details regarding the sequence instructions basic instructions and application instructions refer to the QCPU Q Mode QnACPU Programming Manual Common Instructions 4 SEQUENCE PROGRAM CONFIGURATION amp EXECUTION CONDITIONS MELSEC Q 2 Sequence program writing format Programming for sequence programs is possible using either ladder mode or list mode a Ladder mode The ladder mode is based on the relay control sequence ladder Programming expressions are similar to the relay control sequence ladder e Relay symbolic language
69. special register 512 points Jn SWO to Jn SW1FF A Un GO to f f Word device Buffer register 65536 points Un G65535 2 Impossible Section 10 5 dex Index Indexregster 10 soins 079 to Z9 Impossible Section 10 6 aooucru points File register Word device File register Q00CPU ae RO to R32767 Impossible Section 10 7 Q01CPU poins ZRO to ZR32767 Nesting Nesting 15 points NO to N14 Impossible Section 10 8 300 points PO to P299 l Section 10 9 Pointers F Impossible ae pt pointer ee points 10 to 1127 re 10 10 INetworkNo No 239 239 points J1 to J239 Section 10 11 3 10 11 3 OOJCPU Le 3 UF Other Qooucru 2 Impossible 1 0 No QOOCPU wee 10 3F Section 10 11 4 Q01CPU Decimal constants K 2147483648 to K2147483647 Section 10 12 1 Hexadecimal constants HO to HEFFFFFFFF Section 10 12 2 Character strin a A upan 9 ABC and 123 5 Section 10 12 4 constants 5 Character strings may be used with only the MOV instruction Character strings cannot be used with any other instructions REMARK x2 The actually usable points vary with the intelligent function module For the buffer memory points refer to the manual of the intelligent function module used 10 10 2 10 2 10 DEVICES MELSEC Q 10 2 Internal User Devices Internal user devices can be used for various user applications The number of usable points setting is designated in advance default value for internal user devices
70. switch settings and detailed settings are not transmitted to the target intelligent function module 9 PARAMETER LIST MELSEC Q MEMO 9 PARAMETER LIST MELSEC Q Table 9 1 Parameter List Designate the label and comment for the CPU module to be used PLC name settings i These settings do not affect CPU module operation Label Designates the label setting name and use Designates the comment setting i These are the settings required for using the CPU module PLC system settings Default values are available for PLC control Low Speed timer f Timer setting i Designates the low speed high speed timer settings High Speed timer Designates the contact which controls the CPU s module RUN PAUSE operation RUN PAUSE contact Setting of only the PAUSE contact cannot be made Setting of the RUN contact or RUN contact PAUSE contact can be made Enables disables the remote reset operation from the GX Developer STOP RUN output mode Designates the output Y mode at STOP RUN switching Number of vacant slot points Designates the number of vacant slot points in the base extension base midule Interrupt counter Designates the interrupt counter first No In Fixed cycle interval Specifies time intervals at which to execute interrupt pointers 128 to 131 n 28 to 31 Interrupt program fixed scan PrE 3 Specifies whether to perform the high speed execution of an interrupt program program setting 2 Specif
71. the Intelligent Function Module The switches of the intelligent function module is to set the switches of an QCPU compatible intelligent function module using GX Developer The settings of the switches set by GX Developer is written from Basic model QCPU to each intelligent function module at the leading edge or reset of Basic model QCPU Basic model Intelligent function QCPU GX Developer Power supply module p Parameter o eee On QCPU Switch setting of the Parameter module Reset Switch setting intelligent function module at the I O assignment 2 Setting the Switches of the Intelligent Function Module In the I O assignment sheet of the PLC Parameter dialog box specify the desired switch setting Select Intelli in the type column of a slot for which to set the switches of the intelligent function module in Quyi ing Select Intelli Select Switch Setting Qn H Parameter itch setting for 170 and intelligent functional module PLCname PLC system APLC PLERAS Device Boot fle SFC 0 t Input format AESA r170 Assignment Sot Type Modelname Switch 1 Switch 2 Switch 3 Switch 4 Switch 5 Ja Ti Model name Points Start Switch setting QO JPLC PL
72. the intelligent function module in question 10 38 10 38 10 DEVICES MELSEC Q 10 6 Index Registers Z 1 Definition a Index registers are used in the sequence program for indirect setting index qualification designations An index register point is used for index modification XO __ move ks Zo SM400 BCD DOZO K4Y30 Index registers consist of 16 bits per point b There are 10 index registers Z0 to Z9 c Index registers consist of 16 bits per point with reading and writing occurring in 16 bit modules d If the index registers are used for 32 bit instructions the data is stored in registers Zn and Zn 1 The lower 16 bits of data are stored in the index register No Zn designated in the sequence program and the upper 16 bits of data are stored in the designated index register No 1 For example if register Z2 is designated in the DMOV instruction the lower 16 bits are stored in Z2 and the upper 16 bits are stored at Z3 i i Do zH Processing object Z2 Z3 Z3 Z2 Upper 16 bits _Lower 16 bits it For index modification using the index register refer to the following manual QCPU Q mode QnACPU Programming Manual Common instructions 10 39 10 39 10 DEVICES MELSEC Q 10 6 1 Switching between main routine sub routine program and interrupt program The PLC System sheet of the PLC Parameter dialog box provides the option to save protect or r
73. used 5 ASSIGNMENT OF I O NUMBERS MELSEC Q Model name Designate the model name of the installed module with 16 or less characters Basic model QCPU does not use the designated model name It is used as a user s memo or for parameter printing Points Used with Basic model QCPU To change the number of I O points of each slot select it from the followings e 0 0 point e 128 128 points e 16 16 points e 256 256 points e 32 32 points e 512 512 points 48 48 points e 1024 1024 points e 64 64 points If the number of I O points is not designated for a slot the one of the actually installed module is used Setting is enabled for the Q00 Q01CPU only Since the number of I O points of the QOOJCPU is 256 you cannot set 512 1024 points Start XY Used with Basic model QCPU 1 When the I O number of each slot is changed you should designate the head I O number according to the change If Start XY is not designated for a slot the I O number continuing from the last number of the currently designated slot is assigned 2 Avoid the I O number designation of each slot from overlapping the I O numbers assigned by Basic model QCPU An error SP UNIT LAY ERR occurs when the I O numbers overlap 2 Slot status after I O assignment When the I O number is assigned to a slot the assigned I O number takes precedence regardless of the actual installation of a module
74. when the last O number exceeds FFH 3FFH System monitor of GX Developer shows x as an I O address 5 ASSIGNMENT OF I O NUMBERS MELSEC Q 5 7 Examples of I O Number Assignment This section shows the examples of the I O number assignment using GX Developer 1 When changing the number of points of an empty slot from 16 to 32 points Reserve 32 points to the slot position currently empty slot No 3 so that the input output numbers do not change when a 32 point input module is installed in the future The empty slot for slot No 12 is not changed from 16 points 1 a System configuration and I O number assignment before the I O assignment with GX Developer Q38B 0 1 2 3 4 5 6 7 2 2 2 2 gt 2 2 2 2 gt gt 2 3 5 mo me xo E ne ne ne mo O e O e e O e E E E E Ww E E E E 5 5 5 5 5 5 5 Q a a a jou Q Q om Q 5 5 5 5 a O O O O z 32 32 32 32 32 32 32 a points points points points points points points points X00 X20 X40 60 Y70 Y90 YBO YDO X1F X3F X5F 6F Y8F YAF YCF YEF Q68B wo A ol Intelligent function module Intelligent N function module Intelligent function module Intelligent function module Output module Output module oe N w N ee Po oe N 2 amp Output module a Power supply module points points poi
75. with GX Developer Q38B j 0 1 2 3 4 5 6 7 5 2 2 2 gt 2 2 2 2 5 oO 3 3 j aN pe mi 5 2 s o 8 8 8 5 8 8 8 8 E s E E E E E 3 gt O 5 5 5 5 5 5 5 2 E er g amp g Q j 5 2 a O O O O g 32 32 32 32 32 32 32 32 ne points points points points points points points points X00 X20 X40 60 Y80 YAO YCO YEO X1F X3F X5F 7F Y9F YBF YDF YFF Q68B 8 9 10 1i 12 13 14 15 2 2 2 2 Q2 gt 2 2 2 3 leslesles es 2 3 3138 E SE Be BE BE J EJE gt c c c c ao 2s 290 29 29 2 2 2 coll nox S 58 5 55 E3 SEI E oo eS 3 3 3 eo 3 32 32 32 32 16 32 32 32 e points points points points points points points points 100 120 k 160 180 Y190 Y1B0 Y1D0 11F 13F 15F 17F 18F Y1AF Y1CF Y1EF 5 ASSIGNMENT OF I O NUMBERS 2 Changing the I O number of slots Change the I O number of a currently vacant slot slot No 3 to X200 through X21F so that the I O numbers of slot No 4 and later slots do not change when a 32 point input module is installed to the currently vacant slot slot No 3 1 MELSEC Q a System configuration and I O number assignment before the I O assignment with GX Developer Q38B 0 1 2 3 4 5 6 7 2 2 2 gt 2 2 2 2 Ss 3 Qa i j je ne ne ne ne E ge ne mo ne fo fe fe fe uw fo e fe oO E E E E E E E E g
76. word access e One point of a word device corresponds to one word for word access or to two words for double word access D fe D amp Q 2 gt D Q 7 FUNCTION MELSEC Q 3 Accessible devices Device Number Class Device Device Code Range 1 Write Read Default Value Internal user device 000000 to 00000F 000000 to 000004 Special relay SM 000000 to 001023 D Special register 000000 to 001023 000000 to 00000F pe fe x x 000000 to 0007FF 000000 to 0007FF 000000 to 008191 Latch relay IL 000000 to 002047 Annunciator 000000 to 0007FF 000000 to 011135 Link register 000000 to 0007FF 000000 to 000511 000000 to 000511 w Direct input D D Indexregister k 000000 to 000009 E 000000 to 032767 S ZR 000000 to 007FFF Read write enabled x Write disabled Direct input Direct output 000000 to 0007FF ile register 1 The device number ranges given in the above table are default values When you have changed the number of device points on the QOOCPU or Q01CPU use the new device number range 2 Since Basic model QCPU is not compatible with the SFC function the contents of the step relays if read cannot be used as data 7 FUNCTION MELSEC Q 4 Setting of transmission specifications Use the serial communication setting PLC parameters to set the transmission speed sum check transmission wait time and write during RUN setting of the serial communication
77. 1111 1111 4 SEQUENCE PROGRAM CONFIGURATION amp EXECUTION CONDITIONS MELSEC Q 1 External numeric inputs to Basic model QCPU When designating numeric settings for the Basic model QCPU from an external source digital switch etc a BCD binary coded decimal setting can be designated which is the same as a decimal setting However because the Basic model QCPU operation is based on BIN if the Basic model QCPU uses values designated in the BCD method as they are it handles the values as BIN The Basic model QCPU operation based on such values will be different from the operation specified by the designated values A BIN instruction is therefore provided for the Basic model QCPU to convert BCD input data to the BIN data which is used by the Basic model QCPU A program which converts numeric data to BIN data can be created at the sequence program in order to allow numeric settings to be designated from an external source without regard to the corresponding BIN values Basic model QCPU Numeric data designation Digital switch BNP kaxo Do H Bien XFS BCD input BIN data BCD D5 K4Y30 Fig 4 10 Digital Switch Data Input to Basic model QCPU 2 External numeric outputs from Basic model QCPU A digital display can be used to display numeric data which is output from the Basic model QCPU However because the Basic model QCPU uses BIN data it cannot be displayed at the digital display as is
78. 4 When the RUN LED is flashing 11 2 5 Flowchart for when ERR LED is on flashing 11 2 6 Flowchart for when output module LED is not turned on 11 2 7 Flowchart for when output load of output module does not turn on 11 2 8 Flowchart for when unable to read a program 11 2 9 Flowchart for when unable to write a program 11 2 10 Flowchart for when program is rewritten 11 2 11 Flowchart for when UNIT VERIFY ERR occurs 11 2 12 Flowchart for wnen CONTROL BUS ERR occurs 11 3 Error Code List 11 3 1 Procedure for reading error codes 11 3 2 Error code list 11 4 Canceling of Errors 11 5 Input Output Module Troubleshooting 11 5 1 Input circuit troubleshooting 11 5 2 Output circuit troubleshooting 11 6 Special Relay List 11 7 Special Register List APPENDICES APPENDIX 1 Error Code Return to Origin During General Data Processing APPENDIX 1 1 Error code overall explanation APPENDIX 1 2 Description of the errors of the error codes 4000H to 4FFFH APPENDIX 2 External Dimensions Diagram APPENDIX 2 1 CPU module APPENDIX 2 2 Power supply module APPENDIX 2 3 Main base unit APPENDIX 2 4 Extension base unit INDEX About Manuals The following manuals are also related to this product In necessary order them by quoting the details in the tables below Related Manuals Manual Name Manual Number Model Code Basic Model QCPU Q Mode User s Manual Hardware Design Maintenance and Inspection SH 080187 This manual provides the specifica
79. 7 23 7 8 Setting the Switches of the Intelligent FUnction MOCUIE cccececeseeteseceseeeseceeeeseeeseeteeeaeaeeneeeeeaeeteeeeeaeateneets 7 24 7 9 Writing Data in the Ladder Mode during the RUN Status cccecsesssseeseseeeseseeeeeeseeeeeeeeaeaeeeeeeseaseneeeeeasaeeneens 7 25 7 10 Multiple User monitoring FUNCTION aaeeea aAa ai a E 7 27 TAT Watchdog Timer WDT earo ET E 7 28 72 Self Diagnosis FUNGON aa a la PEE Eaa e aaar aariaa Naan aA Aa Gano 7 30 7 12 1 LED display when error OCCUIS cecceeceeeceeeeeteeeteeeeeeeteceseeesaceeaeesaeeseeeseeeseeeseesaeeseeeseeeseaseateeeeeeaes 7 33 TO APRETI IEEE E E E hese ales eat aeons E E E E 7 33 Ae eaae e A AE A AT A A E E E E E E E ET 7 34 7NA SyVStEmM Protect testendi a ta t eieaa tA ah RR ea ea ae Ae lates 7 35 TAAT PASSWOMC FEGISTIATLIO NN asnicar a a a a de heeten 7 35 7 15 GX Developer system MONON eecesecseeceseeeseceseecseseeeeeseseseeescseseeeaescaeenseseaeeeeeeseaeaeensseesaeeteesesaeeteneeeasaeeneees 7 37 Teto LEBEDIEV AIr A EAE N EE ceed A AEE 7 39 7 17 Serial Communication Function Usable with the QOOCPU or QO1CPU ssssessssssssssssssersssrsssrssrrssrrssrrrssnnsss 7 41 8 1 Communication Between Basic model QCPU and Q series Intelligent Function Modules cee 8 1 8 2 Initial setting and automatic refresh setting using GX Configurator cecceseceseeteseceeseceseeseseseeeeesesteteeeseaeens 8 2 8 3 Communication using the intelligent function module
80. Basic Model QCPU Q Mode MITSUBISHI Function Explanation Program RE Mitsubishi Programmable Logic Controller MELSEG Q e SAFETY INSTRUCTIONS e Always read these instructions before using this equipment When using Mitsubishi equipment thoroughly read this manual and the associated manuals introduced in this manual Also pay careful attention to safety and handle the module properly These SAFETY PRECAUTIONS classify the safety precautions into two categories DANGER and CAUTION Indicates that incorrect handling may cause hazardous conditions T DANGER resulting in death or severe injury CAUTION Indicates that incorrect handling may cause hazardous conditions resulting in medium or slight personal injury or physical damage Note that the CAUTION level may lead to a serious consequence according to the circumstances Always follow the instructions of both levels because they are important to personal safety Please save this manual to make it accessible when required and always forward it to the end user Design Precautions lt DANGER e Install a safety circuit external to the PLC that keeps the entire system safe even when there are problems with the external power supply or the PLC module Otherwise trouble could result from erroneous output or erroneous operation 1 Outside the PLC construct mechanical damage preventing interlock circuits such as emergency stop protective c
81. C PLC x Switch seting 1_ or 0 _ ntet Intell X Epoints 2 hien Detailed setting MEA 4 lt MEZ 5 4 4 gt 6 5 5 7 I6 6 b 8 pen If the start X and Y are not input the PLC assigns them automatically 9 18 8 __ Itis not possible to check corectly when there is a slot of the unsetting on the way 10 a 1 a r Standard setting en Base model name Power model name Extemsion cable Points peas na EM E EN Auto 14 13613 C Detail 15 huma z 8 fixation End setup Cancel 12 fixation Jsettings should be set as same when iversion of multiple PLC parameter Read PLC data i using muliple PLC Designate the contents of the Acknowledge XY assignment Multiple PLC settings Default Check End Cancel intelligent function module switch 3 Precautions a Do not apply the switch setting for an intelligent function module If the switch setting for an intelligent function module is specified an error SP PARA ERROR will occur b Set Interrupt as the type to set the switches of the intelligent function module using GX Developer Refer to the following manual for details of the interrupt module switch setting e Building Block Type I O Module User s Manual c The switch setting is made valid when e The PLC is powered ON or e CPU module is reset 7 FUNCTION MELSEC Q 7 9 Writing Data in the Ladder Mode during the RUN Status 1 Writing data in the ladder mode during the RUN Status
82. CC Link system 1024 points of X Y400 to X Y7FF are assigned to the CC Link master local module of lower I O numbers 5 ASSIGNMENT OF I O NUMBERS MELSEC Q 5 6 I O Assignment by GX Developer This section describes the I O assignment using GX Developer 5 6 1 Purpose of I O assignment by GX Developer I O assignment by GX Developer is used under the following circumstances 1 Reserving points when converting to module other than 16 point modules You can reserve the number of points in advance so that you do not have to change the I O numbers when the current module will be changed to one with a different number of I O points in the future For example you can assign a 32 point I O module to the slot where a 16 point O module is installed at present 2 Preventing I O numbers from changing when converting modules You can avoid the change in the I O numbers when an I O module other than 16 point module or intelligent function module is removed due to a malfunction 3 Changing the I O numbers to those used in the program When the designed programs I O numbers are different from the actual system I O numbers each modules I O numbers of base units can be set to program l O numbers 4 Setting the input response time of input modules and interrupt modules I O response time To match the input response time of the input modules and interrupt modules to the system select Type in the I O assignment beforehand For detail
83. Cname PLC system PLC file PLCRAS Device Program c 2 I Do boot from standard ROM Acknowledge XY assignment Default End Cancel Write of parameter program and like to standard ROM using GX Developer 1 Using online write to PLC of GX Developer write parameter and program to the program memory 2 Transfer the parameter and program written in the program memory to the standard ROM Refer to Section 6 4 2 for write of parameter program and the like to the standard ROM using GX Developer 6 FILES HANDLED BY BASIC MODEL QCPU MELSEC Q Execute a program Resetting the Basic model QCPU with the RUN STOP RESET switch starts boot from the standard ROM Refer to the following manuals for the reset operation of the Basic model QCPU QCPU Q Mode User s Manual Hardware e Basic Model QCPU Q Mode User s Manual Hardware Design Maintenance and Inspection 3 Precautions for Executing Program in the Standard ROM a b When performing boot run store parameter PLC parameter and program into the standard ROM If program is written in the program memory during the RUN status while a boot run is performed by using a standard ROM any change made will not be reflected in program stored in the standard ROM If the PLC is powered ON reset after writing sequence program to the program memory the contents of the program memory may change This can be caused when the boot run has been set 1
84. ELSEC Q 4 Scan information e Stores current scan time in 1 ms units in 1 ms units Range from 0 to 65535 processing e Stores current scan time in 100 us units Current scan Range from 00000 to 900 time Current scan time Example S Every END in 100 us units A current scan of 23 6 ms would be stored as follows processing D520 23 D521 600 Minimum scan 1 ms units e Range from 0 to 65535 processing 100 us units e Range of 000 to 900 processing Maximum scan time Stores maximum value of scan time excepting the first scan in 1 ms units Maximum scan in 1 ms units e Range from 0 to 65535 S Every END time Maximum scan time _ Stores maximum value of scan time excepting the first scan in 100 us units processing in 100 us units e Range of 000 to 900 END processing time Stores time from completion of scan program to start of next scan in 1 ms units in 1 ms units e Range from 0 to 65535 END processing S Every END A nia Stores time from completion of scan program to start of next scan in 100 us time END processing time processing i units n 100 nits im 100 ye Unite Range of 000 to 900 e Stores wait time when constant scan time has been set Constant scan wait x i in 1 ms units time in 1 ms units Constant scan e Range from 0 to 65535 S First END wait time Stores wait time when constant scan time has been set processing Constant scan wait time in
85. Execution times of various functions processed at END Vv Error cancel No processing when the cancel command is not given Service processing Constant wait processing No processing when there is no setting 6 Service processing time y WDT reset Scan time calculation 7 Common processing time STOP PAUSE status Operating status judgment RUN status Hardware system information check update E See Numerals in parentheses indicate the item numbers in Section 11 2 STOP PAUSE processing 11 1 11 1 11 PROCESSING TIMES OF THE BASIC MODEL QCPU MELSEC Q 11 2 Concept of Scan Time 11 2 The scan time varies with the following elements Number of I O points Processing times of all instructions executed within one scan Sum of processing times of user interrupt program executed within one scan Processing for instruction processed at END Execution of various functions processed at END Module refreshes e g refreshes made by MELSECNET H CC Link etc Service processing Constant scan setting parameter setting The scan time is the sum of the following processing times I O refresh time a Refresh time of I O data transferred from to the following modules installed on the main and expansion base units of the Basic model QCPU e Input module e Output module e Intelligent function module b Calculate the I O refresh time with the following expressio
86. Format the program memory 2 Write the parameter and sequence program to the program memory 3 Transfer the parameter written in the program memory to the ROM 6 FILES HANDLED BY BASIC MODEL QCPU MELSEC Q 6 4 2 Write the program memory to ROM To perform write to the standard ROM with GX Developer perform Write the program memory to ROM in online Write to PLC Flash ROM of GX Developer Files cannot be written to the standard ROM by online Write to PLC of GX Developer 1 Write the program memory to ROM a d The Write the program memory to ROM function allows a batch of files stored in a program memory to be written in a standard ROM Refer to Section 12 1 for the procedure of writing the program memory to ROM This function writes the debugged program stored in the program memory to ROM When the Write a memory to ROM function is executed all files stored in the standard ROM are erased before a batch of files stored in a program memory are written No files can be added to the standard ROM The memory capacity of a standard ROM is the same as that of a program memory A memory of a larger size than the memory capacity of a program memory cannot be used For write of the program memory to ROM by GX Developer check is made in 180 seconds when the time check period of GX Developer is 180 seconds or shorter To execute the Write the program memory to ROM function via the CC Link network by operating from a
87. II code data 2 ASCII code character strings ASCII code character strings are shown in the Table below 00x NUL code is used at the end of a character string gt 0 tT oes as Fs DVT 0 oloflololililili 0 0 0 ft or 0 a aA gt 0 o 1fof i1f of1 o 1 8 9 AJB C DJEJ F Column b8 b7 b6 b5 b4 b3 b2 b1 A 0 0 0 NUL 0 0 aoe e ofofi of 2 o oli la t 8 ofifofo 4 ofi lofof 5 T ofi li fof ef f o ilil 7 olo o 8 a ee 9 DJ oe Be A ls ee B 1 lo o 1 i lo if D Character strings are available for the MOV instruction only 5 ASSIGNMENT OF I O NUMBERS MELSEC Q 5 ASSIGNMENT OF I O NUMBERS This section describes the necessary information on the I O number assignment for the data exchange between Basic model QCPU and input output modules or intelligent function modules 5 1 Relationship Between the Number of Stages and Slots of the Extension Base Unit 5 1 1 QOOJCPU Setting of extension stage Refer to Section 5 2 The QOOJCPU can configure a system with a total of three base units one main base unit and two extension base units Note that the number of usable slots modules is 16 slots including vacant slots For example if you set slot 2 for vacant zero points as shown below it occupies one slot Hence the following system uses five slots sl
88. Ly Three slots are occupied The number of points for the empty slots is the one designated by PLC system of PLC Parameter or with I O assignment Default value is 16 points 2 When the designated number of slots is smaller than that of the base unit being used The slots other than those designated are disabled For example when 8 slots are designated for a 12 slot base unit the 4 slots on the right of the base unit are disabled If a module is installed to the disabled slot an error SP UNIT LAY ERR occurs Q312B type main base unit 01234567 9 1011 R o BIO l2 oO Ale A Y Module can be installed When module is installed When eight slots are set an error occurs 5 ASSIGNMENT OF I O NUMBERS MELSEC Q 3 Setting screen and setting items for Base mode of GX Developer PLC name SFC Qn H Parameter x PLC system LC 120 Assignment sit Tye Modelname Points f Stat Jal oich seti To PLO m witch setting Progam Bootfie Serial Detailed setting v v v v v v v v If the start Xx and Y are not input the PLC assigns them automatically It is not possible to check correctly when there is a slot of the unsetting on the way Standard setting Base mode Auto C Detail Extemsion cable Points Increased settings should be fet as same when using multiple PLC Acknow
89. N detected turning the power OFF then ON detection ON AC DC DOWN Comes ON if a momentary power interruption of less than 10ms detected occurred during use of the DC power supply module and reset by turning power OFF then ON Comes ON even if there is only one output module with a blown fuse and remains ON even after return to normal modules VO module OFF Normal e Comes ON if there is a discrepancy between the actual I O modules SM61 Boe f S Error verification error ON Error and the registered information when the power is turned on SM62 Annuneiator OF E Not detected Goes ON if even one annunciator F goes ON S Instruction execution detection ON Detected Serial OFF Serial communication communication function is not used Stores whether the serial communication function in the serial ON Serial communication communication setting parameter is used or not function is used OFF GX Developer Stores whether the device that is communicating via the RS 232 ON MC protocol ad interface is GX Developer or MC protocol communication device communication device Turns ON when an abnormal protocol was used to make OFF Normal aan er ON Abnormal communication in the serial communication function S Error e Remains ON if the protocol is restored to normal thereafter PSA Turns ON when the mode used to make communication was Communication OFF Normal 3 Bean 3 TS i atatus ON Abnormal different
90. N i TO contact OFF Contact remains ON when coil switches Instruction execution RST STO instruction ON X1 OFF 2 Measurement units a The measurement units settings for retentive timers are the same as those for low speed timers and high speed timers e Low speed retentive timer Same as low speed timer e High speed retentive timer Same as high speed timer In order to use retentive timers a retentive timer number of points used setting must be designated in the PLC parameters device settings 10 21 10 21 10 DEVICES MELSEC Q Timer Processing amp accurac a When an OUT T instruction is executed the following processing occurs timer coil ON OFF present value update amp contact ON OFF processing Timer present value update and contact ON OFF processing do not occur at END processing Ladder example Xo K10 lt To Processing at OUT TO instruction END OUT TO END Sequence _ program gt Processing content Coil ON OFF l Present value update Contact ON OFF b When the OUT T instruction is executed the present value is added to the scan time measured at the END instruction If the timer coil is OFF when the OUT T instruction is executed the present value is not updated Ladder example XO H K8 nm 7 gt Present value update timing OUT TO OUT TO OUT TO OUT TO OUT TO OUT TO END END END END END END processing processing processing processing processin
91. O Po H _J ov FP RO b Because the function devices used for each sub routine program CALL source can be set the same sub routine program can be used without regard to other sub routine CALL sources 2 Types of function devices There are 3 function device types function input devices FX function output devices FY and function register devices FD a Function input devices FX e These devices are used to designate inputs of ON OFF data to a sub routine program In the sub routine program these devices are used for reading and processing bit data designated by sub routine with argument CALL instruction All the Basic model QCPU bit data designation devices can be used b Function output devices FY e These devices are used to designate outputs of sub routine program operation results ON OFF data to the sub routine program CALL source e At sub routine program with arguments the operation results are stored at the designated device e All bit data designation devices except Basic model QCPU inputs X DX can be used 10 31 10 31 10 DEVICES MELSEC Q c Function registers e Function registers are used to designate data transfers between the sub routine CALL source and the sub routine program e The function register input output condition is automatically determined by the Basic model QCPU If the sub routine program data is the source data the data is designated as sub routine
92. OOCPU Q01CPU that is connected with the personal computer Display device or the like 7 FUNCTION MELSEC Q 1 Specifications a Transmission specifications The following table indicates the transmission specifications of RS 232 used for the serial communication function of the CPU module Use the serial communication function after making sure that the specifications of the personal computer Display device or the like match those of the following table Default Setting Range Communication system Full duplex communication ie Set es Synchronization system Asynchronous system i 2 eee ll a 9 6kbps 19 2kbps 38 4kbps Transmission speed 1 19 2kbps 57 6kbps 115 2kbps Start bit 1 Data bit 8 Parity bit Odd Stop bit 1 Data format MC protocol format 2 Format 4 ASCII Automatic judgment Format 5 binary QnA compatible 3C frame Frame 2 QnA compatible 4C frame DTR DSR control Sum check 1 eo wait 10ms to 150ms 10ms Transmission wait time 1 No wait increments Write during RUN setting 1 Not enabled Enabled Not enabled Extension distance Hem ooo o gt 1 Can be set in the PLC parameter setting of GX Developer 2 The relationships between the MC protocol formats and frames are indicated in the following table Communication in ASCII code QnA compatible 3C frame o a x QnA compatible 4C frame on a Communication in binary code QnA compatible 4C frame i a eee ee Usabl
93. OP a Remote RUN contact method The remote RUN contact is set with the PLC parameter mode PLC system setting The device range that can be set is input XO to 7FF By turning the set remote RUN contact ON OFF the remote RUN STOP can be performed 1 When the remote RUN contact is OFF the Basic model QCPU enters the RUN state 2 When the remote RUN contact is ON the Basic model QCPU enters the STOP state Step 0 gt END FF Remote RUN contact Q QCPU RUN STOP state STOP state Fig 7 4 Time Chart for RUN STOP with Remote RUN Contact b Method using the GX Developer function serial communication module etc Basic model QCPU can be performed by the remote RUN STOP operation from the GX Developer function serial communication module etc The GX Developer operation is performed with on line remote operations The serial communication module and Ethernet interface module are controlled by commands complying with the MC protocol For details of the MC protocol refer to the following manual Q corresponding MELSEC Communication Protocol Reference Manual Step 0 END Step 0 ON Remote STOP command GX Developer ORF 4 OFF Serial Remote RUN command communication module RUN STOP state STOP state Fig 7 5 Remote RUN STOP Time Chart using GX Developer serial communication module etc 7 FUNCTION MELSEC Q 3 Precautions a Take note of the following
94. ORF e MEF e PLF 2 Leading edge instructions The leading edge instruction is not executed if the execution condition of the leading edge instruction PLS instruction _ P instruction is ON on completion of write The leading edge instruction is executed when the execution condition turns from OFF to ON again 3 SCJ instruction If the execution condition of the SCJ instruction is ON on completion of write a jump to the specified pointer is made without waiting for one scan 7 FUNCTION MELSEC Q 7 10 Multiple user monitoring function 1 What is Multiple User Monitoring Function a The multiple user monitoring operation can be performed by operating from multiple GX Developers connected to the Basic model QCPU or the serial communications module b Multiple users can monitor at the same time By setting a station monitor file high speed monitoring can be performed Setting of station monitor file is not necessary 2 Operation Procedure a For multi user monitoring operation create a user defined system file in the following steps 1 Choose Online Format PLC Memory to open the Format PLC Memory dialog box 2 Select program memory from the Target Memory list box 3 Inthe Format section select Create a user setting system area so that its radio button is checked 4 Specify the desired K steps in the System Area text box b The figure below illustrates an example in which 1k step is specifi
95. P state Starts executing the operation from the status immediately Determined by the output f he STOP Wh STOP to RUN Starts at step 0 mode of the PLC parameter pe oret ee 9 state gia device initial value is designated at STOP to RUN j however the value is set Local devices are cleared External output EON Basic model QCPU performs the following in any of RUN STOP and Pause state e O module refresh processing e Data communication with the GX Developer and serial communication module e Refresh process of MELSECNET H and CC Link For this reason I O monitor and test operation using GX Developer reading writing from the serial communication communication with another station using MELSECNET H and communication with a remote station over the CC Link can be made even in the STOP or PAUSE status 4 SEQUENCE PROGRAM CONFIGURATION amp EXECUTION CONDITIONS MELSEC Q 4 5 Operation Processing during Momentary Power Failure The Basic model QCPU detects a momentary power failure to the power module when the input power voltage is lower than the regulated ranges When the Basic model QCPU detects a momentary power failure the following operation processing is performed 1 When momentary power failure occurs for less than permitted power failure time a The output is maintained when the momentary power failure occurs and file name of the file accessed and error history are logged Then the system interrupts
96. PAUSE operation and then that remote operation is cancelled a new remote operation can be performed by another GX Developer 7 FUNCTION MELSEC Q 7 7 Selection of Input Response Time of the Q Series Compatible Input Module and Interrupt Module I O Response Time 7 7 1 Selection of input response time of the input module 1 2 Selection of Input Response Time Selection of the input response rate of the input module is to change the input response rate of the Q series compatible input module to 1ms 5ms 10ms 20ms or 70ms on a module basis The input module imports external inputs at the specified input response rate The default value of the input response rate is set to 10ms ON External input a OFF Input module Setting the Input Response Time Set the input response rate in the I O assignment PLC parameters Choose Input as the type of the slot to which the input response rate is set ON Input response time Select Input Select Detail Setting Select Input response time ans eat PLC name PLC system PLC file PLCRAS Device Program Boot file SFC l TEO g Enor time HAW enor a Boe Set igs es Slot Type Model name output bellies fee 1 0 Assignment Baa Sees ofpe
97. PLC x x 1 0 0 input 7 ma F 2 fien Jims 3 2l 2 X v Loms a 30 3 420ms 5 4e 4 bd 4 70ms 6 5 5 x x 7 gt 7 6F6 8 E7 x lt 9 86 8 x x x If the start X and Y are not input the PLC assigns them automatically 70 53 m It is not possible to check correctly when there is a slot of the unsetting on the way 11 10 10 X a v Standard setting 12111 11 X v X Base mode daiam 14 13013 x aa Auto 15 140 14 viv C Detail End setup Cancel Increased 12 fixation settings should be set as same when tsion of multiple PLC parameter Read PLC data using multiple PLC Acknowledge XY assignment Multiple PLC setting Default Check End Cancel a Setting of a higher input response rate increases sensitivity to noise or like 7 21 Take the operating environment into consideration when setting the input response rate The setting of the input response rate is made valid when e The PLC is powered ON or e CPU module is reset 7 FUNCTION MELSEC Q 7 7 2 Selection of input response time of the high speed input module 1 2 Qn H Parameter PLC name PLC system SFC PEC fle PLC RAS 1P assignment Hi Input selection Selection of input response time of the high speed input module Selection of input response rate of the high speed input module is to change the input response rate of the Q series compatible high speed
98. Refer to the following manual and make a reset STOP RESET switch of the CPU QCPU Q Mode User s Manual Hardware module Basic Model QCPU Q Mode User s Manual Hardware Setting Maintenance and Inspection 12 3 12 3 APPENDICES MELSEC Q APPENDICES adil APPENDIX 1 Special Relay List Special relays SM are internal relays whose applications are fixed in the programmable controller For this reason they cannot be used by sequence programs in the same way as the normal internal relays However they can be turned ON or OFF as needed in order to control the CPU and remote I O modules The headings in the table that follows have the following meanings e Indicates whether the relay is set by the system or user and if it is set by the system when setting is performed lt Set by gt S Set by system U Set by user in sequence program or test operation at a peripheral device S U Set by both system and user lt When set gt indicated only if setting is done 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 only when there is a change in status Error Set when error is generated Instruction execution Set when instruction is executed Request Set only when there is a user request through SM etc Set by When set For details on the following items see t
99. S During execution instruction 1127 App 15 App 15 APPENDICES APPENDIX 3 List of Interrupt Pointer Nos and Interrupt Factors Priority App 16 3rd point 3 5th point 5 QI60 interrupt module factor e a a N ari wo 14th point 15th point 16th point Ns N Jaje 132 to Unusable 1127 x1 The internal times shown are the default setting times MELSEC Q These times can be designated in 1 ms units through a 2 ms to 1000 ms range by the PLC system settings in the PLC parameter setting App 16 APPENDICES MELSEC Q MEMO App 17 App 17 INDEX A Accuracy of scan time ee eeeeeeeeeeeteeeeeees 4 9 FY Function Output renens 10 31 Annunciator F eeeeeceeeeeeeteeeeeteeeeeeeeeees 10 12 ASCINCOdC 2 cain od een eaten 4 25 G AUTO MOE sesseeesssseeeeeeessnnneeeeessnnneeeetennens 5 3 GX COnnGUratOr 2ad wee neck ado d i 8 2 B GX Developer sssssesseeiererersisissrrrrrersrssrsns A 17 Base MOda paniri i 5 4 H BOR Sinar oo e aeteacae wen H Hexadecimal constants eee 10 50 BIN Binary COGS eretia r HEX Hexadecimal sccccssccssssssseesensseseeseee 4 23 BGO RUM aaa A 6 6 Hexadecimal constants H sccscsccsssaseeeeun 10 50 C High speed retentive timer ST 10 21 CACOUING iiai aiii 10 24 Migh sp ed LIMON T ar 10720 Character string eseeeeeeeeeeereeeeseeneenn 4 25 C
100. SET F lt instruction to switch the anunciator ON 1 If switched ON by any method other than the SET Fi and OUT F instructions the anunciator functions in the same way as the internal relay Does not switch ON at SM62 and anunciator Nos are not stored at SD62 SD64 to SD79 b Processing at anunciator ON 1 Data stored at special registers SD62 to SD79 a Nos of anunciators which switched ON are stored in order at SD64 to SD79 b The anunciator No which was stored at SD64 is stored at SD62 c 1 is added to the SD63 value SET F50 SET F25 SET F1023 oO se OO SD62 o gt 50 50 50 sp63 ol gt 4 el l 3 SD64 0 _50 50 50 SD65 o o gt 25 25 SD66 o 0 0 1023 Up to 16 annunciator SD67 9 0 0 o No can be stored SD79 _o0 0 Lol Ld 2 CPULED indication When any annunciator turns ON the ERR LED on the front of the Basic model QCPU is lit 3 Anunciator OFF procedure amp processing content a Anunciator OFF procedure An anunciator can be switched OFF by the RST F 2 BKRST and OUT Fi instructions 1 An anunciator No which has been switched ON by the SET Ft instruction can be switched OFF by the RST F lt instruction 2 Use the BKRST instruction if you want to switch all the anunciator Nos within a specified range 10 13 10 13 10 DEVICES MELSEC Q 3 The OUT F instruction can execute ON
101. SET Method The remote RESET can only be performed from the GX Developer function or serial communication module operation To perform the remote RESET follow the following steps a Inthe PLC System sheet of the PLC Parameter dialog box turn on the Allow check box in the Remote reset section and then write parameters onto the Basic model QCPU LChane ELESE PLC ie PLCRAS Device Progam Bootie SFC 170 assrment Common pointer re After 0 4095 ed High 10 0 ms 0 1ms 100ms speed Number of empty slots 16 v Points Allow the RUN PAUSE contacts System interrupt settings remote reset EL es aula Interrupt counter start No 0 768 PAUSE X lt 0 X1FFF 128 fixed scan interval 100 0 ms 0 5ms 1000ms Remote reset 129 fixed MV Allow scan interval 40 0 Output mode at STOP to RUN 130 fixed foo 10 0 ms 0 5ms 1000ms ms 0 5ms 1000ms Previous state rae Ta IKE C Recalculate output is 1 scan later scan interval ms 0 5ms 1000ms Floating point arithmetic processing Interrupt program Fixed scan program setting Vv Perform internal arithmetic operations J High speed execution in double precision Intelligent functional module setting Unit synchronization V Synchronize intelligent module s pulse up Interrupt pointer settings Compatibility with A PLC IV Use special relay special register from SM SD1000 Acknowledge XY assignment Default Check End setup Cancel b W
102. TEWR A program example to write the time data using the time data write instruction DATEWR Write request XO o H H move K2001 Do H year 2001 m wove ks n Month 8 K10 D2 Day 10 A move ku D3 H Howi MOVP K35 D4 M Minute 35 MOVP K24 D5 Second 24 __ MOVP K4 D6 Day Thursday 4 DATEWR DO Refer to QCPU Q mode QnACPU Programming Manual Common Instructions for details of the DATEWR instruction b Reading Time Data When reading the time data to the data register use the time data read instruction DATERD from the program The figure below shows an example of a program used to read the clock data with the DATERD instruction and then store it in D10 to D16 Read request X1 r The time data is read L PATER oe Hn D10 to D16 Refer to the QCPU Q mode QnACPU Programming Manual Common instructions for the details of the DATERD instruction 1 Writing to and Reading from Time Data can be executed by special relays SM210 to SM213 and special registers SD210 to SD213 See Appendix 1 for details on special relay See Appendix 2 for details on special registers 2 The figure below shows the clock data stored in D10 to D16 D10 1999 4 digits in AD D11 8 Month D12 10 Date D13 11 Hour Refer to Section 7 5 1 1 D14 35 Minute D15 24 Second D16 4 Day of the week 7 FUNCTION MELSEC Q 3 Precauti
103. This chapter shows a listing of PLC parameters and network parameters used for GX Developer For details regarding each setting item refer to the section or manual indicated For GX Developer setting procedures see the GX Developer Operating Manual The parameters written from the GX Developer will be validated within the Basic model QCPU in the following cases 1 e When the power supply to the PLC is switched on e When the Basic model QCPU is reset e When the Basic model QCPU changes from STOP to RUN 1 The PLC parameter I O allocation switch settings and detailed settings and the network parameters will be transmitted to the target intelligent function module at the following startup of the Basic model QCPU and will be used there e When the PLC is powered on e When the Basic model QCPU is reset 1 When the switch settings of the I O assignment PLC parameters and the network parameters have been changed the PLC must be powered off then on ON to OFF to ON or the Basic model QCPU reset If the PLC is not powered off then on ON to OFF to ON or the Basic model QCPU not reset the new switch settings of the I O assignment PLC parameters and the new network parameters are not made valid 2 When the PLC parameters have been written to the Basic model QCPU power the PLC off then on ON to OFF to ON or reset the Basic model QCPU When the Basic model QCPU is switched from STOP to RUN the PLC parameter I O allocation
104. UN status output Y is stored in the sequence and all the outputs Y are turned OFF The state after transition from STOP to RUN can be selected from the following two options with the Basic model QCPU e The output state prior to STOP is output e The output is cleared Default After transition from STOP to RUN the output Y state prior to STOP is output then the program is executed a Previous State After the output Y status before the STOP status is output the sequence program calculations are performed b Recalculate Output is 1 Scan later Clears all output Y and outputs the output Y after executing the sequence program calculations STOP status to RUN status NO Output after calculation execution Replay output YES Replay output Output the output Y status right before changing to Clear the output Y status STOP status Execute the sequence program calculations Fig 7 3 Processing when Change from STOP Status to RUN Status 7 FUNCTION MELSEC Q 2 Setting the Output Y Status when Changing from STOP Status to RUN Status The output Y status before the STOP status when switching from STOP status to Run status can be set in the PLC System sheet of the PLC Parameter dialog box Qn H Parameter x LC nar C e PLC RAS De e Pr gram B 7 le SFC a janment Timer limit setup Low fi00 a Common pointer F After 0 4095 d ms 1ms 1000ms High 10 0 O
105. UNCTION MELSEC Q 7 15 GX Developer system monitor It is possible to confirm the following information for Basic model QCPUs connected to personal computers with the GX Developer system monitor see illustration below e Installed status e Operation status e Module s detailed information e Product information System Monitor x a gt Installed status Base Base Module ge SEF C E Main base Masterpic 4 Oyo Po haa hates aati aae aR o2 oe l ptlispt i pt ng ng ng ng ng oor mme OOe mla EEs b Parameter status I O ddress 0 10 zo 30 40 50 60 zo o i 2 2 fe Le lf Diagnostics Outp Inpu Outp None None None None None QOLCPU jut ft ut l pt l6pt l6pt l6pt l6pt l6pt l6pt l6pt Module s Detailed Information Base Information Product Inf List Status B Module system error g Module eror __ Module warning Stop monitor Close a Installed status You can confirm the types and points of the modules loaded on the selected base unit Not installed will be displayed for slots in which modules have not been mounted When slots have been set as Empty with the PLC parameter s I O allocation setting the module s model will not be displayed when if a module has been mounted
106. a Writing data in the circuit mode during the RUN status is used to write a program during the Basic model QCPU RUN status b Changing the program can be performed without stopping the process in Basic model QCPU program using writing data in the ladder mode during the RUN status a XO X2 HHH lt Y30 gt X1 E X3 X4 HHH SET M10 Se X5 m CEND GX Developer Change by GX Developer and write in Basic model QCPU at the conversion c Writing to the program during RUN can be performed from a GX Developer function peripheral device connected to another station in the network Personal computer GX Developer 7 FUNCTION MELSEC Q 2 Precautions Take a note of the following when writing during RUN a The memory that can be written during RUN is only program memory If the write during RUN is performed while booting a program from the standard ROM the program to be booted will not be changed Write the contents of the program memory to the standard ROM before powering off the PLC or resetting the Basic model QCPU b Amaximum of 512 steps can be written at once during RUN c Normal operation will not be performed if any of the following instructions is written using online write 1 Trailing edge instructions Any of the following trailing edge instructions is executed if the execution condition of the trailing edge instruction is OFF on completion of write e LDF e ANDF e
107. ade in the Boot File sheet of the PLC Parameter dialog box c Write to the standard ROM is performed by Write the program memory to ROM in online write to PLC flash ROM of GX Developer Refer to Section 6 4 1 POINTS Writing program memory to ROM copies the program memory data to the standard ROM as is 2 Data Storage A standard ROM stores data such as parameter and program See Section 6 1 for the data to store in the standard ROM 3 Setting of ROM operation When performing ROM operation select boot operation from standard ROM in the boot file setting of PLC parameter 6 FILES HANDLED BY BASIC MODEL QCPU MELSEC Q 6 4 Executing Standard ROM Program Boot Run and Writing Program Memory to ROM 6 4 1 Executing Standard ROM Program 1 Executing Basic model QCPU program a b The Basic model QCPU processes program which is stored in the program memory The Basic model QCPU does not perform operation of program stored in the standard ROM The program stored in the standard ROM is booted read to the program memory to perform arithmetic operation Preparation for Boot Run Perform the following steps in preparation for boot run a b c Create a program using GX Developer Create a program used for the boot run Select a boot file using GX Developer Select Do boot from standard ROM in the boot file setting of PLC parameter Qn H Parameter SFL vo assignment Serial PL
108. akin a a aie ar alanis area ets ata a a a fat 5 2 5 2 Installing Extension Base Units and Setting the Number Of Stages c ssecsesseseseseseseseeeeeseseeeeesseaeeteatens 5 3 5 3 Base Unit Assignment Base Mode eeseseseseseseseeeeeeeeeeeeeeeeeseseeeseseseseseseseanaeanaeanananaeaeaeaeaesesesesesesesesesesesesess 5 4 5 4 What are I O Numbers ceecesecsesecesessesecesesseseseeeseseseseseeseseseseseaeseseaeeseseseseeeseseseaeeasaeseatesaeseseeteasasseatenseeseaens 5 8 5 5 Concept of I O Number ASSIQNMenth c ecccseseseseseseseseescsesscseseeeseseseeesseseaeeeeseaeaeseeeaeaeaeeeaeseaeeneeesasaeeeeeaeatens 5 9 5 5 1 I O numbers of main base unit and extension base unit 5 5 2 Remote station 1 0 NUMDEL c ccecceceeseeeeceeseseeeeeaeceeeaeeaecaeseeeeaesaesaeseeeeaecaeseeseaeeaesaeseeseataeseeseaeeaees 5 11 5 6 VO Assignment by GX Developer essececescssesesesesseseseseseesesesesscseseeeesesesesseeseseseeeeasaeseaeesaeseseetsessnseetenseeeaeeatees 5 12 5 6 1 Purpose of I O assignment by GX Developer ceccecceeceeeceeeeeeeeeseeseeeeaesaeseeseaeeaeeaeseeseaesaeeeseeeeaes 5 12 5 6 2 Concept of I O assignment using GX Developer cecceceeeeeeeceeeeeeeaeeaeceeeeeeeaesaeseeseaesaesaeeeeteaeeaes 5 13 5 7 Examples of I O Number ASSIQNMent 2 essesecesesseseseseescseseseeseseseeeesescaeeeeseacaeaeeseseseaeeeeaeasaeeneaceteeeesasateneeeseatens 5 16 5 8 Checking the 1 0 Numbers csce
109. because STOP has priority in Basic model QCPU 1 The Basic model QCPU enters the STOP state when remote STOP is performed from remote RUN contact GX Developer function or serial communication module 2 When Basic model QCPU is set to the STOP state with remote STOP all external factors which performed a remote STOP remote RUN contact serial communication module etc must be set to RUN The RUN STOP state is described below e RUN State State which repeatedly executes the calculations from step 0 to the END instruction in the sequence program e STOP State 0 0 0 0 State where the sequence program calculations are stopped and the output Y is all OFF 7 FUNCTION MELSEC Q 7 6 2 Remote PAUSE 1 What is Remote PAUSE a Remote PAUSE performs the Basic model QCPU PAUSE function from an external source with the CPU RUN STOP RESET switch at RUN position The PAUSE function stops the Basic model QCPU calculations while maintaining the ON OFF state of all output Y b This can be used to maintain the output Y on even if the QCPU is changed to the STOP state in such areas as process control The output Y turns OFF at stop error occurrence To retain the output at stop error occurrence make the output retention setting in the I O assignment PLC parameters 2 Remote PAUSE Method There are two ways to use remote PAUSE a Remote PAUSE Contact Method The remote PUASE contact is set in the GX Deve
110. buffer memory of the ntelligent function module device ip 9 intelligent function module Specified form at VOO GOO Latch power failure conpensation LO to 2047 default range Latch range can be set for B F V T ST C D and W _ Set parameter values RUN and PAUSE contacts can be set from among X0 to to specify Remote RUN PAUSE contact f 7FF respectively Year month day hour minute second day of the week leap year automatic distinction Accuracy 3 2 to 5 27s TYP 1 98s d at 0 C Accuracy 2 57 to 5 27s TYP 2 22s d at 25 C 11 68 to 3 65s TYP 2 64s d at 55 C Max 20ms Varies according to the type of power Allowable momentary stop time f Min 100VAC supply module Interrupt pointer mber of device points N Link direct device 5VDC internal current consumption 0 22A 4 0 25A Weight 0 66kg 5 0 13kg 98mm 3 86in 98mm 3 86in External dimensions 245mm 9 65in 27 4mm 1 08in lp 97mm 3 82in 89 3mm 3 52in 3 The step relay is a device for the SFC function This cannot be used as the SFC function is not applicable to the Basic model QCPU 4 This value includes the CPU module and base unit 5 This value includes the CPU module base unit and power supply module 4 SEQUENCE PROGRAM CONFIGURATION amp EXECUTION CONDITIONS MELSEC Q 4 SEQUENCE PROGRAM CONFIGURATION amp EXECUTION CONDITIONS Programs that can be executed by the Basic model QCPU are sequence
111. can only be used for internal Basic model QCPU processing and cannot be output K20 externally lt To Y20 4 LO ON OFF information is output from the output module to an external destination L100 gt H lt 12047 Figure 10 6 Latch Relay 2 Procedure for external outputs Outputs Y are used to output sequence program operation results to an external destination Internal relays M should be used when a latch memory backup is not required See Section 10 2 3 for details regarding internal relays 10 11 10 11 10 DEVICES MELSEC Q 10 2 5 Anunciators F 1 Definition a Anunciators are internal relays used by the user in fault detection program b When anunciators switch ON a special relay SM62 switches ON and the Nos and quantity of anunciators which switched ON are stored at the special registers SD62 to SD79 At this time the ERR LED is lit e Special relay SM62 06 Switches ON if even one anunciator switches ON e Special register SD62 06 No of first anunciator which switched ON is stored here SDO nas The number quantity of anunciators which are ON is stored here SD64 to SD79 Anunciator Nos are stored in the order in which they switched ON The same anunciator No is stored at SD62 and SD64 The anurciator No stored at SD62 is also registered in the fault history area However only one annunciator number is sto
112. cecscecesesseseseseeseseseeesseseseseeseseseseeseseseseeeasseaeeeeaeacseseeeaeasaeeneasasaeeneesesaseeenesasatens 5 19 6 FILES HANDLED BY BASIC MODEL QCPU 6 1 to 6 13 6 1 About the Basic model QCPU s M MOL scsssscecseseseseseeseseseseeseseseeeeseaeaeeneseseaeeeeeeseaeaeeneaeasaeeteeanaeeteneeeesaeeetees 6 2 6 2 Program MEMON s 2 iccdadade edad edad teat ietdl ce AAEE AA E A AA 6 4 6 3 About the Standard ROM vai fie that ara iene thea aaa naaa aa aaan Eae ean an 6 5 6 4 Executing Standard ROM Program Boot Run and Writing Program Memory to ROM ceececeeees 6 6 6 4 1 Executing Standard ROM Program ccccceccesesseceeceseeseeseceeceeeeaesaeceeseeeeaesaeseeseeesaesaeseeseaeeaeeeeaseaees 6 6 6 4 2 Write the program Memory to ROM cccceceeseeeeeeeeeeeeseeeeceeeeeeeaesaecaeeeesaeseeseeesaesaeseeseaseaesaeseeseaeeaees 6 8 6 5 About the Standard RAM ai danke halite n aa iia ea aE a adas ahtaiden 6 9 6 6 Program File Configuration ccccsscecssscseseseseeseseseseeseseseseescseseeeseseseseeseacseseeeecaeaeeeeeseaeeasaeensaeesaesteesesseatenssseaeens 6 10 6 7 GX Developer File Operation and File Handling Precautions cceceecssssssssssssesesessseeeseeeessesseeeeeeeseeesneneteees 6 11 6 71 File Operai araa aae R TRR RARE anendnvalaniaianinianssi ARE A A 6 11 pre Fiki Handling precautions eraa a R a deteegsaeek 6 12 6 73 E a T SOAT AN T A E reat art aaa E E EA ET 6 13 Lee Met EUAN CTIOND ENS t at etnea
113. check error H match the received sum check the other end Reduce the communication speed and restart communication e Check the QOOCPU or Q01CPU for The next data was received before the occurrence of an instantaneous power 7F67H Overrun error QOOCPU or Q01CPU completed failure receive processing For the QOOCPU or Q01CPU use the special register SD53 to check When an instantaneous power failure has occurred remove its cause e Match the setting of the QOOCPU or 7F69H Parity error e The parity bit setting does not match Q01CPU with that of the device on the other end Exercise DTR control to make Buffer full error the i F communication preventing a buffer full e The receive buffer of the OS overflew resulting in skipped receive data error e Refer to the Q Corresponding MELSECNET H Reference Manual PLC to PLC Network and take corrective action e Error detected by the MELSECNET H network system 8 COMMUNICATION WITH INTELLIGENT FUNCTION MODULE MELSEC Q 8 COMMUNICATION WITH INTELLIGENT FUNCTION MODULE 1 Description of intelligent function modules Basic model QCPU allows the use of the Q series compatible intelligent function modules The intelligent function module is a module that allows Basic model QCPU to process analog values or high speed pulses which cannot be processed with I O modules For example an analog value is converted into a digital value with the analog digital conversion mo
114. ches ON at X0 OFF to ON The link relay BO ON can only be used for internal Basic model QCPU processing and cannot be output externally BO ON OFF information is output from the output module to an external destination Figure 10 7 Link Relay 2 Using link relays in the network system In order to use link relays in the network system a network parameter setting is required 1 For details regarding the network parameters refer to the For Qs MELSECNET H Network System Reference Manual 2 The MELSECNET H Network Module has 16384 link relay points assigned Basic model QCPU has 8192 link relay points assigned When using subsequent points after Point 8192 change the number of link relay points by using the Device Setting sheet of the PLC Parameter dialog box 10 17 10 17 10 DEVICES MELSEC Q 10 2 8 Special link relays SB 1 Definition a A special link relay indicates the communication status and error detection of an intelligent function module such as the MELSECNET 10H Network Module b Because special link relays are switched ON and OFF in accordance with various problems which may occur during a data link they serve as a tool for identifying data link problems 2 Number of special link relay points There are a total of 1024 special link relay points between SBO and SB3FF Special link relays are assigned at a rate of 512 points per each intelligent function module s
115. condition 1_ Program MAIN main v rotect 2 _ Comment MAIN ect LY x A Read Write protect lear Batch Settings Execute Clo b c d e f Each item is described below a Target memory 0 Set the memory storing the file whose password is to be registered or changed b Data type eee Specifies the type of a file stored in the target memory c Data name uuu eee Displays a filename of a file stored in the target memory d Registration eee Displays an asterisks that indicates a password protected file e Password essees Defines or changes a password Setting a password allows you to set the registration condition f Registration Condition 1 Write Protect Write operation is restricted by the password Reading is possible 2 Read Write protect Read Write operation is restricted by the password 3 Clear Password is cleared Sets password currently registered in the Password POINT 1 Password protected files are limited to program files and device comment files Other files cannot be password protected 2 The password registered to a file can not read out from the file If the password can not be remembered file operation other than following can not be performed e Program memory PLC memory format e Standard ROM storage of program memory data onto ROM Take notes of the password registered and keep it on hand 7 F
116. d according to their applications as shown below a For fault diagnosis SMO to SM99 b For serial communication function SM100 to SM129 c System information SM200 to SM399 d System clock system counter SM400 to SM499 e Scan information SM500 to SM599 f Memory card information SM600 to SM699 g Instruction related SM700 to SM799 1 For details regarding special relays which can be used by the Basic model QCPU refer to Appendix 1 10 33 10 33 10 DEVICES MELSEC Q 10 3 3 Special registers SD 1 Definition a A special register is used to store Basic model QCPU status data diagnosis and system information 2 Special register classifications Special registers are classified according to their applications as shown below a For fault diagnosis SDO to SD99 b For serial communication function SM100 to SM129 c Fuse blown module SD130 to SD149 d Check of input output modules SD150 to SD199 e System information SD200 to SD399 f System clock system counter SD400 to SD499 g Scan information SD500 to SD599 h Memory card information SD600 to SD699 i Instruction related SD700 to SD799 1 For details regarding special relays which can be used by the Basic model QCPU refer to Appendix 2 10 34 10 34 10 DEVICES MELSEC Q 10 4 Link Direct Devices Jt t 1 Definition a At END processing a data refresh data transfer operation occurs between
117. dedicated for intelligent function modules are the instructions that facilitate programming using the functions of the intelligent function modules For example the OUTPUT instruction which is the instruction dedicated for serial communication modules allows data transmission in user specified message format with no handshaking protocol In this case the communication is possible without considering the buffer memory address of the objective serial communication module Serial communication module rset the channel 6 0 1 2 b 2 a b15 e to use by control trans y data ee _ Mission trans i Channel 2 mission A completion device should be designated for the instruction dedicated for intelligent function modules The designated completion device turns ON for one scan when the execution of the instruction dedicated for intelligent function modules is completed When the completion device turns ON another instruction dedicated for intelligent function modules can be executed to the same intelligent function module To use two or more instructions dedicated for intelligent function modules to one intelligent function module be sure to execute the next instruction dedicated for intelligent function modules after the completion device turns ON Instructions If the instruction dedicated for intelligent function modules are executed and Basic model QCPU is switc
118. devices used to designate character strings in sequence program They are designated by quotation marks e g ABCD1234 Usable characters All ASCII code characters can be used in character strings The Basic model QCPU is sensitive to uppercase and lowercase characters Number of designated characters Character strings extend from the designated character to the NUL code 00h You can use up to 32 characters for a character string in an instruction such as MOV POINT Character strings may be used with only the MOV instruction 10 50 10 50 11 PROCESSING TIMES OF THE BASIC MODEL QCPU MELSEC Q 11 PROCESSING TIMES OF THE BASIC MODEL QCPU This chapter describes the concept of the processing times of the Basic model QCPU 11 1 Scan Time Structure In the RUN status the Basic model QCPU performs the following processings cyclically Processing in RUN status 1 I O refresh time END processing of DUTY instruction No processing when the DUTY instruction is not executed 2 Processing time for instruction processed at END 3 Instruction execution time YES Y MELSECNET H refresh Y CC Link refresh 4 Module refresh time Y Refresh based on the intelligent function module parameters set using GX Configurator Scan time Calendar update processing No processing when the update command is not given 5
119. dule and output Y of the Basic model QCPU is produced to the output module intelligent function module The I O refresh is executed before the sequence program operation starts During constant scan execution the I O refresh is executed after the constant scan delay time has elapsed The I O refresh is executed at each constant scan cycle 4 3 3 Automatic refresh of the intelligent function module When automatic refresh of intelligent function modules is set communication with the intelligent function modules of the designated data is performed Refer to the manual for the intelligent function modules to use for details regarding of the automatic refresh setting of intelligent function modules 4 3 4 END processing This is a post processing to return the sequence program execution to step 0 after completing the whole sequence program operation processing once MELSECNET H or CC Link refresh processing e Automatic refresh of intelligent function module e Self diagnostics Communication with external device such as GX Developer e Processing of intelligent function module dedicated instruction 4 SEQUENCE PROGRAM CONFIGURATION amp EXECUTION CONDITIONS MELSEC Q 4 4 RUN STOP PAUSE Operation Processing The Basic model QCPU has three types of operation states RUN STOP and PAUSE states The Basic model QCPU operation processing is explained below 1 RUN Status Operation Processing a RUN status is when the seq
120. dule one of the intelligent function modules before being used 2 Communication with intelligent function modules The intelligent function module is equipped with memory buffer memory to store the data received from or output to external devices Basic model QCPU reads writes the data from to the buffer memory 8 1 Communication Between Basic model QCPU and Q series Intelligent Function Modules The following methods enable the communication between Basic model QCPU and intelligent function modules e Initial setting or automatic refresh setting using the GX Configurator e Intelligent function module device e Instructions dedicated for intelligent function modules e FROM TO instruction The following table shows the communication timing for the communication methods with intelligent function modules described above Communication timing Storage location l Communication method with intelligent function modules STOP gt Instruction 8 execution processing Intelligent ox coniowaor orason fe ft Automiaticremesh setting eee i aT Ge ay ee Inteligent function module device oO oo Instructions dedicated for intelligent function modules 4 O O FROM TO instruction a eS ee ee ee oe ee Communication timing Executed Not executed Storage location cece Can be stored Cannot be stored 1 Indicates whether the data d
121. during setting of write during RUN disable enable and restart communication RUN The command specified cannot be e Set the CPU module to STOP and restart 7168H sie executed during RUN communication Monitor e The QnA compatible 3C 4C frame was 3 716DH aot Used tot monitor registration Perform monitor registration again 7 e Check and correct the sent message of the communication e The number of points specified for e Check and correct the sent message of the 7E41H Data length error random read write exceeds the number device on the other end and restart of points enabled for communication communication e Check and correct the sent message of the Patcount oo f The requested number of points exceeds the range of the command device en the other end and restart communication The device specified does not exist FA Check and correct the sent message of the 7E43H Device error He device Specified Cannot ge device on the other end and restart specified for the corresponding SIUR communication command Do not give continuous requests from the device on the other end e Match the monitoring time of timer 1 with the time out period of the device on the other end Device point The number of access points is conen and correct ne sent message Oc ie 7E4FH p i p device on the other end and restart count error incorrect NS communication Request destination The request destination module I O C
122. e X Unusable 7 FUNCTION MELSEC Q b RS 232 connector specifications The following table indicates the applications of the RS 232 connector of the QOOCPU Q01CPU Signal Symbol 1 RD RXD SD TXD Send data 2 4 Mini Din 6 pins DSR DR EEREN female oeo DTR ER Data terminal read c RS 232 cable The following RS 232 cable can be used for connection of the QOOCPU Q01CPU with the personal computer GOT or the like QC30R2 cable length 3m e FKRK620 x KURAMO ELECTRIC manufactured Cable with a mini DIN connector on one side and without connector on the other side xk indicates the cable length which can be specified up to 15ms in 0 1m increments TE Effective length 6 Metal Signainame RD so se shell Q00 Q01CPU side FKRK620 Signal layout of Q00 Q01CPU side connector of FRRK620 ll eS Shield 7 FUNCTION MELSEC Q 2 Functions The serial communication function allows the MC protocol commands in the following table to be executed Refer to the following manual for details of the MC protocol e Q Compatible MELSEC Communication Protocol Reference Manual Command Processing Processing Points 0401 eads bit devices by 1 point ASCII 3584 points Batch read BIN 7168 points Gaiti j Beads bit devices by 16 points 480 words 7680 points in words 0401 Reads word devices by 1 point 480 words aes to bit devices by 1 point ASCII 3584 points
123. e MELSECNET H refresh destinations and the I O numbers of the CC Link remote I O system QJ61BT11 QJ71LP21 Allocation of QOOCPU input X and output Y possible 2 D gt 3 fe E pa D fo oa Remote station Remote station CC Link When using Basic model QCPU device input X and output Y in remote stations I O numbers that succeed the numbers used by the main base unit and extension base units input output modules and intelligent function modules will be allocated For example if X YO to X YFF are being used by the main base unit and extension base units input output modules and intelligent function modules then numbers above X Y100 can be used by the remote station However the I O numbers for remote stations should be set in consideration of additions to the main base unit and extension base units input output modules and intelligent function modules Example If 256 points from X Y0 to X YFF are being used by the main base unit and extension base units and 256 points from X Y100 to X Y1FF are to be held back for use with future additions then the situation shown in the diagram below is to be observed Input Output X Y I O numbers being used by the main base unit and extension base units Held back for future additions For CC Link remote station I O numbers that can be used by remote stations X Y7FF POINT If network parameter setting has not been made in a
124. e PLC For details regarding the formatting procedure by the GX Developer refer to GX Developer manuals Table 6 1 Memory capacity after formatting 1 Model Name Max Number of Program Stored QOOJCPU 58 kbyte QOOCPU 94 kbyte as QO1CPU 94 kbyte a POINT Program is stored in the program memory in 4 bytes units 2 Data Storage Data on parameter and program can be stored in the program memory For the types of data stored in the program memory see Section 6 1 1 The program memory is formatted by GX Developer when the user setting area in the system area is assigned 0 3k steps can be set to the user setting area of the system area in 1k step increments The user setting area data in the system area is used for registering monitor data from GX Developer connected to serial communication module The allocation of space for the user setting area will make it much easier to perform monitoring with GX Developer connected to the serial communications module Although the designation of a user setting area speeds up monitoring from GX Developer connected to serial communication module it also reduces the amount of space available for user files 6 FILES HANDLED BY BASIC MODEL QCPU MELSEC Q 6 3 Standard ROM 1 What is the standard ROM a The standard ROM is used for the ROM operation of the Basic model QCPU b Program stored in the standard ROM and booted read to the program memory after the setting is m
125. e PLC main module power is turned on If the external power supply is turned on first it could result in erroneous output or erroneous operation e When there are communication problems with the data link refer to the corresponding data link manual for the operating status of each station Not doing so could result in erroneous output or erroneous operation e When connecting a peripheral device to the CPU module or connecting a personal computer or the like to the intelligent function module to exercise control data change on the running PLC configure up an interlock circuit in the sequence program to ensure that the whole system will always operate safely Also before exercising other control program change operating status change status control on the running PLC read the manual carefully and fully confirm safety Especially for the above control on the remote PLC from an external device an immediate action may not be taken for PLC trouble due to a data communication fault In addition to configuring up the interlock circuit in the sequence program corrective and other actions to be taken as a system for the occurrence of a data communication fault should be predetermined between the external device and PLC CPU A CAUTION e Do not bunch the control wires or communication cables with the main circuit or power wires or install them close to each other They should be installed 100 mm 3 94 inch or more from each other Not do
126. e external contact is switched ON immediately prior to the refresh operation X5 then switches ON at the input refresh Y5E at step 56 switches ON and the external load switches ON at the output refresh following execution of the END instruction In this case the time lag between the external contact ON and the external load ON is 2 scan Fig 4 6 Output Y change in response to input X change 4 SEQUENCE PROGRAM CONFIGURATION amp EXECUTION CONDITIONS MELSEC Q 4 7 2 Direct mode 1 Definition of direct mode In the direct mode the communication with the input output modules is performed when executing sequence program instructions With Basic model QCPU direct mode I O processing can be executed by using direct access inputs DX and direct access outputs DY See 10 2 1 for direct access inputs See 10 2 2 for direct access outputs Basic model QCPU Remote input refresh area CPU operation processing area 3 2 GX Developer Input X input area a device 1 memory Output module e When an input contact instruction has been executed An OR operation is executed for the input module s input information 1 and peripheral device input area s input information 2 and the result is stored in the input X device memory This data is then used as input information 3 at sequence program execution e When an output contact instruction has been executed Output information 4
127. e input output processing format in which a batch communication with the input output module occurs at END processing A direct communication format is also possible by using direct access inputs outputs at the sequence program to enable direct communication with the input output module when the sequence program instructions are executed For details regarding direct inputs and direct outputs refer to Sections 10 2 1 and 10 2 2 respectively 1 Definition of refresh mode With the refresh mode batch communication with the input output modules occurs at END processing a Batch reading of the input module ON OFF information is executed in the Basic model QCPU s internal input device memory when END processing occurs This ON OFF data in the input device memory is then used for processing which occurs when a sequence program is executed The processing result of the output Y sequence program is output to the Basic model QCPU s internal output device memory and batch output of the ON OFF data in output device memory to the output module is executed when END processing occurs b Basic model QCPU Remote input Network refresh area module At input refresh CPU operation processing area Input X device ea memory 1 At input refresh GX Developer input area x1 Area for communication with input module 2 At output For device refresh memory N 1 Output module 1
128. eaeeaeeseesaeaeeaeesesaseateaeeeseaseaeeneneeteate 10 30 10 3 Internal System Devices c ccecseseceseseesesesesseseseseseescseseesescseaeesseaeseseeseaeseaeeeseseaeeeeesasseeseneesasaeenseeeaeateeeeeatacens 10 31 10 3 1 Function devices FX FY FD cc ccecciiaecenciiiiaeesieeerediadesieveaulizgesaeeeredlinnenasenedsccbeeac 10 31 10 3 2 Special relays S M r innir naaien aaaea di caceucdaczsat ubtecseathadsabsliaedsieaivatensegtieceadisaaseeate 10 33 10 3 3 Special registers SD i ring aiai asada iteagan aiaa 10 34 10 4 Link Direct Devices Jt Voi Josimi A EAEE EAA EE EEE AE AEE 10 35 10 5 Intelligent Function Module Devices Ul I GUl ee eeeseesesesseeceseeeseseeeseseseeeeeeseaeeeseeeeseateneasasaeeteeeaeasateneeeaeatens 10 38 10 6 Index Registers Leraian e enc vnc beac nc ve nce nc vnc denen a 10 39 10 6 1 Switching between main routine sub routine program and interrupt program seeeeeee 10 40 10 7 File Registers FR vcicticscahakesckeashathinetendhenchendhentbedbcnenendbenchendbcnebendbendbendbencbendbend boven chendbchebendbeebendbeenendbeasen 10 42 HORS INGSTUIG Neinei enna neh tuck hela achhel Tack hcliachctel ch hclchdhel Duck dh bd ld th a aches acta 10 44 10 9 Porte rs P szseisc2eseeadiesdsencsezdczscutadizedadedsaadeled cl tdedad cd adebat cd betel cd adebad cd bocdalad abebad cl bdebaltodeteadcd bieal ad adelal db beieldandietesdaees 10 45 10 10 Interrupt Pointers isch die akedb den adanddanadanddanadanddanadandendandda
129. eccseceesessessesseseeseeesee 6 3 J EW io Link register 10 35 DUY i oiiae iae renane aa aaa ae tae a ananas 10 25 EAX La LINK INput sees tteeeeeeteeessee 10 35 J ci Y C2 LINK output 10 35 E K Edge relay Vjosa 10 16 END processing csssssscscseessesseseesesresees 4 11 Deomal Consan snn 10 50 F L l L Latch relay hana 10 11 Fe VANUNGIATON sa Se E a Wia Lateh FUNCION sioiias ontroer 7 5 FD Punclign registon anata Cae 10 91 Latch relay L aseeseen 10 11 l l LED diS playin a a 7 39 Pie register E E 10 42 Enkdirec device ans he nT 10 35 File size ENEE paein iae a 6 13 Link register W 10 29 Funcion device FA FEP cesi AO Link relay B nonnen 10 17 FX Function input 10 31 Index 1 Index 1 Ind List of Interrupt factors eee eeeeeeeeeeeeee 10 47 App 10 Low speed retentive timer ST 0 06 10 21 Low speed timer T sssrin 10 19 M M Internal relay n 10 10 Macro instruction argument device VD 10 49 Main routine program eeeeeeeseeeeneeeneeees 4 3 N N N StiING ccecceceeeeeeeeeeeeeeeeeteeeeeeeeeenees 10 44 O Output Y onkaan a 10 8 P P Pointer ra aaa ae atai aiaa 10 45 Password nanoia a eaa 7 35 Pomat P oea AAR 10 45 Precautions when using timers 0 5 10 23 Processing at annunciator OFF 10 14 Processing at annunciator ON 06 10 12 Program MEMOLY ecceeceeeeeeeeeeeeeeeeteeeeeeeeeees 6
130. ed by unapproved modifications etc to the product by the user 3 When the Mitsubishi product is assembled into a user s device Failure that could have been avoided if functions or structures judged as necessary in the legal safety measures the user s device is subject to or as necessary by industry standards had been provided 4 Failure that could have been avoided if consumable parts battery backlight fuse etc designated in the instruction manual had been correctly serviced or replaced 5 Failure caused by external irresistible forces such as fires or abnormal voltages and Failure caused by force majeure such as earthquakes lightning wind and water damage 6 Failure caused by reasons unpredictable by scientific technology standards at time of shipment from Mitsubishi 7 Any other failure found not to be the responsibility of Mitsubishi or 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 possible after production is discontinued 3 Overseas service Overseas repairs shall be accepted by Mitsubishi s local overseas FA Center Note that the repair conditions at each FA Center may differ 4 Exclusion of chance loss and secondary loss from warranty l
131. ed in the System Area text box Format PLC memory Connection target information Connection interface COM1 lt gt CPU unit Target PLC fo Station no Host PLC type 001 Target memory Program memey x Format Type C Do not create a user setting system area the necessary system area only Create a user setting system area an area which speeds up monitoring from other stations System area 1 K steps 1 A maximum of 15k steps can be set in 1 k step modules as a system area Only 1 k step can correspond to one station monitor file Therefore a maximum of 15 station monitor files can be set 3 Precautions a Monitoring can be performed even if a station monitor file is not set but high speed monitoring cannot be performed The system area is in the same area as the program memory so the area of the stored program reduced when the system area is set b Once the user defined system area is allocated a single PLC will be accessible from 16 stations 7 FUNCTION MELSEC Q 7 11 Watchdog Timer WDT 1 What is Watchdog Timer WDT a b c The watchdog timer is an internal sequence timer to detect Basic model QCPU hardware and or sequence program error When the watchdog timer expires a watchdog timer error occurs The Basic model QCPU responds to the watchdog timer error in the following way 1 The Basic model QCPU turns off all outputs 2 The front mounted RUN LED goes off and the ERR
132. een the main routine program s FEND and END instructions e Because there are no restrictions regarding the order in which interrupt programs are created there is no need to set the interrupt pointers in ascending order when creating multiple interrupt programs MAIN Basic model QCPU N Program memory Main routine Write Poga oF Program file FEND c vo IRET Interrupt lt program i32 lt vit Se ae IRET 128 lt y gt H IRET END Interrupt pointer 1 See Section 10 10 for details regarding interrupt factors and interrupt pointers 4 SEQUENCE PROGRAM CONFIGURATION amp EXECUTION CONDITIONS MELSEC Q 3 Executing interrupt programs a Torun an interrupt program interrupts must have been enabled by the El instruction 1 1 If interrupt factors occur before interrupts are enabled the interrupt factors that occurred are stored and the interrupt programs corresponding to the stored interrupt factors are executed as soon as interrupts are enabled 2 If the same interrupt factor occurs more than once the interrupt factors that occurred are stored or discarded Interrupt program example Interrupt program execution Program execution Interrupt program for I0 activated Main routine s Interrupt program program 7 for 129 activated I 1 1 e Niena of main CFEND H
133. em When the power When reset is When STOP is turned on executed to RUN The Input Output module initialization x Boot from the standard ROM Device initialization of the range not latched bit device OFF word device 0 Execution of self diagnosis in the QOPU CPU installed modules ee Start of the MELSECNET H network information setting and network communication x x x x x i gt a O Q 3 S D j n Ex v lo Q feb O 5 O pay gt oO O 3 O oO e i witch setting of intelligent function module o etting of CC Link information etting of Ethernet information etting of serial communication function O executed x not executed x1 When parameters or programs are changed in the STOP status reset by the RUN STOP RESET switch When the RUN STOP RESET switch is turned from STOP to RUN without the reset RUN LED flashes When the RUN STOP RESET switch is turned from RUN to STOP to RUN again the Basic model QCPU goes in the RUN status and the When STOP to RUN status becomes effective However fully note that the pulsing instruction PLS L_ P may not operate properly since the previous information is not continued depending on program modifications 4 SEQUENCE PROGRAM CONFIGURATION amp EXECUTION CONDITIONS MELSEC Q 4 3 2 I O refresh I O module refresh processing In I O refresh an input X is received from the input module intelligent function mo
134. en the DX5 input ON and the DY5E output ON Slowest possible DY5E ON LD DX5 OUT DY5E Lag time Maximum of 1 scan The slowest possible DY5E output ON occurs if the DX5 input is switched ON immediately after the step 55 operation In this case the DY5E output will switch ON during the next scan This condition represents the maximum time lag 1 scan between the DX5 input ON and the DY5E output ON Fig 4 9 Output Y Change in Response to Input X Change 4 SEQUENCE PROGRAM CONFIGURATION amp EXECUTION CONDITIONS MELSEC Q 4 8 Numeric Values which Can Be Used in Sequence Programs Numeric and alphabetic data are expressed by 0 OFF and 1 ON numerals in the Basic model QCPU This method of expression is called binary code BIN The hexadecimal HEX expression method in which BIN data are expressed in 4 bit units and the BCD binary coded decimal expression method are also possible for the Basic model QCPU Real numbers may also be used See Section 4 8 4 The numeric expressions for the BIN HEX BCD and Decimal DEC notations are shown in Table 4 1 below Table 4 1 BIN HEX BCD and Decimal Numeric Expressions BCD DEC Decimal HEX Hexadecimal BIN Binary Binary Coded Decimal l i 0 E20 ro mrmooaawroao 0144 4444 1141 _ 0114 4444 14113 1000 0000 0000 1000 0000 0000 1000 0000 1000 0000 0000 id 1111 1111 1111 1111
135. ent unit of the low speed retentive timer and high speed retentive timer is set with parameters Low speed retentive timer 1 to 1000ms 1ms unit default 100ms Ke 2 fe a Q 2 gt o 5 w Z o Ko E Z High speed retentive timer 0 1 to 100ms 0 1ms unit default 10ms e Normal counter default 512 points CO to 511 Counter C e Interrupt counter maximum 128 points default 0 point set with parameters Data register D Default 11136 points DO to 11135 Link register W Default 2048 points WO to 7FF Annunciator F Default 1024 points FO to 1023 Edge relay V Default 1024 points VO to 1023 RE Nome 32768 points RO to 32767 File Register 32768 points ZRO to 32767 3 HARDWARE SPECIFICATION OF THE CPU MODULE MELSEC Q Performance Specifications continued Padi tem QO0JCPU QOO0CPU Q01CPU emar 1024 points SWO to 3FF Step relay S 3 2048 points SO to 2047 10 points Z0 to 9 300 points PO to 299 128 points 10 to 127 The specified intervals of the system interrupt pointers 128 to The number of device 131 can be set with parameters 0 5 to 1000ms Cunit in 0 5 ms points is fixed Default 128 100ms 129 40ms 130 20ms 131 10ms 5 1024 points SDO to 1023 16 points FXO to F Device for direct access to link device MELSECNETHH use only Specified form at JOO XOO JOO OO JOO Woo JOO BOO JOO SWOO JOO SBOO piece tunet dedeyi Device for direct access to the
136. er List Continued Stores the Transmission transmission speed speed storage specified in the serial K96 9 6kbps K192 19 2kbps K384 38 4kbps K576 57 6kbps K1152 115 2kbps S Power on or reset area communication setting F 65 4321 0 Stores the Communication communication setting SD101 jsetting storage specified in the serial Sumcheck yes no S Power on or reset area communication Online program correction setting 0 No setting 0 Disabled 1 Yes 1 Enabled Stores the message Message waiting waiting time specified 0 No waiting time time storage in the serial 1 to FH Waiting time unit 10ms S Power on or reset area communication Defaults to 0 setting Stores the data Data sending sending result when result storage he serial area communication unction is used Stores the data Data receiving receiving result when Stores the error code at the time of data sending using the serial communication function result storage he serial Stores the error code at the time of data receiving area communication unction is used sor 30 The numbers of output modules whose fuses have blown are input as a bit pattern in units of 16 points so 31 If the module numbers are set by parameter the parameter set numbers are stored so 32 so 33 Fuse blown the modules whose SD134 module fuses have blown Bit pattern in units of _ Also detects blown fuse condition at remote station
137. ersonal computer or display device With the RS 232 interface of the QOOCPU or Q01CPU connected with a personal computer display device or the like the MELSEC communication protocol hereafter refered to as the MC protocol can be used to make communication RS 232 cable Personal computer display device Communication in MC protocol The serial communication function only allows communication in the MC protocol QnA compatible 3C frame format 4 QnA compatible 4C frame format 4 5 The serial communication function does not allow communication in the nonprocedure protocol or bidirectional protocol Refer to the following manual for the MC protocol Q Corresponding MELSEC Communication Protocol Reference Manual 8 Built in standard ROM The flash ROM for storing parameters and sequential program is installed as a standard feature for easier protection of important program 9 Easy operation of CC Link system The I O signals for up to 32 remote I O stations can be controlled without parameters when one master module of the CC Link system is used The remote I O stations can be controlled in a similar manner to controlling the input output modules installed on the base unit 10 Blocking an invalid access using the file password Program can be prevented from being altered through invalid access by presetting the access level reading prohibited writing prohibited in the file password 1 OVERVIEW MELSEC Q 1 2 Pr
138. esignated by the GX Configurator of the device initial value etc is stored in Basic model QCPU or in an intelligent function module x2 Represents the internal memory of Basic model QCPU x3 Intelligent represents an intelligent function module x4 Represents the program using the intelligent function module device the FROM TO instruction or the instructions dedicated for intelligent function modules 8 COMMUNICATION WITH INTELLIGENT FUNCTION MODULE MELSEC Q 8 2 Initial setting and automatic refresh setting using GX Configurator 1 Initial and automatic refresh settings of intelligent function modules Installing the GX Configurator compatible with the intelligent function module enables the initial setting and automatic refresh setting with GX Developer When the initial setting and automatic refresh setting of the intelligent function module is designated with GX Developer you can write read data without creating the program for the communication with the intelligent function module Moreover you can conduct the initial setting or automatic refresh setting without designating the buffer memory address of the intelligent function module 2 Setting using the GX Configurator This section describes the example to set the initial setting and automatic refresh setting of A D conversion module Q64AD a Initial setting The initial setting of Q64AD offers the following four settings e Designation of enable disable A D conversio
139. esssesesesesescsesesesesescseseaeacaeacaeacaeacaeacassneeeeeeeeeeeeesees 4 12 4 5 Operation Processing during Momentary Power Failure csecsesecesesseeceeeeeeseseeeeeeeeseeeeeeseaeeteeeeeseateataeeneees 4 13 4 6 Data Clear Processing nianse e aeaiiai aeiae igela ia aiaiai ekaa 4 14 4 7 Input Output Processing and Response Lag sessssesecesesseseseseeeseseeeesesceeeneeeseseseeeeseaeaeeeeeesaeeteeseeeeeteeeenasaeeneees 4 15 EAI ROSITA a a a ia ea a 4 15 Are Biret modena Aa a AE A R T A une AREE AAEE AEE RA 4 18 4 8 Numeric Values which Can Be Used in Sequence Program sscseecesecteseseseeseseseeeseseseeteeeseaeeteeseeaeateteeeaees 4 20 4 8 1 BIN Binary Code ccccecceececceceeseeeceeceeeeseeaecaecaesaesaecaeceeseaeeaesaeseeseaesaesaeseeseaesaesaeseeeeaesaesaeseaseaeeaes 4 22 482 HEX Hexadecimal anihiaki agent ha nihil adil id aii lad ate al ad aia al adints 4 23 4 8 3 BCD Binary Coded Decimal cccecceseecceceeseeseeeeceeeeneeaecaeeeeeeaeeaecaeeaaeeaesaesaeseaeeaecaeseeeaesaseeseateaes 4 24 4 9 Character String Data ceceesccsesscesssesscessssesesesesseseseseeseseseseeasseseseesasseseeeeaeaeseaeeasacseseeeeaeaeseseeesacseaeetesesseaeeesataees 4 25 5 1 Relationship Between the Number of Stages and Slots of the Expansion Base Uniit ccceeeeeeeee 5 1 Bish QOOISS Pe ranan hi tect beens she a hea he cbetesten oe he cteed spas sles Sten pct a Sustontabenscdactust cat a N 5 1 52 QO0C PU OOT GPUS
140. estore index register data ZO to Z9 when switching between main routine sub routine program and a low speed execution type program or between an interrupt program If you do not want to write date onto index registers when using an interrupt program turn on the High speed execution check box in the Interrupt program fixed program setting section of the PLC System sheet in the PLC Parameter dialog box This will enable you to switch between program quickly 1 When the High speed execution check box is OFF a When the main routine sub routine program is switched to the interrupt program the main routine sub routine program s index register value is first saved and is then transferred to the interrupt program b When the interrupt program is switched to the main routine sub routine program the saved index register value is reset Z0 1 Index register storage area Main routine Switch Main routine Executed program sub routine ing Reset sub routine l program aed nterrupt program i program i Transf Index register value Zo 1 Eed gt Z0 1 to Z0 3 Z0 1 f Saved Reset x For interrupt program Z0 is changed to 3 Word devices should be used to transfer index register data from an interrupt to a main routine sub routine program 10 40 10 40 10 DEVICES MELSEC Q 2 When the High speed execution check box is ON a If a main routine sub routine program is switched to an
141. fresh range portion of the link device range specified by the refresh parameters the link module s link device data will be rewritten when a refresh operation occurs Therefore when writing by link direct device the same data should also be written to the Basic model QCPU related devices designated by the refresh parameters Refresh parameter settings Network No 1 Basic model QCPU W0 to W3F lt gt Network module LWO to LW3F Sequence program MOV K100 W1 100 is written to link module LW1 when a refresh occurs MOV w1 J1 W1 100 is written to link module LW1 when the MOV instruction is executed Writing timing z g _Basic model QCPU MOV K100 W1 Writing at instruction execution MOV W1 J1 W1 S wo j L gt W1 Ww _ Network module _ Writing at instruction execution Writing at refresh operation 3 When data is written to another station s writing range using a link direct device the data which is received from that station will replace the written data b Reading Reading by link direct device is possible in the entire link device range of network modules 10 36 10 36 10 DEVICES MELSEC Q 3 Differences between link direct devices and link refresh The differences between link direct devices and link refresh are shown in Table 10 4 below Table 10 4 Differences Between Link Direct Devices and Link Ref
142. from the setting in the serial communication function S Error e Remains ON if the mode is restored to normal thereafter Error information ON Cleared e Turns ON when the error codes stored in SM110 SM111 SD110 U clea and SD111 are cleared Activated when turned from OFF to ON OFF Normal Turns ON when an overrun error occurred in the serial SM113 S Error S Power on or reset S RS232 communication f OFF Normal Turns ON when a parity error occurred in the serial communication Error SM114 Parity error ON Abnormal rior S Error OFF Normal Turns ON when a framing error occurred in the serial SM115 Frami S Error mns raming eOr ON Abnormal communication error App 2 App 2 APPENDICES MELSEC Q Special Relay List 2 System information Explanation Set by When Set SM203_ STOP contact STOP state e Goes ON at STOP state S Status change SM204 PAUSE contact PAUSE state Goes ON at PAUSE state S Status change PAUSE enable OFF PAUSE disabled e PAUSE state is entered if this relay is ON when the remote PAUSE u coil ON PAUSE enabled contact goes ON Device test OFF Device test not yet Mi y e Comes ON when the device test mode is executed on GX executed S Request Developer ON Device test executed P When this relay goes from OFF to ON clock data being stored from D210 through SD213 after execution of END instruction for changed U scan is written to the clock device
143. function version of the Basic model QCPU The product information list of the system monitor also allows you to confirm the function versions of the intelligent function modules Serial No Function version Product Information List PLC Q Intelli Q 0 a 1 QO1LCPU QU7LE71 32pt None None None None None None 0000 sior Type series model nane Points 1 0 no master ruc 030510000000000 020810000000000 CSY file creating Close 3 PERFORMANCE SPECIFICATION MELSEC Q 3 PERFORMANCE SPECIFICATION The table below shows the performance specifications of the Basic model QCPU Performance Specifications Model a po Mode _ f k Qo0JCPU QOOCPU Q01CPU Control method Repetitive operation of stored program Direct input output is possible by direct I O control method Refresh mode input output specification DXD DYD Programming language Sequence control dedicated Relay symbol language logic symbolic language The ie Pea Is language not applicable Processing speed Sequence instruction MOV DO D1 0 70us 0 56s oss si 249 Total number of instructions excluding intelligent function module dedicated instructions Constant scan Function to make the scan time 2 to 2000 ms configurable in increments of 1 ms Sel aa values constant to specify Program 1 2 8k steps 8k steps 14k steps ae capacity 32 kbyte 32 kbyte 56 kbyte Program memory Dr
144. g processing Program XO external input OFF QCPU s X0 TO coil TO contact 10 ms measurement s gt 00 b 4 4 Measured value at END instruction w M TO present value Input reading timing Timer accuracy 1 scan 1 scan time timer time limit setting to 1 scan time 10 22 10 22 10 DEVICES MELSEC Q c The timer response accuracy from the point when input X reading occurs until the point when the output occurs is 2 scan time timer time limit setting Precautions when using timers The following are a few precautions regarding timer use a A given timer cannot be designated by OUT T more than once in a single scan If it is the timer s present value will be updated at each OUT Ti instruction resulting in a meaningless measurement OUT OUT OUT OUT OUT END Ti Th Ti END T Wee Sequence i program gt Present value is updated 1 Scan a b When a timer for example T1 coil is ON the OUT T1 instruction cannot be skipped using a CJ instruction etc If the OUT T instruction is skipped the timer s present value will not be updated c Timers cannot be used in interrupt program d Ifthe timer set value is 0 the contact goes ON when the OUT Ti instruction is executed e Ifthe setting value changes to a value which is higher than the present val
145. gent function Yes No to synchronize the start of an intelligent function module is synchronized module 10 ms to 2000 ms 10 ms units Section 4 2 2 So Stop Contnus Section 7 1 5 C Checked hecked Not checked Section 7 15 INoseting o h ms to 2000 ms 1 ms units Section 7 2 9 PARAMETER LIST MELSEC Q Table 9 1 Parameter List continued These settings designate the number of points for each device the latch range Devi i enice setings and the local device range Number of device points Designates the number of device points used Latch 1 first last Set the latch range where data can be cleared by remote latch clear operation Latch clear valid first device number last device number Latch clear invalid first device number last device number VO allocations Set the type of the module loaded Set the model name of the module loaded CPU module not used User s memo Model name I O allocation Points Set the number of points of the corresponding slot Start XY i r Set the first I O number of the corresponding slot First O numbe Set the model name of the main or extension base unit used Base model name CPU module not used User s memo Power model Set the model name of the power supply module loaded on the main or extension name base unit CPU module not used User s memo Increase cable name Slots Set the number of slots of the main or extension base unit Set the number of slots to all base u
146. gistration monitor x3 Time taken when a 100 step ladder has been added 4 Indicates that access is made via MELSECNET H Ethernet CC Link or serial communication module b Communication with serial communication module or Ethernet interface module Time to make communication with the serial communication module or Ethernet interface module Refer to the following manual for communication time with the corresponding module Q Corresponding MELSEC Communication Protocol Reference Manual 7 Common processing time Common processing of the CPU module processed in the system The common processing times are the values in the following table CPU Type QO0JCPU QOOGPU QO1CPU Common processing time ms The processing times in the above table assume that the constant scan function is not used When the constant scan function is used wait processing is performed for the period of constant scan setting shortage 11 3 Other Processing Times 1 Constant scan accuracy Without Monitor With Monitor Without Without Monitor Sum of the following times 090 interrupt program execution time Refer to b in Section 11 2 3 1 Time indicated in With Monitor Without User Interrupt field on the left 2 Sum of interrupt program execution times Unit ms With monitor Indicates the status in which monitor is being performed with GX Developer connected or communication with the external device is being made usi
147. git value designate the first 2 digits For X YFO X Y1FO Designate 1F Setting range QOOJCPU 00H to FH Q00 Q01CPU 00H to 3FH When digital output values of channels CH 1 to CH 4 of the Q64AD Type Analog Digital Conversion Module X Y0 to X YF installed in Slot 0 of the main base unit are stored in DO to D3 the output input number and the buffer memory address are specified as shown below Q64AD 11 CH 1 Digital output value 12 CH 2 Digital output value 13 CH 3 Digital output value 14 CH 4 Digital output value 2 Processing speed The processing speed for intelligent function module devices is a Read write from to the buffer memory of the intelligent function module is slightly faster than the processing speed of FROM TO instruction For example MOV U0 G11 DO b When using a single instruction to perform read from the buffer memory of the intelligent function module and another processing use the sum of processing speed of FROM TO instruction and processing speed of instruction as a guideline For example U0 G11 DO D10 If the same buffer memory of the same intelligent function module is used two or more times in a Sequence program the processing speed can be increased by using the FROM instruction to read that buffer memory data to a Basic model QCPU device 1 1 For details regarding buffer memory addresses and applications refer to the manual for
148. gram memory is shown below 1 Writing file Program capacity parameter O sequence program __ 5000 steps 20000 bytes x Represents the program capacity displayed with the GX Developer total number of file headers and created program steps See Section 6 8 2 Writing conditions a Parameter Default setting 522 bytes 3 File memory capacity calculations eee name File capacit Memory capacity Parameter _ 522 bytes 522 bytes Sequence Sequence program capacity 20 000 bytes 20 000 bytes program File memory capacity total 20 522 bytes A program memory capacity in units of 4 bytes 1 step is secured 7 FUNCTION MELSEC Q 7 FUNCTION Function of Basic model QCPU module is as follows 7 1 Function List Functions of Basic model QCPU are listed below Function to make the scan time constant Section 7 2 Latch function Function to maintain the device data when performing the reset operation during power off Section 7 3 This function selects the output Y status re output of status before STOP output of status after lecti f itchi i Selection of output status at switehing execution of operation when the Basic model QCPU is switched from the STOP status to the RUN Section 7 4 from STOP to RUN Sas Remote operation Remote RESET Section 7 6 3 Remote latch clear Function to clear the Basic model QCPU latch data Section 7 6 4 Selection of input response time of Q This function selec
149. he QA1S60B QA65B cannot be connected as an extension base unit Notes 5 Connect the extension cable from OUT of the extension cable connector of the base unit to IN of the extension base unit on the next stage 6 If 17 or more modules are installed an error will occur 7 When bus connected the GOT occupies one extension stage and one slot 8 The QOOJCPU processes the GOT as a 16 point intelligent function module Hence connection of one GOT decreases the number of controllable points on base units by 16 points 9 The bus extension connector box A9GT QCNB cannot be connected to the QOOJCPU It should be connected to the extension base unit 2 SYSTEM CONFIGURATION MELSEC Q 2 1 2 Q00 Q01 CPU This section explains the equipment configuration of a Q00 Q01CPU system and the outline of the system configuration 1 Equipment configuration J oo A MITSUBISHI l RHIM BATTERY Basic model QCPU Battery Q00CPU Q01CPU Q6BAT 0 5 CUTOUT F maa T Power supply module Input output module Intelligent function module Main base unit Q33B Q35B Q38B Q312B 1 0 00 lt J uo wooo m Extension cable cs es coe 8 eee Q52B Q55B QC30B QC50B QC100B Q63B Q65B Q68B
150. he expansion stages set it in the ascending order so that the same No is not set simultaneously by two extension base units Notes 4 The QA1S60B QA65B cannot be connected as an extension base unit 5 Connect the extension cable from OUT of the extension cable connector of the base unit to IN of the extension base unit on the next stage 6 If 25 or more modules are installed an error will occur 7 When bus connected the GOT occupies one extension stage and one slot 8 The Q00 Q01CPU processes the GOT as a 16 point intelligent function module Hence connection of one GOT decreases the number of controllable points on base units by 16 points 2 SYSTEM CONFIGURATION 2 1 3 Configuration of GX Developer al Basic model QCPU QO0JCPU Basic model QCPU QO0CPU Q01CPU RS 232 cable QC30R2 AEE Se LOSE ESI S lt Ee Pr LEE PEERS c SEES LY O MELSEC Q Personal Computer GX Developer Version 7 or later 2 SYSTEM CONFIGURATION MELSEC Q 2 2 Precaution on System Configuration This section describes hardware and software packages compatible with Basic model QCPU 1 Hardware a The number of modules to be installed and functions are limited depending on the type of the modules i Limit of number of Q Series MELSECNET H QJ71LP21 QU71BR11 QU71LP21 25 ne
151. he sequence program After changing the setting the sequence program must be read from the Basic model QCPU to GX Developer and then they must be written back to it again 10 4 10 4 10 DEVICES MELSEC Q 10 2 1 Inputs X 1 Definition a Inputs are commands or data transmitted to the Basic model QCPU from a peripheral device by push button switches selector switches limit switches digital switches etc Push button switch Selector switch Input X Sequence operation Digital switch b The input point is the Xn virtual relay inside the Basic model QCPU with the program using the Xn s N O contact or N C contact Virtual relay Programmable controller Input ladder external device Program Figure 10 1 Inputs X c There are no restrictions regarding the number of Xn N O contacts and N C contacts used in a program No restrictions regarding the quantity used Figure 10 2 Input X Used in Program 10 5 10 5 10 DEVICES MELSEC Q 2 Reading the inputs a There are 2 types of input refresh inputs and direct access inputs 1 Refresh inputs are ON OFF data read from the input module using the refresh mode 1 CPU module Input module Acquisition of ON OFF data Input refresh area ON OFF data These inputs are indicated as X1 in the sequence program For example
152. hed from RUN to STOP before the completion device turns ON the completion device turns ON one scan later when Basic model QCPU is switched to RUN next time For the instruction dedicated for intelligent function modules and the completion device refer to the manual of the intelligent function module being used 8 COMMUNICATION WITH INTELLIGENT FUNCTION MODULE MELSEC Q 8 5 Communication Using FROM TO Instruction 1 FROM TO instruction At the execution of the FROM TO instruction the data stored in the buffer memory of the intelligent function module can be read or data can be written to the buffer memory of the intelligent function module The FROM instruction stores the data read from the buffer memory of the intelligent function module to the designated device The TO instruction writes the data of the designated device to the buffer memory of the intelligent function module 1 For the details of the FROM TO instruction refer to the following manuals QCPU Q mode QnACPU Programming Manual Common Instructions 2 For the details of the buffer memory of the intelligent function module refer to the manual of the intelligent function module being used 9 PARAMETER LIST MELSEC Q 9 PARAMETER LIST There are two types of promoters used in Basic model QCPU s procedures PLC parameters that are used when operating a PLC and network parameters that are used when connecting to the MELSECNET H Ethernet or CC Link system
153. hen on again POINT 1 If Remote RESET is executed when the Basic model QCPU is stopped due to an error the Basic model QCPU enters the operation state set at the RUN STOP RESET switch after it is reset 2 Even if the Allow check box of the Remote reset section in the PLC System sheet of the PLC Parameter dialog box the remote process of the GX Developer is completed However the reset process does not proceed in the Basic model QCPU and therefore it is not reset If the state of the Basic model QCPU does not change though a reset process is performed at the GX Developer check if the Allow check box of the Remote reset section in the PLC System sheet of the PLC Parameter dialog box is turned on 7 FUNCTION 7 6 4 Remote Latch Clear MELSEC Q 1 What is Remote Latch Clear 2 a The remote latch clear resets the device data latched to the Basic model QCPU using the GX Developer function or other function when it is at the STOP state Remote Latch Clear Method The remote latch clear can only be performed from GX Developer function or serial communication module To perform the remote latch clear follow the following steps a b c Use the RUN STOP RESET switch or the remote STOP to place the Basic model QCPU to the STOP status Use the Latch Clear to bring the Basic model QCPU to the Latch Clear status 1 The GX Developer function operations are performed with on line remote o
154. hen the Basic model QCPU is at RUN state use remote STOP to arrange the STOP state c Reset Basic model QCPU with the remote RESET operation 1 For the GX Developer function this is performed in on line remote operation 2 The serial communication module and Ethernet interface module are controlled by commands complying with the MC protocol For details of the MC protocol refer to the following manual Q corresponding MELSEC Communication Protocol Reference Manual 7 17 7 17 7 FUNCTION MELSEC Q 3 Precautions a To perform the remote RESET turn on the Allow check box of the Remote reset section in the PLC System sheet of the PLC Parameter dialog box and then write parameters onto the Basic model QCPU If the Allow check box is not checked a remote RESET operation is not performed b Remote RESET cannot be performed when the Basic model QCPU is at the RUN state c After the reset operation is complete the Basic model QCPU will enter operation state set at the RUN STOP RESET switch 1 With the RUN STOP RESET switch in the STOP position the Basic model QCPU enters into the STOP status 2 With the RUN STOP RESET switch in the RUN position the Basic model QCPU enters into the RUN status d Take care that Remote RESET does not reset Basic model QCPU if there is an error in the Basic model QCPU due to noise If Remote RESET does not reset use the RUN STOP RESET switch to reset or turn the PLC off t
155. hese manuals e Networks Far Q MELSECNET H Network System Reference Manual PLC to PLC network jena App 1 APPENDICES MELSEC Q Special Relay List 1 Diagnostic Information Explanation Set by When Set d ON if diagnosis results show error occurrence OFF No error i f ON Error Includes external diagnosis S Error e Stays ON subsequently even if normal operations restored Diagnostic errors Self diagnostic OFF eee Comes ON when an error occurs as a result of self diagnosis S Error error ON Self diagnosis Stays ON subsequently even if normal operations restored OFF No error common mace common information When SM0 is ON ON if there is error common information S Error information ON Error common information OFF No error common eee Done When SMO is ON ON if there is error individual information S Error information ON Error common information SM50 OFF gt ON Error reset e Conducts error reset operation OFF Normal ON if battery voltage at CPU drops below rated value we E SM3 Battery low laten ON Battery low Stays ON subsequently even after normal operation is restored SError SM52 Battery low OFF Normal e Same as SM51 but goes OFF subsequently when battery voltage S Error ON Battery low returns to normal Comes ON it a momentary power interruption of less than 20ms OFF AC DC DOWN not occurred during use of the AC power supply module and reset by AC DC DOW
156. iability Regardless of the gratis warranty term Mitsubishi shall not be liable for compensation to damages caused by any cause found not to be the responsibility of Mitsubishi chance losses lost profits incurred to the user by Failures of Mitsubishi products damages and secondary damages caused from special reasons regardless of Mitsubishi s expectations compensation for accidents and compensation for damages to products other than Mitsubishi products and other duties 5 Changes in product specifications The specifications given in the catalogs manuals or technical documents are subject to change without prior notice 6 Product application 1 In using the Mitsubishi MELSEC programmable logic controller the usage conditions shall be that the application will not lead to a major accident even if any problem or fault should occur in the programmable logic controller device and that backup and fail safe functions are systematically provided outside of the device for any problem or fault 2 The Mitsubishi general purpose programmable logic controller has been designed and manufactured for applications in general industries etc Thus applications in which the public could be affected such as in nuclear power plants and other power plants operated by respective power companies and applications in which a special quality assurance system is required such as for Railway companies or National Defense purposes shall be excluded from the progra
157. ies whether to bring the start of a CPU module into synchronization with the Module synchronization i i start of an intelligent function module PLC RAS settings These settings are used for the RAS function WDT wer wor setting Set the watchdog timer of the CPU module settings r Designates the CPU module operation mode to be established when an error is Operation mode at error occurrences detected Designates whether or not to detect a specified error Designates the constant scanning time 9 PARAMETER LIST MELSEC Q Default Value Setting Range Reference Section Max of 10 characters No setting Max of 64 characters hooms S h ms to 1000 ms 1 ms units Section 10 2 10 Hooms ms to 100 0 ms Section 10 2 10 No setting XO to X7FF Section 7 6 1 Disabled Enabled Disabled Section 7 6 3 Previous status produce the status of Produce the status of an output X before STOP Clear the Section 7 4 ection an output X before STOP output output is 1 scan later QOOJCPU 16 points 32 points 64 points 128 points 256points QOOCPU Q01CPU 16 points 32 points 64 points 128 Section 5 6 1 points 256 points 512 points 1024 points CO to C13408 Counter setting points can be set up to 128 Section 10 2 11 128 100 0 ms 129 40 0 ms l 130 20 0 ms 2 to 1000 ms 1 ms units Section 10 10 131 10 0 ms The high speed execution is disabled Enable Disable the high speed execution Section 4 1 3 The start of an intelli
158. if the constant scan time is reached during interrupt program execution the constant scan cannot be finished unless the interrupt program ends When the interrupt program is used the constant scan time may delay by the interrupt program execution time Refer to QCPU Q mode QnACPU Programming Manual Common Instructions for the command processing time 7 FUNCTION 7 3 Latch Functions MELSEC Q 1 What is Latch Functions a The values of each Basic model QCPU device are set back to the default bit device OFF and word device 0 when e The PLC power is turned on e The reset operation is performed e There is a momentary power failure for more than the permissible amount of time Latch is a function to maintain the device details when the above conditions occur The availability of latches does not affect the operation performed by a program Latch can be used to maintain the production count defective count address and other data to continue control if the PLC is powered OFF reset operation is performed or an instantaneous power failure occurs for longer than the permissible time during management of the above data for continuous control The following devices can use the latch function The default latch range is only the latch relay 1 Latch relay L 2 Link relay B 3 Annunciator F 4 Edge relay V 5 Timer T 6 Retentive timer ST 7 Counter C 8 Data register D 9 Link regis
159. ill be counted e During execution of sequence program instructions e During interrupt program execution e During execution of a fixed scan execution type program c The maximum counting speed of the interrupt timer is determined by the longest processing time of the items shown below e Instruction with the longest processing time among the instructions used in the program e Interrupt program processing time e The processing time of a fixed scan execution type program d The use of too many interrupt counters will increase the sequence program processing time and may cause a WDT ERROR If this occurs either reduce the number of interrupt counters or reduce the counting speed for the input pulse signal e The interrupt counter s count value can be reset by using the RST Ci instruction in the sequence program prior to the FEND instruction f The interrupt counter s count value can be read out by using the sequence program MOV instruction 10 27 10 27 10 DEVICES MELSEC Q 10 2 12 Data registers D 1 Definition a Data registers are memory devices which store numeric data 32768 to 32767 or OOOOH to FFFFH b Data registers consist of 16 bits per point with reading and writing executed in 16 bit units b15 a c Ifthe data registers are used for 32 bit instructions the data will be stored in registers Dn and Dn 1 The lower 16 bits of data are stored at the data register No Dn designated
160. in 16 bit modules d Ifthe file registers are used for 32 bit instructions the data will be stored in registers Rn and Rn 1 The lower 16 bits of data are stored in the file register No Rn designated in the sequence program and the upper 16 bits of data are stored in the designated file register No 1 For example if file register R2 is designated in the DMOV instruction the lower 16 bits are stored in R2 and the upper 16 bits are stored in R3 DMOV DO i Two file registers can be used to store numeric data from 2147483648 to 2147483647 or from OH to FFFFFFFFH Processing object R2 R3 R3 R2 Upper 16 bits Lower 16 bits je ced e Thecontent of the file register is retained even when the power is turned off or reset It is not initialized even if latch clear is conducted Use a sequence program to initialize the file register when the power is turned off or reset For example to clear the RO to R2047 file registers upon power on of the PLC write 0 using an FMOV instruction f Specify the file registers as RO to R32767 The file registers may also be specified as ZRO to ZR32767 10 42 10 42 10 DEVICES MELSEC Q 2 Precautions for use of file registers Performing write read to from 32k or more points of file register numbers will not result in an error However note that performing read from file registers will store indefinite data 3 File register deletion
161. indicates differences between the Basic model QCPU QO0JCPU QOOCPU QO1CPU CPU module Power supply CPU module module Main base unit Stand alone CPU module 5 slots Integrated type Necessary Q33B Q35B Q38B Q312B Extension base unit Connectable Q52B Q55B Q63B Q65B Q68B Q612B Number of extension stages Up to 2 stages Up to 4 stages Number of input output modules to be 16 modules 24 modules installed Power supply module Extension Unnecessar base unit Necessary Q61P A1 Q61P A2 Q62P Q63P No External interface ne Yes transmission rate 9 6kbps 19 amps 38 4kbps 57 6kbps 115 2 kbps Processing speed LD X0 0 20uUs 0 16us 0 10us Sequence instruction MOV DO D1 Bk steps 32 kbyte Bk steps 32 kbyte 14k steps 56 Kbyte Program memory SB kbyte Memory Program memory 58 kbyte 94 kbyte capacity Standard RAM s i y O 64 kbyte Standard ROM 58 kbyte 94 kbyte The number of device points can be changed within the range of 16 4 kbyte Number of input output devices points Remote I O is contained 2048 pOINtS Number of input output points p points 1024 points File register Yes 32k points fixed lt Sak p ___Yes Sek points fed _ fixed Serial communication function ae using the RS 232 totes of the CPU module amp 1 step of the program capacity is 4 Bytes 1 OVERVIEW MELSEC Q 1 1 Features 1 Many controllable input output points As the number of input output points accessible to
162. ing parameter and program created at the GX Developer to the CPU module About the Generic Terms and Abbreviations The following abbreviations and general names for Basic model QCPU are used in the manual Generic Term Abbreviation Description Basic model QCPU General name for QOOJCPU QOOCPU and Q01CPU modules CPU module Q00 Q01CPU Abbreviation for QOOCPU Q01CPU Q00J Q00 Q01CPU Abbreviation for QO0JCPU Q00CPU Q01CPU High Performance model QCPU General name for Q02CPU QOD2HCPU QO6HCPU Q12HCPU Q25HCPU Q Series Abbreviation for Mitsubishi MELSEC Q Series PLC GX Developer Abbreviation for GX Developer Version 7 or later General name for Q33B Q35B Q38B and Q312B type main base units that accept Q3_B QOOCPU Q01CPU Q series power supply module input output module and intelligent function module a5 B General name for Q52B and Q55B type extension base unit with Q Series input output module intelligent function module attachable General name for Q63B Q65B Q68B and Q612B type extension base unit with Q Series power module input output module intelligent function module attachable Main base unit General name for Q33B Q35B Q38B and Q312B type main base unit Q0OJCPU base unit with Q Series power module input output module intelligent function module attachable Extension base unit General name for Q5_ B and Q6__B Base unit General name for Main base uni
163. ing so could result in noise that would cause erroneous operation e When controlling items like lamp load heater or solenoid valve using an output module large current approximately ten times greater than that present in normal circumstances may flow when the output is turned OFF to ON Take measures such as replacing the module with one having sufficient rated current Installation Precautions A CAUTION e Use the PLC in an environment that meets the general specifications contained in Basic Model QCPU Q Mode User s Manual Hardware Design Maintenance and Inspection Using this PLC in an environment outside the range of the general specifications could result in electric shock fire erroneous operation and damage to or deterioration of the product e Hold down the module loading lever at the module bottom and securely insert the module fixing hook into the fixing hole in the base module Incorrect loading of the module can cause a malfunction failure or drop When using the PLC in the environment of much vibration tighten the module with a screw Tighten the screw in the specified torque range Undertightening can cause a drop short circuit or malfunction Overtightening can cause a drop short circuit or malfunction due to damage to the screw or module e When installing more cables be sure that the base module and the module connectors are installed correctly After installation check them for looseness Poor c
164. ing the INDICATOR RESET switch on the front of the SD68 CPU of the Q3A Q4ACPU After 16 annunciators have been detected detection of the 17th will not be stored SD69 from SD64 through SD79 SET SET SET RST SET SET SET SET SET SET SET F50 F25 F99 F25 F15 F70 F65 F38 F110F151F210RSTF50 SD70 A A A A A A A m M A A S Instruction Table of sD62 0 50 50 50 50 50 50 50 50 50 50 50 99 Number SD71 Ree f execution detected Annunciator detection spss o i1 2 3 2 3 4 5 6 7 8lo9 8 Gnu restos SD72 annunciator number spe4 o 50 50 50 50 50 50 50 50 50 50 50 99 tected numbers SD65 0 O 25 25 99 99 99 99 99 99 99 99 15 SD73 SD66 0 0 0 99 0 15 15 15 15 15 15 15 70 SD67 0 0 0 0 0 0 70 70 70 70 70 70 65 SD74 sD68 0 0 0 0 01 0 0 65 65 65 65 65 38 sD69 0 0 0 0 0 1 0 0 O 38 38 38 38 110 SD70 0 0 0 0 01 0 0 4 0 O 110 110 110 151 SD75 SD71 0 0 0 0 0 0 0 0 0 0 151 151 210 Number D72 0 0 0 0 0 0 0 0 0 0 0 210 0 detected SD76 sbil o ololol olol olol ol olololo S5D74 0 0 0o o0ojojojol lol o 0 000 SD77 sp75 0 o0 o0 o0 o0 o o o o o jo ojo SD76 0 0 0 0 0 0 0 0 0 0 0 0 0 SD78 s07 o0o o ojojojo ojo o ojojo o SD78 0 0 0 0 0 0 0 0 0 o o0 0 0 0 0 0 0 0 0 0 0 0 o 0 0 0 SD79 SD79 App 9 App 9 APPENDICES MELSEC Q Special Regist
165. ink refresh Select whether or not to perform link refresh processing in cases U processing during ON No link refresh where only general data processing will be conducted during the COM instruction performed execution of the COM instruction execution App 4 App 4 APPENDICES MELSEC Q APPENDIX 2 Special Register List App 5 The special registers SD are internal registers with fixed applications in the programmable controller For this reason it is not possible to use these registers in sequence programs in the same way that normal registers are used However data can be written as needed in order to control the CPU module Data stored in the special registers are stored as BIN values if no special designation has been made to it The headings in the table that follows have the following meanings e Indicates whether the relay is set by the system or user and if it is set by the system when setting is performed lt Set by gt S Set by system U Set by user Sequence program or test operation from GX Developer or the like S U Set by both system and user lt When set gt Indicated only for registers set by system Set by When sen 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 only when there is a change in status Error Set when error occurs Instruction executi
166. input data If the sub routine program data is the destination data the data is designated as sub routine output data e 1 point occupies 4 words The number of words used depends on an instruction in a sub routine program A one word instruction requires 1 word J CALLP PO oo Po J MOV RO ro rs ay es The data is stored in one point DO A two work instruction requires 2 words i CALLP PO oH Po 1 DMOV RO rot ee ere ee The data is stored in two points DO and D1 The destination of 32 bit multiplication division operation requires 4 words H tour PO oo nH RO R10 roo t 5 The data is stored in four points DO to D3 e Active devices cannot be used in a sub routine program that contains arguments If devices assigned for function registers are used values of the function registers will not properly be returned to a calling program if Lone rono H Pol D RO R10 FDO MOV KO D3 Since the points DO to D3 are used for FDO D3 can not be used for the sub routine program Basic model QCPU s word data devices can be used 1 For a procedure for using function devices see the QCPU Q Mode QnACPU Programming Manual Common Instructions 10 32 10 32 10 DEVICES MELSEC Q 10 3 2 Special relays SM 1 Definition a A special relay is used to store High Performance model QCPU status data 2 Special relay classifications Special relays are classifie
167. input module QX40 S1 to 0 1ms 0 2ms 0 4ms 0 6ms or 1ms on a module basis The high speed input module imports external inputs at the specified input response rate The default value of the input response rate is set to 0 2ms ON External input OFE i ON High speed OFF 1 input module Input response time Input response time setup Set the input response rate in the I O assignment PLC parameters Choose High speed input as the type of the slot to which the input response rate is set Advanced settings selection Input response time selection Intelligent functional module detailed setting x HAW error Device Progam Boot file Eror time output mode time PLC operation mode Model name Serial 1 0 response Control PLC time lia r120 Assignment Type PLC Switch settifig Hi input Detailed settina If the start X and Y are not input the PLC assigns them automatically It is not possible to check correctly when there is a slot of the unsetting on the way r Standard settinal Base mode Auto 15 14 14 C Detail settings should be set as same when using multiple PLC 8 fixation 12 fixation Jsettings should be set a
168. ion 10 2 7 Change possible for 16 4 k words or less 3 Internal user devices Section 10 2 10 Section 10 2 13 Word devices 2048 points WO to W7FF Link special register 2 1024 points SWO to SW3FF Section 10 2 14 Function input FXO to FX4 Section 10 3 1 Bit devices Section 10 2 11 Section 10 2 12 FYO to FY4 Section 10 3 1 Special relay 1000 points SMO to SM999 Impossible Section 10 3 2 FDO to FD4 Section 10 3 1 Word devices 1000 points SDO to SD999 Section 10 3 3 4 The step relays are devices designed for SFC The step relays cannot be used with Basic model QCPU which do not support SFC program 1 For the timers retentive timers and counters their contacts and coils are bit devices and their current values are word devices x3 You cannot change the default values of the inputs outputs step relays link special relays and link special registers 10 1 10 1 10 DEVICES MELSEC Q DefautVaues Values Parameter Reference Type Device Name Designated Number of Points Range Used f Section Setting Range Link input 8192 points Jn X0 to Jn X1FFF Link output 8192 points Jn YO to Jn Y1FFF Aia of Bit device R Link direct Link relay 16384 points Jn BO to Jn B3FFF Impossible Section 10 4 Link special relay 512 points Jn SBO to Jn SB1FF Link register 16384 points Jn WO0 to Jn W3FFF Word device Link
169. ircuits positioning upper and lower limits switches and interlocking forward reverse operations 2 When the PLC detects the following problems it will stop calculation and turn off all output in the case of a In the case of b it will stop calculation and hold or turn off all output according to the parameter setting a The power supply module has over current protection equipment and over voltage protection equipment b The PLC CPUs self diagnostic functions such as the watchdog timer error detect problems In addition all output will be turned on when there are problems that the PLC CPU cannot detect such as in the I O controller Build a fail safe circuit exterior to the PLC that will make sure the equipment operates safely at such times Refer to LOADING AND INSTALLATION in Basic Model QCPU Q Mode User s Manual Hardware Design Maintenance and Inspection for example fail safe circuits 3 Output could be left on or off when there is trouble in the outputs module relay or transistor So build an external monitoring circuit that will monitor any single outputs that could cause serious trouble Design Precautions lt b DANGER e When overcurrent which exceeds the rating or caused by short circuited load flows in the output module for a long time it may cause smoke or fire To prevent this configure an external safety circuit such as fuse e Build a circuit that turns on the external power supply when th
170. is manual 2001 MITSUBISHI ELECTRIC CORPORATION INTRODUCTION Thank you for choosing the Mitsubishi MELSEC Q Series of General Purpose Programmable Controllers Please read this manual carefully so that equipment is used to its optimum CONTENTS SAFETY INSTRUGTIONS 228 2845 ann hedeadacanagh sa indned bet ghanas dened waadehaantndannsadnen A 1 FREVISIONSS a a iasestcat seizes cnet aise ee eee a Eig die te ee eels A 6 GONT ENTS seek aie en Ce i Si oS ee La Saad cael ante eae ean A 7 About Manuales A E T A E deel aD A 15 How to Use This Manuall i c uccenn nie deeded A 16 About the Generic Terms and Abbreviations sccccsecssesseseseseseescseseeceseseseseeseacaeeeeeeacseaeeneaeseaeeteeeseeesasaneteneesaeatens A 17 1 OVERVIEW 1 1to 1 10 WEA Features oc ik ice eee Rice eas ace ceeded eee ec cence en cen dnc en cnc dn wwe wc nce wc neni 1 3 1 2 Program Storage and CalCulation ccccecececscsecesesecseseseseeseseseseseseeeeeescaeseeeecseseeeeaeaeaeeneeseaeeneesesaeateeesaeatensenaeas 1 5 1 3 Convenient Programming Devices and Instructions cccccecesecseeseseseeseseeeseeseseseeeeseseaeeteseacaeeteaceteeseaeateneeeaees 1 7 2 SYSTEM CONFIGURATION FOR SINGLE CPU SYSTEM 2 1to2 7 2ZAl System COnmQuration a a AAN 2 1 231 1 Q00JCPU iia iina Tna a Gaia ae N a A ee 2 1 2 2 QOO OO1 GPU 2 ach dish eet Ahad Sabai Sane Aa sain AAEE oneal Seba 2 3 2 1 3 Configuration Of GX Developer secsesecesesseseseseseese
171. it occupied eight slots The Basic model QCPU which occupies only the installable slots of a base unit occupies only three slots when a three slot base unit is used a For 3 slot base unit 3 slots are occupied Q33B type main base unit y 0 1 2 Power supply QO0CPU L Five slots are not occupied Q63B type extension base unit Power supply _ Ly Five slots are not occupied Q63B type extension base unit 6 7 8 aoe 1 1 1 1 1 1 1 1 1 Power supply SSS gt Five slots are not occupied 5 ASSIGNMENT OF I O NUMBERS MELSEC Q b For 5 slot base unit QOOJCPU 5 slots are occupied Q35B type main base unit 0123 4 Power supply QOOCPU Ly Three slots are not occupied Q65B type extension base unit 5 6 7 8 9 Power supply Ly Three slots are not occupied Q65B type extension base unit 10 11 12 13 14 Power supply Ly Three slots are not occupied c For 8 slot base unit 8 slots are occupied Q38B type main base unit 0123 465 6 7 Q68B type extension base unit 8 9 10 11 12 13 14 15 Power supply QOO0CPU Power supply d For 12 slot base unit 12 slots are occupied Q312B type main base unit 0123 4 5 67 8 9 10 11
172. ive 0 58 kbyte 94 kbyte 94 kbyte a Standard RAM Drive 3 Een seal indus if Daa ROM Number of ae ee Ge a stored programs Standard ROM ROM Number of stored file Standard RAM eee Number of I O devices Number of WO devices points 2048 points X YO to 7FF TDS OL ENICSS usable on program Number of points 256 points 1024 points Number of I O points X Y0 to FF X Y0 to 3FF accesible to input output modules 1 1 step in program capacity equals 4 bytes x2 The maximum number of steps that can be executed can be obtained as follows Program capacity File header size Default 34 steps 3 HARDWARE SPECIFICATION OF THE CPU MODULE MELSEC Q Performance Specifications continued iom QO00JCPU QO0CPU Q01CPU Internal relay M Default 8192 points MO to 8191 Latch relay L Default 2048 points LO to 2047 Link relay B Default 2048 points BO to 7FF Default 512 points TO to 511 for low high speed timer Select between low high speed timer by instructions The measurement unit of the low high speed timer is set with parameters Low speed timer 1 to 1000ms 1ms unit default 100ms High speed timer 0 1 to 100ms 0 1ms unit default 10ms Default 0 point for low high speed retentive timer a _ Number of use points Switchover between the low high speed retentive timer is aan is set wi cee set by instructions Retentive timer ST ee parameters The measurem
173. ledge xY assighment Defaul 8 fixation 12 fixation Read PLC data a a b c d Base model name Designate the model name of the installed base unit with 16 or less characters Basic model QCPU does not use the designated model name It is used as a user s memo or parameter printing Power model name Designate the model name of the installed power supply module with 16 or less characters Basic model QCPU does not use the designated model name It is used as a user s memo or parameter printing Increase cable name Designate the model name of the extension cable being used with 16 or less characters Basic model QCPU does not use the designated model name It is used as a user s memo or parameter printing Points Used with Basic model QCPU Select the number of points for the slot of the base unit being used from the followings 2 2 slots e 3 3 slots e 5 5 slots 8 8 slots e 10 10 slots e 12 12 slots 8 fixation 12 fixation Used with Basic model QCPU Select either option to designate the number of slots for all base units to the same number 5 ASSIGNMENT OF I O NUMBERS MELSEC Q 5 4 What are I O Numbers O numbers are used in sequence program for reception of ON OFF data at Basic model QCPU and output of ON OFF data from Basic model QCPU to outsides Input X is used for the reception of ON OFF data at Basic model QCPU Output Y i
174. located for W Peete Number of points contents p Stores the number of points currently set for SW devices allocated for SW Reserves the designated time for communication processing with GX Developer or other units Time reserved The greater the value is designated the shorter the response time for Time reserved for rar i ee for an communication with other devices GX Developer serial communication units 5 are communication END processing communication processing becomes processing Setting range 1 to 100 ms If the designated value is out of the range above it is assumed to no setting The scan time becomes longer by the designated time No of modules p Indicates the number of modules installed on Ethernet installed Ethernet VO No aa information SD299 SD300 SD301 SD302 SD303 SD304 SD315 SD340 3 System clocks counters Set by When set sp412 Number of counts in Following programmable controller CPU RUN 1 is added each second S Status change counter 1 second units e Count repeats from 0 to 32767 to 32768 to 0 g 2n second clock Stores value n of 2n second clock Default is 30 SD414 i 2n second clock units f U setting Setting can be made between 1 and 32767 SD420 Number of counts in e Incremented by 1 for each scan execution after the PLC is set to RUN S Every END each scan e Count repeats from 0 to 32767 to 32768 to 0 processing App 13 App 13 APPENDICES M
175. lock function ccccccsecceseeeessecesseeesseeeseeeees 7 9 I Precision Siac selak deentiucatecinpeddanvmaandats 7 11 MEU POMEN tiaisia 1046 Concept of I O assignment cceeeee 5 8 VO Noudesignalon devicg Ia naiams 1048 Constant SCAN te onct a ertsiccscediss wattentinteatcar nist 7 2 MUI ACL OIS TEN C2 clanreist circ ot sina istry 1099 CONStANMS ceeeececeeeeeteeeeseeeeeeeeeseeeeeteaeeas 10 50 PUL TESPONSE NME sagrari aona iioi Tal Counter C ssssessssessesesserssesnsrsrersrnersresnsn 10 24 Intetigenuluncion module device IGE ESS Count proceSSing acccssssscscsscsssseesssseesnees 10 24 Internal relay Mis E E T 10 10 Maximum counting sp ed sscsccsssssceeeue 10 25 Internal system S sinh A aie 10 31 Internal user device 10 3 D Interrupt pointer l eeeeeseeeseesresreeennn 10 46 D Data register sssssssssssessssssseesesseeeeeeee 10 28 Interrupt progra is entaner ekee 4 5 Data register D 10 28 Decimal constants K seses 10 50 J Device liStic ii vice dien anni aatos 10 1 J Network designation device 0 10 48 Direct access input DX gore a tk See tote Me 10 6 JoB Link relay wvevaduidavoruesrevedaviawdedavend 10 35 Direct access OUtPUL DY ccsceceseeseeeeees 10 9 J lt 2 SB Link special relay 10 35 Direct Mode ccscsscsessesessesessesessesesseseeeseess 4 18 J SW Link special register 10 35 Drive NUMDE sccsscc
176. loper function parameter mode PLC system setting Setting of only the remote PAUSE contact cannot be made When setting the remote PAUSE contact also set the remote RUN contact The device range that can be set is input XO to 7FF 1 The PAUSE state contact SM204 is turned on when the END processing is executed for the scan with both remote PAUSE contact and PAUSE permission flag SM206 on 2 When the remote PAUSE contact is off or SM206 is turned off the PAUSE state is canceled and the sequence program calculation is performed again from step 0 Remote PAUSE contact SM206 ON ON when PAUSE condition met RUN PAUSE state PAUSE state Fig 7 6 PAUSE Time Chart with Remote PAUSE Contact 7 FUNCTION MELSEC Q b GX Developer function Serial Communication Module Method The remote PAUSE operation can be performed from the GX Developer function or serial communication module The GX Developer function operation is performed from on line remote operation Use the MC protocol commands to exercise control with the serial communication module or Ethernet interface module Refer to the following manual for details of the MC protocol Q Compatible MELSEC Communication Protocol Reference Manual 1 When the END processing is executed for the scan where the remote PAUSE command was accepted the PAUSE state contact SM204 is turned on When the scan after the PAUSE sta
177. ludes all the above components 1 File header The file name file size and file creation data etc are stored in this area The file header size is 34 to 35 steps 136 to 140 bytes Default 34steps 2 Execution program The created program is stored in this area 1 step is 4 bytes 2 The size of the program displayed by GX Developer During programming at the GX Developer the program size the total of the file header size and the number of created program steps is displayed as the number of steps as shown below During programming the size of the program created is displayed Number of steps used display gt MELSOFT series GX Developer Unset project LD Edit mode MAIN 35 Step TI Project Edit Find Replace Convert View Online Diagnostics Tools Window Help O a t S sjen Ql la ele ae Program x 7 sfe l fi 6 FILES HANDLED BY BASIC MODEL QCPU MELSEC Q 6 7 GX Developer File Operation and File Handling Precautions 6 7 1 File operation Using the online function of the GX Developer the file operations shown in Table 6 5 below are possible with regard to files stored in the program memory and standard ROM However the available file operations will vary according to the presence or absence of a password registered by GX Developer and the Basic model QCPU RUN STOP status Table 6 5 File Operations from GX Developer File Operation Enabled Disabled Operation Description Files are
178. mable No restrictions regarding the quantity used controller A Y20 X2 lya H Y22 H y Program Out ladder external device Figure 10 4 Output Y Operation 2 Using outputs as internal relays M Y inputs corresponding to vacant slots and slots where input modules are installed can serve as internal relays M 2 5 ejeje e553 EI 53355 5 olol vl Adio zelel ggg BEE E zls s D 5 5 5 2 23 8 8 5 ZIP I O o o O A er OUT Yn gt Equivalent to internal relay 10 8 10 8 10 DEVICES MELSEC Q 3 Output method a There are 2 types of output refresh outputs and direct access outputs 1 Refresh outputs are ON OFF data which is output to the output module using the refresh mode 1 CPU module Output module ON OFF data output Output refresh area omme T Y10 an These outputs are indicated as Yi in the sequence program For example a 10 input becomes Y10 2 Direct access outputs are ON OFF data which is output to the output module using the direct mode 2 CPU module Output module Output refresh area meme DY 10 ON OFF data output These outputs are indicated as DY in the sequence program For example a 10 input becomes DY10 b Differences between refresh outputs and direct access outputs With direct access outputs the output
179. mation Module model name Q64AD Start 1 0 No 0000 Module type A D Conversion Module Module side Module side Transfer PLC side Laj Setting item Buffer size Transfer direction Device word count CH1 Digital output value D11 D12 D13 CH2 Digital output value CH3 Digital output value CH4 Digital output value CH1 Maximum value CH1 Minimum value CH2 Maximum value CH2 Minimum value viviviri ara a oA fd Ea CH3 Maximum value Make text file End setup Cancel The designated automatic refresh setting data is stored in the intelligent function parameters of Basic model QCPU For the details of the GX Configurator refer to the manual of the intelligent function module being used 8 COMMUNICATION WITH INTELLIGENT FUNCTION MODULE MELSEC Q 8 3 Communication Using The Intelligent Function Module Device 1 Intelligent function module device The intelligent function module device is the buffer memory of the intelligent function module represented as a device of Basic model QCPU program It enables reading data stored in the buffer memory of the intelligent function module or enables writing data to the buffer memory of the intelligent function module For example programming can be performed as shown below when 100 is written to the buffer memory address 0 of the intelligent function module whose O numbers are X Y20 to X Y2F 1H MOV K100 U
180. me exceeded PRG TIME OVER Always Annunciator check F 2k k k k When an instruction is executed 1 Can be changed to continues in the GX Developer function parameter setting No END instruction When an instruction is executed PLC error 7 FUNCTION MELSEC Q 7 12 1 LED display when error occurs When an error occurs the ERR LED located on the front of Basic model QCPU turns on Refer to Section 7 19 for the details of the ERR LED operation 7 12 2 Cancel error Basic model QCPU error cancel operation can be performed only for error that can continue the Basic model QCPU operation 1 Cancellation of error a Procedures for cancellation of error The error cancel is performed in the following manner 1 Resolve the cause of error 2 Store the error code of the error to be canceled in the special register SD50 3 Switch special relay SM50 from OFF to ON 4 The error is canceled b Status after cancellation of error When the CPU is recovered from canceling the error the special relay special register and LED affected by the error are set to the state before the error occurred When the same error occurs after canceling the error it is logged again in the failure history c Cancellation of annunciator For the cancellation of the annunciator detected multiple times only the first detected F is canceled When error cancellation is performed by storing the code of the e
181. me will become the value obtained by adding the interrupt program constant cycle execution type program Thus if the interrupt program is executed the values stored in the following special registers and GX Developer monitor values will become longer than when the interrupt program is not executed 1 Special registers e SD520 SD521 Current scan time e SD524 SD525 Minimum scan time e SD526 SD527 Maximum scan time e SD540 SD541 END processing time e SD542 SD543 Constant scan wait time 2 GX Developer monitor values e Execution time measurement e Scan time measurement e Constant scan 4 SEQUENCE PROGRAM CONFIGURATION amp EXECUTION CONDITIONS 4 2 Concept of Scan Time 1 Scan time MELSEC Q a The scan time is a total of following the execution time of program and END processing When an interrupt program is executed the value including the execution time of the interrupt program will be the scan time b The scan time present value minimum value and maximum value are measured at the Basic model QCPU and the results are stored in special registers SD520 SD521 and SD524 to SD527 1 The scan time can therefore be checked by monitoring the SD520 SD521 and SD524 to SD527 special registers Current value Minimum value Maximum value SD520 D521 SD524 SD525 SD526 SD527 Ls Stores less than 1 ms initial scan time unit us gt Stores the initial scan time in 1 ms units
182. mmable logic controller applications Note that even with these applications if the user approves that the application is to be limited and a special quality is not required application shall be possible When considering use in aircraft medical applications railways incineration and fuel devices manned transport devices equipment for recreation and amusement and safety devices in which human life or assets could be greatly affected and for which a particularly high reliability is required in terms of safety and control system please consult with Mitsubishi and discuss the required specifications Microsoft Windows Microsoft Windows NT are registered trademarks of Microsoft Corporation in the United States and other countries Pentium is a registered trademark of Intel Corporation in the United States and other countries Ethernet is a registered trademark of Xerox Co Ltd in the United States Other company and product names herein are either trademarks or registered trademarks of their respective owners Basic Model QCPU Q Mode User s Manual Function Explanation Program Fundamentals MODEL SQCPU Q U KI E MODEL 13JR44 SH NA 080188 A 0108 MEE sa MITSUBISHI ELECTRIC CORPORATION HEAD OFFICE 1 8 12 OFFICE TOWER Z 14F HARUMI CHUO KU 104 6212 JAPAN NAGOYA WORKS 1 14 YADA MINAMI 5 HIGASHI KU NAGOYA JAPAN When exported from Japan this manual does not require application to the Minis
183. n I O refresh time number of input points 16 X N1 number of output points 16 xX N2 Refer to the following table for N1 and N2 CPU Type Hs tis QOOJCPU QOOCPU QO1CPU Processing time for instruction processed at END a DUTY instruction Time when the user timing clock SM420 to SM424 specified for the DUTY instruction is turned on off at END processing CPU Type END Processing Time ms QO0JCPU 0 21 QOOCPU QOiCPU 11 2 11 PROCESSING TIMES OF THE BASIC MODEL QCPU MELSEC Q 3 Instruction execution time a Sum of the processing times of the instructions used in the program executed by the Basic model QCPU Refer to the following manual for the processing times of the corresponding instructions QCPU Q Mode QnACPU Programming Manual Common Instructions b An interrupt program has an overhead time at the start of interrupt program and an overhead time at the end of interrupt program Add an overhead time at the start of interrupt program and an overhead time at the end of interrupt program to the instruction execution time 1 Overhead time at the start of interrupt program B1 Cyclic Interrupt 128 to 131 Interrupt Processing from QI60 CPU Type Processing 10 to 115 1 Without rapid start With rapid start Without rapid start With rapid start 325 145 1 2 265 B Ca a a E 1 The values assume that the QI60 is installed on slot 0 of the main base 2
184. n a When Basic model QCPU detects an error it turns on ERR LEDs When an error is detected special relays SMO SM1 are turned ON and an error code of the error is stored in the special register SDO When multiple errors are detected error codes of the latest errors are stored in the special register SDO For error detection use special relays and special registers in program so that these devices can interlock with sequencers and mechanical systems b Basic model QCPU stores 16 latest error codes Refer to Section 7 13 The failure history can be checked in the GX Developer function PLC diagnostics mode The failure history can be stored even when the power is shut off using the battery backup 3 Basic model QCPU operation at the time of error detection a When an error is detected from the self diagnosis there are two types of modes that the Basic model QCPU operation can change to 1 Basic model QCPU calculation stop mode Stops the calculation at the point when the error is detected and turns off all output Y 2 Basic model QCPU calculation continue mode When an error is detected the program Instruction area where the error occurred is skipped and the rest of the program is executed b The following errors can set the calculation continue stop in the parameter mode PLC RAS All parameter defaults are set at Stop 1 Operation error 2 Expanded command error 3 Fuse blown 4 I O unit comparison 5
185. n e Designation of sampling averaging processing e Designation of time averaging execution averaging e Designation of average time average execution The initial setting of Q64AD is designated on the following initial setting screen of GX Configurator Initial setting screen Initial setting BE Module information Module model name Q644D Start 170 No 0000 Module type A D Conversion Module Setting item Setting value CH1 A D conversion enable disable setting Enable CH1 Sampling process averaging process setting Sampling CH1 Time number of times specifying Number of times CH1 Average time average number of times setting Setting range Time 2 to 5000 ms Number of times 4 to 62500 times CH2 A D conversion enable disable setting Enable CH2 Sampling process averaging process setting Sampling Details Select input Make text file End setup Cancel The designated initial setting data is stored in the intelligent function module 8 COMMUNICATION WITH INTELLIGENT FUNCTION MODULE MELSEC Q b Automatic refresh setting For the automatic refresh setting designate the device at Basic model QCPU to store the following data e Digital output of Q64AD e Maximum minimum values of Q64AD e Error code The automatic refresh setting of Q64AD is designated on the following automatic refresh setting screen of GX Configurator Automatic refresh setting screen Auto refresh setting oix Module infor
186. n module SP UNIT LAY ERR p allocation error e When switched from STOP to RUN MISSING PARA When the power is turned on when rest BOOT ERROR When the power is turned on when rest Instruction execution not possible CAN T EXE PRG e When the power is turned on when reset e When the power is turned on when reset P ing check PARAMETER ERROR clic aati geod e When switched from STOP to RUN e When the power is turned on when reset Link LINK PARA ERROR When switched from STOP to RUN Intelligent function module SP PARA ERROR When the power is turned on when reset parameter error 1 Can be changed to Continue in the GX Developer function parameter setting 2 Can be set to No in the GX Developer function parameter setting 3 Can be set to No in the GX Developer function parameter setting 7 31 7 31 7 FUNCTION MELSEC Q Self Diagnosis List Continued from the preceding page Diagnosis description Diagnostic timing Piucioresdeidheck INSTRUCT CODE ERR e When the power is turned on when reset AT et ee i e When switched from STOP to RUN MISSING END INS e When the power is turned on when reset e When switched from STOP to RUN e When switched from STOP to RUN Program error e When switched from STOP to RUN oe check error Default ALL to RET oe to instruction structure CAN T EXECUTE P Interrupt program error CAN T EXECUTE I When an instruction is executed Watchdog error supervision WDT ERROR Program ti
187. nadandendhn 10 46 1041 Other Device Siiner banca he cate itdan aeia deaa aa daar aardas aan a ai iaaa hod eR ogkoounaa 10 48 10 11 1 Network No designation device J ceeceeceecessceseeeseeeteeeeeeeteeseeeseeseeseeseeseeeseeeseeseaeteeeeeeeeaaes 10 48 10 11 2 I O No designation device U cecceccecceseeeceeeeseeeeeceeseeeeaecaeseeseaesaecaeseeseaesaesaeseeseasieseeseaeeaee 10 48 10 11 3 Macro instruction argument device VD eee eeceeeceeeeeeeeeseeeeeeeseeeseeseeesecesaeeseeteeseeeseeeseeeseeeeees 10 49 TOMAS GOMS ta rats ect Eh EN Ro a Re ale te aba a ia tah a ali TE 10 50 10 12 1 Decimal constants K eoa an 10 50 10 12 2 Hexadecimal constants H reier rire AE A 10 50 10123 Character sting Joieria Toesacds apstases capsuzesctscecse dattaseeanacassdxbeuseeadivaest ai aaran A anaa ra aaaea aaea iad 10 50 11 PROCESSING TIMES OF THE BASIC MODEL QCPU 11 1to11 5 1124 Scans Time Structure niini Seah Mande anaa aa AE e EENE aE ae a EE aa Na a TAEAE dine 11 1 112 G0ncept ot Scan Fal nal ennn a ereereverey a a aa a a a aa a rer rterecar rrr 11 2 11 3 Other Processing Times assciechacitine etic tid need nd i a ai aa 11 5 12 PROCEDURE FOR WRITING PROGRAMS TO BASIC MODEL QCPU 12 1to 12 3 12 1 Items to Consider when Creating Program E E eat al als A A A A ale ol ane 12 1 12 2 Procedure for writing program to the Basic model QCPU esesseseesseseeceseeeseseseeeseseeeeeeseateeseeaeaeeteneeasaeens 12 2 APPENDICES App 1 to Ap
188. nation Set by When set e The CPU switch status is stored in the following format B15 BH B4 B3 S Every END State of switch State of CPU switch processing CPU switch status 0 RUN 1 STOP Memory card switch Always OFF e The following bit patterns are used to store the statuses of the LEDs on the CPU B15 B4 B3 BO T T T T 4 gt 4 gt lt i gt LED status State of CPU LED S Status change 2 ERROR e The CPU operating state is stored as indicated in the following figure B15 B12B11 B8 B7 B4 B3 Bo Q Operating state of CPU Vacant Operating state Operating state of STOP S Every END PAUSE processing STOP PAUSE cause Switch Remote contact GX Developer Serial Communication Module from some other remote source Internal program instruction Note Priority is earliest first Errors e The year last two digits and month are stored as BCD code at SD210 as shown below Bike Clock data year i Bo Example month July 1993 5 H9307 e The day and hour are stored as BCD code at SD211 as shown below B15 to B12B11 to B8B7 to B4B3 to Bo Example Clock data Clock data day hour Bs ee 31st 10 a m S U Request rien a co p14 H31 1 0 The minutes and seconds after the hour are stored as BCD code at SD212 as shown below Clock data minute t B12B11 to B8 B7 so Example Clock data second 35 min
189. nd stage s extension AF CF EF YFF 10F 2 Soh NuUmBETS Obie 9 base unit continue from the last slot number of Q68B 8 slots occupied y the 1st stage s extension base unit 10 11 12 13 14 15 16 17 2 2 2 2 2 2j 2 2 2 m a be fo fo O D o D O D O fo O fo oOo 3 E E DE oE oE E E E D z zZ Z coke 2 2 2 288 28 28 2 2 3 oo E lt gt 29 IN OUT 3 5 5 5 fo fo fo oo 16 16 32 32 32 16 16 16 Qa points points points points points points points points X110 X120 130 150 170 Y190 Y1A0 Y1BO J a oe 9 X11F X12F 14F 16F 18F Y19F Y1AF Y1BF The above example shows the case where the intelligent function module has 32 I O points The number of I O points may vary depending on the intelligent function module Refer to the manual of the intelligent function module being used and check the number of the I O points before assigning the I O numbers 5 ASSIGNMENT OF I O NUMBERS MELSEC Q 5 5 2 Remote station I O number In a CC Link remote I O system you can exercise control after assigning the inputs X and outputs Y of the Basic model QCPU devices to the I O and intelligent function modules of remote stations Also the inputs X and outputs Y are used as the refresh destinations Basic model QCPU side devices of the link inputs and outputs LX LY of the MELSECNET H Take care not to overlap the I O numbers of th
190. ng the serial communication function Without monitor Indicates the status in which communication using GX Developer or the serial communication function is not being made 11 5 11 5 12 PROCEDURE FOR WRITING PROGRAMS TO BASIC MODEL QCPU MELSEC Q 12 PROCEDURE FOR WRITING PROGRAM TO BASIC MODEL QCPU This chapter describes the procedure for writing program created at the GX Developer to the Basic model QCPU 12 1 Items to Consider when Creating Program 40 In order to create a program the program size number of device points used and the program file name etc must be set in advance 1 Program size considerations Check that CPU s program capacity is adequate for storing the program and parameter data The program capacities of the CPUs are shown below e QOOJCPU 8 k steps QOOCPU 8 k steps Q01CPU 14k steps 2 Applications of devices and setting of their numbers of points Consider the applications of the devices used in a program and their number of points Refer to Chapter 10 for the devices usable with the Basic model QCPU 3 ROM operation considerations When performing ROM operation make the boot file setting of PLC parameter 12 1 12 1 12 PROCEDURE FOR WRITING PROGRAMS TO BASIC MODEL QCPU MELSEC Q 12 2 Procedure for writing program to the Basic model QCPU 12 2 The procedure for writing program and parameter created at the GX Developer to the Basic model QCPU standard ROM is shown below
191. nits Switch setting Set various switches of the intelligent function module Error time output Set whether to clear or retain the output when the CPU module results in a stop module error H W error time PLC operation mode Base setting Set the extension cable model name CPU module not used User s memo Set whether to stop or continue the operation of the control CPU when the hardware fault of the intelligent function module occurs Set the response time of the input module I O combined module or high speed i O response time input module 9 PARAMETER LIST MELSEC Q Default Value Setting Range Reference Section X 2 k points Y 2 k points S 2 k points SB 1k points and SW 1 k points are fixed Including the above points 1 5 k words a total range of 16 4 Section 10 1 k words is available Section 10 2 e For one device Max 32 k points There is no restriction on the total number of bit device points Only 1 range is designated for each device of B F V T ST C D W Section 7 3 Only 1 range is designated for each device of L B F Boot not performed Boot not performed boot performed Section 6 6 e Empty Input High speed input Output Intelligent I O combined Interrupt No setting e 16 characters QOOJCPU 16 points 32 points 64 points 128 points 256 points Section 5 6 No setting Q00 Q01CPU 16 points 32 points 64 points 128 points 256 points 51 2 points 1024 p
192. nstant scan set time less than the WDT set time WDT Set Time gt Constant Scan Set Time gt Sequence Program maximum Scan Time If the sequence program scan time is larger than the constant scan set value the Basic model QCPU detects PRG TIME OVER an error code 5010 the sequence program is executed with the scan time by ignoring the constant scan Constant scan setting Constant scan 0 END 0 Sequence 4 program 3 5ms 0 5ms 3 5ms Lh 4ms 5 3ms 3 7ms Gems Scan where the constant scan is not normal Fig 7 2 Operation when the Scan Time is More than the Constant Scan If the value is larger than the WDT set time the Basic model QCPU detects a WDT error and stops the program execution 7 3 7 3 7 FUNCTION MELSEC Q c Sequence program processing is suspended during the waiting time from END processing execution in a sequence program until the start of the next scan However if an interrupt factor occurs after END processing execution the corresponding interrupt program is run d Constant scan accuracy The following explains the accuracy when the constant scan time has been set 1 Refer to Chapter 11 for errors produced when the constant scan time has been set and the interrupt program is not executed 2 The interrupt program is also executed during the constant scan waiting time Interruption is disabled during interrupt program execution Therefore
193. nts points points points FO i fs 150 se ca as ai 10F 12F 14F 16F 17F Y19F Y1BF Y1DF 1 This is the case where the number of points for an empty slot is set to 16 with PLC system setting of PLC Parameter 2 Since the number of I O points of the QOOJCPU is 256 use it within the range X Y0O to X YFF 5 ASSIGNMENT OF I O NUMBERS MELSEC Q b I O assignment with GX Developer Designate slot No 3 to 32 points on the I O assignment screen of GX Developer Qn H Parameter x PLCname PLC system PLC file PLCRAS Device Program Boot file SFC 1 0 assignment Serial 120 Assignment slot Type Modelname Points Stat Ja ai t o PLC PLC lt witch setting Detailed setting Select 32 points When the type is not selected the type of the installed module will be selected 32points 44444444 If the start Xx and Y are not input the PLC assigns them automatically It is not possible to check correctly when there is a slot of the unsetting on the way Standard setting Base mode Auto C Detail X X X Increase3 m 8 fixation increase aah 12 fixation settings should be set as same when Read PLC data using multiple PLC a Base model name Power model name Extemsion cable Points Acknowledge XY assignment Default Check End Cancel c I O number assignment after the I O assignment
194. of points used can be changed within a 16 4 k word including 1 5k words for an internal user device range by PLC parameter device setting The items to consider when making such changes are discussed below a Setting range 1 The number of device points is designated in 16 point units 2 Amaximum of 32 k points can be designated for one type of device 1 point is calculated as 2 points 1 for coil 1 for contact for the timer retentive timer and counter Memory size Use the following formula to obtain the memory size of an internal user device 1 5 Bit devices size Word devices size Timer retentive timer and counter size lt 16 4k a For bit devices For bit devices 16 points are calculated as 1 word M L F V B total number of points Bit device size 16 Word 10 3 10 DEVICES MELSEC Q b For timer T retentive timer ST and Counter C For the timer retentive timer and counter 16 points are calculated as 18 words T ST C total number of points Timer retentive counter size 16 x 18 Word c For word devices For data registers D and link registers W 16 points are calculated as 16 words D W total number of points 16 Word device size x 16 Word POINT 1 When an internal user device s number of usable points setting is changed the following files which were created under the previous setting cannot be used as they are e T
195. of product information Enables the individual information for mounted CPU module input output modules and intelligent function modules to be confirmed Type Series Model name Points I O No Serial No function version Serial No Function version Product Information List xi s1ot Type series moder name Points 1 0 no Master Puc Serial No ver PLC Q QOLCPU 030510000000000 Intelli Q QU71E71 32pt 0000 020810000000000 B 0 2 None 0 3 None 0 4 None 0 5 None 0 6 None 0 7 None a CSY file creating 7 FUNCTION MELSEC Q 7 16 LED Display The LEDs that indicate the operation statuses of the Basic model QCPU are provided on the front panel of the Basic model QCPU The indications of the LEDs are described below 1 The details of the LED display are shown below Display Description Indicates Basic model QCPU operation status When operating with the RUN STOP RESET switch at RUN When stopped with the RUN STOP RESET switch at STOP Or when an error that stops operation is detected When writing parameters ad program during STOP and when setting the RUN STOP RESET switch from STOP RUN Perform the following operations in order to illuminate the RUN LED after program writing e Set the RUN STOP RESET switch to RUN STOP RUN e Reset the system with the RUN STOP RESET switch e
196. ogram Storage and Calculation 1 Program storage Program created at GX Developer can be stored in Basic model QCPU s program memory or standard ROM QOOJCPU Q00 Q01CPU Program memory Parameters K3 Program memory Parameters 3 Program Program Comment Comment Standard ROM 1 Standard ROM 1 Parameters 3 Program Comment Commen Standard RAM 2 File registers x1 The standard ROM is used when parameters program and comment are written to ROM x2 The standard RAM is used for file registers x3 Including the intelligent parameters of the intelligent function module set on GX Configurator 2 The Basic model QCPU processes program which are stored in the program memory Q00J Q00 Q01CPU Program memory Execution of program Parameter in program memory Program 1 OVERVIEW MELSEC Q 3 Boot operation of program The program stored on the standard ROM is booted read to the program memory of the Basic model QCPU and executed Booting a program from the standard ROM to the program memory requires boot file setting in the PLC parameter Basic model QCPU Program memoiy Execution of program booted Parameter Pa from the standard ROM to the program memory Program Boot Standard ROM Parameter 1 OVERVIEW MELSEC Q 1 3 Convenient Programming Devices and Instructions For the case of Basic model QCPU
197. oints QOOJCPU OH to FOH QOOCPU Q01CPU 0H to 3FOH e 16 characters e 16 characters Section 5 3 No setting e 16 characters 2 3 5 8 10 12 e Refer to the manual of the intelligent function module used St op i ONN e Input O combined 1ms 5ms 10ms 20ms 70ms Input u cambineu TOMS e High speed input interrupt 0 1ms 0 2ms 0 4ms High speed input interrupt 0 2ms 0 6ms ims 9 6 9 PARAMETER LIST MELSEC Q Table 9 1 Parameter List continued Enables the user to check I O assignments MELSECNET ETHERNET settings and CC Link settings Set the transmission speed sum check message wait time and write during RUN enable disable when using the serial communication function of Q00 Q01CPU X Y allocation check Serial communication setting Use of serial communication kbr f ncton Using the serial communication function turns on the check box Set the transmission speed for data communication with the device on the other Baudrate erid Set whether to add the sum check code to the send and receive messages Sum check according to the specifications of the device on the other end when making data communication using the serial communication function immediately after the device on the other end has sent the data Set whether the data from the device on the other end to the PLC CPU is to be written or not if the PLC CPU is E E L RUN Network parameters Set the Set the parameters for MELSECNET H
198. on Set when instruction is executed Request Set only when there is a user request through SM etc For details on the following items see these manuals e Networks For Q MELSECNET H Network System Reference Manual PLC to PLC network App 5 APPENDICES MELSEC Q Special Register List 1 Diagnostic Information Explanation Set by When set e Error codes for errors found by diagnosis are stored as BIN data Diagnostic errors Diagnosis error code S Error e Contents identical to latest fault history information e Year last two digits and month that SDO data was updated is stored as BCD 2 digit code Example October 1995 H9510 The day and hour that SDO was updated is stored as BCD 2 digit code Example 10 p m on 25th B15 to B8 B7 to BO Year 0 to 99 Month 1 to 12 Clock time for Clock time for diagnosis error diagnosis error B15 to B8 to B occurrence occurrence Day 1 to 31 Hour Oto 23 H2510 e The minute and second that SDO data was updated is stored as BCD 2 digit code Example 35 min 48 sec past the hour H3548 e Category codes which help indicate what type of information is being stored in the common information areas SD5 through SD15 and the individual information areas SD16 through SD26 are stored here B15 to B8 B7 to BO Individual information Common information category codes category codes B15 to B8 B7 to BO Minutes 0 to 59
199. onitor of GX Developer allows the check of the installed modules of Basic model QCPU and their I O numbers For system monitor refer to Section 7 18 5 19 5 19 6 FILES HANDLED BY BASIC MODEL QCPU MELSEC Q 6 FILES HANDLED BY BASIC MODEL QCPU 1 Data handled by Basic model QCPU The Basic model QCPU stores such data as parameter program and device comments into program memory When ROM operation is performed the parameter and program in the program memory are written to standard ROM 2 Write of parameter and program using GX Developer Such data as parameter program and comment are written to the program memory of the Basic model QCPU by GX Developer online write to PLC For online write to PLC specify the type e g parameter program comment of the data to be written to the Basic model QCPU 6 FILES HANDLED BY BASIC MODEL QCPU MELSEC Q 6 1 About the Basic model QCPU s Memory 1 User Memory A user memory can be created within the memory of the Basic model QCPU with GX Developer sequence program There are the following user memories e Program memory e Standard ROM The Q00 Q01CPU has built in standard RAM a Program memory This memory stores program used by the Basic model QCPU to actually perform arithmetic operation Program stored in the standard ROM is booted read into the program memory for arithmetic operation Boot operation A batch of parameter and program stored in the program memory can be
200. onnections could cause an input or output failure e Completely turn off the external power supply before loading or unloading the module Not doing so could result in electric shock or damage to the product e Do not directly touch the module s conductive parts or electronic components Touching the conductive parts could cause an operation failure or give damage to the module Wiring Precautions lt DANGER e Completely turn off the external power supply when installing or placing wiring Not completely turning off all power could result in electric shock or damage to the product e When turning on the power supply or operating the module after installation or wiring work be sure that the module s terminal covers are correctly attached Not attaching the terminal cover could result in electric shock Wiring Precautions A CAUTION e Be sure to ground the FG terminals and LG terminals to the protective ground conductor Not doing so could result in electric shock or erroneous operation e When wiring in the PLC be sure that it is done correctly by checking the product s rated voltage and the terminal layout Connecting a power supply that is different from the rating or incorrectly wiring the product could result in fire or damage e External connections shall be crimped or pressure welded with the specified tools or correctly soldered Imperfect connections could result in short circuit fires or erroneous operation
201. ons a The clock data is not set before shipment The clock data is used by the Basic model QCPU system and intelligent function module for failure history and other functions Be sure to set the accurate time when operating the Basic model QCPU for the first time b Even if a part of the time data is being corrected all data must be written to the clock again c The data written in the clock element is checked in the range described in 1 b of Section 7 5 For this reason if improbable clock data in the range described in 1 b of Section 7 5 is written in the clock element correct clock function is unavailable Example ee Writing to clock element CPU module operation state Upon execution of DATEW command OPERATION ERROR Error code 4100 February 30 Executed dae on Upon activation of SM210 Activation of SM211 32 of month 13 Not executed Failure to detect error 4 Precision The precision of the clock function differs with the ambient temperature as shown below Ambient Temperature C Accuracy Day difference S 3 2 to 5 27 TYP 1 98 25 2 57 to 5 27 TYP 2 22 11 68 to 3 65 TYP 2 64 5 Comparison of Clock Data To compare Basic model QCPU s clock data with a sequence program use the DATERD instruction to read the clock data The year data is read out in 4 digits It can be compared as it is by using a compare instruction 7 FUNCTION MELSEC Q 7 6 Remote Operation The Basic
202. or common information information Error common Error common information information SD15 Vacant Time value set Meaning Time 1 us units 0 to 999 us Time 1 ms units 0 to 65535 ms Vacant ram error location Meaning File name ASCII code 8 characters Extension 1 2EH ASCII code 3 characters Pattern 2 Block No Step No transition No Sequence step No L SD15 Sequence step No H 2 The pattern data is 0 fixed D D D D D D 2 g Q 9 g Q oa A wo N x 1 Refer to REMARK 1 Extensions are shown below mal 3J Higher8 bits Lowers bits Higher8 bits Extension name File type Sequence program PSH SAH QDR___FFile register App 7 App 7 APPENDICES MELSEC Q Special Register List Continued e Individual information corresponding to error codes SDO is stored here File name Drive name Example Meng Perene D16 Drive B15 to B8 B7 to BO D17 41H A 4DH M D18 File name 4EH N 49H I D19 ASCII code 8 characters 20H SP 20H SP D20 20H SP 20H SP D21 Extension l 2EH 51H Q 2EH D22 ASCII code 3 characters 47H G 50H P D23 D24 D25 D26 Time value actu1ally measured Number Meaning SD16 Time 1 us units 0 to 999 us SD17 Time 1 ms units 0 to 65535 ms SD18 SD19 SD20 SD21 SD22 Vacant SD23 SD24 SD25 SD26 Program error location Er
203. orrect the module I O number of the data module I O number is in error send destination number error count range error word bit is outside the range word bit The next data was received before e Perform handshake with the device on the 7F01H Buffer full error completion of received data other end for example to increase the processing sending intervals e The command frame section specified Receive header is inerror Check and correct the sent message of the section error e The ASCII code received cannot be device o9 u other endang restar communication converted into binary CPU detected error x Error that occurred in other than the serial communication function 7164H EZE Pata count oor count error Continuous The next request was received before request error the reply message was returned 7 FUNCTION MELSEC Q Error Code Error Item Error Definition Corrective Action Hexadecimal The command or device specified does Check and correct the sent message of the 7F22H Command error not exist device on the other end and restart e The remote password length is in error communication MC protocol The data e g ETX CR LF specified e Check and correct the sent message of the 7F23H p after the character part does not exist device on the other end and restart message error ae or in error communication e The calculated sum check does not e Reconsider the sum check of the device on 7F24H Sum
204. ot 0 slot 4 0123 4 a IslSslZ SlS S x xls gt gt gt 0 Oo aloo S O 2 a E W 1 slot occupied Install modules to slots 0 15 Installing any module to slot 16 or later will result in an error SP UNIT LAY ERR 0 1 2 3 4 lt WYSlotNo gt a O FE i So Q Co t CPU slot 101112 gt a ha Q68B o 0 0 131415 _ When the GOT has been bus connected g 2 2 one slot of extension base 1 is used 3 Q65B Also one GOT occupies 16 I O points oO te A When using the GOT consider the number A 7 of slots and the number of I O points Modules cannot be installed Refer to the GOT Manual for details of bus Installing modules will result in error connecting the GOT 5 ASSIGNMENT OF I O NUMBERS 5 1 2 QOOCPU Q01CPU MELSEC Q The QOOCPU Q01CPU can configure a system with a total of five base units one main base unit and four extension base units Note that the number of usable slots modules is 24 slots including vacant slots gt a 2 2 N pas D fo oa 1 slot occupied Install modules to slots 0 23 Installing any module to slot 24 or later will result in an error SP UNIT LAY ERR Hence the following system uses five slots slot 0 slot 4 0 1 2 3 4 lt SlotNo
205. out short circuits or malfunction Startup and Maintenance precautions A CAUTION e The online operations conducted for the CPU module being operated connecting the peripheral device especially when changing data or operation status shall be conducted after the manual has been carefully read and a sufficient check of safety has been conducted Operation mistakes could cause damage or problems with of the module e Do not disassemble or modify the modules Doing so could cause trouble erroneous operation injury or fire e Use acellular phone or PHS more than 25cm 9 85 inch away from the PLC Not doing so can cause a malfunction e Switch all phases of the external power supply off before mounting or removing the module If you do not switch off the external power supply it will cause failure or malfunction of the module Disposal Precautions A CAUTION e When disposing of this product treat it as industrial waste REVISIONS The manual number is given on the bottom left of the back cover Print Date_ Manual Number Aug 2001 SH NA 080188 A First edition Japanese Manual Version SH 080185 B This manual confers no industrial property rights or any rights of any other kind nor does it confer any patent licenses Mitsubishi Electric Corporation cannot be held responsible for any problems involving industrial property ights which may occur as a result of using the contents noted in th
206. p 13 APPENDIX 1 Special Relay Lists sccscdenitlaaand det naaadcdielslueedndidsidiiadaaaleidniedealaaieee App 1 APPENDIX 2 Special Register List saantaasedaadeaglgdssuaseadaaduatsoronasuratatuaanediedeasvaanaegesdjdsigusajuseatancadunadnasnacesasedisisageetuands App 5 APPENDIX 3 List of Interrupt Pointer Nos and Interrupt Factors cceseeeeseeeeeseseseseeeeeseseaeaeaeaeaeaeaeaseeeeeeeeees App 12 INDEX Index 1 to Index 2 Related manual see QCPU Q Mode User s Manual Hardware Design Maintenance and Inspection CONTENTS 1 OVERVIEW 1 1 Features 2 SYSTEM CONFIGURATION 2 1 System Configuration 2 1 1 QOOJCPU 2 1 2 Q00 Q01CPU 2 1 3 Configuration of GX Developer 2 2 Precaution on System Configuration 2 3 Comfirming Serial Number 3 GENERAL SPECIFICATIONS 4 HARDWARE SPECIFICATION OF THE CPU MODULE 4 1 Performance Specification 4 2 Part Names 4 2 1 QOOJCPU 4 2 2 QOOCPU Q01CPU 4 3 Switch operation after Program write 4 4 Reset operation 4 5 Latch clear operation 5 POWER SUPPLY MODULE 5 1 Specification 5 1 1 Power supply module specifications 5 1 2 Selecting the power supply module 5 1 3 Precaution when connecting the uninterruptive power supply 5 2 Part Names and Settings 6 BASE UNIT AND EXTENSION CABLE 6 1 Base Unit Specification Table 6 2 Extension Cable Specification Table 6 3 The Names of The Parts of The Base Unit 6 4 Setting the Extension Base Unit 6 5 Input Output Allocations
207. peration 2 The serial communication module and Ethernet interface module are controlled by commands complying with the MC protocol For details of the MC protocol refer to the following manual Q corresponding MELSEC Communication Protocol Reference Manual To return the Basic model QCPU to the RUN status after the remote latch clear perform a remote RUN operation Precautions a b Either remote latch clear cannot be performed when the Basic model QCPU is at RUN status There the latch clear remote latch clear operation valid range and invalid range as the device latch ranges set in the device setting in the parameter mode In the remote latch clear operation only the device range set as the latch clear valid range is reset Refer to Section 4 6 for the way to reset the device set to latch clear invalid Devices that are not latched are cleared when the remote latch clear is executed The data in the failure history storage memory of the Basic model QCPU will also be cleared by a remote latch clear operation 7 FUNCTION MELSEC Q 7 6 5 Relationship of the remote operation and Basic model QGPU RUN STOP switch 1 Relationship of the Remote Operation and Basic model QCPU Switch The Basic model QCPU operation status is as follows with the combination of remote operations to RUN STOP RESET switch Remote operation RUN STOP PAUSE RESET 3 Latch clear Cannot Cannot STOP PAUSE oa os operate operate
208. personal computer Display device or the like b When you specify Use serial communication the transmission speed changed using GX Developer is not made valid POINT The data set in serial communication setting is made valid when e The PLC is powered on or e The Q00 Q01CPU is reset 7 FUNCTION MELSEC Q 6 Error codes for communication made using serial communication function The following table indicates the error codes error definitions and corrective actions that are sent from the QOOCPU or Q01CPU to the external device when errors occur during communication made using the serial communication function e Refer to the Appendices of the Basic Model QCPU Q Mode User s Manual Hardware Design Maintenance and Inspection and take corrective action e Reconsider the sent message Frame length The length of the received message is e The number of access points of the error outside the permissible range message should be within the permissible range 7155H Unregistered A monitor request was given before e Give a monitor request after registering the monitor error monitor registration was made device to be monitored F e Check and correct the sent Requested data The requested data or device message requested data of the device on PARE specifying method is In error the other end and restart communication 7167H A write command was specified for the Change the setting to write during RUN Disabled
209. programming occurs in ladder block units A ladder block is the smallest unit of sequence program processing with the ladder beginning from the left bus and ending at the right bus Left bus a Contact b Contact Coil output Right bus Ladder blocks XO to X5 _ Indicate inputs Y20 to Y24 Indicate outputs Fig 4 1 Ladder Block b List mode The list mode uses dedicated instructions instead of the contact symbols coil symbols etc used in the ladder mode Contact a contact b and coil instructions are as follows acontact LD AND OR e b contact LDI ANI ORI SCO erea OUT 2 Program processing Sequence programs are processed in order beginning from step 0 and ending at the END FEND instruction Processing of ladder mode ladder blocks begins from the left bus and proceeds from left to right When one ladder block is completed processing proceeds downward to the next ladder block Ladder mode List mode Left to right LD a S 2 7 8 9 AND TEE wee he ED I I AND ORB OR AND AND AND Executed in Top to of order beginning bottom from step 0 to the ending at 11 the END 10 CENDH instruction rere errr errr wa OONDOARWNH O O x Numbers 1 to 11 indicate the processing order of the sequence program Step No Fig 4 2 Sequence Program Processing 4 SEQUENCE PROGRAM CONFIGURATION amp EXECUTION CONDITIONS MELSEC Q 4 1
210. r can count only when the input condition ON OFF time is longer than the execution interval of the corresponding OUT Ci instruction The maximum counting speed is calculated by the following formula Maximum counting _ ny htitnea sec speed Cmax 100 T 1 1 See Section 10 2 1 for details regarding direct access inputs 2 2 The duty is the count input signal s ON OFF time ratio expressed as a percentage value n Duty 2 T Execution interval of the OUT CC instruction T1 When T12 T2 n x 1009 en T12 n T1s12 00 When T1 lt T2 n 2 x 100 T1 T2 T1 T2 z T i Count input signal OFF Lt 10 25 10 DEVICES MELSEC Q Interrupt counters 1 Definition Interrupt counters are devices which count the number of interrupt factor occurrences 2 Count processing a The interrupt counter s present value is updated when an interruption occurs It is not necessary to create a program which includes an interrupt counter function b Interrupt counter operation requires more than the simple designation of a setting value To use the interrupt counter for control purposes comparison instructions lt etc must also be used to enable comparisons with the setting value with an internal relay M etc being switched ON or OFF according to the comparison result The figure below shows a sample program in which MO is switched ON after 10 interrupt inputs occur In this example C300 is the inter
211. r from the GX Developer function Refer to Section 7 6 4 for details regarding of the remote latch clear 2 Device latch specification a Specify the device latch latch range setting for each device in the device setting of the PLC parameter There are two types of latch range settings 1 Valid latch clear key Sets the latch range that can be cleared with latch clear operation using the remote latch clear 2 Invalid latch clear key Sets the latch range that can not be cleared even with latch clear operation using the remote latch clear b The devices that were set to invalid RESET L CLR switch can only be cleared by an instruction or GX Developer clear operation 1 Instruction to clear method Reset with the RST instruction or send 0 with the MOV FMOV instruction 2 GX Developer clear method Clear all device memory in the online PLC memory clear including latch Refer to the GX Developer operating manual for details of the GX Developer operation methods POINT To clear file registers or local devices use the RST instruction to perform a reset operation or use the MOV FMOV instruction to transmit 0 See following manual for the MOV FMOV instruction QCPU Q mode QnACPU Programming Manual Common instructions 4 SEQUENCE PROGRAM CONFIGURATION amp EXECUTION CONDITIONS MELSEC Q 4 7 Input Output Processing and Response Lag 4 7 1 Refresh mode The Basic model QCPU features a refresh typ
212. r occurs during a network refresh operation the network refresh operation is suspended and the interrupt program is executed This means that assurance of blocks in cyclic data at each station cannot be secured by using a device designated as a destination of link refresh operation on the MESSECNET H Network System 3 Interrupt factor Interrupt program execution Network refresh execution Network refresh operation is suspended and the interrupt program is executed Fig 4 4 Interruption during Network Refresh Operation 4 Interruption during END processing If an interrupt factor occurs during an END processing waiting period during constant scanning the interrupt program corresponding to that factor will be executed c See Section 10 6 1 for details regarding index register processing when switching to an interrupt program from a main routine program or sub routine program 4 High speed execution of an interrupt program and overhead time By default the Basic model QCPU hides and restores an index register when executing an interrupt program The above listed processes are not performed if an option to Execute at a High Speed is selected in the PLC System Setting sheet of the PLC Parameter dialog box This will make it possible to shorten the duration of overhead time required for execution of an interrupt program Refer to Section 11 2 for the overhead time of an interrupt
213. read by the sequence program the time data can be used for time maintenance Also the time data is used for time maintenance for the Basic model QCPU system functions such as those for failure history The clock operations for the clock function are maintained even when the PLC power is off or when there is a momentary power failure for more than the permitted time using the battery Q6BAT b Clock Data The time data is the year month day hour minute second and day of the week data used for the Basic model QCPU clock element There are the following Contents Four digits in AD Countable from 1980 to 2079 Month 1 to 12 Day 1to31 Automatic leap year calculation 0 to 23 24 hours Minute 0 to 59 0 to 59 Second Sunday Monday EA 2 Day of the week om Friday Saturday 2 Writing to and Reading from the Time Data Clock Element a The following two methods can be used to write to the time data clock element 1 Method to write from GX Developer The time data is written in the clock element by displaying Online gt Set time window Connection target information Target PLC Station no Host PLC type 001 Clock setup Specify execution target YY MM DD Hr Min Sec Day Currently specified station l 1999 s fo fit 42 foo Tuesday E 7 FUNCTION MELSEC Q 2 Method to Write from the Program The time data is written in the clock element by using the clock instruction DA
214. read from target memo Files are written to the program memor i S Write a batch of files from the program memory to the standard ROM x la file stored in memory is deleted Memory formatting is executed Delete PLC data Format PLC memor Arrange PLC memory re organized to make them contiguous O a program memory O Execution enabled A Execution enabled on password match X Execution disabled 1 The codes used at the operation enabled disabled item in the above table are explained below Table 6 6 Operation enabled disabled Description a When write prohibit password is registered in a file When read write prohibit password is registered in a file Verify the target memory and the GX Developer s file Write during RUN in the ladder mode ale em ai pate Write the program Fara memory to ROM cala Eaa C When Basic model QCPU RUN status is in effect 6 FILES HANDLED BY BASIC MODEL QCPU MELSEC Q 6 7 2 File handling precautions 1 Power OFF or reset during program operation a If power is switched off during any file operation that will not cause a file shift the memory data will be indefinite b When the battery Q6BAT is used for backup on the Basic model QCPU switching power off during any of the following operations that will cause a file shift will make the program memory data indefinite e File size change e Arrange PLC memory e New file creation 2 Simultaneous acces
215. red into the failure history storage area while the PLC power is ON c The use of anunciators in the fault detection program permits the user to check for the presence absence of fault and to check the fault content anunciator No by monitoring the special registers SD62 to SD79 when the special relay SM62 switches ON Annunciator ON detection A Exa MPE ee A E ap ARAA A gee O A N ad AS 1 The program which outputs the No of the ON annunciator F5 is shown below Fault detection program XO X10 _ i _ seT F5 H e EE N A T 4 SM62 OFF to ON gt SD62 0to5 SM62 R SD63 0 to 1 BCDP SD62 K4Y20 SD64 0to5 SD65 0 Output of annunciator i i No which switched ON SD79 0 10 12 10 12 10 DEVICES MELSEC Q 2 Anunciator ON procedure a Anunciator ON procedure Anunciator operation can be controlled by the SET Fi and OUT csinstructions 1 The SET F lt instruction switches the anunciator ON only at the leading edge OFF to ON of the input condition and keeps the anunciator ON when the input condition switches OFF In cases where many anunciators are used the OUT F lt instruction can be used to speed up the scan time 2 The OUT F instruction can switch the anunciator ON or OFF It takes longer to do so than the SET F1 instruction If the anunciator is switched OFF by using an OUT F instruction this will require the execution of an RST F_ or BKRST instruction Use a
216. res the base mode S Initial 1 Detail mode 0 Basic only 1 to 4 No of F x Dei a y Stores the maximum number of the expansion bases being installed S Initial expansion bases B2 B1 BO Fixed to 0 Base type gt Main base a rea i differentiation pase anson S Initial differentiation 0 None gt fase Pansion Wh 7 ae a en no expansion Q 1 Q Bis installed to base is installed the value is fixed to 0 4th expansion base B15 B12B11 B8 B7 B4 B3 Bo SD243 SD243 Expansion 3 Expansion 2 Expansion 1 Main No of base slots No of base slots SD244 Fixed to 0 Expansion 4 S Initial 5D244 e As shown above each area stores the number of slots being installed Loaded Loaded maximum I O When SM250 goes from OFF to ON the upper 2 digits of the final I O number plus es S Initial maximum I O No 1 of the modules loaded are stored as BIN values N f l 7 umber ob eddie e Indicates the number of modules installed on MELSECNET H installed S Initial ere MELSECNET H I O number of first module installed Network No e MELSECNET H network number of first module installed information e MELSECNET H group number of first module installed Station No MELSECNETHH station number of first module installed Number of points A pi Stores the number of points currently set for X devices located for X umber of points y P Stores the number of points currently set for Y devices
217. resh Link Direct Device Link Refresh Link relay Ji j K4B0 or later BO or later Program f 7 Ts Ji j WO or later WO or later notation M Link special relay Jc i K4SB0 or later SBO or later method Link special register Ji i SWO or later SWO or later Number of steps All network module link Refresh parameter Network module access range devices designated range Access data guarantee range Word units 16 bits 1 For details regarding the MELSECNET H network system refer to the For Q MELSECNET H Network System Reference Manual 2 For details regarding network parameters common parameters and network refresh parameters refer to the following manuals e Detailed information Q Corresponding MELSECNET H Network System Reference Manual e Setting procedures GX Developer Operating Manual Windows Version 10 37 10 37 10 DEVICES MELSEC Q 10 5 Intelligent Function Module Devices U G 2 1 Definition a The intelligent function module devices allow the Basic model QCPU to directly access the buffer memories of intelligent function modules which are installed at the base unit b Intelligent function module devices are designated by the intelligent function module input output No and the buffer memory address Designation method Ul i Gii Buffer memory address setting range 0 to16383 decimal x1 Intelligent function module special function module I O No Setting If the input output No is a 3 di
218. ror individual Error individual Number Meaning information information PIs D17 File name D18 ASCII code 8 characters D19 D20 Extension 2EH D21 ASCII code 3 characters D22 Pattern 2 D23 Block No D24 Step No transition No D25 Sequence step No L D26 Sequence step No H ra a 3 gt g Vacant DN DN DN DO NO NO OD DM M n no DN DN NN NO DO MO MO MM x2 The pattern data is 0 fixed Parameter number Annunciator number Intelligent function module parameter error Number Meaning Number Meaning Number Meaning SD16 Parameter No 3 SD16 No SD16 Parameter No 3 SD17 SD17 SD17 Error code for intelligent SD18 SD18 function module SD19 SD19 SD18 SD20 SD20 SD19 S02 Vacant Spal Vacant S20 SD22 SD22 SD21 SD23 SD23 SD22 SD24 SD24 SD23 SD25 SD25 SD24 SD26 SD26 SD25 SD26 x3 For details of the parameter numbers refer to the user s manual of the CPU used App 8 App 8 APPENDICES MELSEC Q Special Register List Continued Set by When set Error number that ri rror number th rforms error r SD50 Error reset performs error reset Stores error number that performs error reset All corresponding bits go ON when battery voltage drops
219. routine program Interrupt 04H m e program gt IO interrupt LIRET H j Program x Interrupt gt 129 interrupt CIRET H Program END H Fig 4 3 Interrupt Program Execution b When an interrupt factor occurs the interrupt program with the interrupt pointer number corresponding to that factor is executed However interrupt program execution varies according to the condition at that time 1 When multiple interruptions occur simultaneously When multiple interrupt programs are activated simultaneously the programs will be executed in order beginning from the interrupt program with the highest priority interrupt pointer number 2 The remaining interrupt programs remain on stand by until processing of the higher priority interrupt program is completed If the same interrupt factor as that being executed occurs before the interrupt program is processed the interrupt factor is stored in the memory and after the interrupt program has been processed the same interrupt program is executed again 2 When an instruction is being executed Interruptions are prohibited during execution of instructions If an interrupt factor occurs during execution of an instruction the interrupt program will be executed after processing of the instruction is completed 4 SEQUENCE PROGRAM CONFIGURATION amp EXECUTION CONDITIONS MELSEC Q 3 Interruption during a network refresh If an interrupt facto
220. rror to cancel is stored in SD50 the lower 1 digits of the code number is ignored 7 FUNCTION MELSEC Q 7 13 Failure History The Basic model QCPU can store the failure history results detected from the self diagnosis function and the time in the memory The detection time uses the Basic model QCPU internal clock so make sure to set the correct time when first using Basic model QCPU 1 Storage Area The latest 16 failures are stored in the latched Basic model QCPU failure history storage memory 2 Stored data If the same error occurs more than once during PLC power on it is stored into the failure history storage memory only once 3 Failure History Clearing Method The failure history storage memory are cleared using the failure history clear in the GX Developer PLC diagnosis mode Data files stored in Basic model QCPU failure history storage memory can be cleared with a failure history clear 7 FUNCTION MELSEC Q 7 14 System Protect Basic model QCPU has a few protection functions system protect for the program changes to processing of general data obtained from a third party other than the designer access processing from GX Developer function or serial communication module There are the following methods for system protects Valid Item to protect Protect valid file Protection description Method Remarks Q The attributes for a file is Program Change the attributes for changed to the following
221. rupt counter No corresponding to 10 K10 c300 lt mo gt 3 Setting the interrupt counter a In order to use interrupt counters at first interrupt counter No setting must be designated in the PLC system settings in the PLC parameter setting 256 points are then allocated for interrupt counters beginning from the first counter No which is designated If C300 is designated as the first interrupt counter No numbers C300 to C555 will be allocated for interrupt counters C300 10 C301 11 C302 12 Interrupt counter 127 points C555 1127 Values corresponding to the interrupt counter No b In order to use an interrupt counter an interruption permitted status must be established by E1 instruction at the main routine program 10 26 10 26 10 DEVICES MELSEC Q 4 Precautions a One interrupt pointer is insufficient to execute interrupt counter and interrupt program operation Moreover an interrupt program cannot be executed by an interrupt counter setting designated in the PLC system settings in the PLC parameter setting b If the processing items shown below are in progress when an interruption occurs the counting operation will be delayed until processing of these items is completed The count processing starts after the execution of program is completed Even if the same interruption occurs again while processing of these items is in process only one interruption w
222. s refer to Section 7 7 5 Setting the switch of intelligent function modules To set the switch of the intelligent function module select Type in the I O assignment beforehand For details refer to Section 7 8 6 Setting outputs during Basic model QCPU error To set the output status retain clear of the output modules and intelligent function modules when the Basic model QCPU stops the operation due to a stop error select Type in the I O assignment beforehand 7 Setting Basic model QCPU operation during a hardware error of intelligent function modules To set the Basic model QCPU operation continue stop during a hardware error of an intelligent function module select Type in the I O assignment beforehand 1 The I O assignment setting of the PLC parameters are made valid when the PLC is powered on or the Basic model QCPU is reset When you have changed the PLC parameter values power on the PLC again or reset the Basic model QCPU 2 I O assignment must be made to set the response time of the input module or make the switch setting of the intelligent function module 5 ASSIGNMENT OF I O NUMBERS MELSEC Q 5 6 2 Concept of I O assignment using GX Developer 1 I O assignment for each slot You can designate Type module type Points number of I O points and Start XY head I O number individually for each slot of the base unit For example to change the number of I O points of the designated
223. s File register R 1 In use 0 Not used File register e Stores drive number being used by file register S Status change SD641 e Stores file register file name with extension selected at parameters as ASCII SD642 code B15 to B8 B7 to BO IsD643_ Ispe44_ SD641 Second character First character SD644 File register file SD642 Fourth character Third character SD645 Aam File register file name SD643 Sixth character Fifth character S Status change 1 ame SD644 Eighth character Seventh character SD645 First character of extension 2EH SD646 i Second character of SD646 Third character of extension extension File register A T i SD647 an File register capacity Stores the data capacity of the currently selected file register in 1 k word units S Status change 1 File register File register block 3 R SD648 gi gi e Stores the currently selected file register block number S Status change 1 block number number 1 The data is set when the CPU is stopped and then RUN or the RSET instruction is executed after parameter execution 6 Instruction Related Registers Set by When set e Patterns masked by use of the IMASK instruction are stored in the following manner B15 B1 BO 15 n lo S During execution 117 116 133 132 Stores the mask patterns masked by the IMASK instruction as follows B15 B1 B0 SD781 163 149 Mask pattern of IMASK Mask pattern SD7821 9 au
224. s of the same file from multiple GX Developers The Basic model QCPU allows access to a single file from a single GX Developer only To make access from multiple GX Developers to the same file start the processing of next GX Developer after completion of the processing of current GX Developer 6 FILES HANDLED BY BASIC MODEL QCPU MELSEC Q 6 7 3 File size The file size differs with the types of files used When a program memory standard RAM and standard ROM are used calculate the size of a file with reference to the table 6 7 shown below Space for file storage is available as shown below e Program memory standard ROM 4 bytes Table 6 7 List of File Size Function Estimated File Size in byte Driveheader 64 Default 522 increased by the parameter setting For Reference Boot setting to 70 18 x Number of files With the MELSECNETHH setting to maximum 4096 unit increased With Ethernet setting to maximum 922 unit increased Parameter With CC Link setting to maximum 251 units increased Sequence program 136 4 X Number of steps 74 Total of comment data size of each device e Comment data size of a device 10 10250 x a 40 X b a quotient of Number of device points 256 e b remainder of Number of device points 256 File register i x Number of file register points An example for calculating the amount of memory capacity required when writing the parameter and sequence program in the pro
225. s same when Diversic using multiple PLC Acknowledge XY assignment Multiple PLC etting of multiple PLC meter nofn LC para Default Check End Cancel Read PLC data 3 Precautions a Setting of a higher input response rate increases sensitivity to noise or like Take the operating environment into consideration when setting the input response rate The setting of the input response rate is made valid when e The PLC is powered ON or e CPU module is reset b 7 FUNCTION MELSEC Q 7 7 3 Selection of input response time of the interrupt module 1 Selection of input response time of the interrupt module mean 2 Qn H Parameter PLC name PLC system SFC YO assignment Interrupt selection LC file PLC RAS Selection of input response rate of the interrupt module is to change the input response rate of the Q series compatible interrupt module QI60 to 0 1ms 0 2ms 0 4ms 0 6ms or 1ms on a module basis The interrupt module imports external inputs at the specified input response rate The default value of the input response rate is set to 0 2ms ON OFF External input ON OFF Interrupt module Input response time Input response time setup Set the input response rate in the I O assignment PLC parameters Choose Interrupt as the type of the slot to which the input response rate is set Advanced seitings selection Input response time selection
226. s used for the output of ON OFF data from Basic model QCPU I O numbers are expressed as hexadecimals When using 16 point I O modules I O numbers are consecutive numbers that 1 slot has 16 points 0 to F as follows The module that is mounted in the base unit assigns the following e For the input module X is assigned at the beginning of the I O number e For the output module Y is assigned at the beginning of the I O number For the case of input module For the case of output module Power supply module X 0 1 F 16 input points points 0 0 F 16 input points 5 ASSIGNMENT OF I O NUMBERS MELSEC Q 5 5 Concept of I O Number Assignment 5 5 1 I O numbers of main base unit and extension base unit Basic model QCPU assigns I O numbers at power on or reset according to the following items As a result you can control Basic model QCPU without using GX Developer for I O assignment To assign I O numbers follow the items below 1 Number of slots of base units The number of slots of the main and extension base units are set according to the Base mode setting For Base mode refer to Section 5 3 a In Auto mode the number of slots is determined as the available number of modules installed to each base unit For example 5 slots are assigned
227. second later The high speed timer measures time in 10 ms units Time chart X0 T200 coil T200 contact OFF f 2 Measurement units a The default time measurement units setting for high speed timers is 10 ms b The time measurement units setting can be designated in 0 1ms units within a 0 1 ms to 100 ms range This setting is designated in the PLC system settings in the PLC parameter setting 10 20 10 20 10 DEVICES MELSEC Q Retentive timers 1 Definition a Retentive timers measure the coil ON time b The measurement begins when the timer coil switches ON and the contact switches ON when a time out coil OFF occurs Even when the timer coil is OFF the present value and the contact ON OFF status are saved When the coil is switched ON again the time measurement resumes from the present value which was saved c There are 2 retentive timer types low speed retentive timer and high speed retentive timer d The RST Ti instruction is used to clear reset the present value and switch the contact OFF Ladder example XO K200 STO X0 ON time is measured as 20 seconds when the timer measures time in 100 ms units x1 Retentive timer display e J RST STO When X1 switches ON the STO contact is reset and the present value is cleared Time chart ON X0 OFF ON TO coil OFF k 15 Sec 5 Sec TO present value 0AI to 150 151 to 200 0 Present value is saved when coil switches O
228. seseeesseseseesseseseseeseseseseeeseseseeteaeseseateesaeseseeteaeasseseeeeatsees 2 5 2 27 System Precaution stn ieee heen ei eit halal eid Gags 2 6 2 3 Confirming Serial Numbers and Function Versions cccesccscsecesesseseceseseeseseeeeeescaeeeeeseeseaeeeeeeseaeeteaseeseaeeneenaees 2 7 3 PERFORMANCE SPECIFICATION 3 1to3 3 4 SEQUENCE PROGRAM CONFIGURATION amp EXECUTION CONDITIONS 4 1 to 4 25 A SEQUENCE Progra soene peni ain a E E N E G ON EG E E EEE 4 1 4 1 1 Main routine program i c08in iin dine alin elie linn a aa aain 4 3 4 1 2 Subroutine PrOQFAMS t esti erran Siete Sree Gal Sided vent Guin Sasi dieataeeicduan tier 4 4 4 4 3 Interrupt Programs hi lead ale Lal lee en ee Dalen lev ela Eia 4 5 42 Concept of Scan Time kei E aE E dl eit ibaa headland Aa 4 9 C F lt 1 Felt ofa Ala KO lt c1 lt 0 Pree rier reve rre verte per er re renee prerercerieerrer eer ceyerr pre rr rererrper a rere pereererrerrer ere ere 4 10 AST Initial procos sigen i e eviews E nie tier tee etd etnies 4 10 4 3 2 I O refresh I O module refresh ProC SSinQ ceccecceseeeeseeceeeeeeeeeceeeeeeaesaeseeseaeeaesaeseeseaeeaneaneaeeaes 4 11 4 3 3 Automatic refresh of the intelligent function module 0 0 eee cece eens eee eeeeeneeeaeeeaeeeaeeeaeeeaeeeaeeeateas 4 11 4 34 END processingiascia fciikneie hhh nti dre net a EAF AEE EAER haat heist idea tieaaiiieed 4 11 4 4 RUN STOP PAUSE Operation ProCeSSing cccccccssssssssssses
229. signated for a refresh input and a direct access input If used as a refresh input after being used as a direct access input operation will be based on the ON OFF data read at the direct access input Operation is based on the ON OFF data read at the END processing input refresh Direct access input paa is based on the R data read at the input module Operation is based on the ON OFF data read at the direct access input Figure 10 3 Refresh Input amp Direct Access Input 1 When debugging a program an input X can be set to ON OFF as described below e OUT Xn instruction OUT X1 ae command F4 gt lt xX GX configurator test operation 2 With the CC Link an input x can be designated as a destination device for the e RX refresh on Basic model QCPU side by using a CC Link automatic refresh setting e Refresh destination Basic model QCPU side device of link input of MELSECNET H 10 7 10 7 10 DEVICES MELSEC Q 10 2 2 Outputs Y 1 Definition a Outputs are program control results which are output to external destinations solenoid electromagnetic switch signal lamp digital display etc Signal lamp Output Y Digital display Sequence operation Contact Ot b Outputs occur at one N O contact or its equivalent c There are no restrictions regarding the number of output Yn N O contacts and N C contacts used in a program Program
230. sing a The use of a relay V that comes ON at the leading edge of the input condition simplifies pulse processing when a contact index qualification has been made Circuit example M1000 RST Z1H Reset index register Z1 FOR K1000 H Repetition 1000 times designation X0Z1 VOZ1 MOZ1 X Pulsing MO to M999 M1000 eH Hl Inc z H Increment Index Register Z1 1 cc NEXT H Return to FOR instruction Timing chart ON XO OFF ON When Z1 0 VO OFF MO OFF 1 Scan ON X1 OFF j ON When Z1 1 V1 OFF l ON M1 OFF 1 Scan x NUL indicates OOH character string END Data processing instructions such as table processing instructions etc enable high speed processing of large amounts of data XO 4 FINSP DO RO K2 FIFO table FIFO table Insertion Insertion Insertion position RO RO 4 source designation R1 10 R1 10 gt Instruction for data insertion at table DO 15 j R2 20 o Ni 15 R3 30 R3 20 pat ral 0 1 OVERVIEW 4 MELSEC Q Easy shared use of sub routine programs Subroutine call instructions with arguments will make it easier to create a subroutine programs that makes several calls Main routine program Argument designation MO c o Hear Po wo K4xo Ro Subroutine program designation Argument designation M10 100 H Heae Po w10 kaxio R10 PO Argument from FD2
231. slot you can designate only the number of I O points The items other than designated are set to the status where the base unit is installed The I O assignment is conducted according to the I O assignment setting of PLC Parameter PLC name PLC systam SFC bgram Boot file 170 Assigngnent Switch setting Detailed setting If the start X and Y are not input the PLC assigns them automatically It is not possible to check correctly when there is a slot of the unsetting on the way Standard setting Base mode Auto C Detail Increased 12 fixation settings should be set as same when Read PLC data using multiple PLC Acknowledge XY assignment Default Check End Cancel a Slot Displays the slot No and the ordinal position of the slot in the base unit If the base unit is not designated in Detail mode the stage number of the base unit is shown as and the ordinal number of a slot is counted from slot 0 of the main base unit b Type Used with Basic model QCPU Select the type of module being installed from the followings e Empty Empty slot e Input Input module e Hi Input Q series corresponding high speed module e Output Output module e I O Mix I O mixed module e Intelligent Intelligent function module e Interrupt Q series corresponding interruption module If the type is not designated the type of the actually installed module is
232. t 50 50 50 gt 25 SD63 0 gt 1 gt 2 gt 3 gt 2 SD64 0 gt 50 50 50 25 SD65 0 0 gt 25 25 f 1023 SD66 0 0 0 gt 1023 f 0 SD67 0 0 0 0 0 sor of of of of 2 Data stored in special registers SD62 to SD79 when annunciator is turned OFF by execution of BKRST instruction e The annunciator number specified in the BKRST instruction is deleted and the annunciator numbers stored after the deleted one are shifted up e If the annunciator number stored in SD64 is turned OFF the annunciator number newly stored in SD64 is stored into SD62 e The data of SD63 is decremented by the number of reset annunciators e If the data of SD63 is 0 SM62 is turned OFF 3 LED indication When all annunciator numbers in SD64 to SD79 turn OFF the ERR LED is extinguished 10 15 10 15 10 DEVICES MELSEC Q 10 2 6 Edge relay V 1 Definition a An edge relay is a device which stores the operation results ON OFF information from the beginning of the ladder block Edge relays can only be used at contacts and cannot be used as coils xo Xt xo vi Edge relay Stores the X0 X1 and X10 operation results b The same edge relay number cannot be used twice in program executed by the Basic model QCPU 2 Edge relay applications Edge relays are used for detecting the leading edge OFF to ON in program configured using index qualification Ladder example SM400 _ m vov ko
233. t 5 5 5 3 S gt 5 Q a a a Q Q E ox 2 j amp s s s5 5 a O O O O z 32 32 32 16 32 32 32 32 a points points points points points points points points Q68B 2 2 2 a esles fe o 50 E SE SE a 2s ss co S 3 E non oo ras 2 32 32 oo T i a oint FO 110 10F 12F Intelligent function module N O Q 5 G 130 14F X00 X20 X40 60 Y70 Y90 YBO YDO X1F X3F X5F 6F Y8F YAF YCF YEF wo A ol Intelligent function module Output module Output module oo N O amp Output module n 150 170 Y180 Y1A0 Y1CO 16F 17F Y19F Y1BF Y1DF 1 Since the number of I O points of the QOOJCPU is 256 use it within the range X Y0 to X YFF 5 ASSIGNMENT OF I O NUMBERS MELSEC Q b I O assignment with GX Developer Designate the head I O number of slot No 3 to 200 and that of slot No 4 to 70 on the I O assignment screen of GX Developer Qn H Parameter x PLCname PLCsystem PLC file PLCRAS Device Program Bootfile SFC 1 0 assignment Serial 120 Assignment J Slot Type Modelname Ponts Start lal o itoh seti Switch setting o PLC PLC M Detailed setting 200 is designated as the head I O number 70 is designated as the head O number When the head I O number is not designated the I
234. t and extension base unit Extension cable General name for QC05B QCO6B QC12B QC30B QC50B QC100B type extension cable Power supply module General name for Q61P A1 Q61P A2 type power supply module QOOJCPU power supply section Battery General name for battery for Q6BAT type battery MEMO 1 OVERVIEW 1 OVERVIEW This Manual describes the internal memory function program and device of the Basic model QCPU Q00J Q00 Q01CPU MELSEC Q Refer to the following functions for details on power supply modules base units extension cables battery specifications and other information Basic Model QCPU Q mode User s Manual Hardware Design Maintenance and Inspections 1 QO0JCPU e The QOOJCPU is a CPU module consisting of a CPU module a power supply module and a main base unit five slots e This CPU allows connection of up to two extension base units to accept up to 16 input output and intelligent function modules The number of input output points controllable by the main and extension base units is 256 QOOCPU Q01CPU e The QOOCPU and Q01CPU are stand alone CPU modules loaded on a main base unit e Either of these CPUs allows connection of up to four extension base units to accept up to 24 input output and intelligent function modules e The number of input output points controllable by the main and extension base units is 1024 1 OVERVIEW MELSEC Q The following table
235. te contact is turned on is executed to the END process it enters the PAUSE state and stops the calculations 2 When the remote RUN command is received the sequence program calculations are performed again from step 0 Remote PAUSE command Remote RUN command ON ON when PAUSE condition met SM204 RUN PAUSE state PAUSE state Fig 7 7 PAUSE Time Chart with GX Developer function 3 Precaution To set the output Y ON OFF status when change to the PAUSE state perform an interlock with the PAUSE state contact SM204 M20 Y70 ON OFF is determined with the lt Yo70 gt ON OFF of the M20 in the PAUSE state X000 SM204 Y071 Turns off at PAUSE state 0 M Y072 Turns on at PAUSE state Baas 7 FUNCTION MELSEC Q 7 6 3 Remote RESET 1 What is Remote RESET a The remote RESET resets the Basic model QCPU from an external source when the Basic model QCPU is at STOP state Even if the Basic model QCPU RUN STOP key switch is at RUN the reset can be performed when the Basic model QCPU is stopped and an error that can be detected by the self diagnosis function occurs b Remote RESET can reset the Basic model QCPU remotely when an error occurs for which the Basic model QCPU cannot be operated directly Remote RESET can be executed only at the STOP state When the Basic model QCPU is at RUN state use Remote STOP to arrange the STOP state 2 Remote RE
236. ter W 2 Latch Range Setting The latch range setting is performed with the PLC parameter mode device setting Latch range setting can be made in two ranges latch clear remote latch clear operation valid range and invalid range 7 FUNCTION MELSEC Q 3 Clearing the Latch Range Device Data The following table indicates the device status when latch clear is performed Latch Setting Made or Not Cleared or Maintained by Latch Clear Device without latch range specified Latch 1 setting device set to The clear is possible Cleared with latch clear Cleared Latch 2 setting device set to The clear is impossible ee Maintained with latch clear File registers R cannot be cleared with latch clear See Section 10 7 for clearing file registers 4 Precautions The device details of the latch range are maintained with the battery Q6BAT attached to the Basic model QCPU a The battery is needed to latch devices if sequence program are stored onto the standard ROM to perform ROM operation b Note that if the battery connector is unplugged from the Basic model QCPU connector during PLC power off the device contents in the latch range are not maintained and will be indefinite values 7 FUNCTION MELSEC Q 7 4 Setting the Output Y Status when Changing from STOP Status to RUN Status 1 Output Y Status when changing from STOP Status to RUN Status When changing from RUN status to STOP status the R
237. ters Wn and Wn 1 The lower 16 bits of data are stored in the link register No Wn designated in the sequence program and the higher 16 bits of data are stored in the designated register No 1 Wn 1 For example if link register W12 is designated at the DMOV instruction the lower 16 bits are stored in W12 and the upper 16 bits are stored in W13 H _ pov ks500000 m Processing object W12 W13 W13 W12 Upper 16 bits Lower 16 bits In two link register points 2147483648 to 2147483647 or 0H to FFFFFFFFu data can be stored d Data stored by the sequence program is maintained until another data save operation occurs The MELSECNET H network module has 16384 link register points The Basic model QCPU has 2048 link register points When subsequent points after Point 2048 are used for link registers change a number of points setting of link registers on the Device sheet of the PLC Parameter dialog box 10 29 10 29 10 DEVICES MELSEC Q 2 Using link registers in a network system In order to use link registers in the network system network parameter settings must be made Link registers not set in the network parameter settings can be used as data registers 1 For details regarding network parameters refer to the Q Corresponding MELSECNET H Network System Reference Manual 10 2 14 Special link registers SW 1 Definition a Special link registers are used to store data on
238. the Basic model QCPU and the MELSECNET H network system modules Link direct devices are used at that time to directly access the link devices in the MELSECNET H network modules b Designation method e Link direct devices are designated by network No and device No Designation method Jij Ci Device No INU snini X0 Output YO Link relay BO Link register Wo Link special relay SBO Link special register SW0 Network No 1 to 255 e For link register 10 W10 of network No 2 the designation would be J2 W10 H vov Kioo emoh Network modules at network No 2 jo E W10 e For a bit device X Y B SB digit designation is necessary Designation example J1 K1X0 J10 K4B0 2 Designation range Link direct device designations are possible for all the link devices in network modules Device outside the range specified by the network refresh parameters can also be designated a Writing 1 Writing is executed within that part of the link device range set as the send range in the common parameters of the network parameters that is outside the range specified as the refresh range in the network refresh parameters Basic modelQCPU Network module _ BO LB 0 Link range Refresh i range f send range Writing range 10 35 10 35 10 DEVICES MELSEC Q 2 Although writing is also possible in the re
239. the communication status and errors of an intelligent function b Because the data link information is stored as numeric data the special link registers serve as a tool for identifying the locations and causes of faults 2 Number of special link register points There are 1024 special link register points from SWO to SW3FF The special link register points are assigned at the rate of 512 points per intelligent function module such as a MELSECNET H network module For details regarding special link registers used in the Basic model QCPU refer to the QCPU Q mode QnACPU Programming Manual Common Instructions 10 30 10 30 10 DEVICES MELSEC Q 10 3 Internal System Devices Internal system devices are devices used for system operations The allocations and sizes of internal system devices are fixed and cannot be changed by the user 10 3 1 Function devices FX FY FD 1 Definition a Function devices are devices used in sub routine program with arguments to permit data transfers between the sub routine program with argument and the CALL source for that sub routine Daeg EXAMP MATS rig carrey ae ote erie pk Ye ge eRe PT ye T Pee Paes 7 If FXO and FD1 are used at the sub routine program and if MO and DO are designated by the sub routine CALL instruction the MO ON OFF data is transferred to FXO and the DO data is transferred to FD1 Sub routine program CALL source Sub routine program XO FXO CALL PO Mo D
240. the constant scan time a The constant scan time setting is performed with the parameter mode PLC RAS The constant scan setting range is 1 ms to 2000 ms A setting can be made in modules of 1 ms e When executing constant scan set the constant scan time When not executing a constant scan leave the constant scan time blank Example When the constant scan is set to 10 ms Qn H Parameter me m LCRAS Pevice Program Bostfie SFC I 0 assignment WDT Watchdog timer setup Error check WV Cary out battery check WDT Setting 200 ins 10ms 2000ms Initial M Carry out fuse blown check execution ms 10ms 2000ms Carry out 1 0 unit comparison Low speed 10ms Constant scannini las ms 10ms 2000ms ing 10 ms 0 5ms 2000ms Operating mode when there is an error Computation error Stop 2 Low speed program execution time Expanded command error Stop 2i m ms 1ms 2000ms Fuse blown Stop Zi 1 0 unit comparison error Stop X Breakdown history Record in PLC RAM Record in the following history file Memory card access error Stop Bj Corresponding lt i memory Memory card operation error Stop Nd File name External power supply OFF fStop 2 History no Item 16 100 Intelligent module program ti X execution error Stop i Acknowledge XY assignment Default Check End setup Cancel b Set the set time of the constant scan larger than the maximum scan time of the sequence program Also set the co
241. the input output modules loaded on the base units 256 points X YO to FF are supported by the QOOJCPU and 1024 points X Y0 to 3FF by the QOOCPU Q01CPU Up to 2048 points X Y0 to 7FF are supported as the number of input output device points usable for refreshing the remote input output of CC Link and the link inputs and outputs LX LY of MELSECNET H 2 Lineup according to program capacity The optimum CPU module for the program capacity to be used can be selected QOOJCPU QO0CPU 8k steps Q01CPU 14k steps 3 Fast processing The LD instruction processing speeds are the following values QoO0JCPU 0 20us QOOCPU 0 16us Q01CPU 0 10us In addition the high speed system bus of the MELSEC Q series base unit speeds up access to an intelligent function module and the link refresh of a network MELSECNETHH link refresh processing 2 2ms 2k words 1 1 This speed only applies when the SB SW is not used with the Q01CPU and the MELSECNET H network module is used as the main base unit 4 Increase in debugging efficiency through high speed communication with GX Developer The RS 232 interface of the Basic model QCPU enables program write read or monitor at a maximum of 115 2kbps 5 Saved space by a reduction in size The installation area of the Basic model QCPU is about 60 of that of the AnS series Comparison of installation space
242. the operation processing The timer clock continues b When a momentary power failure ends the operation processing is resumed c Even if the operation is interrupted due to momentary power failure the watchdog timer WDT measurement continues For example if the GX Developer PLC parameter mode WDT setting is set at 200 ms when a momentary failure of 15 ms occurs at scan time 190 ms the watchdog timer error is set Momentary power failure occurrence Power recovery aie QCPU interrupts the operation Fig 4 5 Operation Processing When Momentary Power Failure Occurs 2 When a power failure occurs for more than the permitted power failure time The Basic model QCPU starts initially PLC power is turned on The same operation processing as that after the following operation occurs Power ON e Resetting using RUN STOP RESET switch e Remote setting using GX Developer 4 SEQUENCE PROGRAM CONFIGURATION amp EXECUTION CONDITIONS MELSEC Q 4 6 Data Clear Processing 1 Data clear The Basic model QCPU clears all data except for the following when a reset operation is performed with RESET L CLR switch or power ON to OFF to ON a Program memory data b Device data with latch specification latch clear valid c Device data with latch specification latch clear invalid d File register data e Failure history data when special register SD storage Data in b is cleared using the remote latch clea
243. tion a System including extension base units b System including extension base unit and GOT o Extension Extension cable cable ase unit Q68B Extension base unit Q68B Pasari 8 9 101112 Poo joe Power supply module Power supply module System configuration Extension base unit Q65B 13 14 15 pply Inhibited Inhibited Power su module o ojojojo ojojojojo Loading will cause error Number of extension units 2 Extension cable connector Slot No 0 kBoth of the above systems assume that each slot of the main and extension base units is loaded with a 16 point module Maximum number of Two Extension Stages Extension Stages Maximum number of input output modules to 16 modules be installed Maximum number of 256 input output points Unnecessary Extension base unit Q52B Q55B Q63B Q65B Q68B Q612B Extension cable QC05B QC06B QC12B QC30B QC50B QC100B 1 Do not use an extension cable longer than an overall extension length of 13 2m 43 31ft 2 When using an extension cable do not bind it together with the main circuit high voltage and heavy current line or do not lay down them closely to each other 3 When setting the No of the expansion stages set it in the ascending order so that the same No is not set simultaneously by two extension base units 4 T
244. tion is satisfied 2 Sub routine program management Sub routine programs are created after the main routine program after FEND instruction and the combination of main and sub routine programs is managed as one program Create a sub routine program as described below e A sub routine program is created between the main routine program s FEND and END instructions e Because there are no restrictions regarding the order in which sub routine programs are created there is no need to set the pointers in ascending order when creating multiple sub routine programs MAIN Basic model QCPU x Program memory Main routine Write Sere 7 Program file FEND Po Yio 4 c TRET H Sub routine lt program P8 Y11 a E RET J Pit y2 4 RET END 4 SEQUENCE PROGRAM CONFIGURATION amp EXECUTION CONDITIONS MELSEC Q 4 1 3 Interrupt programs 1 Definition of interrupt program a An interrupt program is a program which begins at the interrupt pointer IE and ends at the IRET instruction 1 b Interrupt programs are executed only when an interrupt factor occurs 1 2 Interrupt program management Interrupt programs are created after the main routine program after the FEND instruction and the combination of main and sub routine programs is managed as one program Create an interrupt program as described below e An interrupt program is created betw
245. tions of the CPU modules power supply modules base units 13JL97 extension cables and others Option QCPU Q Mode QnACPU Programming Manual Common Instructions SH 080039 Describes how to use the sequence instructions basic instructions advanced instructions and micro 13JF58 computer programs Option How to Use This Manual This manual is prepared for users to understand memory map functions programs and devices of the CPU module when you use Basic model QCPU Q00J Q00 Q01CPU The manual is classified roughly into three sections as shown below 1 Chapters 1 and 2 Chapters 3 to 6 Chapter 7 Chapter 8 Chapters 9 and 10 Chapter 11 Chapter 12 This manual does not explain the functions of power supply modules base units extension cables and batteries For these functions refer to the manual shown below e Basic Model QCPU Q Mode User s Manual Hardware Design Maintenance and Inspection Describe the outline of the CPU module and the system configuration The feature of CPU module and the basics of the system configuration of CPU are described Describe the performance specifications executable program I O No and memory of the CPU module Describes the functions of the CPU modules Describes communication with intelligent function modules Describe parameter and devices used in the CPU modules Describes the CPU module processing time Describes the procedure for writ
246. try of Economy Trade and Industry for service transaction permission Specifications subject to change without notice
247. ts the response time of the Q series compatible input module from among 1ms Series compatible input module 5ms 10ms 20ms and 70ms Default 10ms Selection of input response time of Q Series compatible high speed input module Selection of input response time of This function changes the response time of the Q series compatible interrupt module to any of Q Series compatible interrupt module 0 1ms 0 2ms 0 4ms 0 6ms and ims Default 0 2ms This function makes various settings of an intelligent function module intelligent function module switches Refer to the corresponding intelligent function module for settings Section 7 7 1 This function changes the response time of the Q series compatible high speed input module to ion 7 7 2 any of 0 1ms 0 2ms 0 4ms 0 6ms and 1ms Default 0 2ms Section Section 7 7 3 Section 7 8 Write during RUN This function writes program when the Basic model QCPU is in the RUN status Section 7 10 This function monitors operational delays caused by Basic model QCPU s hardware and program Watchdog timer nie prap yS cau y w preg Section 7 14 elf Diagnosis function This function enables the Basic model QCPU to check for failures Section 7 15 ailure history This function stores a failure history of diagnosis results in the memory Section 7 16 This function prevents the program from being altered by the GX Developer communication System protect perenne DEON prog 9 y P Section 7 17 module
248. twork module QJ71LP21G QU71LP21GE One module only ie Series Ethernet interface QJ71 71 QU71E71 B2 QU71E71 100 One module only Up to 2 modules Q series CC Link system QJ61BT11 function version B or master local module later Interrupt module aiso One module onl b A graphic operation terminal can be used only for the GOT900 series and F900 series Basic OS matching Q mode and communication driver must be installed The GOT800 series A77GOT and A64GOT cannot be used c A DeviceNet Master Slave module QJ71DN91 whose function version is B or later can be used 2 Software package GX Developer and GX Configurator of the versions or later in the following table are usable with the Basic model QCPU Ver 1 101 2 SYSTEM CONFIGURATION 2 3 Confirming the function version MELSEC Q The Basic model QCPU function version can be confirmed on the rating nameplate and GX Developer s system monitor 1 Confirming the function version on the rating nameplate The function version is indicated on the rating nameplate MELSEC Q MITSUBISHI MODEL LISTED 80M1 IND CONT EQ C MITSUBISHI ELECTRIC MADE IN JAPAN J Serial No First five digits Function version SERIAL 03051 00000000004 2 Confirming the function version on the system monitor product information List The product information list in the system monitor of GX Developer allows you to confirm the
249. uch as the MELSECNET 10H Network Module 1 For details regarding special link relays used at the Basic model QCPU refer to the QCPU Q mode QnACPU Programming Manual Common Instructions 10 2 9 Step relays S The step relays are devices designed for SFC The step relays cannot be used for future expansion 10 18 10 18 10 DEVICES MELSEC Q 10 2 10 Timers T Timers are of a forward timer type with the time measurement beginning when the coil switches ON and ending time out when the present value exceeds the setting value The present value matches the setting value when a time out occurs There are two types of timers a low high speed that allows the current value to return to 0 when a timer coil switches OFF and a retentive timer that retains the current value even when a timer coil switches OFF Timers Timers Low speed timers High speed timers Retentive timers Low speed retentive timers ES High speed retentive timers With a timer setting instruction format a device is assigned for a low speed timer or high speed timer The OUT TO instruction is used to assign a device for a low speed timer The OUTH TO instruction is used to assign a device for a high speed timer With a timer setting instruction format a device is assigned for a low speed retentive timer or high speed retentive timer The OUT TO instruction is used to assign a device for a low speed retentive timer The OUTH TO instruction is used to assign
250. uct warranty details before starting use 1 Gratis Warranty Term and Gratis Warranty Range If any faults or defects hereinafter Failure found to be the responsibility of Mitsubishi occurs during use of the product within the gratis warranty term the product shall be repaired at no cost via the dealer or Mitsubishi Service Company Note that if repairs are required at a site overseas on a detached island or remote place expenses to dispatch an engineer shall be charged for Gratis Warranty Term The gratis warranty term of the product shall be for one year after the date of purchase or delivery to a designated place Note that after manufacture and shipment from Mitsubishi the maximum distribution period shall be six 6 months and the longest gratis warranty term after manufacturing shall be eighteen 18 months The gratis warranty term of repair parts shall not exceed the gratis warranty term before repairs Gratis Warranty Range 1 The range shall be limited to normal use within the usage state usage methods and usage environment etc which follow the conditions and precautions etc given in the instruction manual user s manual and caution labels on the product 2 Even within the gratis warranty term repairs shall be charged for in the following cases 1 Failure occurring from inappropriate storage or handling carelessness or negligence by the user Failure caused by the user s hardware or software design 2 Failure caus
251. uctions CJ SCJ JUMP or sub routine call instructions CALL ECALL A total of 300 pointers can be used 2 Pointer applications a Pointers are used in jump instructions CJ SCJ JMP to designate jump destinations and labels jump destination beginning b Pointers are used in sub routine CALL instructions CALL CALLP to designate the CALL destination and label sub routine beginning MAIN CALL Po H For further information on jump instructions and sub routine call instructions see the QCPU Q Mode QnACPU Programming Manual Common Instructions 10 45 10 45 10 DEVICES MELSEC Q 10 10 Interrupt Pointers I 1 Definition a Interrupt pointers are used as labels at the beginning of interrupt program Interrupt pointer interrupt program label IK lt Interrupt program IRET b A total of 128 interrupt points IO to 1127 can be used 2 Interrupt pointer No and interrupt factor a As shown below there are two types of interrupt factor e QIGO factor Interrupt input from the QI60 interrupt module e Internal time factor Fixed cycle interruption by Basic model QCPU s internal timer 10 46 10 46 10 DEVICES MELSEC Q b A list of interrupt pointer Nos and interrupt factors is given in Table 10 5 below Table 10 5 List of Interrupt Pointer Nos and Interrupt Factors to 4th point 7 QI60 interrupt module factor
252. ue following a timer time out the time out status will remain in effect and timer operation will not occur f If two timers are used the ON OFF ladders should be created as shown below TO K10 c T1 1 second measurement following TO ON T1 K10 c TO 1 second measurement when T1 ON TO lt MO ON OFF repeated every 1 second 10 23 10 23 10 DEVICES MELSEC Q 10 2 11 Counters C Counters are up counter types with the contact being switched ON when the count value equals the setting value count out condition There are two counter types counters which count the number of input condition start ups leading edges in sequence program and counters which count the number of interrupt factor occurrences 1 Definition A counter is a device which counts the number of input condition leading edges in sequence program 2 Count processing A counter is a device which counts the number of input condition leading edges in sequence program a When and OUT Cc instruction is executed the following counter processing occurs coil ON OFF present value update count value 1 and contact ON OFF Counter present value update and contact ON OFF processing do not occur at END processing Ladder example x0 K10 lt co Processing at OUT CO Instruction X0 OFF to ON OUT CO END END Sequence program Processing content Coil ON OFF Present value update Contact ON OFF b The present
253. uence program operation is performed from step 0 to END FEND instruction to step 0 repeatedly b When entering the RUN state the output state saved at STOP by the parameter output mode setting during STOP to RUN c The processing time of switching from STOP to RUN until the beginning of sequence program operation changes with system configurations but usually is 1 to 3 seconds However this time may be longer depending on the conditions 2 STOP Status Operation Processing a STOP status is when the sequence program operations are stopped with the RUN STOP RESET switch or remote STOP is performed Refer to Section 7 6 1 for details regarding of remote STOP function The STOP status is also caused by a stopping error b When entering the STOP state save the output state and turn off all output The device memory of other than the output Y is retained 3 PAUSE Status Operation Processing a The PAUSE state is when the sequence program operations are paused by remote PAUSE function while maintaining the output and device memory status Refer to Section 7 6 2 for details regarding of remote PAUSE function 4 Basic model QCPU Operation Processing with RUN STOP state Operation processing Sequence program operation processing Device memory Y M L S T C D Executes up to the eae OS saves the output state Maintains the status immediately RUN TOP END tSS i and and all output are off before the STO
254. ule instructions as shown below 4 p READ i S1 2 3 oH gt I O No designation device n I O No gt Instruction name gt I O No designation instruction For details regarding intelligent function module instructions refer to the corresponding manual for the intelligent function module to be used 10 48 10 48 10 DEVICES MELSEC Q 10 11 3 Macro instruction argument device VD 1 Definition Macro instruction argument devices are used with ladders registered as macros When a VD setting is designated for a ladder registered as a macro conversion to the designated device occurs when the macro instruction is executed 2 Designating macro instruction argument devices Macro instruction argument devices are designated for those devices set as VD in ladders registered as macro instructions in macro registration at a peripheral device When using macro instructions in a sequence program designate devices to correspond to the instruction argument devices used with the ladders registered as macros in ascending order Sequence program Ladder registered as a macro registration name MAX M MAX DO D1 RO gt vDo voi Mov vpo vD Transfer to VD2 A f Transfer to VD1 Transfer to VDO Name of ladder registered as a macro Actual sequence program executed at QCPU H gt Do bni vov bo roH H lt Do p1 mov D1 roH 1 With the macro instruction argument de
255. ut refresh area indicates the area used when automatic refresh setting is made to the input X with MELSECNET H and CC Link Automatic refresh of the remote input refresh area is executed during END processing 4 SEQUENCE PROGRAM CONFIGURATION amp EXECUTION CONDITIONS MELSEC Q 2 Response lag Output response lags of up to 2 scans can result from input module changes See Fig 4 7 Ladder examples 55 Ae Y5E Ladder for switching the Y5E output ON in response to an X5 input ON Fastest possible YSE ON Input refresh Input refresh Output refresh 0 END 056 END 0 ON OFF m External contact te dt ON OFF aoouaoo Q01CPU ON devices Y5E OR ie ON External load oF Lag time Minimum 1 scan The fastest possible Y5E ON occurs if the external contact is switched ON immediately prior to the refresh operation X5 then switches ON at the input refresh Y5E at step 56 switches ON and the external load switches ON at the output refresh following execution of the END instruction In this case the time lag between the external contact ON and the external load ON is 1 scan Slowest possible YSE ON Input refresh Input refresh Output refresh 0 END 056 END 0 Ha l ON i i OFF i External contact i ON OFF Q00J Q00 Q01CPU ON devices Y5E OFE iON OFF i f Lag time Maximum 2 scan External load The slowest possible Y5E ON occurs if th
256. value update count value 1 occurs at the leading edge OFF to ON of the OUT C instruction The present value is not updated in the following OUT C instruction statuses OFF ON to ON ON to OFF Ladder example xo K10 It lt co Present value update timing END OUT CO END OUT CO END OUT CO Sequence l I l I i I program ON i i X0 OFF i ON CO coil OFF Present value update Present value update 10 24 10 24 10 DEVICES 10 25 MELSEC Q c Multiple counters can be used within a single scan to achieve the maximum counting speed In such cases the direct access input DX 2 method should be used for the counter input signals 1 OUT OUT OUT OUT OUT END Cii Ci Ci END Ci Cii Sequence _ l aa ra a gt OUT C _ execution intervals 3 Resetting the counter a Counter present values are not cleared even if the OUT Ci instruction switches OFF Use the RST C instruction to clear the counter s present value and switch the contact OFF b The count value is cleared and the contact is switched OFF at the point when the RST C11 instruction is executed Ladder example XO c RT co Counter reset timing END RST CO END RST CO END RST CO Sequence program ON x0 OFF Execution RSTCO OFF instruction i t t Count value cleared amp contact OFF Count value cleared amp contact OFF 4 Maximum counting speed The counte
257. ve and negative 1 When most significant bit is 0 Positive 2 When most significant bit is 1 Negative The numeric expressions for the Basic model QCPU registers are shown in Fig 4 12 below Carry Most significant bit for positive negative discrimination Bit name gt b15 b14 b13 b12 b11b10 b9 b8 b7 b6 b5 b4 b3 b2 bi bO 215 214 213 212 on 210 29 28 AT 26 25 24 23 22 21 20 Hoo ttt Decimal value 32768 16384 81924096 2048 1024 512 256 128 64 32 16 8 4 2 1 Negative value when most significant bit is 1 Fig 4 12 Numeric Expressions for Basic model QCPU Registers b Usable numeric data for Basic model QCPU As shown in Fig 4 11 the numeric expression range is 32768 to 32767 Therefore numeric data within this range can be stored in the Basic model QCPU registers 4 SEQUENCE PROGRAM CONFIGURATION amp EXECUTION CONDITIONS MELSEC Q 4 8 2 HEX Hexadecimal 1 Hexadecimal notation In the hexadecimal system 4 bits of binary data are expressed by 1 digit 4 bits of binary data can express 16 values 0 to 15 In the hexadecimal system values from 0 to 15 are expressed by 1 digit This is accomplished by using alphabetic characters following 9 with a carry occurring after F as follows A comparison of binary hexadecimal and decimal numeric expressions is shown in Table 4 3 below Table 4 3 Comparison of BIN HEX and DEC Numeric Expressions DEC Decimal HEX Hexadecimal BIN Binar
258. vice VDO to VD9 can be used in one ladder registered as a macro instruction 2 The GX Developer read mode provides an option to view a program in macro instruction format Choose View Macro Instruction format display to view macro instructions 10 49 10 49 10 DEVICES MELSEC Q 10 12 Constants 10 12 1 Decimal constants K 1 Definition Decimal constants are devices which designate decimal data in sequence program They are designated as Ki settings e g K1234 and are stored in the Basic model QCPU in binary BIN code See Section 4 8 1 for details regarding binary code Designation range The setting ranges for decimal constants are as follows e For word data 16 bits K 32768 to K32767 e For 2 word data 82 bits K 2147483648 to K2147483647 10 12 2 Hexadecimal constants H 1 Definition Hexadecimal constants are devices which designate hexadecimal or BCD data in sequence program For BCD data designations 0 to 9 digit designations are used Hexadecimal constants are designated as Hi settings e g H1234 See Section 4 8 3 for details regarding hexadecimal code Designation range The setting ranges for hexadecimal constants are as follows e For word data 16 bits HO to HFFFF HO to H9999 for BCD e For 2 word data 82 bits HO to HFFFFFFFF HO to H99999999 for BCD 10 12 3 Character string 1 Definition Character string constants are
Download Pdf Manuals
Related Search
Related Contents
CellLog 8s User Manual Logiciel Bosch Video Management System Polk Audio C400.4 Car Amplifier User Manual Installations- und Bedienungsanleitungen 【取扱説明書 QMSP-05N】 Table of Contents KWC SYSTEMA 10.501.144 User's Manual Manuel d`utilisation CMS-60CW Handheld Pulse Oximeter Manual Ein IP Director und ein XT Copyright © All rights reserved.
Failed to retrieve file