28.06.2015 Views

B-SX4T Series, B-SX5T Series External ... - Toshiba Tec Italia

B-SX4T Series, B-SX5T Series External ... - Toshiba Tec Italia

B-SX4T Series, B-SX5T Series External ... - Toshiba Tec Italia

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

[When the printer driver compression mode is selected]<br />

(1) For the [ESC] SG0; -- command, only “A: Printer driver compression mode” can be selected<br />

for the type of graphic data. The parameter for the data count is attached after the<br />

parameter for the type of graphic data. When the total number of data cannot be provided<br />

by the printer driver, “00H, 00H, 00H, 00H” should be specified for the number of graphic<br />

data. However, in this case, the printer diver cannot support printing through a serial<br />

interface (RS-232C).<br />

(2) How to compress data<br />

Compression is performed for every data of one line specified for the number of graphic<br />

width dots.<br />

The data is made up in units of 8 dots. A repeated value is encoded in 2 bytes. The first<br />

byte is a numeric value n indicating that a value is repeated (-n + 1) times.<br />

The range is between -127 and -1. The second byte is the repeated value.<br />

If a value is not repeated, the first byte is the numeric value m. The length of the values is<br />

indicated in (m+1). The range of “m” is between 0 and 126. The length of the repetition of<br />

the value “n” and ”m” should not exceed 127 and 126, respectively.<br />

If it exceeds the range, it should be divided into blocks of repetition.<br />

When the same contents as the data for 1 line appear repeatedly in the next line and after,<br />

the number of lines in which the same contents appear is encoded in 2 bytes. The first byte<br />

is fixed as 127. The second byte indicates “N” times that the same contents are repeated.<br />

Its range is between 1 and 255. “N” should not exceed 255. If it exceeds the range, the<br />

data for the excess number of times should be compressed as the new data of 1 line, and<br />

the remaining number of repetitions should be encoded.<br />

[Example]<br />

Data before being compressed (Width: 120 dots, Height: 300 lines)<br />

Line No. Graphic data<br />

1 AAh AAh AAh AAh AAh AAh AAh BBh CCh DDh EEh FFh FFh<br />

FFh FFh<br />

2 AAh AAh AAh AAh AAh AAh AAh BBh CCh DDh EEh FFh FFh<br />

FFh FFh<br />

299 AAh AAh AAh AAh AAh AAh AAh BBh CCh DDh EEh FFh FFh<br />

FFh FFh<br />

300 AAh AAh AAh AAh AAh AAh AAh BBh CCh DDh EEh FFh FFh<br />

FFh FFh<br />

Data after being compressed<br />

Line No. Graphic data<br />

1 FAh AAh 03h BBh CCh DDh EEh FEh FFh<br />

2 to 256 7FH FFH<br />

257 FAh AAh 03h BBh CCh DDh EEh FEh FFh<br />

258 to 300 7FH 2BH<br />

FAh = -6<br />

-(-6) + 1 = 7<br />

AAh is repeated 7 times.<br />

FEh = -2<br />

-(-2) + 1 = 3<br />

FFh is repeated 3 times.<br />

03h = 3<br />

3 + 1 = 4<br />

4-byte data (BBh CCh DDh EEh) without<br />

repetition<br />

- 214 -

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!