EDH0162En1040 – 06/99 3.198
MM4005 YS — Initialize variable
Usage IMM PGM MIP
Syntax xxYSnn
Parameters
Description xx
[int] — Variable number.
nn [int] — Initializing value.
Range xx — 1 to 100 (integers) and 101 to 120 (floats).
nn
— -32767 to 32767.
Units xx
— None.
nn — None.
Defaults xx Missing: Error O.
Out of range: Error O.
Floating point: Error A.
nn Missing: Error C.
Out of range: Error C.
Description This command initializes a variable. When this command is received, the
specified variable xx is initialized to nn value.
NOTE
Always initialize a variable before using it. At power up or after running
other programs, the value of a variable may be unknown.
Returns
None.
Errors A — Unknown message code.
C — Parameter out of limits.
O — Variable number out of range.
Rel. Commands TY — Read a variable.
Example 5YS0 | Initialize variable #5 to 0.
5WY18|
While variable #5 is different than 18 repeat next commands.
3PR1.2, WS | Move axis #3 incremental 1.2 units and wait for stop.
5YA1 | Add 1 to variable #5.
WE | End while loop.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com