background image

 

Rev. 1.00 

- 13 -

STP-103

 

FS p n m 

 

[Name]       Print non-volatile bit image 
[Format]            ASCII                FS              p              n          m 
                          Hex                    1C            70              n          m 
                          Decimal            28            112              n          m 
[Range]      1 

 n 

 255 , 0 

 m 

3 , 48 

 m 

 51 

[Description]    Prints a non-volatile bit image n using the mode specified by m 
 

Mode 

Vertical dot density 

Horizontal dot density 

0,48 Normal 

180 

180 

1,49 Double-width 

180 

90 

2,50 Double-height 

90 

180 

3,51 Quadruple 

90 

90 

 
                           

 n is the number of the non-volatile bit image. 

(defined using the FS q command) 

                           

 m specifies the bit image mode. 

 

FS q n [xL xH yH d1 …dk]1…[xL xH yL yH d1…dk]n 

 

[Name]       Define non-volatile bit image 
[Format]            ASCII                FS    q      n    [xL xH yH d1 …dk]1…[xL xH yL yH d1…dk]n 
                          Hex                    1C    71    n    [xL xH yH d1 …dk]1…[xL xH yL yH d1…dk]n 
                          Decimal            28    113    n    [xL xH yH d1 …dk]1…[xL xH yL yH d1…dk]n 
[Range]      1 

 n 

 255 

                          0 

 nL 

 255 

                          0 

 xH 

 3 (when 1 

 xL+xH

×

256

 1023) 

                          0 

 yL 

 1 (when 1

yL+yH

×

256

288) 

                          0 

 d 

 255 

                          k = (xL+xH

×

256) 

×

 (yL+yH

×

256)

×

             Total defined data area=2M bits(256K bytes) 
[Description]    Define the non-volatile bit image specified by n 
                         

 n specifies the number of the defined non-volatile bit image 

                         

 xL, xH specifies(xL + xH

×

256)

×

8 dots in the horizontal direction 

for the non-volatile bit image you are defining.   

                         

 yL, yH specifies (yL + yH

×

256)x8 dots in the vertical direction for 

the non-volatile bit image you are defining. 

 

GS ! n 

 

[Name]       Select character size 
[Format]            ASCII              GS            !          n 
                          Hex                  1D            21        n 
                          Decimal          29            33          n 
[Range]      0 

255 

                          Where 1 

 Number of times of character height 

                          1 

 Number of times of character width 

[Description]    Selects the character height using bits 0 to 1 and selects the   
             character width using bits 4 to 7, as follows: 

Содержание STP-103

Страница 1: ...Command Manual STP 103 Thermal Printer Rev 1 00 PO W ER ERRO R FEED O N LINE http www samsungminiprinters com ...

Страница 2: ...onal character set ESC V Turn 90 clockwise rotation mode on off ESC Set relative print position ESC a Select justification Esc c 5 Enable disable panel FEED buttons Esc d Print and feed paper n lines Esc t Select character code table Esc Turn upside down printing mode on off FS p Print non volatile bit image FS q Define non volatile bit image GS Select character size GS Define downloaded bit image...

Страница 3: ...on on setting and using the printer command it necessary Gives the default values if any for the command parameters Lists related commands Provides examples using the command The numbers followed by H are hexadecimal The numbers followed by B are binary The numbers denoted by are decimal 2 2 Explanation of Terms LSB Least Significant Bit 2 3 Control Commands Details HT Name Horizontal tab Format A...

Страница 4: ...ansmit error status n 4 transmit paper roll sensor status n 1 printers 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 2 Off 00 0 Not used Off 00 0 On line 3 On 08 8 Off line 4 On 10 16 Not used Fixed to On 5 6 Undefined 7 Off 00 0 Not used Fixed to Off n 2 Off line status Bit Off On Hex Decimal Function 0 Off 00 0 Not used Fixed to off 1 On 0...

Страница 5: ... 16 Not used Fixed to On Off 00 0 Paper roll sensor Paper present 5 6 On 60 96 Paper roll end detected by paper roll sensor 7 Off 00 0 Not used Fixed to Off DLE ENQ n Name Real time request to printer Format ASCII DLE ENQ n HEX 10 05 n DECIMAL 16 5 n Range 1 n 2 Description Respond to a request from the host computer n specifies the requests as follows n Request 1 Recover from an error and restart...

Страница 6: ...ed 6 Undefined Off 00 0 Underline mode not selected 7 On 80 128 Underline mode selected 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 255 0 nH 255 Description Sets the distance from the beginning of the line to the position at which subsequent characters are to be printed The distance from the beginning of the line to the print pos...

Страница 7: ...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 0 nL 255 0 nH 3 0 d 255 Description Selects a bit image mode using m for the number of dots specified by nL and nH as follows Vertical Direction Horizontal Direction 1 m Mode Number of Dots Dots Density Dots Density Number of Data k 0 8 dot single density 8 67 DPI 100 DPI nL nH 256 1 8 dot dou...

Страница 8: ...on 0 n 255 ESC n Name Select peripheral device Format ASCII ESC n Hex 1B 3D n Decimal 27 61 n Range 0 n 255 Description Selects the device to which the host computer sends data using n as follows Bit Off On Hex Decimal Function Off 00 0 Printer disabled 0 On 01 1 Printer enabled 1 Undefined 2 Undefined 3 Undefined 4 Undefined 5 Undefined 6 Undefined 7 Undefined ESC n Name Cancel user defined chara...

Страница 9: ...s the column number for setting a horizontal tab position from the beginning of the line k indicates the total number of horizontal tab positions to be set ESC E n Name Turn emphasized mode on off Format ASCII ESC E n Hex 1B 45 n Decimal 27 69 n Range 0 n 255 Description 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 t...

Страница 10: ...cter set Format ASCII ESC R n Hex 1B 52 n Decimal 27 82 n Range 0 n 10 Description Selects an international character set n from the following table n Character set 0 U S A 1 France 2 Germany 3 U K 4 Denmark Ⅰ 5 Sweden 6 Italy 7 Spain 8 Japan 9 Norway 10 Denmark Ⅱ ...

Страница 11: ... or vertical motion unit This command sets the distance from the current position to nL nH X 256 X horizontal or vertical motion unit ESC a n Name Select justification Format ASCII ESC a n Hex 1B 61 n Decimal 27 97 n Range 0 n 2 48 n 50 Description Aligns all the data in one line to the specified position N selects the type of justification as follows n Justification 0 48 Left justification 1 49 C...

Страница 12: ...eds the length of one label is set the printer feeds the label paper to the next print starting position ESC t n Name Select character code table Format ASCII ESC t n Hex 1B 74 n Decimal 27 116 n Range 0 n 5 n 11 255 Description Selects a page n from the character code table n Pages 0 0 PC437 U S A standard Europe 1 1 Katakana 2 2 PC850 Multilingual 3 3 PC860 Portuguese 4 4 PC863 Canadian French 5...

Страница 13: ...d1 dk n Decimal 28 113 n xL xH yH d1 dk 1 xL xH yL yH d1 dk n Range 1 n 255 0 nL 255 0 xH 3 when 1 xL xH 256 1023 0 yL 1 when 1 yL yH 256 288 0 d 255 k xL xH 256 yL yH 256 8 Total defined data area 2M bits 256K bytes Description Define the non volatile bit image specified by n n specifies the number of the defined non volatile bit image xL xH specifies xL xH 256 8 dots in the horizontal direction ...

Страница 14: ...X y 1536 0 d 255 Description Defines a downloaded bit image using the dots specified by x and y x indicates the number of dots in the horizontal direction y indicates the number of dots in the vertical direction GS m Name Print downloaded bit image Format ASCII GS m Hex 1D 2F m Decimal 29 47 m Range 0 m 3 48 m 51 Description Prints downloaded bit image in mode m The modes selectable by m as follow...

Страница 15: ...al 29 72 n Range 0 n 3 48 n 51 Description Selects the printing position of HRI characters when printing bar code n selects the printing position as follows N Printing position 0 48 Not printed 1 49 Above bar code 2 50 Below bar code 3 51 Both above and below the bar code HRI indicates Human Readable interpretation Default n 0 GS I n Name Transmit printer ID Format ASCII ESC I n Hex 1D 49 n Decima...

Страница 16: ... P x y Hex 1D 50 x y Decimal 29 80 x y Range 0 x 255 0 y 255 Description Sets the horizontal and vertical motion units to 1 x inch respectively When x is set to 0 the default setting value is used When y is set to 0 the default setting value is used GS W nL nH Name Set printing area width Format ASCII GS W nL nH Hex 1D 57 nL nH Decimal 29 87 nL nH Range 0 nL 255 0 nH 255 Description Sets the print...

Страница 17: ...y t the LED indicator blinks and the printer waits for the PAPER FEED button to be pressed After the button is pressed the printer executes the macro once The printer repeats the operation r times GS a n Name Enabled disable Automatic Status Back ASB Format ASCII GS a n Hex 1D 61 n Decimal 29 97 n Range 0 n 255 Description Enables or disables ASB and specifies the status items to include using n a...

Страница 18: ...defined 2 Undefined 3 Off 00 0 Not used Fixed to off 4 Off 00 0 Not used Fixed to off 5 Off 00 0 Not used Fixed to off 6 Off 00 0 Not used Fixed to off 7 Off 00 0 Not used Fixed to off Third bytes paper sensor information Bit Off On Hex Decimal Status for ASB Off Off 00 0 Paper roll near end sensor paper adequate 0 1 On On 03 3 Paper roll near end sensor paper near end Off Off 00 0 Paper roll end ...

Страница 19: ...elects a font from the following table n Font 0 48 Font A 12 24 1 49 Font B 9 24 GS h n Name Set bar code height Format ASCII GS h n Hex 1D 68 n Decimal 29 104 n Range 1 n 255 Description Sets the height of the bar code n specifies the number of dots in the vertical direction Default n 162 GS k m d1 dk NUL GS k m n d1 dn Name Print bar code Format ASCII GS k m d1 dk NUL Hex 1D 6B m d1 dk 00 Decima...

Страница 20: ...27 When CODE93 m 72 is used The printer prints an HRI character as start character at the beginning of the HRI character string The printer prints an HRI character as a stop character at the end of the HRI character string The printer prints HRI characters an alphabetic character as a control character 00 H to 1F H and 7F H Control character Control character ASCII Hex Decimal HRI character ASCII ...

Страница 21: ... code characters and 3 code sets Each code set is used for representing the following characters Code set A ASCII characters 00H to 5FH Code set B ASCII characters 20H to 7FH Code set C 2 digit numeral characters using one character 100 numerals from 00 to 99 The following special characters are also available in CODE128 SHIFT characters In code set A the character just after SHFIT is processed as...

Страница 22: ... C GS k 73 10 123 66 78 111 46 123 67 12 34 56 If the top of the bar code data is not the code set selection character the printer stops command processing and processes the following data as normal data If combination of and the following character does not apply any special character the printer stops command processing and processes the following data as normal data The printer does not print H...

Страница 23: ...0dpi xL xH selects the number of data bits xL xH 256 in the horizontal direction for the bit image yL yH selects the number of data bits yL yH 256 in the vertical direction for the bit image GS w n Name Set bar code width Format ASCII GS w n Hex 1D 77 n Decimal 29 119 n Range 2 n 6 Description Set the horizontal size of the bar code n specifies the bar code width as follows Bi level Bar Code N Mod...

Страница 24: ... is t2 2ms If t2 t1 the OFF time is t2 2ms Reference DLE DC4 DLE DC4 n m t Name Generate pulse at real time Format ASCII DLE DC4 n m t Hex 10 14 n m t Decimal 16 20 n m t Range n 1 m 0 1 t 8 Description Outputs the pulse specified by t to connector pin m as follows m 0 Connector pin Drawer kick out connector pin 2 The pulse ON time is t 100ms and the OFF time is t 100ms Reference ESC p Bell n Name...

Отзывы: