4
Contents
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
Chapter 5 High-speed Input ..................................
336
5.1 H3U Standard Model ..................................................
336
5.1.1 High-speed Counter ..............................................336
5.1.2 Input Interrupts ......................................................339
5.1.3 Pulse Capture........................................................340
5.2 High-speed Pulse Comparison Instructions of
H3U Standard Model ...................................................
341
5.2.1 HSCS Comparison Setting .................................... 342
5.2.2 HSCR Comparison Reset .....................................344
5.2.3 HSZ Range Comparison .......................................346
5.2.4 SPD Pulse Density Detection ................................ 351
5.3 H3U-PM Motion Control Model...................................
353
5.3.1 High-speed Counter ..............................................353
5.3.2 Input Interrupts ......................................................355
5.3.3 Pulse Capture........................................................356
5.4 High-speed Comparison Instructions for H3U-PM
Motion Control Model ..................................................
357
5.4.1 Operation Mode of High-speed Comparison
Instructions .............................................................358
5.4.2 HSCS Comparison Setting .................................... 358
5.4.3 HSCR Comparison Reset .....................................362
5.4.4 HSZ Range Comparison .......................................364
5.4.5 DHSOS High-speed Interrupt Comparison
Setting ....................................................................370
5.4.6 DHSOR High-speed Interrupt Comparison
Setting ....................................................................372
Chapter 6 Positioning and Interpolation .............
375
6.1 Overview.....................................................................
375
6.1.1 Table of Attributes of High-speed Output
Instructions .............................................................375
6.1.2 Use of Special Elements .......................................376
6.1.3 Output Frequency-Time Relationship and
Acceleration/Deceleration Process ........................378
6.2 Positioning Instruction ................................................
379
6.3 Interpolation Instruction ..............................................
430
6.4 High-speed Processing Instruction .............................
462
Chapter 7 Motion Control .....................................
466
7.1 Difference Between H3U Standard Model and
H3U-PM Motion Control Model....................................
466
7.2 H3U-PM Terminal Description ....................................
467
7.3 Execution and Call of Motion Control Subprogram ....
468
7.4 Motion Control Instructions .........................................
472
7.5 Similarities and Differences Between MC
Subprograms and G-code Subprograms.....................
474
7.6 List of Motion Control Instructions Supported by
MC Subprograms ........................................................
476
7.7 Format and Use of MC Subprograms.........................
476
7.8 List of Motion Control Instructions Supported by
G-code Subprograms ..................................................
526
7.9 Format and Use of G-code Subprograms ..................
527
7.10 General Positioning Instructions Supported by the
H3U-PM Model ..........................................................
553
7.11 Special Registers for Motion Control in the
H3U-PM Model ..........................................................
554
Chapter 8 Electronic Cam .....................................
563
8.1 Establishing a Cam Table ...........................................
564
8.1.1 Creating a Cam Table ............................................564
8.1.2 Editing a Cam Table ..............................................565
8.1.3 Downloading Cam Tables ......................................566
8.2 Selecting a Master Axis ..............................................
567
8.3 Setting Cyclic or Non-cyclic Execution .......................
567
8.4 Starting Electronic Cams or Electronic Gears ............
568
8.4.1 Selecting Cam Tables or Electronic Gears ............ 568
8.4.2 Startup ................................................................... 568
8.4.3 Setting Startup Latency .........................................569
8.4.4 Using Comparison Interrupt ..................................570
8.5 Stopping Electronic Cams or Electronic Gears ..........
571
8.5.1 Setting Stop Mode ................................................. 571
8.5.2 Setting an Externally Triggered Stop .....................571
8.5.3 Stop .......................................................................572
8.5.4 Stopping Electronic Cams .....................................572
8.5.5 Flag of End of Cycle and Flag of End....................573
8.6 Scaling ........................................................................
574
8.7 Ejector Pin ..................................................................
575
8.8 Modifying Key Points for Electronic Cams..................
576
8.8.1 Writing Electronic Cam Data .................................576
8.8.2 Writing Electronic Cam Floating-point Decimal
Data ........................................................................ 578
8.8.3 Reading Electronic Cam Data ...............................580
8.8.4 Reading Electronic Cam Floating-point Decimal
Data ........................................................................ 581
8.9 Application Examples (Application of H3U-PM to
Strapping Band Winding Machines) ............................
582
Chapter 9 Communication ....................................
589
9.1 Overview.....................................................................
589
9.2 Serial Port ...................................................................
590
9.2.1 Hardware and Communication Cable ...................590
9.2.2 Setting Communication Protocols .........................591
9.3 HMI Monitoring Protocol .............................................
597
9.4 Modbus Protocol.........................................................
598
9.4.1 Modbus Master Station Communication ...............598
9.4.2 Modbus Slave Station Communication .................602
9.4.3 Modbus Parameter Numbers and Data
Addressing .............................................................604
9.4.4 Programming Method for Communication Among
Multiple PLCs Through Modbus Protocols ............610
9.5 Modbus Conguration and Usage ..............................
613