
DMC-18x2 • iii
Operand Summary - Independent Axis.....................................................................................................................69
INDEPENDENT JOGGING ..................................................................................................................................................71
Command Summary - Jogging..................................................................................................................................71
Operand Summary - Independent Axis.....................................................................................................................72
LINEAR INTERPOLATION MODE......................................................................................................................................72
Specifying Linear Segments .....................................................................................................................................72
Command Summary - Linear Interpolation..............................................................................................................74
Operand Summary - Linear Interpolation.................................................................................................................75
Example - Linear Move ............................................................................................................................................75
Example - Multiple Moves........................................................................................................................................77
VECTOR MODE:LINEAR AND CIRCULAR INTERPOLATION MOTION................................................................................77
Specifying Vector Segments.....................................................................................................................................77
Additional commands ...............................................................................................................................................78
Command Summary - Coordinated Motion Sequence..............................................................................................80
Operand Summary - Coordinated Motion Sequence.................................................................................................80
ELECTRONIC GEARING ...................................................................................................................................................82
Command Summary - Electronic Gearing................................................................................................................82
ELECTRONIC CAM ..........................................................................................................................................................84
Command Summary – Electronic CAM...................................................................................................................88
CONTOUR MODE ............................................................................................................................................................89
Specifying Contour Segments...................................................................................................................................89
Additional Commands ..............................................................................................................................................91
Command Summary - Contour Mode.......................................................................................................................91
STEPPER MOTOR OPERATION .........................................................................................................................................94
Specifying Stepper Motor Operation ........................................................................................................................94
Using an Encoder with Stepper Motors ....................................................................................................................95
Command Summary - Stepper Motor Operation......................................................................................................96
Operand Summary - Stepper Motor Operation.........................................................................................................96
STEPPER POSITION MAINTENANCE MODE (SPM)...........................................................................................................96
Error Limit................................................................................................................................................................97
Correction .................................................................................................................................................................97
MOTION SMOOTHING ...................................................................................................................................................101
Using the IT and VT Commands (S curve profiling):.............................................................................................101
Using the KS Command (Step Motor Smoothing): ................................................................................................102
HOMING........................................................................................................................................................................103
HIGH SPEED POSITION CAPTURE (THE LATCH FUNCTION)...........................................................................................106
FAST UPDATE RATE MODE...........................................................................................................................................106
CHAPTER 7 APPLICATION PROGRAMMING......................................................................................................109
OVERVIEW....................................................................................................................................................................109
USING THE DMC-18X2EDITOR TO ENTER PROGRAMS ................................................................................................109
Edit Mode Commands ............................................................................................................................................110
PROGRAM FORMAT.......................................................................................................................................................110
Using Labels in Programs.......................................................................................................................................111
Special Labels.........................................................................................................................................................111
Commenting Programs ...........................................................................................................................................112
EXECUTING PROGRAMS -MULTITASKING ....................................................................................................................113
DEBUGGING PROGRAMS...............................................................................................................................................114
PROGRAM FLOW COMMANDS.......................................................................................................................................116
Event Triggers & Trippoints...................................................................................................................................116
Event Trigger Examples:.........................................................................................................................................118
Conditional Jumps...................................................................................................................................................120
Using If, Else, and Endif Commands......................................................................................................................122
Subroutines .............................................................................................................................................................123
Stack Manipulation.................................................................................................................................................124
Auto-Start Routine..................................................................................................................................................124
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com