3
Contents
Contents
Introduction ............................................................
1
Revision History ....................................................
2
Instructions Lookup Sheet 1 ................................
6
Instructions Lookup Sheet 2 ................................
11
Guide on Quick Reference....................................
18
Chapter 1 Overview ...............................................
20
1.1 Introduction to the H3U Series PLC ...........................
20
1.2 PLC Operating Principle .............................................
21
Chapter 2 Pre-programming Precautions ...........
26
2.1 Programming Software ...............................................
26
2.2 Communication Cable ................................................
26
2.3 Introduction to AutoShop ............................................
26
Chapter 3 Elements ...............................................
32
3.1 Table of Elements .......................................................
33
3.2 Input/Output Relay......................................................
34
3.2.1 Input Relay X ......................................................... 34
3.2.2 Output Relay Y ......................................................35
3.3 Auxiliary Relay ............................................................
35
3.4 Status Relay ...............................................................
36
3.5 Timer...........................................................................
36
3.6 Counter .......................................................................
38
3.6.1 16-bit Counter........................................................40
3.6.2 32-bit Counter........................................................41
3.6.3 High-speed Counter ..............................................42
3.7 Register ......................................................................
42
3.7.1 Data Register D ..................................................... 42
3.7.2 Address Indexing Registers V and Z ..................... 43
3.7.3 File Register R.......................................................44
3.8 Marker and Subprogram.............................................
45
3.9 Constant .....................................................................
46
Chapter 4 Instructions ..........................................
48
4.1 Program Logic Instructions .........................................
48
4.1.1 Contact Instructions...............................................49
4.1.2 Combined Instructions...........................................57
4.1.3 Output Instructions ................................................60
4.1.4 Main Control Instructions.......................................66
4.1.5 End Instructions.....................................................66
4.1.6 Other Processing Instructions ...............................68
4.2 Program Flow Instructions ..........................................
70
4.2.1 Subprogram...........................................................70
4.2.2 Interrupt .................................................................73
4.2.3 Jump......................................................................76
4.2.4 Loop ......................................................................78
4.2.5 Step Sequential Control ........................................80
4.3 Data Comparison........................................................
82
4.3.1 Contact Comparison..............................................82
4.3.2 Comparison Output ...............................................97
4.4 Data Operation ...........................................................
101
4.4.1 Four Arithmetic Operations....................................102
4.4.2 Logical Operations ................................................114
4.4.3 Trigonometric Functions ........................................120
4.4.4 Table Operations ...................................................130
4.4.5 Exponent Operations.............................................142
4.5 Data Processing .........................................................
148
4.5.1 Data Conversion....................................................149
4.5.2 Data Transfer.........................................................169
4.5.3 Table Operation .....................................................179
4.5.4 Data Rotation and Shift .........................................194
4.5.5 Other Data Processing ..........................................208
4.6 Matrix Instructions ......................................................
214
4.6.1 Matrix Operations ..................................................215
4.6.2 Matrix Comparison ................................................226
4.6.3 Matrix Read/Write ..................................................230
4.6.4 Matrix Rotation and Shift .......................................233
4.7 String Instructions .......................................................
236
4.8 Clock Instructions .......................................................
265
4.8.1 Clock Comparison Output .....................................266
4.8.2 Clock Operations ................................................... 268
4.8.3 Clock Conversion ..................................................270
4.8.4 Clock Read/Write ..................................................273
4.8.5 Timing ....................................................................275
4.9 High-speed Input, Pulse Positioning, and
Communication Positioning .........................................
281
4.9.1 High-speed Comparison........................................282
4.9.2 Pulse Input ............................................................282
4.9.3 Pulse Output..........................................................282
4.9.4 Pulse Positioning ................................................... 282
4.9.5 Communication Positioning ................................... 283
4.9.6 Refreshing .............................................................294
4.10 Motion Control ..........................................................
297
4.10.1 H3U Model Interpolation......................................297
4.10.2 MC of the PM Model............................................297
4.10.3 G-code of the PM Model .....................................297
4.11 Communication .........................................................
298
4.11.1 Communication Instructions ................................298
4.11.2 Verication ...........................................................301
4.12 Peripheral Instructions ..............................................
306
4.12.1 PID Calculation....................................................307