1. Trang chủ
  2. » Tất cả

MELSEC ql programming manual (common instruction)

1.3K 8 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

MELSEC Q/L Programming Manual (Common Instruction) Programmable Controller Programming Manual (Common Instruction 1/2) Q/L series MITSUBISHI ELECTRIC MITSUBISHI ELECTRIC 01042010 SH(NA) 080809ENG Vers[.]

MITSUBISHI ELECTRIC Programmable Controller Programming Manual (Common Instruction 1/2) Q/L series 01042010 SH(NA)-080809ENG Version E MITSUBISHI ELECTRIC INDUSTRIAL AUTOMATION SAFETY PRECAUTIONS (Always read these cautions before using the product) Before using this product, please read this manual and the related manuals introduced in this manual, and pay full attention to safety to handle the product correctly Please store this manual in a safe place and make it accessible when required Always forward a copy of the manual to the end user A-1 CONDITIONS OF USE FOR THE PRODUCT (1) Mitsubishi programmable controller ("the PRODUCT") shall be used in conditions; i) where any problem, fault or failure occurring in the PRODUCT, if any, shall not lead to any major or serious accident; and ii) where the backup and fail-safe function are systematically or automatically provided outside of the PRODUCT for the case of any problem, fault or failure occurring in the PRODUCT (2) The PRODUCT has been designed and manufactured for the purpose of being used in general industries MITSUBISHI SHALL HAVE NO RESPONSIBILITY OR LIABILITY (INCLUDING, BUT NOT LIMITED TO ANY AND ALL RESPONSIBILITY OR LIABILITY BASED ON CONTRACT, WARRANTY, TORT, PRODUCT LIABILITY) FOR ANY INJURY OR DEATH TO PERSONS OR LOSS OR DAMAGE TO PROPERTY CAUSED BY the PRODUCT THAT ARE OPERATED OR USED IN APPLICATION NOT INTENDED OR EXCLUDED BY INSTRUCTIONS, PRECAUTIONS, OR WARNING CONTAINED IN MITSUBISHI'S USER, INSTRUCTION AND/OR SAFETY MANUALS, TECHNICAL BULLETINS AND GUIDELINES FOR the PRODUCT ("Prohibited Application") Prohibited Applications include, but not limited to, the use of the PRODUCT in; • Nuclear Power Plants and any other power plants operated by Power companies, and/or any other cases in which the public could be affected if any problem or fault occurs in the PRODUCT • Railway companies or Public service purposes, and/or any other cases in which establishment of a special quality assurance system is required by the Purchaser or End User • Aircraft or Aerospace, Medical applications, Train equipment, transport equipment such as Elevator and Escalator, Incineration and Fuel devices, Vehicles, Manned transportation, Equipment for Recreation and Amusement, and Safety devices, handling of Nuclear or Hazardous Materials or Chemicals, Mining and Drilling, and/or other applications where there is a significant risk of injury to the public or property A-2 REVISIONS *The manual number is given on the bottom left of the back cover Print Date Dec., 2008 *Manual Number SH (NA)-080809ENG-A First edition Revision Mar., 2009 SH (NA)-080809ENG-B Partial corrections Section 3.3, 3.8, 5.1.3, 6.1.7, 6.2.14, 7.3.3, 7.11.18, 7.11.19, 7.12.1.5,12.7, Jul., 2009 SH (NA)-080809ENG-C 7.12.11, 7.12.25, 7.12.26, 7.13.4, 7.13.5, 7.15.7, 7.15.8 Revision because of function support by the Universal model QCPU having a serial number "11043" or later Partial corrections Section 2.1, 2.5.6, 2.5.18, 2.5.20, 7.6.9, 7.12.7, 7.12.11, 12.1.3, 12.1.4, APPENDIX 1.2, 1.3, 1.4.2, 3, 5.1 Additions Section 2.5.16, 7.16, 7.18.10 Modification Section 2.5.21 2.5.22, Section 2.5.22 Section 9.14 9.15.2 7.6.1, Section 9.15 7.16.3, Section 9.1 7.18.9, Section 9.2 7.18.11, Section 7.18.13, Section 9.5 7.18.14, Section 9.6 7.18.15, Section 7.18.17, Section 9.9 7.18.18, Section 9.10 7.18.12, Section 9.4 9.7 7.18.16, Section 9.8 9.11 9.12.1 7.18.19, Section 9.1, Section 9.11.1 9.1.1, Section 9.11.2 9.1.2, Section 9.12 9.2, Section 9.2.1, Chapter 10 Jan., 2010 7.6.10, 7.16.1, Section 7.16.2, Section 9.15.3 9.3 2.5.21, Section 9.13 7.16, Section 9.15.1 11, Chapter 11 10 SH (NA)-080809ENG-D Model Additions L02CPU, L26CPU-BT Partial corrections SAFETY PRECAUTIONS, INTRODUCTION, MANUALS, Chapter 1, Section 2.3.2, 2.4.1, 2.4.2, 2.4.3, 2.4.4, 2.5.1, 2.5.6, 2.5.18, 3.2.4, 3.3, 3.4, 3.5.1, 3.5.2, 3.6, 3.8, 3.10, Chapter 4, 5, 6, 7, 8, 9, 10, 11, 12, APPENDIX 1.1, 2.1, 3, 4, INDEX, Warranty Additions CONDITIONS OF USE FOR THE PRODUCT, Section 2.6.1, 2.6.2, 2.7.1, 2.7.2, 2.8.1, 2.9.1, 7.18.20, 7.18.21, APPENDIX 1.5 Modification Section 2.5.19 2.6, Section 2.5.20 2.7, Section 2.5.21 2.8, Section 2.5.22 2.9 Japanese Manual Version SH-080804-F This manual confers no industrial property rights or any rights of any other kind, nor does it confer any patent licenses Mitsubishi Electric Corporation cannot be held responsible for any problems involving industrial property rights which may occur as a result of using the contents noted in this manual © 2008 MITSUBISHI ELECTRIC CORPORATION A-3 *The manual number is given on the bottom left of the back cover Print Date *Manual Number Apr., 2010 SH (NA)-080809ENG-E Revision Revision because of function support by the Universal model QCPU having a serial number "12012" or later Model Additions Q50UDEHCPU, Q100UDEHCPU Partial corrections INTRODUCTION, MANUALS, Section 1.1, 1.2, 3.5.2, 7.6.10, 7.11.7, 7.14.3, 7.18.2, 7.18.3, 7.18.9, 9.1.1, 8.2.1, 9.1, 12.1.3, 12.1.4, APPENDIX 1.4.1, 1.4.2, 1.5.1, 1.5.2, 2, A-4 INTRODUCTION This document is the MELSEC-Q/L Programming Manual (Common Instructions) It describes the common instructions required for programming of the QCPU and LCPU • "Common instructions" are all instructions except for dedicated instructions for such intelligent function modules as QJ71C24N and QJ71E71-100; PID control instructions; SFC instructions; ST instructions; instructions for socket communication features; trigger logging instructions; and dedicated instructions for LPCU positioning/counter functionality Please read this manual and other relevant manuals carefully before using this product Please familiarize yourself with the functions and performance of the Q series and L series sequencers in order to handle this product correctly ■ Relevant CPU module CPU module Model Basic model QCPU Q00JCPU, Q00CPU, Q01CPU High Perfomance model QCPU Q02CPU, Q02HCPU, Q06HCPU, Q12HCPU, Q25HCPU Process CPU Q02PHCPU, Q06PHCPU, Q12PHCPU, Q25PHCPU Redundant CPU Q12PRHCPU, Q25PRHCPU Q00UJCPU, Q00UCPU, Q01UCPU, Q02UCPU, Q03UDCPU, Q04UDHCPU, Q06UDHCPU, Q10UDHCPU, Q13UDHCPU, Universal model QCPU Q20UDHCPU, Q26UDHCPU, Q03UDECPU, Q04UDEHCPU, Q06UDEHCPU, Q10UDEHCPU, Q13UDEHCPU, Q20UDEHCPU, Q26UDEHCPU, Q50UDEHCPU, Q100UDEHCPU LCPU L02CPU, L26CPU-BT A-5 CONTENTS SAFETY PRECAUTIONS A - CONDITIONS OF USE FOR THE PRODUCT A - REVISIONS .A - INTRODUCTION .A - CONTENTS .A - MANUALS A - 17 Common Instructions 1/2 GENERAL DESCRIPTION 1.1 Related Programming Manuals 1-2 1.2 Abbreviations and Generic Names 1-5 INSTRUCTION TABLES - to - 62 2.1 Types of Instructions 2-2 2.2 How to Read Instruction Tables 2-4 2.3 Sequence Instructions 2-6 2.3.1 2.3.2 2.3.3 2.3.4 2.3.5 2.3.6 2.3.7 2.4 2.5 Contact instructions - Association instructions - Output instructions - Shift instructions - Master control instructions - Termination instructions - Other instructions - Basic instructions 2.4.1 2.4.2 2.4.3 2.4.4 2.4.5 2.4.6 2.4.7 2.4.8 - 10 Comparison operation instructions - 10 Arithmetic operation instructions - 16 Data conversion instructions - 22 Data transfer instructions - 24 Program branch instructions - 27 Program execution control instructions - 27 I/O refresh instructions - 27 Other convenient instructions - 28 Application Instructions 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 2.5.6 2.5.7 2.5.8 2.5.9 2.5.10 A-6 - to - - 29 Logical operation instructions - 29 Rotation instructions - 32 Shift instructions - 33 Bit processing instructions - 34 Data processing instructions - 35 Structure creation instructions - 38 Data table operation instructions - 40 Buffer memory access instructions - 41 Display instructions - 41 Debugging and failure diagnosis instructions - 42 2.5.11 2.5.12 2.5.13 2.5.14 2.5.15 2.5.16 2.5.17 2.5.18 2.6 Instructions for Data Link 2.6.1 2.6.2 2.7 Instructions for Network refresh - 59 Instructions for Reading/Writing Routing Information - 59 - 60 Instructions for Writing to the CPU Shared Memory of Host CPU - 60 Instructions for Reading from the CPU Shared Memory of Another CPU - 60 Multiple CPU high-speed transmission dedicated instruction 2.8.1 2.9 - 59 Multiple CPU dedicated instruction 2.7.1 2.7.2 2.8 Character string processing instructions - 43 Special function instructions - 46 Data control instructions - 49 Switching instructions - 51 Clock instructions - 52 Expansion clock instruction - 55 Program control instructions - 56 Other instructions - 57 - 61 Instructions for Multiple CPU high-speed transmission dedicated - 61 Redundant system instructions (For Redundant CPU) 2.9.1 - 62 Instructions for Redundant system (For Redundant CPU) - 62 CONFIGURATION OF INSTRUCTIONS - to - 48 3.1 Configuration of Instructions 3-2 3.2 Designating Data 3-3 3.2.1 3.2.2 3.2.3 3.2.4 3.2.5 Using bit data - Using word (16 bits) data - Using double word data (32 bits) - Using real number data - Using character string data - 11 3.3 Indexing - 12 3.4 Indirect Specification - 23 3.5 Reducing Instruction Processing Time - 25 3.5.1 3.5.2 Subset Processing - 25 Operation processing with standard device registers (Z) (Universal model QCPU and LCPU only) - 26 3.6 Cautions on Programming (Operation Errors) - 27 3.7 Conditions for Execution of Instructions - 33 3.8 Counting Step Number - 34 3.9 Operation when the OUT, SET/RST, or PLS/PLF Instructions Use the Same Device - 40 3.10 Precautions for Use of File Registers HOW TO READ INSTRUCTIONS SEQUENCE INSTRUCTIONS 5.1 Contact Instructions 5.1.1 - 45 - to - - to - 60 5-2 Operation start, series connection, parallel connection (LD,LDI,AND,ANI,OR,ORI) - A-7 5.1.2 5.1.3 5.2 Association Instructions 5.2.1 5.2.2 5.2.3 5.2.4 5.2.5 5.3 5.5 5.6 5.7 Comparison Operation Instructions 6.1.1 6.1.2 6.1.3 6.1.4 6.1.5 6.1.6 6.1.7 6.2 A-8 - to - 172 6-2 BIN 16-bit data comparisons (=,,>,,D,E,ED,$ MELSEC- Q... manual, Manual name :Other CPU module manuals Description < Manual number (model code) > CPU module 1) 2) 3) 4) 5) 6) ■User’s manual Specifications of the hardware (CPU modules, QCPU User''s Manual. .. Programming Manual (MELSAP-L) Programming methods, specifications, and functions < SH-080072 (13JC03) > for SFC (MELSAP-L) programs MELSEC- Q /L Programming Manual (Structured Text) Programming

Ngày đăng: 13/11/2022, 21:08

Xem thêm: