Stx-Etx Mode - Star Micronics TSP400 Series Programmer's Manual

Star micronics tsp400: reference guide
Hide thumbs Also See for TSP400 Series:
Table of Contents

Advertisement

4-5-3. STX-ETX mode

This mode is accessed from whichever DTR mode or XON/XOFF mode.
To set this mode, the data buffer must be empty.
The host computer sends an ENQ code to the printer and acknowledges the printer
status. Then, the host computer checks if the printer buffer is empty. After the host
computer detects that the buffer is empty, a STX code and data are transmitted.
After 1 block of data is transmitted, the host computer sends an ENQ code to the
printer and then receives the printer status and check byte (horizontal parity for
the printer).
At this point, the host computer performs a status and horizontal parity check.
When the host computer determines that there was no error, it transmits an ETX
code which serves as text end code. After the printer receives the ETX code, data
in the data buffer is printed out. If an error occurs, a CAN code is transmitted by
the host computer. (In this instance, the data which was previously sent to the
buffer is cleared, thus, the host computer must retransmit the same data to the
printer.)
A flowchart of this operation is shown on the next page.
– 14 –

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tup400 series

Table of Contents