EDH0162En1040 – 06/99 3.184
MM4005 YB — Negate variable
Usage IMM PGM MIP
Syntax xxYB
Parameters
Description xx
[int] — Variable number.
Range xx — 1 to 100 (integers) and 101 to 120 (floats).
Units xx
— None.
Defaults xx Missing: Error O.
Out of range: Error O.
Floating point: Error A.
Description This command negates the value of a variable. After executing this com-
mand, the value of variable xx takes the opposite sign.
Returns None.
Errors A — Unknown message code.
O — Variable number out of range.
Rel. Commands TY — Read a variable.
YS — Initialize variable.
Example 3XX | Clear program #3 from memory, if any.
3EP | Activate program mode and enter following commands as program
#3.
7YS3 | Initialize variable #7 to 3.
7YA2 | Add 2 to variable #7; the new value for the variable is 5.
7YB | Negate variable #7; the new value for the variable is -5.
… |
… |
… |
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com