Elmomc Multi-Axis Motion Controller-Maestro Uživatelský manuál Strana 104

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 313
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 103
Maestro Software Manual MAXL Program Language
MAN-MASSW (Ver. Q)
2. Set Static Variable syntax
[Static Variable Name] = [const value, expression]
[Static Variable Name][index] = [const value, expression],
where index need if Static Variable is qn array.
For example:
fVar = 5.23
iArr4[0] = 3
iArr34[1, 2] = a2.px
5.9.4 Working with Static Variables in the Maestro
Program Interpreter
1. Get Static Variable syntax is
[value, expression]=[Static Variable Name]
[value, expression]=[Static Variable Name][index]
where index need if Static Variable is an array.
For example:
int i, j, n
float f
f = fVar
j = iArr4[0]
n = iArr34[i, j]
2. Set Static Variable syntax is
[Static Variable Name] = [const value, expression]
[Static Variable Name][index] = [const value, expression]
where index need if Static Variable is array.
For example:
int i, j, n
fVar = 5.23
iArr4[0] = j
iArr34[i, j] = n
Static Variable can be used in logical operations if, switch, while, until etc.
5-42
Zobrazit stránku 103
1 2 ... 99 100 101 102 103 104 105 106 107 108 109 ... 312 313

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

Žádné komentáře