beautypg.com

Star Micronics Line Thermal/Dot Printer User Manual

Page 187

background image

Rev. 0.00

5-12

STAR LIne Mode Command Specifications

5-2-4) Printer Status Transmission Specification when using Ethernet and Wireless LAN

Interfaces

The following explains the printer status transmission specification when using Ethernet and wireless LAN interfaces.

1)

Transmission format:

• When transmitting only STAR ASB:

STAR ASB (Second Byte Bit-7=1) + Length (Length = 0x0000)

• When transmitting printer status other than STAR ASB:

STAR ASB (Second Byte Bit-7=1) + Length + Status Data

Length + Status Data

Length + Status Data

• 2 byte value indicating status data byte count (0x0000 ≤ Length ≤ 0x0200)

• When the status data is 10 bytes: Length = 0x000a

• When transmitting only STAR ASB: Add Length = 0x0000

• When Star ASB Second byte Bit-7, and Length is added, Bit-7 = 1 is set.

For status analysis, the total byte count of ASB is detected using the first byte of Star ASB, and whether length is

added with the second byte Bit-7 of Star ASB is detected. By getting the byte count of subsequent status data using

the length, the status can be analyzed.

2)

Status Data Transmission Format:

Status Type + Delimiter 1 + Data Type + Status Length +

Printer Status + Delimiter 2

(1) Status Type (2byte or 4byte)

• First and second bytes

Indicate a factor of printer status occurring.

• “00”:

Reserved

• “01” to “09”:

Star real-time status request command

• “10” to “49”:

STAR Status Request Command

• “10” to “49”:

STAR Status Request Command

:

STAR Status Request Command

• “50” to “59”:

Reserved

• “60” to “99”:

Reserved

• “A0”:

MICR Function Command

• “A1” to “FF”: Reserved

• Third and fourth bytes

If the factor is the command, indicates the n parameter of the command.

If there is no n parameter, the third and fourth bytes can be omitted.

If n = 0x31 with the ESC SYN 3 n command, the third and fourth bytes are “31.”

(2) Delimiter 1 (1 Byte)

Sends “:”.

(3) Data Type (1byte)

Indicates the data type of the printer status, and sends “B” (binary type).

(4) Status Length (2byte)

2 byte value indicating byte count of printer status