Parker Hannifin VIX250IM Stepper Machine User Manual


 
VIX IM MICROSTEPPER INDEXER DRIVE USER GUIDE
54
Use of the LSEL Command
You can let user inputs call programmed routines by the use of special label names and
associated user input numbers. By including the code you wish to action, following a pre-
defined input label, will enable your code to be run when the defined user input is activated.
For example, to select one of three labels using two user inputs, the code would be:
1START:
1CLEAR(ALL) ;clear memory
1DECLARE(L1) ;declare label 1
1DECLARE(L2) ;declare label 2
1DECLARE(L3) ;declare label 3
1LSEL1(0,2,1) ;define inputs and code
1A20 ;set acceleration
1V5 ;set velocity
1O(000) ;set all outputs low
1END
1L1: ;label 1 code
1O(1) ;set output 1 high
1D1000 ;set distance to 1000 steps
1G ;move 1000 steps
1T1 ;wait for 1 second
1O(0) ;set output 1 low
1END
1L2: ;label 2 code
1O(01) ;set output 2 high
1D-2000 ;set distance to -2000 steps
1G ;move -2000 steps
1T1 ;wait for 1 second
1O(00) ;set output 2 low
1END
1L3: ;label 3 code
1O(001) ;set output 3 high
1D3000 ;set distance to 3000 steps
1G ;move 3000 steps
1T1 ;wait for 1 second
1O(000) ;set output 3 low
1END
Note: The routine will only run when it receives a valid input pattern corresponding to the
numbered label names.