Star Micronics SP2000 manual Header 1 First Byte Bit Content Status

Page 54

Table 3-1 Header 1 (First Byte)

Bit

Content

 

Status 0

 

 

Status 1

0

Always 1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1

 

 

 

 

 

 

 

 

 

2

Printer Status Byte Count

 

 

 

 

 

 

 

 

3

 

 

 

 

 

 

 

 

 

4

Always 0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

5

Printer Status Byte Count

 

 

 

 

 

 

 

 

6

Reserved (Fixed at 0)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

7

Not Used (Fixed at 0)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Table 3-2 Relationship of Actual Transmitted Byte Count and Header 1

 

 

 

 

 

 

 

 

 

 

Transmitted Byte Count n (7 n 15)

 

 

 

Header 1

 

7

 

 

00001111B (0F Hex)

 

8

 

 

00100001B (21 Hex)

 

9

 

 

00100011B (23 Hex)

 

10

 

 

00100101B (25 Hex)

 

11

 

 

00100111B (27 Hex)

 

12

 

 

00101001B (29 Hex)

 

13

 

 

00101011B (2B Hex)

 

14

 

 

00101101B (2D Hex)

 

15

 

 

00101111B (2F Hex)

 

 

 

 

 

 

 

 

 

 

Header 2

Header 2 is the information of the length of one byte transmitted in the second byte of the automatic status. Table 3-3 shows the composition of the Header

2.Header 2 shows the version of the automatic status with bits 1 to 3 and bit

5(called automatic status version below). For reference, Table 3-3 shows the relationship between the actual version and the Header 2.

The automatic status version will be upgraded when new information is added to the currently empty printer status bit positions through the addition of new functions in the future. When the host does not manage the automatic status version, it is acceptable that Header 2 be ignored.

52

Image 54
Contents Dot Matrix Printer SP2000 Series Programmer’s Manual Table of Contents Control Codes Star Mode Control Hexadecimal Function CodesESC W Print Position Control Dot Graphics Control Auto Cutter Control SP2500 type printers only Other Commands Control Code Details Function Value of n Character Table Hex Dec DSW 1 Digits Per Line Function Code Function Function Value Rotation Specification Function MSW FF Command Function SP2520/2560 Ptint Position ControlCR Code Function Code Function Function Function ABC Code Example Print Sample M2 m4 m6 m8 m10 M1 m3 m5 m7 m9 m11 MSB LSB Char. Code = 21H Char. Code = 22H Char. Code = 23H Example of transmitting data 10 x n1 ms 10 x n2 ms SUB Auto Cutter Control SP2500 type printers only Function Command to Set the Page Format Cancels printer buffer & Initialize printer Code HEX Outline N4 Country CountryPaper near end sensor Comdex dual auto-cutter Paper near end sensorValue of n Character Table Parameter Setting CR code See below CR codePara Setting Treatment of missing data during reverse mode EOT ENQ ETB Value of n Hex ESC/POS Mode Commands Control Hexadecimal Function Codes U200 U300ESC R Ignored Commands Auto Status Specifications Header 1 First Byte Bit Content Status Header 2 Second Byte Bit Content Status Printer Status Printer Status 5 Sensor Information Seventh Byte Method to Identify States Control Code Reception Data Appendix Character Code Tables Star Mode Character table IBM Character set #2 Code Character table Katakana Character table IBM Character set #1 Star Mode Star Mode Code Page #855 Cyrillic Bulgarian Star Mode Code Page #772 Lithuanian Code Page #774 Lithuanian Code Page #874 Thai Star Mode Star Mode Star Mode Star Mode Star Mode ESC/POS Mode ESC/POS Mode 1 Katakana 2 PC858 Multilingual 3 PC860 Portuguese 4 PC863 Canadian-French 5 PC865 Nordic ESC/POS Mode
Related manuals
Manual 170 pages 46.11 Kb