EDH0162En1040 – 06/99
3.194
MM4005
YO — Send a value to an user analog port
Usage
IMM
PGM
MIP
Syntax
xxYOnn
Parameters
Description
xx
[int]
— Analog output port number.
nn
[float]
— Value to send out.
Range
xx
—
1
to
4
.
nn
—
-10.0
to
10.0
.
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 writes value to an user analog port. The output value will be
limited between -10.0 and 10.0. If
xx
missing, this command writes output
value to all of analog output port (1 to 4). If
nn
absolute value is bigger than
10 (
nn
>10 or
nn
<-10),
nn
will be limited between -10 and 10.
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.
E
—
Incorrect I/O channel number.
Q
—
Unauthorized command.
Rel. Commands
AM
—
Set analog input mode.
YR
—
Read a value from an user analog port and affect variable.
Example
2YS0
|
Initialize the variable #2 to zero.
2WL10
|
While the variable #2 is smaller than 10.
1PR2, WS
|
Displacement of 2 units, wait for stop.
1YO$Y2
|
Send the value of variable #2 to analog port number 1.
2YA1
|
Variable #2 is incremented.
WE
|
End of loop.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com