SPRT SP-T8 User Manual Download Page 99

 

99

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. 

This command sets the distance from the

 

 current position 

to [( nL + nH 

256)

vertical or horizontal motion unit] 

 

 

inches. 
[Notes]  

This command is ignored unless page mode is selected.

 

 

When pitch N is specified to the movement downward: nL 

 

+ nH 

256 = N

 

 

When pitch N is specified to the movement upward (the 
negative direction), use the complement of 65536. 
When pitch N is specified to the movement upward: nL + nH 

256 = 65536 

 

- N 

Any setting that exceeds the specified printing area is 

 

ignored. 

This command function as follows, dependin

 

g on the print 

starting position set by 

ESC T

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 starting position is set to the upper right or lower 

Summary of Contents for SP-T8

Page 1: ...1 R SPRT SP T8 Portable Thermal Printer User s Manual...

Page 2: ...cifications 10 Chapter 3 Operation 12 3 1 Using Preparation 12 3 1 1 Battery Installation 12 3 1 2 Paper Installation 12 3 2 Operation Instructions 13 3 2 1 Printer On Off 13 3 2 2 Self test 13 3 2 3...

Page 3: ...3 5 Indicators 20 Chapter 4 Printing Control Commands 21 Summary 21 HT 21 LF 22 FF 22 CR 23 CAN 24 DLE EOT n 24 DLE ENQ n 28 DLE DC4 n m t 30 ESC FF 32 ESC SP n 32 ESC n 34 ESC nL nH 35 ESC n 37 ESC...

Page 4: ...ESC M n 55 ESC S 55 ESC T n 56 ESC V n 58 ESC W xL xH yL yH dxL dxH dyL dyH 59 ESC nL nH 62 ESC a n 63 ESC c 0 n 64 ESC c 3 n 65 ESC c 4 n 67 ESC c 5 n 67 ESC d n 68 ESC p m t1 t2 69 ESC n 70 FS p n m...

Page 5: ...S H n 90 GS I n 91 GS L nL nH 93 GS P x y 94 GS V m GS V m n 96 GS W nL nH 97 GS nL nH 99 GS r t m 100 GS a n 101 GS f n 105 GS h n 106 GS k m d1 dk NUL GS k m n d1 dn 106 GS r n 112 GS v 0 m xL xH yL...

Page 6: ...6 FS S n1 n2 122 FS W n 124...

Page 7: ...ble or modify the battery don t be short circuit otherwise may result in injury or fire even explosion If the printer would not be used for a long time be sure to take off the battery otherwise the ba...

Page 8: ...cable in the course of printing or else some printing data may be lost When print in Ir or IrDA mode be sure the Ir window of the host equipment face rightly the Ir window of the printer the distance...

Page 9: ...Handling The printer should be placed in such an environment that the temperature is between 20 and 60 and the relative humidity is between 5 and 95 If the printer will be stored for a long time pleas...

Page 10: ...ce 1 1 Outer Appearance 1 2 Standard Accessories Power Adaptor 1 unit Rechargeable battery 1 unit Thermal Paper 1 roll Leather Case 1 unit Chapter 2 Specifications Paper Case Open Door Button Status I...

Page 11: ...m s Average 80mm s Max Paper Thickness 0 06 0 085mm Black Mark Support Reliability 100 Km Character Set ASCII 8 8 12 12 GB18030 16 16 24 24 Interface RS 232 IrDA Bluetooth Rechargeable Battery 2100mAh...

Page 12: ...Chapter 3 Operation 3 1 Using Preparation 3 1 1 Battery Installation 3 1 2 Paper Installation Battery Bottom Case Arrow Under the direction of the arrow to pull the Open Door key to open the paper ca...

Page 13: ...is powered off by pressing the power button about 1 second and all the indicators are off when the printer is powered off Notice If the power indication is on with green color it means the printer is...

Page 14: ...es the self test 3 2 3 Paper Feeding When the printer works normally hold down FEED button the paper feeding begins and stops when hold down FEED button again 3 2 4 Paper Tearing After each receipts i...

Page 15: ...nter so the power charging begins during the course of power charging the charging indicator is on and will be off when the charging is over Notice it would better not turn on the printer during the c...

Page 16: ...ptional Signal Level RS 232 Baud Rate 1200 2400 4800 9600 19200 38400 57600 115200bps optional Data Bit 7 bit 8 bit optional Parity Odd Even None optional Stop Bit 1 bit The ex factory default setting...

Page 17: ...d widely used in portable devices RAW Ir data transmission mode can be connected to the devices with raw infrared port for printing while IrCOMM mode can be connected to the devices with IrCOMM protoc...

Page 18: ...nter is T8 Bluetooth Printer the initial password is 1234 users can change the printer name and password by using Setting Tools Bluetooth Pairing The method for the pairing between T8 BT with the host...

Page 19: ...ode Sleeping the printer will fall after at least 3 seconds without usage into sleep and the status indication becomes green also the printer can be awaken by sending command 0x00 then send data the t...

Page 20: ...tivity of the other parts of the paper black mark width to infrared ray 65 3 5 Indicators There are two indicators for T8 printer They are status indicator and charging indicator Status indicator has...

Page 21: ...ber sequence Range the range of n Description the detailed explanation of the command Notes some notes shall be paid attention to Reference other commands which are relevant to it HT Name Horizontal t...

Page 22: ...e beginning of the next line The default setting of the horizontal tab position for the paper roll is font A 12 24 every 8th character 9th 17th 25th column Reference ESC D LF Name Print and line feed...

Page 23: ...nabled only in page mode Reference ESC FF ESC L ESC S CR Name Print and carriage return Format ASCII CR Hex 0D Decimal 13 Description When automatic line feed is enabled this command functions the sam...

Page 24: ...ta that existed in the previously specified printing area also exists in the currently specified printing area it is deleted Reference ESC L ESC W DLE EOT n Name Real time status transmission Format A...

Page 25: ...RK before n is transmitted and then DLE EOT 3 interrupts before n is received the code 10 H for DLE EOT 3 is processed as the code for ESC 3 10 H Even though the printer is not selected using ESC sele...

Page 26: ...is off line or there is an error status when DIP switch 2 1 is on with a parallel interface model When Auto Status Back ASB is enabled using the GS a command the status transmitted by the DLE EOT comm...

Page 27: ...27 Bit 5 Becomes on when the paper end sensor detects paper end and printing stops n 3 Error status...

Page 28: ...ire break occurs it is impossible to recover Bit 6 When printing is stopped due to high print head temperature until the print head temperature drops sufficiently or when the paper roll cover is open...

Page 29: ...an error status with a serial interface model With a parallel interface model this command can not be executed when the printer is busy This command is executed even when the printer is off line or t...

Page 30: ...t when the error occurred The printer can be initialized completely by using this command and ESC This command is enabled only for errors that have the possibility of recovery except for print head te...

Page 31: ...el this command is executed even when the printer is off line the receive buffer is full or there is an error status With a parallel interface model this command cannot be executed when the printer is...

Page 32: ...area collectively Notes This command is enabled only in page mode After printing the printer does not clear the buffered data setting values for ESC T and ESC W and the position for buffering characte...

Page 33: ...e horizontal and vertical motion unit However the value cannot be less than the minimum horizontal movement amount and it must be in even units of the minimum horizontal movement amount In standard mo...

Page 34: ...e maximum is converted to the maximum automatically Default n 0 Reference GS P ESC n Name Select print mode s Format ASCII ESC n Hex 1B 21 n Decimal 27 33 n Range 0 n 255 Description Selects print mod...

Page 35: ...he line are aligned at the baseline ESC E can also turn on or off emphasized mode However the setting of the last received command is effective ESC can also turn on or off underline mode However the s...

Page 36: ...nge the horizontal and vertical motion unit However the value cannot be less than the minimum horizontal movement amount and it must be in even units of the minimum horizontal movement amount In stand...

Page 37: ...fined character set is canceled When the LSB of n is 1 the user defined character set is selected Notes When the user defined character set is canceled the internal character set is automatically sele...

Page 38: ...s in the horizontal direction Notes The allowable character code range is from ASCII code 20 H to 7E H 95 characters It is possible to define multiple characters for consecutive character codes If onl...

Page 39: ...e user defined character definition is cleared when ESC is executed ESC is executed FS q is executed GS is executed The printer is reset or the power is turned off When the user defined characters are...

Page 40: ...40 When font B 9 17 is selected...

Page 41: ...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 0 nL 255 0 nH 3 0 d 255 Description Selects a bit image mode using m for the number...

Page 42: ...n a line the excess data is ignored d indicates the bit image data Set a corresponding bit to 1 to print a dot or to 0 to not print a dot If the width of the printing area set by GS L and GS W less th...

Page 43: ...normal data processing mode This command is not affected by print modes emphasized double strike underline character size or white black reverse printing except upside down printing mode The relations...

Page 44: ...dot bit image is selected ESC n Name Turn underline mode on off Format ASCII ESC n Hex 1B 2D n Decimal 27 45 n Range 0 n 2 48 n 50 Description Turns underline mode on or off based on the following va...

Page 45: ...tting the value of n to 0 or 48 the following data is not underlined and the underline thickness set before the mode is turned off does not change The default underline thickness is 1 dot Changing the...

Page 46: ...3 n Name Set line spacing Format ASCII ESC 3 n Hex 1B 33 n Decimal 27 51 n Range 0 n 255 Description Sets the line spacing to n vertical or horizontal motion unit inches Notes The line spacing can be...

Page 47: ...eft or lower right of the printable area using ESC T the vertical motion unit y is used When the starting position is set to the upper right or lower left of the printable area using ESC T the horizon...

Page 48: ...s command Default n 1 ESC n Name Cancel user defined characters Format ASCII ESC n Hex 1B 3F n Decimal 27 63 n Range 32 n 126 Description Cancels user defined characters Notes This command cancels the...

Page 49: ...nd resets the printer mode to the mode that was in effect when the power was turned on Notes The DIP switch settings are not checked again The data in the receive buffer is not cleared The macro defin...

Page 50: ...s command cancels the previous horizontal tab settings When setting n 8 the print position is moved to column 9 by sending HT Up to 32 tab positions k 32 can be set Data exceeding 32 tab positions is...

Page 51: ...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 turned on Notes Only the least significant bit of n is e...

Page 52: ...de Default n 0 Reference ESC E ESC J n Name Print and feed paper Format ASCII ESC J n Hex 1B 4A n Decimal 27 74 n Range 0 n 255 Description Prints the data in the print buffer and feeds the paper n ve...

Page 53: ...rintable area When the starting position is set to the upper left or lower right of the printable area using ESC T the vertical motion unit y is used When the starting position is set to the upper rig...

Page 54: ...an be set independently in standard mode and page mode to those for page mode Set right side character spacing ESC SP FS S Select default line spacing ESC 2 ESC 3 Only valve settings is possible for t...

Page 55: ...ter font Format ASCII ESC M n Hex 1B 4D n Decimal 27 77 n Range n 0 1 48 49 Description Selects character fonts n Function 0 48 Character font A 12 24 selected 1 49 Character font B 9 17 selected 2 50...

Page 56: ...acing ESC SP FS S Select default line spacing ESC 2 ESC 3 The following commands are enabled only to set in standard mode Set printing area in page mode ESC W Select print direction in page mode ESC T...

Page 57: ...the position where data is buffered within the printing area set by ESC W Parameters for horizontal or vertical motion units x or y differ as follows depending on the starting position of the printing...

Page 58: ...e rotation mode on off Format ASCII ESC V n Hex 1B 56 n Decimal 27 86 n Range 0 n 1 48 n 49 Description Turns 90 clockwise rotation mode on off n is used as follows Notes This command affects printing...

Page 59: ...xL xH yL yH dxL dxH dyL dyH 255 except dxL dxH 0 or dyL dyH 0 Description The horizontal starting position vertical starting position printing area width and printing area height are defined as x0 y0...

Page 60: ...ntal starting position printing area width exceeds the printable area the printing area width is automatically set to horizontal printable area horizontal starting position If vertical starting positi...

Page 61: ...printing area width and printing area height are defined as X Y Dx and Dy respectively the printing area is set as shown in the figure below This printable area for this printer is approximately 72 2...

Page 62: ...istance from the current position to nL nH 256 horizontal or vertical motion unit Notes Any setting that exceeds the printable area is ignored When pitch N is specified to the right nL nH 256 N When p...

Page 63: ...of the printing area When the starting position is set to the upper left or lower right of the printable area using ESC T the horizontal motion unit x is used When the starting position is set to the...

Page 64: ...e mode the printer performs only internal flag operations This command has no effect in page mode This command executes justification in the printing area This command justifies the space area accordi...

Page 65: ...common paper otherwise the printer will feed paper continuously by GS FF When common paper is selected please don t use black mark paper otherwise the paper will alarm paper out Default n 0 Reference...

Page 66: ...ed when executing this command The paper end signal switching be delayed depending on the receive buffer state If either bit 0 or bit 1 is on the paper roll near end sensor is selected as the paper se...

Page 67: ...n as follows Notes When a paper sensor is enabled with this command printing is stopped only when the corresponding paper is selected for printing When a paper end is detected by the paper roll senso...

Page 68: ...the panel buttons are disabled none of them are usable when the printer cover is closed In this printer the panel buttons are the FEED button In the macro ready mode the FEED button are enabled regard...

Page 69: ...acing of more than 1016 mm 40 inches is specified the printer feeds the paper only 1016 mm 40 inches Reference ESC 2 ESC 3 ESC p m t1 t2 Name Generate Drawer kick out connector pulse Format ASCII ESC...

Page 70: ...de is turned off When the LSB of n is 1 upside down printing mode is turned on Notes Only the lowest bit of n is valid This command is enabled only when processed at the beginning of a line in standar...

Page 71: ...2 n m Range 1 n 255 0 m 3 48 m 51 Description Prints a NV bit image n using the mode specified by m n is the number of the NV bit image defined using the FS q command m specifies the bit image mode De...

Page 72: ...cessing is performed only on the line in question However in NV bit image mode one vertical line means 1 dot in normal mode m 0 48 and in double height mode m 2 50 and it means 2 dots in double width...

Page 73: ...dk 1 xL xH yL yH d1 dk n Name Define NV bit image Format ASCII FS q n xL xH yL yH d1 dk 1 xL xH yL yH d1 dk n Hex 1C 71 n xL xH yL yH d1 dk 1 xL xH yL yH d1 dk n Decimal 28 113 n xL xH yL yH d1 dk 1 x...

Page 74: ...s and resets the mode to the mode that was in effect at power on At this time DIP switch settings are checked again This command cancels all NV bit images that have already been defined by this comman...

Page 75: ...ut of the defined range In the first group of NV bit images when any of the parameters xL xH yL yH is out of the definition range this command is disabled In groups of NV bit images other than the fir...

Page 76: ...his command can define several NV bit images but cannot define a bit image data whose total capacity bit image data header exceeds 2M bytes 256K bytes The printer is busy immediately before writing in...

Page 77: ...77 performed by the FS p command Reference FS p Example When xL 64 xH 0 yL 96 yH 0...

Page 78: ...78...

Page 79: ...black mark paper When black mark paper is selected please don t use common paper otherwise the printer will feed paper continuously GS n Name Select character size Format ASCII GS n Hex 1D 21 n Decima...

Page 80: ...lphanumeric and Chinese effective except for HRI characters If n is outside of the defined range this command is ignored In standard mode the vertical direction is the paper feed direction and the hor...

Page 81: ...line are aligned at the baseline The ESC command can also turn double width and double height modes on or off However the setting of the last received command is effective Default n 0 Reference ESC GS...

Page 82: ...horizontal motion unit exceeds the specified printing area this command is ignored The horizontal starting buffer position does not move The reference starting position is that specified by ESC T This...

Page 83: ...SC ESC T ESC W ESC GS P GS GS A pL pH n m Name Execute test print Format ASCII GS A pL pH n m Hex 1D 28 41 pL pH n m Decimal 29 40 65 pL pH n m Range pL pH 256 2 where pL 2 pH 0 0 n 2 48 n 50 1 m 3 49...

Page 84: ...tomatically Therefore the already defined data before this command is executed such as an user defined characters downloaded bit image and macro becomes undefined and the receive buffer and print buff...

Page 85: ...he number of dots in the horizontal direction is x 8 in the vertical direction it is y 8 If x y is out of the specified range this command is disabled The d indicates bit image data Data d specifies a...

Page 86: ...86 Reference GS 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 a downloaded bit image using the mode...

Page 87: ...andard mode this command is effective only when there is no data in the print buffer This command has no effect in the print modes emphasized double strike underline character size or white black reve...

Page 88: ...nce GS GS GS Name Start end macro definition Format ASCII GS Hex 1D 3A Decimal 29 58 Description Starts or ends macro definition Notes Macro definition starts when this command is received during norm...

Page 89: ...black reverse printing mode Format ASCII GS B n Hex 1D 42 n Decimal 29 66 n Range 0 n 255 Description Turns on or off white black reverse printing mode When the LSB of n is 0 white black reverse mode...

Page 90: ...erline mode is on it is disabled but not canceled when white black reverse mode is selected Default n 0 GS H n Name Select printing position for HRI characters Format ASCII GS H n Hex 1D 48 n Decimal...

Page 91: ...on Transmits the printer ID specified by n as follows n Printer ID Specification ID hexadecimal 1 49 Printer model ID SP POS88IV series 20 2 50 Printer model ID See table below 3 51 ROM version ID Dep...

Page 92: ...ady to receive data DSR signal is SPACE If the host computer is not ready to receive data DSR signal is MARK the printer waits until the host is ready When XON XOFF control is selected in the serial i...

Page 93: ...printer ID transmission is specified with 65 n 69 the following contents are transmitted Header Hexadecimal 5FH Decimal 95 1 byte Data Printer information NUL Hexadecimal 00H Decimal 0 1 byte Execute...

Page 94: ...ing in page mode If the setting exceeds the printable area the maximum value of the printable area is used The horizontal and vertical motion units are specified by GS P Changing the horizontal and ve...

Page 95: ...rection is the paper feed direction In standard mode the following commands use x or y regardless of character rotation upside down or 90 clockwise rotation Commands using x ESC SP ESC ESC FS S GS L G...

Page 96: ...values The calculated result from combining this command with others is truncated to the minimum value of the mechanical pitch Default x 180 y 360 Reference ESC SP ESC ESC 3 ESC J ESC W ESC GS GS L GS...

Page 97: ...t The horizontal and vertical motion unit are specified by GS P The paper feed amount is calculated using the vertical motion unit y However the value cannot be less than the minimum horizontal moveme...

Page 98: ...rinting in page mode If the left margin printing area width exceeds the printable area printable area width left margin is used The horizontal and vertical motion units are specified by GS P Changing...

Page 99: ...d unless page mode is selected When pitch N is specified to the movement downward nL nH 256 N When pitch N is specified to the movement upward the negative direction use the complement of 65536 When p...

Page 100: ...GS GS P GS r t m Name Execute macro Format ASCII GS r t m Hex 1D 5E r t m Decimal 29 94 r t m Range 0 r 255 0 t 255 m 0 1 Description Executes a macro r specifies the number of times to execute the ma...

Page 101: ...is aborted and the definition is cleared If the macro is not defined or if r is 0 nothing is executed When the macro is executed m 1 paper always cannot be fed by using the FEED button Reference GS G...

Page 102: ...epresents the current status If all status items are disabled the ASB function is also disabled If the ASB is enabled as a default the printer transmits the status when the printer data reception and...

Page 103: ...disabled by ESC Select peripheral device the four status bytes are transmitted whenever the status changes When using DLE EOT GS I or GS r the status transmitted by these commands and ASB status must...

Page 104: ...xecuting DLE ENQ n 1 n 2 If an error due to a circuit failure e g wire break occurs it is impossible to recover Bit 6 When printing is stopped due to high print head temperature until the print head t...

Page 105: ...off n 2 when DIP SW 2 1 is on Reference DLE EOT GS r GS f n Name Select font for Human Readable Interpretation HRI characters Format ASCII GS f n Hex 1D 66 n Decimal 29 102 n Range n 1 48 49 Descript...

Page 106: ...GS H Default n 0 Reference GS H GS k GS h n Name Select bar code height Format ASCII GS h n Hex 1D 68 n Decima 29 104 n Range 1 n 255 Description Selects the height of the bar code n specifies the nu...

Page 107: ...r code system and prints the bar code m selects a bar code system as follows m Bar Code System Number of Characters d 0 UPC A 11 k 12 48 d 57 1 UPC E 11 k 12 48 d 57 2 JAN13 EAN13 12 k 13 48 d 57 3 JA...

Page 108: ...l data When the bar code system used is JAN13 EAN13 the printer prints the bar code after receiving 13 bytes bar code data and processes the following data as normal data When the bar code system used...

Page 109: ...enabled only when no data exists in the print buffer When data exists in the print buffer the printer processes the data following m as normal data After printing bar code this command sets the print...

Page 110: ...When using the CODE 128 in this printer take the following points into account for data transmission The top of the bar code data string must be code set selection character any of CODE A CODE B or CO...

Page 111: ...not apply any special character the printer stops command processing and processes the following data as normal data If the printer receives characters that cannot be used in the special code set the...

Page 112: ...s the status specified by n as follows Notes This command is only effective for the printer with serial interface This command is executed when the data in the receive buffer is developed Therefore th...

Page 113: ...te this command Therefore bits 2 and 3 do not transmit the status of paper end Drawer kick out connector status n 2 50 Reference DLE EOT GS a GS v 0 m xL xH yL yH d1 dk Name Print raster bit image For...

Page 114: ...L yH select the number of data bits yL yH 256 in the vertical direction for the bit image Notes In standard mode this command is effective only when there is no data in the print buffer This command h...

Page 115: ...et absolute print position ESC Set relative print position and GS L Set left margin If the position at which subsequent characters are to be printed is not a multiple of 8 print speed may decline The...

Page 116: ...zontal size of the bar code n specifies the bar code width as follows Multi level bar codes are as follows UPC A UPC E JAN13 EAN13 JAN8 EAN8 CODE93 CODE128 Binary level bar codes are as follows CODE39...

Page 117: ...acing quadruple size characters are printed The printer can underline all characters including right and left side character spacing but cannot underline the space set by HT and 90 clockwise rotated c...

Page 118: ...FS FS W GS FS Name Select Chinese character mode Format ASCII FS Hex 1C 26 Decimal 28 38 Description Selects Chinese character mode Notes When the Chinese character mode is selected the printer checks...

Page 119: ...thick 2 50 Turns on underline mode for Chinese characters 2 dot thick Notes The printer can underline all characters including right and left side character spacing but cannot underline the space set...

Page 120: ...inese character mode Notes When the Chinese character mode is not selected all character codes are processed one byte at a time as ASCII code Chinese character mode is selected when the power is turne...

Page 121: ...character codes specified by c1 and c2 Notes c1 and c2 indicate character codes for the defined characters c1 specifies for the first byte and c2 for the second byte d indicates the dot data Set a cor...

Page 122: ...FS S n1 n2 Name Set left and right side Chinese character spacing Format ASCII FS S n1 n2 Hex 1C 53 n1 n2 Decimal 28 83 n1 n2 Range 0 n1 255 0 n2 255 Description Sets left and right side Chinese chara...

Page 123: ...ion unit is changed using GS P The value cannot be less than the minimum horizontal movement amount and must be in even units of the minimum horizontal movement amount In standard mode the horizontal...

Page 124: ...cription Turns quadruple size mode on or off for Chinese characters When the LSB of n is 0 quadruple size mode for Chinese characters is turned off When the LSB of n is 1 quadruple size mode for Chine...

Page 125: ...in height all the characters on the line are aligned at the baseline FS or GS can also select and cancel quadruple size mode by selecting double height and double width modes and the setting of the la...

Reviews: