EDH0162En1040 – 06/99 3.44
MM4005 DY — Display a variable
Usage IMM PGM MIP
Syntax xxDYnn
Parameters
Description xx
[int] — Field number.
nn [int] — Variable number.
Range xx — 1 to 2.
nn
— 1 to 120.
Units xx
— None.
nn — None.
Defaults xx Missing: Error C.
Out of range: Error C.
Floating point: Error A.
nn Missing: Error O.
Out of range: Error O.
Description This command prints a variable’s value on line five of the front panel dis-
play. For this purpose, line five is split in two fields, each 13 characters
long. The first field on the left is defined as number 1 and the one on the
right as number 2. Parameter xx selects which field the variable will be dis-
played on.
Writing to field number 1 erases the previous text on the entire line.
Writing to field number 2 erases the previous text only from field number 2.
This command is useful in monitoring the status and evolution of a com-
plex program.
Returns None.
Errors A — Unknown message code.
C — Parameter out of limits.
J — Command authorized only in programming mode.
O — Variable number out of range.
Rel. Commands DS — Display strings on screen.
YS — Initialize variable.
EX — Execute a program.
Example
1DS LOOP # | Print on the first part of line 5 the string “LOOP #”.
3YS0 | Set variable #3 to 0.
4DL | Define label #4.
… |
… |
… |
3YA1
| Increment variable #3 by 1.
2DY3 | Display variable #3 on the second field of line 5.
3YL50, 4JL | If variable #3 is less than 50, jump to label #4.
In this example, line five of the front panel will display “LOOP #N”, where N
is the loop count.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com