SATO CT400, CT410 manual Appendix C Custom Characters and Graphics

Models: CT410 CT400

1 199
Download 199 pages 30.79 Kb
Page 193
Image 193

Appendix C: Custom Characters and Graphics

3.Transfer the image into two bit map representations and then into hexadecimal or binary format.

ROW

 

BIT MAP

 

HEX

1

0000

0001

0000

0000

01

00

2

0000

0011

1000

0000

03

80

3

0000

0111

1100

0000

07

C0

4

0000

1111

1110

0000

0F

E0

5

0001

1111

1111

0000

1F

F0

6

0011

1111

1111

1000

3F

F8

7

0111

1111

1111

1100

7F

FC

8

1111

1111

1111

1110

FF

FE

9

0000

0111

1100

0000

07

C0

10

0000

0111

1100

0000

07

C0

11

0000

0111

1100

0000

07

C0

12

0000

0111

1100

0000

07

C0

13

0000

0111

1100

0000

07

C0

14

0000

0111

1100

0000

07

C0

15

0000

0111

1100

0000

07

C0

16

0000

0111

1100

0000

07

C0

4.To store the custom designed character in memory using a hexadecimal data stream, the command would be:

<ESC>A

<ESC>T1H3F0100038007C00FE01FF03FF87FFCFFFE07C007C007C007C007C007C007C007C0 <ESC>Z

Note: This should be a continuous data string without any CR or LF characters.

5.To recall the custom character from memory, send the following code to the

printer. Note that you can print other data as well. Also note how the character size was expanded using the <ESC>L command.

<ESC>A <ESC>L0505<ESC>H0150<ESC>V100<ESC>K1H903F <ESC>L0505<ESC>H0600<ESC>V100<ESC>K1H903F <ESC>L0303<ESC>H0125<ESC>V0250<ESC>MTHIS SIDE UP ! <ESC>Q1

<ESC>Z

6.To store the custom designed character in memory using a binary data stream, the command would be:

<ESC>A

<ESC>T1B3F 01H 00H 03H 80H 07H C0H 0FH E0H 1FH F0H 3FH F8H 7FH FCH FFH FEH 07H C0H 07H C0H 07H C0H 07H C0H 07H C0H 07H C0H 07H C0H 07H C0H

<ESC>Z

NOTE: Spaces are shown between hexidecimal values in the above example for clarity only and are not included in the data string.

Note that the data stream is only half as long as the hexadecimal format. This is because we can send the binary equivalent of “11111111” (represented above in its hexidecimal value of FFH), for example, using one eight bit word while it takes two eight bit words to transmit the hexadecimal equivalent “F” and “F”. To send binary characters using BASIC, the expression “CHR (&HFF) will send the binary equivalent

of FF (i.e., 11111111).

Page C-2

9001069A

SATO CT Series Printers

Page 193
Image 193
SATO CT400, CT410 manual Appendix C Custom Characters and Graphics