You are on page 1of 45

Command Manual

SPP-R200
Mobile Printer Rev. 1.00

http://www.samsungminiprinters.com

SPP-R200 Table of Contents


1. Notice................................................................................................................................ 3

2. Control Commands List .................................................................................................. 3

3. Control Commands Details............................................................................................. 5 3-1 Command Notation....................................................................................................... 5 3-2 Explanation of Terms.................................................................................................... 5 3-3 Control Commands Details........................................................................................... 5

Rev. 1.00

-2-

SPP-R200 1. Notice
This Control Commands Manual contains information on the protocol and functions of all control commands that can be used with this printer (SPP-R200).

2. Control Commands List


No Command 1 HT 2 LF 3 FF 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 CR CAN DLE EOT n DLE ENQ DLE DC4(Fn=2) DLE DC4(Fn=7) DLE DC4(Fn=8) ESC FF ESC SP n ESC ! n ESC $ nL nH ESC * m nL mH ESC - n ESC 2 ESC 3 n ESC = ESC @ ESC D n ESC E n ESC G n ESC J n ESC L ESC M n EOT ESC R n ESC S ESC T n Name Horizontal tab Print and line feed Print and return to standard mode (in page mode) Print and carriage return Cancel print data in page mode Transmit real-time status Send real-time request to printer Execute power-off sequence, Transmit specified status in real-time Clear buffer(s) Print data in page mode Set right-side character spacing Select print mode(s) Set absolute print position Select bit-image mode Turn underline mode on/off Select default line spacing Set line spacing Select peripheral device Initialize printer Set horizontal tab positions Turn emphasized mode on/off Turn double-strike mode on/off Print and feed paper Select page mode Select character font or Set card reader mode Cancel card reader mode Select an international character set Select standard mode Select print direction in page mode Function Type Print Position Print Print Print Character Status Mics Mics Mics Mics Print Character Character Print Position Bit-image Character Line Spacing Line Spacing Mics Mics Print Position Character Character Print Mics Character/MSR MSR Character Mics Print Position

Rev. 1.00

-3-

SPP-R200
No 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 Command ESC W n ESC \ nL nH ESC a n ESC c 5 n ESC d n ESC t n ESC { GS ! n GS $ n GS ( A GS ( D GS ( E GS ( L GS ( M GS ( k GS : GS B n GS H GS I GS L nL nH GS W GS \ GS ^ GS f GS h GS k GS r GS v 0 GS w FS . FS & Name Set print area in page mode Set relative print position Select justification Enable/disable panel buttons Print and feed n lines Select character code table Turn upside-down print mode on/off Select character size Set relative vertical print position in page mode Execute test print Enable/disable real-time command Set user setup commands Set graphics data Customize printer control value(s) Select print control method(s) Start/end macro definition Turn white/black reverse print mode on/off Select print position of HRI characters Transmit printer ID Set left margin Set print area width Set relative vertical print position in page mode Execute macro Select font for HRI characters Set bar code height Print bar code Transmit status Print raster bit image Set bar code width Cancel Kanji character mode Select Kanji character mode Function Type Print Position Print Position Print Position Panel Button Print Character Character Character Print Position Mics CUSTOMIZE BIT-IMAGE CUSTOMIZE Two dimension Macro Character Bar code Mics Print Position Print Position Print Position Macro Bar code Bar code Bar code Status Bit-image Bar code 2bytes code 2bytes code

Rev. 1.00

-4-

SPP-R200 3. Control Commands Details


3-1 Command Notation [Name] [Format] The name of the command. The code sequence.: ASCII Indicates the ASCII character equivalents. Hex indicates the hexadecimal equivalents. Decimal indicates the decimal equivalents. [ ] k indicates the contents of the [ ] should be repeated k times. Gives the allowable ranges for the arguments. Describes the function of the command.

[Range] [Description]

3-2 Explanation of Terms LSB Least Significant Bit

3-3 Control Commands Details HT [Name] [Format] [Description] LF [Name] [Format] [Description] Horizontal tab. ASCII HT Hex 09 Decimal 9 Moves the print position to the next horizontal tab position. Print and line feed. ASCII LF Hex 0A Decimal 10 In standard mode, prints the data in the print buffer and feeds one line based on the current line spacing. In page mode, modes the print position in memory to feed one line based on the current line spacing. Print and return to standard mode in page mode. ASCII FF Hex 0C Decimal 12 In page mode, prints all the data in the print buffer collectively and switches from page mode to standard mode.

FF [Name] [Format] [Description]

Rev. 1.00

-5-

SPP-R200
CR [Name] [Format] [Description] [Notes] CAN [Name] [Format] [Description] DLE EOT n [Name] [Format] [Range] [Description]

Print and carriage return. ASCII CR Hex 0D Decimal 13 This command is ignored CR.

Cancel print data in page mode. ASCII CAN Hex 18 Decimal 24 In page mode, deletes all the print data in the current print area. Transmission real-time status. ASCII DLE EOT n Hex 10 04 n Decimal 16 4 n 1n4 Transmits the status specified by n in real-time as follows:

n Function 1 Transmit printer status. 2 Transmit off-line status. 3 Transmit error status. 4 Transmit paper roll sensor status. This printer transmits the following status in real time. n=1: Printer status Bit 0 1 2 3 4 5 6 7 Off/On Off On Off Off On On Off On Off On Off Hex 00 02 00 00 08 10 00 20 00 40 00 Decimal 0 2 0 0 8 16 0 32 0 64 0 Function Fixed. Fixed. Fixed. On-Line. Off-Line. Fixed. Not in on-line waiting status. During on lines waiting status. Paper FEED button is turned Off. Paper FEED button is turned On. Fixed.

Rev. 1.00

-6-

SPP-R200
n=2: Off-line status Bit 0 1 2 3 4 5 6 7 Off/On Off On Off On Off On On Off On Off On Off Hex 00 02 00 04 00 08 10 00 20 00 40 00 Decimal 0 2 0 4 0 8 16 0 32 0 64 0 Function Fixed. Fixed. Cover is closed. Cover is open. Paper is not being fed by using the paper FEED button. Paper is being fed by the paper FEED button. Fixed. No paper-end stop. Printing is being stopped. No error. Error has occurred. Fixed. n=3: Error status Bit 0 1 2 3 4 5 6 7 Off/On Off On Off Off On Off Off Off Hex 00 02 00 00 10 00 00 00 Decimal 0 2 0 0 16 0 0 0 Function Fixed. Fixed. Fixed Fixed. Fixed. Fixed Fixed Fixed. n=4: Continuous paper sensor status Bit 0 1 2 3 4 5 6 7 Off/On Off On Off Off On Off On Off On Off Hex 00 02 00 00 10 00 20 00 40 00 Decimal 0 2 0 0 16 0 32 0 64 0 Function Fixed. Fixed. Fixed. Fixed Fixed. Paper end sensor: paper present. Paper end sensor: paper not present. Paper end sensor: paper present. Paper end sensor: paper not present. Fixed.

[Notes]

If print data includes a character string with this command, the printer performs this command. User must consider this. - Do not embed this command within another command. - For example : Bit image data might include this command. - This command is ignored block data is transmitted.

Rev. 1.00

-7-

SPP-R200
DLE ENQ n [Name] [Format]

Real-time request to printer. ASCII DLE ENQ n Hex 10 05 n Decimal 16 5 n [Range] 0n2 [Description] Responds to a request from the host computer. - n specifies the requests as follows : n 0 1 2 [Notes] Request Works the same as when the paper FEED button is pressed once during waiting status during the operation of the GS ^ command. Recovers from an error and restarts printing from the line where the error occurred. Recovers from an error after clearing the receive and print buffers. Specify n=1 or 2 after removing the cause of the error. If print data includes a character string with this command, the printer performs the command. User must consider this. - Do not embed this command within another command. - This command is ignored block data is transmitted.

DLE DC4 fn a b (fn=2) [Name] Execute power-off sequence. [Format] ASCII DLE DC4 fn a b Hex 10 14 fn a b Decimal 16 20 fn a b [Range] fn=2 a=1 b=8 [Description] Executes the printer power-off sequence. - Stores the values of the maintenance counter. - Transmits the following power-off status (Header + Status + NUL). - Executes the printer power off. Power off status Header Status NUL [Notes] Hex 3B H 30 H 00 H Decimal 59 48 0 Amount of data 1 byte 1 byte 1 byte

If this command is encountered, the printer will not continue to process anything. To recover the printer to print again, it is necessary to turn the power on again or execute a hardware reset. If print data includes a character string with this command, the printer performs the command. User must consider this. - Do not embed this command within another command. - For example: Bit image data might include this command. - This command is ignored block data is transmitted.

Rev. 1.00

-8-

SPP-R200
DLE DC4 fn m (fn=7) [Name] Transmits battery status.. [Format] ASCII DLE DC4 fn m Hex 10 14 7 5 Decimal 16 20 7 5 [Range] fn=7 m=5 [Description] This command is effective when the printer is disabled by ESC = (select peripheral device). m 5 [Notes] Function Transmits battery status. Related command None Amount of data 1 byte

The transmitted battery status from this printer is constructed by [Header ~ NUL] as shown in the
Transmitted data Header Identifier Battery remaining NUL Hex 37H 45H 30h-34H 00H Decimal 55 69 48-52 0 Amount of data 1byte 1byte 1byte 1byte

Battery remaining amount is as indicated in the following table.


Battery remaining amount Hex 30H 31H 32H 33H 34H Decimal 48 49 50 51 52 Information Battery remaining amount : H level Battery remaining amount : M level Battery remaining amount :L level Battery remaining amount :S level Battery isn't installed

DLE DC4 fn d1...d7 (fn=8) [Name] Clear buffer(s). [Format] ASCII DLE DC4 fn d1...d7 Hex 10 14 8 d1...d7 Decimal 16 20 8 d1...d7 [Range] fn=8 d1=1, d2=3, d3=20, d4=1, d5=6, d6=2, d7=8 [Description] Clear all data stored in the receive buffer and the print buffer. Transmits the following three bytes data. Header Flag NUL Hex 37 H 25 H 00 H Decimal 55 37 0 Amount of data 1 byte 1 byte 1 byte

Rev. 1.00

-9-

SPP-R200
[Notes] Enters standard mode. The command must be inhibited for use in a system using this printer and the OPOS driver, java POS driver. If print data includes a character string with this command, the printer performs the command. User must consider this. - Do not embed this command within another command. - For example: Bit image data might include this command. - This command is ignored block data is transmitted. Print data in page mode. ASCII ESC FF Hex 1B 0C Decimal 27 12 In page mode, prints all buffered data in the printing area collectively. Set right-side character spacing. ASCII ESC SP n Hex 1B 20 n Decimal 27 32 n 0 n 255 n=0 Sets the character spacing for the right side of the character to [n horizontal or vertical motion units]. The maximum right-side character spacing is : - 31.875mm. Select print mode(s). ASCII ESC ! n Hex 1B 21 n Decimal 27 33 n 0 n 255 n=0 Selects print mode(s) using n as follows.
Hex 00 01 00 00 08 00 10 00 20 00 00 80 Decimal 0 1 0 0 8 0 16 0 32 0 0 128 Function Character font A (12 24) selected. Character font B (9 x 24) selected. Reserved. Emphasized mode not selected. Emphasized mode selected. Double-height mode not selected. Double-height mode selected. Double-width mode not selected. Double-width mode selected. Reserved. Underline mode not selected. Underline mode selected.

ESC FF [Name] [Format] [Description] ESC SP n [Name] [Format] [Range] [Default] [Description]

ESC ! n [Name] [Format] [Range] [Default] [Description]


Bit 0 1,2 3 4 5 6 7 Off/On Off On Off Off On Off On Off On Off Off On

Rev. 1.00

- 10 -

SPP-R200
ESC $ nL nH [Name] Set absolute print position. [Format] ASCII ESC $ nL nH Hex 1B 24 nL nH Decimal 27 36 nL nH [Range] 0 (nL + nH x 256) 65535 (0 nH 255, 0 nL 255) [Description] Sets the next print starting position, and the absolute print position, in reference to the left margin. The distance from the beginning of the line to the left margin is [(nL + nH x 256) x (vertical or horizontal motion units)].

ESC * m nL nH d1...dk [Name] Select bit image mode. [Format] ASCII ESC * m nL nH d1...dk Hex 1B 2A m nL nH d1...dk Decimal 27 42 m nL nH d1...dk [Range] m=0, 1, 32, 33 1 (nL + nH x 256) 1023 (0 nL 255, 0 nH 3) 0 d 255 [Description] Specifies the bit image in m mode for the number of dots specified by nL and nH. * dpi : dots per 25.4mm {1} m 0 1 32 33 Mode 8-dot single-density 8-dot double-density 24-dot single-density 24-dot double-density Number of dots in vertical direction 8 8 24 24 Vertical dot density 60 dpi 60 dpi 180 dpi 180 dpi Horizontal dot density 90 dpi 180 dpi 90 dpi 180 dpi Number of bytes (k) nL + nH x 256 nL + nH x 256 (nL + nH x 256) x 3 (nL + nH x 256) x 3

ESC n [Name] [Format]

Turn underline mode on/off. ASCII ESC n Hex 1B 2D n Decimal 27 45 n [Range] 0 n 2, 48 n 50 [Default] n=0 [Description] Turn underline mode on or off, based on the following values of n : n 0,48 1,49 2,50 Function Turns off underline mode. Turns on underline mode, set at 1-dot width. Turns on underline mode, set at 2-dot width.

Rev. 1.00

- 11 -

SPP-R200
ESC 2 [Name] [Format] [Description] ESC 3 n [Name] [Format] [Range] [Default] [Description] [Notes] ESC = n [Name] [Format] [Range] [Default]

Select default line spacing. ASCII ESC 2 Hex 1B 32 Decimal 27 50 The default line spacing is about 4.23 mm {1/6 inch}, which is equivalent to 30 dots. Set line spacing ASCII ESC 3 n Hex 1B 33 n Decimal 27 51 n 0 n 255 The vertical or horizontal motion unit is approximately 0.125 mm {1/203 inches}. This value equals one dot pitch. Sets the current line spacing to [n x vertical motion units] inches. The maximum settable line spacing is 31.875mm. Select peripheral device. ASCII ESC = n Hex 1B 3D n Decimal 27 61 n 0n3 Serial interface specification : - When turning on the printer : n=1 - When executing ESC @ : n 1 2 3 After ESC @ processing 1 2 1 Selects device to which host computer sends data, using n as follows : n Function 1 Specifies printer only. Setting before executing ESC @ Initialize printer. ASCII ESC @ Hex 1B 40 Decimal 27 64 32 n 126 Clears the data in the print buffer and resets the printer mode to the mode that were in effect when the power was turned on.

[Description]

ESC @ [Name] [Format] [Range] [Description]

Rev. 1.00

- 12 -

SPP-R200
ESC D n1 nk NUL [Name] Set horizontal tab positions. [Format] ASCII ESC D n1...nk NUL Hex 1B 44 n1...nk 00 Decimal 27 68 n1...nk 0 [Range] 1 n 255 , 0 k 32 [Default] n=8, 16, 24, 32, 40,....., 232, 240, 248 (for font A in a standard character size width) [Description] Sets horizontal tab positions. - n specifies the number of digits from the setting position to the left margin or the beginning of the line. - k specifies the number of bytes set for the horizontal tab position. ESC E n [Name] [Format] [Range] [Default] [Description] Turn emphasized mode on / off. ASCII ESC E n Hex 1B 45 n Decimal 27 69 n 0 n 255 n=0 Turns emphasized mode on or off. - When the LSB of n is 0, emphasized mode is turned off. - When the LSB of n is 1, emphasized mode is turned on. Turn double-strike mode on/off. ASCII ESC G n Hex 1B 47 n Decimal 27 71 n 0 n 255 n=0 Turns double-strike mode on or off. - When the LSB of n is 0, double-strike mode is turned off. - When the LSB of n is 1, double-strike mode is turned on. Print and feed paper. ASCII ESC J n Hex 1B 4A n Decimal 27 74 n 0 n 255 Prints the data in the print buffer and feeds the paper [n X vertical motion unit]. Select page mode. ASCII ESC L Hex 1B 4C Decimal 27 76 Switches from standard mode to page mode.

ESC G n [Name] [Format] [Range] [Default] [Description]

ESC J n [Name] [Format] [Range] [Description] ESC L [Name] [Format] [Description]

Rev. 1.00

- 13 -

SPP-R200
ESC M n [Name] [Format] [Range] [Default] [Description] n 0, 48 1, 49 70 71 72 73 67 68 69

Select character font./ MSR card read ASCII ESC M n Hex 1B 4D n Decimal 27 77 n n = 0, 1, 48, 49 , 67, 68, 69, 70, 71, 72, 73 n=0 Selects only-byte character fonts Selects Card reader mode

Function Character font A (12 24) selected. Character font B (9 24) selected. Set 1 track card reader mode Set 2 track card reader mode Set 1,2 track card reader mode Transmits the setting value(s) of the memory switch 7 Set 2 track card reader mode Set 3 track card reader mode Set 2,3 track card reader mode

Magnetic card read out put format


Track 1

02H 41H 31H 31H 1CH


Track 2

DATA 76 characters 03H 0DH 0AH

02H 42H 31H 31H 1CH


Track 1,2

DATA 37 characters 03H 0DH 0AH

02H 43H 31H 31H 1CH 1CH


Track 3

DATA 76 characters 1CH

DATA 37 Characters 03H 0DH 0AH

02H 44H 31H 31H 1CH


Track 2,3

DATA104characters 03H 0DH 0AH

02H 45H 31H 31H 1CH 1CH

DATA 37 characters 1CH

DATA104Characters 03H 0DH 0AH

Transmits the setting value out put format Hexadecimal Header 37H Flag 80H Data 30H ~ 37H NUL 00H

Decimal 55 128 48 ~ 55 0

Amount of Data 1 byte 1 byte 1 bytes 1 byte

Rev. 1.00

- 14 -

SPP-R200
EOT [Name] [Format]

Cancel card read mode ASCII EOT Hex 04 Decimal 4 [Description] Cancel card read mode [Notes] Works the same as when the POWER button is pressed ESC R n [Name] [Format] Select an international character set. ASCII ESC R n Hex 1B 52 n Decimal 27 82 n [Range] 0 n 13 [Default] n=0 [Description] Selects international character set in from the following table : n Character set n Character set 0 U.S.A 7 Spain I 1 France 9 Norway 2 Germany 10 Denmark II 3 U.K 11 Spain II 4 Denmark I 12 Latin America 5 Sweden 13 Korea 6 Italy ESC S [Name] [Format] [Description] ESC T n [Name] [Format] [Range] [Default] [Description] n 0,48 1,49 1,50 3,51 Select standard mode. ASCII ESC S Hex 1B 53 Decimal 27 83 Switches from page mode to standard mode. Any data stored in the printer for printing in page mode is cleared. Select print direction in page mode. ASCII ESC T n Hex 1B 54 n Decimal 27 84 n 0 n 3, 48 n 51 n=o Selects the print direction and starting position in page mode. Print Direction Left right Bottom to top Right left Top bottom Starting Position Upper left Lower left Lower right Upper right

Rev. 1.00

- 15 -

SPP-R200
ESC W xL xH yL yH dxL dxH dyL dyH [Name] Set relative print position. [Format] ASCII ESC W xL xH yL yH dxL dxH dyL dyH Hex 1B 57 xL xH yL yH dxL dxH dyL dyH Decimal 27 87 xL xH yL yH dxL dxH dyL dyH [Range] 0 (xL + xH x 256) 65535 (0 xL 255, 0 xH 255) 0 (yL + yH x 256) 65535 (0 yL 255, 0 yH 255) 1 (dxL + dxH x 256) 65535 (0 dxL 255, 0 dxH 255) 1 (dyL + dyH x 256) 65535 (0 dyL 255, 0 dyH 255) [Description] Set the paper width of 58mm is selected : (xL + xH x 256) = 0 (xL=0, xH=0) (dyL + dyH x 256) = 840 (dyL=72, dyH=3) Set the position and the size of the printing area. - Horizontal starting position = [(xL + xH x 256) x (horizontal motion unites)]. - Vertical starting position = [(yL + yH x 256) x (vertical motion unites)]. - Horizontal printing area width = [(dxL + dxH x 256) x (horizontal motion unites)]. - Vertical printing area width = [(dyL + dyH x 256) x (vertical motion unites)]. ESC nL nH [Name] Set relative print position. [Format] ASCII ESC nL nH Hex 1B 5C nL nH Decimal 27 92 nL nH [Range] 0 (nL + nH x 256) 65535 (0 nL 255, 0 nH 255) [Description] Set the print starting position based on the current position to [(nL + nH 256) horizontal or vertical motion unit] - When (nL + nH 256) is positive number, the print starting position is specified to the right based on the current position. - When (nL + nH 256) is negative number, the print starting position is specified to the left based on the current position. ESC a n [Name] [Format] [Range] [Default] [Description] Select justification. ASCII ESC a n Hex 1B 61 n Decimal 27 97 n 0 n 2, 48 n 50 n=0 In standard mode, aligns all the data in one line to the position specified by n as follows : n Justification 0, 48 Left justification 1, 49 Centering 2, 50 Right justification

Rev. 1.00

- 16 -

SPP-R200
ESC c 5 n [Name] [Format] [Range] [Default] [Description] [Notes] ESC d n [Name] [Format] [Range] [Description] ESC t n [Name] [Format] [Range] [Description]

Enable / Disable panel button. ASCII ESC c 5 n Hex 1B 63 35 n Decimal 27 99 53 n 0 n 255 n=0 Enables or disables the panel buttons. - When the LSB of n is 0, the panel buttons are enabled. - When the LSB of n is 1, the panel buttons are disabled. When the printer cover is open, the panel buttons are always ignored regardless of the setting with this command. Print and feed n lines. ASCII ESC d n Hex 1B 64 n Decimal 27 100 n 0 n 255 Prints the data in the print buffer and feeds n lines. Select character code table. ASCII ESC t n Hex 1B 74 n Decimal 27 116 n 0 n 5, 16 n 19, 21 n 24, 27 n 29, n=21, n=33, 36 n 37 n=255 For model without Thai character support : n=0 Selects a page n from the character code table.
n 0 1 2 3 4 5 16 17 18 19 22 23 24 27 28 29 31 33 36 37 Page Page 0 Page 1 Page 2 Page 3 Page 4 Page 5 Page 16 Page 17 Page 18 Page 19 Page 22 Page 23 Page 24 Page 27 Page 28 Page 29 Page 31 Page 33 Page 36 Page 37 437 (USA, Standard Europe) Katakana 850 (Multilingual) 860 (Portuguese) 863 (Canadian-French) 865 (Nordic) 1252 (Latin I) 866 (Cyrillic #2) 852 (Latin 2) 858 (Euro) 864 (Arabic) Thai42 1253 (Greek) Farsi 1251 (Cyrillic) 737 (Greek) Thai14 1255 (Hebrew New code) 855 (Cyrillic) 857 (Turkish)

Rev. 1.00

- 17 -

SPP-R200
ESC { n [Name] [Format] [Range] [Default] [Description]

Turns upside-down printing mode on/off. ASCII ESC { n Hex 1B 7B n Decimal 27 123 n 0 n 255 n=0 Turns upside-down printing mode on or off. - When the LSB of n is 0, upside-down printing mode is turned off. - When the LSB of n is 1, upside-down printing mode is turned on. Select character size. ASCII GS ! n Hex 1D 21 n Decimal 29 33 n 0 n 255 (where 1 Enlargement in vertical direction 8, 1 Enlargement in horizontal direction 8) n=0 Selects character size (enlargement in vertical and horizontal directions). Bit Function Setting
0 1 2 3 4 5 6 7

GS ! n [Name] [Format] [Range] [Default] [Description]

Specifies the number of times enlarged in the vertical direction Specifies the number of times enlarged in the horizontal direction

Refer to Table 2 [Enlarged in vertical direction] Refer to Table 1 [Enlarged in horizontal direction]

- Table 1 [Enlarged in horizontal direction] Hex Decimal Enlargement 00 0 1 time (standard) 10 16 2 times 20 32 3 times 30 48 4 times 40 64 5 times 50 80 6 times 60 96 7 times 70 112 8 times - Table 1 [Enlarged in vertical direction] Hex Decimal Enlargement 00 0 1 time (standard) 01 1 2 times 02 2 3 times 03 3 4 times 04 4 5 times 05 5 6 times 06 6 7 times 07 7 8 times

Rev. 1.00

- 18 -

SPP-R200
GS $ nL nH [Name] [Format] [Range] [Description]

Set absolute vertical print position in page mode. ASCII GS $ nL nH Hex 1D 24 nL nH Decimal 29 36 nL nH 0 (nL + nH x 256) 65535 (0 nL 255, 0 nH 255) Sets the absolute vertical print starting position to [(nL + nH 256) (vertical or horizontal motion units)].

GS ( A pL pH n m Execute test print. [Name] [Format] ASCII GS ( A pL pH n m Hex 1D 28 41 pL pH n m Decimal 29 40 65 pL pH n m (pL + pH x 256) = 2 (pL=2, pH=0) [Range] 0 n 2, 48 n 50 1 m 3, 49 m 51 [Description] Executes a test print with a specified test pattern on a specified paper type (roll paper). - n specifies the paper type as listed below to be tested : m Paper type 0, 48 1, 49 Paper roll 2, 50 - m specifies a test pattern as listed below : m Test pattern 1, 49 Hexadecimal dump 2, 50 Self Test Printing 3, 51 Self Test rolling pattern [Notes] If this command is processed while a macro is being defined, the printer cancels macro definition and starts processing this command. At that time, the macro becomes undefined. After processing this command, the printer performs a software reset.

Rev. 1.00

- 19 -

SPP-R200
GS ( D pL pH m [a1 b1]...[ak bk] [Name] Enable/disable real-time command. [Format] ASCII GS ( D pL pH m [a1 b1]...[ak bk] Hex 1D 28 44 pL pH m [a1 b1]...[ak bk] Decimal 29 40 68 pL pH m [a1 b1]...[ak bk] [Range] 3 (pL + pH x 256) 65535 m=20 a=1, 2 [Default] b=0, 1, 48, 49 a Type(s) of real-time commands Default 2 DLE DC4 fn a b (fn=2) : Execute power-off sequence disable (b=0) [Description] Enable or disables the following real-time commands. a b Function 0, 48 DLE DC4 fn a b (fn=2) : Not processed (disabled) 2 1, 49 DLE DC4 fn a b (fn=2) : Processed (enabled) - pL, pH specifies (pL + pH x 256) as the number of bytes after pH (m and [a1 b1]...[ak bk]). - a specifies the type of real-time command. - b specifies enable or disable. If bit image data accidentally includes a character string with this command, it is recommended to use this command in advance to disable [Notes] the real-time command. GS ( E pL pH fn [parameter] [Name] Customize NV memory area. [Description] Customize the NV user memory area. The table below explains the functions available in this command. Executes commands related to the user setting mode by specifying the function code fn. fn 1 2 3 4 11 12 No. Function 1 Changes into the user setting mode. 2 Ends the user setting mode session. (Performs a soft reset.) GS ( E pL pH fn [a1 b18...b11]... 3 Sets value(s) for the memory switch. [ak bk8...bk1] GS ( E pL pH fn a 4 Transmits the settings of the memory switch to the host. GS ( E pL pH fn a d1...dk 11 Sets the communication conditions for the serial interface. GS ( E pL pH fn a 12 Transmits the communication conditions for the serial interface. Format GS ( E pL pH fn d1 d2 GS ( E pL pH fn d1 d2 d3

Rev. 1.00

- 20 -

SPP-R200
[Notes] pL, pH specifies (pL + pH x 256) as the number of bytes after pH (fn and [parameter]). The user setting mode is a special mode to change the values in the NV user memory with this command. In Function 2, the printer performs software reset. Therefore, the printer clears the receive and print buffers, and resets all settings (user-defined characters, macros, and the character style) to the mode in effect at power on. Frequent write commands by this command, may damage the NV memory. Therefore, it is recommended to write to NV memory no more than 10 times a day. While processing this command, the printer is BUSY while writing data to the user NV memory and stops receiving data. Therefore it is prohibited to transmit data including the real-time commands during the execution of this command.

<Function 1> GS ( E pL pH fn d1 d2 (fn=1) [Format] ASCII GS ( E pL pH fn d1 d2 Hex 1D 28 45 pL pH fn d1 d2 Decimal 29 40 69 pL pH fn d1 d2 [Range] (pL + pH x 256) = 3 (pL=3, pH=0) fn=1 d1=73, d2=78 [Description] Enter the user setting mode and notifies that the mode has changed. Hexadecimal Decimal Number of Data Header 37H 55 1 byte Flag 20H 32 1 byte NUL 00H 0 1 byte The following commands are enabled in the user setting mode. <Function 2> through <Function 12> of GS ( E, GS I. <Function 2> GS ( E pL pH fn d1 d2 d3 (fn=2) [Format] ASCII GS ( E pL pH fn d1 d2 d3 Hex 1D 28 45 pL pH fn d1 d2 d3 Decimal 29 40 69 pL pH fn d1 d2 d3 [Range] (pL + pH x 256) = 4 (pL=4, pH=0) fn=2 d1=79, d2=85, d3=84 [Description] Ends the user setting mode and performs a software reset. Therefore, the printer clears the receive and print buffers, and resets all settings (userdefined character, downloaded bit images, macros, and the print mode) to the mode that was in effect at power on. This function code (fn=2) is enabled only in the user setting mode.

Rev. 1.00

- 21 -

SPP-R200
<Function 3> GS ( E pL pH fn [a1 b18...b11]...[ak bk8...bk1] (fn=3) [Format] ASCII GS ( E pL pH fn [a1 b18...b11]... [ak bk8...bk1] Hex 1D 28 45 pL pH fn [a1 b18...b11]... [ak bk8...bk1] Decimal 29 40 69 pL pH fn [a1 b18...b11]... [ak bk8...bk1] [Range] 10 (pL + pH x 256) 65535 fn=3 a= 1,2,5,6,8 b=48, 49, 50 [Default] All switches are set to Off (b=48). [Description] Change the memory switch specified by a to the values specified by b. - When b=48, the applicable bit is turned to Off. - When b=49, the applicable bit is turned to On. - When b=50, the applicable bit is not changed. When a=1, the memory switch 1 is set as follows : When a=1, the memory switch 1 is set as follows : Msw Set value function 1-1~3 48,48,48 48,48,49 48,49,48 48,49,49 49,48,48 49,48,49 49,49,48 49,49,49 1-4 1-5 1-6 48 49 48 49 48 49 print density 130% print density 120% print density 110% print density 105% print density 100% print density 95% print density 90% print density 80% Kanji character mode on Kanji character mode off print speed 70mm print speed 50mm Offline and Buffer full status Busy Only printer Buffer Full Busy

When a=2, the memory switch 3 is set as follows : Msw Set value Function 2-1~2 48,48 Bluetooth Interface 48,49 RS-232C(serial) Interface 49,48 USB Interface

Rev. 1.00

- 22 -

SPP-R200
Code page
Msw2-8 Msw2-7 Msw2-6 Msw2-5 Msw2-4

48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 48 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49 49

48 48 48 48 48 48 48 48 49 49 49 49 49 49 49 49 48 48 48 48 48 48 48 48 49 49 49 49 49 49 49 49

48 48 48 48 49 49 49 49 48 48 48 48 49 49 49 49 48 48 48 48 49 49 49 49 48 48 48 48 49 49 49 49

48 48 49 49 48 48 49 49 48 48 49 49 48 48 49 49 48 48 49 49 48 48 49 49 48 48 49 49 48 48 49 49

48 49 48 49 48 49 48 49 48 49 48 49 48 49 48 49 48 49 48 49 48 49 48 49 48 49 48 49 48 49 48 49

Character Table PC437 Katakana PC850 PC860 PC863 PC865 WPC1252 PC866 PC852 PC858 Reserved PC864 Thai42 WPC1253 Reserved Reserved Farsi WPC1251 PC737 Reserved Thai 14 Reserved WPC1255 Reserved Reserved PC855 PC857 Reserved Reserved Reserved Reserved Reserved

When a=5, the memory switch 5 is set as follows :


Set power off time (1~90 minute.) *When memory switch setting value 0, not work power off
MSW5-8 MSW5-7 MSW5-6 MSW5-5 MSW5-4 MSW5-3 MSW5-2 MSW5-1 Value

48 48 48 48 48 . . . 48

48 48 48 48 48 . . . 49

48 48 48 48 48 . . . 48

48 48 48 48 48 . . . 49

48 48 48 48 48 . . . 49

48 48 48 48 49 . . . 48

48 48 49 49 48 . . . 49

48 49 48 49 48 . . . 48

0 1 2 3 4

90

Rev. 1.00

- 23 -

SPP-R200
When a=6 the memory switch 6 is set as follows : Minimum = 10 seconds Maximum = 255 seconds Set save mode time(10~255 seconds) *When memory switch setting value 0 not work save mode
MSW6-8 MSW6-7 MSW6-6 MSW6-5 MSW6-4 MSW6-3 MSW6-2 MSW6-1 Value

48 48 48 48 48 . . . 49 Msw 7-1~3

48 48 48 48 48 . . . 49 Set

48 48 48 48 48 . . . 49 value

48 48 48 48 48 . . . 49

49 49 49 49 49 . . . 49

48 48 49 49 49 . . . 49

49 49 48 48 49 . . . 49 Function

48 49 48 49 48 . . . 49

10 11 12 13 14

255

When a=7 the memory switch 7 is set as follows :


48,48,48 48,48,49 48,49,48 48,49,49 49,48,48 49,48,49 49,49,48 49,49,49 Msw 8-1 8-2 8-3 8-4 8-5 8-6 8-7 8-8 Setting Value 48 48 49 48 49 48 49 48 48 48 48 Track 1/2 read mode command Track 2/3 read mode command Track 1 read mode AUTO trigger Track 2 read mode AUTO trigger Track 1/2 read mode AUTO trigger Track 2 read mode AUTO trigger Track 3 read mode AUTO trigger Track 2/3 read mode AUTO trigger Function Reserved 12X24 font 9X24 font No beeps for roll paper end Beeps for roll paper end Beeps for low battery status No beeps low battery status Reserved Reserved Reserved Reserved

When a=8 the memory switch 8 is set as follows :

Rev. 1.00

- 24 -

SPP-R200
<Function 4> GS ( E pL pH fn a (fn=4) [Format] ASCII GS ( E pL pH fn a Hex 1D 28 45 pL pH fn a Decimal 29 40 69 pL pH fn a [Range] (pL + pH x 256) = 2 (pL=2, pH=0) fn=4 a=1, 2, 5, 6, 7, 8 [Description] Transmits the setting value(s) of the memory switch specified by a. Hexadecimal Decimal Amount of Data Header 37H 55 1 byte Flag 21H 33 1 byte Data 30H or 31H 48 or 49 8 bytes NUL 00H 0 1 byte Data for the setting is transmitted as 8 bytes or a data string in the order from bit 8 to bit 1, as follows : - Off : Hexadecimal = 30H / Decimal = 48 - On : Hexadecimal = 31H / Decimal = 49 <Function 11> GS ( E pL pH fn a d1.dk (fn=11) [Format] ASCII GS ( E pL pH fn a d1 dk Hex 1D 28 45 pL pH 0B a d1 dk Decimal 29 40 69 pL pH 11 a d1 dk [Range] 3<=(pL + pH x 256) <=8 (3<=pL<=8,0<= pH<=255) fn=11 1<=a 4 48<=d<=57 [a=1] 48<=d<=50 [a=2] d=48,49 [a=3] d=55,56 [a=4] 1<=k<=6 [Default] d1..dk=19200 [a=1] d=48[a=2] d=48[a=3] d=56[a=4] [Description] sets the configuration item for the serial interface specified by a to the values specified by d1..dk
a 1 2 3 4 Configuration item Transmission speed Parity Flow control Data length

Transmission speed(a=1) is specified by number. Example : When defining 19200 bps : 5bytes d1dk 19200(Hexadecimal = 31H,39H,32H,30H,30H /Decimal= 49,57,50,48,48)

Rev. 1.00

- 25 -

SPP-R200
Parity (a=2) is specified by d as follows
d 48 49 50 Function Select no parity Select odd parity Select even parity

Flow control(a=3) is specified by d as follows


d 48 49 Function Select Flow control DTR/DSR Select Flow control XON/XOFF

Data Length(a=4) is specified by d as follows


d 55 56 Function Select 7bit length Select 8bit length

<Function 12> GS ( E pL pH fn a (fn=12) [Format] ASCII GS ( E pL pH fn a Hex 1D 28 45 pL pH fn a Decimal 29 40 69 pL pH fn a [Range] (pL + pH x 256) = 2 (pL=2, pH=0) fn=12 1a4 [Description] Transmits the communication conditions of the serial interface specified by a. a Communication Condition 1 Baud rate 2 Parity 3 Flow control 4 Data length Header Flag Type of the 31H - 34H communication condition Separator 1FH Setting value 30H - 39H NUL 00H Configuration of the setting value - When the baud rate (a=1) is specified : Baud rate (bps) d1 d2 2400 50 52 4800 52 56 9600 57 54 19200 49 57 38400 51 56 57600 53 55 115200 49 49 Hexadecimal 37H 33H Decimal 55 39 49 - 52 31 48 - 57 0 d3 48 48 48 50 52 54 53 d4 48 48 48 48 48 48 50 Amount of Data 1 byte 1 byte 1 byte 1 byte 1 - 6 bytes 1 byte d5 ---48 48 48 48 d6 ------48

Rev. 1.00

- 26 -

SPP-R200
- When the parity setting (a=2) is specified : d1 Parity 48 No parity 49 Odd parity 50 Even parity - When the flow control setting (a=3) is specified : d1 Flow control 48 DTR / DSR (Fixed) 49 XON / XOFF - When the data length setting (a=4) is specified : d1 Data length 55 7 bits 56 8 bits If a is out of range, this command ignores the value which is specified with a. GS ( L pL pH m fn [parameter] [Name] Select graphics data. [Format] ASCII GS ( L pL pH m fn [parameter] Hex 1D 28 4C pL pH m fn [parameter] Decimal 29 40 76 pL pH m fn [parameter] ASCII GS ( L p1 p2 p3 p4 m fn [parameter] Hex 1D 28 4C p1 p2 p3 p4 m fn [parameter] Decimal 29 40 76 p1 p2 p3 p4 m fn [parameter] * In the description below GS ( L is used for the explanation. Processes graphics data according to the function code fn.
Function No. Function 48 Function 50 Function 51 Function 64 Function 65 Function 66 Function 67 Function 69 Function 112 Function Transmits the NV graphics memory capacity. Prints the graphics data in the print buffer. Transmits the remaining capacity of the NV graphics memory. Transmits the defined NV graphics key code list. Deletes all NV graphics data. Deletes the specified NV graphics data. Defines the raster graphics data in the nonvolatile memory. Prints the specified NV graphics data. Stores the raster graphics data in the print buffer memory.

[Description]
fn 0, 48 2, 50 3, 51 64 65 66 67 69 112 Format

GS ( L pL pH m fn GS ( L pL pH m fn GS ( L pL pH m fn GS ( L pL pH m fn d1 d2 GS ( L pL pH m fn d1 d2 d3 GS ( L pL pH m fn kc1 kc2 GS ( L pL pH m fn a kc1 kc2 b xL xH yL yH [c d1...dk]1...[c d1 dk]b GS ( L pL pH m fn kc1 kc2 x y GS ( L pL pH m fn a bx by c xL xH yL yH d1...dk

pL, pH specifies (pL + pH x 256) as the number of bytes after pH(m, fn, and [parameter]). Frequent write command executions by this command may damage the NV memory. Therefore, it is recommended to write to the NV memory no more than 10times a day. While processing this command, the printer is BUSY while writing data to the NV graphics memory and stops receiving data. Therefore it is prohibited to transmit data including the real-time commands during the execution of this command.

Rev. 1.00

- 27 -

SPP-R200
<Function 48> GS ( L pL pH m fn (fn=0, 48) [Format] ASCII GS ( L pL pH fn m Hex 1D 28 4C pL pH fn m Decimal 29 40 76 pL pH fn m [Range] (pL + pH x 256) = 2 (pL=2, pH=0) m=48 fn=0, 48 [Description] Transmits the total capacity of the NV bit-image memory (number of bytes in the memory area). Hexadecimal Decimal Amount of Data Header 37H 55 1 byte Flag 30H 48 1 byte Data 30H - 39H 48 - 57 1 - 8 bytes NUL 00H 0 1 byte The total capacity data is converted to character codes corresponding to decimal data, then transmitted from the MSB. <Function 50> GS ( L pL pH m fn (fn=2, 50) [Format] ASCII GS ( L pL pH m fn Hex 1D 28 4C pL pH m fn Decimal 29 40 76 pL pH m fn [Range] (pL + pH x 256) = 2 (pL=2, pH=0) m=48 fn=2, 50 [Description] Prints the buffer graphics which is stored by the process of Function 112. Feeds paper by the amount corresponding to the number of dots in the y direction of the buffered graphics. <Function 51> GS ( L pL pH m fn (fn=3, 51) [Format] ASCII GS ( L pL pH m fn Hex 1D 28 4C pL pH m fn Decimal 29 40 76 pL pH m fn [Range] (pL + pH x 256) = 2 (pL=2, pH=0) m=48 fn=3, 51 [Description] Transmits the number of bytes of remaining memory (unused area) in the NV user memory. Hexadecimal Decimal Amount of Data Header 37H 55 1 byte Flag 31H 49 1 byte Data 30H 39H 48 - 57 1 - 8 bytes NUL 00H 0 1 byte The number of bytes of remaining memory is converted to character codes corresponding to decimal data, then transmitted from the MSB. The data length is variable.

Rev. 1.00

- 28 -

SPP-R200
<Function 64> GS ( L pL pH m fn d1 d2 (fn=64) [Format] ASCII GS ( L pL pH m Hex 1D 28 4C pL pH m Decimal 29 40 76 pL pH m [Range] (pL + pH x 256) = 4 (pL=4, pH=0) m=48 fn=64 d1=75, d2=67 [Description] Transmits the defined NV graphics key code list. - When the key code is present : Hexadecimal Decimal Header 37H 55 Flag 72H 114 Status 40H or 41H 64 or 65 Data 30H - 39H 48 - 57 NUL 00H 0

fn fn fn

d1 d1 d1

d2 d2 d2

Amount of Data 1 byte 1 byte 1 byte 2 - 80 bytes 1 byte

- When the key code is not present : Hexadecimal Decimal Amount of Data Header 37H 55 1 byte Flag 72H 114 1 byte Status 40H 64 1 byte NUL 00H 0 1 byte If the number of the key code exceed 40, the key code is transmitted dividing up to 40. - The status if the continuous transmission data block is present is 41H. - The status if the continuous transmission data block is not present is 40H. After the [Header-NULL] is transmitted, the printer receives a response from the host; then it performs the process defined by the response. (See the tables below.) - When the status (existence of the next data block) is Hexadecimal = 41H / Decimal = 65 Response Process performed ASCII Decimal ACK 6 Transmits the next data. NAK 21 Transmits the previous data again. CAN 24 Ends the process. - When the status (for the last data block) is Hexadecimal = 40H / 40H/Decimal = 64 Response Process performed ASCII Decimal ACK 6 Ends the process. NAK 21 Transmits the previous data again. CAN 24 Cancels the process.

Rev. 1.00

- 29 -

SPP-R200
<Function 65> GS ( L pL pH m fn d1 d2 d3 (fn=65) [Format] ASCII GS ( L pL pH Hex 1D 28 4C pL pH Decimal 29 40 76 pL pH [Range] (pL + pH x 256) = 5 (pL=5, pH=0) m=48 fn=65 d1=67, d2=76, d3=82 [Description] Deletes all defined NV graphics data.

m m m

fn fn fn

d1 d1 d1

d2 d2 d2

d3 d3 d3

<Function 66> GS ( L pL pH m fn kc1 kc2 (fn=66) [Format] ASCII GS ( L pL pH m fn kc1 kc2 Hex 1D 28 4C pL pH m fn kc1 kc2 Decimal 29 40 76 pL pH m fn kc1 kc2 [Range] (pL + pH x 256) = 4 (pL=4, pH=0) m=48 fn=66 32 kc1 126 32 kc2 126 [Description] Deletes the NV graphics data defined by the key codes kc1 and kc2. <Function 67> GS ( L pL pH m fn a kc1 kc2 b xL xH yL yH [c d1...dk]1...[c d1...dk]b (fn=67) ASCII GS ( L [Format] pL pH m fn a kc1 kc2 b xL xH yL yH [c d1...dk]1...[c d1...dk]b Hex 1D 28 4C pL pH m fn a kc1 kc2 b xL xH yL yH [c d1...dk]1...[c d1...dk]b Decimal 29 40 76 pL pH m fn a kc1 kc2 b xL xH yL yH [c d1...dk]1...[c d1...dk]b [Range] GS ( L parameter 3 (pL + pH x 256) 65535 (0 pL 255, 0 pH 255) Common parameter for GS ( L m=48 fn=67 a=48 32 kc1 126 32 kc2 126 b=1, 2 1 (xL + xH x 256) 8192 1 (yL + yH x 256) 2304 c=49 0 d 255 k = ( int ( ( xL + xH x 256 ) + 7 ) / 8 ) x ( yL + yH x 256 ) [Description] The total capacity of the NV graphic memory is only 256K bytes Defines the raster graphics data in the NV graphics area. - b specifies the number of the color of the defined data. - xL, xH specifies the defined data in the horizontal direction to (xL + xH x 256) dots. - xL, xH specifies the defined data in the vertical direction to (yL + yH x 256) dots. [Notes] - c specifies the color of the defined data. C Defined data color 49 Color 1 - Color 1 means black

Rev. 1.00

- 30 -

SPP-R200
<Function 69> GS ( L pL pH m fn kc1 kc2 b x y (fn=69) [Format] ASCII GS ( L pL pH m fn kc1 kc2 x y Hex 1D 28 4C pL pH m fn kc1 kc2 x y Decimal 29 40 76 pL pH m fn kc1 kc2 x y [Range] (pL + pH x 256) = 6 (pL=6, pH=0) m=48, fn=69 32 kc1 126 32 kc2 126 x=1, 2 y=1, 2 [Description] Prints the NV graphics data defined by the key codes kc1 and kc2. The graphics data is enlarged by x and y in the horizontal and vertical directions. <Function 112> GS ( L pL pH m fn a bx by c xL xH yL yH d1...dk (fn=112) ASCII GS ( L pL pH m fn a bx by c xL xH yL yH d1...dk [Format] Hex 1D 28 4C pL pH m fn a bx by c xL xH yL yH d1...dk Decimal 29 40 76 pL pH m fn a bx by c xL xH yL yH d1...dk GS ( L parameter [Range] 11 (pL + pH x 256) 65535 (0 pL 255, 0 pH 255) Common parameter for GS ( L m=48, fn=112, a=48 bx=1, 2 by=1, 2 c=49 1 (yL + yH x 256) 1662 (when by = 1) [Description] k = ( int ( ( xL + xH x 256 ) + 7 ) / 8 ) x ( yL + yH x 256 ) Stores the raster graphics data, enlarged by bx and by in the horizontal and vertical directions to the print buffer. - xL, xH specifies the raster graphics data in the horizontal direction as (xL + xH x 256) dots. - xL, xH specifies the raster graphics data in the vertical direction to (yL + yH x 256) dots. - c specifies the color of the defined data. c Printing color 49 Color 1 - Color 1 means black In standard mode, each color can be defined only once.

[Notes]

Rev. 1.00

- 31 -

SPP-R200
GS ( M pL pH fn m [Name] Customize printer. [Description] Protects or recovers values or data set or defined in the active area by commands. Fn Function No. Descriptions 1, 49 Copies the settings stored in the active area to Function 1 the storage area (save settings). 2, 50 Copies the settings stored in the storage area Function 2 to the storage area (load settings). 3, 51 Enables or disables automatic loading of the Function 3 settings upon initialization. - Active area : Volatile memory (RAM) - Storage area : Hon-volatile memory (Flash ROM) List of commands Setting value Command Status ESC c 3, GS a Defined data GS : Kind of character ESC M, ESC R, ESC t style ESC !, ESC -, ESC E, ESC G, ESC V, ESC {, GS !, GS B, GS b, etc ESC SP, ESC 2, ESC 3 Bar code GS H, GS f, GS h, GS w 2-dimension code <Function 065> through <Function 070> of GS ( k Print position ESC D, ESC T, ESC a, GS L, GS W etc ESC c 4, ESC c 5, GS ( D, GS P <Function 1> GS ( M pL pH fn m (fn=1, 49) [Format] ASCII GS ( M pL pH fn m Hex 1D 28 4D pL pH fn m Decimal 29 40 77 pL pH fn m [Range] (pL + pH x 256) = 2 (pL=2, pH=0) fn=1, 49 m=1, 49 [Description] Copies the setting stored in the active area to the mth storage area. [Notes] Frequent write command executions by this command may damage the NV memory. Therefore, it is recommended to write to the NV memory no more than 10 times a day. While processing this command, the printer is BUSY while writing data to the NV user memory and stops receiving data. Therefore it is prohibited to transmit data including the real-time commands during the execution of this command.

Rev. 1.00

- 32 -

SPP-R200
<Function 2> GS ( M pL pH fn m (fn=2, 50) [Format] ASCII GS ( M pL pH fn m Hex 1D 28 4D pL pH fn m Decimal 29 40 77 pL pH fn m [Range] (pL + pH x 256) = 2 (pL=2, pH=0) fn=2, 50 m=0, 1, 48, 49 [Description] When (m=0,48), initializes all settings in the active area, as described in these specifications. When (m=1,49), copies the setting stored in the mth storage area to the active area. If no data in the storage area is protected, all settings in the active area are initialized as described in these specifications. <Function 3> GS ( M pL pH fn m (fn=3, 51) [Format] ASCII GS ( M pL pH fn m Hex 1D 28 4D pL pH fn m Decimal 29 40 77 pL pH fn m [Range] (pL + pH x 256) = 2 (pL=2, pH=0) fn=3, 51 m=0, 1, 48, 49 [Description] When m=0,48, does not load data in the storage area to the active area upon initialization. When m=1,49, loads data in the storage area to the active area upon initialization. GS ( k pL pH cn fn [parameter] Specify and print the symbol. [Name] [Description] Processes the data concerning two-dimensional code. (PDF417) - Symbol type is specified by cn. - Function is specified by fn. cn Type of Symbol 48 PDF417 (2-dimensional code) cn 48 fn 65 66 67 68 69 70 80 81 82 Function Function 065 Function 066 Function 067 Function 068 Function 069 Function 070 PDF417 : Specify the number of columns PDF417 : Specify the number of rows PDF417 : Specify the width of module PDF417 : Specify the module height PDF417 : Specify the error correction level PDF417 : Specify the option PDF417 : Store the received data in the symbol Function 080 save area PDF417 : Print the symbol data in the symbol Function 081 save area PDF417 : Send the size information of the Function 082 symbol data in the symbol save area

Rev. 1.00

- 33 -

SPP-R200
For PDF417 symbol data (when cn=48) The symbol data specified by Function 080 d1...dk is stored in the printer and is printed by the specification of Function 081. The symbol data in the save area is reserved until the following processing is performed : - Function 080 or 180 is executed - ESC @ is executed - The printer is reset or the power is turned off When processing Function 081 or 082, the setting values of Functions 065 to 070 are used. If the printable area is not large enough, the symbol may not be printed. Executing Function 081 after executing Function 080 repeatedly prints the same symbol data. By using Functions 065 to 070 combined with Function 081, the same symbol data d1...dk is printed differently. By using Function 082, the symbol size printed by Function 081 is available.

[Notes]

<Function 065> GS ( k pL pH cn fn n (fn=65) [Format] ASCII GS ( k pL pH cn fn n Hex 1D 28 6B 03 00 30 41 n Decimal 29 40 107 3 0 48 65 n [Range] (pL + pH x 256) = 3 (pL=3, pH=0) cn=48 fn=65 0 n 30 [Default] n=0 [Description] Specifies the number of columns of the data area of PDF417. - n=0 specifies auto processing - When n is not 0, specifies the number of columns of the data area as n code word. [Notes] Settings of this function affect the processing of Functions 081 and 082. When auto processing (n=0) is specified, the maximum number of columns in the data area is 30 columns. The following data is not included in the number of columns : - Start pattern and stop pattern - Indicator code word of left and right When auto processing (n=0) is specified, the number of columns is calculated by the printing area when processing Functions 081, 082, module width (Function 067), and option setting (Function 070). Setting of this function are effective until ESC @ is executed, the printer is reset, or the power is turned off.

Rev. 1.00

- 34 -

SPP-R200
<Function 066> GS ( k pL pH cn fn n (fn=66) [Format] ASCII GS ( k pL pH cn fn n Hex 1D 28 6B 03 00 30 42 n Decimal 29 40 107 3 0 48 66 n [Range] (pL + pH x 256) = 3 (pL=3, pH=0) cn=48 fn=66 n=0, 3 n 90 [Default] n=0 [Description] Specifies the number of rows of the data area of PDF417. - n=0 specifies auto processing - When n is not 0, specifies the number of rows of the symbol as n rows. [Notes] Settings of this function affect the processing of Functions 081 and 082. When auto processing (n=0) is specified, the maximum number of rows is 90. When auto processing (n=0) is specified, the number of rows is calculated by the printing area when processing Functions 081, 082, module height (Function 068). Setting of this function are effective until ESC @ is executed, the printer is reset, or the power is turned off. <Function 067> GS ( k pL pH cn fn n (fn=67) [Format] ASCII GS ( k pL pH cn fn n Hex 1D 28 6B 03 00 30 43 n Decimal 29 40 107 3 0 48 67 n [Range] (pL + pH x 256) = 3 (pL=3, pH=0) cn=48 fn=67 1n4 [Default] n=3 [Description] Specifies the width of a module of PDF417 symbol. [Notes] Settings of this function affect the processing of Functions 081 and 082. The setting unit differs, depending on the printer models. Setting of this function are effective until ESC @ is executed, the printer is reset, or the power is turned off. <Function 068> GS ( k pL pH cn fn n (fn=68) [Format] ASCII GS ( k pL pH cn fn n Hex 1D 28 6B 03 00 30 44 n Decimal 29 40 107 3 0 48 68 n [Range] (pL + pH x 256) = 3 (pL=3, pH=0) cn=48 fn=68 2n8 [Default] n=3 [Description] Specifies the module height of PDF417 symbol. - Specify the height to [a module width x n]. [Notes] Settings of this function affect the processing of Functions 081 and 082. Setting of this function are effective until ESC @ is executed, the printer is reset, or the power is turned off.

Rev. 1.00

- 35 -

SPP-R200
<Function 069> GS ( k pL pH cn fn m n (fn=69) [Format] ASCII GS ( k pL pH Cn fn m n Hex 1D 28 6B 04 00 30 45 m n Decimal 29 40 107 4 0 48 69 m n [Range] (pL + pH x 256) = 4 (pL=4, pH=0) cn=48 fn=69 m=48 48 n 8 [m=48] [Default] n=1 [Description] Specifies the error correction level of PDF417. m Function 48 The error correction level is specified by level [Notes] Settings of this function affect the processing of Functions 081 and 082. Error correction level is specified by level. Error correction level specified by level (m=48) is as follows. The number of the error correction code word is fixed regardless of the number of code words in the data area. m Function Number of error correction code word 48 Error correction level 0 2 49 Error correction level 1 4 50 Error correction level 2 8 51 Error correction level 3 16 52 Error correction level 4 32 53 Error correction level 5 64 54 Error correction level 6 128 55 Error correction level 7 256 56 Error correction level 8 512 <Function 070> GS ( k pL pH cn fn m (fn=70) [Format] ASCII GS ( k pL pH cn fn m Hex 1D 28 6B 03 00 30 46 m Decimal 29 40 107 3 0 48 70 m [Range] (pL + pH x 256) = 3 (pL=3, pH=0) cn=48 fn=70 m=0,1 [Default] m=0 [Description] Set or cancels the option of PDF417. m Function 0 Cancels the processing of simplified PDF417 symbol. 1 Sets the processing of simplified PDF417 symbol. - m=0 cancels the processing of simplified PDF417 symbol. - m=1 sets the processing of simplified PDF417 symbol. [Notes] Settings of this function affect the processing of Functions 081 and 082. When simplified PDF417 symbol is canceled, standard PDF417 symbol is automatically selected. Setting of this function are effective until ESC @ is executed, the printer is reset, or the power is turned off.

Rev. 1.00

- 36 -

SPP-R200
<Function 080> GS ( k pL pH cn fn m d1...dk (fn=80) [Format] ASCII GS ( k pL pH cn fn m d1...dk Hex 1D 28 6B pL pH 30 50 30 d1...dk Decimal 29 40 107 pL pH 48 80 48 d1...dk [Range] 4 (pL + pH x 256) 65535 (0 pL 255, 0 pH 255) cn=48 fn=80 m=48 0 d 255 k = (pL + pH x 256) - 3 [Description] Stores the PDF417 symbol data (d1...dk) in the symbol save area. [Notes] Data stored in the symbol save area by this function are processed by Function 081 and 082. The data in the symbol save area are reserved after processing Function 081 or 082. k bytes of d1...dk are processed as symbol data. Specify only the data code word of the symbol with this function. Be sure not to included the following data in the data d1...dk because they are added automatically by the printer. - Start pattern and stop pattern. - Indicator code word of left and right. - The descriptor of symbol length. (the first code word in the data area) - The error correction code word calculated by modulus 929. Setting of this function are effective until the following processing is performed : - Function 080 or 180 is executed. - ESC @ is executed. - The printer is reset or the power is turned off. <Function 081> GS ( k pL pH cn fn m (fn=81) [Format] ASCII GS ( k pL pH cn fn m Hex 1D 28 6B 03 00 30 51 m Decimal 29 40 107 3 0 48 81 m [Range] (pL + pH x 256) = 3 (pL=3, pH=0) cn=48 fn=81 m=48 [Description] Encodes and prints the PDF417 symbol data in the symbol save area. [Notes] In standard mode, use this function when printer is at the beginning of a line, or there is no data in the printer buffer. A symbol that size exceeds the printing area cannot be printed. If there is any error described below in the data of the symbol save area, it cannot be printed. - There is no data (Function 080 is not processed). - If [(number of columns x number of rows) < number of code word] when auto processing is specified for number of columns and number of rows. - Number of code word exceeds 928 in the data area.

Rev. 1.00

- 37 -

SPP-R200
The following data are added automatically by the encode processing. - Start pattern and stop pattern. - Indicator code word of left and right. - The descriptor of symbol length. (the first code word in the data area) - The error correction code word calculated by modulus 929. - Pad codeword. The data area includes the following code words. - Data specified by Function 080. - The descriptor of symbol length. (the first code word in the data area) - The error correction code word calculated by modulus 929. - Pad codeword. When auto processing (Function 065) is specified, the number of columns is calculated by the current printing area, module width (Function 067), option setting (Function 070), and the code word in the data area. Maximum number of the columns in 30. When auto processing (Function 066) is specified in page mode, the number of rows is calculated by the current printing area, module height (Function 068), and the code word in the data area. The maximum number of rows is 90. Printing of symbol is not affected by print mode (emphasized, doublestrike, underline, white/black reverse printing, or 90 clockwise-rotated), except for character size and upside-down printing mode. In standard mode, this command executes paper feeding for the amount needed for printing the symbol, regardless of the paper feed amount set by the paper feed setting command. The printing position returns to the left side of the printable area after printing the symbol, and printer is in the status beginning of the line, or there is no data in the print buffer. In page mode, the printer stores the symbol data in the print buffer without executing actual printing. The printer moves printing position to the next dot of the last data of the symbol. The quiet zone is not included in the printing data. Be sure to include the quiet zone when using this function. <Function 082> GS ( k pL pH cn fn m (fn=82) [Format] ASCII GS ( k pL pH cn fn m Hex 1D 28 6B 03 00 30 52 m Decimal 29 40 107 3 0 48 82 m [Range] (pL + pH x 256) = 3 (pL=3, pH=0) cn=48 fn=82 m=48 [Description] Encodes and sends size information of the PDF417 symbol data in the symbol save area. In standard mode, use this function when printer is at the beginning of a line, or there is no data in the printer buffer.

Rev. 1.00

- 38 -

SPP-R200
The size information for each data is as follows : Send data Hex Decimal Data Header 37H 55 1 byte Flag 2FH 47 1 byte Width 30H 39H 48 57 1 5 byte Separator 1FH 31 1 byte Height 30H 39H 48 57 1 5 byte Separator 1FH 31 1 byte Fixed value 31H 49 1 byte Separator 1FH 31 1 byte Other information 30H or 31H 48 or 49 1 byte NUL 00H 0 1 byte Description of the Width and Height data sent : - The height and width values of the symbol data are in dot units. Description of the Other Information data sent : Hex Decimal Condition 30H 48 Printing is possible 31H 49 Printing is impossible This command does not print the PDF417 symbols. Users must consider the quiet zone for the PDF417 symbols (upward and downward spaces and left and right spaces for the PDF417 symbols specified in the specifications for the PDF417 symbols.) Start/end macro definition. ASCII GS : Hex 1D 3A Decimal 29 58 Starts or ends macro definition. - The contents of the macro can be defined up to 2048 bytes.

[Notes]

GS : [Name] [Format] [Description]

GS B n [Name] [Format] [Range] [Default] [Description]

Turns white/black reverse printing mode on / off. ASCII GS B n Hex 1D 42 n Decimal 29 66 n 0 n 255 n=0 Turns white/black reverse printing mode on or off. - When the LSB of n is 0, white/black reverse mode is turned off. - When the LSB of n is 1, white/black reverse mode is turned on.

Rev. 1.00

- 39 -

SPP-R200
GS H n [Name] [Format] [Range] [Default] [Description]

Selects the printing position of HRI characters. ASCII GS H n Hex 1D 48 n Decimal 29 72 n 0 n 3, 48 n 51 n=0 Selects the printing position of HRI characters when printing a bar code. - n selects the execution of printing and the printing position as follows : n Printing position 0, 48 Not printed. 1, 49 Above the bar code. 2, 50 Below the bar code. 3, 51 Both above and below the bar code. Transmits printer ID. ASCII GS Hex 1D Decimal 29 65 n 69,

GS I n [Name] [Format] [Range] [Description]

I 49 73

n n n

Transmits the printer ID specified. - n specifies the printer information. n Printer ID type ID 65 Firmware version Depends on firmware version 66 Manufacturer BIXOLON 67 Printer name SPP-R200 Chinese : CHINA GB2312 or CHINA Font of Language for 69 BIG5 each country Korea n : KOREA C-5601

GS L nL nH [Name] [Format] [Range] [Default] [Description]

Set left margin. ASCII GS L nL nH Hex 1D 4C nL nH Decimal 29 76 nL nH 0 nL 255, 0 nH 255 (nL + nH x 256)=0 (nL=0, nH=0) Sets the left margin specified by nL and nH. - The left margin is [(nL + nH x 256) x (horizontal motion units)]. Printable area

Left margin

Printing area width

Rev. 1.00

- 40 -

SPP-R200

GS W nL nH [Name] [Format] [Range] [Default] [Description]

Set printing area width. ASCII GS W nL nH Hex 1D 57 nL nH Decimal 29 87 nL nH 0 nL 255, 0 nH 255 (nL + nH x 256)=384 (nL=128, nH=1) (for 58mm of the paper width) Sets the printing area width specified with nL and nH. - The printing area width is [(nL + nH x 256) x (horizontal motion units)]. Printable area

Left margin

Printing area width

GS nL nH [Name] Set relative vertical print position in page mode. [Format] ASCII GS nL nH Hex 1D 5C nL nH Decimal 29 92 nL nH [Range] 0 nL 255, 0 nH 255 [Description] Sets the relative vertical print starting position from the current position in page mode. The distance from the current position to the starting position is [(nL + nH x 256) x (vertical or horizontal motion units)]. GS ^ r t m [Name] [Format] [Range] [Description]

Execute macro. ASCII GS ^ r t m Hex 1D 5E r t m Decimal 29 94 r t m 0 r 255 0 t 255 m=0, 1 Executes a macro. - r specifies the number of times to execute the macro. - t specifies the waiting time for executing the macro. - m specifies macro executing mode from the table below.

m 0 1

Function Executes the macro r times at the interval specified by t. After waiting for the time specified by t, the FEED button must be pressed. After the button is pressed, the macro is executed once. This operation is then repeated r times.

Rev. 1.00

- 41 -

SPP-R200

GS b n [Name] [Format] [Range] [Default] [Description]

Turns smoothing mode on/off. ASCII GS b n Hex 1D 62 n Decimal 29 98 n 0 nL 255 n=0 Turns smoothing mode on or off. - When the LSB of n is 0, smoothing mode is turned off. - When the LSB of n is 1, smoothing mode is turned on. Select font for HRI characters. ASCII GS f n Hex 1D 66 n Decimal 29 102 n For ANK/Multilingual model : n=0, 1, 48, 49 n=0 Selects a font for the HRI characters used when printing a bar code. - n specifies the font of the HRI characters as follows : n Font 0, 48 Font A (12 x 24) 1, 49 Font B (9 x 17) Selects bar code height. ASCII GS h n Hex 1D 68 n Decimal 29 104 n 1 nL 255 n=162 Selects the height of the bar code as n dots.

GS f n [Name] [Format] [Range] [Default] [Description]

GS h n [Name] [Format] [Range] [Default] [Description]

GS k m d1...dk NUL GS k m n d1...dn [Name] Print bar code. [Format] ASCII GS k m d1...dk Hex 1D 6B m d1...dk Decimal 29 107 m d1...dk ASCII GS k m n Hex 1D 6B m n Decimal 29 107 m n 0 m 6 (k and d depend on the bar code system used) [Range] 65 m 73 (n and d depend on the bar code system used) [Description] Selects a bar code system and prints the bar code.

NUL NUL NUL d1...dn d1...dn d1...dn

Rev. 1.00

- 42 -

SPP-R200
For Bar Code System UPC-A UPC-E JAN13(EAN) JAN8(EAN)
CODE39 ITF CODABAR

m 0 1 2 3
4 5 6

Range of k 11 k 12 11 k 12 12 k 13 7k8
1k 1 k (even number) 1k

Range of d 48 d 57 48 d 57 48 d 57 48 d 57 48 d 57, 65 d 90, d=32,36,37,43,45,46,47 48 d 57 48 d 57, 65 d 68, d=36,43,45,46,47,58

[Notes] GS r n [Name] [Format] [Range] [Description]

Range of d 48 d 57 48 d 57 48 d 57 48 d 57 48 d 57, 65 d 90, 69 CODE39 1 n 255 d=32,36,37,43,45,46,47 70 ITF 1 n 255 (even number) 48 d 57 48 d 57, 65 d 68, 71 CODABAR 1 n 255 d=36,43,45,46,47,58 72 CODE93 1 n 255 0 d 127 73 CODE128 2 n 255 0 d 127 User most consider the quiet zone of the bar code (left and right spaces of the bar code). Transmit status. ASCII GS r n Hex 1D 72 n Decimal 29 114 n n=1, 2, 49, 50 Transmits the normal status specified by n as follows : n Function 1, 49 Transmits paper sensor status. Paper sensor status (n=1, 49) : Bit Off/On Hex Decimal Function Off 00 0 Paper roll near-end sensor : paper adequate. 0, 1 On 03 3 Paper roll near-end sensor : paper near end. Off 00 0 Paper roll end sensor : paper present. 2, 3 On 0C 12 Paper roll end sensor : paper not present. 4 Off 00 0 Fixed. 5 Off 00 0 Reserved. 6 Off 00 0 Reserved. 7 Off 00 0 Fixed. - Bits 2 and 3 : This command cannot be executed since the printer becomes offline when the paper roll end sensor detects the paper not present. Therefore, the status of bit 2 (1) and bit 3 (1) is not transmitted. - 43 -

m 65 66 67 68

For Bar Code System UPC-A UPC-E JAN13(EAN) JAN8(EAN)

Range of k 11 n 12 11 n 12 12 n 13 7n8

Rev. 1.00

SPP-R200
GS v 0 m xL xH yL yH d1...dk [Name] Print raster bit image. [Format] ASCII GS v 0 m xL xH yL yH d1...dk Hex 1D 76 30 m xL xH yL yH d1...dk Decimal 29 118 48 m xL xH yL yH d1...dk [Range] 0 m 3, 48 m 51 1 (xL + xH x 256) 128 (0 xL 128, xh=0) 1 (yL + yH x 256) 4095 (0 yL 255, 0 yH 15) 0 d 255 k = (xL + xH x 256) x (yL + yH x 256) [Description] Prints a raster bit image in m mode. - m specifies the bit image mode. m Mode Vertical dot density Horizontal dot density 0, 48 Normal 180 dpi 180 dpi 1, 49 Double-width 180 dpi 90 dpi 2, 50 Double-height 90 dpi 180 dpi 3, 51 Quadruple 90 dpi 90 dpi dpi : dots per 25.4mm {1"} - xL, xH specifies (xL + xH x 256) byte(s) in the horizontal direction for the bit image. - yL, yH specifies (yL + yH x 256) dot(s) in the vertical direction for the bit image. - d specifies the definition data of the bit image data. GS w n [Name] [Format] Set bar code width. ASCII GS w n Hex 1D 77 n Decimal 29 119 n [Range] 2 n 6 , n=3 [Description] Set the horizontal size of the bar code, using n as follows :
n 2 3 4 5 6 Multi-level Bar Code Module Width (mm) 0.282 0.423 0.564 0.706 0.847 Binary-level Bar Code Thin element width Thick element width (mm) (mm) 0.282 0.706 0.423 1.129 0.564 1.411 0.706 1.834 0.847 2.258

[Notes]

Multi-level bar codes are as follows : - UPC-A, UPC-E, JAN13, HAN8, CODE93, CODE128 Binary-level bar codes are as follows : - CODE39, ITF, CODABAR

FS . n [Name] [Format]

Cancel Kanji character mode. ASCII FS . Hex 1C 2E Decimal 28 45 [Range] n=0 [Description] Cancels Kanji character mode.

n n n

Rev. 1.00

- 44 -

SPP-R200
FS & [Name] [Format]

Select Kanji character mode ASCII FS & Hex 1C 26 Decimal 28 38 [Description] Select Kanji character mode

n n

Rev. 1.00

- 45 -

You might also like