Example: marketing

MELSEC-Q/L Programming Manual (Structured Text)

Programming Manual (Structured Text) A - 1 A - 1 SAFETY PRECAUTIONS (Always read these precautions before use) Before using the MELSEC-Q series or MELSEC-L series PLC, thoroughly read the manuals attached to the products and the relevant manuals introduced in the attached manuals. Also pay careful attention to safety and handle the products properly. Please save the manuals attached to the products carefully to make them accessible when required, and always forward them to the end user. A - 2 A - 2 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 th

(Structured Text) A - 1 A - 1 • SAFETY PRECAUTIONS •

Tags:

  Programming, Texts, Structured, Structured text

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Advertisement

Transcription of MELSEC-Q/L Programming Manual (Structured Text)

1 Programming Manual (Structured Text) A - 1 A - 1 SAFETY PRECAUTIONS (Always read these precautions before use) Before using the MELSEC-Q series or MELSEC-L series PLC, thoroughly read the manuals attached to the products and the relevant manuals introduced in the attached manuals. Also pay careful attention to safety and handle the products properly. Please save the manuals attached to the products carefully to make them accessible when required, and always forward them to the end user. A - 2 A - 2 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 (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.

3 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. Notwithstanding the above, restrictions Mitsubishi may in its sole discretion, authorize use of the PRODUCT in one or more of the Prohibited Applications, provided that the usage of the PRODUCT is limited only for the specific applications agreed to by Mitsubishi and provided further that no special quality assurance or fail-safe, redundant or other safety features which exceed the general specifications of the PRODUCTs are required.

4 For details, please contact the Mitsubishi representative in your region. A - 3 A - 3 REVISIONS * The Manual number is given on the bottom left of the back cover. Print Date * Manual Number Revision Feb., 2003 SH (NA) 080366E-A First printing Jul., 2003 SH (NA) 080366E-B Correction Section , Section , Section , Section , Section , Section , Section , Section , Section , Chapter 7 Jun., 2004 SH (NA) 080366E-C Additional models Q12 PRHCPU, Q25 PRHCPU Correction Abbreviations and Generic Terms in This Manual Section , Section , Chapter 5, Chapter 6, Section , Section , Section , Chapter 7, WARRANTY Feb.

5 , 2006 SH (NA) 080366E-D Correction Section May, 2008 SH (NA) 080366E-E Correction Abbreviations and Generic Terms in This Manual , Section Oct., 2008 SH (NA) 080366E-F Additional models Q00 UJCPU, Q00 UCPU, Q01 UCPU, Q10 UDHCPU, Q10 UDEHCPU, Q20 UDHCPU, Q20 UDEHCPU Correction Abbreviations and Generic Terms in This Manual , Section , Section , Section Jan., 2009 SH (NA) 080366E-G Correction Section , Chapter 5 Jan., 2010 SH (NA) 080366E-H Additional models L02 CPU, L26 CPU-BT Addition CONDITIONS OF USE FOR THE PRODUCT, Appendix 2 Correction SAFETY PRECAUTIONS, About Manuals, Abbreviations and Generic Terms in This Manual , Section , Section , Section , Section , Section , Section , Section , Section , Section , Chapter 5, Section to , Section , Section , Chapter 6, Chapter 7,Appendix 1 A - 4 A - 4 * The Manual number is given on the bottom left of the back cover.

6 Print Date * Manual Number Revision Oct., 2010 SH (NA) 080366E-I Correction Section , Section , Section , Section Oct., 2014 SH (NA) 080366E-J Correction About Manuals, How to Use This Manual , Section Feb., 2019 SH (NA) 080366E-K Correction Abbreviations and Generic Terms in This Manual , Section Japanese Manual Version SH-080363-L 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 . 2003 MITSUBISHI ELECTRIC CORPORATION A - 5 A - 5 INTRODUCTION Thank you for choosing the Mitsubishi MELSOFT series Integrated FA software.

7 Read this Manual and make sure you understand the functions and performance of MELSEC series sequencer thoroughly in advance to ensure correct use. CONTENTS SAFETY PRECAUTIONS .. A- 1 CONDITIONS OF USE FOR THE PRODUCT .. A- 2 REVISIONS .. A- 3 INTRODUCTION .. A- 5 CONTENTS .. A- 5 About Manuals .. A-13 How to Use This Manual .. A-14 Abbreviations and Generic Terms in This Manual .. A-15 1. OVERVIEW 1- 1 to 1- 4 What Is the ST Language? .. 1- 1 Features of ST Program in MELSEC-Q/L Series .. 1- 3 ST Program Creating Procedure .. 1- 4 2. SYSTEM CONFIGURATION 2- 1 to 2- 3 System Configuration .. 2- 1 Applicable CPUs .. 2- 1 Programming tool for ST program .. 2- 1 ST program specifications.

8 2- 1 3. HANDLING OF CHARACTERS AND NUMERIC VALUES IN ST PROGRAMS 3- 1 to 3-16 Usable Characters .. 3- 1 Data Handling .. 3- 3 Data types .. 3- 3 About ANY type .. 3- 4 Array and structure .. 3- 5 Data Representation Methods .. 3- 8 Constants .. 3- 8 Labels .. 3-11 Devices .. 3-14 4. ST PROGRAM EXPRESSIONS 4- 1 to 4-33 Assignment Statement .. 4- 1 Operators .. 4- 2 Operator list .. 4- 2 Examples of using the operators .. 4- 4 A - 6 A - 6 Control Syntaxes .. 4- 6 Control syntax list .. 4- 6 Conditional statements.

9 4- 7 Repeat statement .. 4-15 Other control syntaxes .. 4-20 Precautions for use of control syntaxes .. 4-22 Call of Function Block .. 4-29 Comment .. 4-32 5. MELSEC FUNCTIONS 5- 1 to 5- 114 How the functions are described .. 5- 1 Output .. 5- 4 Output to device .. OUT_M .. 5- 4 Low-speed timer .. TIMER_M .. 5- 4 High-speed timer .. TIMER_H_M .. 5- 5 Counter .. COUNTER_M .. 5- 5 Set of device .. SET_M .. 5- 6 Reset of device .. RST_M .. 5- 6 Conversion of direct output into pulse .. DELTA_M .. 5- 7 1-Bit Shift .. 5- 8 1-bit shift of device .. SFT_M .. 5- 8 Termination .. 5- 9 Stop .. STOP_M .. 5- 9 Comparison Operation .. 5-10 Block data comparison (=).

10 BKCMP_EQ_M .. 5-10 Block data comparison (<>) .. BKCMP_NE_M .. 5-10 Block data comparison (>) .. BKCMP_GT_M .. 5-11 Block data comparison (<=) .. BKCMP_LE_M .. 5-11 Block data comparison (<) .. BKCMP_LT_M .. 5-12 Block data comparison (>=) .. BKCMP_GE_M .. 5-12 Arithmetic Operation .. 5-13 Addition of BCD 4-digit data (2 devices) .. BPLUS_M .. 5-13 Addition of BCD 4-digit data (3 devices) .. BPLUS_3_M .. 5-13 Subtraction of BCD 4-digit data (2 devices) .. BMINUS_M .. 5-14 Subtraction of BCD 4-digit data (3 devices) .. BMINUS_3_M .. 5-14 Addition of BCD 8-digit data (2 devices) .. DBPLUS_M .. 5-15 Addition of BCD 8-digit data (3 devices) .. DBPLUS_3_M .. 5-15 Subtraction of BCD 8-digit data (2 devices).


Related search queries