Citizen PPU-231 manual Example Sample Program

Page 61

PPU-231 User’s Manual

[Example]

[Sample Program]

LPRINT CHR$ (&H1B) + "∗" ;

 

 

LPRINT CHR$ (0) + CHR$ (20) + CHR$ (0) ;

IMG1 :

 

GOSUB IMG1

LPRINT

CHR$ (&HFF) ;

LPRINT CHR$ (&HA) ;

FOR I=1 TO 18

LPRINT CHR$ (&H1B) + "∗" ;

LPRINT CHR$ (&H85) ;

LPRINT CHR$ (1) + CHR$ (20) + CHR$ (0) ;

NEXT I

 

GOSUB IMG1

LPRINT

CHR$ (&HFF) ;

LPRINT CHR$ (&HA) ;

RETURN

 

LPRINT CHR$ (&H1B) + "∗" ;

IMG2 ;

 

LPRINT CHR$ (32) + CHR$ (20) + CHR$ (0) ;

LPRINT CHR$ (&HFF) ;

GOSUB IMG2

LPRINT

CHR$ (&HFF) ;

LPRINT CHR$ (&HA) ;

LPRINT

CHR$ (&HFF) ;

LPRINT CHR$ (&H1B) + "∗" ;

FOR I=1 TO 18

LPRINT CHR$ (33) + CHR$ (20) + CHR$ (0) ;

LPRINTCHR$ (&H80) ;

GOSUB IMG2

LPRINTCHR$ (&H00) ;

LPRINT CHR& (&HA) ;

LPRINTCHR$ (&H05) ;

END

NEXT I

 

 

LPRINT

CHR$ (&HFF) ;

 

LPRINT

CHR$ (&HFF) ;

 

LPRINT

CHR$ (&HFF) ;

 

RETURN

 

[Print Results]

48

CITIZEN

Image 61
Contents Line Thermal Printer Declaration of Conformity Important Safety Instructions Lärmemission kleiner 70dBA Wichtige SicherheitsanweisungenCitizen Be Sure to Observe Safety PrecautionsCitizen Precautions for Installation Precautions for Handling Daily Maintenance Contents DIP Switch Setting Appendix Outline FeaturesUnpacking Model Classifications Basic SpecificationsPPU series Printer/Presenter unit Options PHU series Paper holding unit 31AD series Power supply unitPRU series Presenter unit MiscellaneousPMU series Printer mechanism unit BD2 series Control PCB with accessories ESC/POS Basic SpecificationsRecommended Paper Paper SpecificationsPrinting Position Printing Head and Paper Cutter Layout PPU Printer/Presenter Unit Outer Appearance and Component PartsCitizen Optional PHU Paper Holding Unit Using the Power Connector Connecting the AC AdapterOperation CN1 Connecting a Power Cable to the Control PCBGND Connecting the Interface Cable Busy STBACK TXD DTRRXD DSRInserting the Paper How to Remove Remaining Paper Roll Eliminating a Jam in the Printer Mechanism Eliminating the Paper JamEliminating a Jam in the Presenter Releasing a Locked Cutter Feed Switch FunctionPaper End Function Paper Near End Function When Using the PHU Connecting the PHU Paper Holding UnitCN5 PNESelf-Print Function Auto-Loading FunctionPresenter Control Location of DIP Switch DIP Switch SettingDIP switch 1 DS1 DIP Switch FunctionDIP switch 2 DS2 Baud rate and parity settingPrint density Connectors Pin Configuration SpecificationsACK, BUSY, STROBE, FAULT, PE, Reset Strobe Twisted Pair GND Data ACK Busy Reset Fault Frame GNDInput and Output Signals Input and Output SignalsStrobe Electrical Characteristics Data Receiving Control Timing ChartBuffering Serial Interface Input and Output Signals Error Detection Data ConfigurationOutput TXD, DTR Printer Side Electrical Characteristics RS-232C CircuitPower Connector Maintenance and Service Print Control Functions Commands List1DH 3AH Description of Items Command DetailsESC D DetailsESC SP ESC Lprint CHR$ &HA ESC ESC %ESC & s n P s × a m n +1 Citizen ESC ∗ m n1 N2 d k Example Sample Program ESC − n ESC 3 n ESC = 52CITIZEN ESC D n NUL ESC E ESC E ESC GESC R Condition Canceling 90-right- turned Characters Position ESC c Parallel Interface Only ESC d ESC cESC When Using Auto Cutter ESC m When Using Auto Cutter ESC t XON/XOFF ESC Serial Interface OnlyInverted printing means printing the line at 180turned ESC ¥ ESC $ n1ESC $ Type OnlyUPC-A UPC-E JAN13 EAN JAN 8 EAN Code GS k nCodabar NW-7 UPC-AJAN-8EAN JAN-13EANCODE39 ITFCode Btestcode A123 TestUPC-A GS w GS h n Specify before the GS k command GS H GS f nGS ∗ n1 N2 d n1 × n2 × Sample Program Print Results 203 DPI Double wide mode Lprint CHR$ GS n1 n2 n3 International Character Codes TableJapanese International Character Code Table Appendix 1. Block Diagram Unit mm Appendix 2. Outline Drawing for PPUAppendix 3. Outline Drawing for PHU