EasyManua.ls Logo

Newport MM4005 - Page 269

Newport MM4005
417 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
EDH0162En1040 06/99 3.186
MM4005 YD Divide variables
Usage IMM PGM MIP
Syntax xxYDnn
Parameters
Description xx
[int] Variable number.
nn [int] Variable number.
Range xx 1 to 100 (integers) and 101 to 120 (floats).
nn 1 to 100 (integers) and 101 to 120 (floats).
Units xx None.
nn None.
Defaults xx Missing: Error O.
Out of range: Error O.
Floating point: Error A.
nn Missing: Error O.
Out of range: Error O.
Floating point: Decimal part truncated.
Description This command divides the values of two variables. Variable xx is divided
by variable nn and the result placed in variable xx. If variable nn is zero,
the operation is not performed and error H is generated. The decimal part
of the division result is truncated.
Returns None.
Errors A Unknown message code.
C Parameter out of limits.
H Calculation overflow.
O Variable number out of range.
Rel. Commands YA Add to variable.
YC Add variables.
YS Initialize variable.
Example 5YS5 | Initialize variable #5 to 5.
2YS9 | Initialize variable #2 to 9.
1YR3 | Load analog port #3 value into variable #1.
3YY1 |
Copy variable #1 in variable #3.
3YA-32 | Subtract 32 from variable #3.
3YM5 | Multiply variable #3 with variable #5.
3YD2 | Divide variable #3 by variable #2; if variable #1 represents a tem-
perature measured in degrees Fahrenheit, variable #3 will be the
equivalent temperature in degrees Celsius.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com

Table of Contents

Related product manuals