Multitech MT2834BL Specifikace Strana 123

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 225
  • Tabulka s obsahem
  • ŘEŠENÍ PROBLÉMŮ
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 122
117
CREATING MACROS • MACRO EXAMPLES
TECHNICAL SUPPORT 978-486-0086 • support@burk.com • www.burk.com
OR in an IF/THEN Statement
This example shows how a macro can
examine a situation, then choose the
appropriate course of action. The first line
sets an individual variable “X. This line is
important because it enables the macro to
recognize whether or not it has already
taken some kind of action. The first “IF”
statement checks Status Channel 2. If the
reading on this channel is “High, then the
macro issues Commands 16b and 12a,
and changes the individual variable to X =
1. If the reading on Status Channel 2 is not
“High, the “IF” statement ends without
issuing the commands or changing the
variable.
The next “IF” statement checks the
individual variable. IF X = 1, then
commands have been issued, the “IF”
statement is skipped and the macro ends.
If X = 0 still, then the “IF” statement
continues execution. Here another “IF”
statement checks Status Channel 5. If the
reading on this channel is “High, the macro
issues Commands 16b and 12a, then ends
the macro.
The second example shows how the same
results can be achieved by the use of the
"OR" statement in an “IF/THEN” command.
Or In If/Then Statement Macro
Or in If/Then Statement Macro
Zobrazit stránku 122
1 2 ... 118 119 120 121 122 123 124 125 126 127 128 ... 224 225

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

Žádné komentáře