Delta · AH500 · 779 стр.

AH500 Programming Manual

Read online

Related manuals

Contents

Document text

Revision History

AH500 Programming Manual Revision History Version Revision Date 1st The first version is published. 2012/11/09 2nd 1. Chapter 1: update the model description in section 1.1.2 2. Chapter 2: update device list in section 2.1.1, latched areas in the device range in section 2.1.4, strings in section 2.2.3, special auxiliary relays in section 2.2.7, refresh time of special data registers in section 2.2.8, special data registers in section 2.2.14, refresh time of special data registers in section 2.2.15, additional remarks on special auxiliary relays and special data registers in section 2.2.16. 3. Chapter 3: add new instructions of API0117, API0118, API0708 and API1812. 4. Chapter 4:

update restrictions on the use of the instructions in section 4.2. 5. Chapter 6: add new instructions of API0114, API0204, API0205, API0212, API0217, API0218, API0219, API0310, API0702, API0703, API0705, API0707, API1000, API1002, API1003, API1004, API1301, API1510, API1516, API1701, API1702, API1703, API1704, API1800, API1803, API1806, API1807, API1809, API1810, API1811, API2100, API2103, API2108, API2110, API2200, API2201, API2202, API2203, API2204, API2205, and API2300. 6. Chapter 7: update contents of 7.1.1, 7.1.2, 7.1.3, 7.1.4, 7.1.8, 7.1.9, and 7.1.10. 2016/08/15

Page 2

Contents

AH500 Programming Manual Contents Chapter 1 Introduction 1.1 Overview .................................................................................................. 1-2 1.1.1 Related Manuals ............................................................................... 1-2 1.1.2 Model Description .............................................................................. 1-2 1.2 Software ................................................................................................... 1-9 1.2.1 Program Editor ..................................................................................

1-9 1.2.2 Program Organization Units and Tasks ............................................1-10 Chapter 2 Devices 2.1 Introduction of Devices ............................................................................. 2-2 2.1.1 Devise List ......................................................................................... 2-2 2.1.2 Basic Structure of I/O Storages ......................................................... 2-3 2.1.3 Relation between the PLC Action and the Device Type .................... 2-4 2.1.4 Latched Areas in the Device Range ..................................................

2-5 2.2 Functions of Devices ................................................................................ 2-6 2.2.1 Values and Constants ........................................................................ 2-6 2.2.2 Floating-point Numbers ..................................................................... 2-7 2.2.2.1 Single-precision Floating-point Numbers ................................... 2-7 2.2.2.2 Double-precision Floating-point Numbers .................................. 2-8 2.2.2.3 Decimal Floating-point Numbers ................................................ 2-9 2.2.3 Strings ...............................................................................................

2-9 2.2.4 Input Relays .....................................................................................2-10 2.2.5 Output Relays .................................................................................. 2-11 2.2.6 Auxiliary Relays ................................................................................ 2-11 2.2.7 Special Auxiliary Relays ...................................................................

2-11 2.2.8 Refresh Time of Special Auxiliary Relays .........................................2-42 2.2.9 Stepping Relays ...............................................................................2-50 2.2.10 Timers ..............................................................................................2-51 2.2.11 Counters ...........................................................................................2-53 2.2.12 32-bit Counters .................................................................................2-54 2.2.13 Data Registers .................................................................................2-55 2.2.14 Special Data Registers .....................................................................2-56 2.2.15 Refresh Time of Special Data Registers ...........................................2-82 2.2.16 Additional Remarks on Special Auxiliary Relays and Special Data i

Page 3

Contents

Registers ......................................................................................... 2-83 2.2.17 Link Registers .................................................................................. 2-96 2.2.18 Index Registers ................................................................................ 2-96 Chapter 3 Instruction Tables 3.1 Instructions ............................................................................................ 3-2 3.1.1 Basic Instructions ............................................................................... 3-2 3.1.2 Applied Instructions ............................................................................

3-2 3.2 Instruction Tables ................................................................................... 3-3 3.2.1 Basic Instructions ............................................................................... 3-3 3.2.2 Applied Instructions ............................................................................ 3-4 3.2.3 Applied Instructions (Sorted Alphabetically) ....................................... 3-5 3.2.4 Device Tables ..................................................................................... 3-6 3.3 Lists of Basic Instructions ......................................................................

3-7 3.4 Lists of Applied Instructions ................................................................... 3-9 3.4.1 Applied Instructions ............................................................................ 3-9 3.4.2 Applied Instructions (Sorted Alphabetically) ..................................... 3-35 Chapter 4 Analog Input/Output Module 4.1 Composition of Applied Instructions ........................................................ 4-2 4.2 Restrictions on the Use of the Instructions .............................................. 4-5 4.3 Index Registers .......................................................................................

4-6 4.4 Pointer Registers .................................................................................... 4-7 4.5 Pointer Registers of Timers ..................................................................... 4-9 4.6 Pointer Registers of 16-bit Counters ..................................................... 4-10 4.7 Pointer Registers of 32-bit Counters ..................................................... 4-11 Chapter 5 Basic Instructions 5.1 List of Basic Instructions ........................................................................... 5-2 5.2 Basic Instructions ......................................................................................

5-3 Chapter 6 Applied Instructions 6.1 Comparison Instructions ............................................................................ 6-3 6.1.1 List of Comparison Instructions ......................................................... 6-3 6.1.2 Explanation of Comparison Instructions ............................................ 6-6 6.2 Arithmetic Instructions ............................................................................. 6-36 6.2.1 List of Arithmetic Instructions .......................................................... 6-36 6.2.2 Explanation of Arithmetic Instructions ............................................. 6-37 ii

Page 4

Contents

6.3 Data Conversion Instructions ...................................................................6-74 6.3.1 List of Data Conversion Instructions ................................................6-74 6.3.2 Explanation of Data Conversion Instructions ...................................6-75 6.4 Data Transfer Instructions ...................................................................... 6-112 6.4.1 List of Data Transfer Instructions ................................................... 6-112 6.4.2 Explanation of Data Transfer Instructions......................................

6-113 6.5 Jump Instructions ..................................................................................6-135 6.5.1 List of Jump Instructions ...............................................................6-135 6.5.2 Explanation of Jump Instructions ..................................................6-136 6.6 Program Execution Instructions .............................................................6-144 6.6.1 List of Program Execution Instructions ..........................................6-144 6.6.2 Explanation of Program Execution Instructions .............................6-148 6.7 I/O Refreshing Instructions ....................................................................6-152 6.7.1 List of I/O Refreshing Instructions .................................................6-152 6.7.2 Explanation of I/O Refreshing Instructions ....................................6-153 6.8 Convenience Instructions ......................................................................6-155 6.8.1 List of Convenience Instructions ...................................................6-155 6.8.2 Explanation of Convenience Instructions ......................................6-156 6.9 Logic Instructions ...................................................................................6-192 6.9.1 List of Logic Instructions ................................................................6-192 6.9.2 Explanation of Logic Instructions ...................................................6-193 6.10 Rotation Instructions ..............................................................................6-216 6.10.1 List of Rotation Instructions ...........................................................6-216 6.10.2 Explanation of Rotation Instructions ..............................................6-217 6.11 Basic Instructions ..................................................................................6-227 6.11.1 List of Basic Instructions ...............................................................6-227 6.11.2 Explanation of Basic Instructions ..................................................6-228 6.12 Shift Instructions ....................................................................................6-235 6.12.1 List of Shift Instructions .................................................................6-235 6.12.2 Explanation of Shift Instructions ....................................................6-236 6.13 Data Processing Instructions .................................................................6-261 6.13.1 List of Data Processing Instructions ..............................................6-261 6.13.2 Explanation of Data Processing Instructions .................................6-262 6.14 Structure Creation Instructions ..............................................................6-308 6.14.1 List of Structure Creation Instructions ...........................................6-308 6.14.2 Explanation of Structure Creation Instructions ..............................6-309 6.15 Module Instructions ...............................................................................6-316 6.15.1 List of Module Instructions ............................................................6-316 iii

Page 5