Parker Hannifin VIX500IM Manuel d'utilisateur Page 54

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 218
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 53
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
Vue de la page 53
1 2 ... 49 50 51 52 53 54 55 56 57 58 59 ... 217 218

Commentaires sur ces manuels

Pas de commentaire