Citizen THERMAL CMP-20 User Manual

Browse online or download User Manual for Print & Scan Citizen THERMAL CMP-20. Command reference

  • Download
  • Add to my manuals
  • Print

Summary of Contents

Page 1 - MOBILE THERMAL PRINTER

MOBILE THERMAL PRINTER MODEL CMP-30 series ESC Command Manual Rev. 1.00

Page 2 - TABLE OF CONTENTS

- 10 - n = 2: Off-line status Bit Off/On Hex Decimal Function 0 Off 00 0 Not used. Fixed to Off 1 On 02 2 Not used. Fixed to On Off 00

Page 3

- 11 - during printing, bit 6 is On. n = 4: Continuous paper sensor status Bit Off/On Hex Decimal Function 0 Off 00 0 Not used. Fixed to Of

Page 4 - Command Function

- 12 - DLE ENQ [Name] Real-time status transmission ASCII DLE ENQ n Hex 10 05 n [Format] Decimal 16 5 n [Range] 1 ≤ n ≤ 2 [Description] Respond

Page 5

- 13 - 3. ESC Commands ESC FF [Name] Print data in page mode ASCII ESC FF Hex 1B 0C [Format] Decimal 27 12 [Description] In page mode,

Page 6 - 1. Command Description

- 14 - ESC 2 [Name] Select default line spacing ASCII ESC 2 Hex 1B 32 [Format] Decimal 27 50 [Description] Selects approximately 4.23

Page 7 - 2. Commands

- 15 - ESC - [Name] Turn underline mode on/off ASCII ESC - n Hex 1B 2D n [Format] Decimal 27 45 n [Range] 0 ≤ n ≤ 2, 48 ≤ n ≤ 50 [Description

Page 8

- 16 - ESC ! [Name] Select print mode(s) ASCII ESC ! n Hex 1B 21 n [Format] Decimal 27 33 n [Range] 0 ≤ n ≤ 255 [Description] x Selects print

Page 9 - DLE EOT

- 17 - emphasized mode is effective only for alphanumeric. [Default] n = 0 ESC $ [Name] Set absolute print position ASCII Hex [Format

Page 10

- 18 - ESC & [Name] Define user-defined characters ASCII ESC & y c1c2[x1 d1…d(yⅹx1)]…[xk d1…d(yⅹxk)] Hex 1B 26 y c1c2[x1 d1…d(yⅹx1)]…[xk d1

Page 11

- 19 - When font A(12 x 24) is selected.

Page 12 - DLE ENQ

- 2 - TABLE OF CONTENTS 1. Command Description ...

Page 13 - 3. ESC Commands

- 20 - ESC * [Name] Select bit-image mode ASCII ESC * mnLnHd1 …dk Hex 1B 2A mnLnHd1 …dk [Format] Decimal 27 42 mnLnHd1 …dk [Range] m = 0, 1,

Page 14

- 21 - ② If step ① does not provide sufficient width for the data, the left margin is reduced to accommodate the data. x After printing a bit imag

Page 15

- 22 - ESC ? [Name] Cancel user-defined characters ASCII ESC ? n Hex 1B 3F n [Format] Decimal 27 63 n [Range] 32 ≤n ≤126 [Description] Cancels

Page 16

- 23 - ESC @ [Name] Initialize printer ASCII ESC @ Hex 1B 40 [Format] Decimal 27 64 [Description] x Clears the data in the print buffer

Page 17 - L + nH x

- 24 - ESC \ [Name] Set relative print position ASCII ESC \ nL … nH Hex 1B 5C nL … nH [Format] Decimal 27 92 nL … nH [Range] 0 ≤ nL ≤ 255, 0

Page 18 - ESC &

- 25 - ESC a [Name] Select justification ASCII ESC a n Hex 1B 61 n [Format] Decimal 27 97 n [Range] 0 ≤n ≤2, 48 ≤n ≤50 [Description] Aligns a

Page 19

- 26 - x This command cancels the previous horizontal tab settings. x When setting n = 8, the print position is moved to column 9 by sending HT. x Up

Page 20 - L ≤ 255

- 27 - ESC J [Name] Print and feed paper ASCII ESC J n Hex 1B 4A n [Format] Decimal 27 74 n [Range] 0 ≤ n ≤255 [Description] Prints the data

Page 21

- 28 - ESC L [Name] Select page mode ASCII ESC L Hex 1B 4C [Format] Decimal 27 76 [Description] Switches from standard mode to page mod

Page 22

- 29 - ESC M [Name] Select character font ASCII ESC M n Hex 1B 4D n [Format] Decimal 27 77 n [Range] n = 0, 1 , 48, 49 [Description] Selects

Page 23

- 3 - ESC V ...

Page 24 - L+ nH x 256) x

- 30 - ESC R [Name] Select an international character set ASCII ESC R n Hex 1B 52 n [Format] Decimal 27 82 n [Range] 0≤n ≤13 [Description] Se

Page 25

- 31 - [Default] n = 0 ESC S [Name] Select standard mode ASCII ESC S Hex 1B 53 [Format] Decimal 27 83 [Range] [Description] Switches f

Page 26

- 32 - ESC T [Name] Select print direction in page mode ASCII ESC T n Hex 1B 54 n [Format] Decimal 27 84 n [Range] 0 ≤ n ≤ 3, 48 ≤ n ≤51 [Des

Page 27

- 33 - ESC t [Name] Select character code table ASCII ESC t n Hex 1B 74 n [Format] Decimal 27 116 n [Range] 0 ≤ n ≤ 16 [Description] Selects

Page 28

- 34 - ESC V [Name] Turn 90° clockwise rotation mode on/off ASCII ESC V n Hex 1B 56 n [Format] Decimal 27 86 n [Range] 0 ≤ n ≤ 1, 48 ≤ n ≤ 49

Page 29

- 35 - ESC W [Name] Turn 90° clockwise rotation mode on/off ASCII ESC V n Hex 1B 56 n [Format] Decimal 27 86 n [Range] 0 ≤ n ≤ 1, 48 ≤ n ≤ 49

Page 30

- 36 - 4. GS Commands GS FF [Name] print and eject label ASCII GS FF Hex 1D 0C [Format] Decimal 29 12 [Description] To search Black m

Page 31

- 37 - GS ! [Name] Select character size ASCII GS ! n Hex 1D 21 n [Format] Decimal 29 33 n [Range] 0 ≤ n ≤ 255 (1 ≤ vertical number of times

Page 32

- 38 - when character orientation changes in 90° clockwise-rotation mode, the relationship between vertical and horizontal directions is reversed. x

Page 33

- 39 - GS ( [Name] set adjustment value in black mark function ASCII GS ( Fa1 a2 a3 a4 nL nH Hex 1D 28 46a1 a2 a3 a4 nL nH [Format] Decimal 29

Page 34

- 4 - Command Function CMP-20 CMP-30 HT(0x09) Horizontal tab ○ ○ LF(0x0A) Print and line feed ○ ○ CR(0x0D) Print and carriage return ○ ○ FF

Page 35

- 40 - ③ FS q is executed. ④ Printer is reset or the power is turned off. x The following figure shows the relationship between the downloaded bit

Page 36 - 4. GS Commands

- 41 - down mode. x If the downloaded bit-image to be printed exceeds the printable area, the excess data is not printed. x If the printing area widt

Page 37

- 42 - x r specifies the number of times to execute the macro. x t specifies the waiting time for executing the macro. x m specifies macro executing

Page 38

- 43 - ① When the starting position is set to the upper left or lower right of the printing, the vertical motion unit (y) is used. ② When the start

Page 39

- 44 - GS a [Name] enable/disable automatic status back ASCII GS a n Hex 1D 61 n [Format] Decimal 29 97 n [Range] 0 ≤n ≤255 [Description] E

Page 40

- 45 - x The status to be transmitted are as follows: First byte (printer information) Bit Off/On Hex Decimal Status for ASB 0 Off 00 0 Not us

Page 41

- 46 - during printing, bit 6 is On. Third byte (paper sensor information) Bit Off / On Hex Decimal Status for ASB Off 00 0 0,1 On 03 3 Off

Page 42 - L + nH × 256 = 65536 - N

- 47 - if underline mode is on, it is disabled (but not canceled) when white/black reverse mode is selected. [Default] n = 0

Page 43

- 48 - GS f [Name] font for Human Readable Interpretation (HRI)characters ASCII GS f n Hex 1D 66 n [Format] Decimal 29 102 n [Range] n = 0, 1

Page 44

- 49 - GS h [Name] Set bar code height ASCII GS h n Hex 1D 6B n [Format] Decimal 29 104 n [Range] 1 ≤ n ≤ 255 [Description] Select the height

Page 45

- 5 - GS FF(x0C) print and eject label × ○ GS ! Select character size ○ ○ GS $ Set absolute vertical print position in page mode ○ ○ GS ( set a

Page 46

- 50 - 67 EAN13 12 ≤ n ≤ 13 48 ≤ d ≤ 57 68 EAN8 7 ≤ n ≤ 8 48 ≤ d ≤ 57 69 CODE39 1 ≤ n ≤ 255 48 ≤ d ≤ 57, 65 ≤ d ≤ 90, 32,36,37,43,45,46,47 70 ITF 1

Page 47 - [Default]

- 51 - string. x The printer prints an HRI character ( ) as a stop character at the end of the HRI character string. x The printer prints HRI charact

Page 48

- 52 - The ASC character “{“ is defined by transmitting “{“ twice consecutively.Ⅱ Transmit data Specific character ASCII Hex Decimal SHIFT {S 7B,

Page 49

- 53 - GS L [Name] Set left margin ASCII GS L nL nH Hex 1D 4C nL nH [Format] Decimal 29 76 nL nH [Range] 0 ≤ nL ≤ 255 0 ≤ nH ≤ 255 [Descripti

Page 50

- 54 - x In standard mode, the following commands use x or y, regardless of character rotation (upside-down or 90° clockwise rotation): x In page m

Page 51

- 55 - x The status types to be transmitted are shown below: Paper sensor status ( n = 1, 49): Bit Off / On Hex Decimal Status for ASB Off 00 0

Page 52

- 56 - 7bit ‘0’ 48(* You much select parity bit) 8bit ‘1’ 49 n3: Parity Bit none ‘0’ 48 odd ‘1’ 49 even ‘2’ 50 n4: Stop Bit 1 stop bit ‘1’ 49 2 stop

Page 53 - ≤ 255, 0 ≤ y ≤ 255

- 57 - save mode, you need to press the power button or need to send any dummy data. However, when the USB cable is connected with the Host, the pr

Page 54

- 58 - the print buffer. x This command has no effect in all print modes (character size, emphasized, double-strike, upside-down, underline, white/bl

Page 55

- 59 - GS W [Name] Set printing area width ASCII GS WnL nH Hex 1D 57nL nH [Format] Decimal 29 87nL nH [Range] 0 ≤ nL ≤ 255 0 ≤ nH ≤ 255 [Descrip

Page 56

- 6 - 1. Command Description Command Notation [Name] The name of the control command. [Format] The code sequence. In this description, < > H de

Page 57

- 60 - ③ If the printing area width cannot be extended sufficiently, the right space is reduced. x If the width set for the printing area is less th

Page 58

- 61 - GS w [Name] Set bar code width ASCII GS w n Hex 1D 77 n [Format] Decimal 29 119 n [Range] 2 ≤ n ≤ 6 [Description] Set the horizontal s

Page 59

- 62 - 5. FS Commands FS E P [Name] Define code page ASCII FS E Pm Hex 1C 45 50m [Format] Decimal 28 69 80m [Range] 0 ≤ m ≤ 16 [Description] S

Page 60

- 63 - FS p [Name] Print NV bit image ASCII FS p nm Hex 1C 70 nm [Format] Decimal 28 112 nm [Range] 1 ≤ n ≤ 255, 0 ≤ m ≤ 3, 48 ≤ m ≤ 51 [Desc

Page 61

- 64 - x This command feeds dots (for the height n of the NV bit-image) in normal and double-width modes, and (for the height n x 2 of the NV bit-ima

Page 62 - 5. FS Commands

- 65 - by FS q and printed by FS p. x In standard mode, this command is effective only when processed at the beginning of the line. x In page mode, t

Page 63

- 66 - perform printing. Printing of the NV bit image is performed by the FS q command. [Notes] x Frequent write command execution may cause damage t

Page 64

- 67 - FS - [Name] Underline mode on/off ASCII FS _ n Hex 1C 2D n [Format] Decimal 28 45 n [Range] 0 ≤ n ≤ 2, 48 ≤ n ≤ 50 [Description]

Page 65

- 68 - Off 00 0 Double-height mode is OFF. 3 On 08 8 Double-height mode is ON. 4 - - - Undefined. 5 - - - Undefined. 6 - - - Undefined. O

Page 66 - [Notes]

- 69 - [Details] Magnetic card read out put format STX FS TrackⅠData FS Track ⅡData FS TrackⅢ Data ETX 0~76 Byte 0~37 Byte 0~106Byte 0x02

Page 67

- 7 - 2. Commands HT [Name] Horizontal tab ASCII HT Hex 09 [Format] Decimal 9 [Description] Moves the print position to the next ta

Page 68

- 70 - FS S [Name] set left-side/right-side character spacing ASCII FS S n1 n2 Hex 1C 53 n1 n2 [Format] Decimal 28 83 n1 n2 [Range] 0 ≤ n1 ≤

Page 69

- 71 - FS W [Name] Turn quadruple-size mode on/off for characters ASCII FS W n Hex 1C 57 n [Format] Decimal 28 87 n [Ran

Page 70

- 8 - CR [Name] Print and carriage return ASCII CR Hex 0D [Format] Decimal 13 [Description] When automatic line feed is enabled, t

Page 71

- 9 - DLE EOT [Name] Real-time status transmission ASCII DLE EOT n Hex 10 04 n [Format] Decimal 16 4 n [Range] 1 ≤ n ≤ 4 [Description] Transm

Comments to this Manuals

No comments