Citizen CMP-10 manual GS * n1 n2 d n1 n2 D1 ...... Dn, See Also Sample Program

Page 45

GS * n1 n2 [ d ] n1 n2 D1 ...... Dn

[Function]

Defining the Download Bit Image (LOGO)

[Code]

<1D>H<2A>H<n1><n2> [ < d > ]

[Range]

{1 =< n1 =< 7F} Defines horizontal size of downloaded image.

 

{1 =< n2 =< F8} Defines the vertical size of downloaded image.

[Outline]

Defines downloading bit images of the number of dots specified by n1 and n2.

 

The numbers of dots are n1 8 in horizontal direction and n2 8 in vertical direction.

 

The number of horizontal bytes can be up to 7F, but only the first 48 (30H) bytes will

 

be printed. The rest will be rejected.

 

d indicates bit image data.

 

• The downloaded bit image thus defined is valid till it is redefined or ESC _ is

 

 

executed. After power off, the downloaded bit image is maintained even by the

 

 

execution of Initialize command.

[Caution]

This downloaded bit image is also printed at the self-test printing.

 

The maximum size of the Bit image cannot exceed 16 KB.

 

Relations between the bit image data and the dot defined are shown below.

When n1 = 30 (1E Hex)

30 8 dot = 240 dot

1

2

3

. . . . . . . .

28

29

30

 

31

32

33

. . . . . . . .

58

59

60

. . . . . . . .

61

62

63

88

89

90

 

 

 

 

. . . . . . . .

 

 

30*n2

 

 

 

 

 

 

n2

LSB 1 2 3

4 5 6 7

8 MSB

[See Also]

GS /

[Sample Program]

GOSUB IMG

PRINT #1, CHR$ (&H1D) + “/” + CHR$ (0); PRINT #1, CHR$ (&H1D) + “/” + CHR$ (1); PRINT #1, CHR$ (&H1D) + “/” + CHR$ (2); PRINT #1, CHR$ (&H1D) + “/” + CHR$ (3);

END

IMG:

n 1 = 10 : n 2= 50

PRINT #1, CHR$ (&H1D) + “*”; PRINT #1, CHR$ (n1) + CHR$ (n2); FOR I=1 TO n2

FOR J=1 TO n1 PRINT #1, CHR$ (J);

NEXT I

NEXT J

RETURN

— 43 —

Image 45
Contents Command Reference Revision Code Command Function CMP-10 Command SETGS H Xxxx ALL Command DetailsBEL Print Results Sample Program0AH ESC RS ESC SP n Default Sample ProgramDefault See Also ESC ! nBit Function Value END ESC $ n1 n2 ESC % n ESC & m n1 n2 d k Initialize commandHex Mode Vertical Direction Horizontal Direction Dots ESC * m n1 n2 d kMax. Dots IMG1 Page ESC + ESC nHex Type ESC ESC 3 n Bit Equipment Value ESC = nESC n Hex Track ESC ? nESC @ See Also Sample Program Print Results ESC D n k NULESC E n ESC G n ESC J n ESC R nHex Character Set ESC T ESC S nHex Speed bps Model CMP-10 VerHex Condition ESC V nESC Y n Byte ESC ZUpdate via firmware interface Not in use Reserved, always Byte ESC \ n1 n2 ESC ` Hex Position ESC a nESC c5 n ESC d n ESC ESC x n Default Initial value of n is Sample Program GS n m Memory Switch OFFSee Also Sample Program GS * n1 n2 d n1 n2 D1 ...... DnHex Name Dot Density Vertical Direction Horizontal Direction GS / m1DH3AH Hex Printing Position GS H nGS L nL nH GS W n NL = 40 Hex, nH = 2 Hex GS n1 n2 n3 Hex ModeBit Status Item Addressed by ABS GS a nNot in use Thermal head is overheated Disabled for ASB may also have changed Hex Font GS f n1DH68Hn GS k m d1 ..... dk NUL GS k m n d1 ...... dn Bar code system Range of k Range of dBar code system Range of n Range of d For Standard Mode ForDescription of Bar Codes JAN-8EAN Code set a Code set B Code set C HexDescriptionof Bar Codes Type Print Sample Outline of Symbol Max. ColumnGS w nL nH ESC l n Black Mark FunctionDistance from PE sensor and print head is approx .5 mm Character Codes Table Programming Considerations Serial Interface Pin No Signal Direction Function Pin No. of Cable14, 15 pin Communicate mode setting Explanation of Input/Output SignalsRS-232C Circuit Electrical CharacteristicsIrComm 3 Wire raw IrLPT Infrared Communication SpecificationsPrinter Mechanism Mechanical SpecificationBattery Power Related SpecificationsEMI Standard AC Adaptor