Cognitive Solutions B780, A776 manual Define user-defined character set, Continued

Models: B780 A776

1 192
Download 192 pages 23.55 Kb
Page 68
Image 68
Define user-defined character set

56 Chapter 5: Programming commands

Define user-defined character set

ASCII

ESC & s c1 c2 [character 1 data] ... [character k data]

Hexadecimal

1B 26 s c1 c2 [character 1 data] ... [character k data]

Decimal

27 38 s c1 c2 [character 1 data] ... [character k data]

Values and ranges:

Receipt:

s = 3, the number of bytes (vertically) in the character cell

c = the ASCII codes of the first (c1) and last (c2) characters respectively

c1 = Hex 20–FF (20 is always printed as a space) c2 = Hex 20–FF (20 is always printed as a space)

To define only one character, use the same code for both c1 and c2

k = c2 – c1 + 1 = the number of characters to be defined in this command string [character i data] = [ni d1 ... d(3 x ni)] for 1 ≤ i ≤ k

ni = the number of dot columns for the ith character, 1 ≤ ni ≤ 16 d = the dot data for the characters

The number of bytes for the ith character cell is 3 x ni. The bytes are printed down and across each cell.

Defines and enters downloaded characters into RAM. The command may be used to overwrite single characters. User-defined characters are available until power is turned off or the initialize printer command (1B 40) is received.

Any invalid byte (s, c1, c2, n1) aborts the command.

 

     

     

 



  

   



 

 

 



 

 



 

 

 





  

Slip: s = 0

c = the ASCII codes of the first (c1) and last (c2) characters respectively

c1 = Hex 20–FF c2 = Hex 20–FF

To define only one character, use the same code for both c1 and c2

d = the column data for the nth character as specified by d1 ... d12

Continued . . .

A776 (B780) Programming Guide

A776-PG00001 C 12/09

Page 68
Image 68
Cognitive Solutions B780, A776 manual Define user-defined character set, Continued