Parker Hannifin VIX500IM Stepper Machine User Manual


 
VIX IM MICROSTEPPER INDEXER DRIVE USER GUIDE
52
Example
The following example shows the use of a FAULT label within a program.
1ARM11 ;enable auto-run on power-up & enable fault routine
1SV ;save the settings
1START: ;start of program
1ARM11 ;re-enable auto-run & fault in case K command sent
.
<initialisation commands>
.
1O(1XX) ;turn on output 1 - drive OK
.
<main process commands>
.
1END
1FAULT: ;fault routine
1O(0XX) ;turn off output 1 - drive fault
.
<diagnostic code - if required>*
.
1TR(IN,=,1XXXX) ;wait for input 1 to become active (RESET)
1ON ;clear fault
1GOTO(START) ;run from start of program again
1END
*Note: An example of diagnostic code is given in the sub-section entitled Conditional Code
later within this section.