Citizen Systems Model CMP-10 manual IMG1

Page 17

[Sample Program]

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

 

PRINT #1, CHR$(0) + CHR$(20) + CHR$(0);

IMG1:

GOSUB IMG1

PRINT #1, CHR$(&HFF);

PRINT #1, CHR$(&HA);

FOR I=1 TO 18

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

PRINT #1, CHR$(&H85);

PRINT #1, CHR$(1) + CHR$(20) + CHR$(0);

NEXT I

GOSUB IMG1

PRINT #1, CHR$(&HFF);

PRINT #1, CHR$(&HA);

RETURN

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

IMG2:

PRINT #1, CHR$(32) + CHR$(20) + CHR$(0);

PRINT #1, CHR$(&HFF);

GOSUB IMG2

PRINT #1, CHR$(&HFF);

PRINT #1, CHR$(&HA);

PRINT #1, CHR$(&HFF);

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

FOR I=1 TO 18

PRINT #1, CHR$(33) + CHR$(20) + CHR$(0);

PRINT #1, CHR$(&H80);

GOSUB IMG2

PRINT #1, CHR$(&H00);

PRINT #1, CHR$(&HA);

PRINT #1, CHR$(&H05);

END

NEXT I

 

PRINT #1, CHR$(&HFF);

 

PRINT #1, CHR$(&HFF);

 

PRINT #1, CHR$(&HFF);

 

RETURN

[Print Results]

← 8-dot single density ← 8-dot double density

← 24-dot single density

← 24-dot double density

Ñ 15 Ñ

Image 17
Contents Command Reference Revision Code Command Function CMP-10 Command SETGS W GS HGS L Xxxx ALL Command DetailsBEL Print Results Sample Program0AH ESC RS ESC SP n Default Sample ProgramBit Function Value Default See AlsoESC ! n END ESC $ n1 n2 ESC % n ESC & m n1 n2 d k Initialize commandMax. Dots Hex Mode Vertical Direction Horizontal Direction DotsESC * m n1 n2 d k IMG1 Page Hex Type ESC +ESC n ESC ESC 3 n Bit Equipment Value ESC = n21 Ñ Hex Track ESC ? nESC @ See Also Sample Program Print Results ESC D n k NULESC E n ESC G n Hex Character Set ESC J nESC R n 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 33 Ñ ESC \ n1 n2 ESC ` Hex Position ESC a nESC c5 n ESC d n ESC ESC x n B B B 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 n Range of d GS k m d1 ..... dk NUL GS k m n d1 ...... dnBar code system Range of k Range of d Description of Bar Codes For Standard ModeFor JAN-8EAN Code set a Code set B Code set C HexDescriptionof Bar Codes Type Print Sample Outline of Symbol Max. ColumnJAN-8 CODE93 CODE128GS w nL nH AT*PAIRINFO=1 AT command Function Factory defaultAT*PAIRINFO=0 Example Bluetooth Init CommandsESC l n Black Mark FunctionDistance from PE sensor and print head is approx .5 mm Character Codes Table Setup menu function After Ver2.20 Change IrDA MAX Speed ? If YES is not chosen, the changed setting will not be lostMemory switch 8 = Memory switches OFF0 ON1Change Print Density ? 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 SpecificationsMcbf Mechanical SpecificationBattery Power Related SpecificationsUL, C-UL, PSE 10AD-JU AC AdaptorEMI Standard