Iai-america XSEL-KX Manuel d'utilisateur Page 140

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 377
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 139
124
Part 4 Commands
PAXS (Read axis pattern)
Extension condition
(LD, A, O, AB, OB)
Input condition
(I/O, flag)
Command, declaration
Output
(Output, flag)
Command,
declaration
Operand 1 Operand 2
Optional Optional PAXS
Variable
number
Position
number
CP
[Function]
Store the axis pattern at the position specified in operand 2 to the variable specified in
operand 1.
[Example 1]
PAXS
1
98
Read the axis pattern at position 98 to variable 1.
If the position is given as follows, “3” (binary 0011) will be
read to variable 1.
[Example 2]
LET
1
3
Assign 3 to variable 1.
LET
2
101
Assign 101 to variable 2.
PAXS
*1
*2
Read the axis pattern at the content of variable 2 (position
101) to the content of variable 1 (variable 3).
If the point is given as follows, “8” (binary 1000) will be
stored in variable 3.
The table below shows different positions and corresponding values stored in a variable.
0 0 1 1 = 2 + 1 = 3
0 1 0 1 = 4 + 1 = 5
0
1 0 0 0 = 8
Vue de la page 139
1 2 ... 135 136 137 138 139 140 141 142 143 144 145 ... 376 377

Commentaires sur ces manuels

Pas de commentaire