Unitech MP300 manual Programming Information, Ascii Control Characters, Printer Font Commands

Page 12

Programming Information

This section lists the printer control command strings.

ASCII Control Characters

Character

Hex / Dec

Control Action

EOT

04/04

End of text

 

 

 

BS

08/08

Back space

HT

09/09

Horizontal tab

 

 

 

LF

0A/10

Line feed

VT

0B/11

Vertical tab

 

 

 

FF

0C/12

Form feed

CR

0D/13

Carriage return

SO

0E/14

Shift out

SI

0F/15

Shift in

XON

11/17

Transmitter on

 

 

 

AUXON

12/18

Printer on

XOFF

13/19

Printer receiver is off

 

 

 

NORM

14/20

Return to default 42 column mode

AUXOFF

15/21

Printer to host: Printer is off

CANCEL

18/24

Cancel and reset printer buffer

ESC

1B/27

Escape

EXTEND

1C/28

Extended print

 

 

 

EXTEND OFF

1D/29

Extended print off / Normal print

Printer Font Commands - Courier Character Set

Font Name

Character Size ( W x H)

Command String

24 CPI Normal

8 x 23

ESC+’k’+’5’

21 CPI Normal

9 x 23

ESC+’k’+’4’

 

 

 

19 CPI Normal

10 x 23

ESC+’k’+’3’

16 CPI Normal

12 x 23

ESC+’k’+’2’

 

 

 

12 CPI Normal

16 x 23

ESC+’k’+’1’

 

 

 

13 CPI Rotated

14 x 16

ESC+’k’+’0’

Copyright 2008 Unitech Electronics Co., Ltd. All rights reserved. Unitech is a registered trademark of Unitech Electronics Co., Ltd.

22

Printer Font Commands

Command String

Printer Action

ESC - ‘F’ - 1

Selects International character set

 

 

ESC - ‘F’ - 2

Selects PC Line Draw character set

ESC

- ‘U’ - ‘1’

Enable emphasized print

 

 

 

ESC

- ‘U’ - ‘0’

Disable emphasized print

Below are the International and PC Line Character sets from 32 through 255:

International Character Set

PC Line Draw Character Set

Printer Graphic Commands

Command String

Printer Action

ESC - ‘A’ – n

Select dot line spacing between printed lines

ESC - ‘J’ – n

Graphic line feed command

 

 

ESC - ‘P’ - ‘#’

Select online mode, characters printed as received

ESC - ‘P’ - ‘$’

Select buffer mode, characters are printed on (^ D)

 

 

ESC - ‘V’ - n1 – n2

8-bit graphic command

 

 

ESC - ‘v’ - n1 – n2

RLE compressed graphic command

Copyright 2008 Unitech Electronics Co., Ltd. All rights reserved. Unitech is a registered trademark of Unitech Electronics Co., Ltd.

23

Image 12
Contents MP300 Mobile Printer About This Manual SupportTable of Contents Getting Started Introducing the MP300What’s in the Box Tour of the MP300 Declaration of ConformityCommunication Options Installing and Charging the Battery Installing the BatteryCharging the Battery Battery NoticesLED Indicator State Status Reading the LED StatusAttaching the Belt Clip Loading Supplies Adding PaperTearing Paper Using the Printer Initial Power Up and Self-TestConnecting the Printer DIP Switch LocationSerial Communication Specification Setting DIP Switches DIP Switch FunctionsRJ45 Connector Pin # CommunicationInfrared Communication Mode IrDA Bluetooth Communication OptionMagnetic Stripe Reader Option Printer Font Commands Courier Character Set Printer Font CommandsProgramming Information Ascii Control CharactersMagnetic Stripe Reader Commands When MSR is Installed Smart Card Reader Control Commands when SCR is installedGraphic Logo and Bar Code Commands Printer Supervisory and Control CommandsPrinter Maintenance Print-Head CleaningCharging the Printer Battery Verifying Battery Charge StateTrouble Shooting To Test the DC PowerTo Test if the Battery is Accepting the Charge Battery and Safety InformationSpecifications Printer SpecificationsPrinter Supplies Part Number DescriptionRegulatory Notes and Warranty Supply SpecificationsWarranty FCC Part 15 Class BWarranty and/or Repair Service