Specifications

4-6 Programming Guide/Tips
Confidential
Status Commands
Four types of commands can be used to confirm the status of the TM-H6000 printer. This section
describes the differences for the respective commands and effective uses.
Status Send Request Command (GS r)
This command is stored in the TM receive buffer and is processed following the commands that
were previously sent. It enables checking of whether or not there is a paper roll and paper slip,
and checking of the drawer kick connector status.
In addition to the normal status check functions, by adding this command at the end of a series
of commands, you can check whether or not that series of commands was processed and
whether or not any data remains in the receive buffer.
Status Real Time Send Request Command (DLE EOT)
This command is processed before it is stored in the TM receive buffer, and the status is sent
back immediately. You can check the status of various printer functions, whether or not there is
paper, and error status. However, the TM side will go to the Busy status when an error is
triggered by no paper or other such status, preventing data from being sent. Therefore, it is
necessary for this command to be sent, ignoring the handshake for the serial I/F. Furthermore,
the command cannot be sent by ignoring the Busy status with the parallel I/F.
After this command is processed, it is temporarily stored in the receive buffer. This is a
consideration in case the command may be a portion of bitmap data. Accordingly, there is a
possibility that this command alone may fill up the receive buffer when the printer is waiting for
insertion of a slip. So, note the following points:
Stop sending of the
DLE
command when the printer is waiting for slip insertion, or provide
an ample interval between commands.
Monitor the TOF and BOF sensors, and select slip mode after a slip is inserted.
Status Automatic Send Setting Command (GS a)
After this command is sent, the TM automatically sends the status every time the specified
status changes. When using this command, it is necessary to monitor the PC receive buffer
constantly so that changes in status are not overlooked.
MICR Status Real Time Send (DLE EOT BS)
Like the
DLE EOT
command, this command is processed before it is stored in the TM receive
buffer, and the status is immediately sent back. You can check the following types of status:
selection/non-selection of MICR, whether or not a cleaning sheet has been inserted, and other
MICR related information.
However, when no paper or another cause has triggered an error, or when the receive buffer is
full, the TM side will go to the Busy status, preventing data from being sent. Therefore, follow
the same precautions as for the
DLE EOT
command.