Denso RC5 Specifikace Strana 164

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 692
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 163
7-6
Global Variable Indirect Reference
When a global variable is designated, the variable number is designated using
an expression. This is called an indirect reference.
If an indirect reference is executed, the variable number enclosed in [ ] is
expressed.
Example:
I1 = I[5*3] 'Assigns a value of I15 to I1.
F1 = F[I1] 'Assigns a type F variable with a value of I1 to F1.
D1 = D[I1+1] 'Assigns a type D variable with a value that is I1 plus 1 to D1.
S1 = S[I7] 'Assigns a type S variable with a value of I7 to S1.
V1 = V[I1] 'Assigns a type V variable with a value of I1 to V1.
MOVE L, P[I5] 'Moves to a position of type P variable with a value of I5.
J1 = J[I5*3] 'Assigns a type J variable with a value that is 3 times I5 to J1.
T1 = T[I1*3] 'Assigns a type T variable with a value that is 3 times I1 to T1.
SET IO[I1*5] 'Sets a bit type port with a value that is 5 times I1 to ON.
Zobrazit stránku 163
1 2 ... 159 160 161 162 163 164 165 166 167 168 169 ... 691 692

Komentáře k této Příručce

Žádné komentáře