Home
Model Q2AS (H) CPU (S1) User's Manual [1/2]
Contents
1. i Scan execution type 1 program i n Executed by Initial execution type 1 scan program setting program B order 1 1 The initial execution type program cannot use an instruction with the complete device 12 3 12 Overview of The Q2ASCPU Calculation Processin MELSEC QnA 4 Initial Scan Time a This is the execution time of the initial execution type program When multiple initial execution type program is executed it is the time until all initial execution type programs are executed b The Q2ASCPU measures the initial scan time and stores it to the special registers SD522 SD523 By monitoring the SD522 and SD523 the initial scan time can be checked Stores less than 1 ms initial scan time unit us Stores the initial scan time in 1 ms units Example When 3 is stored in SD522 and 400 is stored in SD523 the initial scan time is 3 4 ms 5 Initial Execution Monitoring Time This is a timer to monitor the initial execution type programs execution time The default value is not set When monitoring the execution time of the initial execution type program it can be set in the range of 10 ms to 2000 ms in the parameter mode PC RAS Setting Setting unit 10 ms When the initial scan time exceeds the set initial execution monitoring time it is set to WDT ERROR and the Q2ASCPU stops operations POINTS 1 1 The precision of each scan time stored in the special register is 0 1 m
2. ccc ccc cece eee ee eee nee ee te eens 12 12 12 1 5 Initial Processing 0 ccc eee ee tenet e teen eaten eene 12 18 12 1 6 I O Module Refresh Processing ccc eee c cece cece cee tee teen eens 12 18 12 1 7 END Processing 2 0 0 ccc cece tee eee e renee ee eet 12 19 12 2 RUN STOP PAUSE STEP RUN Operation Processing ce cece eee eeeeaes 42 20 12 3 Operation Processing during Momentary Power Failure 0 0 0 cee eee eee 12 22 12 4 Data Clear Processing 0 ccc ccc eee en eee een e teen e ene eee enes 12 23 Parameter List Setting Memory Card Type 14 1 Memory Card Usage 0 ccc te eee te te nero rete teen eenees 14 1 14 2 Difference between EPROM and Flash Memory 0 0 cece eee eee eens 14 1 14 3 Setting Memory Card Capacity 0 eee eee te tenn ne eens 14 2 CPU Module Hardware Specifications 15 1 General Specifications 00 coe ee eee tee tebe nee e een nen enae 15 1 15 2 Part Name and Specifications 0 20 0 cece eee teen eee e eens 15 2 15 3 Switch Operation and LED Display Veneer nee nee teen e teen e etn e eee nena 15 4 Power Supply Module 16 1 Specifications 22 0 ccc ce ene eee eee eee ee teen eee eeee 16 1 16 1 1 List of power supply module specifications 0 0 cece ete eens 16 1 16 1 2 Selecting the Power Supply Module 0 0 cee ccc cee ete eters 16 3 16 2 Handling Precautions 2 0 cee eee ee tenn e en
3. 0 00 cece eee eee 22 5 22 2 6 When USER LED is Turned On 0 ccc cece cece cent e nn eeees 22 6 22 2 7 Flowchart for when BAT ARM LED is Turned On 0 eee eee eee 22 6 22 2 8 Flowchart for when Output Load of Output Module does not Turn On 22 7 22 2 9 Flowchart for when Unable to Write a Program cece cece eet eee 22 8 22 2 10 Flowchart for when it is Unable to Perform Boot Operation from Memory Card 22 10 Error Code List 2 0 ccc ccc reentrant nent n ene nee 22 12 22 3 1 Error Code Reading Method 0 cece cee eee teen eens 22 12 22 3 2 Error Code List 0 0 cece et te tenet eee ened eet beeneee 22 13 Error Reset 0 eet ee ee eee eee nee ee net eben een eee eee 22 33 Fault Example of I O Module cece eee ee eee e een ene 22 34 22 5 1 Input Circuit Fault and Corrective Action 0 0 ccc teens 22 34 22 5 2 Output Circuit Fault and Corrective Action 0 eee eee 22 36 APPENDIX 1 Instruction List 0 0 0 ccc cee ee ere eee eee eee n eee nees Appendix 1 APPENDIX 1 1 Sequence Instructions 0 0c c eee eet eee Appendix 1 APPENDIX 1 2 Basic Instructions 0 0 cc eee eee ee Appendix 3 APPENDIX 1 3 Response Instructions 0 cece eee eee ees Appendix 9 APPENDIX 1 4 Data Link Instructions 0 00 cc cee eee eee eee Appendix 20 APPENDIX 1 5 PID Control Instructions 0 0 00 cece eee Appendix 21 APPENDIX 1 6 Special F
4. Assign 0 point to three vacant slots 3645 6 7 worth 48 points of A1S35B A1S35B gt oO al nl 2j2 l a 3 8 8 1 5 i 5 3 e x aa 8 2 8 8 eo E o sga E e jejej Zj Z ajsaj a zg 2 5 3 3 8 8 e ej j e i 2 2 2 3 5 1 Oley s f yo Ss 1 I 1 1 1 i 1 X000 X010 X020 X030 X040 7 t to to to to X00F XOF X02F X03F X04F A1S65B gt 2 2 a lsE E a ea Sal alfa aD o o s3 o 26 8 3 ia 53 5 ojo x050 X060 to to VO numbers continue from the last XOSF XO6F main base s I O number b Setting of I O number allocation Specify the I O number allocation by slots for each of main base and extension base Specify the I O number allocation on the I O allocation screen under the parameter mode O allocation Label Basic i Power Supply Extension cable i v ARAAKAAANKRAAAKARAA VVVV VV VV VY VV OV VOY Extention 1 I Power Supply Extension Cable t AKRANAKRANAAANAAAAA vvvvVY VY VV VY v PgUp Prev PgDn Next Esc Close The setting is done as below tem Setting contents Setting range Default value Set data for each slot No need to set all Vacant input output special Set module typ Point Set module points 0 to 64 points Not specified in modules of 16 points Head XY Set head XY number of module 0 to FFF in modules of 16 points Set model name of module 16
5. 0 ccc eee eter eet tent t eee eens a 8 15 8 4 1 Program List Monitor 2 0 0 0 ct en eens 8 15 8 5 8 6 8 7 8 8 8 9 8 10 8 4 2 Interrupt Program List Monitor 2 2 0 0 0 cece eee cece eee teens eeeeee 8 18 8 4 3 Scan Time Measurement 0 eee ce een tenet eet eee eeees 8 19 Sampling Trace Function cece cee cece eee eee teen eee enneeas 8 21 Status Latch Function 0 ccc cece ccc ene cee eee en tebe eee eeeees 8 31 Step Drive 2 ee ene tn ee en bene renee b eet enenes maraa 8 37 8 7 1 Step Execution 20 0 cece ce eee een tence et ne een ne nenenaes 8 38 8 7 2 Partial Execution 2 0 0 cee ete teen ene tbe t ete reremen 8 40 8 7 3 Step By Step Execution 00 ee ete ene e ee errer 8 43 Program Trace Function 0 ccc cece tent reenter en ten tte teens tenes 8 44 Simulation Function 2 0 0 00 0 cece ce ete e eee e eee ente ee eeeteeees 8 52 Debug Function with Multiple Users cee eee ee eee teen e teenies 8 55 8 10 1 Multiple User Monitoring Function 02 ccc cece ect e net ee eens 8 56 8 10 2 Multiple User RUN Write Function 0 0 ccc ccc cece eee eee teen enna 8 57 Maintenance Functions 9 1 9 2 9 3 9 4 9 5 9 6 9 7 9 8 Function List 2 0 0 0 cece ce eee te tee ee eee ne eb tne bebe ee cnet eee neeee 9 1 Watchdog Timer 0 cece ee ee ne ett eee t een etn e ene e tate eeeaes 9 2 Self Diagnosis Function 2
6. Not Used 2 Program Name is Used Drive 3 _ Use the Following Files 3 Device Initial Value 1 Not Used 2 Program Name is Used Drive 0 3 Use the Following Files Drive File 4 File for Local Device 1 Not Used 2 _ Use the Following Files Drive File Drive Fie Space Select Esc Close The setting details s as follows 1 Not set by the parameter The comment file to be used is not set To use a comment file the QCDSET instruction is used Refer to QCPU Q mode QnACPU PROGRAMMING MANUAL Common In structions for details of the QCDSET instruction 2 The specified device comment file is used l The file names stored in the drive specified by the parameter is used 3 The same file as the program is used The comment file with the same file name as the one in the program file is used Must exist in the specified drive When the program is switched the comment file is changed as well When set to 1 or 2 described above the files set with the QCDSET instruction all become valid When set to 3 the files set by the QCDSET instruction only becomes valid in the program file that executed the QCDSET instruction Even if the file set in the parameter does not exist in the specified drive the CPU module does not yield an error Also the file does not exist so the CPU module does not display comments 11 4 11 Comments That Can Be Stored in Q2ASCP
7. PC CPU model PC CPU type Q2AS H CPU Q2A Q2AS H CPU S1 Q2AS1 In addition to the above following software packages can also be used e CAD interface package SWONX CADQ SWOIVD CADQ e Data conversion package SWONX CNVQ SWOIVD CNVQ e Macro library package SWONX MSDQ SWOIVD MSDQ SWONX MSPQ SWOIVD MSPQ e Ladder sequence generation and connection package SWONX LNKQ SWOIVD LNKQ The following peripheral devices and software packages cannot be used by Q2ASCPU e ACIPU Programming module e A6WU ROM writer module e A6DU B Data access module e A6TEL Model interface module e A6GPP Intelligent GPP e A6HGP Handy graphic programmer e A6PHP Plasma handy graphic programmer e A7PHP Plasma handy graphic programmer e A7HGP Handy graphic programmer Software packages for ACPU system startup SW_LO GPPA SW_LLIJ SAP2 Utility software packages for ACPU SWCLIJ GPPATEL SWC1 CADIF SWCLO DRWA SWOOO FUNP SWCLT TSAP2 3 System Configuration MELSEC QnA 3 3 3 Q2ASCPU Memory Block Diagram The following is the configuration of Q2ASCPU memory blocks Drive number of applicable access CPU main module from peripheral devices Drive 1 Memory card RAM area Drive 0 Built in RAM Drive 2 Memory card ROM area PC memory Error history storage memory Device memory Built in RAM Memory for storing parameters and sequence programs Error history storage memory Memory for storing error data e Device me
8. eee eee eee 20 8 20 2 1 Standard applied for MELSEC QnA series PLC 0 eee ee ees 20 8 20 2 2 Precautions when using the MELSEC QnA series PLC 0 cee eee 20 8 20 2 3 Power Supply 0 cee eter eee ene eee e ete nen n eee 20 9 20 2 4 Control BOX 2 eee te ene ene eee teen eee 20 9 20 2 5 Module Installation 0 0 ieee ee renee eee nent e tees 20 10 20 2 6 Grounding 0 cece eee ee ee eee eee tenes ences 20 10 20 2 7 External Wiring 0 0 cc ete nee eee teen ene nee 20 10 Maintenance and Inspection 21 1 21 2 21 3 Daily Inspection 1 0 0 ieee eee entree eter e eee eens 21 1 Periodic Inspection 22 eet ee eee eee n teen een eens 21 2 Battery Replacement 0 eee ee eee n teen ee een eens 21 3 21 3 1 Battery Life tn ee tenet ete e nee 21 4 21 3 2 Battery Replacement Procedure 0 cece teens 21 5 22 1 22 2 22 3 22 4 22 5 Troubleshooting Basics 22 0 0 cece tte ent eben raens ror 22 1 Troubleshooting 0 ec ee eter t ete nnana 22 2 22 2 1 Troubleshooting Flowchart 0 ccc eee eee e nee e eee gt 22 2 22 2 2 Flowchart for when POWER LED is Turned Off ccc cece eee eee ees 22 3 22 2 3 Flowchart for when the RUN LED is Turned Off 0 0 cece cee eee nee 22 4 22 2 4 When RUN LED is Flashing 0 00 cece eect teen teeta 22 4 22 2 5 Flowchart for when ERROR LED is On Flashing
9. 1 Function a The sampling trace samples the details of the specified device in a set interval sampling cycle and stores the trace results to the sampling trace file in the memory card b The devices that can be traced are as follows Bit Device X FX DX Y FY DY M L F SM V B SB T contact T coil ST contact ST coil C contact C coil JER x JJ y vL s JLJ SB and BLE s Maximum 50 Word Device T current value ST current value C current value D SD FD W SW R Z ZR UL a JL w ang JL sw Leccceesecescecsouuseseussuceneusseeeeceetecsenseensserusuuseessueenanccasseess Maximum 50 c The sampling trace file stores the trace condition data and trace execution data necessary to perform the sampling trace When trace is started with the GPP function peripheral device the trace is performed for the number of times set Q2ASCPU Memory card GPP Function peripheral device Specified Sampling trace area Sampling trace area device data Device ee Data for ist time Displays the area S3 Data for 2nd time Read to the data for the Data for 3rd time peripheral specified N Data ior ath time device amount C Sampling trace data monitoring register Data for 5th time area N Data for 6th time n Data for n 1 th time Data for nth time When stored for nth time the next data overwrites the 1st time data If the trigger point is executed the sampling trace area
10. D SD W SW R ZR UL c JO w ana ssw Up to 1000 can be set as the device range for bit devices and word devices combined The qualification of the above devices cannot be performed 8 33 8 Debug Function MELSEC QnA b Trigger Point Setting This sets the condition to execute the status latch Select one from the following 1 When executing instruction The SLT instruction execution is the trigger 2 When operating the trigger with a peripheral The trigger operation from the GPP function peripheral device is the trigger 3 Detailed Condition The device and step number are set A setting example is shown below The setting method and trigger execution timing is the same as the monitor condition setting in Section 8 2 1 Monitor Functions Data collection timing e If only Device has been specified data collection is performed when the trigger condition is met If only Step has been set data collection is performed at the END processing performed when the trigger condition is met Trigger Point Setting Device Current Value ER 1 Word Device l 2 x Bit Device X0 j lt T gt 2 Step lt Always gt CanceleN gt Space Select Esc Close 2 The status latch condition created is written into the memory card a The status latch file and storage destination are set The drive number and file name are set in 1 Exec Status Latch amp Disp Status
11. M MAX ea User specified macro 4 Macro development c Enabled wide variety of device handling 1 Enabled bit operation of word device 2 Can use differential contact point 3 Program can directly access special function modules buffer memory as a device 4 Program can directly access network module s data link as a device 2 2 2 Overview MELSEC QnA d Improved GPP function program editing operations 1 Up to four programs and data can be edited simultaneously Cut and paste operations for programs and data are possible among editing targets 2 Circuits can be edited while displaying comments 3 User friendly operation is possible with pull down menus and dialogue boxes e Improved debugging function for the system start up 1 2 3 4 Enabled monitor circuit correction steps Enabled inspect on cause for coil on off behavior Enabled and optimized debugging environment by specifying monitoring timing through step number and device status Enabled index qualified device monitoring f Improved GPP function document creation function 1 2 3 4 wow The comment area is expanded to 32 characters even more detailed comments can be attached Comments can be placed in all devices Statements and notes can be controlled as an integrated part of the program program modification and carry over are easier Printout data can be stored in a file printout time is shorten
12. e The GPP function operations are performed with each modes PC menu remote operation The serial communication module control uses its own protocol commands Refer to AJ71QC24 R2 R4 Serial Communications Module USER S MANUAL for details of the serial communication module control POINTS 1 The latch range for the device set in the parameter mode device setting has a range that makes Jatch clear valid or invalid The remote latch clear is valid only for devices set in the range Enable C L key 2 Devices that are not latched are cleared when the remote latch clear is executed 10 17 10 Other Functions MELSEC QnA 10 6 6 Relationship of the Remote Operation and RUN STOP Key Switch of CPU Module The Q2ASCPU operation status is as follows with the combination of remote operations in Sections 10 6 1 to 10 6 5 and RUN STOP key switch of CPU module a Remote operation Ms STEP RUN STOP PAUSE RESET STEP RUN STOP PAUSE Samo Cannot operate 4 operate 4 When performing the operation with remote RUN contact RUN PAUSE contact must be set in the parameter mode PC system setting 2 When performing the operation with remote PAUSE contact RUN PAUSE contact must be set in the parameter mode PC 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 PC system setting 4 RESET can be performed if the CPU module changed to the
13. 3 Appendix 8 e Additional A1iSJ71QC24N compatible command Section 2 2 1 4 Additional instructions for the special function module The following are the additional instructions introduced in Q2ASCPU function version B e A1SD61QBT11 control instruction 13 instructions e A1SD75 control instruction 005 19 instructions e A1SJ71IDO1 R4 control instruction 12 instructions e AiSJ71QE71 control instruction 10 instructions Above additional functions and instructions for the special function module may be used by Q2ASCPUs with function version B recorded in the DATE column on the rated plate In other words when using the additional functions and instructions for the special function module be sure to check that the function version B is recorded on the Q2ASCPU rated plate You may skip this section and subsequent explanation on additional functions if you re using a Q2ASCPU without the function version B recorded on the plate MITSUBISHI CPU UNIT MODEL DATE 9707 _B 4 MITSUBISHI ELE Function version Date of manufacture When using the above Q2ASCPU s additional functions and the instructions for the special function module the GPP function model and function version or version of the applicable special function module need to be matched See Table 2 1 2 Overview MELSEC QnA Table 2 1 Combination list of Q2ASCPU and function version version of t
14. 3 Processing when the Watchdog Timer Times Out When the scan time exceeds the set watchdog timer value watchdog time error results and the PC behaves in the following manner a The PC turns off all output b The RUN LED located on the front of the CPU module turns off and flashes the ERROR LED c SM1 turns on and the error code is stored in SDO The watchdog timer is reset with the WDT instruction in the sequence program However the scan time value is not reset and measures to the END instruction POINT The watchdog timer measurement time can yield an error between 0 to 10 ms 9 3 9 Maintenance Functions MELSEC QnA 9 3 Self Diagnosis Function The self diagnosis function is a function performed by the Q2ASCPU itself to diagnose whether there is an error in the Q2ASCPU 1 The self diagnosis function s objective is to prevent the PC erroneous operation and as preventive maintenance The self diagnosis processing detects and displays the error when an error occurs when the PC power is turned on or during PC RUN mode It also stops PC calculations The Q2ASCPU stores the error code of the error in the special register SDO and turns on the ERROR LED and displays a message When multiple errors occur the latest error code is stored in the SDO 16 latest errors can be stored even when the PLC is powered off using the battery backup Refer to Section 9 4 The failure history can be checked in the GPP function PC
15. Cancel lt N gt Esc Close The following describes the screen 1 Operation 2 Program Trace Data and 3 Trace Condition can be set in the execute trace amp display status a Operation Select one from the following 1 Register Start Starts the trace Starts the trace count 2 Suspension Interrupts the trace The trace count and count after trace are cleared When restarting trace select Trace Start 3 Status Display The trace status are displayed as messages all in one screen 4 Trigger Execution Starts the count after trigger The trace is complete once the count reaches the specified count after trigger b Program Trace Data Select one from the following 1 Select from List Select from the program trace file in the memory card 2 File Shown Right Set the drive number and program trace file name c Trace Condition Select one from the following 1 Overwrite Conditions onto _ 1 Overwrites the trace condition in the CPU s existing race file 2 Use Condition in CPU Executes with the condition in the trace file specified in 2 Program Trace Data 8 50 8 Debug Function MELSEC QnA Precaution 4 Read the trace result from the CPU module and displays the result a The trace result is read from the CPU module with A Read from PC Results in the Program Trace screen b The trace result read from 4 Trace Results Display in the Program Trace screen
16. When error occurs during status latch SM827 is turned on and SM808 Complete is turned on To turn off SM827 turn on SM809 or execute the SLTR instruction 8 32 8 Debug Function l MELSEC QnA Operation Procedure The operation for the status latch is performed in the following manner Each operation is performed in the Status Latch screen in the online mode trace menu 1 Setting the Status Latch Condition The status latch condition is set in 2 Status Latch Condition Setting in the Status Latch screen Status Latch Condition Setting 1 Status Laten 1 x Alt intemal Dev lt Yes gt Device Setting File R 1 2 Spacify Detail Range 2 Trigger Point 1 At Instruction Execution 2 At Reguest of PDT 3 Specify Detail Condition The following describes the screen l The status latch condition setting can set 1 Status Latch Device Setting and 2 Trigger Point a Status Latch Device Setting The device to execute status latch is set Select one from the following 1 All internal devices Sets whether to latch the all internal devices 2 Sets the detailed range setting The device type and points are set A setting example is shown below Devices that can be used 1 Bit Device X Y M L F SM V B SB T contact T coil C contact C coil ST contact ST coil JO x sOy JEg uCl ss and Bis 2 Word Device T current value ST current value C current value
17. Y is stored in the sequence Whether to output the output Y again prior to calculations or output after calculation execution is set in the GPP function parameter mode PC system setting PC System Setting 4 Output at STOP gt RUN 1 Prior to Calc 2 After One Scan a Prior to Cale After the output Y status before the STOP status is output the sequence program calculations are performed b After One Scan Clears all output Y and outputs the output Y after executing the sequence program calculations STOP status RUN status NO Output after calculation execution Replay output YES Replay output Output the output Y status right Clear the output Y status before changing to STOP status Execute the sequence program calculations Fig 10 3 Processing when Change from STOP Status RUN Status 10 6 10 Other Functions MELSEC QnA 10 5 Clock Function The Q2ASCPU has a clock function in the CPU module Because the time data from the clock function can be read by the sequence program the time data can be used for time maintenance of user system f Also the time data is used for time maintenance for the CPU module system functions such as for failure history The clock operations for the clock function are maintained even when the PC power is off or when there is a momentary power failure for more than the permitted time using the battery POINT The CPU module system uses
18. 5 System Configuration MELSEC QnA AiseiPN PN Power supply module A1S62PN A1S63P A1SX10 ASX10EU A1SX20 AiSX20EU A1SX30 A1SX40 A1SX40 S1 A1SX40 S2 AiSX41 A1SX41 S1 A1SX41 S2 A1SX42 A1SX42 S1 A1SX42 S2 AtSX71 AiSX80 AtSX80 S1 AiSX80 S2 AiSX81 AiSX81 S2 A1SX82 S1 Input module A1SY40 AiSY41 Output module A1SY42 A1SY50 A1SY60 AISY60E A1SY68A At msn arsye SY80 asv SY81 A1SY81 asvsee Al msya A jQnA A i i Qn n Description points vO consumption Remark only share allocation 5VDC 24VDC module type A A svoc 5a sd 5A 100VAC For power suppl 5VDC 3A 24VDC 0 6A Input to slots of main base 200VAC and extension base A1SY10 16 points Relay contact output module 2A 46 Output 16 points 0 12 A1SY10EU AISY14EU A1SY18A 8 points Relay contact output module 2A for JefOurput 16 point 0 075 A1SY18AEU independent contact Output 16 points gov A1SY22 16 points triac output module 0 6A 16 Output 16 points o 04 A1SY28A 8 points triac output module 1A all points tetOutput 16 point A1SY28EU independent Output 16 points 16 points t00VAC input module amuso 00s 16 points 200VAC input module marson foos Te pons TOBAVOE aeaa np mode araor 008 _ F pois 12240 input medio Yara teroi _ 005 Fe ports 2aV0C raa module amars 005 _ _ Fe pints zvoc input module Yara eronay 0 05 _ 2 pits 24vOC input no
19. A1SJ71QBR11 type MELSECNET 10 network modules 3 Ethernet module Abbreviation for A1SJ71QE71N B2 A1SJ71QE71N B5T type Ethernet interface modules 4 Serial communication module Abbreviation for A1SJ71QC24 N A1SJ71QC24 N R2 type Serial communication modules 5 CC Link Abbreviation for Control amp Communication Link 6 GPP function software Abbreviation for SWL IVD GPPQ type GPP function software package Abbreviation for GX Developer 7 DOS V personal computer Abbreviation for IBM PC AT or 100 compatible 8 Peripheral devices for GPP functions General name for a peripheral device such as a DOS V personal computer used to operate GPP function software 9 Q6PU Q6PU type programming module 10 Peripheral device General name for a peripheral device such as a DOS V personal computer and Q6PU which are connected to Q2ASCPU to operate it 11 Built in RAM The Q2ASCPU built in RAM memory to store the sequence program 12 Memory card Abbreviation for QiIMEM LICIL type memory cards 13 ACPU General name for a MELSEC A series PC CPU 2 Overview MELSEC QnA 2 Overview 2 1 Features Q2ASCPU has the following new features 1 Increased memory capacity a The program capacity of Q2AS H CPU S1 has been increased to 60k steps 28k steps for Q2AS H CPU Up to 60k steps can now be executed as one program b The device memory capacity has been increased to 29k words Further the user can now freely c
20. I a aM io m 32x 16x 32x 16Y 08 tos 05__ Number of 1 0 points allocated points points points points points points H points using GPP function X00 X20 x30 X50 60 to to to to to o XIF X2F X4F Y5F 6F 4 72 3 AiS65B base unit 8 9 10 Output 32 points Output 16 points Output 32 points Output 32 points Power supply module 32Y 32X 16Y 48Y 32Y points points poinis points points X70 90 YBO YCO YFO to to to to to Y8F AF YBF YEF Y10F 5 76 1 Since the setting is 16 points the latter half 16 input points cannot be used 2 Since the setting is 32 points 40 to 4F are dummy points 3 Since the setting is 16 vacant S points the slot cannot be used for output 4 Since the setting is 0 vacant S points the three slots are not allocated I O points 5 Since the setting is 32 input X points the slot is used for 32 point input 6 Since the setting is 48 points EO to EF are dummy points 5 9 5 Allocation of I O Numbers MELSEC QnA 2 When it is desired to replace 16 point input module with 32 point input module It is desired to replace a 16 point input module with a 32 point input module without changing the whole O number allocation in a system designed using 16 point input modules a Before replacement mounting status and I O numbers A1S35B module CPU module a a 3 on S 5 ic Output 16 points 1 gt O
21. I O numbers for the base module are allocated under the notion that there are eight slots altogether If a base module used is a five slot type numbers equivalent to three slots 48 points are added to the last I O number of the five slot base module The subsequent numbers are then allocated to the next extension base Main base to to to to to to to Occupies three stots slots OF 1F 2F 3F 4F 5F 1 5 to 7 as vacant slots Power supply module CPU module Extension cable 0 1 00 10 20 30 50 70 te Allocate numbers for 8 slots l o _ _______ Extension base VO numbering direction 8 9 10 11 12 13 14 15 80 90 A0 BO CO DO EO FO to to to to to to to to n 8F 9F AF BF CF DF EF FF MO O numbers are allocated in the order of D gt gt gt Example above shows a case where ali slots are 16 points modules 5 3 5 Allocation of I O Numbers MELSEC QnA 5 3 I O Allocation by GPP Function Q2ASCPU can control I O modules and special function modules without O allocation by GPP function 1 0 allocation by GPP function may be used most effectively under the following circumstances 1 Purpose of I O allocation by GPP function a When using a five slot base module 1 O points effectively used by allocating three slots to zero points b Reserving points for future system expansion of converting to module other than 16 point modules c Preventi
22. No END instruction reset When switched trom STOP to RUN When the power is turned on when Pointer setting error reset Flashing When switched from STOP to RUN When the power is turned on when Pointer setting error reset Flashing When switched from STOP to RUN When an instruction is executed Stop Continue Off On Flashing On When an instruction is executed soe foo Flashing When an instruction is executed Flashing When an instruction is executed Stp ot Flashing When an instruction is executed Stop ow Flashing Extension instruction error When an instruction is executed Stop Continue Off On Flashing On Default Stop 1 Off FC block structure error When switched from STOP to RUN Stop Flashing Operation check error Default Stop 1 FOR to NEXT instruction structure error CALL to RET instruction structure error Interrupt program error Instruction execution not possible 02E Ke2 SFC program structure error Siop Flashing i Stop Flashing Stop Flashing SFC operation check error i a When an instruction is executed Stop Continue Oof On Flashing On Default Stop 1 FC program execution error When switched from STOP to RUN Continue FC block execution error When an instruction is executed Stop Off Flashing SFC step execution error When an instruction is executed Stop Off Flashing N njan an Stop Of
23. Overall Explanation 0 0 0 e eae Appendix 66 APPENDIX 5 2 Description of the Errors of the Error Codes 4000H to 4FFFH Detected by the CPU module eee eee eae Appendix 66 APPENDIX 6 External Dimensions Diagram 0 0 cece cece eet eee eee Appendix 71 APPENDIX 6 1 Q2AS H CPU S1 Module 0 eee eee eee Appendix 71 APPENDIX 6 2 Power Supply Module A1S61PN A1S62PN A1S63P Appendix 71 APPENDIX 6 3 Main Base Module 0 0 cece eee tee eee Appendix 72 APPENDIX 6 4 Extension Base Module 0 00 cece eee eee eee Appendix 74 APPENDIX 7 Using Local Device Stored in the Subroutine Interrupt Program File function version B or later 0 cc eet teens Appendix 80 APPENDIX 8 Network Relay from Ethernet Module function version B or later Appendix 83 About this manual The following are manuals related to this product Request for the manuals as needed according to the chart below Related Manuals Manual No QnACPU GUIDEBOOK For the first time user of QnACPU describes steps on creating a program writing the IB 66606 program in the CPU module and debugging Describes usage of QnACPU features 13JF10 Sold separately QnACPU PROGRAMMING MANUAL Fundamentals Describes programming methods device names and program types that are necessary in IB 66614 program creation 13JF46 Sold separately QCPU Q mode QnACPU PROGRAMMING MANUAL Common instructions Describes
24. Q2ASCPU device to use Select Execute Y or press the Esc key to return to the CC Link setting list window 7 9 7 Setting Automatic Refresh MELSEC QnA 1 Select 4 Auxiliary setting to display the Auxiliary Setting window Press the Esc key to return to the CC Link setting window described in step c Set the number of remote sta tions connected to the CC Link 2 Select 5 Station information setting to display the Station Information Set ting window Pressing the Esc key returns to the CC Link setting window described in step c Set the number of stations specified in step d 7 10 8 Debug Function MELSEC QnA 8 Debug Function 8 1 Function List There are many convenient functions when using the debugger in Q2ASCPU The debug functions are as shown below Monitoring function Writing during run Actual time operation Function to display the processing time of the programs bein Program list monitoring pray P g prog g executed Interrupt program list Function to display the number of interrupt program executed monitoring Function to calculate the intended interval of the program execution Scan time estimate time Function to sample the device continuously in the specified timing in Sampling trace function the CPU module Status latch function 1 Function to sample the device in the specified moment Function to execute only the program one step only a section o
25. Qi1MEM CLT Memory card Q2ASCPU Bates y optional ry A1S6LIP N power supply A1SCCLUINB module Extension cable A1SSTBIAI S38HB A1SX Uinput module building block type A1SYCOoutput module Special function module A6LIB extension base with power supply module A1SCOOB Extension cable A5CIB extension base without power supply module A1S6LIP N power supply module A1SX input module A1SYLUT output module Special function module A1S6C B S1 extension base with power supply module A6CIP power supply module AXC input module AYCO output module Special function module A1S5 C1B S1 extension base without power supply module POINTS One memory card can be mounted as needed SRAM and EPROM memory cards can be mounted in the CPU module to enable read write operations When a flash memory card is installed to the CPU module only the file read operation is possible Use a peripheral device to write files Refer to Section 3 1 2 2 When using A1S5CJB S1 and A5IB extension base module pay special attention to the power capacity of the main base module I O modules and special function modules having substantial internal power consumption should be attached to the A1S6LIB S1 and A6LIB extension bases For details refer to Sections 16 1 and 17 3 3 System Configuration MELSEC QnA 3 1 2 Q2ASCPU Peripheral Device Configurations to RS 422 int
26. S3 portable type operation box Q2ASCPU automatically turns on the link communication start signa Y n 18 Y n 28 for master modules specified for automatic refresh Therefore there is no need to turn these on via sequence program Automatic refresh process of I O data is batch processed after executing the Q2ASCPU END instruction Automatic refresh process is performed when the CPU module is in RUN PAUSE STEP RUN status Depending on the remote terminal module to be connected master module may per form this process when link communication start signal Y n 18 Y n 28 is turned off For example when using AJ35PTF R2 RS 232C interface module under no protocol mode parameters must be written into parameter area buffer memory address 860 to 929 while link communication start signal is turned off Parameters need to be written during the first scan since the link communication start signal turns on after the first scan while in the CPU RUN state ON Link communication start signal OFF Y n 28 SM402 ON 1 scan OFF t CPU module starts running Q2ASCPU does not perform automatic refresh processing if hardware error message X n 0 X n 20 or ROM error message X n 8 X n 28 is generated from the master module which the automatic refresh processing was specified Set the data so that receive data refresh device and send data refresh device do not overlap 7 1 7 Setting Automatic Refresh MELSEC QnA 1 The
27. SD50 SD50 The error code for the error to be canceled is stored Refer to Section 22 3 2 SM202 When turned from OFF to ON the LED corresponding to each bit in the D202 are turned off SD202 This specifies the LED to turn off Only USER LED and BOOT LED can be turned off 15 bit 8 4 O bit BOOT LED USER LED 1 means turn off and 0 means leave on in the setting The setting to turn off each LED is as follows All in hexadecimal e When turning off both LEDs SD202 110H e When turning off only the BOOT LED SD202 100H e When turning off only the USER LED SD202 10H 3 Method to not display the ERROR LED USER LED and BAT ALARM LED The ERROR LED USER LED and BAT ALARM LED have the same priorities as in Section 9 8 2 Priority Setting When a error number for an LED is deleted from this priority the LED will not turn on even if an error with that error number occurs Refer to Points in Section 9 8 2 for the setting method 9 14 9 Maintenance Functions MELSEC QnA 9 8 2 Priority Setting When multiple factors that can be displayed occur the display is performed with the following conditions 1 A stop error is displayed without condition 2 An operation continue error is displayed according to the priority factor number set as the default The priority can be changed Set with the special register SD207 to SD209 3 When errors with the same priority level occur the error detected first
28. STOP state from a remote op eration When multiple remote operation requests occur when the RUN STOP key which is at RUN the CPU module ams the operation with higher priority first Remote operation RUN STEP RUN STOP PAUSE RESET Priority se The priority increases from 4 to 1 10 18 10 Other Functions MELSEC QnA 10 7 Terminal Operation This function performs the following data communication using the Q2ASCPU peripheral device instructions with the Q6PU programming module at terminal mode 1 Displays the messages from the Q2ASCPU to the Q6PU display device 2 Stores the Q6PU key entry to the Q2ASCPU device As seen above Q6PU can be used as the Q2ASCPU terminal Each function is described in the next section Refer to QCPU Q mode QnACPU PROGRAMMING MANUAL Common Instructions for the peripheral device instruction 10 7 1 Message Display Operation The specified character string is displayed in the Q6PU with the peripheral device instruction MSG Even for the GPP function the character string can be displayed from the CPU message in the PC diagnosis mode display menu Example Program to display TOSOU LINE READY as Q6PU message No 1 when XO is turned on xO List H TOSOU LINE READY 0 LD Xo 1 MSG TOSOU LINE READY aw TOSOU LINE READY Q6PU ogogo ooog 0o00 OOO000 10 7 2 Key Entry Operation With the peripheral device instruction PKEY the character data entered with the Q6PU
29. Step Pointer 0 Step Pointer 0 Step Pointer 0 J Step Pointer 0 Step Pointer 0 Step Pointer 0 Step Pointer 0 Step Pointer 0 Execute lt Y gt Cancel lt N gt Space Select 8 39 8 Debug Function MELSEC QnA 8 7 2 Partial Execution The program is executed from the presently stopped step or the starting step to the specified step break point then stops Sequence Program Example S LD XO x001 vor OUT Y10 Starting step k4 2 MOV Y020 DO LD Xi MOV K4Y20 DO Yo11 x002 9 k RST DO Fig 8 4 Partial Execution Operation Procedure Partial execution operation is performed in the following manner Each operation is performed in the Monitor screen in the circuit mode debug 1 The execution start step break condition and execution operation are specified in the GPP function a Setting the Execution Starting Step The step to start the partial execution is specified in 1 Partial Run in the Partial Run screen Partial Run 2 Start Stop Pointer a Device Current Value 1 Ko J 1 lt Always gt 1 Times J lt Aways gt 1 Times Step Pointar fo lt Always gt 1 Times Step Pointar 0 J lt Atways gt 1 Times Step Pointar fo lt Aways gt 1 Times Stap Pointer 0 lt Always gt 1 Times Step Pointar 0 lt Always gt 1 Times E 1 Step Polnter 0 j lt Aways gt 1 Times Scan Time 1 Reahtime 2 Specif
30. and write are mentioned above are as follows ltem Description Control specification CPU module operation specification from remote operation Remote RUN remote STOP etc Read Write display Program read write operations Operation that writes the program and tests 9 6 Password Registration Password is used to prohibit the data read and write of the program and comments in Q2ASCPU from a peripheral device The Password Registration is set for the specified memory internal RAM memory card parameter file and program file There are two description of items to be registered e The fife 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 the peripheral device cannot be performed unless the password registered in the CPU module is input 9 10 9 Maintenance Functions 1 Password Registration MELSEC QnA The password registration is performed with the password registration in the online mode PC menu of the GPP function Register Password Current I 1 New 2 Operation 1 Change 1 Read Write and Display Protect 2 Write Protect 2 Cansel Password 3 None 4 Change Attribute 3 Memory 1 Internal RAM 2 J IC Memory Card A lt RAM gt 3 IC Memory Card A lt ROM gt 4 IC Memory Card B lt RAM gt 5 IC Memory Card B lt ROM gt
31. b Set Time Performed at every specified time The setting range is between 5 to 5000 ms in 5 ms units c Detailed Condition Sets the device and step no The setting example is shown below The setting method and trace data sampling timing is the same as when setting the monitor condition in section 8 2 1 Monitor Functions The devices that can be set in the detailed condition are as follows a Bit Device X FX Y FY M L F SM V B SB T contact ST contact C contact J_ x uy uD a sA sB and BLL s b Word Device T current value ST current value C current value D SD FD W SW R Z ZR UL e Jw and JLI sw The following attributes can be set for the above devices e Bit device number of digits specification e Word device bit number specification Trace Point Setting Device Current Value 4 Word Device 2 x Bit Device X0 2 Step 1 lt Always gt Cancale Space Select Esc Close 8 27 8 Debug Function MELSEC QnA 3 Trigger Point Setting The point to execute the trigger is set Select one from the following a When instruction is executed The STRA instruction execution is the trigger b When trigger is operated with peripheral The trigger operation from a GPP function peripheral device is the trigger c Detailed Condition The device and step number is set The setting example is shown below The setting method and trigger execut
32. contact points May specify one RUN PAUSE contact point each by XO to 1FFF Po Year month date hour minute second day of week auto detects leap years Clock function Accuracy 1 7 to 4 9 s TYP 1 7 s d at 0 degrees centigrade Accuracy 1 0 to 5 2 s TYP 2 2 s d at 25 degrees centigrade Accuracy 7 3 to 2 5 s TYP 1 9 s d at 55 degrees centigrade All l fail e Sewa e momentary power failure p By power supply module According to Sec 16 1 5 VDC internal current consumption A o3 TTT Mass kg Ib 0 5 1 11 0 5 1 11 o5 111 osm O S O External dimension mm inch 130 X 54 5 X 110 5 12 X 2 15 X 4 83 po 4 2 5 Allocation of I O Numbers MELSEC QnA 5 Allocation of I O Numbers This section describes how O numbers are allocated to facilitate data exchange with Q2ASCPU using I O modules as well as special function modules 5 1 What are I O Numbers I O numbers are used in sequence programs for receiving data from input modules and outputting data to output modules I O numbers are expressed as three digit hexadecimals The following is an example of I O numbers when all I O modules are 16 points modules Power supply module module x PINE XDI Input 16 Input 16 Output 16 Output 16 points points poinis points I O Number Scheme It is possible to enter I O numbers as two digit numbers when programming with peripheral devices for GP
33. data is latched after sampling the number of times specified Fig 8 1 Sampling Trace Operation 8 21 8 Debug Function MELSEC QnA d The trace result displays the on off status of the bit device for the sampling cycle and the current value of the word device ECES CADIE SEN 39 39 39 39 lt Current Value gt lt 16 Bit gt t 1 ae rest eenn hence nse F TO 656 656 Do 1500 1500 T6 0 o Program STEP CONT 371i Time PgUp Prev PgDn Next Esc Close When the CPU is during STOP the trace result cannot be read since the trace is in a suspended status 8 22 8 Debug Function MELSEC QnA 2 Basic Operation The basic operation of the sampling trace is as follows The execution status of the sampling trace function can be checked in the special relay SM800 to SM805 and SM826 e Trace execution Trace start or STRA instruction trigger Trace complete after the SM801 ON Execution or SM803 ON number of triggers t Number of trace after trigger a aa 1 Total number of traces SM800 O a a Sampling trace ready SM801 Sampling trace start SM802 ss ae Sampling trace execution SM803 Sampling trace trigger SM804 After sampling trace trigger 1 l l l I 1 I I 1 J l t E t t i i 4 t SM805 Sampling trace complete SM800 automatically turns on when the sampling trace is ready 8 23 8 Debug Function MELSEC QnA e Trace interrupt Trigger S
34. eee nent nen e nee neeee Paare 19 1 Installation Environment 20 00 cece renee nett bene teen eens 19 4 Calculating Heat Generation by PO 20 i e cen eee eee nes 19 4 Base Unit Installation 2 0 0 kee cece entree een net ee eeeeneee 19 6 19 4 1 Precaution on Installation 2 2 0 ccc eee eect eee eenenes 19 6 19 4 2 Installation 20 cc cc eee erence teen eee nee eeaee 19 7 Installation and Removal of Module 22 0 0 cece ccc tenet teen orreen 19 8 Installing and Removing the Dustproof Cover 0005 eee eens 19 10 Wiring 6 ee ee ee ee eee tee ee teen te nen e betas 19 11 19 7 1 Wiring instructions 2 2 0 ce eet e tne ene enaee 19 11 19 7 2 Wiring to Module Terminals 0 0 cece eee ete eee eee 19 14 Precaution when Connecting the Uninterruptive Power Supply UPS 0 19 14 20 1 20 2 EMC and Low Voltage Directives Requirements for conformance to the EMC Directive 0 e cece cece eee eee 20 4 20 1 1 Standard applicable to the EMC Directive 0 0 cece eee eee ees 20 1 20 1 2 Installation Instructions for the EMC Directive 000 02 eee eee eee 20 2 20 1 3 Cables cic een eee eee tenet eet eens 20 3 20 1 4 Power supply module 2 cee eee etre tte eee ees 20 6 20 1 5 Ferrite COre 00 ec en ttn ene tenet eaaa 20 7 20 1 6 Noise filter power supply line filter 00 0 ee ete eee 20 7 Requirement to Conform to the Low Voltage Directive 0 0
35. execution status of the speci fied bit device becomes the specified state in the END processing of the scan The specification method for the execution state is shown below I When starting gt lt T gt 11 When shutting gt lt gt 3 When 2 Step or 1 Device is specified The monitor data sampling timing is when the state right before execution of the specified step or the execution state present value of the specified bit device word device becomes the specified state POINT When Step 100 lt f gt Word Device D1 K5 is specified as the detailed condition in the following circuit xo Mo 100th Step _ Y20 INC D1 The monitor timing is as shown below The monitor interval with the GPP function periph eral device depends on the processing speed of the GPP function peripheral device The data change shorter than a monitor interval can only be sampled once 100 i 1 MO X0 D1 5 Monitor timing CPU module 8 3 8 Debug Function MELSEC QnA POINTS 1 When Step 2 lt ON gt is specified as the detailed condition in the following circuit For 1 the monitor execution condition is X0 and X1 are ON and for 2 it is X1 is ON regardless of whether X0 is ON OFF When a step during the AND OR block is specified as the monitor condition the mon itor data sampling timing is when the state right before execution of the specified step from the block L
36. following table shows automatic refresh parameter specification items setting range description etc Buffer memory addresses of master modufes communicating with Q2ASCPU are also shown Parameters are set for all master modules being used Master module Master module sgt buffer memory Setting range Description Default VO signal address Number of master Sets a total number of master module being used 0 1 to 8 units on modules O indicates no automatic refresh Number of CPU module Sets head I O number where master module is Head I O No VO points installed eee For dedicated 1 0 mode MINI MINI S3 model occupies 32 points MINI S3 For extension mode occupies 48 points Set only when MINI is specified Setting is not necessary when MINI S3 is specified since the number of initial ROM master modules will be used Any setting here will be ignored in this case Sets device to store receive send data for batch re fresh Setting specifies head number of device Starting from device head occupies automatic re fresh area for specified number of stations 8 points station X 64 stations 512 points bit device 2 Uses values specified in 1 0 allocation under parameter mode 3 Totai number of remote I O stations 0 to 64 stations X M L B T ST C D W R ZR
37. high speed pulse which cannot be handled by the I O modules alone For example analog values are converted to digital values by the analog digital conversion module for Q2ASCPU use The special function modules are equipped with memories buffer memories to store input data obtained from external sources and data for external output There are two ways to perform data read write from the special function module of Q2ASCPU 1 Use the FROM TO instructions 2 Use special direct device Each of these items is described below 6 1 Reading and Writing Data from Q2ASCPU by FROM TO Instruction Executing the FROM TO instructions reads data from buffer memory of the special function module or writes data to buffer memory QnACPU Special function module Se ew ee eo ey Write by TO instruction Buffer j External Read by FROM instruction memory device Data exchange with special function module The FROM instruction stores data read from the buffer memory into the specified device The TO instruction writes data of the specified device to the buffer memory 1 For details of FROM TO instruction refer to QCPU Q mode QnACPU PROGRAMMING MANUAL Common instructions 2 For details of the buffer memory of the special function module refer to the manual for the particular special function module being used If a FROM TO instruction is executed for a special function module frequently in a short scan time the objective
38. improved Also this helps the readability of the program for other program designers The various comment list that can be stored in the Q2ASCPU is shown below Function Reference PC name Names the CPU module to be used Section 11 2 Drive read title Attaches the header Section 11 3 File read title Attaches the header for each file Section 11 4 Device comment Attaches the comments and labels for the devices Section 11 5 used in the program Statement Note Attaches the commenst for the step number P or Section 11 6 pointer from the program Device initialization Attaches comments to the device initialization file B Section 11 7 comment Refer to GX Developer OPERATING MANUAL or SW OIVD GPPQ OPERATING MANUAL Offline for details of the setting method for each function 11 2 Name The PC name simplifies the CPU module checking when the Q2ASCPU is accessed by the GPP function placing the comments to the CPU module The PC names set the two types of labels and comments The setting is performed in the GPP function parameter mode PC name setting screen PC name setting 1 Label SYSTEM 2 Comment HANSOU SYSTEM NO 1 Space Select Esc Close The setting details are as follows item Setting details Setting range Default value Label CPU module label is Max 10 char set No setting Comments CPU module comment Max 64 char is set 11 Comments That Can Be Stored in Q2ASCP
39. in 3 and 6 are cleared using the RUN STOP key switch latch clear operation Refer to Section 15 3 or remote latch clear operation refer to Section 10 6 5 from the GPP function The method to specify device latch is to set the latch range for each device in the GPPQ parameter mode on the device setting screen There are two types of latch range settings 1 Valid latch clear key Sets the latch range that can be cleared with the STOP RUN key switch latch clear operation 2 Invalid latch clear key Sets the latch range that cannot be cleared even with the STOP RUN key switch latch clear operation The devices that were set to latch clear key can only be cleared by an instruction or GPP function Instruction to clear method Reset with the RST instruction or send KO with the MOV instruction GPP funciion clear method Clears all device memory in the online mode for PC menu Refer to QnACPU PROGRAMMING MANUAL Fundamentals for details of the device latch range l Refer to the GX Developer OPERATING MANUAL or SW OIVD GPPQ OPERATING MAN UAL Online Offline for details of the GPP function operation methods 12 23 MEMO
40. internal clock so make sure to set the correct time when first using the CPU module 1 Storage Area e The latest 16 failures are stored in the CPU module failure history storage memory e When storing more than 16 the history can be stored in the memory card file using the GPP fucntion parameter mode PC RAS setting e When the history count of the parameter and memory card are different when the following operation is performed clear the contents of the memory card history file then the Q2ASCPU transfers the 16 failure data in the CPU module failure history storage memory to the file a When the failure history is changed in the parameter history file b When a memory card which has a different history count than the parameter is set e The storage area in the failure history file is as follows Amount that can be stored Max 100 can be changed 1 When the number of storage exceed the amount that can be stored the oldest history is overwritten with the latest history POINT Even if the failure history file set in the parameter does not exist in the memory card the CPU module does not yield an error The CPU module only performs the processing to store the failure to the failure history storage file 2 Failure History Clearing Method The failure history is cleared using the failure history clear in the GPP function PC diagnosis mode PC menu Failure history clear erases all the failure history storage mem
41. is displayed The priority is set with the special registers SD207 to 209 in the following manner Factor number default value Hexadecimal 15 to 1211 to 87 43 15 to to to O bit Obit anna SEE qenenmenneeemnneneendl Factor number setting area soz e soe E r e E Factor number setting area Ignore Factor number setting area 9 15 9 Maintenance Functions MELSEC QnA The description and default priority for the factor number to be set in the special registers D207 to SD209 are as follows Hexadecimal P 1 AC DOWN AC power DC power shutoff UNIT VERIFY ERR 1 O module verification error Priority 1 FUSE BREAK OFF Fuse shutoff SP UNIT ERROR Special function module verify error OPERATIN ERROR LINK PARA ERROR Calculation error Link parameter error SFCP OPE ERROR SFC instruction calculation error SFCP EXE ERROR SFC program execution error ICM OPE ERROR Memory card operation error FILE OPE ERROR File access error EXTEND INST ERROR Extension instruction error PRG TIME OVER Constant scan setting time time up Low speed execution monitoring time time up QO HK instruction nnunciator ATTERY ERR lock data 9 POINTS 1 To keep the LED off at occurrence of the above error set the factor number setting area where the corresponding factor number is stored in SD207 SD209 to 0 Example To leave the ERROR LED off when a fuse shutoff erro
42. none bit devices in multiple of 16 Y M L B T ST C D W R X1000 to X11FF Y1000 to Y11FF ZR none Use of X Y remote I O range device is recom bit devices in multiple of 16 mended Sets number of retries in case of communication Number of retries 0 to 32 times error Error is not generated if communication recovers within number of specified retries 1 Link priority Link access of MINI S3 has priority FROM TO waits during link access 4 Receive data storage 110 to 141 device Send data storage device 10 to 41 Possible to read received data which was refreshed at the same time Creates FROM TO wait time equal to maximum of 0 3 ms 0 2 ms number of division refresh stations 2 CPU priority Access of FROM TO instruction from CPU module has priority Performs interrupt access even during link access Depending on timing may read receive data during 1 0 refresh No wait time for FROM TO instruction Retention Holds receive data for batch refresh and partition refresh Set all points to OFF state Sets head device that stores error station detection data MINI occupies 4 words MINI S3 occupies 5 words Sets head device that stores error codes when an error is generated MINI occupies 1 word MINI S3 occupies 1 number of remote terminals words Send test message test Circuit error check Send OFF data OFF Sets data c
43. 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 the communication problem station will enter the following condition Build an interlock circuit into the PC program that will make sure the system operates safely by using the communication state information Not doing so could result in erroneous output or erroneous operation 1 For the data link data the data prior to the communication error will be held 2 The MELSECNET II B 10 remote I O station will turn all output off 3 The MELSECNET MINI S3 remote 1 O station will hold the output or turn all output off depending on the E C remote setting Refer to the data link manuals regarding the method for setting the communication problem station and the operation status when there are communication problem e When performing control data change for the operating PLC where a peripheral device is connected to the CPU module or a personal computer etc is connected to the special function module configure up an interlock circuit in the sequence program so that the whole system will always operate safely When performing the other contro program change operating status change status control for the operating PLC read the manual carefully and fully ensure safety before starting that control Especially in the above contro performed for the r
44. special function module may fail to process correctly To execute a FROM TO instruction for a special function module set the execution inter vals meeting the processing and conversion time of that module using the timer and the constant scan function of it 6 Data Exchange with Special Function Modules MELSEC QnA 6 2 Reading and Writing Data from Q2ASCPU by Special Direct Device The special direct device like the FROM TO instructions reads data stored in the buffer memory of the special function module or writes data to the buffer memory Q2ASCPU Special function module ee ee ee eee Write by special direct device i Read by special direct memory a External UIGH device device The special direct device represents the buffer memory of the special function module as the Q2ASCPU device Example U10 G10 U10 Head I O No 100 of the special function module hexadecimal G10 Address 10 of buffer memory of the special function module decimal For details of the special direct device refer to QNACPU Programming Manual Fundamentals Untike the FROM TO instructions the CPU module can treat the buffer memory of a special function module as a direct device With this the total number of program steps can be reduced The processing time however is the same as the FROM TO instructions Example Write data into address 0 and read data from address 1 of the buffer memory of the special function
45. that each of the bases has 8 slots If 2 3 5 slot A1S32B A1S33B A1S35B is used for the main base I O numbers for the extension base are allocated after allowing for an additional 6 5 3 slots 96 points 80 points 48 points 3 Allocate 16 points to a vacant slot 4 Items 2 to 3 above can be modified through I O allocation in the parameter Refer to Section 5 3 gt Se aS oo ge oO a 0 number allocation 3 System Configuration MELSEC QnA b Q2ASCPU S1 and Q2ASHCPU S1 system Main base module A1S38B 4 0 1 2 8 5 6 C 00 10 20 30 40 50 60 P to to to to to to to U OF 1F 2F 3F 4F 5F 6F Extension base module A1S58B S1 8 9 10 11 12 13 14 15 7 4 Slot No 70 to 7F Extension cable ist aN t Power supply module ion base module A1S55B S1 18 19 20 21 22 23 System configuration Extension base module A1S68B S1 24 25 26 27 28 29 30 31 180 190 1A0 1B0 1C0 1D0 1E0 1FO to to to to to to to to 18F 19F 1AF 1BF 1CF 1DF 1EF 1FF The above figure shows the configuration when 16 input output modules are loaded to each slot Maximum Number of Three Extension Stages Extension Stages Maximum number of 1024 points input output points Main base modules A1S32B A1S33B A1S35B A1S38B AiS38HB Extension b dules 41S52B S1 A1S55B S1 A1S58B S1 A1S65B S1 A1S68B S1 A
46. the For one axis positioning control speed control speed positioning Analog output 32 Special 32 points voltage 0 to 10 V DC x For positioning control speed control speed positioning control Pulse chain output Two axes independent 2 axes synch linear interpolation module number of connected lines 1 access range A1SD70 Positioning A1SD71 S2 module AiSD71 S7 48 Special 48 points For positioning control selectable manual pulsar output speed Pulse chain output Two axes independent 2 axes synch linear interpolation 48 Special 48 points System Configuration MELSEC QnA QnA JQAnA A Description only share 5VDC 24VDC module type a A For positioning control Pulse chain output Used for positioning control 0 7 Pulse output 2 axes AISD75P2 83 independent dual axis simultaneous linear interpolation circular interpolation Used for positioning control Pulse output 3 axes A1SD75P3 S3 independent triple axis simultaneous 0 7 dual axis linear interpolation dual axis circular interpolation Used for positioning control 32 Special 32 points A1SD75M1 Digital output For MR H B MR J B MR J2 B 1 axis Used for positioning control Digital output For MR H B MR J B MR J2 B A1SD75M2 2 axes independent dual axis simultaneous linear Occupied Current points I O consumption allocation When Differential driver is connected 0 78 Positio
47. the RUN STOP key switch is moved to RUN from STOP Refer to Section 12 1 1 e Scan Execution Type Program is executed each time a scan takes place from the next scan after the initial execution type program is executed Refer to Section 12 1 2 e Low Speed Execution Type Program executed only at scan execution type programs extra time when setting the constant scan or low speed type program execution time Refer to Section 12 1 3 e Stand by Type Program that is executed only when the execution request maiches Refer to Section 12 1 4 12 1 12 Overview of The Q2ASCPU Calculation Processin MELSEC QnA The operation processing flow when the PLC power is turned on the CPU module is reset or the RUN STOP key switch of the CPU module is set to RUN from STOP is as follows Power ON RESET gt RUN CPU module STOP gt RUN Initialization I O module refresh processing i Executed only once when PLC power Initial execution is turned on CPU module is reset or type program RUN STOP key switch of CPU module is set to RUN I O module refresh processing END Processing _ _ Executed only when there is an execution Stand by type request Scan type program program Executed oniy when constant scan or low speed program execution time is set Low speed execution type program 1 Not all execution types need to be set for Q2ASCPU Use the items marked with as needed such
48. the GPP function device mode edit menu R of Dev First Device Last Device Do D15 Production Specification Data 11 5 12 Overview of The Q2ASCPU Calculation Processing MELSEC QnA 12 Overview of the Q2ASCPU Calculation Processing 12 1 Program Execution Type Overview The program executed with the Q2ASCPU is stored in the CPU module internal RAM or memory card The internal RAM or memory card can store one program at once but also can store them as multiple programs by separating them into control units Therefore to create a program with several engineers each engineer programs each process ing unit and can be stored in the CPU module interna RAM or memory card Control by one program Control by separating into multiple programs Program A Control contents A Program B Store by Control contents B separating the code according to contro contents 1 L Li I I i L Program n Control contents n When separating into multiple programs the execution type is set in the GPP function parameter modes program setting Each program is executed in the order of setting according to the execution type set in the Q2ASCPU There are four types of execution types initial execution type scan execution type low speed execution type stand by type e Initial Execution Type Program executed only once when the PLC power is turned on the CPU module is reset or when
49. the data link when the CPU module Stop is down is shut off e Continue e Non Scan mode setting e Sets synchronization non synchronization for the CPU module scan synchronization e Synchronization e Remote I O station Remote device station e Intelligent device station e 1 station Station type e Sets device for each remote station Number of occu A A e 2 stations pied stations e Sets the number of occupied stations for each remote station e 3 stations e 4 stations x Reserved station a inn i e Not used Specifies whether or not the remote station is reserved Invalid station Afi e Invalid e Sets valid invalid status for detecting errors from remote stations 1 For the set station in Table 7 1 M indicate 2 In Table 7 1 O indicates that setting is allowed and x indicates that setting is not required a 7 7 7 Setting Automatic Refresh MELSEC QnA 2 Precaution a The CC Link automatic refresh function can be performed when both the Q2ASCPU and CC Link module are function version B If the function version of either the Q2ASCPU or CC Link module is not B CC Link automatic refresh function will not be performed b Up to 8 pieces of CC Link modules can be set with the automatic refresh setting If more than 9 pieces of CC Link modules are used use the FROM TO instruction within the sequence program starting from the ninth module c When both the CC Link m
50. the order of the pointer when a multiple subroutine program is created 3 The pointer uses a common pointer A common subroutine program that uses a common pointer can be called by all programs that are executed by Q2ASCPU Program A Q2ASCPU ICG memory card Internal RAM Main routine program Write Program A Program B stand by type program Program B Use a common pointer This does not have to be created in order Refer to QnACPU PROGRAMMING MANUAL Fundamentals for details on common pointers 12 13 1 2 Overview of The Q2ASCPU Calculation Processin MELSEC QnA c To Group Interrupt Programs as One Program 1 Create the interrupt program from step 0 of the stand by time program The END instruction is necessary at the end of the interrupt program 2 There are no limitations to the order in which the interrupt programs are cre ated so there is no need to create the programs in the order of the pointer when multiple interrupt programs are created Program A Q2ASCPU IC memory card Internal RAM Main routine program Program A Program B stand by type program Program B Interrupt program Use a common pointer This does not have to be created in order Refer to QnACPU PROGRAMMING MANUAL Fundamentals for details on interrupt point ers 12 14 12 Overview of The Q2ASCPU Calculation Processing MELSEC QnA 3 To Switch the Program Procedure a Create
51. the shared data module no column e When the buffer memory access method is set to ignore the command access or monitor results will be FFFFH 8 54 8 Debug Function MELSEC QnA 8 10 Debug Function with Multiple Users This is a function to execute debug from multiple GPP function peripheral devices at the same time Application This is used when debugging from different files from multiple GPP function peripheral device is performed at once Function Description The debug function combination for multiple users are as follows Debug Function Debug from Other Sampling trace Step by step Function Station program trace operation from Host measurement Step by step op eration Can be executed at the same time However the detailed condition can only be set from one GPP function peripheral device In this case the detailed condition setting cannot be performed from another GPP function peripheral device x Can only be executed from one GPP function peripheral device 8 55 8 Debug Function MELSEC QnA 8 10 1 Multiple User Monitoring Function The Q2ASCPU allows multiple users to monitor at the same time By setting a station monitor file to the system area of the built in RAM high speed monitoring can be performed from the other station Setting of station monitor file is not necessary Operation Procedure The multiple user monitoring operation is performed in the following procedure 1
52. the time data for failure history etc so set the accurate time when using the CPU module for the first time 1 Clock Data The time data is the year month day hour minute second and weekly day data used for the PC CPU clock element There are the following Weekly Day 2 Precision The precision of the clock function differs from the ambient temperature as shown below pt to 48s TYP 1 78 10 7 10 Other Functions MELSEC QnA 3 Writing to the Time Data Clock Element a The following methods can be used to write to the time data clock element 1 Method to Write from the Peripheral Device e When using the GPP function the time data is written to the clock element using the clock setting in the PC diagnosis mode PC menu l e For the Q6PU the time data is written to the clock element using the clock monitor in another modes PC system monitor Refer to the operating manual for each peripheral device for details of the peripheral device operations 2 Method to Write from the Program The time data is written in the clock element using the clock instruction DATEWR A program example to write the time data using the time data write instruction DATEWR Write request Year 95 Month 8 Day 10 Hour 11 Minute 35 Second 24 Day Friday 5 Refer to QCPU Q mode QnACPU Programming Manual Common Instruc tions for details of the DATEWR instruction POINTS The time data is not writ
53. using FROM TO instructions Not set The Q2ASCPU will generate no errors Offline but will not communicate with a remote station g Use the peripheral device listed below for the CC Link automatic refresh setting e IBM PC AT or 100 compatibles SW2iVD GPPQ type GPP function software package GX Developer 7 8 7 Setting Automatic Refresh MELSEC QnA 3 Method to set Use the following procedure for the CC Link automatic refresh setting a Select CC Link setting using the parameter to display the CC Link Setting window Set the number of CC Link modules 1 to 8 b To display the CC Link Setting List window set the number of CC Link modules installed in the Q2ASCPU basic base module and the extension base module then select Execute Y For specifying the mod ule number for refresh setting For verifying the setting data Press the F3 key to set Press the Esc key to register the set data c Move the cursor to the module number to perform automatic refresh setting then press the F3 details key to display the CC Link Setting window Select 4 Auxiliary setting or 5 Station information setting to perform detailed data setting Set the CC Link module I O number Set the remote for the specified station connected module number to the CC Link module See D Set the CC Link s h module type for noto station the specified See E module number Set the
54. value of the low speed program execution time so that the total of the iow speed program execution time and the scan time will be less than the WDT set value The COM instruction cannot be used in a low speed program When the constant scan time and low speed program execution time have been set PRG TIME OVER error code 5010 will occur if the constant scan allowance time becomes less than the low speed program execution time Execute the low speed execution type program using either the constant scan time or low speed program execution time 12 8 12 Overview of The Q2ASCPU Calculation Processing MELSEC QnA 1 Asynchronous system 1 When setting the constant scan The operation when the low speed execution type program is executed with the following conditions is shown below e Constant scan time 60ms e Scan execution time program total 40msto 50 ms Low speed execution type program A execution time 10ms e Low speed execution type program B execution time 30ms e END processing 0 ms assumed as 0 ms to simplify this example e Low speed END processing Oms assumed as 0 ms to simplify this example END END END END END processing processing processing processing processing poof FY 0 60 1 120 1 180 1 240 1300 ms 1 1 1 1 g 1 1 1 i ra i t I N 1 l I t Vt 40ms 45ms 40ms 40ms 50ms Ii 40ms Scan execution type program ke l ee eeM J 4 ig Sg Low speed execution type yams yal ri i program
55. 0 0 0 cece eee te eee tee tee ttt ete teen rue 9 4 9 3 1 Interrupt due to Error Occurrence 1 0 cee cence ee tenet eenenees 9 7 9 3 2 LED Display when Error Occurs 0 cece ce tent n eee teenees 9 7 9 3 3 Cancel Error 2 0 icc ee te ener nee renee nner ete e eens 9 8 Failure History 2 0 ccc ee ee ee eee ee ee een ee rene ene eee eet e nee 9 9 System Protect 0 enn te eee eet eta ee eee teens 9 10 Password Registration 2 cece cece ee te ee ene eee teeter tee eee tees 9 10 System Display 2 0 0 ec tee ee een eee eee reenter e ene e eee 9 12 LED Display 2 2 ccc ccc eee ee teen ee eee ne eee e ene eee 9 13 9 8 1 LED Display 0 cece cee eee ee ete ee rete t ete e rene tene 9 13 9 8 2 Priority Setting 20 0 0 cee cece eee eee teen eee te ene eenaes 9 15 Other Functions 10 1 10 2 10 3 10 4 10 5 10 6 10 7 Function List 0 0 cece ee ee ne eee eee te ne tne eee n te nent teen netenees 10 1 Constant Scan 0 ne eee teen eee e ene n ene eee ees 10 2 Latch Functions cece ee te nee ene ee en eee nent e eens 10 5 Setting the Output Y Status when Changing from STOP Status to RUN Status 10 6 Clock Function 0 0 cece cece eee eee ene e eee ene tbe na beeen eens 10 7 Remote Operation 1 0 ccc cee tee eee eee e nent teen e eens 10 11 10 6 1 Remote RUN STOP cece cece cece cent e ene tenet entneeee 10 11 10 6 2 Remote STEP RUN 0 cee ec eee nee rete ene
56. 12 Program trace execution SM813 Program trace trigger SM814 1 i i I L 1 i 1 After program trace trigger 1 1 1 t t L i 1 i 1 l t i i I I I I SM815 ooo Program trace complete l SM810 automatically turns on when the program trace is ready 8 45 8 Debug Function MELSEC QnA e When interrupting the trace Trigger SM811 SM811 Trigger Trace execution Off On execution complete t Trace count i after trigger 1 Clear t t t Trace count ear trace coun i after trigger anaa t m i i i i 1 i I 1 t 1 t SM810 pn O OOO SO Program trace ready t I i 1 1 i I i SM811 Program trace start SM812 Program trace execution M813 Program trace trigger SM814 After program trace trigger I I I I I L i 1 J I i 1 i 1 1 i i t I SM805 i ooo Program trace complete When trace is interrupted from the GPP function peripheral device the SM810 is turned off also The operation when an error occurs is as follows When an error occurs during program trace turn the SM828 program trace error is turned on and turn SM811 program trace start off To turn off SM828 turn on SM811 or execute PTRA instruction 8 46 8 Debug Function MELSEC QnA Operation Procedure The program trace is performed in the following manner Each operation is performed in the Program Trace screen in the onli
57. 16 32 48 64 points module A1542Y ol 12 24VDC dynamic output module ni Specified j 0 10 j 0 008 Specified points 16 point 32 point 48 point 64 point age Dummy module A1SG62 DOC selectable module ants yroetied Hiscons Soldering type straight out type Simp contest ype eraight ot ype I straight out type 40 pin eee o Crimp contact type Crimp contact type straight outtype out type connector ao Pressure displacement a flat cable type ascona Soldering a R m Soldering type straight diagonal out type out type ae E Soldering type Soldering type straight out type out type 37 pin D Sonn ector C Crimp contact type straight out type H ABCONSE e Pressure displacement type flat cable type a TO O oOo O Pulse catch Pulse input module with short pulse duration A1SP60 x minimum pulse duration 0 5 ms Input 16 16 Output 16 points 0 055 module points Analog timer Allows for different set timer value 0 1 to 1 0 modus m A1ST60 x s 110 10 s 10 to 60 s 60 to 600 s 16 Output 16 paints 0 055 depending on volume Analog timer 8 points Interrupt For interrupt program execution AISI61 lo Interrupt module Interrupt input 16 points S2 Special 32 points 0 057 PLC simple A185891 n o freemen snan sonar P C external failsafe circuit simplifying module CEE ome 32 bit signed binary 50 KPPS 1 channel 24 bit binary Sink output type aso SD62 100 KPPS 2 channels 32 Special 32 points High speed c
58. 1S64TCRT S1 channels modu e PID control ON OFF pulse or 2 position control Transistor output thermocouple input 4 32 Special 32 points channels module PID control ON OFF puise or 2 position control Heater wire breakage detection function 0 to 10 VDC DCO to 20 mA A Analog input 4 channels 32lSpecial 32 points Oto 10 V DC DCO to 20 mA A Analog input 8 channels 32 Special 32 points fos A1S64TCRTBW S1 Analog digital A1S64AD conversion module A1S68AD z For connecting Pt 100 3 wire type Temperature digi A1S62RD3 Temperature input 2 channels 32 Special 32 points 0 54 tal conversion x F fing Pt 100 4 wire type module or connecting wire type DC4 to 20 mA Oto 10 V DC i x conversion module AiS68DAV Oto 10 VDC Analog output 8 channels a2ispeciai a2 points 0 65 AtS68DAI DC4 to 20 mA Analog output 8 channels 32 Special sz points 0 85 Computer Jink function RS 232C 1 channel x ae ele soa jaematsva foo Computer fink 7 7 sar pree T ena e I A15J71UC24 PR Computer link amp printer function Accessible in x RS 232C 4 channel 32 Special 32 points 0 1 Refer to Section 3 3 2 A1SJ71UC24 R4 Computer link function o i RS 422 RS 485 1 channel 32 Special 32 points 0 1 Data transfer Computer link function dedicated protocol Refer to Section interface A1SJ71CM0 S3 x non procedural mode built in modem 32 Special 32 points 3 3 2 for
59. 2 13 14 15 Extension cable Power supply module Extension base module A1S55B S1 System configuration 16 17 18 19 20 21 22 23 a 100 110 120 130 to to to if 10F 11F 12F 13F Extension base module A1S68B S1 24 25 26 27 28 29 30 31 180 190 1A0 1B0 1C0 1D0 1E0 1F0 to to to to to to to to 18F 19F 1AF 1BF 1CF 1DF 1EF 1FF The above figure shows the configuration when 16 input output modules are loaded to each slot Maximum Number of Three Extension Stages Extension Stages Maximum number of 512 points input output points Main base modules A1S32B A1S33B A1S35B A1S38B A1S38HB Extension base modules 41952B S1 A1S55B S1 A1S58B S1 A1S65B S1 A1S68B S1 A52B AB55B A58B A62B A65B A68B Extension cables A1SC01B A1SC03B A1SC07B A1SC12B AiSC30B A1SC60B ACO6B AC12B AC30B A1SCO5NB A1SCO7NB A1SC30NB A1SC50NB 1 When extension base A1S52B S1 A1S55B S1 A1S58B S1 and A52B A55B A58B are used 5VDC is supplied from the main base s power supply module Refer to Section 17 3 for the appropriate module to use 2 Do not use extension cable longer than 6 m 19 68 ft 3 When using an extension cable it should not be connected to or allowed to come close to the main circuit high voltage and large current 1 I O number is assigned first to the main base and then to the extension base 2 In allocating I O numbers to the main base and extension base it is assumed
60. 52B ASSB A58B xtension base modules A62B A65B A68B A1SC30NB A1SC50NB Extension cables A1SCO01B A1SC03B A1SC07B A1SC12B A1SC30B A1SC60B ACO6B AC12B xtension ca AC30B A1SCO5NB A1SCO7NB A1SC30NB A1SC50NB 1 When extension base A1S52B S1 A1S55B S1 A1S58B S1 and A52B A55B A58B are used 5VDC is supplied from the main base s power supply module Refer to Notes Section 17 3 for the appropriate module to use 2 Do not use extension cable longer than 6 m 19 68 ft 3 When using an extension cable it should not be connected to or allowed to come close to the main circuit high voltage and large current 1 I O number is assigned first to the main base and then to the extension base 2 In allocating I O numbers to the main base and extension base it is assumed that each of the bases has 8 slots If 2 3 5 slot A1S32B A1S33B A1S35B is used for the main base I O numbers for the extension base are allocated after allowing for an additional 6 5 3 slots 96 points 80 points 48 points 3 Allocate 16 points to a vacant slot 4 Items 2 to 8 above can be modified through O allocation Refer to Section 5 3 Power supply module VO number allocation 3 System Configuration MELSEC QnA 3 3 List of System Equipment 3 3 1 List of System Equipment The Q2ASCPU system can use the following modules and system equipment of peripheral device 1 QnA Modules Occup
61. 8 ft 10m 828ft lon sd Terminal block cover for AnS Slim type terminal block cover for AnS I O VO module and AISTEC S x module and special module All termina block connector type modules special module Pressure displacement type terminal Pressure displacement type terminal block block adapter A1S TA32 x adapter for AnS 32 point O module A1SX41 S1 S2 A15X71 A1SY41 A1SY71 for AnS O module I O cables with connectors for I O modules of 40 pin connector specifications A18X41 A1SX42 A1SY41 A1SY42 etc or 37 pin D sub connector specificaions A1SX81 A1SY81 are available Consult the neareset Mitsubishi representative for the I O cables with connectors 2 Peripheral device Performs program write read by connecting with the CPU main module via RS 422 cable AC30R4 PUS AC20R4 A8PU 6VDC 0 4 A Programming module RS 422 Connecting cable between the CPU main module and Q6PU AC20R4 ABPU 5n 6 56 ft long Q6PU Connecting cable between the CPU main module and Q6PU Cable for AC30R4 PUS 3 m 9 84 ft long 3 12 3 System Configuration MELSEC QnA 3 3 2 Precaution on System Configuration This section describes hardware and software packages compatible with Q2ASCPU 1 Hardware a Number of allowable units is limited depending on particular module Applicable module For Q2ASCPU only For ACPU VO module P o n Notimt S l s o Special function modue nome Intelligent special
62. A H i i 1 Low speed execution type i 10ms 15ms 5ms 5ms 20ms Sms program B H Hi H H H 1 1 1 I Low speed scan time 165 ms i Low speed scan time 130 ms i 1 l l Low speed END ala END processing execution processing execution 2 When setting the low speed program execution time The operation when the low speed execution type program is executed with the following conditions is shown below e Low speed program execution time 30ms e Scan execution type program total 40ms to 50 ms e Low speed execution type program A execution time 10ms e Low speed execution type program B execution time 30 ms e END processing 0 ms assumed as 0 ms to simplify this example e Low speed END processing 0 ms assumed as 0 ms to simplify this example END END END END END processing processing processing processing processing 0 40 115 185 255 335 ms T T i 7 t L 1 L 1 I i I L I 4 1 1 I 1 I 1 40ms 45ms_ 40ms 40ms 50ms__ Scan execution type program Low speed execution type Pas isj Ss Oms 10ms l 1 ams ce H H I I i i program A H i l 1 i 10ms 20ms 30ms g Low speed execution typo T 10ms program B H H l m Low speed scan Low speed scan Low speed scan time 125 ms time 80 ms 1 time 80 ms 1 AASE rr 1 Low speed END Low speed END Low speed END processing execution processing execution processing execution 12 9 12
63. ABC DEF program to a stand by type When M1 is on switch program the ABC program from a scan execution DEF type program to a stand by type Stand by Stand by Stand by type type type program program program program ABC DEF GHI JKL 12 15 12 Overview of The Q2ASCPU Calculation Processing MELSEC QnA 2 When changing to the execution type of another program from the scan execu tion type program being executed e Change the program to be executed next from the stand by type to scan execution type with the scan execution type program being executed e Set ABC and GHI programs to the scan execution type and DEF program set to the stand by type The following shows the operation to switch the ABC program and DEF program execution types Before PSCAN PTOP Instruction Execution Scan execution type program ABC PSCAN is an instruction to switch the specified program DEF to scan execution pe PSTOP is an instruction to switch the specified program ABC to the wait type Wait type program DEF Scan Execution Type Program GHI PSCAN GHI PSTOP DEF J After PSCN PSTOP Instruction Execution Wait Type Program ABC PSCAN DEF PSTOP ABC Scan Execution Program DEF Scan Execution Type Program GH 12 16 12 Overview of The Q2ASCPU Calculation Processing MELSEC QnA c The switching of program execution type with the PSCAN and PSTOP instruction
64. BCD cord operations Used to read time data to the special registers SM213 Clock data set request After the END instruction is executed for the scan where the SM210 changed from OFF to SD210 to SD213 e When SM213 is on time data in D210 to D213 are read after executing the END instruction is executed Time data read request 10 9 10 Other Functions MELSEC QnA b The following describes the special registers used for the time data Time data Year Month Time data Day Hour Time data Minute Seconds Time data Day of Week 10 10 e The year and month format is as follows The year is the last 2 digits in AD b15 to b8 b7 to bO eum antennae ated gt Month stores 01 to 12 in BCD Year stores 00 to 99 in BCD e The day and hour are as follows b15 to b8b7 to b0 eS Hour stores 00 to 23 in BCD Day stores 01 to 31 in BCD e The minute and seconds are as follows b15 to b8 b7 to bO Al Seconds stores 00 to 59 in BCD Minutes stores 00 to 59 in BCD e The day of the week is as follows b15 to b4b3tob0 j Ze Day stores 0 to 6 in BCD Stores 0 e The day of the week setting is as follows Por emay ieres Toetoy Wotnertn arsaa Prony Say n of ae o 10 Other Functions MELSEC QnA 10 6 Remote Operation The Q2ASCPU can allow control of the CPU module operation stat
65. D command becomes the specified state a Circuit Mode List Mode fT end Step LD X0 xo Xi xX2 AND X1 o H HH HH Hli 20 AND X2 OUT Y20 b fo 2nd Step xo X1 X2 0 H Y20 x3 If the beginning of the circuit block other than step 0 is specified in step No as the detailed condition monitor data is collected when the execution status of the instruc tion right before execution of the specified step becomes the specified status li Step 2 lt ON gt is specified in the following circuit monitor data is collected when OUT Y10 turns ON Circuit Mode List Mode LD X0 Xo LD X1 x2 OUT Y11 2 __ vit 8 4 8 Debug Function MELSEC QnA 2 The monitor stop condition can be set Each operation is performed in Monitor screen of the circuit mode The setup example of the monitor stop condition is shown below Monitor stop condition 1 Without Monitor Stop 2 x Condition Device 1 x Device 1 Word Device 2 x Bit Device Current Value 2 x Calculation state lt Always gt Space Select Esc Close The following is the description of the screen 1 Without Monitor Stop or 2 Condition can be set as the monitor condition a When 1 Without Monitor Stop is selected The monitor is stopped when the Esc key is pressed b When 2 Condition is selected 1 Device or 2 Calculation State can be specified 1 When 2 Calculation State is specifi
66. M801 SM801 Trigger Trace execution Off On execution complete Number of Numba of traces os nt traces after or u 1 trigger Pa Clear trace count after trigger i l rm i i i i i 1 i I 1 i I I SM800 SS Sampling trace ready SM801 1 1 Li 1 i Sampling trace start i l L SM802 Sampling trace execution SM803 Sampling trace trigger SM804 After sampling trace trigger SM805 I t t i 1 i l l l I 1 l 1 I l i Sampling trace complete When trace is interrupted from the GPP function peripheral device the SM800 is turned off also The operation when an error occurs is as follows When an error occurs during sampling trace the SM826 sampling trace error is turned on and SM801 sampling trace start is turned off To turn off SM826 restart the trace 8 24 8 Debug Function _ MELSEC QnA Operation Procedure The sampling trace operation is performed in the following manner Each operation is performed in the sampling trace screen in the online mode trace menu 1 Set the trace device and trace condition in GPP function a Trace Device Setting Set the device in the Trace Device Setting of the Sampling Trace screen Trace Device Setting PgUp Prev PgDn Next Space Select Esc Close 8 25 8 Debug Function MELSEC QnA b Setting the Trace Condition Set the device in the trace condition setting of the sampling trace screen Trac
67. MITSUBISHI QnA Series Model Q2AS H CPU S1 User s Manual es eee N IN Vi paa x g a MESEC Mitsubishi Programmable Logic Controller SAFETY PRECAUTIONS Read these precautions before using When using Mitsubishi equipment thoroughly read this manual and the associated manuals introduced in this manual These SAFETY PRECAUTIONS classify the safety precautions into two categories DANGER and CAUTION ne cee mene meme ee ne ee 7 Procedures which may lead to a dangerous condition and cause death 1 DANGER cures walca may ieee 9 or serious injury if not carried out properly Procedures which may lead to a dangerous condition and cause i uN CAUTION superficial to medium injury or physical damage only if not carried out i L properly 7 Depending on circumstances procedures indicated by Z CAUTION may also be linked to serious results In any case it is important to follow the directions for usage Store this manual in a safe place so that you can take it out and read it whenever necessary Always forward it to the end user DESIGN PRECAUTIONS install a safety circuit external to the PC that keeps the entire system safe even when there are problems with the external power supply or the PC module Otherwise trouble could result from erroneous output or e
68. MOV K4Y20 DO Yor 8 OUT Y11 Final step x002 of LD x2 9 H H RsT Do Fig 8 5 Skip Execution Operation Procedure Skip execution is performed in the following manner Each operation is performed in the Monitor screen in the circuit mode debug t The program range to skip with the GPP function is set The step number to skip is specified in the D Skip Run screen Skio Run Cancel lt N gt 8 43 8 Debug Function MELSEC QnA 8 8 Program Trace Function This is a function to sample execution status in the program POINT The memory card is required when executing the program trace function Application The execution status of the specified step in the program can be checked during debug The debug time can be minimized using this function Function Description 1 Function a The program trace samples the execution status of the specified step in the specified program This is stored in the program trace file in the memory card b The devices that can be traced are as follows 1 Bit Device X FX DX Y FY DY M L F SM V B SB T contact T coil ST contact ST coil C contact C coil JO x Jv sg JA sB and BLCAs Maximum 50 2 Word Device T current value ST current value C current value D SD FD W SW R Z ZR UL a Jw and ULI SW voescsscssessscecssssssssesssssessssesssecesseeenses Maximum 50 c The program trace file stores the trace conditi
69. Main routine l Main routine program program P00 Subroutine 1 1m ene program Stand by type program 1 10 Interrupt mS P100 Subroutine 1 i program program 7 7 7 7 t 10 Interrupt program 2 Upon completion of program execution it returns to the program before the stand by type program execution The operation when the stand by type program subroutine and interrupt pro gram are executed is shown below CALL P100 command execution Interrupt error factor occurred END processing END processing END processing Scan execution type program J d P100 RET Subroutine program 10 IRET Interrupt program 12 12 12 Overview of The Q2ASCPU Calculation Processing MELSEC QnA POINTS 1 The timer cannot be used for the stand by type programs because current value updates and contact on off are performed during the OUT T instruction execution 2 Use the common pointer when a subroutine program is to be used as a stand by type program Refer to QnACPU PROGRAMMING MANUAL Fundamentals for details on common pointers and local pointers b To Group a Subroutine Program as One Group 1 Create a subroutine program starting from step 0 of the stand by type program The END instruction is necessary at the end of the subroutine program 2 There are no limitations to the order in which the subroutine program is cre ated so there is no need to create the program in
70. Overview of The Q2ASCPU Calculation Processing MELSEC QnA 2 Synchronous system 1 When setting the constant scan The operation when the low speed execution type program is executed with the following conditions is shown below e Constant scan time 60ms e Scan execution type program total 40ms to 50 ms e Low speed execution type program A execution time 10 ms e Low speed execution type program B execution time 30ms e END processing Oms assumed as 0 ms to simplify this example e Low speed END processing 0 ms assumed as 0 ms to simplify this example END END END END END END processing processing processing processing processing processing ee ee 0 1 60 120 180 1 240 1300 ms 1 i I I l D 8 ta 1 1 boo 1 1 1 1 ts 1 1 t 1 o 1 i t Ii t 40ms 1 45ms 40ms 1 40ms 50ms 40ms Scan execution type program Low speed execution type ma men emen eN TA om H H program A Low speed execution type 10ms 15ms 5ms sd 10ms 10ms program B H H H H H t5ms g Constant scan waiting time I i I gt Low speed scan time 165 ms Low speed scan time 185 ms Low speed END Low speed END Processing execution processing execution 2 When setting the low speed program execution time The operation when the low speed execution type program is executed with the following conditions is shown below e Low speed program execution time 30ms e Scan execution type program t
71. P function I O number Input by peripheral devices X010 X10 Y020 Y20 5 1 5 Allocation of I O Numbers MELSEC QnA 5 2 10O Number Allocation Scheme The following I O numbers are allocated when the PLC is powered on or the CPU module is reset In the sequence program specify I O numbers that are allocated according to the following items 1 I O numbers are allocated starting with O for slot O of the main base module right side of the CPU module going from left to right 2 The I O module and special function modules attached to the base module occupy as many I O numbers as there are I O points for each module 3 Sixteen points are allocated for each vacant slot without an I O module or special function module Main base 6 7 Slot number Input 32 points gt Input 16 points Input 32 points a a 3 n S S a module CPU module Allocation direction Allocate from left to right starting with stot 0 Output 16 points Vacant 16 points Output 16 points 07 X000 X010 Yo30 040 X050 Yo70 to to to to to to XOOF XO2F YO3F 04F XO6F YO7F Nae Inputs X and outputs Y YS One slot occupies 32 points are allocated by serial numbers Vacant slot occupies 16 points 4 If an extension base module is loaded numbers are allocated starting with the next number following the main base modules number 5 2 5 Allocation of I O Numbers MELSEC QnA 5 The
72. QnA 8 6 Status Latch Function This is a function to sample data of device for the specified moment Application The device status of ihe device used by the program is stored in a file when the debug is specified Function Description 1 Function a The status latch stores the device status at the specified moment in the status latch file in the memory card b The status latch file stores the status latch condition and status latch execution data to perform status latch The device data is sampled when the SLT instruction is executed in the program status latch start is executed in the GPP function peripheral device and according to device and step number condition c The status latch result displays the ON OFF status of the bit device at the specified moment and the word device value POINT Memory card is required to execute status latch function 8 31 8 Debug Function MELSEC QnA 2 Basic Operation The basic operation for status latch is as shown below The execution status of the status latch function can be checked in special relay SM806 to SM809 and SM8 amp 27 l Status latch execute Status latch interrupt SM806 T Status latch ready t 1 1 1 1 1 l 1 l i i i i i 1 1 i SM807 Status latch command SM808 Status latch complete SMso9 Status latch clear SM806 automatically turns on when the status latch is ready 3 The operation when error occurs is as follows
73. SAFETY PRECAUTIONS Section 3 1 2 Section 3 3 1 Section 3 3 2 Section 3 3 3 Section 8 2 1 Section 8 5 Section 12 1 5 Section 12 1 6 Chapter 13 Section 14 3 Section 15 1 Section 15 3 Section 16 1 Section 16 2 Section 17 2 Section 17 3 Section 19 1 Section 22 3 2 Appendix 3 rights Mitsubishi Electric Corporation is not responsible for industrial ownership problems caused by use of the contents of this manual 1996 Mitsubishi Electric Corporation INTRODUCTION Thank you for choosing a Mitsubishi MELSEC QnA Series General Purpose Programmable Controller Before using your new PC please read this manual thoroughly to gain an understanding of its functions so you can use it properly Please forward a copy of this manual to the end user Table of Contents 1 1 Using This Manual 0 0 cee eee eet e ene rerne 1 1 1 2 Abbreviations and General Names Used in This Manual 0 0 0 0 ccc cece eee eee 1 2 3 1 System Configuration 0 cc eet ete ene senerara roeren 3 1 3 1 1 Independent System Machine Configuration 0 0 cece eee eens 3 1 3 1 2 Q2ASCPU Preipheral Device Configurations 0 cee eee eee eens 3 2 3 2 System Configuration Overview 0 ccc cee eee eee eee net n eee e ee eaee 3 3 3 3 List of System Equipment 0 0 eee eee ene een ene ne teen eeenes 3 5 3 3 1 List of System Equipment cee eee eee te teen teen eeenes 3 5 3 3 2 Precauti
74. SE x J 7 of Free Slots lt 16 gt 3 Allow Remote Reset 1 lt gt Yes 2 lt gt No 8 System Interrupt 1 1st Interrupt Counter CI 2 128 Const Interval 100 ms 4 Output at STOP gt RUN 3 129 Const Interval 40 ms 1 lt gt Prier to Cale 4 130 Const Interval 20jms 2 lt gt After one Scan 5 131 Const Interval 10 ms Cancel lt N gt 7 Setting Automatic Refresh MELSEC QnA 7 Setting Automatic Refresh 7 1 For MELSECNET MINI S3 In order to automatically exchange batch refresh communication data of A1SJ71PT32 S3 master module master module hereinafter with buffer memory area set parameters like MELSECNET MINI S3 link information and I O storage device Set these parameters in MELSECNET MINI specification under GPP function parameter mode By setting MELSECNET MINI I O devices allocated to communication can be used directly in the sequence program FROM TO instructions are not necessary POINTS Maximum of eight master modules can be set for automatic refresh in parameter set ting To communicate with nine or more modules process 9th module and beyond through the FROM TO instruction Communication data for partition refresh I O modules and communication data for re mote terminal modules No 1 to No 14 cannot be processed through automatic re fresh Use the FROM TO instructions for these cases e AJ35PTF R2 RS 232C interface module e AJ35PT OPB M1 S3 mount type operation box e AJ35PT OPB P1
75. Select 5 Format lt with Option gt in B PC Memory Batch Processing in the online mode 2 PC and set the station monitor file The setting example is shown below A maximum of 15 k steps can be set in 1 k step units 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 The program file area of the built in RAM is in the same area as the station monitor file so the program file area is reduced when station monitor files are set Precaution 1 The detailed condition setting of the monitor can only be set from one area 2 Monitoring can be performed even if a station monitor file is not set but high speed monitoring cannot be performed 3 When it is desired to perform simultaneous monitoring from multiple users at high speed perform this operation before writing a parameter file program file etc to the built in RAM If this operation is performed after the files are written to the built in RAM all files will be erased 4 Up to 16 locations per CPU module can be accessed simultaneously 8 56 8 Debug Function MELSEC QnA 8 10 2 Multiple User RUN Write Function The Q2ASCPU allows multiple users to write to one file or different files during RUN Operation Procedure The multipie user RUN write operation is performed in the following manner 1 Set 4 Write During Run Setting and 7 Write Method at Write During Run are set in t
76. Step 0 END Step 0 END 0 OFF Remote RUN Contact PC CPU RUN STOP State STOP State Fig 10 4 Time Chart for RUN STOP with Remote RUN Contact 10 11 10 Other Functions MELSEC QnA b Method using the GPP function serial communication module etc CPU module RUN STOP can be performed by the remote RUN STOP operation from the GPP function serial communication module etc The GPP function operation is performed with remote operations in each modes PC menu The serial communication module control is performed using its own protocol com mand Refer to AJ71QC24 R2 R4 Serial Communications Module USER S MANUAL for details of the serial communication module control Step 0 ON Remote STOP command GPP function Remote RUN command Serial communication module RUN STOP status STOP status Fig 10 5 Remote RUN STOP Time Chart using GPP function Serial Communication Module Etc 4 Precaution a Take note of the following because STOP has priority in Q2ASCPU 1 The Q2ASCPU enters the STOP state when remote STOP is performed from re mote RUN contact GPP function or serial communication module 2 When Q2ASCPU is set to the STOP state with remote STOP all external fac tors which performed a remote STOP remote RUN contact remote communica tion module etc must be set to RUN The RUN STOP state is described below e RUN State State which repeatedly executes the calcul
77. This is a function to read the program and device status of the CPU module through the GPP function peripheral device Application Monitoring conditions to monitor the PC operation status in precise timings can be set In the Monitor Condition the step number to be monitored continuity status of the step and the device status can be set as well as the monitoring can be executed in the END processing Also by setting the monitoring stop condition the precisely timed monitoring screen can be maintained When monitoring a Q2ASCPU of function version B using SW2IVD NX GPPQ the local device can also be monitored and tested by specifying local device support setting 8 2 1 Monitor Condition Setting Function Description 1 The monitoring conditions can be set Each operation is performed in the Monitor menu of the circuit mode The setup example of the monitor condition is shown below Monitor condition 4 Monitor Always 2 x Condition Device Current Value 1 x Device 1 Word Device 2 x Bit Device Y70 2 x Step 100 lt T gt Space Select Esc Close The following is the description of the screen 1 Monitor Always or 2 Condition can be set as the monitor condition a When 1 Monitor Always is selected The monitor data sampling timing is at every scan after the PC CPU END processing b When 2 Condition is selected 1 Device or 2 Step can be specifie
78. U MELSEC QnA 11 3 Driver Title The drive title is placed to identify the files in the internal RAM and memory card The drive header is created in the Title Statement Def in the GPP function online mode PC menu Titte Statement Def Interface RS232C _ _ QnACPU Target PC Network 0 Station FF Target Memory Internal RAM 1 Title Statement Execute lt Cancel lt N gt Ctri D Dir Esc Close POINT The drive title uses one file worth of memory in each memory when created 11 2 11 Comments That Can Be Stored in Q2ASCPU MELSEC QnA 11 4 File Title The file title is placed to identify the file contents The file title is set when setting the file at GPP function startup or when in the PC write in the PC menu of each mode A maximum of 32 characters can be stored initial 1 Drive Path C GPPQ USR 2 System SYSTEM Title System No 1 3 Machine TRANS Title Transfer Line LINE Title Line No 1 Program The file title is stored in each file Note that the file title is not stored into the file register file 11 5 Device Comments The device comment attaches comments to the device to improve readability by displaying the comment to the device The program can be created instead of device names by setting general as the CPU type when creating the program with the GPP function Device comment Error Error 2 Error detection x0 Xi oH H voo X2 3 Y11 X11 A memory card is nec
79. U MELSEC QnA 11 6 Statement Documentation The statement documenitation improve readability by being attached to the program step or P pointer Line space statement Abnormal check x0 X1 oH kH ervo X2 3 Y11 X11 Upper limit error NOTE Lower limit error Pointer statement Abnormal reset 1 The statement note setting is performed in the Pointer Statement Line Statement Document Line Statement or Documentation in the GPP function text editor mode edit menu CPU QZA C KIKAL G1 MAIN lt InsoF1t Mode 1 2 3 4 5 6 Level 12345678901234567890123456789012345678901234567890 1234567801234 2 The application for each comment is as follows a Document Line Statement in a circuit block grouped by functions the comments to describe the meaning or application of the function can be attached b Pointer Statement The comments to describe the meaning or application of each program can be attached to the pointer of the subroutine program or interrupt program header c Documentation Comments to describe the meaning or application for the function can be placed for each circuit block 11 7 Device Initialization Comment The device initialization comment enables the identification of the file by placing comments in the device initialization file The device initialization comments are stored in the device initialization file The setting is performed in the Device initial Value Range screen in
80. a peripheral device b The local devices in a file where a subroutine or interrupt program is stored can be used for executing subroutine interrupt programs With this function computation can be performed using the local devices stored in the file in which a subroutine or interrupt program is stored c When monitoring or testing a local device the GPP function software packages listed below are required e IBM PC AT or 100 compatibles SW21VD GPPQ type GPP function software package GX Developer 2 CC Link automatic refresh setting a By setting the CC Link automatic refresh data using the peripheral functions the set data allows for an automatic cyclic communication with other stations connected to the CC Link e Remote I O station ON OFF data communication e Remote device station ON OFF data word data communication e intelligent device station ON OFF data word data communication e Local station master station ON OFF data word data communication Setting the CC Link automatic refresh enables the use of FROM TO instructions which in turn allows for a direct communication with CC Link s other stations without communicating with its master station b Automatic refresh setting can be conducted for up to 8 pieces of CC Link modules per Q2ASCPU For the ninth and subsequent CC Link modules communication can be performed using the FROM TO instruction c The GPP function software packages listed below are requir
81. a program that is compatible with all programs and use it only to execute necessary programs Programs set by the parameter for stand by type can be changed to a scan type program by a sequence program and may be executed Changing the execution program by Q2ASCPU can be performed by the following instructions 1 PSCAN instruction Used to switch from a stand by type program to a scan execution program 2 PLOW instruction Used to switch from a stand by type program to a low speed program 3 PSTOP instruction Used to switch from a scan execution program low speed type program to a stand by type program b The following methods are available to switch execution programs 1 To select a program that is executed by one control program e Use the scan execution type program as a control program and execute by changing the stand by type program that meets the set criteria to a scan execution type program Additionally an unused scan execution type program can be changed to a stand by type program e ABC DEF GHI and JKL stand by program execution types can be changed by the management program shown by the following operations Scan execution type program control program ABC PSCAN is an instruction that When MO is on switch switches the specified ABC the ABC program program to a scan type from a stand by type ABC program program to a scan PSTOP is an instruction that execution type switches the specified
82. ails Scan gt Program END Proc Time Slow Prog Wait for Con 1 2 3 4 5 6 7 8 9 0 as PgUp Prev PgDn Next The following describes the screen a Total Scan Time The monitor time set in 5 PC RAS Setting in the parameter mode and total scan time for each program type are displayed 1 Mon Time The monitoring time for the scan program initialization Program and low speed program are displayed If the scan time exceeds this time the CPU displays the watchdog timer error 2 Scan Time Measurement The total time in each item stated in Scan Time Details for Scan Execution are displayed b Scan Time Details for Scan Execution The details of the scan time are displayed 1 Program The total execution time of the scan program is displayed 2 END Processing Time The END processing time is displayed 3 Low Speed Program The total execution time of the low speed program is displayed when setting the low speed program execution time 4 Constant Wait The constant scan stand by is displayed when setting the constant scan How ever when the low speed program execution time is set as well this value is 0 000 ms 8 16 8 Debug Function MELSEC QnA c Program Execution Status The program execution status of the program specified in 9 Auxiliary Setting of the parameter mode is displayed 1 Program The program name is displayed in the order set in the para
83. al Remote device External Station _ device Q2ASCPU Master station L CC Link ena automatic refresh setting END processing Remote input ON OFF data Remote output ON OFF data Updates set data Remote register RWr word data Remote register RWw word data 7 5 _7 Setting Automatic Refresh MELSEC QnA 1 Settings to perform automatic refresh Table 7 1 describes the data items to be set when executing automatic refresh function using Q2ASCPU Table 7 1 List of automatic refresh setting data Description Setting range Set station Number of modules Sets a number of CC Link modules lito8 ssi Module head vO Sets a head i O number for the CC Link module OOOH to OFEOH M master station he t of CC Link m i Il master station local station Module type ee i oduie installed mast j cal station L local station Batch refresh bit Sets the device in which the batch refresh data received from a device for receiv remote station is stored ing data Upon setting the head device number establishes a number of points corresponding to the number of specified stations total number of stations and refreshes the entire area Also refreshes the output module area Input data Use 16 points per unit for setting Batch refresh bit Sets the device in which the batch refresh data transmitted to a device for transmit remote station is s
84. allowance time Therefore if a constant scan is over during an instruction which takes long processing time the constant scan is complete when the instruction being executed is complete with processing The time which elapsed until the instruction was complete is the constant scan time difference Refer to QCPU Q mode QnACPU PROGRAMMING MANUAL Common Instructions for the command processing time 10 4 10 Other Functions MELSEC QnA 10 3 Latch Functions Each Q2ASCPU device is cleared when the PLC power is turned on it is reset with the RUN STOP key switch of the CPU module and when there is a momentary power failure for more than a permissible amount of time The values are set back to the default bit device OFF and word device 0 Latch is a function to maintain the device details when the PLC power is turned on it is reset with the RUN STOP key switch of the CPU module or when there is a momentary power failure for more than a permissible amount of time 1 Latch Usage The latch can be used to continue the control by maintaining the production quantity defect count and address even when there is a momentary power failure for more than a permissible amount of time 2 Device that can Set Latches a The following devices can use the latch function 1 Latch relay 2 Link relay 3 Annunciator 4 Edge relay 5 Timer 6 Retentive timer 7 Counter 8 Data register 9 Link register POINT Even if the device has
85. an time Example When 3 is stored in SD520 and 400 is stored in SD521 the scan time is 3 4 ms 6 WDT Watchdog Timer This is a timer to monitor the scan time and the default value is set at 200 ms WDT is set in the parameter mode PC RAS Setting in the range of 10 ms to 2000 ms Setting unit 10 ms When using a low speed execution type program set the WDT greater than the added value of the scan time and low speed execution type program execution time When scan time total of scan execution type program low speed execution type program execution time END processing time and low speed END processing time exceeds the WDT setting time it becomes a WDT ERROR and stops Q2ASCPU operations POINTS 1 2 The precision of each scan time stored in the special register is 0 1 ms The initial scan time measurement continues even if the watchdog timer reset instruction WDT is executed in the sequence program 2 There will be an error of 0 to 10 ms in WOT measurement Therefore when WDT t is set to 10 ms the scan time may not become a WDT ERROR when the initia scan time is in the range of 10 ms lt t lt 20 ms 12 6 12 Overview of The Q2ASCPU Calculation Processing MELSEC QnA 12 1 3 Low Speed Execution Type Program 1 What is a low speed execution type program a The low speed execution type program is a program to be executed only for the 2 3 constant scan allowance time or the set low s
86. and is displayed POINT When program trace is executed once the trace is not executed second time When re executing execute the PTRAR instructions and reset the program trace The program trace can only be executed at STEP RUN Set the program trace file in the RAM of the memory card The program trace can be executed from another station on the network or serial commu nication module However the trace cannot be executed from multiple areas at once The trace can only be executed from one area with Q2ASCPU This is performed by connecting the Q2ASCPU and GPP function peripheral device 8 51 8 Debug Function MELSEC QnA 8 9 Simulation Function Application This is a function to simulate the program in step by step execution or partial execution by separating the input module output module and special function module from the CPU module By using this function the program can be debugged without affecting each module Function Description 1 Set the input refresh and output refresh not to be performed for the input or output modules during program execution By doing so the input from an external source and output to the external source can be separated 2 Set ignore according to the simulation data file for the special function module buffer memory to separate this from the special function module operations Operation Procedure The simulation procedure is shown below lindicates the GPP function operati
87. as the initial execution type program low speed execution type program and stand by type program 12 2 12 Overview of The Q2ASCPU Calculation Processing MELSEC QnA 12 1 1 Initial Execution Type Program 1 What is an Initial Execution Type Program a The initial execution type program only executes the program once when the PLC power is turned on when the CPU module is reset or when the RUN STOP key switch of the CPU module is moved from STOP to RUN b The execution type is set to initialization in the GPP function parameter modes program setting c The initial execution type program can be used for programs that do not need to be executed from the next scan after executing once like the initialization of the special function module When controlling with When initial execution one program type program is used Program A type program alebaehaietabaheheieteneatal Separates into initial execution type Program B program and scan execution type Program to execute at every scan Scan execution type program 2 Multiple Initial Execution Type Program Execution If a multiple initial execution type program exists the parameter modes program is executed in order of setting 3 END Processing When all initial execution type program execution is complete END processing is per formed and the scan execution type program is performed from the next scan Power ON RESET RUN CPU module STOP RUN
88. ation device of special relay M E B 1st c vice R Special register batch refresh de e Sets the destination device of special register Ji ST C D W R vice 1 For the set station in Table 7 1 M indicates the master station while L and T denote the local and standby stations respectively 2 In Table 7 1 O indicates that setting is allowed and x indicates that setting is not required 3 R and ZR can be used as the automatic refresh device only when the file register within its parameter is set as Using a specified file R and ZR cannot be used if Using the same file as for the program is set 7 6 7 Setting Automatic Refresh MELSEC QnA Table 7 1 List of automatic refresh setting data Continued Automatic update e Sets the capacity for an automatic update buffer 128 to 4096 Number of total e Sets the last station number of remote stations connected to a 1 to 64 slave stations master station Delay timer e Sets a delay time for link scan na oo 0 is Standby station an o Not used specification e Sets whether the standby master function is being used Number of retries Sets the number of retries when an transient transmission error occurs Number of auto e Sets the number of automatic return stations in one link scanning matic return sta cycle tto 10 Bugi x g BH Operation specifi Sets either to continue or stop
89. ations from step 0 to END instruction in the sequence program e STOP State State where the sequence program calculations are stopped and the output Y is all OFF 10 12 10 Other Functions MELSEC QnA 10 6 2 Remote STEP RUN The remote STEP RUN performs step by step operation of the Q2ASCPU from the GPP function with the CPU module RUN STOP key switch at RUN position Step by step operation means that the program calculations are performed step by step from the specified step Refer to Section 8 7 for details of step by step operation 1 Remote STEP RUN Application The program can be executed by checking the program execution status or device details during system debugging 2 Remote STEP RUN Method The remote STEP RUN is performed in the following manner a Set the CPU module RUN STOP key switch to RUN b Perform remote STEP RUN operation from GPP function 10 13 10 Other Functions MELSEC QnA 10 6 3 Remote PAUSE Remote PAUSE performs the Q2ASCPU PAUSE function from an external source with the CPU module RUN STOP key switch at RUN position The PAUSE function stops the CPU module calculations while maintaining the ON OFF state of all output Y l 1 Remote PAUSE Application This can be used to maintain the output Y on even if the CPU module is changed to the STOP state in such areas as process control 2 Remote PAUSE Method There are two ways to use remote PAUSE a Remote PAUSE Contact Method The re
90. ber allocation unchanged To achieve the above make the following I O allocation a Mounting status and 1 O numbers A1S35B base unit i a a 5 5 5 Qo 5 e Q Q a a a5 6 a a o 25 eEtTaualtlalol ele oo gt n oO 4 SEl a 5 5 5 a 2 S O a a a A a gt 3 Q O 76 80 90 to to to Power supply module Output 32 points 77 e2 o w o w n D b I O numbers allocated when I O allocation is made using GPP function 4 I O allocation example 0 0 0 A18X41 10 1 A18X40 JA1535B 2 0 2 A18X41 Power Supply 3 0 3 A18X40 A1861P 4 0 4 Extension Cable 5 0 5 IA1SC12B 6 0 6 70 7 8 1 0 A18Y41 Extention 1 9 1 1 A15X41 A1S65B 10 1 2 A1SY40 Power Supply 1101 3 i A1Se1P 12 1 4 A18Y41 Extension Cable 13 1 5 14 1 6 1501 7 re FeDn Next VO allocation example using GPP function 5 Allocation of I O Numbers MELSEC QnA 2 I O numbers allocated after O allocation made using GPP function A1S35B base unit 0 1 2 3 4 5 6 7 Slot number ealenienie Kesienierie lero t I i I m l g n o 2 8 2 28 Ej gjej Z 3 oi 6 l6ea s 8 8 8 81 S 2 s8 8 8 8 2 2 2 3 oO OO gt 2IiZI SlIS ejl zZi ZiT Number of I O points in BIE s s s 2 2 8 8 actual mounting status 3 Q a a I OI ot gt 3 6la f Gi Gi oi 5l Oo O O Sirti si e egiegt a
91. cancel Each item is described below Space Select Esc Close a Password When the password is already stored in the CPU module the operation can be performed when the password is entered If other password is entered the operation cannot be performed b Operation 1 Change a Read Write and Display Protect b Write Protect 2 Cancel Password 3 None 4 Change Attribute A new password is registered in the CPU module Or when the password matches the password can be changed The specified file name in the memory is not displayed and read write cannot be performed Cannot write to the specified file in the memory Read only When the password matches the stored password is deleted from the CPU module The present password is stored only in the GPP function and not registered in the CPU module The read write display protect and write protect can be set for each file This operation can be performed even if the password is not registered c Memory Specifies the memory that stores the password The file that can register passwords are the parameter files and program files only The password stored in the CPU module cannot be read from the CPU module If the stored password is forgotten the CPU module files cannot be manipulated Store the registered password in a document for safekeeping Password registration uses the memory area of one file 4k bytes are u
92. ce executing the with setting program peing program being played displayed Error error code 4001 GX Developer support functions provided by the function version B 8 11 8 Debug Function MELSEC QnA 4 Precautions a Each peripheral device can monitor or test the local devices of only one program b Monitoring or testing cannot be performed simultaneously on local devices of multiple programs from a single peripheral device c Local devices of up to 16 programs can simultaneously be monitored or tested from multiple peripheral devices d Monitoring local devices for a standby program reads and stores the local device data thus the scanning time is extended as shown below e Q2ASCPU S1 560 1 3 the number of words in a local device us e Q2ASHCPU S1 220 0 8 the number of words in a local device ys 8 12 8 Debug Function MELSEC QnA 8 3 Writing During RUN This is a function to write in a program during CPU RUN A CAUTION Before making program modification during operation read the manual carefully and ensure safety completely Any operation mistake made while writing during RUN could cause machine damage or accidents Application This is used when changing the program without stopping the program Function Description 1 Writing can be performed for one file from multiple GPP function peripheral device Specify the pointer to the program to write from each GPP function
93. characters or less Base specification Set data for each base 16 characters or less age Power supply module Set model name of power supply module 16 characters orles Not specified Extension cable Set model name of extension cable 16 characters or less If no setting is specified the following rule applies e Type Point Follows modules actually loaded e Head XY Numbers used are obtained by adding the necessary points to modules already set An error SP MODULE LAY ERROR is detected in case of duplicate numbers Slot specification 5 5 5 Allocation of I O Numbers MELSEC QnA This poses no problem even if power supply module name was not specified under the base specification The name is used only by the current capacity check under the PC diagnostics mode and is not used by the CPU module When the I O allocation is set the CPU module performs the following process 1 For each slot of each base one of the following allocations can be used Point allocation Vacant slot p Output module Special function module Pott poe p49 ___ ag fsa 2 The I O number allocated by GPP function takes precedence regardless of actual loading status of the modules If the numbers specified are less than the actual I O module points the actual usable points are reduced For example if the actual input module is a 32 point unit and if the GPP function O allocation specifies 16 points the second 16 po
94. contact ST coil C contact C coil JUL xuLI vy Js vs ang BLL s b Word Device T current value ST current value C current value D SD FD W SW R Z ZR UL G JO w and JL sw 8 The devices that can be set in the detailed condition is as follows a Bit Device X FX Y FY M L F SM V B SB T contact ST contact C contact JLI x soy JC sEhss ana BLL s b Word Device T current value ST current value C current value D SD FD W SW R Z ZR UL G JL w and JL sw The following qualification can be set for the above devices e Bit device number of digits specification Word device bit number specification 8 8 8 Debug Function MELSEC QnA Precaution 1 2 3 4 5 6 8 9 When monitoring after setting the monitor condition the file displayed on the GPP function is monitored Match the file to be monitored by executing the New PC Read and file name on the GPPQ When monitoring the special function module buffer memory with a direct device specifi cation and the special function module is malfunctioning or does not exist FFFFH is monitored When monitoring the file register and the file register is not specified FFFFH is monitored Perform the monitoring by matching the device allocation of the CPU module and GPP function When the local device in each program file is monitored the monitoring operation changes depe
95. created in the document editor mode is displayed 8 18 8 Debug Function MELSEC QnA 8 4 3 Scan Time Measurement This is a function to display the set program interval processing time Function Description The set interval execution time in the program file can be measured The time for the subroutines and interrupt program can be measured as well If an interrupt program exists the time includes time taken for the interrupt program Measurement Range Main Program Subroutine Program Measurement Range Each operation is performed in the Monitor menu of the circuit mode 1 Select Measuring Scan Time 8 19 8 Debug Function MELSEC QnA 2 The scan time measurement range is specified The specified area is highlighted Start Stp Last Step Precaution 1 Set the values to be the starting step lt complete step 2 The time to skip to another program file cannot be measured 3 If the measurement time is fess than 0 100 ms 0 000 ms is displayed 8 20 8 Debug Function MELSEC QnA 8 5 Sampling Trace Function This is a function to sample the device continuously on the CPU module at specified timings POINT The memory card is required when executing the sampling trace function Application The changes in the details of the device which uses the program during debugging can be checked in the specified timing The debugging time can be minimized using this function Function Description
96. cts dated April 1987 or later or those with H ASH compatible in date field are Q2ASCPU compatible A7GT BUS A77GOT S5 A870GOT bus connection interface module eee ee eee ete etn e eee eee nes Products up until January 1996 Those products manufactured after February 1996 or those marked as hardware version C in the DATE column can be used AJ71LP21 G AJ71BR11 AJ71LR21 A1SJ71LP21 A1SJ71BR11 A1SJ71LR21 MELSECNET 10 network module AJ72LP25 AJ72BR15 MELSECNET 10 remote 1 O station module 3 13 3 System Configuration MELSEC QnA c When using special function modules for Q2ASCPU the following devices can be used according AD51H S3 AD51FD S3 to each models AJ71E71 2 AJ71C23 S3 AJ71C24 S6 S8 AD51 S3 AJ71024 83 AJ71P41 1 AJ71UC24 2 Q2AS H Q2AS H S1 1 Can access the ASHCPU equivalent device range only Cannot perform read write etc of file register data and program 2 Can access the AnACPU equivalent device range only Cannot perform read write etc of file register data and program 3 Acts as M device if L or S is specified Example L10 gt M10 d May attach Q2ASCPU to the main base module for A1S38HB type high speed access in order to speed up the read write process of link module buffer memory special function buffer memory and intelligent function buffer memory e The followings are methods to connect graphic operation terminal module
97. d 1 When 2 Step is specified The monitor data sampling timing is when the status right before the execution of the specified step becomes Specify Status The specification method for the execution status is indicated below 1 When changing from non executing state to executing state lt T gt Il When changing from executing state to non executing state lt l gt Ill Always only when executing lt ON gt IV Always only when not executing lt OFF gt Vv Always regardless of status lt Always gt 8 2 8 Debug Function MELSEC QnA 1 When Step 0 is specified set the condition to Always 2 When 1 Device is specified when 2 Step is not specified the monitor data sampling timing is at every scan after the PC CPU END processing If the data changes in the same scan it not be detected This includes low speed programs 2 When only 1 Device is specified 1 Word Device or 2 Bit Device can be specified a When 1 Word Device is selected The monitor data sampling timing is when the current value of the speci fied word device becomes the specified value in the END processing of the scan The specification method for the present value is shown below I When specified in decimal lt K Decimal gt it When specified in hexadecimal lt H Hexadecimal gt b When 2 Bit Device is specified The monitor data sampling timing is when the
98. de oameni 000 spits 24V0Cinpumodie spars 012 _ 22 pots 24V0C input nodule omaavan 008 Fe pins 1224D Siridsourco input mode sanpa sep 008 Fe points 24VDC Sikours input mode amuseren 008 _ Fst pois 6V0Cinpatmedie erteweenan ore Feed oI D ene ow iow Fl CO SSE eT iu ie oe See eco ow ome sce seen ow foo 8 points 5 12 24 48VDC transistor output sH module sink source type 16 Output 16 points all points independent _ setae een fee ee SEE enema oe eo A ied wre typo transistor output module mowa oso oos samy meee ow oom Sane AT oem ow foow 3 6 System Configuration MELSEC QnA Occupied Current QnA QnA A a points O consumption Description only share allocation 5VDC 24VDC 32 points 12 24VDC input module A1SH42 32 points 12 24VDC transistor output module 32 Output 32 points 0 50 0 008 0 1A sink type 32 points 24VDC input module VO module A1SH42 S1 32 points 24VDC transistor output module 32 Output 32 points 0 50 0 008 0 14 sink type 8 points 24VDC input module aisxeeyie e SX4BY18 8 points Relay contact output module 0 085 0 045 f 8 points 24VDC input module Al aisxeevss 8 points 12 24VDC transistor output module 16 Output 16 points woe Specified points Dynamic input 16 32 48 64 points tet module A1542X lo 12 24VDC dynamic input module e pecified 0 08 Specified points Dynamic output
99. diagnosis mode When an error is detected from the self diagnosis there are two types of modes that the CPU module operation can change to e PC calculation stop mode Stops the calculation at the point when the error is detected and turns off all output Y e PC calculation continue mode When an error is detected the program area where the error occurred are skipped and executes the rest of the program The following errors can set the calculation continues stops in the parameter mode PC RAS setting a Calculation error including the SFC program b Extension instruction error c Fuse short d I O module verification error e Specia function module error f File access error g Memory card operation error All parameter defaults are set at Stops 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 When an error is detected error occurrence is stored in the special relay SMO and SM1 and error details are stored in the special register SD0 Interlock the devices and PC using the special relay and special register 9 4 9 Maintenance Functions l MELSEC QnA 5 The error checking can be set to yes no in the following error checking in the parameter mode PC RAS setting a Battery check b Fuse short check c I O module verification All parameter defaults are set at Yes When error checking is set to N
100. double loop A1SJ71QLP21 32 Special 32 point MELSECNET 10 datalink module For control station master station and local station of the MELSECNET 10 data link module system For coaxial cable single bus CC Link system For the master station of the CC Link data link master locat A1SJ61QBT11 system 32 Special 32 point module Dedicatedly for shielded twisted pair cable A1SJ71QBR11 32 Special 32 point VO Dedicated mode 32 special 32 points For MELSECNET MINI S3 master station 64 stations maximum Controls remote 1 O with a total of 512 1 0 points and remote terminal for optical fiber cable twisted pair cable A18J71PT32 S3 Extension mode 48 special 48 points VO Dedicated mode 32 special 32 points MELSECNET M NI S3 master module For MELSECNET MINI S3 master station 64 stations maximum Controls remote I O with a total of 512 I O points and remote terminal for twisted pair cable only A1SJ71T32 S3 Extension made 48 special 48 points MELSEC O LINK master module For MELSECNET I O master station 16 stations maximum Controls I O LINK with a total of 128 I O points and remote I O module A1SJ51T64 64 Special 64 points Occupied points 1 0 System Configuration MELSEC QnA allocation QnA QnA A _ F Description consumption Rema
101. e Accessible in the Refer to Section 3 3 2 A1SJ71UC24 R4 S2 Accessible in the Refer to Section 3 3 2 Intelligent communication module ASID59 S2 D59J S2 Power Memory card consumption Usable memory card interface AS1D59J MIF JEIDA Ver 4 0 compliant 32 Special 32 points 0 05 assumes module connection of A1SD59J MIF Ethernet interface module ee eee ieee aman os ii a Sa eS Number of entries for calling control trigger device 2000 maximum word number of 40 Paging module AiSD21 S1 x Half character 32 Special 32 points 1120 maximum word number of 80 Half character Number of entries for receiver number 1000 VO simulation module for connection to the AGSIM X64Y64 x main base Allows desk debugging without A1S38HB x Extension connecting 1 0 module to the base module connector A1532B Spp May take 2 I O modules attached to one Accessible in the Refer to Section 3 3 2 ID interface module Main base cannot be set while using the A1S38H Simulation module 64 Input 64 points 64 Output 64 points High speed main base module May take 8 I O modules Main base module A1S33B May take 3 I O modules on each side Al AisssB May take 5 I O modules A1S38B May take 8 I O modules System Configuration Aiss2B 52B A1S55B Extensi
102. e 2 wire type Connector 7 j terminal block 1 X41 1 S2 A1SX42 S 1 S2 A1SH42 S1 conversion aso For sink type input module 3 wire type AX42 81 AH42 ACOSTB E AC10TB E AC20TB E 0 5 m 1 64 ft PSSM ora treorna for source module ASTBX36 E im 4 m 8 28 ft long for source module 28 ft e one e a long for source module A6TBY36 E 2m ameet ort sores mene oo 56 ft long for source module A6TBX54 E Meso 3m imesh ora ereen o 84 ft long for source module A6TBY54 E ACSOTB E 5m 5m 16 4 ft long for source module 4 ft long for source module A6TBX70 E Relay terminal A1SY41 A1SY42 A1SH42 AY42 A6TE2 16SRN x o For sink type output module AY42 S1 S3 S4 AH42 ble for re ae 0 6m osmanien 97 ft long Cable for relay acre 1m 3 28 iong terminal AGTE2 16SR N module CO 3m 3m 9 84ft ong 84 ft long AmE 0 5m 0 5m 1 64 ft long for sink module 64 ft long for sink ole AC10TB 1 m 3 28 ft Sr a8 ene br snk megue long for sink module A6TBXY36 AC20TB 2 m 6 56 ft long for sink module m emesen org ereire long for sink modu AGTBXY54 Cable for AC30TB 3m Eee 84 ft long for sink module AGTBX70 connector AC50TB 5m SRR ok re 4 ft long for sink module terminal block conversion AC80TB 8m emeza t ora eee ene 24 ft long for sink module module AC100TB 10m ereen oa marina 8 ft long for sink module connection a 5m onetime 4 ft long ACIOOTE O 10 m 32
103. e SH 080166 printing out procedure and debugging procedure 13JU14 Included with product Type SW2IV GPPQ GPP Software package OPERATING MANUAL Offline Describes SW2 VD GPP s offline functions such as program creation printout method and IB 66774 file maintenance 13921 Included with product Type SW2IVD GPPQ GPP Software package OPERATING MANUAL Online Describes SW2IVD GPPQ s online functions such as monitoring and debugging methods Included with product B 66775 135922 Type SW2IVD GPPQ GPP Software package OPERATING MANUAL SFC Describes MELSAP 3 system components performance specifications functions system start up procedure SFC program editing method monitoring method printout method and error messages Included with product Type SW2IVD GPPQ GPP Software package OPERATING MANUAL Q6TEL Describes Q6TEL system configuration operating methods etc Included with product IB 66776 13J923 IB 66777 13J924 1 Using This Manual MELSEC QnA 1 Using This Manual 1 1 Using This Manual This manual is for users of MELSEC QnA series PCs It describes the specifications and functions of Q2ASCPU Q2ASCPU S1 Q2ASHCPU and Q2ASHCPU Si hereinafter referred to as Q2ASCPU specifications of other modules and maintenance necessary to operate the system smoothly The manual is comprised of the following major chapters 1 Chapters 2 to 3 Describes Q2ASCPU overview and system configurati
104. e Condition Setting 1 Trace Counts 1 Total Counts Times 2 Post Trigger Counts Times 2 Trace Point 1 Every END 2 Every Interval Jms 3 Specify Detail Condition 3 Trigger Point 1 At Instruction Execution 2 At Reguest of PDT 3 Specify Detail Condition 4 Added Trace Information 1 Time 2 Stop 3 Program Name Cancel lt N gt Esc Close After executing the trigger point the operation is complete when the sampling is performed for a specified number of times number of times after trigger Trace start Trigger point Number of traces after trigger Number of total times Trace complete 8 26 8 Debug Function MELSEC QnA The following describes the items on the screen The trace condition setting can set 1 Trace Counts 2 Trace Point 3 Trigger Point and 4 Added Trace Information 1 Trace Counts 2 The trace counts sets the number of times to execute the sampling trace from trace execution to trace complete The number of times after trigger sets the number of times to executes the sam pling trace from trigger execution to trace complete The setting range for each number of times is shown below Number of times after trigger lt Total number of times lt 8192 Trace Point Setting This sets the timing to sample trace data Select one from the following a Every END Performed for END instruction for every scan
105. e area with Q2ASCPU The trace condition registered in the CPU module is latched The condition data is stored even if the power is off To clear data perform the latch clear operation with the Q2ASCPU RUN STOP key switch The status latch is performed by connecting the Q2ASCPU and GPP function peripheral device When the monitor target is set for Status latch the timer counter set values are not displayed 0 appears in the timer counter set value field When the monitor target is set for Device memory the timer counter set values are not displayed 0 appears in the timer counter set value field 8 36 8 Debug Function _ MELSEC QnA 8 7 Step Drive This is a function to execute the program step by step execute one part or execute by skipping one area Application This is used to debug or finding out the cause of an error Function Description This can only be executed when the CPU module is at STEP RUN There are three functions to the step drive Refer to Sections 8 7 1 to 8 7 3 for descriptions of each function e Step Execution e Partial Execution e Skip Execution 8 37 8 Debug Function MELSEC QnA 8 7 1 Step Execution The step execution executes the operation one step at a time from the specified step of he sequence program operation The sequence program can be executed by checking the sequence program execution status or details of each device while debugging l There are two types of step execu
106. e number and sampling trace file name c Trace Condition Select one from the following 1 Overwrite Conditions Onto CPU s Overwrites trace condition to the existing trace file 2 Use Condition in CPU Executes the program with the conditions in the trace file specified in 2 Sampling Trace Data 8 29 8 Debug Function MELSEC QnA 4 Read the trace results from the CPU module and display the data 1 Reads the trace results from the CPU module by A Read from PC Condition in the Sampling Trace screen 2 With 4 Trace Results Display in the Sampling Trace screen the read trace results are displayed POINT When sampling trace is executed once the trace is not executed second time When re executing execute the STRAR instruction and reset the sampling trace Precaution 1 Set the sampling trace file in the RAM of the memory card 2 The sampling trace can be executed from another station on the network or serial communication module However the trace cannot be executed from multiple areas at once The trace can only be executed from one area with Q2ASCPU 3 The trace condition registered in the CPU module is latched The condition data is stored even if the PLC power is off To clear data perform the latch clear operation with the Q2ASCPU RUN STOP key switch 4 The sampling trace is performed by connecting the Q2ASCPU and GPP function peripheral device 8 30 8 Debug Function MELSEC
107. ecuted are added automatically 2 The trace device and trace condition created is written into the memory card a Set the trace file and storage destination The file name and drive number are set in 1 Execute Trace amp Display Status in the Program Trace screen aco amp Display Status 2 Suspension 3 Status Display 4 Trigger Execution 2 Program Trace Data File to Save 1 Select from List 2 File Shown Right Drive 1 Fila Name SAMPLE1 3 Trace Condition 4 Overwrite Conditions onto CPU s 2 Use Condition in CPU b Write the trace file into the memory card The trace file is written in the memory card from 9 Write to PC Condition in the Program Trace screen The file name is written in the memory card so multiple trace files can be stored 8 49 8 Debug Function MELSEC QnA 3 Program trace is executed Program trace is executed at 1 Execute Trace amp Display Status in the Program Trace screen The setting example of 1 Execute Trace amp Display is shown below Execute Trace amp Display Status 1 Operation 1 x Register Start 2 Suspension 3 Status Display 4 Trigger Execution 2 Program Trace Data File to Save 1 Select from List 2 x File Shown Right Drive 1 File Name SAMPLE1 3 Trace Condition 1 x Overwrite Conditions onto CPU s 2 Use Condition in CPU Execute lt Y gt
108. ed 9 Maintenance Functions MELSEC QnA 9 2 Watchdog Timer 1 Watchdog Timer WDT The watchdog timer is an internal sequence timer to detect PC hardware and or sequence program error The default value is set at 200 ms The watchdog timer set time can be changed in WDT Setting in the GPP function parameter mode PC RAS setting The setting range is 10 to 2000 ms 10ms units 2 Watchdog Timer Reset The Q2ASCPU resets the watchdog timer during END processing execution When the Q2ASCPU is operating correctly and the END instruction is executed within the set value of the watchdog timer the watchdog timer does not time out The watchdog timer times out when there is a Q2ASCPU hardware fault or the sequence program scan time is too long to execute the END instruction within the set value of the watchdog timer The scan time is the time when the PC starts executing the sequence program by performing the calculation from step 0 and then completes the program and executes step 0 again The scan time is not the same at every scan and differs depending on whether the commands used are executed or not executed Refer to Section 12 1 Sequence program Internal processing time Low speed Scan execution Scan execution program C o Program A program B END Scan time Next scan time ol WDT reset Watchdog timer measured time PC internal processing Fig 9 1 Watchdog Timer Reset 9 2 9 Maintenance Functions MELSEC QnA
109. ed g The added powerful support software package to assist program creation 1 Data conversion package 2 4 lt Converts comments and device data created by commercially available spreadsheet software and general purpose text editors into GPPQ function files The GPP function files can also be converted into text or spreadsheet data Macro library package Provides a macro library package for basic programs to access special function modules as well as standard fault detection and alarm processing programs Ladder sequence generating amp combining package Combines multiple programs into one Enabled automatic assignment of program devices without duplication CAD interface package This package can treat ladder circuits instruction lists comment data and SFC diagrams as data in order to communicate with CAD 2 Overview MELSEC QnA 2 2 Q2ASCPU Additional Functions New instructions for the functions and special function modules are added to Q2ASCPU Additional functions e Enhanced local device 0005 See Section 2 2 1 1 Monitoring and testing of local devices See Section 8 2 2 Use of the local device stored with the subroutine interrupt program See Appendix 7 e CC Link automatic refresh setting See Sections 2 2 1 2 and 7 2 e MELSECNET 0 relay communication from Ethernet module Network relay 0 0 cee ee ee eee eee See Section 2 2 1
110. ed 6 When boot specification is set the specified file is sent from the memory card to the internal RAM When STOP RUN 1 Same as 4 above 2 Same as 5 above if any parameter value is changed during STOP operation is performed with the new parameter value 3 Same as 6 above l 4 When the device initialization value file is set the device initialization values set in the file is set to the device Note 1 If any parameter value change or program modification is made during STOP the RUN LED flickers when the key switch is moved from STOP to RUN but the CPU module remains in a STOP status Refer to Section 15 3 Moving the key switch from STOP to RUN again places the CPU module in a RUN status at which point the STOP gt RUN time operation is performed 12 1 6 I O Module Refresh Processing The I O module refresh processing is performed Refer to the QnACPU PROGRAMMING MANUAL Fundamentals 12 18 12 Overview of The Q2ASCPU Calculation Processing MELSEC QnA 12 1 7 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 1 Performs fuse shutoff I O module verification and battery low self diagnosis Refer to Section 9 3 2 When there is a data read write request from the peripheral device intelligent special function module computer link module serial communication module E
111. ed The monitor stop timing is when the execution state of the step specified in the monitor condition becomes the specified state The specification method for the execution status is indicated below I When changing from non executing state to executing state lt T gt 1 When changing from executing state to non executing state lt 4 gt IIf Always only when executing gt lt ON gt V Always only when not executing lt OFF gt V Always regardiess of status lt Always gt When 2 Calculation State is not specified the monitor stop timing is after the PC CPU END processing 8 5 8 Debug Function MELSEC QnA 2 When only 1 Device is specified 1 Word Device or 2 Bit Device can be specified a When 1 Word Device is selected The monitor stop timing is when the current value of the specified word de vice becomes the specified value The specification method for the present value is shown below When specified in decimal word lt K Decimal gt I When specified in hexadecimal word lt H Hexadecimal gt I When specified in decimal double word lt K Decimal Space L gt IV When specified in hexadecimal double word lt H Hexadecimal Space L gt V When actual value is specified lt E Actual Value gt b When 2 Bit Device is specified The monitor stop timing is when the execution status of the specified bit de vice become
112. ed n the system example above since the total number of stations is an odd number 3 Device numbers of connected input modules are as follows Station numbers 1 to 4 AX41C X400 to X41F Station numbers 5 to 6 AJ35TB 16D X420 to X42F Station numbers 7 to 8 AX40Y50C X430 to X43F X440 to X45F are also refreshed at the same time and will always be OFF X440 to X45F shouid not be used for sequence programs 7 3 7 Setting Automatic Refresh MELSEC QnA b Send data storage device Address b15 b8 b7 bO YaoB Y4o7 __to _ Y400 10 LY40F to 4 iF to vata yaz to 410 12 Y428 va27 to __ Y420 13 Ya3E to 438 v437 _to__ Y430 14 oo ES e pa 15 __ Station number 11 Y4SF toy _ Y458 457 to 450 Output area Used by system 1 For send data storage device set the device number Y400 of bO in station number 1 2 Receive data storage device can occupy Y400 to Y45F One additional station is used in the system example above since the total number of stations is an odd number 3 Device numbers of connected output modules are as follows Station numbers 9 to 10 AX40Y50C gt Y440 to Y44F Station number 11 AJ35TJ 8R gt Y450 to X457 Y400 to Y43F and Y458 to Y45F are also refreshed at the same time No output is performed however POINTS 1 If a same device is used as send data storage device and as receive data storage de vice be sure that device numbers do not over
113. ed for the CC Link automatic refresh setting e IBM PC AT or 100 compatibles SW2IVD GPPQ type GPP function software package GX Developer Also the function version of modules for CC Link mater station and local stations need to be B or later 2 Overview MELSEC QnA 3 Network relay from Ethernet module a Data communication is allowed with Q2ASCPU of other stations via multiple Ethernet or MELSECNET 10 in the network system where Ethernet and MELSECNET 10 coexist b Network relay from an Ethernet module requires that with function version of B or later 4 A1SJ71QC24N support command enabled a The following commands for A1SJ71QC24N are now supported e Multiple block batch read command 0406 e Multiple block batch write command 1406 b Multiple block batch read batch write can be performed for A1SJ71QC24N R2 R4 With A1SJ71QC24 R2 R4 multiple block batch read batch write cannot be performed Refer to the manual below for multiple block batch read batch write commands e Additional AJ71QC24N R2 R4 support instruction manual 3 _ System Configuration MELSEC QnA 3 System Configuration This section describes the system configuration system precaution and devices as related to the Q2ASCPU 3 1 System Configuration Describes the system equipment and peripheral device configuration related to the Q2ASCPU independent system 3 1 1 Independent System Machine Configuration
114. eeaes 10 13 10 6 3 Remote PAUSE oie ce te eee net ene enenenaes 10 14 10 6 4 Remote RESET ccc cece cece eee orere errare CORRETE 10 16 10 6 5 Remote Latch Clear 2 cece cet eee teen ete tne ee te rares 10 17 10 6 6 Relationship of the Remote Operation and RUN STOP Key Switch of CPU module Le ee ne ee eee re een ne eee eee tee ete eee e ees Tarara 10 18 Terminal Operation 2 0 cece eet ee eee ene erent eee eae 10 19 10 7 1 Message Display Operation 0 0 cece eee ee ee eee teens 10 19 10 7 2 Key Entry Operation 0 ccc cee ee tenet een n eee ee nee 10 19 Reading the Module Access Time Interval 0 cee cece eee cee tenes 10 20 Name naaoeounounonanarransnrreresersreres C 11 1 11 4 File Tithe 2 0 ccc ec een e nee e ene vee eeeennueeeenesenteenaes 11 3 11 5 Device Comments ersonsrsseruannuennennneenreenerenrneraanaranrenronernano ran 11 3 11 6 Statement Documentation 00 00 c ccc rnaen cee nee eee ceva ne eevaeeneneeee 11 5 11 7 Device Initialization Comment 0 0 0 ccc cent eect ee even nee eeennes 11 5 12 1 Program Execution Type Overview s ssssesesresrerseserrrrrenronerrsrererrerre 12 1 12 1 1 Initial Execution Type Program cc cece eee tnt e nee eeeeees 12 3 12 1 2 Scan Execution Type Program ce cee eee eect eet e eee nenes 12 5 12 1 3 Low Speed Execution Type Program 2 cee e eee e nee nenes 12 7 12 1 4 Stand by Type Program
115. eed execution type program is continued within the allowance time Synchronous system SM330 ON If there is an allowance time the operation of the low speed execution type program is not continued and operation is started from the next scan Execution Condition of of Low Speed Low Speed Execution Type Program Execution Type When constant scan When low speed program Program is set execution time is set Low speed execution type jLow speed execution type program is re executed 1 program is re executed 2 Operation of scan execution type program is started 4 Constant scan waiting time occurs 3 When the constant scan time is set the low speed execution type program is executed for the constant scan allowance time Therefore the low speed execution type program execution time differs for every scan When the constant scan allowance time is less than 20 ms the low speed execution type program cannot be executed When using the low speed execution type program set the constant scan time so that the allowance time will be more than 2 ms 2 When the low speed program execution time is set the low speed execution type program is executed for the set low speed program execution time For this reason the scan time differs for every scan 12 7 12 Overview of The Q2ASCPU Calculation Processing MELSEC QnA 3 If the constant scan time has been set the allowance time after completion of low speed END processing is t
116. emote PLC from an external device immediate troubleshooting of PLC side problems may not be done due to data communication error Configure up an interlock circuit in the sequence program and also determine between the external device and PLC CPU the system remedies etc to be taken at occurrence of data communication error When configuring a system do not leave any slots vacant on the base Should there be any vacant slots always use a blank cover A1SG60 or dummy module A1SG62 When the extension base A1 52B A1S55B or A1S58B is used attach the dustproof cover supplied with the product to the module installed in slot 0 If the cover is not attached the module s internal parts may be dispersed when a short circuit test is performed or overcurrent overvoltage is accidentally applied to the external I O area 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 doing so could result in noise that would cause erroneous operation 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 ON Take measures such as replacing the module with one having sufficient rated current INSTALLATION PRECAUTIONS Use t
117. er output mode setting during STOP RUN c The processing time of switching from STOP gt 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 STOP Status Operation Processing a STOP status is when the sequence program operations are stopped with the RUN STOP key switch or remote STOP refer to Section 10 6 1 is performed b When entering the STOP state save the output state and turn off all output The data memory other than output Y are maintained PAUSE Status Operation Processing a The PAUSE state is when the sequence program operations are paused while main taining the output and data memory status Refer to Section 10 6 3 STEP RUN Operation Processing a STEP RUN is a mode where the sequence program operation processing can be stopped and continued per instruction using the GPP function Refer to Section 8 7 b The operation processing is interrupted while maintaining the output and data mem ory so the execution status can be checked 12 20 12 Overview of The Q2ASCPU Calculation Processin MELSEC QnA 5 Q2ASCPU Operation Processing with RUN STOP Key Switch Operation Q2ASCPU operation Sequence processing program RUN STOP operation key switch operation processing Executes up to the END instruction and stops RUN gt STOP STOP RUN Starts POINTS Exter
118. ered and started Starts the device data collection 2 Suspension The status latch status is cleared 3 Display Status The status latch status is displayed on one screen as messages 4 Trigger Execution The trigger is executed b Status Latch Select one from the following 1 Select from List Status latch is selected from the status latch files in the memory card 2 File Shown Right Drive The drive number and status latch file name is set c Status Latch Condition Select one from the following 1 Overwrite Conditions onto CPU s The status latch condition is overwritten to the existing status latch file 2 Use Condition in CPU The execution is performed with the conditions in the status latch file specified in 2 Status Latch 8 35 8 Debug Function MELSEC QnA Precaution 4 The status latch result is read from the CPU module and displayed a The status latch result is read from the CPU module with 8 Read from PC Results in the Status Latch screen b The status latch result is displayed by setting 1 Monitor Target to 3 Status Latch in the Monitor Target Setting in the circuit mode Option menu Set the status latch file in the memory card RAM The status latch can be executed from another station on the network or serial communi cation module However the status latch cannot be executed from multiple areas at once The status latch can only be executed from on
119. erface AC30R4 PUS cable AC20R4 A8PU cable programming mode RS 422 lt gt RS 232C converter Q2ASCPU RS 422 cable RS 232C cable IBM PC AT or 100 compatible Software package to be used GX Developer SWO IVD GPPQ Mounted on base A1SJ71QC24 serial communication module to option board siot For information on setting the IC memory card reader writer refer to the GPP Peripheral Device Operating Manual 2 When connecting to the RS 422 interface use the RS 422 lt gt RS 232C converter IBM PC AT or 100 compatible RS 232C cable Et software package GX Developer SWOIVD GPPQ RS 422 lt gt RS 232C converter 1 For details of system configurations for individual peripheral devices refer to respective operating manuais 2 The ACPU peripheral device can be connected to the Q2ASCPU only when accessing the ACPU of other stations through MELSECNET 10 network and MELSECNET data link The Q2ASCPU cannot be accessed however In this case SW1 of the system setup switch 2 on the CPU main module should be set to ON 3 2 3 System Configuration MELSEC QnA 3 2 System Configuration Overview a Q2ASCPU and Q2ASHCPU system Main base module A1S38B 2 3 4 7 Slot No 0 1 5 6 C 00 10 20 30 40 50 60 70 P to to to to to to to to U OF 1F 2F 3F 4F SF GF 7F Extension base module A1S58B S1 10 11 1
120. essary to store the device comment file to the CPU module when the device comments are created 1 The device comment setting is performed in the GPP function text editor mode A maximum of 32 characters can be set for comments and up to 10 characters for the label device name Document Device CPU Q2A C KIKAL G1 MAIN lt ins gt F11 Mode Device Comment Device Label 12345678901234567890123456789012 1234567890 I 11 3 e The devices that can attach comments and labels are as follows X Y M L F SM B SB V T current value C current value Device name 11 Comments That Can Be Stored in Q2ASCPU MELSEC QnA ST current value D SD W SW R ZR P uO a sl x JE seg vss vw usw BLO s and BLL TR If the P comments are used as the subroutine program or interrupt program pointers the comments are not displayed To display the comments display them as pointer statements Refer to Section 11 6 2 When using comments for the application instructions LEDC PRC etc and the device comment file is written the device comment file to be valid is set in the parameter The setting is performed in the GPP function parameter mode 2 Comment File Used by Instruction in PC File Setting screen PC File Setting 1 File Register Not Used 2 Program Name is Used Drive 3 Use the Following Files Drive File Capacity 2 Comment File Used by Instruction 1
121. execute writing during RUN A setting example is given below Write amp Conversion Setting 4 Write During Run Setting Write into PC during Run state Write into PC in Stop state 7 Write Method at Write During Run Normal 1 2 3 Don t Write into PC 1 2 Relatively using Pointer a Select 1 Write into PC during Run state for 4 Write During Run Setting b Select 1 Normal or 2 Relatively using Pointer for 7 Write Method at Write During Run Take a Note of the following when writing during RUN 1 The memory that can be written during RUN is only internal memory When writing during RUN is performed during booting please write to the memory card when stopped When booting is started again without performing a write to the memory card the program without the write during RUN is executed A maximum of 512 steps can be written at once during RUN When a low speed program is being executed the RUN write is started once the low speed program is complete Also the low speed execution is stopped temporarily during a RUN write 1 2 3 4 Scan program Scan program Scan program Scan program steps 0 to END steps 0 to END steps 0 to END steps 0 to END Low speed program Low speed program Low speed program Low speed program steps 0 to 200 steps 201 to 320 steps 321 to END steps 0 to 120 1 scan 1 scan 1 scan 1 scan 1 RUN write command of the sca
122. f Flashing Continue Continue CHK Instruction check When an instruction is executed Continue 1 Can be changed to continues in the GPP function parameter setting Off 9 6 9 Maintenance Functions MELSEC QnA 9 3 1 Interrupt due to Error Occurrence The Q2ASCPU can execute the interrupt pointer interrupt program set when an error occurs An error that can set the calculations to continues stops in the GPP funciton parameter mode PC RAS setting executes the calculation for the error set as continues The error set to stops executes the stop error interrupt program 132 l The errors are shown below Interrupt pointer Corresponding error message When the error occurs and the system can continue the drive mode Or it is an error where continues stops can be se lected and continues is set 134 UNIT VERIFY ERR FUSE BREAK OFF SP UNIT ERROR 135 OPERATION ERROR SFCP OPE ERROR SFCP EXE ERROR 136 ICM OPE ERROR 0 Faeore ennon 139 CHK instruction S Annunciator detect The interrupt pointers 132 to 139 is at an execution disable mode when the PLC CPU s power is on or CPU module is reset When using 132 to 139 use the IMASK instruction to enable execution 1 Refer to the QnACPU Programming Manual Fundamentals for details of the interrupt pointers 2 Refer to the QCPU Q Mode QnACPU Programming Manual Common Instructions for the IMASK instruction 9 3 2 LED Dis
123. g trace is executed in 1 Execute Trace amp Display Status in the Sampling Trace screen The following shows a setting example of 1 Execute Trace amp Display Status Execute Trace Display Status 1 Operation 1 Register Start 2 Suspersion 3 Display Status 4 Trigger Execution 2 Sampling Trace Data File to Save 1 Select From List 2 x File Shown Right Drive 1 Fite Name SAMPLE4 3 Trace Condition 1 Overwrite Conditions onto CPU s 2 Use Condition in CPU Execute lt Y gt Cancel lt N gt The following describes the screen 1 Operation 2 Sampling Trace Data and 3 Trace Condition can be set in the execute trace amp displays status display a Operation Select one from the foliowing 1 Register Start The trace is registered and started Starts the count for trace count 2 Suspension The trace is interrupted The trace count and number of times after trigger are cleared When restarting trace select Register Start again 3 Display Status The trace status is displays on the same screen as messages 4 Trigger Execution Starts to count the number of times after trigger The trace is complete when the traces are performed to the number of times after trigger b Sampling Trace Data Select one from the following 1 Selected from List Selected from the sampling trace files in the memory card 2 File Shown Right Drive Sets the driv
124. hange the number of points for each device For example internal relay M has 8k points by default but it can be expanded to 32k points c One memory card with a maximum 2 Mbytes memory can be inserted The memory card is used to store program codes comments statements and file registers Q2ASCPU can be executed without a memory card since the program can be stored in the CPU main module 2 Enabled high speed processing a Speeded up operation processing of basic and application instruction A2USCPU S1 Q2ASHCPU S1 Basic instructions 0 2 us gt 0 075 us Application instructions 1 2 us gt 0 225 us b The access time of extension data memory file register R is now equivalent to the access time of the Q2ASCPU built in memory device data register D and link register W c The buffer memory read write time of the QnA dedicated special function module serial communication module is approximately six times faster than AnUCPU The existing ACPU special function module has an equivalent processing speed AnNUCPU d The added high speed access base module A1S38HB increases access processing speed by special function modules such as network modules and serial communication modules that handle vast amounts of data By simply loading the special function module rate the high speed access base module the Q2ASCPU can access special function modules using higher processing speed 3 Enabled program execution type selection for opti
125. he circuit mode 8 Option menu The setting example is shown below Write amp Convert Setting 1 Align Left after Conversion 2 Check Double Coil at Writing No No Continue Pause Write into PC during Run State Write into PC in Stop State 3 Device Cmt inp at writing Ins Don t Write into PC 4 Write During Run Setting 5 Monitor in Write Mode Yes No 1 Ladder Block Displayed Screen Normal Relatively using Pointer Yes No 6 Write Target at Setting 7 Write Method at Write During Run 8 Disp MC on left side Power Rail 1 2 1 2 1 2 1 2 3 1 2 1 2 i 2 1 2 Space Select Ese Close a Set 1 Write into PC During Run State in 4 Set Write Convert b Select t Normal or 2 Relatively Using Pointer in Write Method at Write During Run When multiple users are writing at the same time during RUN to one file set a pointer to write during RUN beforehand and select 2 Relatively Using Pointer The following is an example of GPP function peripheral device A writing during RUN from PO and GPP function peripheral device B writing during RUN from P1 The program area surrounded with L is the area to be written during RUN Area after P1 in the processing program is written during RUN Area after PO in the processing program is written during RUN XO X2 Serial Comm
126. he PLC in an environment that meets the general specifications contained in this manual 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 Install so that the pegs on the bottom of the module fit securely into the base unit peg holes and use the specified torque to tighten the module s fixing screws Not installing the module correctly could result in erroneous operation damage or pieces of the product falling When installing more cables be sure that the base unit and the module connectors are installed correctly After installation check them for looseness Poor connections could cause an input or output failure e Correctly connect the memory card installation connector to the memory card After installation be sure that the connection is not loose A poor connection could cause an operation failure e Always switch off all phases of the external power supply before mounting or dismounting the module Not doing so could cause damage to the product 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 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 da
127. he constant scan Also set the constant scan set time less than the WDT Watch Dog Timer set time If the value is larger than the WDT set time the Q2ASCPU detects a WDT error and stops the program execution Set the constant scan set time in the following range WDT Set Time gt Constant Scan Set Time gt Sequence Program Maximum Scan Time Constant scan setting 0 10 20 30 40 10 20 30 40 10 20 30 40 10 20 30 40 Constant scan END 0 END 0 END 0 END 0 0 Sequence 4 a N 4 program t 35ms 5ms 38ms 34ms 6ms oms_ om h SS 40ms 53ms 4oms_2 40ms Sy Scan where the constant scan is not normal Fig 10 2 Operation when the Scan Time is More than the Constant Scan c The sequence program processing stops during the wait time from the last END processing execution until the next scan starts However if an interrupt error occurs after the END processing is executed or a low speed program exists the interrupt program or low speed program is executed 10 3 10 Other Functions MELSEC QnA d Constant Scan Time Difference When a low speed program exists when a constant scan is being executed the constant scan time may shift in time up to the following value Error Maximum processing time for one instruction in the low speed program Low speed END processing time Time to execute the low speed program END processing The low speed program executes the program by dividing the constant scan time
128. he sequence scan time measurement continues even if the watchdog timer reset instruction WDT is executed in the sequence program 2 The low speed execution monitoring time measurement is performed in the low speed END processing So if the low speed execution monitoring time t is set to 100 ms and the low speed scan time measured with the low speed END processing exceeds 100 ms yields PRG TIME OVER 12 11 12 Overview of The Q2ASCPU Calculation Processing MELSEC QnA 12 1 4 Stand by Type Program 1 What is a stand by type program a The stand by type program is a program that is executed only when there is an execution request b The stand by type program can be used in the following manner 1 Program Library The subroutine program and interrupt program can be set to stand by type pro gram and be separately maintained from the main program 2 Program Process Change The main routine program is registered in the stand by type program the neces sary program is changed to the scan execution type program perform controls and change the stand by type program to the program not used in the program 2 For the Program Library a Program Library 1 This is used when the subroutine programs and interrupt programs are sepa rately maintained from the main routine Multiple interrupt programs with subroutine programs can be created in the same stand by type program Scan execution type program Scan execution type program l
129. he special function module SWOIVD A1su71 Nx GPPQ SW2IVD A1Su71QE71 A1SJ71 Module package name swiivp Nx GPPa B2 B8 AtSP75P S3 pg ag jATS61QBT11 on NX GPPQ version Condition Version __ No restrictions No restrictions ___ No restrictions BC and later ey jeer oe f e Te PT P test Subroutine interrupt program local device switch eee te Te Pe refresh function A1SJ61Q8T11 control instruction MELSECNET 10 relay communication from Ethernet esp o instruction a C ER DS E E instruction mm Oo doo o oi d edo doe o dl oS i instruction command support 1 A and x marks in Table 2 1 denote the following explanations Required for using functions and instructions Not necessary for functions and instructions A Required when accessing the Q2ASCPU of other stations via Ethernet from a peripheral device x Unusable function on peripheral device 2 GX Developer support functions provided by the function version B 2 Overview MELSEC QnA 2 2 1 Summary of Additional Functions This section describes an overview of the additional functions 1 Enhanced local device support a The device set as a local device by parameter device setting function can now be monitored and tested from a peripheral device With this function debugging may be performed while verifying the contents of a local device used by the program being monitored by
130. he waiting time and when the preset constant scan time is reached the scan execution type program is executed Constani scan waiting time constant scan set time scan time low speed scan time Hence the scan time per scan is constant However if the constant scan allowance time is 2 ms or less the low speed execution type program cannot be executed When using the low speed execu tion type program set the constant scan time so that the allowance time is more than 2 ms 4 When the low speed program execution time has been set the allowance time after completion of low speed END processing is ignored and the operation of the scan execution type program is started Allowance time of low speed program execution time lt ignored gt set time of low speed program execution time low speed scan time Hence the scan time changes per scan b When the low speed execution type program cannot be processed within the constant scan allowance time or low speed execution program execution time the program execution interrupts once and the program is reset in the next scan POINTS Refer to QnACPU PROGRAMMING MANUAL Fundamentals for the index register processing when switching from the scan execution type program to low speed execution type program Refer to QnACPU Programming Manual Fundamentals for the index register processing when interrupt program is executed while executing the low speed type program Set the
131. how to use sequence instructions basic instructions and application instructions Sold separately SH 080039 13JF58 QnACPU PROGRAMMING MANUAL Special Functions Describes dedicated instructions used in special function modules IB 66616 13JF48 Sold separately QnACPU PROGRAMMING MANUAL AD57 instructions Describes dedicated instructions used to control the AD57 S1 type CRT controller module aue49 l Soid separately QCPU Q mode QnACPU PROGRAMMING MANUAL PID Control Instructions Describes dedicated instructions used for PID control in Q2ACPU S1 Q3ACPU and Q4ACPU Sold separately SH 080040 13JF59 QCPU Q mode QnACPU PROGRAMMING MANUAL SFC Describes system components performance specifications functions programming debug SH 080041 going and error codes of MELSAP 13JF60 Sold separately AnS Module Type I O Users Manual Describes specification of AnS module as I O module IB 66541 13JE81 Sold separately Type QnA Q4AR MELSECNET 10 Network System Reference Manual Describes MELSECNET 10 overview specifications part names and settings Sold separately IB 66620 13JF77 Type MELSECNET MELSECNET B Data Link System Reference Manual Describes MELSECNET II and MELSECNET B overview specifications part names and 1B 66350 settings 13JF70 Sold separately GX Developer Version7 Operating Manual Describes the online functions of GX Developer including the programming procedur
132. ied Current QnA QnA A eas points VO consumption Description only share allocation sypc 24vpc module type a A eee 512 V0 a built in RAM 28k step Memory card oe 512 VO built in RAM 28k step purchased CPU modul separately module Q2ASCPU S1 S1 1024 I O 1024 VO points builtin RAM 60k step lt built in RAM 60k step Includes memory card current Q2ASHCPU S1 1024 I O points built in RAM 60k step consumption QIMEM 1MSF 1MSF Q1MEM 2MSF SRAM 512 Kb SRAM 512 Kb flash memory 512kb memory 512 kb SRAM 1 Mb flash memoryiMb 1 Mb flash SRAM 1 Mb flash memoryiMb Mb QIMEM 64S MEM 64S seated 64 kb Smee o ooo 128 kb a MEM 256S SRAM256kb gt O o O O moe kb aee use o o ooo 512 kb eee 1MS sRaMiMe OoOO O O E Mb amans 2MS SRAaAM2Mb OOO O O 2 Mb at SRAM 64Kb E2PROM64kb0 lt 64 Kb SRAM 64Kb E2PROM64kb0 lt 64 kb euen SRAM 128 Kb EPROM 128kb 128 Kb SRAM 128 Kb EPROM 128kb 128 kb anene 512SE SRAM 256 Kb EPROM 256kb 256 Kb SRAM 256 Kb EPROM 256kb 256 kb SiN Se 1MSE SRAM 512 aea onset SRAM 512 Kb EPROM 512kb 512 kb emea SRAM 128 SRAM 128 Kb flash memory 128kb lt flash ENEIT T 128 kb a MEM 512SF SRAM 256 Kb flash Sen eee 256 kb The Q dedicated module can be used on Q2ASCPU only The Q A common module can be used on either Q2ASCPU or ACPU However some restrictions may apply for use with Q2ASCPU 3
133. ied Time 10 ms 1 i 2 Interrupt Status lt Inhibit gt 3 lt Successivaly gt Cancel lt N gt Space Select Esc Closo 8 40 8 Debug Function MELSEC QnA b Setting the Break Condition The break point and device status are set in 2 Break Cond in the Partial Run screen 1 Partal Run 1 x From Current Step 2 Start Step Pointer 0 2 Break Cond 1 Device Device Current Value 4 x Word Device K0 2 Bit Device T 2 Break Point Step Pointer 0 j lt Always gt 1 Times J Step Pointer 0 j lt Always gt 1 Times Step Pointer 0 j lt Always gt 1 Times Step Pointer 0 lt Always gt 1 Times Step Pointer 0 j lt Always gt 1 Times J Step Pointer 0 j lt Always gt 1 Times Step Pointer 0 lt Always gt 1 Times J Step Pointer 0 lt Always gt 1 Times 3 Option 1 J ScanTime 1 Real time 2 Specified Time 10 ms 2 Interrupt Status lt inhibit gt 3 Refresh lt Successivaly gt Cancel lt N gt ONnaarhran The device that can be set are as follows 1 Bit Device X FX Y FY M L F SM V B and SB 2 Word Device T contact current value ST contact current value C contact current value D SD FD W SW R ZR UL G JL x JAY Jeg sses JO w ssw ana BLLI s 8 41 8 Debug Function MELSEC QnA c Setting the Execution Operation The scan time
134. ified tools or correctly soldered For information regarding the crimping and pressure welding tools see the I O module s users manual Imperfect connections could result in short circuit fires or erroneous operation STARTUP AND MAINTENANCE PRECAUTIONS e Do not touch the terminals while power is on Doing so could cause shock or erroneous operation l Correctly connect the battery Also do not charge disassemble heat place in fire short circuit or solder the battery Mishandiing of battery can cause overheating or cracks which could result in injury and fires Switch all phases of the external power supply off when cleaning the module or tightening the terminal screws and module mounting screws Not doing so could result in electric shock If the screws are too tight it may cause falling short circuit or erroneous operation due to damage of the screws or modules 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 When using a wireless communication device such as a cellular phone or PHS Personal Handy Phone Sys
135. in the Status Latch screen 1 gt Register Start 2 Suspension 3 Display Status 4 Trigger execution 2 Status Latch File to Save 14 Select from List 2 Fie Shown Right Drva 1 File Nama SAMPLE1 3 Trace Condition 4 Overwrite Conditiona onia CPU s 2 Use Condition in CPU b The status latch file is written into the memory card The status latch file is written in the 7 Write to PC Condition in the Status Latch screen The file name is written into the memory card so it can be executed with multiple status latch conditions 8 34 8 Debug Function MELSEC QnA 3 Status latch is executed The status latch is executed with 1 Exec Status Latch amp Disp Status in the Status Latch screen The following shows a setting example of 1 Exec Status Latch amp Disp Status Exec Status Latch amp Disp Status 1 Register Start 2 Suspension 3 Display Status 4 Trigger execution 2 Status Latch File to Save 1 Select from List 2 File Shown Right Drive 1 File Name SAMPLEt 3 Trace Condition 1 Overwrite Conditions onto CPU s 2 Use Condition in CPU Space Select The following describes the screen Exec status latch amp disp status can set 1 Operation 2 Status Latch and 3 Trace Condition a Operation Select one from the following 1 Register Start The status latch is regist
136. interrupt status and refresh are specified in 3 Option in the Partial Run screen 1 From Current Step 2 Start Step Pointer 1 _ Devica Device 1 Word Device 2 BitDevica 2 Break Point 1 1 Step Pointer 0 Step Pointer 0 1 Times J StepyPointer 0 1 Times Step Pointer 0 1 Times Step Pointer 0 1 Times Stop Pointer 0 1 Times StepyPointer 0 1 Times 8 Step Pointer JO 1 Times 1 SeanTime 1 x Real time 2 Specified Time 10 ms 2 interrupt Status lt Inhibit gt 3 Refresh lt Successivaly gt caret Multiple items can be set Each item in the setting is described below ltem Operation Setting Description Scan Time Specifies whether to execute the scan time in real time or in specified time during partial execution Default is specified time 10 ms Interrupt Specifies whether to enable disable the interrupt status during Status execution Default is disable Specifies whether to perform I O refresh every time the program execution is stopped when the condition is met or perform refresh only at END Default is every time 8 42 8 Debug Function l MELSEC QnA 8 7 3 Step By Step Execution The specified step is skipped during execution in the step by step execution or partial execu tion Sequence Program Example X000 of LD xo o H k voio 1 OUT Y10 X001 K4 2 MOV Y020 DO 21 LD x1 Starting step 3
137. ints are not available for use e If the numbers specified are more than the actual I O module points only points exceeding the actual module points become dummy points e If an actual slot is specified as a vacant slot such actual I O module becomes unavailable for use 3 Those slot to which points are not allocated by GPP function have points allocated according to the module points actually loaded 4 The I O slots not allocated points by GPP function are assigned numbers following the I O numbers already allocated 5 6 5 Allocation of O Numbers MELSEC QnA 3 Precaution a b c lf the parameter I O allocation is different from the actual I O module normal I O operation cannot be carried out Actual module VO allocation No input Output Input No output CPU module error CPU module error The l llocation where ecial function module i aded mu e equal to th actual setting If the setting is not the same an error is generated 1 ATIVO osoa Special 16 points 2 AIGT 0 Lee cece ee eee Special 32 points 3 AG62 eee eee Input Specified points 4 2 slot occupied modules Set vacant 16 points and special 32 points 2 slot 2 slot _ m Special 32 points Special 32 points Vacant 16 points w ez 35 gaa gt S_n SY Refer to users manual for special module being used When the performing MELSECNET data link allocate I O as follows 1 For the master statio
138. ion bit devices in multiple of 16 107 196 to 209 Error No ST C D W R ZR 7 Setting Automatic Refresh MELSEC QnA 2 Following system demonsirates how to set receive send data storage devices Example In case when devices after X Y400 are used as remote I O stations A1SJ71PT32 S3 AX41C Station number 1 master module occupied number of stations 4 iw AJ35TB1 16D Station number 5 occupied number of stations 2 Head I O No 40 MINI MINI S3 model MINI Total number of remote I O stations 11 aa AX40Y50C Station number 7 AJ35TJ 8R Station number 11 occupied number of stations 4 occupied number of stations 1 taper Baich Batch Re Fault Sta Com Eror Ac rech Ratresh try Detection Mamaia at TX Data Bu Data Enar STOP Rair s3 Paus Paws ler at r 50 Close PgUp Prev PgDn Next unnsa n AH BS8eeseR In the system example above receive send data storage devices are as follows a Receive data storage device CORSEPU Address b15 b8 b7 bo 100 X40F to X408 x407 __to_ x400 111 gt 112 x42F to _ x428 X427 to _ x420 113 114 X44F to x448 x447 to x440 115 f Station number 11 Input area Used by system 1 For receive data storage device set the device number X400 of bO in station number 1 2 Receive data storage device can occupy X400 to X45F One additional station is us
139. ion timing is the same as the monitor condition setting in Section 8 2 Monitor Functions Device Current Value B 4 Word Device 2 Bit Device X2 2 Step 1 lt Always gt 4 Added Trace Information The added information for every trace is set Multiple items can be selected from the following or none of the items have to be selected a Time Stores the time when the trace was executed b Step Number Stores the step number when the trace was executed c Program Name The program name of the program that executed the trace is stored 2 The created trace device and trace condition is written to the memory card a Set the trace file and storage destination The drive number and file name are set in the 1 Execute Trace amp Display Status in the Sampling Trace screen 1 8 Regleter Slat 2 Susparsion 3 Display Statue 4 Trigger Eracution 2 Samping Trace Data Filo ta Swe 1 0 Select From List 2 e File Shown Righ Drie 3 File Name SAMPLE 1 3 Trace Condition 1 2 Overurite Conditions onin CPU S 2 Use Condition in CPU b The trace file is written to the memory card The trace file is written to the memory card in 9 Write to PC Condition in the Sampling Trace screen The files are written in the memory card as file names so multiple trace files can be stored 8 28 8 Debug Function MELSEC QnA 3 Sampling trace is executed The samplin
140. ion is Stop Continue Off On Flashing On Default Stop 1 executed No parameter When the power is turned on when reset Boot error When the power is turned on when reset Memory card operation error When the memory card is installed Stop Continue off On Flashing On Default Stop 1 removed File setting error When the power is tumad onfwhen reset File access error oo When an instruction is executed Stop Continue Off On Flashing On Default Stop 1 Instruction execution not When the power is turned on when reset Stop Off Flashing possible e When the power is turned on when Parameter setting check reset Sr Flashing When switched from STOP to RUN e When the power is turned on when pm foe e When switched from STOP to RUN SFC parameter error______ When switched from STOP toRUN _ Stop off Flashing 4 Can be changed to Continue in the GPP function parameter setting 2 Can be set to No in the GPP function parameter setting Also checking is not per formed when SM251 is on 3 Can be set to No in the GPP function parameter setting Parameter error Link parameter error reset 9 Maintenance Functions MELSEC QnA Diagnosis description Continued from the preceding page e When the power is turned on when Stop Off Flashing Flashing Instruction code check reset When switched from STOP to RUN When the power is turned on when
141. ion type program A I I I Scan execution type program B Scan execution type program C Scan time 4 When setting the constant scan 1 When the constant scan is set the scan execution program is executed for every constant scan time set 1 1 Constant scan executes the scan execution type program repeatedly in a constant interval Refer to Section 10 2 for details 1 Refer to QnACPU PROGRAMMING MANUAL Fundamentals for index register processing when executing the interrupt program while executing the scan execution type program 12 5 12 Overview of The Q2ASCPU Calculation Processing MELSEC QnA 5 Scan Time l Scan time is a total of following the execution time of the scan execution type program END processing time and low speed program execution time or constant scant stand by time 1 When a multiple scan execution type is executed the execution time of the scan execution type program is the time until all scan execution type program execution is complete 1 Refer to Section 12 1 3 e The Q2ASCPU measures current value minimum value and maximum value for the scan time and stores them in the special registers SD520 SD521 and SD524 to D527 By monitoring SD520 SD521 and SD524 to SD527 the scan time can be checked Current value SD520 SD521 Minimum value sp524 sD525 Maximum value sps26 Lo Stores the scan time less than 1 ms unit us Stores the 1 ms unit sc
142. is stored in the specified device as ASCH data The data entry completion is when the CR code is entered or when the 32nd character is entered Example A program that enters TOSOU LINE READY on the Q6PU when the XO is turned on XO List H H DO OLD xo 1 PKEY DO XO PKEY startup T OOO Data register instruction Do 7 7 SM736 PKEY E a D1 instruction execution flag D2 SM7 Key input TULL acceptance flag Input Data from Q6PU TOSOU_LINE_READYCR Key input data count D9 _00_ Odh Input in this manner 10 19 10 Other Functions MELSEC QnA 10 8 Reading the Module Access Time Interval The Q2ASCPU can monitor the access time interval time from an access receive and the next access receive of the intelligent special function module network module data link module or GPP function The access frequency to the CPU module from an external source can be found out To read the module access time interval the next special relays and special registers are performed 1 Special Relay Number Name escription When turned on the module access time interval from the special function module specified with the special register SD550 is read to the SD551 to SD552 ON Read OFF Not processed Module access time interval read 2 Special register Number Name Description The I O number of the module to measure the modu
143. ith X30 are allocated to Slot 3 and later 5 10 5 Allocation of O Numbers MELSEC QnA 3 When it is desired to mount separately numbered input and output modules together on base unit When one PLC is used to control machine I O No XO to X3F Y40 to 7F and machine I O No X200 to X23F Y240 to 27F it is desired to mount input and output modules together on a base unit In this case make I O allocation as shown below a Mounting status and desired I O numbers Input modules fe ee MONE SS ef Output modules modules Z amp xo00 x200 x020 x20 vo40 v240 voeo v260 Saj 3 Mount input modules of machines 5 E E X01F X24F X03F X23F YO05F Y25F YO7FLY27F and alternately to mount them Ze gt together a amp oO E T E T E E OI AI This also applies to output modules allocation Labi A18X41 Basic A15X41 A1S38B A1SX41 Power Supply A1SX41 A1S61P A18Y41 Extension Cable A18Y41 A18Y41 A1SY41 Extention 1 l Power Supply I Extension Cable I E gt gt gt gt gt gt gt lt Out gt gt gt gt gt gt gt gt gt BEA AAR AAA AA 5 11 6 Data Exchange with Special Function Modules MELSEC QnA 6 Data Exchange with Special Function Mod ules This section describes reading data from and writing data to special function modules of Q2ASCPU The special function module enables Q2ASCPU to handle analog values and
144. lap If BO is set as receive data storage device in the system configuration example above then BO to B5F device range is occupied Set B60 or higher as send data storage devices If the send data storage device was set to B60 device range becomes B60 to BBF When bit device is specified as send receive data storage device be sure to specify multiple of 16 as device numbers Example X0 X10 Xi100 Usable device range is 8 points X number of stations In case the number of stations is an odd number 8 more points are necessary 7 _ Setting Automatic Refresh MELSEC QnA 7 2 CC Link Automatic Refresh Settin The CC Link automatic refresh is the automatic communication between Q2ASCPU and the buffer memory for cyclic communication of the master station or local station on the CC Link The data that can be communicated varies depending on the remote stations being connected e Remote I O station ON OFF data communication e Remote device station ON OFF data word data communication e Intelligent device station ON OFF data word data communication e Master station local station ON OFF data word data communication Setting the CC Link automatic refresh enables the use of FROM TO instructions which in turn allows for a direct communication with CC Link s other stations without communicating with CC Link master station Cyclic communication Remote 1 0 station External Remote I O station Extern
145. le Function to perform step by step CPU module Remote PAUSE Function to temporarily stop the CPU module Section 10 6 3 Remote RESET Function to reset the CPU module Section 10 6 4 Remote latch clear Function to clear the CPU module latch data Section 10 6 5 Relationship between When performing remote operation the remote operation and relationship with the CPU module RUN STOP key Section 10 6 6 CPU key switch switch setting is explained Section 10 4 Function uses the display device and key input of Terminal setting the Q6PU programming module Section 10 7 Function to display a message to the Q6PU display device Section 10 7 1 Key input operation Function to read the Q6PU key input Section 10 7 2 Function to monitor the special function module Read the module access inter network module and access the interval time for val time the peripheral device time from CPU module access receipt to the next access receipt Message display Section 10 8 Refer to GX Developer OPERATING MANUAL or SW IVD GPPQ OPERATING MANUAL Online for the GPP function operation method details O 10 1 10 Other Functions i MELSEC QnA 10 2 Constant Scan 1 What is Constant Scan With the Q2ASCPU 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 re
146. le access time interval is set Module access time interval measurement module SD550 SD551 to SD552 Program Example When reading the module access time interval for the X Y160 special function module Read start signal ees Lomov spssi D551 Set the O number for the peripheral device to be connected to the CPU module RS 422 interval to HFFFF The I O number is set by deleting the lower digit When SM551 is turned on the access time interval for the module specified in SD550 stored SD551 ims unit range 0 to 65535 SD552 1 us unit range O to 900 stored every 100 us Ex Module Access time interval For 123 4 ms D551 123 SD552 400 Module access time interval VO number 16 hex is set in SD550 Module access time interval is started Module access time interval is stored in D551 and D552 To read the access time interval accessed from another GPP function on the network set the network modules I O number The module access time interval indicates the interval of a transient request for monitor test program read write etc The access time interval during cyclic communication from the network or data link module is not stored 10 20 11 Comments That Can Be Stored in Q2ASCPU MELSEC QnA 11 Comments That Can Be Stored in Q2ASCPU 11 1 Function List The Q2ASCPU can store various comments By doing this the CPU module operation is
147. mage 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 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 Do not connect multiple power supply modules in parallel Doing so could cause overheating fire or damage to the power supply module If the terminal screws are too tight it may cause falling short circuit or erroneous operation due to damage of the screws or module 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 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 External connections shall be crimped or pressure welded with the spec
148. mal control The program execution type can be selected from the following four types a Initial execution type Type of program to be executed only once when Q2ASCPU is set to RUN b Scan execution type Type of program executed continuously while the Q2ASCPU is running This is equivalent to the program from step 0 to end Subroutine programs and an interrupt program can also be created in this program c Low speed execution type Type of program executed during the extra time of the constant scan time process to standardize scan time by specifying the program execution time ahead of time d Standby type Type of program composed from subroutine and interrupt programs only 2 Overview MELSEC QnA 4 Equipped with the SFC language MELSAP3 SFC programming on MELSAP3 is much easier with the addition of step attributes and SFC control instructions 5 Provides a more productive software development environment a Enables structured programming through program component files Programs which used to be one continuous module can now be controlled as multiple file structures Program design and control can now be divided up among multiple designers according to functions processes or designer types i Manufacturing Initial process m O Function program Manufacturing step program Designer program b Users can create and use macro instructions as needed Programming is standardized and simplified Macro definition
149. meter 2 Exec The program type set in the parameter is displayed 3 Scan Time The actual scan time current value is displayed At the program stop wait state the scan time is displayed as 0 000 ms 4 Ex Times The number of times the program was executed is displayed setting the starting point of when the measurement is started as 0 When the number reaches 65536 times it is reset to 0 The number of executed time remains even when the program is stopped 3 A program start F1 and stop F2 can be made on the program list monitor screen a Program start F1 A standby program can be set for Scan execution or Low speed execution Pressing the F1 key displays the following window Startup Program Type the program name to be started 1 Program name 2 Startup mode 1 Scan execution Select either Scan execution or Low speed execution 2 Low speed execution Execute Y Cancel N b Program stop F2 Stop Program Type the program name to be stopped 1 Program name 2 Stop mode 1 After stop output stop 2 After stop output hold Execute Y Cancel N Select either After stop output stop or Output hold 1 lf a stop is executed with the stop mode set for After stop output stop the program stops after execution of 1 scan OFF Operation is the same as when the POFF instruction is executed When the above
150. module loaded to X YO a FROM TO Instruction Method b Special Direct Device Method tele ko Ho ko bo jki If the special function module data must be read frequently rather than using the special direct device for each instruction it is better to use the FROM instruction once to read the data store it in the data register and access it later The programs scan time will be longer when using the special direct device since the special function module must be accessed for each instruction 6 Data Exchange with Special Function Modules MELSEC QnA 6 3 Processing a Data Communication Request from the Special Function Module When a data communication request is received from a special function module such as serial communication module Q2ASCPU processes the request during the END process By specifying parameters Q2ASCPU can process all data communication requests received during one scan through one END process In this case there is no data delay to each module The END process however will take longer process data communication requests Batch processing of data communication requests is set in Section 6 General Data Process 1 Module Try on the PC System Setting screen under the GPP function parameter mode 1 to 6 modules can be specified as the number of modules 1 Timer interval 1 Slow 100 ms 5 Common Pointer from I 2 Fast 10 ms 6 Genera Data Process 1 Unit try 2 RUN PAUSE Contact RUN x PAU
151. mory Memory for storing device data e Memory card RAM ROM area Memory for storing files and comments for parameters sequence program sampling trace etc e PC memory Refers to all memory of drives 0 to 2 For the file types stored in each memory refer to File Types amp Storage Destinations of Files Managed BY QnACPU in the QnACPU Programming Manual Fundamentals 3 16 4 Performance Specification MELSEC QnA 4 Performance Specification Performance specification of Q2ASCPU module is as follows PO Moet S O Remark Q2ASCPU Q2ASCPU S1 Q2ASHCPU Q2ASHCPU S1 Control method Repetitive operation of stored program Po Direct I O is enabled by specifying direct I O DXEJ DYDI I O control method Refresh mode Sequence control dedicated language Programming language Relay symbol language logic symbolic language MELSAP3 SFC Processing speed sequence in 0 075 fo structions u 8 step oo Sequence instructions Number of 230 instructions Application instructions 21 type Special dedicated 71 instructions onstant scan ms function to make c ant ms 5 to 2000 configurable in multiple of 5 ms module Set parameter values scan time constant to specify Memory capacity Capacity of loading memory cards 2036 kbyte maximum Po Program ca Number of steps steps 60 k maximum pacity Number of files files 28 6e 233 VO device points points 8192 X YO to 1FFF v
152. mote PUASE contact is set in the GPP function parameter mode PC system setting The device range that can be set is input XO to 1FFF 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 When the scan after the PAUSE state contact is turned on is executed to the END instruction the CPU enters the PAUSE state and stops the calculations 2 When the remote PAUSE contact is off or SM206 is turned off with the GPP function the PAUSE state is canceled and the sequence program calculation is performed again from step 0 Remote PAUSE contact SM206 SM204 RUN PAUSE state PAUSE state Fig 10 6 PAUSE Time Chart with Remote PAUSE Contact if the remote RUN contact and remote PAUSE contact are identical the remote PAUSE contact is made invalid 10 14 10 Other Functions MELSEC QnA b GPP function Serial Communication Module Method The remote PAUSE operation can be performed from the GPP function or serial communication module The GPP function operation is performed from each modes PC menu remote operation The serial communication module control is performed using its own protocol com mands Refer to AJ71QC24 R2 R4 Serial Communications Module USER S MANUAL for details of the serial communication module control 1 When the END processing is executed for the scan where the remote PAUSE command
153. n it is necessary to allocate I O for the master station and all remote stations For master station wien e 1 0 allocation to station For remote range For focal I O allocation For remote I O station 2 For a local station only the local stations I O allocation needs to be performed 3 An I O mixed module A42XY etc should be allocated with an output module d When the MELSECNET 10 network is used perform I O assignment only for the host master station I O assignment setting to a remote I O station in MELSECNET 10 cannot be per formed since it is unrelated When assigning I Os to a remote I O station in MELSECNET 10 do so using the network parameters For a remote I O station of MELSECNET II and B the I O assignment setting net work parameters is unrelated Therefore the I O assignment cannot be performed 5 Allocation of I O Numbers MELSEC QnA 5 4 10O Number Allocation Examples This section gives examples of I O numbers allocated when I O allocation is made using the GPP function 1 When it is desired to change 16 point vacant slots into slots of 0 and 32 points Since three vacant slots are made when the A1S35B is used it is desired to change these slots into 0 points to increase the number of 1 O points usable by the CPU module In addition since a 32 point input module will be mounted to the currently vacant slot later it is desired to reserve 32 I O points to make the I O num
154. n only be performed from the GPP function or serial communication module operation a The remote RESET must be enabled with the parameters before performing a reset operation from a GPP function or serial communication module The remote RESET enable disable is set at GPP function parameter mode PC system setting b After enabling the remote RESET in the parameter the reset is performed with the remote operation e For the GPP function this is performed in each modes PC menu remote operation e For the serial communication module its own protocol command is used Refer to AJ71QC24 R2 R4 Serial Communications Module USER S MANUAL for the details of the serial communication module control 10 16 10 Other Functions MELSEC QnA 10 6 5 Remote Latch Clear The remote latch clear resets the device data latched to the Q2ASCPU using the GPP function when the CPU module is at the STOP state POINT Remote latch clear cannot be performed when the CPU module is at RUN state 1 Remote Latch Clear Application Usage Remote latch clear is useful when the CPU module is in the following areas In these cases the operations are performed in combination with the remote RUN STOP e When the CPU module is at a position out of reach e When performing latch clear of the control board CPU module from an external source 2 Remote Latch Clear Method The remote latch clear can only be performed from GPP function or serial communication module
155. n program 2 RUN write execution of the scan program 3 RUN write command of the low speed program 4 RUN write execution of the low speed program 8 14 8 Debug Function MELSEC QnA 8 4 Execution Time Measurement This is a function to display the processing time of the program being executed Application This is used to find out the effects of each programs processing time to the total scan time Function Description There are three functions to the execution time measurement The details of each function are indicated in sections 8 4 1 to 8 4 3 e Program list monitor e Interrupt program list monitor e Scan time operation 8 4 1 Program List Monitor This is a function to display the processing time of the program being executed Function Description The scan time number of times executed and processing time by item can be displayed for each program Each operation is performed in the Monitor menu in the monitor status of the circuit mode 1 Select Program Batch Monitor 8 15 8 D ebug Function MELSEC QnA 2 Select Program List Monitor An execution example of the program list monitor when the constant scan is set at 120 ms is shown Program list monitor lt Total Scan Time gt lt Program Status gt ce ee Deir E e e a CHECKi 0 200ms 35313 x 0 000ms ox 0 000ms 0x 0 000ms Ox 0 000ms Ox 0 000ms 0x 0 000ms Ox 0 000ms Ox 0 000ms Ox 0 000ms ox 0 000ms Ox lt Time Det
156. na 16 4 16 3 Names of Paris and SeitingS 0 0 ce eer renee tenet eens 16 5 Base Module Extension Cable 17 1 Base Module Specification Table 0 ccc cece eee ee tenet nee eee nenes 17 1 17 1 1 Main Base Module for High Speed Access A1S38HB 00 17 2 17 2 Extension Cable Specification 0 0 ccc cece cece nee ete e nen enenee 17 2 17 3 Application Standards of Extension Base Unit A1S52B S1 A1S55B S1 A1S58B S2 A55B A58B ersunsanenuunesresrrruorreanernrrranrernruserrrrenroreanaereerurerarr eruo 17 3 17 4 Handling Precautions s essssusesnarneererarreresrnensenrrresnerrerrersrasseses 17 7 17 5 Part Name 2 cc eee ee ee ene ete eee eee eee tenes 17 8 Memory Card Battery 18 1 Memory Card Specifications 0208 Cece eee eee tee eee eens 18 1 18 2 Handling the Memory Card 1 0 0 cece cee eee eee e eben een n enna 18 2 18 3 Battery Specification for CPU module and Memory card cc eee eee 18 3 18 4 Handling Precautions 0 0 eee eee nee ee nee eee ee ee ee eens 18 3 18 5 Part Name 0 eee ee eee eee ene eben net e eee e ene enenes 18 4 18 6 Battery Loading for CPU module and memory card cece cece eee ens 18 5 18 7 Memory Card Loading Unioading Procedures 0 ccc ccc cece ete e tetas 18 6 19 1 19 2 19 3 19 4 19 5 19 6 19 7 19 8 Loading and Installation On Fail Safe Circuit 0 ec ee eee
157. nal output OS saves the output state and all output are off Determined by the output mode of the parameter at STOP RUN Data Memory Y M L S T C D Maintains the status immediately before the STOP state Starts executing the operation from the status immediately before the STOP state The Q2ASCPU performs the following in any of RUN STOP and PAUSE states e I O module refresh processing e Data communication with the peripheral device computer link module and serial com munication module e Link refresh processing Therefore monitoring and or test operation of I O from peripheral device read write from the computer link module or serial communication and communications with other stations can be performed with MELSECNET 12 21 12 Overview of The Q2ASCPU Calculation Processing MELSEC QnA 12 3 Operation Processing during Momentary Power Failure The Q2ASCPU detects a momentary power failure to the power module when the input power voltage is lower than the regulated ranges When the Q2ASCPU 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 the operation processing The timer clock continues b When there is an SFC contin
158. nding on whether there is the function version B of the Q2ASCPU or not and the type of the GPP function When function version B is not described e Set the detailed conditions step No and device condition to each program file and perform monitoring When function version B is described e When GX Developer or SW2IVD NX GPPQ is used setting local device compatibility allows the local device to be monitored in each program file Refer to Section 8 2 2 e When using SWOIVD NX GPPQ or SW1IVD NX GPPQ monitor the local device by performing the same operation as when function version B is not described When monitoring the buffer memory of the special function module the scan time takes a longer time just like when executing the FROM TO instruction Multiple users can execute monitoring at the same time When multiple users are executing monitoring at the same time take Note of the following High speed monitoring can be performed by increasing 1k step in the system area for every stations monitor file during formatting of internal memory Up to 15 stations can be set as the station monitor file but the program space will be reduced The detailed condition setting for the monitoring can only be set for one user The monitoring detailed condition setting can only be set in circuit monitor When the same device is specified as the monitor condition and monitor stop condition specify on or off 10 If the step No is
159. ne mode trace menu Set the CPU at STEP RUN at this time Refer to Section 8 7 1 Set the trace device and trace condition with the GPP function a Trace Device Setting Set the device in Trace Device Setting in the Program Trace screen Trace Device Setting O aee fen O o ar PgUp Prev PgDn Next Space Select Esc Close 8 47 8 Debug Function MELSEC QnA b Trace Condition Setting Set the trace condition in the Trace Condition Setting in the Program Trace screen Trace Conaition Setting 1 Trace Counts 1 Total Counts Times 2 Post Trigger Counts Times 2 Trace Point 1 Branch instruction 2 Every interruption 3 At Instruction Execution 3 Trigger Point 1 At Instruction Execution 2 At Reguest of PDT 3 Specify Detail Condition Cancel lt N gt Space Select Ese Close The following describes the screen 1 Trace Counts 2 Trace Point 3 Trigger Point can be set in the trace condition setting 1 Trace Counts The total count sets the number of executions for the sampling trace from trace start to end Count after trigger sets the number of executions for the sampling trace from trigger execution to end of trace The setting range for each count is shown below Count after trigger lt Total count lt 8192 2 Trace Point Setting Set the point to perform trace Multiple items can be selected from the follow ing a Branch Instruction E
160. necessary Special link relay SB Default 2048 SBO to 7FF points Special link register Default 2048 SWO to 7FF Step relay S points 8192 SO to 8191 Index register Z points 16 ZO to 15 4096 PO to 4095 set parameter values to select usable range of in Pointer P points file pointer shared pointers interrupt pointer I 48 10 to 47 set parameter values to select periodic interval of system points interrupt pointers 128 to 131 5 to 1000 ms in 5 ms modules 4 1 512 1024 512 1024 Timer T points Set parameter values to specify usable points Retentive timer ST points Number of device points File register R points 4 Performance Specification _ MELSEC QnA Special relay SM 2048 SMO to 2047 points Special register SD points Function output FX points Function output FY points Function output FD points 2048 SDO to 2047 Number of device Number of device points 16 FXO to F points is fixed 16 FYO to F 5 FDO to 4 Link direct device Device for direct access of link devices For MELSECNET 10 use only Specified form OOOO Device for direct access of special function module buffer memory P P Specified form vO weOO i range Latch range may be specified for B F V T ST C D W to specify Remote RUN PAUSE
161. ng O numbers from changing when removing a malfunction O module or special function module that is not a 16 point type d There is less frequent need for program O number modification since the I O numbers of each base module can be changed one slot at a time to match the designed programs I O numbers 2 Scheme of I O allocation by GPP function There are two methods used to allocate I O numbers by GPP function 1 Allocate points to vacant slots in the main base and extension base vacant slot points 2 Specify I O number allocation by slots for each main base and extension base In either case set parameter values to execute each allocation scheme If both 1 and 2 are specified at the same time the latter takes precedence a Setting the vacant slot points The system specifies points to all vacant slots on the base If a system has no parameter set vacant slots are assigned 16 points each Points are assigned on the PC System Setting screen under the parameter mode in 7 of Free Slots PC system seting 4 Slow 100 ms 5 Common Pointer from 2 Fast 10 ms 6 General Data Process 1 Unit try 2 RUN PAUSE Contact RUN at PAUSE xf 7 of Free Slots 3 Allow Remoto Reset 1 lt gt Yes 2 lt gt No 5 4 5 Allocation of I O Numbers l MELSEC QnA Points are set in 0 to 64 points range in modules of 16 points The default value is 16 points Example When a vacant slot is assigned zero points
162. ning module interpolation circular interpolation Used for positioning control Digital output For MR H B MR J B MR J2 B 3 axes independent triple axis simultaneous dual axis linear interpolation dual axis circular interpolation A1SD75M3 Position Absolute detection system 48 First half f Resolution 1 resolver Special 32 points etecon A1S62LS x revolution 4096 part split 32 Second half Response speed Within 2 ms Vacant 16 points Analog O moduie Analog input Two channels Controllable AIS63ADA simplified loop Analog output 1 channel S2 Special 32 points Analog input 4 channels I O signal system Ai aisesaDa Analog output 2 channels 64 Output 64 point 0 16 For MELSECNET II data link system master station and local station for S1 type optical fiber cable For MELSECNET II data link system master station and focal station for Gi type optical fiber cable A1SJ71AP21 A1SJ71AP21 S3 X A For MELSECNET II data link system master AISJ71AR21 station and iocal station for coaxial cable 32 Special 32 points For MELSECNET B data link system master OAR ne ememm ow 0 3 MELSECNET II data link module Accessible in the A2ACPU device range MELSECNET B data link module A1SJ72T25B For control station master station and local station of the MELSECNET 10 data link module system For SI type optical fiber cable
163. o __ Including bus function module Total of 6 units connected GOT Interrupt module One unit onty o i O Ethernet module for network total of 4 units Ethernet module for network and data link total of 4 units Link module Ethernet module For data link total of 2 units Further remarks on above modules 1 O module Standard input module and output module 2 Special function module Special function module that can process FROM TO instructions from Q2ASCPU e g AIS64AD A1S62DA etc 3 Intelligent special function module Special function module that can not only processes FORM TO instructions from Q2ASCPU but also be able to access Q2ASCPU from the special function module e g A1SJ71UC24 etc 4 Interrupt module Module that generates interruption to Q2ASCPU A1SI61 5 Link module Special function module for MELSECNET II amp B data link as well as MELSECNET 10 network 6 Ethernet module Ethernet interface module A1SJ71QE71 dedicated to Q2ASCPU b The following special function modules cannot be used by Q2ASCPU AJ71C23 Host controller high speed link module e AD57 S2 A6MD controller module AJ71C24 Computer link module 80 0 Products up until February 1987 Products dated March 1987 or later or those with H A3H compatible displayed in date field are Q2ASCPU compatible AD51 Intelligent communication module re Products up until March 1987 Produ
164. o error detection is not performed so the processing time to the END instruction can be minimized Self Diagnosis List zos sate CPU module LED status Diagnosis description Diagnostic timing status RUN ERROR CPU module error END instruction not executed _ When the END instruction is executed Stp ot Flashing RAM check When the power is turned on when reset Calculation circuit check When the power is turned on when reset Fuse short When the END instruction is executed Stop C ofto Flashing O t ti i default stop 1 default Yes 2 opmonninue n asningm n O interrupt error When an interrupt occurs Stop off Flashing When the power is turned on when Hardware reset failure Special function module error Stop Off Flashing When the FROM TO instruction is executed e When the power is turned on when reset Control bus error Stop Off Flashing When the FROM TO instruction is executed Momentary stop occurred Continue on o Battery Always Conti Off attery low y Default Yes 3 onunue VO module verification When the END instruction is executed Stoo Conti otio Flashino O op Continue n ashing On Default Stop 1 Default Yes 2 P 9 i When the power is turned on when Special function module reset Stop Off Flashing allocation error When switched from STOP to RUN Special function module error When the FROM TO instruct
165. odule and MELSECNET MINI S3 master module are in stalled but the automatic refresh operation has not been performed set the default parameters in the MELSECNET MINI S3 master station module d By using the COM instruction and the G P ZCOM instruction the automatic refresh operation can be performed to a CC Link module while the sequence program is executed However the automatic refresh operation cannot be performed to a CC Link module using the J P ZCOM instruction If used an error code 4102 will be displayed Network number specified by the network dedicated instruction does not exist e Refresh operation when MELSECNET 10 l and MELSECNET MINI S3 coexist e Refresh operation will be performed in the order of MELSECNET 10 l CC Link MELSECNET MINI S3 Due to this order of operation if there are two or more sets of input data specifying the same area the latt r one the data that was executed last will overwrite the first one e Output data are output to MELSECNET 10 Il CC Link and MELSECNET MINI 3 f The operations of Q2ASCPU when a CC Link module is online offline are described in the table below Automatic refresh pa CC Link module Operations of Q2ASCPU rameter setting status Communicates with a remote station using the specified automatic refresh parameter Set The Q2ASCPU will generate no errors but will not communicate with a remote station l Communicates with a remote station
166. ointe in programn Number of points VO points points X Y0 to 1FF X YOto 3FF X YOto 1FF X Y0 to 3FF vO moda i actual Internal relay M points Default 8192 MO to 8191 Latch relay L points Default 8192 LO to 8191 Link relay B points Default 8192 BO to 1FFF Default 2048 TO to 2047 for low speed timer high speed timer speed Select between low speed timer high speed timer by instruction Set the measurement module of low speed timer high speed timer by parameter Low speed timer 10 to 1000 ms 10 ms module default 100 ms High speed timer 1 to 100 ms 1 ms module default 10 ms Default 0 STO to 2047 for both the low speed and high speed timers Use instructions to switch from the low speed timer to high speed timer and vice versa Set the measurement unit for the high low speed timer using parameters Low speed timer 10 to 1000 ms 10 ms increments default 100 ms High speed timer 1 to 100 ms 1 ms increments default 10 ms Normal counter default 1024 CO to 1023 Counter C points Interrupt counter maximum 48 default 0 point set via parameter Data register D points Default 12288 DO to 12287 Link register W points Default 8192 WO to 1FFF Annunciator F points Default 2048 FO to 2047 Edge relay V points Default 2048 VO to 2047 32768 RO to 32767 may use up to maximum of 1042432 points by block conversion 1042432 ZRO to 1042431 No block conversion
167. ommunication method to verify error Retention Send data prior to circuit location in case of a fine error error retention CPU STOP action Stop or continue Sets action status for CPU module STOP situation 1 n is determined by mounting position of master module 2 If total number of remote O stations is an odd number each storage device occupies space for one additional station 3 If the number of master modules is set to blank in parameter setting automatic refresh can be performed without the above specification It is necessary however to register model name in 1 0 allocation 4 When specifying the inputs X as the receive data storage device use the I O numbers which are used for the module mounted on the main or extension base or later If the 1 O number range used for the module mounted on the main or extension base is used for the 1 O of the receive data storage device the CPU module imports both the ON OFF data of the inputs from the input module and the ON OFF data from automatic refresh of MELSECNET MINI S3 Hence the inputs X of the CPU module go wrong 7 2 Link priority or CPU priority Priority selection of access Y n 1A 4 FROM TO response CPU priority to master module buffer memory Communication error Retention or clear Y n 1B 1 station data clear receive data M L B T ST C D W R ZR none 100 to 103 195 Error station detect
168. on and indicates the CPU module operation Set the simulation range in the device mode The specified simulation range is written in the simulation file in the PC menu Set to circuit mode Select Set Monitor in the option menu and set 2 Buffer Memory Link Memory to 1 Monitor Set to debug mode Shift F2 Switch to STEP RUN Refer to Section 8 7 Select E Simulation in the monitor menu Select 3 Depend on Simulation Data File in Link Memory Buffer Memory and set the drive name and file name to be used Select 9 Device Test in the monitor menu and set the device status Perform step by step execution or partial execution The operation results accesses the memory card The read write data to the memory card is monitored on the GPP function Refer to Section 8 7 Described in this Section 8 52 8 Debug Function MELSEC QnA 1 The setting is performed in the following simulation setting screen Simulation 1 lt gt Simulation Setting 1 Input Refresh lt Yes gt 2 Output Refresh lt Yes gt 3 Link Memory 1 Access Unit Buffer Memory 2 Ignore 3 Depend on Simulation Data File Drive 0 File 2 lt gt Simulation Range Confirmation Space Select Esc Close e The details of each setting item is shown below Setting Item Select range Description Input Refresh Selects whether to read in the input from an Yes No external
169. on base module A1S58B A1S65B A1S68B A1SC01B A1SC03B A1SC07B AiSCi2B AiSC60B A1SCOSNB AiSCO7NB A1SC30NB A1SC50NB Extension cable QnA jQnA A Description only share Occupied points 1 0 MELSEC QnA allocation consumption P Remark oA ma module type Maytake2VOmodules lt take 2 VO modules Does not take May take 5 1 O modules power supply module Power May take 8 I O modules May take 5 I O modules Requires a power osmena take 8 1 O modules supply module x For extension to supplied from the main base 300 mm ae 8 inch long 700 mm 700mm 27 6inch iong lt 6 inch e 3000 mm ommen n i1 long 6000 mm 6000 mm 236 22 inch long 22 inch long 450 mm 17 72 inch long see Extension base module connecting cable Cable for At 3 and Am extension bases module 700 mm 27 6 inch long 3000 mm 3000mm 118 3inch iong 18 3 inch long 5000 mm 197 1 inch long 3 11 System Configuration MELSEC QnA QnA QnA A Battery ABBAT ae IC RAM memory backup Installed in the Q2AS H CPU S1 main module astexvss For sink type For sik ype mpu mode and shi ype ouput module and sink type output A1SX41 S1 S2 A1SX42 S1 S2 A1SX82 S1 module For sik ype mpu mode and shi ype ouput type A1SY41 A1SY42 A1SY82 A1SH42 S 1 AGTBXY54 For sink type input module and sink type output AX42 S1 AY42 S4 AH42 AJ35TC1 32D modul
170. on data and trace execution data necessary to perform the program trace When trace is started with the GPP function peripheral device the trace is performed for the number of times set d The trace number program name step number and device status are displayed in the trace result Trace Results Display Times Program Step Branchins Time ms DO MO Mi 4 MAIN 9 END FEND 1894 5 31340 MAIN 0 Stat 1894 9 31340 MAIN S 0Step 1900 4 31340 MAIN END FEND 1900 6 31341 MAIN Stat 1901 1 31341 MAIN S 0 Step 1906 7 31341 MAIN END FEND 1906 9 31342 MAIN Stat 1707 5 31342 MAIN S 0 Step 1912 7 31342 MAIN END FEND 1912 9 31343 MAIN Stat 1913 4 31343 S 0 Step 1918 6 31343 END FEND 1918 8 31344 Stat 1919 3 31344 MAIN MAIN MAIN 3 2 1 0 1 2 3 4 5 6 7 8 9 oooowoo o7oowoso Prev PgDn Next Esc Close 8 44 8 Debug Function MELSEC QnA 2 Basic Operation The basic operation of the program trace is as follows The execution status of the program trace function can be checked in the special relay SM810 to SM815 and SM828 e When not interrupting the trace Trace Start or PTRA instruction execution Trace complete with number SM811 on trigger execution or SM813 on of times after trigger Trace count after trigger 6 lt lt il Total number of traces SM810 ne ss ee Program trace ready SM811 Program trace start t I i i SM8
171. on on System Configuration 0 0 cee eee ete eee neeee 3 13 3 3 3 Q2ASCPU Memory Block Diagram 0 0 cece cece tn nee ene ene 3 16 Performance Specification Allocation of I O Numbers 5 1 What are 1 0 Numbers 0 0 00 cece ee ene eee nee ener eneanas 5 1 5 2 I O Number Allocation Scheme 0 ccc eee eee tnt e tenet nee neennees 5 2 5 3 1 0 Allocation by GPP Function 2 0 0 cece cece erent enn een erernel 5 4 5 4 I O Number Allocation Examples 0 cece cect cet n ene ene neteneaees 5 8 Data Exchange with Special Function Modules 6 1 Reading and Writing Data from Q2ASCPU by FROM TO Instruction 00 0c aes 6 1 6 2 Reading and Writing Data from Q2ASCPU by Special Direct Device 00 6 2 6 3 Processing a Data Communication Request from the Special Function Module 6 3 Setting Automatic Refresh 7 1 For MELSECNET MINI S3 1 0 0 0 ee ee ee renee een ee reran 7 1 7 2 CC Link Automatic Refresh Setting s assanuenrensrarnrrensannsrrerarrnerranrarenren 7 5 Debug Function 8 1 Function List 2 0 2 cee ce ete eee en eee teen eee tent en renee 8 1 8 2 Monitoring Function 2 0 2 een ee eee e tere eens 8 2 8 2 1 Monitor Condition Setting 0 eee cece tert ene tenes 8 2 8 2 2 Monitoring Test for Local Device 1 cree eens 8 10 8 3 Writing During RUN 2 0 cee te ee tenet eee teens 8 13 8 4 Execution Time Measurement
172. ons Q2ASCPU features modules used for system construction and precautions are described 2 Chapters 4 to 15 Describes Q2ASCPU specifications and functions Various Q2ASCPU functions are described for effective use of Q2ASCPU 3 Chapters 16 to 18 Describes specifications and handling of modules power supply base etc other than CPU module Describes handling of the power supply module base memory cards and others necessary for the use of Q2ASCPU 4 Chapters 19 to 21 Describes Q2ASCPU installation and general maintenance issues such as daily inspections and problem countermeasures To help operate the Q2ASCPU smoothly it describes installation daily inspections and countermeasures in case of problems occurrences This manual does not cover MELSECNET I Data Link MELSECNET B Data Link MELSECNET 10 Network and SFC functions For each of these refer to the following MELSECNETI II and MELSECNET B Data Link Type MELSECNET and MELSECNET B Data Link System Reference Manual MELSECNET 10 Network Type QnA Q4AR MELSECNET 10 Network System Reference Manual e SFC functions QCPU Q mode QnACPU PROGRAMMING MANUAL SFC 1 1 1 Using This Manual MELSEC QnA 1 2 Abbreviations and General Names Used in This Manual The following abbreviations and general names are used in the manual 1 Q2ASCPU Abbreviation for Q2ASCPU Q2ASCPU S1 Q2ASHCPU and Q2ASHCPU S1 type CPU modules 2 Network module Abbreviation for A1SJ71QLP21
173. ory contents of the CPU module and the failure history file contents of the memory card 9 9 9 Maintenance Functions MELSEC QnA 9 5 System Protect The Q2ACPU 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 proc essing from GPP function or serial communication module There are the following methods for system protect Item to Protect as Valid Prohibits all write control Set the CPU module system Valid for specification to the CPU setting switchi SW1 on devices also module Refer to Section 15 2 Set write protect switch on the memory card on Refer to Section 18 5 All of CPU module All files Performs drive protect for the memory card and write protect Memory All files card unit The following settings are password registered for the specified drive e g internal RAM 1 Read Write display prohibit 2 Write prohibit The attributes for a file is changed to the following 1 Read Write display prohibit 2 Write prohibit Perform password registration Refer to Section 9 6 Parameter program Drive unit Change the attributes for the file in the Password Registration Refer to Section 9 6 File unit All files The control instruction read write display
174. otal 40 ms to 50 ms e Low speed execution type program A execution time 10ms e Low speed execution type program B execution time 30 ms e END processing 0 ms assumed as 0 ms to simplify this example e Low speed END processing 0 ms assumed as 0 ms to simplify this example END END END END END processing m me oseene moons 0 i 115 165 235 295 ms Low speed execution type Scan execution type program mA up m Aml me 10ms ope H H program A program B 1 1 i 1 I I 1 I I I d A t i 20ms 10ms 20ms Low speed execution type 20ms 10ms I 1 Low speed scan time 125 ms i Low speed scan time 120 ms ll 1 1 Low speed END Low speed END processing execution processing execution 12 10 12 Overview of The Q2ASCPU Calculation Processing MELSEC QnA 4 END Processing The low speed END processing is performed when all the low speed execution type programs are executed The following processing is performed for the low speed END processing e The low speed program special relay special register setting e Low speed execution program RUN write e Low speed scan time measurement e Low speed execution type program watchdog timer reset When the low speed END processing is complete the low speed execution type program is executed from the beginning again When the low speed execution type program is being executed max processing time for the instruction being executed low
175. ounter module 24 bit binary Source output type Ai aso 100 KPPS 2 channels 32 Special 32 points 24 bit binary Differential input type 200 KPPS 2 channels 32 Special 32 points 24 bit ree Al asos A18D62D S1 3 System Configuration MELSEC QnA Occupied Current QnA QnA A eae points O consumption Description only share allocation 5VDC 24vpc module type A A Transistor output thermocouple input 2 channets module PID control ON OFF pulse AtIS62TCTT S2 A1S62TCTTBW S2 Transistor output thermocouple input 2 32 Special 32 points channels module PID control ON OFF pulse heater wire breakage detection function Transistor output platinum temperature measuring resistor input 2 channels module PID control ON OFF pulse Transistor output platinum 32 Special 32 points temperature measuring resistor input 2 channels module PID control ON OFF pulse heater wire breakage detection function fo 0 28 x el fe Transistor output thermocouple input 4 A1S64TCTT S1 x channels module PID control ON OFF pulse or 2 position contro 0 42 x Be 0 42 x jes x A1S62TCRT S2 Temperature A1S62TCRTBW adjustment 82 module PID control ON OFF pulse or 2 position control Heater wire breakage detection function Transistor output thermocouple input 4 32 Special 32 points A1S64TCTTBW S1 channels module Transistor output thermocouple input 4 A
176. peatedly while maintaining the scan time to a constant time Scan time when constant scan is not used Sequence program END processing END 0 END 0 END 0 END 0 a es a a Scan time when the constant scan setting is set to 70 ms Sequence program END processing END 0 END 0 END 0 END 0 A Wait time 50ms 20ms Scan time when constant scan is set to 100 ms during multiple program execution Sequence program A Sequence program B Sequence program C ra END processing lan a aaa aa Wait time 80ms 20ms Fig 10 1 Constant scan operation When using a low speed program the constant scan function setting or low speed program execution time must be set Refer to QnACPU PROGRAMMING MANUAL Fundamentals for details 10 2 10 Other Functions MELSEC QnA 2 Setting the constant scan time a The constant scan time setting is performed with the GPP function parameter mode PC RAS setting When executing constant scan set the constant scan When not executing a constant scan set a blank to the constant scan time Example When the constant scan is set to 100 ms PC RAS Setting 4 Constant Scan 100 ms b Set the set time of the constant scan larger than the maximum scan time of the sequence program If the sequence program scan time is larger than the constant scan set value the Q2ASCPU detects an error code SD0 5010 the sequence program is executed with the scan time by ignoring t
177. peed execution program execution time e When setting a constant scan time and prioritize the control precision the constant scan time is set with the GPP function parameter mode PC RAS Setting Setting range 5 to 2000 ms setting unit 5 ms To perform an accurate low speed execution type program while maintaining the low speed execution type programs execution time for every scan set the low speed program execution time with the parameter mode PC RAS setting Setting range 1 to 2000 ms setting unit 1 ms When executing the low speed execution type program set either the constant scan time or low speed program execution time b Set the execution type to low speed in the parameter mode s program setting c Used for programs not necessary to be executed for every scan such as printer output Multiple Low Speed Execution Type Program When multiple low speed execution type program exists the programs are executed in order of the smaller parameter mode setting number Execution Time of the Low Speed Execution Type Program to be Executed per Scan a If there is an allowance time after completion of the operation of all low speed execution type programs within one scan the processing that will be executed after that changes depending on the setting status of the special relay SM330 and the execution condition of the low speed execution type program e Asynchronous system SM330 OFF The operation of the low sp
178. peripheral device By doing so writing during RUN can be performed from each GPP function peripheral device safely The following shows an example of GPP function peripheral device A performing a write during RUN from PO and GPP function peripheral device B performing a write during RUN from P1 The program surrounded in a square is the area to be written during RUN Area after P1 in the processing Area after PO in the processing program is written during RUN program is written during RUN XO X2 Serial Communication Module A18J71QC24 ction nction Peripheral Device A Peripheral Device B 2 Writing to the program during RUN can be performed from a GPP function peripheral device connected to another station in the network Write during RUN Writing can not be performed during RUN while in the step RUN mode 8 13 8 Debug Function MELSEC QnA Operation Procedure Writing during RUN may be performed from the GPP function peripheral device in either of the following two ways Precaution 1 2 When making circuit conversion after circuit creation in the circuit mode hold down the shift key and press the F4 key to execute writing during RUN Set 4 Write During Run Setting and 7 Write Method at Write During Run in 4 Write amp Conversion Setting in the 8 Option menu of the circuit mode When making circuit conversion after circuit creation press the F4 key to
179. play when Error Occurs When an error occurs the LED located on the front of the CPU module turns on Refer to Section 9 8 for the details of the LED display 9 Maintenance Functions MELSEC QnA 9 3 3 Cancel Error Q2ASCPU error cancel operation can be performed only for error that can continue the CPU module operation 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 gt ON 4 The error is canceled When the CPU module 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 For the cancellation of the enunciator detected multiple times only the first detected F is canceled When error cancellation is performed by storing the error code of the error to cancel is stored in SD50 the lower 2 digits of the code number is ignored Example When 2100 and 2111 occur in the error code and error code 2100 is canceled error code 2111 is canceled as well 9 8 9 Maintenance Functions MELSEC QnA 9 4 Failure History The Q2ASCPU can store the failure history results detected from the self diagnosis function and the time into the memory The detection time uses the Q2ASCPU
180. r skipping a section Function to execute the program step by step Function to execute the specified area of the program Function to executed the program by skipping the specified area Function to sample the program execution status Function to simulate the execution by separating the 1 O module and Simulation function 2 special function module Multiple request debug func Function to execute the debugger simultaneously from multiple GPP tion function peripheral devices Monitoring trace function Function to trace the device continuously in the timing specified in g the GPP function peripheral device Refer to GPP function operating manual for details of the operation methods for each function 1 When this function is executed the memory card is required 2 When part of this function is executed the memory card is required Description Reference Function to read program and device status of the CPU from the GPP function peripheral device Function to write in the program while the CPU module is running Function to display the processing time of the program being Section 8 2 Section 8 3 Section 8 4 Section 8 4 1 Section 8 4 2 Section 8 4 3 Section 8 5 Section 8 6 x lt O c Q Step operation Section 8 7 Section 8 7 1 Section 8 7 2 Section 8 7 3 Section 8 8 Section 8 9 Section 8 10 8 Debug Function MELSEC QnA 8 2 Monitoring Function
181. r is detected set the factor number setting area to 0 where the error number is 2 sp20a gt 0208 sp207 pofofatsteli7fejststsfojs Because the factor number 2 is not set the ERROR LED remains off even if the fuse shutoff is detected In this case even if another error with the factor number 2 I O module verify error or special function module verify error is detected the ERROR LED remains off Even if the LED is set to be turned off error code storage is performed for SMO diagnosis error flag on SM1 self diagnosis flag on and SDO CPU diagnosis error register 9 16 10 Other Functions MELSEC QnA 10 Other Functions 10 1 Function List Other functions are listed below Constant scan Function to execute the program in a set time interval regardless of the program scan time Section 10 2 Function to maintain the device data when Latch function performing the reset operation of the CPU module Section 10 3 during PLC power off Function to set the output Y status output before Output status setting when STOP output after the calculation execution when STOP RUN the CPU module is set from STOP status RUN status Function to execute the CPU module internal Clock function clock Section 10 5 Remote operation Function to operate the Q2AS from a remote place Section 10 6 i i he CP Remote RUN STOP Function to stop and start operating the CPU Section 10 6 1 modu
182. rk only share 5VDC 24VDC module type A A B NET For B NET transmission terminal control interface A1SJ71B62 S3 x Up to 63 stations can be controlled per 32 Special 32 points module module S LINK system For S LINK device control Asarisis a Number of control O points Max 128 points JEMANET Al A1SJ71N92 S3 _ JEMANET JEMANET JPCN 1 master module 1 master module 32 Special 32 points Ea JPCN 1 interface A1SJ72J95 JEMANET JPCN 1 slave module 32 Special 32 points module interface A1SJ71DN91 x Master module for DeviceNet total 0 4096 32 Special 32 points 0 24 module P PROFIBUS DP Master module for PROFIBUS DP data that interface A1SJ71PB92D x can be sent Normal service 32 bytes 32 Special 32 points module Extended service 244 bytes PROFIBUS DP Slave module for PROFIBUS DP total I O venom o aee mem foe PROFIBUS FMS Master client server module for interface A1SJ71PB96F x PROFIBUS FMS total I O data 241 bytes 32 Special 32 points 0 56 module AS I interface A1SJ71AS92 x Master module for AS I total I O 496 points 32 Special 32 points 0 15 module Serial communication module for MODBUS 32 Special 32 poi 14 x transmission speed 300 to 19 200bps Special 2 points 1 Interpreter BASIC Compiler BASIC g AISD51S A RS 232C 1 channel RS 422 485 1 channel 321SPecial 32 points joe DeviceNet MODBUC serial communication modul
183. rroneous operation 1 Outside the PC construct mechanical damage preventing interlock circuits such as emergency stop protective circuits positioning upper and lower limits switches and interlocking forward reverse operations 2 When the PC detects the following problems it will stop calculation and turn off all output e The power supply module has over current protection equipment and over voltage protection equipment e The PC 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 PC CPU cannot detect such as in the I O controller Build a fail safe circuit exterior to the PC that will make sure the equipment operates safely at such times See Section 19 1 of this user s manual for example fail safe circuits See this user s manual 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 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 Build a circuit that turns on the external power supply when the PC main module
184. s The initial scan time measurement continues even if the watchdog timer reset instruction WDT is executed in the sequence program There will be an error in the range of 0 to 10 ms in the measured initial execution monitoring time Therefore when the initial execution monitoring time t is set to 10 ms the initial scan time becomes a WDT ERROR when the initial scan time is in the range 10 ms lt t lt 20 ms 12 4 12 Overview of The Q2ASCPU Calculation Processing MELSEC QnA 12 1 2 Scan Execution Type Program 1 What is a scan execution type program a This is a program to be executed once from the next scan after executing the initial execution type program b Set the execution type to scan in the GPP function parameter modes program setting 2 Executing the Multiple Scan Execution Type Program When there is a multiple scan execution type program the programs are executed in the order of the small parameter modes program setting number 3 END Processing When all scan execution type programs are executed the END processing is performed and the first scan execution type program is executed again When the COM instruction is placed at the end of the scan execution type program the END processing can be performed for every program general data processing and link refresh STOP RUN Power ON RESET RUN ist scan 2nd scan 3rd scan 4th scan END processing I Initial execution type program iS Scan execut
185. s are performed at END processing The program execution type does not change while this program is being executed END processing END processing END processing Execution program name 7 CHI ABC GHI GHI DEF GHI te tt tt Ht peror ABC eoor Switches DEF to the scan execution type PSCAN DEF execution and ABC to the stand by type program respectively The execution order of the programs GHI and DEF are set with the parameter program setting 12 17 12 Overview of The Q2ASCPU Calculation Processing MELSEC QnA 12 1 5 Initial Processing This is a preprocessing for sequence operation execution and is performed only once when the PLC is powered on or the CPU module is reset or switched from STOP to RUN When the power is turned on reset 1 The I O module is reset and initialized 2 The range not latched in the data memory is initialized bit device is off and word device is set to 0 3 in one of the items to self diagnose in the PC CPU the items which are to be checked when the PLC power is turned on and the CPU module is reset Refer to Section 9 3 4 The I O address of the I O module is automatically allocated according to the standard base module or extension base modules loaded position 5 For the MELSECNET 10 control station or MELSECNET I1 B master station the net work link parameter data is set in the network data link module and network communica tion data link communication is start
186. s the specified state The specification method for the execution state is shown below 1 When starting lt gt i 11 When shutting z lt b gt 3 The indexed device can be monitored with the indexed values The monitoring example is shown below MOV K2 Z1 K1 Doz LM K 001 K2D0z1 Js mov kt 0021 DOZ1 0 D2 Scan 10ms Interval 200ms Status RUN Target CPU MNTINDE2 8 6 8 Debug Function MELSEC QnA 4 The continuity status of the comparison instruction can be monitored The monitoring example is shown below MOV K10 DO MOV K10 D1 XoF D0D1 E vr wS D0 D1 is monitored DO D1 10 10 Scan 10ms Interval 200ms Status RUN Target CPU MNTNAIBU 5 The special function module device can be monitored The monitoring example is shown below U4 MOV K4 G0 UA MOV G10 DO UA GO UAG10 4 3 Scan 3ms Interval 200ms Status RUN Target CPU MNTSPECI When monitoring the special function module device set 5 Set Monitor in the Option menu of the circuit mode to 1 Monitor 8 7 8 Debug Function MELSEC QnA 6 The actual value and character string can be monitored The monitoring example is shown below MOV ABCD DO FLT K123 DO Scan 1ms Interval 200ms Status RUN Target CPU MNTSPECI 7 The devices that can be monitored is as follows a Bit Device X FX DX Y FY DY M L F SM V B SB T contract T coil ST
187. sed when a password is registered to the built in RAM 9 11 9 Maintenance Functions MELSEC QnA 9 7 System Display The following items can be checked in the Q2ASCPU by connecting the GPP function periph eral device 1 The following information about the module actually installed on the base a Type b Number of I O points c Head X Y No 2 The following information about the parameters set in the module a Type b Number of I O point c Model 3 The following information about the CPU module a RUN STOP key switch status b System setting switch status c LED on status Each item can be checked with the module details display in the display menu of the GPP function PC diagnosis mode or CPU panel 9 12 9 Maintenance Functions MELSEC QnA 9 8 LED Display The Q2ASCPU has an LED to indicate the CPU module operation status on the front of the CPU module The display details of each LED is described below 9 8 1 LED Display 1 The details of the LED display is shown below Indicates the CPU module operation status On When operating with the RUN STOP key switch at RUN or STEP RUN Off When stopped with the key switch at STOP PAUSE or STEP RUN Or when an error that stops operation is detected The program is written in during STOP and the RUN STOP key switch is set from STOP to RUN To turn on the LED again set the RUN STOP key switch from RUN gt STOP RUN or perform the re
188. set operation with the keys switch Indicates the CPU module error detection status On When a self diagnosis error that does not stop the operation except for battery error is detected Set the operation error set mode to continue in the parameter mode PC RAS setting Off Normal Flashing When an error that stops the operation is detected The detection status or enunciator F status are indicated for the CHK instruction When an error is detected with the CHK instruction or when the enunciator is turned on Normal When the latch clear is executed Indicates the CPU module and memory battery status BAT ALARM On When a battery error is due to battery voltage reduction is detected Off Normal Indicates the execution status of the boot operation On When the execution is complete Off When not executed 9 13 9 Maintenance Functions MELSEC QnA 2 The LED that is on can be turned off by the following operation Except for the reset operation Method to Turn LED Off ERROR Execute the LEDR instruction after resolving the cause of error After the cause of error is resolved cancel the er ror by operating the special relay SM50 and spe cial register SD50 Only for the operation Applicable LED continue errors 1 Valid x Invalid 1 Special relay and special register contents SM50 When switch from OFF to ON the error is canceled for the error code stored in the
189. software package GX Developer 8 Debug Function MELSEC QnA 2 Monitoring procedure for a local device Use the following procedure to monitor a local device Connect Q2ASCPU and peripheral device Display circuit in the circuit mode Switch to the monitor mode Press the ALT GRPH key Select 6 Monitoring test ss J ALT GRPH menu display Select H local device setting J Local device setting screen display Set the local device support to Enable Local device monitor setting Monitors local device of the program being displayed 3 Q2ASCPU and different GPPQ operations by versions Table 8 1 explains the operations when a loca device is set to DO to D99 and three programs A B and C are being run on Q2ASCPU Sequence of program execution is A gt B gt C gt END processing A gt B and so forth Table 8 1 The Q2ASCPU function version and different GPPQ operations Monitor device Function version B recorded Function version B not recorded SWO0a GPPQ Monitors DO of Monitors D100 after Monitors DO of Monitors D100 after program C SW1a GPPQ program C program c program C execution execution 7 A Local device Monitors DO of Monitors D100 after Monitors DO of Monitors D100 after program C a program C with no settin rogram C rogram C g prog execution prog execution SW2a GPPQ i Monitors DO of the Monitors DO after Local devi
190. source in the CPU module Output Refresh Selects whether to output the CPU module Yes No internal operation results to an external source Link Memory Access ignore module Buffer Memory Follows the simulation Selects the access method to each module data file 8 53 8 Debug Function MELSEC QnA When Depend on Simulation Data File is selected in the link memory buffer memory the access range can be check for each module when performing a simulation range setting check Simulation Range Control First Device Last Device Comment J gt PgUp Prev PgDn Next Esc Close Precaution 1 The simulation can be executed in the STEP RUN mode only 2 A memory card is necessary when performing the link memory buffer memory simulation with the simulation data file 3 The simulation can be executed from another station on the network or serial communica tion module However the simulation cannot be executed from multiple areas at once The simulation can only be executed from one area with Q2ASCPU 4 The simulation is performed by connecting the Q2ASCPU and GPP function peripheral device 5 Take Note of the following when executing the simulation e When direct input DX and direct output DY are used to handle the I O directly the actual I O is not accessed and accesses the device memory e All special function module instructions are not processed e When SP UNIT ERROR occurs FFFFH is displayed in
191. specified as the monitor conditions the monitor condition will not be met when the instruction at the corresponding step is not executed as described below a When the instruction at the corresponding step is skipped using the CJ SCJ or JMP instruction b When the corresponding instruction is an END instruction and an FEND instruction exists in the program 11 Do not reset the CPU module during monitor condition registration 8 9 8 Debug Function MELSEC QnA 8 2 2 Monitoring Test for Local Device The device set as a local device using the parameter device setting can be monitored and tested from a peripheral device This function enables debugging while checking the contents of local devices used by programs that are monitored by peripheral devices Perform a local device monitor setting for the Q2ASCPU in which programs A B and C are being run Then display program B to monitor its local devices Q2ASCPU Program execution A gt B gt C Program A Program B Program CG Displays data for local device of program B Set to local device monitor EX then monitor program B For local device from DO to D10 DO 4 when X10 is ON and D9 8 is displayed when X11 is ON Install GX Developer or SW20 GPPQ 1 Peripheral device Monitoring or testing a local device requires the GPP function software packages listed below e IBM PC AT or 100 compatible SW2IVD GPPQ type GPP function
192. specified the latch function device will not retain the latch if the lo cal device is specified or the device initialization is specified b The latch range setting is performed with the GPP function parameter mode device setting There is a range in which the latch clear key becomes valid or invalid in the latch range setting Refer to QnACPU PROGRAMMING MANUAL Fundamentals for each devices latch range POINTS The device details of the latch range is maintained with the battery AGBAT attached to the CPU module 1 A battery is necessary even if the sequence program is stored as a ROM ina memory card for usage 2 The latch range device contents are destroyed when the battery connector is disconnected from the CPU module connector when the PLC power is turned off 10 5 10 Other Functions MELSEC QnA 3 Clearing the Latch Range Device Data a To clear the latch range device contents and set the default values perform a latch clear When latch clear is performed the device details of devices in the unlatched range will be cleared as well However for the devices set in the parameter in a range where the latch clear key becomes invalid the device is not cleared even if a latch clear is performed b Refer ro Section 12 4 for the method to perform latch clear 10 4 Setting the Output Y Status when Changing from STOP Status to RUN Status When changing from RUN status to STOP status the RUN status output
193. speed END processing time constants scan may differ 5 Low Speed Scan Time a The low speed scan time is the total time of the time until the low speed execution type program execution is complete and low speed END processing time When a multiple low speed execution type programs are executed it is the total time of the time until the low speed execution type program execution is complete and low speed END processing time b The Q2ASCPU measures the low speed scan time and stores them in the special registers SD528 to SD535 1 By monitoring SD528 to SD535 the low speed scan time can be checked Current value Initial value Minimum value Maximum value L Low speed scan time less than 1 ms is stored unit s Low speed scan time in 1 ms unit is stored Example When 3 is stored in SD528 and 400 is stored in SD529 the low speed scan time is 3 4 ms 6 Low speed Execution Monitoring Time This is a timer to monitor the low speed execution type program execution time The default value is not set When monitoring the execution time of the low speed execution type program it can be set in the range of 10 ms to 2000 ms in the parameter mode PC RAS Setting Unit 10 ms When the low speed scan time exceeds the set low speed execution monitoring time it is set to PRG TIME OVER however the Q2ASCPU continues operations POINTS 1 1 The precision of each scan time stored in the special register is 0 1 ms T
194. stop is executed for a standby program 1 scan OFF is executed as scan execution and the program then stops Hence Ex Times is also incremented by 1 2 Ex Times is also incremented by 1 if the RET IRET instruction results in an er ror during execution of 1 scan OFF in the standby program At this time the execution type is Scan execution 8 17 8 Debug Function MELSEC QnA 8 4 2 interrupt Program List Monitor This is a function to display the number of executions of the interrupt program Application This is used when confirming the execution status of the interrupt program Function Description The number of executions of the interrupt program can be displayed Each operation is performed in the Monitor Test menu in the circuit mode 1 Select Program Batch Monitor 2 Select Interrupt Program List Monitor The following shows an execution example of the interrupt program list monitor Interrupt program list monitor Ex Times Comment Ox Ox Ox ox 0x Ox Ox Ox Ox Ox Ox 0x Ox Ox Ox OnN oahowon O oo PgUp Prev PgDn Next Esc Close The following describes the screen a Ex Times The number of times the program was executed is displayed setting the starting point of when the measurement is started as 0 When the number reaches 65536 times it is reset to 0 Also when the operation status is at RUN this value gets cleared to 0 b Comment The comment
195. tem separate it at least 25cm away from the PLC 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 e Do not drop or give impact to the battery fitted to the module Doing so may damage the battery causing battery liquid leakage in the battery Dispose of the battery that has been dropped or given impact without using it DISPOSAL PRECAUTIONS J When disposing of this product treat it as industrial waste e When disposing of this product treat it as industrial waste Revisions The manual number is noted at the lower left of the back cover Manual Number Sep 1996 SH NA 3599 A First printing Feb 1999 SH NA 3599 Additional mode B SWL15L1 GPPW GPP Function Software Package for Windows Dec 2002 SH NA 3599 C The contents of the function version B has been added This manual does not imply guarantee or implementation right for industrial ownership or implementation of other Section 2 2 Section 7 2 Sections 8 2 1 8 2 2 Section 19 8 Appendix 7 8 Partial correction Safety Precautions Contents Section 1 2 Section 3 3 1 Chapter 4 Section 5 3 Section 6 1 Section 8 10 1 Section 15 2 Section 16 1 Section 19 7 1 Section 21 3 1 Appendix 1 6 Appendix 2 Equivalent to Japanese version D Partial correction
196. ten in the clock element at the beginning Write the time data once to the clock element when using the Q2ASCPU Even if a part of the time data is being corrected all data must be written to the clock again When an invalid time data is written to the clock normal clock operation cannot be performed Example Month 13 Day 32 10 8 10 Other Functions MELSEC QnA 4 Reading Time Data a When reading the time data to the data register use the time data read instruction DATERD from the program The program example is shown below Read Request Xi The time data is read DATERD Do in D10 to D16 Refer to the QCPU Q mode QnACPU Programming Manual Common instructions for the details of the DATERD instruction b When reading the time data to SD210 to D213 turn on the SM213 from the sequence program or peripheral device 5 Special Relay and Special Register for Time Data Read Write The following describes the special relay and special register used for the reading of time data and setting data for clock operations a The following describes the special relays used for the clock function Device Name Description i ON the time data stored in D210 to SD213 e Writes time data to the special registers SM210 are written to the clock SD210 to D213 and performs clock Used to determine whether there was an error SM211 Clock data error when the time data was set Turns on when each data is not at
197. thernet module or etc the data exchange is performed with the PC CPU peripheral device and intelligent special function module l 3 When a refresh request is made from the network link module refresh processing is performed 4 When the trace point of the sampling trace is at every scan after END instruction execution the set device status is stored in the sampling trace area 5 The refresh processing with the MELSECNET MINI S3 automatic refresh function is performed Refer to Chapter 7 POINTS e When the constant scan function refer to Section 10 2 is set END processing time result is stored for the interval after END processing to the next scan e When executing the low speed program refer to Section 12 1 3 the low speed END processing besides the normal END processing is performed The low speed END processing performs the setting of the low speed program special relays and special registers 12 19 12 Overview of The Q2ASCPU Calculation Processing MELSEC QnA 12 2 RUN STOP PAUSE STEP RUN Operation Processing The Q2ASCPU has four types of operation states RUN STOP PAUSE and STEP RUN states The PC CPU operation processing is explained below 1 4 RUN Status Operation Processing a RUN status is when the sequence program operation is performed from step 0 gt END FEND instruction gt step 0 repeatedly b When entering the RUN state the output state saved at STOP by the paramet
198. tions as shown below 1 Step By Step Execution By Instruction One instruction is executed from the step that the program is stopped at and then stops again This can be used to check the device status for executing each command Sequence Program Example When Executed from Step 0 o Moov l LD XO x001 KA OUT Y10 2 MOV Y020 DO LD X1 y One instruction is MOV K4Y20 DO executed from the Lee OUT Y11 execution command from the peripheral X002 H H nrsrT Do device Fig 8 2 Step By Step Execution By Command 2 Step By Step Execution by Number of Repeats Specification The program is executed for a specified number of loops 1 to 32767 from the presently stopped step or step 0 then stops at a break point Sequence Program Example When Executed from Step 0 When Stopping at Step 8 x000 LD Xo errr ouro ar P OUT Y10 Specified Scan MOV Y020 DO LD X1 e MOV K4Y20 DO Execution Yo11 OUT YTT o X002 LD X2 o H H sT bo voon N eo a l Fig 8 3 Step By Step Execution for the Number of Times to Repeat 8 38 8 Debug Function MELSEC QnA Operation Procedure The step by step execution operation is performed in the following manner Each operation is performed in the Monitor screen in the circuit mode debug 1 Select B Step Run Step Run 1 From Current Step 2 Start Step Pointer 0 2 Option 1 of Retries 1 Times 2 Repeating Interval 1000 3 Break Point
199. to Q2ASCPU Model O f Connection method Accessible device range A985GOT Direct CPU connection A975GOT Computer link connection AS70GOT GG Link connection The entire Q2ASCPU device range is accessible oor MELSEONET I conan For details refer to SW_ D5C GOTR PACK Operating Manual AQ56WGOT MELSECNET 10 connection A951GOT Bus connection 3 _ System Configuration MELSEC QnA f Accessible range of computer link module A1SJ71UC24 includes CPU module host station where A1SJ71UC24 is attached and other stations on host station network Can not access other stations on other networks under MELSECNET 10 network system routing function Accessible range of serial communication module AJ71QC24 includes host station other stations on host station network and other stations relayed through maximum of seven stations via routing function g When the intelligent communication module AD51H S3 accesses to Q2ASCPU QnACPU on other stations in the network only the control table format 1 can be used The control table format 2 cannot be used However even with the control table format 1 access to other networks cannot be performed 2 Software package The following is Q2ASCPU system startup software packages for program creation Peripheral device for the Software package for GPP function system startup IBM PC AT or 100 GX Developer compatible SW OIVD GPPQ Set to the following PC CPU type using peripheral device
200. tored ting data Upon setting the head device number establishes a number of points corresponding to the number of specified stations total number of stations and refreshes the entire area Also refreshes the input module area Output data Use 16 points per unit for setting Batch refresh Sets the device in which the batch refresh data received from a word device for re remote station is stored ceiving data Upon setting the head device number establishes a number of points corresponding to the number of specified stations total number of stations and refreshes the entire area Remote device Also refreshes the input output module area RWr Use one point per unit for setting Batch refresh de Sets the device in which the batch refresh data transmitted to a vice for transmit remote station is stored ting data Upon setting the head device number establishes a number of points corresponding to the number of specified stations total number of stations and refreshes the entire area Remote device Also refreshes the input output module area RWw e Use one point per unit for setting Receiving buffer specification for e Sets capacities of the receiving buffer for each transient station 80 to 4096 transient station Transmission buff er specification for e Sets capacities of the transmitting buffer for each transient station 80 to 4096 transient station Special relay batch refresh de e Sets the destin
201. ue specification a system saving processing is per formed l c When a momentary power failure occurs the operation processing is continued d Even if the operation is interrupted due to momentary power failure the watchdog timer WDT measurement continues For example if the GPP function parameter mode WDT setting is set at 200 ms when a momentary failure of 15 ms occurs at scan time 190 ms the watchdog error is set Momentary power failure occurrence Power recovery END 0 N END Q2ASCPU interrupts the operation 2 When a power failure occurs for more than the permitted power failure time Q2ASCPU is reset When the reset operation is performed by turning the PLC power on or by performing reset operation using the RUN STOP key switch of the CPU module the same operation processing is performed 12 22 12 Overview of The Q2ASCPU Calculation Processing MELSEC QnA 12 4 Data Clear Processing The Q2ASCPU clears all data except for the following when a reset operation is performed with a RUN STOP key switch RUN STOP RESET or power ON OFF gt ON 1 Internal RAM data except for when there is a memory clear specification at boot specifi cation 1 2 Data in the memory card 3 Device data with latch specification 4 File register data 5 Local device data 6 Failure history data when special relay SD storage 1 Refer to QnACPU PROGRAMMING MANUAL Fundamentals for boot specifications Data
202. unction Module Instructions Appendix 22 APPENDIX 2 Special Relay List 0 eee cc te teen en ene eee Appendix 25 APPENDIX 3 Special Register List 0 0 c ccc ccc eee eee eee eens Appendix 36 APPENDIX 4 Precaution Items for Utilizing Existing MELSEC A Series Programs in the Q2ASCPU cn eee en een eee eee teen e teens Appendix 52 APPENDIX 4 1 Instructions 2 0 0 2 0 cece cece ee tee eee eens Appendix 52 APPENDIX 4 2 DeviceS 0 0 0 eect eee tees Appendix 58 APPENDIX 4 3 Parameters 1 2 ccc ccc ence etnies Appendix 59 APPENDIX 4 4 Timer and Interrupt Counter Operation 00 Appendix 60 APPENDIX 4 5 Sequence Program Statement and Note Appendix 61 APPENDIX 4 6 Microcomputer Program 0 eee eee eee eee Appendix 62 APPENDIX 4 7 Comments 0 0 c cece eee eee ee teenies Appendix 63 APPENDIX 4 8 Constant Scan Function and Error Check Function Appendix 63 APPENDIX 4 9 I O Control Method 22 0 0 0 2 eee eee eee Appendix 63 APPENDIX 4 10 Data Link System 0 0 0 ccc eee eee Appendix 63 APPENDIX 4 11 Index Register Processing 0 cece eee eee Appendix 64 APPENDIX 4 12 CHK Instruction and IX Instruction 004 Appendix 685 APPENDIX 4 13 Accessing File Register R with an Instruction Appendix 65 APPENDIX 5 Error Code Return to Request Origin during General Data Processing Appendix 66 APPENDIX 5 1 Error Code
203. unication Module A1SJ71QC24 GPP Function GPP Function Peripheral Device A Peripheral Device B Precaution Refer to Section 8 3 8 57 9 Maintenance Functions MELSEC QnA 9 Maintenance Functions 9 1 Function List The following is the list of maintenance functions Watchdog timer Function to supervise the watchdog error due to on CPU module hardware and program errors Section 9 2 Self diagnosis function Function to diagnose errors in Q2ASCPU Section 9 3 Eailure histor Function to store the diagnosis results in the y failure history Section 9 4 System protect Function to set enable disable of the read write for y P the Q2ASCPU file Section 9 5 Password registration Function to prohibit operations of the CPU module Section 9 6 memory from GPP function Function to monitor the system configuration by isp System display connecting the GPP function peripheral device Section 9 7 Function to display the CPU module operation LED display status with the LED located on the front of the Section 9 8 CPU module Displays whether the CPU module operation is d gt LED display normal or has an error Section 9 8 1 an Sets the LED display priority according to the Priority setting error definition Section 9 8 2 Refer to GX Developer OPERATING MANUAL or SWOIIVD GPPQ OPERATING MANUAL Online for details of the GPP function operation method POINT An I O module that is online cannot be replac
204. us from an external GPP function intelligent special function module and remote contact source The serial communication module is used as the example to describe the intelligent special function module 10 6 1 Remote RUN STOP The remote RUN STOP performs RUN STOP of the Q2ASCPU from an external source with the CPU module RUN STOP key switch at RUN 1 2 3 Remote RUN STOP Application Using remote RUN STOP for the following remote operations are useful a When the CPU module is at a position out of reach b When performing RUN STOP of the control board CPU module from an external source Calculations during Remote RUN STOP The program calculation that performs remote RUN STOP are as follows a Remote STOP Execute the program to the END instruction and enters the STOP state b 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 Remote RUN STOP Method There are two ways to perform remote RUN STOP a Remote RUN contact method The remote RUN contact is set with the GPP function parameter mode PC system setting The device range that can be set is input XO to 1FFF 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 CPU module enters the RUN state 2 When the remote RUN contact is ON the CPU module enters the STOP state
205. utput 16 points 9 Output 16 points Input 16 points Input 16 points Input 16 points Input 16 points Output 16 points X20 X30 Y40 Y50 Y60 Y70 to to to to to to to XOF X1F X2F XSF Y4F Y5F Y6F YF Pg These 1 O numbers are unchanged This module is replaced with 32 point module Change I O numbers into X80 9F X00 X10 to b I O numbers allocated when I O allocation is made using GPP function 1 O allocation example A1Sx40 Basic A1SX41 A1S38B A18X40 Power Supply i A1S61P Extension Cable I I Extention 1 I Power Supply E i Extension Cable I l I VVVVV VV VV VV OY vVvVVVV VV VV VV VY ARAKRAAAAAAA A v ge Nex VO allocation example using GPP function 2 VO numbers allocated after I O allocation is made using GPP function and module replacement is performed Power supply module CPU module Input 16 points Input 32 points Input 16 points Input 16 points Output 16 points Output 16 points Output 16 points Output 16 points X00 X80 X20 X30 Y40 Y50 Y60 Y70 to to te to to to to to XOF XQF X2F X3F Y4F Y5F Y6F Y7F POINT When 1st XY has been set on the I O allocation screen to change the I O numbers also set 1st XY of the module next to the new module to keep the I O numbers of the next module and later unchanged In the above example since 1st XY of Slot 2 was set for 20 consecutive 1 O numbers starting w
206. was accepted by the GPP function the PAUSE state contact SM204 is turned on When the scan after the PAUSE state 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 from the GPP function the se quence program calculations are performed again from step 0 Remote PAUSE _ OFF command Remote RUN command XON When SM204 PAUSE condition met RUN PAUSE state PAUSE state Fig 10 7 PAUSE Time Chart with GPP function To set the output Y ON OFF status when change to the PAUSE state perform an inter lock with the PAUSE state contact SM204 M20 Y070 Y70 ON OFF is determined with the lt ON OFF of the M20 in the PAUSE state X000 SM204 H Yo Turns off at PAUSE state Y072 Turns on at PAUSE state 10 15 10 Other Functions MELSEC QnA 10 6 4 Remote RESET The remote RESET resets the Q2ASCPU from an external source when the CPU module is at STOP state Even if the CPU module RUN STOP key switch is at RUN the reset can be performed when the CPU module is stopped and an error that can be detected by the self diagnosis function occurs POINT Remote RESET cannot be performed when the CPU module is at RUN state 1 Remote RESET Application Remote RESET can reset the CPU module remotely when an error occurs for which the CPU module cannot be operated directly 2 Remote RESET Method The remote RESET ca
207. xecutes for instructions such as CALL and JMP b Every Interruption Executes for every interrupt program c At Instruction Execution Executes for every PTRAEXE instruction 8 Debug Function MELSEC QnA 3 Trigger Point Setting This sets the point to execute the trigger Select one from the following a At Instruction Execution The trigger is when the PTRA instruction is executed b At Request of PDT The trigger is when a trigger operation is performed from the GPP function peripheral device c Specify Detail Condition Sets the device and step no The setting example is shown below The setting method and trigger execution timing is the same as setting the monitor condition in Section 8 2 Monitor Functions Trigger Pt Setting Device Current Value INE DEE 1 x Word Device 2 BitDevice 2 Step lt Always gt canceleN gt Space Select Esc Close The devices that can be set in the detailed condition is as follows e Bit Device X FX Y FY M L F SM V B SB T contact ST contact C contact JO X JO Y JO B JO SB and BLLI s e Word Device T current value ST current value C current value D SD FD W SW R Z ZR UL a slw and usw The foliowing qualification can be set for the above devices e Bit device number of digits specification e Word device bit number specification The time program name step and branch factor when the trace was ex
Download Pdf Manuals
Related Search
Related Contents
PARTS GUIDE - Hunter Fan YANG Explorer - MG FireProof User Guide Version 2.20 Daewoo 14Q2 CRT Television User Manual PERMETHRIN 13.3% - KellySolutions.com VMware View-Administratorhandbuch Manual de Instruções Documentation - edataconsulting DCR-DVD910 - CNET Content Solutions Label - Backed By Bayer Copyright © All rights reserved.
Failed to retrieve file