Citizen CMP-10 manual Esc @, Sample Program

Page 25

ESC @

[Function]

Initializing the Printer

[Code]

<1B>H<40>H

[Outline]

Clears data stored in the print buffer and brings various settings to the initial state

 

(Default state). Items not cleared are as shown below.

 

Data inside the internal input buffer are not cleared.

 

Does not clear any data in the internal input buffer.

 

Does not clear downloaded characters.

 

Does not clear defined downloaded characters.

 

Does not clear defined downloaded bit image.

 

Does not clear defined macro.

 

Does not clear setting for print density.

 

Does not clear baud rate setting of serial port.

 

Does not clear valid/invalid setting for panel switch.

 

Does not clear ASB mode setting.

 

Does not clear setting for auto power-off time.

 

Does not clear memory switch.

[Caution]

At power off, the following settings are cleared in addition to the items cleared by

 

this command.

 

Clears input buffer.

 

Clears macro.

 

Return ASB mode according to the memory switch setting.

 

Clears valid/invalid setting for panel switch.

[Sample Program]

 

 

 

PRINT #1, CHR$ (&H1B) + “ ! “ + CHR$ (&H30) ;

 

PRINT #1, CHR$ (&H1B) + “V” + CHR$ (1);

 

PRINT #1, “AAA” + CHR$ (&HA);

 

PRINT #1, CHR$ (&H1B) + “@”;

 

PRINT #1, “AAA” + CHR$ (&HA);

[Print Results]

A A A

 

 

A A A

— 23 —

Image 25
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 ProgramESC ! n Default See AlsoBit Function Value END ESC $ n1 n2 ESC % n ESC & m n1 n2 d k Initialize commandESC * m n1 n2 d k Hex Mode Vertical Direction Horizontal Direction DotsMax. Dots IMG1 Page ESC n ESC +Hex 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 R n ESC J 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 Bar code system Range of k Range of d GS k m d1 ..... dk NUL GS k m n d1 ...... dnBar code system Range of n Range of d For For Standard ModeDescription 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