3.139
EDH0162En1040 – 06/99
MM4005
TS — Read controller status
Usage
IMM
PGM
MIP
Syntax
TS
Parameters
None.
Description
This command reads the controller status byte. Each bit of the status byte
represents a particular controller parameter, as described in the following
table:
Meaning for
Bit #
Function
Bit LOW
Bit HIGH
0
Axis #1 motor state
Stationary
In motion
1
Axis #2 motor state
Stationary
In motion
2
Axis #3 motor state
Stationary
In motion
3
Axis #4 motor state
Stationary
In motion
4
Motor power
ON
OFF
5
Not used
Default
—
6
Not used
—
Default
7
IEEE SRQ Interruption Status
(Sent by RQ command)
NO
YES
NOTE
If bit #7 is high after sending TS command, it toggles low automatically.
The byte returned is in the form of an ASCII character. Converting the ASCII
code to binary will give the status bits values.
NOTE
For a complete ASCII to binary conversion table see Appendix F, ASCII
Table.
Returns
TSaa
aa
—
ASCII character representing the status byte.
Errors
A
—
Unknown message code.
S
—
Communication time-out.
Rel. Commands
MS
—
Read motor status.
TX
—
Read controller activity.
Example
TS
|
Read controller status byte.
TSF
|
Controller returns character F, or ASCII character 70; converting 70
to binary we get 01000110 which has the following meaning: axis #1
not moving, axis #2 in motion, axis #3 in motion, axis #4 not moving
and motor power is on.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com