3.145
EDH0162En1040 – 06/99
MM4005
TY — Read a variable
Usage
IMM
PGM
MIP
Syntax
xxTY
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 reads the value of a variable. If the variable was not previ-
ously defined with the YS command, the controller returns value 0.
NOTE
The controller allows 100 variables. They are not identified by a name
but by a number as a parameter for different commands.
Returns
xxTYnn
xx
—
Variable number.
nn
—
Variable value.
Errors
A
—
Unknown message code.
O
—
Variable number out of range.
S
—
Communication time-out.
Rel. Commands
YS
—
Initialize variable.
All variable manipulation commands.
Example
17TY
|
Read variable #17.
17TY28
|
Controller returns value 28 for variable #17.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com