Parker Hannifin VIX250IM Stepper Machine User Manual


 
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