4 Instructions
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
4.12.2 Bit Switch Access ....................
313
4.12.3 7-segment LED Display ..........
319
4.12.4 Other Peripheral Instructions ..
322
4.13 Electronic Cam Instructions ............
334