3.197
EDH0162En1040 – 06/99
MM4005
YR — Read a value from an user analog port
and affect variable
Usage
IMM
PGM
MIP
Syntax
xxYRnn
Parameters
Description
xx
[int]
— Analog port number.
nn
[int]
— Variable number.
Range
xx
—
1
to
4.
nn
—
1
to
100
(integers) and
101
to
120
(floats).
Units
xx
— None.
nn
— None.
Defaults
xx
Missing: 0.
Out of range: Error E.
Floating point: Error A.
nn
Missing: Error C.
Out of range: Error C.
Description
This command reads an user analog port and saves the value in a variable.
The selected port
xx
is read and the value is loaded in variable
nn
.
NOTE
For the hardware definition of the analog input port, please see
Appendix, Connector Pinouts, Remote Control Connector.
Returns
None.
Errors
A
—
Unknown message code.
C
—
Parameter out of limits.
O
—
Variable number out of range.
Rel. Commands
RA
—
Read analog input.
Example
5YS0 |
Initialize variable #5 to 0.
5WL18 |
While variable #5 is less than 18 repeat next commands
.
3PR1.2, WS |
Move axis #3 incremental 1.2 units and wait for stop
.
1YR101
|
Load analog port #1 value into float variable #101.
5YA1
|
#5 is incremeted of 1.
WE |
End while loop.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Содержание MM4005
Страница 360: ...Section 7 Servo Tuning Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com ...
Страница 368: ...Section 8 Appendices Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com ...
Страница 405: ...EDH0162En1040 06 99 8 36 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com ...
Страница 406: ...Section 9 Index Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com ...