EDH0162En1040 – 06/99
3.126
MM4005
TB — Read error message
Usage
IMM
PGM
MIP
Syntax
TBaa
Parameters
Description
aa
[char]
— Error code character, in ASCII format.
Range
aa
—
@
to
U
.
Units
aa
— None.
Defaults
aa
Missing: Reads current error.
Out of range: Controller returns message Unknown error code.
Description
This command reads the error code and the associated message. If the
aa
parameter is missing, the controller reports the existing error. If
aa
is a
valid error code, the controller returns the error message associated with
that code. The error code is one ASCII character and the message is the
description of the error associated with it.
NOTE
When an error is read using TB or TE, the error buffer is cleared. This
means that an error can be read only once, with either command. If TB is
used only for translating an error code by supplying the aa parameter,
the existing error in the buffer is not cleared.
NOTE
The controller returns only the last error that has occurred. If more than
one error has occurred since the last reading, only the last one is report-
ed and the rest are lost.
Returns
TBaabb
aa
—
Error code character.
bb
—
Error description.
Errors
S
—
Communication time-out.
Rel. Commands
TE
—
Read error code.
Example
TB |
Read error message.
TB@ No error
|
Controller returns no error.
5PA12.3 |
Move axis #5 to position 12.3.
TB
|
Read error message.
TBB Axis Number not Correct
|
Controller returns error code and description.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com