Iai-america XSEL-KET Uživatelský manuál Strana 101

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 436
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 100
82
INTELLIGENT ACTUATOR
Part 3 Controller Data Structure
3. Variables with “*” (asterisk) (indirect specification)
An “*” (asterisk) is used to specify a variable.
In the following example, the content of variable box 1 will be put in variable box 2. If variable
box 1 contains “1234,” then “1234” will be put in variable box 2.
Command Operand 1 Operand 2
LET 1 1234
Command Operand 1 Operand 2
LET 2 *1
The above use of variables is called “indirect specification.”
An “*” is also used when indirectly specifying a symbol variable (refer to 1-8, “Symbols”).
Command Operand 1 Operand 2
LET ABC 1
LET BCD 2
ADD ABC *BCD
Put 1 in variable ABC.
Put 2 in variable BCD.
Add the content of variable BCD, or 2, to variable ABC.
(The content of variable ABC becomes 3.)
Variable
box 1
1 2 3 4
1 2 3 4
Put in.
Variable
box 1
Variable
box 2
1 2 3 4
1 2 3 4
Zobrazit stránku 100
1 2 ... 96 97 98 99 100 101 102 103 104 105 106 ... 435 436

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

Žádné komentáře