User ManualTable of ContentsSAFETY PRECAUTION3REVISIONS4CONTENTS5INTRODUCTION10CHAPTER 1 BASICS OF PROGRAMMABLE CONTROLLER111.1 Program111.2 Program Processing Procedure141.3 MELSEC-QnUD Module Configuration151.4 External I/O Signal and I/O Number211.5 System Configuration and I/O Number of Demonstration Machine24CHAPTER 2 OPERATING GX Works2252.1 Features of GX Works2272.1.1 MELSOFT iQ Works312.2 Basic Knowledge Required for Operating GX Works2332.2.1 Screen configuration in GX Works2332.2.2 Ladder editor352.2.3 Project442.3 Operation Before Creating Ladder Program462.3.1 Starting up GX Works2462.3.2 Creating a new project472.4 Preparation for Starting Up CPU492.5 Creating Ladder Program562.5.1 Creating a ladder program using the function keys562.5.2 Creating a ladder program using the tool buttons582.6 Converting Program (Ladder Conversion)602.7 Writing/Reading Data to/from Programmable Controller CPU612.8 Monitoring Ladder Program Status642.9 Diagnosing Programmable Controller CPU672.10 Editing Ladder Program692.10.1 Modifying a part of the ladder program692.10.2 Drawing/deleting lines712.10.3 Inserting/deleting rows742.10.4 Cutting/copying ladder program792.11 Verifying Data822.12 Saving Ladder Program832.12.1 Saving newly-created or overwritten projects832.12.2 Saving a project with another name842.13 Reading the saved project852.14 Opening Projects in Different Format862.15 Saving Projects in Different Format87CHAPTER 3 DEVICE AND PARAMETER OF PROGRAMMABLE CONTROLLER893.1 Device893.2 Parameter91CHAPTER 4 SEQUENCE AND BASIC INSTRUCTIONS -PART 1-954.1 List of Instruction Explained in this Chapter954.2 Differences between [OUT] and [SET] / [RST]984.3 Measuring Timer994.4 Counting by Counter1004.5 [PLS] Pulse (turns on the specified device for one scan at rising edge of an input condition.), [PLF] Pulf (turns on the specified device for one scan at falling edge of an input condition.)1084.6 [MC] Master Control (Start), [MCR] Master Control Reset (End)1144.7 [FEND] / [CJ] / [SCJ] / [CALL] / [RET]1184.7.1 [FEND] F end1184.7.2 [CJ] (Conditional jump: instataneous execution condition jump), [SCJ] (S conditional jump: execution condition jump after one scan)1214.7.3 [CALL (P)] Call, [RET] Return, Executes a subroutine program1254.8 Exercise1294.8.1 [Exercise 1]1294.8.2 [Exercise 2]1304.8.3 [Exercise 3]1324.8.4 [Exercise 4]133CHAPTER 5 BASIC INSTRUCTION -PART 2-1375.1 Notation of Values (Data)1375.2 Transfer Instruction1455.2.1 [MOV (P)] 16-bit data transfer1455.2.2 [BIN (P)] BCD → BIN data conversion instruction1525.2.3 [BCD (P)] BIN → BCD data conversion instruction1545.2.4 Example of specifying digit for bit devices and transferring data1575.2.5 [FMOV (P)] FMOV (Batch transfer of the same data), [BMOV (P)] BMOV (Batch transfer of the block data)1585.3 Comparison Operation Instruction1635.4 Arithmetic Operation Instruction1685.4.1 [+(P)] BIN 16-bit data addition, [-(P)] BIN 16-bit data subtraction1685.4.2 [* (P)] BIN 16-bit data multiplication, [/ (P)] BIN 16-bit data division1725.4.3 32-bit data instructions and their necessity1775.4.4 Calculation examples for multiplication and division including decimal points (when the multiplication or division is used)1795.5 Index Register and File Register1805.5.1 How to use index register Z1805.5.2 How to use file register R1825.6 External Setting of Timer/Counter Set Value and External Display of Current Value1855.7 Exercise1875.7.1 [Exercise 1] MOV1875.7.2 [Exercise 2] BIN and BCD conversion1885.7.3 [Exercise 3] FMOV1895.7.4 [Exercise 4] Comparison instruction1905.7.5 [Exercise 5] Addition and subtraction instructions1915.7.6 [Exercise 6] Multiplication and division instructions1925.7.7 [Exercise 7] D-multiplication and D-division193CHAPTER 6 HOW TO USE OTHER FUNCTIONS1956.1 Test Function at Online1956.1.1 Turning on and off the device "Y" forcibly1966.1.2 Setting and resetting the device "M"1986.1.3 Changing the current value of the device "T"1996.1.4 Reading error steps2006.1.5 Remote STOP and RUN2016.2 Forced I/O Assignment by Parameter Settings2026.3 How to Use Retentive Timers2046.4 Device Batch Replacement2066.4.1 Batch replacement of device numbers2066.4.2 Batch change of specified devices between normally open contacts and normally closed contacts2076.5 Online Program Change2086.6 Registering Devices2096.7 How to Create Comments2106.8 Setting Security for Projects2176.8.1 Setting and resetting security for projects2186.8.2 Managing (adding, deleting, and changing) users2196.8.3 Logging in projects2236.8.4 Changing access authority for each access level2246.9 Sampling Trace Function225CHAPTER 7 PROGRAMMING INTELLIGENT FUNCTION MODULE2317.1 Intelligent Function Module2317.2 Data Communication between Intelligent Function Modules and CPUs2327.2.1 I/O signals to CPUs2337.2.2 Data communication with intelligent function modules2347.3 Communication with Intelligent Function Module2357.3.1 Communication methods with intelligent function modules2357.4 Intelligent Function Module System in Demonstration Machine2367.5 Q64AD Analog/Digital Converter Module2377.5.1 Names of parts2377.5.2 A/D conversion characteristics2387.5.3 List of I/O signals and buffer memory assignment2397.5.4 Adding or setting intelligent function module data2427.5.5 Exercise with the demonstration machine2467.6 Q62DAN Digital/Analog Converter Module2477.6.1 Names of parts2477.6.2 D/A conversion characteristics2487.6.3 List of I/O signals and buffer memory assignment2497.6.4 Adding or setting intelligent function module data2517.6.5 Exercise with the demonstration machine255CHAPTER 8 SIMULATION FUNCTION2578.1 Simulation Function2578.2 Starting/Stopping Simulation2578.3 Debugging with Example Program2588.3.1 Monitoring and testing device status259CHAPTER 9 MAINTENANCE2619.1 Typical Trouble2619.2 Maintenance2629.3 Consumable Product2639.4 Service Life of Output Relay2649.5 Spare Product2659.6 Using Support Equipment267APPENDIX269Appendix 1 I/O Control Mode269Appendix 1.1 Direct mode269Appendix 1.2 Refresh mode270Appendix 1.3 Comparisons between the direct mode and refresh mode271Appendix 2 Special Relay272Appendix 3 Special Register273Appendix 4 Application Program Example274Appendix 4.1 Flip-flop ladder274Appendix 4.2 One shot ladder276Appendix 4.3 Long-time timer277Appendix 4.4 Off delay timer278Appendix 4.5 On delay timer (momentary input)279Appendix 4.6 ON-OFF repeat ladder280Appendix 4.7 Preventing chattering input280Appendix 4.8 Ladders with a common line281Appendix 4.9 Time control program282Appendix 4.10 Clock ladder283Appendix 4.10.1 Clock function (supplement)284Appendix 4.11 Starting stardelta operation of electrical machinery286Appendix 4.12 Displaying elapsed time and outputting before time limit287Appendix 4.13 Retentive timer288Appendix 4.14 Switching timer set value externally289Appendix 4.15 Setting counters externally290Appendix 4.16 Measuring operation time292Appendix 4.17 Measuring cycle time292Appendix 4.18 Application example of (D) CML (P)293Appendix 4.19 Program showing divided value of 4-digit BIN value to 4 places of decimals294Appendix 4.20 Carriage line control297Appendix 4.21 Compressor sequential operation using ring counters299Appendix 4.22 Application example of positioning control303Appendix 4.23 Application example using index Z304Appendix 4.24 Application example of FIFO instruction306Appendix 4.25 Application example of data shift309Appendix 4.26 Example of operation program calculating square root of data312Appendix 4.27 Example of operation program calculating n-th power of data313Appendix 4.28 Program using digital switch to import data314Appendix 4.29 Displaying number of faults and fault numbers using fault detection program315Appendix 5 Memory and File to be Handled by CPU Module319Appendix 6. Comparison with GX Developer (changes)321Appendix 7 Customizing Shortcut Keys330Appendix 8 Indexing332Appendix 9 FB336Appendix 9.1 FB336Appendix 9.1.1 Conversion into components336Appendix 9.1.2 Advantages of using FBs337Appendix 9.1.3 FB Libraries339Appendix 9.1.4 Development tool341Appendix 9.1.5 FB specifications and precautions341Appendix 9.2 Creating a program by using an FB library342Appendx 9.2.1 Programs to be created342Appendix 9.2.2 Preparations prior to use of FB libraries343Appendix 9.2.3 Importing an FB library to projects344Appendix 9.2.4 Pasting FBs345Appendix 9.2.5 Setting names of the pasted FBs346Appendix 9.2.6 Creating input and output ladders347Appendix 9.2.7 Performing conversion/compilation347Appendix 9.2.8 Writing sequence programs348Appendix 9.2.9 Operation check348Size: 13 MBPages: 350Language: EnglishOpen manual