EDH0162En1040 – 06/99
3.142
MM4005
TX — Read controller activity
Usage
IMM
PGM
MIP
Syntax
TX
Parameters
None.
Description
This command reads the controller activity register. Each bit of the status
byte represents a particular parameter, as described in the following table:
Meaning for
Bit #
Function
Bit LOW
Bit HIGH
0
Program is running
NO
YES
1
Command line is executing
NO
YES
2
Manual jog mode active
NO
YES
3
Remote mode active
NO
YES
4
Trajectory is executing
NO
YES
5
Not used
Default
—
6
Not used
—
Default
7
Not used
Default
—
The byte returned is in the form of an ASCII character. Converting the ASCII
code to binary gives the status bit values.
NOTE
For a complete ASCII to binary conversion table see Appendix F, ASCII
Table.
Returns
TXaa.
aa
—
ASCII character representing the status byte.
Errors
A
—
Unknown message code.
S
—
Communication time-out.
Rel. Commands
MS
—
Read motor status.
TS
—
Read controller status.
Example
TX
|
Read controller activity register.
TXJ
|
Controller returns character J, or ASCII character 74; converting 74 to
binary we get 01001010 which has the following meaning: controller
is in remote mode and is executing a command line.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com