![background image](http://html1.mh-extra.com/html/parker/vix250cm/vix250cm_user-manual_755859055.webp)
4. CONTROL OF VIX DRIVES 47
Structure
The code example of an absolute positioning move shown in Figure 4-1 demonstrates how
to write code that follows the block structure. Use the start code to initialise the drive:
Start code and
Initialisation
1START:
1DECLARE(MAIN)
1DECLARE(MOVE2)
1LIMITS(3,0,0)
1GOTO(MAIN)
1END
1MAIN:
1PROFILE2(40,10,-48000,25)
1GOSUB(MOVE2)
1END
1MOVE2:
1W(PA,0)
1MA
1USE(2)
1G
1END
Main
Program
Block 1
Block 2
Block 3
Figure 4-1. Program Structure
Example:
1START:
; start label definition
1DECLARE(MAIN)
; declare labels
1DECLARE(MOVE2)
; declare move 2
1LIMITS(3,0,0)
; configure limits.
1GOTO(MAIN)
; goto main program
1END
Use the MAIN part of the program to define profiles and to control the order of moves:
1MAIN:
; main label definition
1PROFILE2(40,10,-48000,25)
; define move parameters
1GOSUB(MOVE2)
; jump to label move 2
1END
; end of label definition
Summary of Contents for ViX250CM
Page 3: ......
Page 52: ...44 VIX IM MICROSTEPPER INDEXER DRIVE USER GUIDE...
Page 102: ...VIX IM MICROSTEPPER INDEXER DRIVE USER GUIDE 94...
Page 206: ...198 VIX IM MICROSTEPPER INDEXER DRIVE USER GUIDE...
Page 218: ......