Table of Contents

Advertisement

Quick Links

LR1100 POS THERMAL PRINTER
PROGRAMMING MANUAL

Advertisement

Table of Contents
loading

Summary of Contents for Bematech LR1100

  • Page 1 LR1100 POS THERMAL PRINTER PROGRAMMING MANUAL...
  • Page 2 Bematech was negligent regarding the design or manufacture of the product. Bematech shall not be liable against any damages or problems arising from the use of any options or any consumable products other than those designated as original Bematech products or...
  • Page 3: Table Of Contents

    LR1100 Programming Manual V1.2 TABLE OF CONTENTS Overview ............................5 Features ............................5 I/O connectors..........................5 Command List ............................ 6 Command Set Details ......................... 9 HT ................................9 LF ................................10 CR ................................10 DLE EOT n ..............................10 DLE ENQ n ............................... 12 DLE DC4 n m t ............................
  • Page 4 LR1100 Programming Manual V1.2 ESC R n ..............................26 ESC V n ..............................27 ESC \ nL nH .............................. 27 ESC a n ..............................28 ESC c 5 n ..............................28 ESC d n ..............................29 ESC p m t1 t2 ............................29 ESC t n ..............................
  • Page 5 LR1100 Programming Manual V1.2 GS w n ..............................51 GS x n ..............................52 GS P x y ..............................52 KANJI CONTROL COMMANDS ........................53 FS ! n ............................... 53 FS & ................................. 54 FS - n ............................... 54 FS ................................55 FS 2 c1 c2 d1...dk ............................
  • Page 6 LR1100 Programming Manual V1.2 GS ( k pL pH cn fn n1 n2 (cn=49, fn=65) ....................69 GS ( k pL pH cn fn n (cn=49, fn=67)......................70 GS ( k pL pH cn fn n (cn=49, fn=69)......................70 GS ( k pL pH cn fn m d1…dk (cn=49, fn=80) .................... 71 GS ( k pL pH cn fn m (cn=49, fn=81) .......................
  • Page 7: Overview

     Emulation: ESC/POS command set I/O connectors At the rear panel of the LR1100 is a row of external I/O device connectors detailed as follows:  DC IN (3-pin) - for connection to power adapter (DC24V, 2.5A).  CASH DAWER (RJ11) - for connection to cash drawer to open the drawer with commands sent to the printer.
  • Page 8: Command List

    A command set describes the behavior of the printer when sequences of bytes are received through the communication interface. The command set available with LR1100 is ESC/POS®. It is a standard defined by Seiko Epson Corporation. ESC/POS® commands can be classified as executing or setting.
  • Page 9 LR1100 Programming Manual V1.2 Type Command Name ESC { n Turn upside-down printing mode on/off ESC - n Set the underline dots(0,1,2) ESC % n Select/Cancel user-defined characters FS & Select Chinese mode FS . Select character mode Set print mode for Kanji characters...
  • Page 10 LR1100 Programming Manual V1.2 Type Command Name GS x Set barcode printing left space Select/Cancel panel button。 ESC c 5 n ① GS V m Select cut mode and cut paper ② GS V m n GS : Start/end macro definition...
  • Page 11: Command Set Details

    Command Set Details This section presents detailed information about each ESC/POS® command implemented by the LR1100 printer. Some terms used in the description of ESC/POS command set need further explanation, as described below.  Print buffer: a buffer that stores the image data to be printed.
  • Page 12: Dle Eot N

    LR1100 Programming Manual V1.2 [Name] Print and line feed [Format] ASCII Decimal [Description] Prints the data in the print buffer and feeds one line, based on the cu rrent line spacing. [Note] This command sets the print position to the beginning of the line.
  • Page 13 LR1100 Programming Manual V1.2  Do not use this command within another command that consists of 2 or more bytes. Example: If you attempt to transmit ESC 3 n to the printer, but DTR (DSR for the host computer) goes to MARK before n is transmitted and then DLE EOT 3 interrupts before n is received, the code <10>H for DLE EOT 3 is processed...
  • Page 14: Dle Enq N

    LR1100 Programming Manual V1.2 Not used. Fixed to Off. n = 3: Error status Off/On Decimal Function Not used. Fixed to Off. Not used. Fixed to On. Undefined. No autocutter error. Autocutter error occurred. Not used. Fixed to On. No unrecoverable error.
  • Page 15: Dle Dc4 N M T

    LR1100 Programming Manual V1.2 Request Recover from an error and restart printing from the line where the error occurred Recover from an error at clearing the receive and print buffers  This command is effective only when an auto cutter error, a black mark detecting [Notes] error or a platen-open error occurs.
  • Page 16: Esc Sp N

    LR1100 Programming Manual V1.2 The pulse ON time is [t x 100 ms] and the OFF time is [ t x 100 ms].  When the pulse is output to the connector pin specified while ESC p or DEL DC4 is [Details] executed while this command is processed, this command is ignored.
  • Page 17: Esc $ Nl Nh

    LR1100 Programming Manual V1.2 Undefined. Undefined. 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. Undefined. Underline mode not selected. Underline mode selected.  When both double-height and double-width modes are selected, quadruple-size [Notes] characters are printed.
  • Page 18: Esc % N

    LR1100 Programming Manual V1.2  Sets the distance from the beginning of the line to the position at which subsequent [Description] characters are to be printed.  The distance from the beginning of the line to the print position is [(nL + nH 256)×...
  • Page 19 LR1100 Programming Manual V1.2  The allowable character code range is from ASCII code <20>H to <7E>H (95 [Notes] characters).  It is possible to define multiple characters for consecutive character codes. If only one character is desired, use c1 = c2.
  • Page 20 LR1100 Programming Manual V1.2 d1= <0F>H d4 = <30>H d7 = <40>H ..d2 = <03>H d5 = <80>H d8 = <40>H ..d3 = <00>H d6 = <00>H d9 = <20>H ..
  • Page 21: Esc M Nl Nh D1

    LR1100 Programming Manual V1.2 d1 = <1F>H d4 = <08>H d7 = <10>H... d2 = <FF>H d5 = <08>H d8 = <04>H... d3 = <80>H d6 = <00>H d9 = <00>H... ESC m nL nH d1...dk [Name] Select bit-image mode ESC m nL nH d1...dk...
  • Page 22 LR1100 Programming Manual V1.2  If the value of m is out of the specified range, nL and the data following are [Notes] processed as normal data.  The nL and nH indicate the number of dots in the bit image in the horizontal direction.
  • Page 23: Esc - N

    LR1100 Programming Manual V1.2  When 24-dot bit image is selected: ESC - n [Name] Turn underline mode on/off [Format] ASCII ESC - n 2D n Decimal 45 n [Range]  n2, 48 n 50 [Description] Turns underline mode on or off, based on the following values...
  • Page 24: Esc 2

    LR1100 Programming Manual V1.2  Underline mode can also be turned on or off by using ESC !. Note, however, that the last received command is effective. [Default] n = 0 [Reference] ESC ! ESC 2 [Name] Select default line spacing...
  • Page 25: Esc ? N

    LR1100 Programming Manual V1.2 ESC ? n [Name] Cancel user-defined characters [Format] ASCII ESC ? n 1B 3F Decimal 27 63 32 n 126 [Range] [Description] Cancels user-defined characters.  This command cancels the patterns defined for the character codes specified by n.
  • Page 26: Esc D N1

    LR1100 Programming Manual V1.2 ESC D n1...nk NUL [Name] Set horizontal tab positions [Format] ASCII D n1...nk NUL 44 n1...nk 00 Decimal 68 n1...nk 0 1 n 255 [Range] 0k 32 [Description] Sets horizontal tab positions.  n specifies the column number for setting a horizontal tab position from the beginning of the line.
  • Page 27: Esc G N

    LR1100 Programming Manual V1.2 When the LSB of n is 1, emphasized mode is turned on.  Only the least significant bit of n is enabled. [Notes]  This command and ESC ! turn on and off emphasized mode in the same way. Be careful when this command is used with ESC !.
  • Page 28: Esc R N

    LR1100 Programming Manual V1.2 [Format] ASCII 4D n Decimal 77 n [Range] n = 0, 1, 48, 49 [Description] Selects the character font. Function 0, 48 Character Font A (12×24) selected. 1, 49 Character Font B (9×17) selected. [Notes] ESC ! can also select character font types. However the setting of the last received command is effective.
  • Page 29: Esc V N

    LR1100 Programming Manual V1.2 [Default] n = 0 ESC V n [Name] Turn 90clockwise rotation mode on/off [Format] ASCII ESC V n 56 n Decimal 86 n 0 n 1, 48n 49 [Range] [Description] Turns 90clockwise rotation mode on/off n is used as follows:...
  • Page 30: Esc A N

    LR1100 Programming Manual V1.2 When pitch N is specified to the left (the negative direction), use the complement of 65536. When pitch N is specified to the left: nL+ nH × 256 = 65536 - N  In standard mode, the horizontal motion unit is used.
  • Page 31: Esc D N

    LR1100 Programming Manual V1.2  When the LSB of n is 0, the panel buttons are enabled.  When the LSB of n is 1, the panel buttons are disabled.  Only the lowest bit of n is valid. [Notes] ...
  • Page 32: Esc T N

    LR1100 Programming Manual V1.2 ESC t n [Name] Select character code table [Format] ASCII 74 n Decimal 116 n 0 n 5, 16 n19, n = 255 [Range] [Description] Selects page n from the character code table. Code Page Code Page CP437 [U.S.A., Standard Europe]...
  • Page 33: Esc { N

    LR1100 Programming Manual V1.2 ESC { n [Name] Turns on/off upside-down printing mode [Format] ASCII ESC { Decimal 27 123 0  n  255 [Range] [Description] Turns upside-down printing mode on or off.  When the LSB of n is 0, upside-down printing mode is turned off.
  • Page 34: Esc 9 N

    LR1100 Programming Manual V1.2 [Format] ASCII ESC m 1B 6d Decimal 27 109 [Description] ESC m select a paper cutting mode and then partial cut the paper. ESC 9 n [Name] Select Chinese code format [Format] ASCII ESC 9 n...
  • Page 35: Fs Q N [Xl Xh Yl Yh D1

    LR1100 Programming Manual V1.2  This command is not affected by print modes (emphasized, underline, character size, white/black reverse printing, or 90rotated characters, etc.), except upside- down printing mode.  If the printing area width set by GS L and GS W for the NV bit image is less than one vertical line, the following processing is performed only on the line in question.
  • Page 36 LR1100 Programming Manual V1.2  Frequent write command executions may damage the NV memory. Therefore, it is [Notes] recommended to write the NV memory 10 times or less a day. The printer performs a hardware reset after the procedure to place the image into the NV memory.
  • Page 37 LR1100 Programming Manual V1.2 The printer does not transmit ASB status or perform status detection during processing of this command even when ASB is specified. When this command is received during macro definition, the printer ends macro definition, and begins performing this command.
  • Page 38: Gs ! N

    LR1100 Programming Manual V1.2 GS ! n [Name] Select character size [Format] ASCII GS ! n 1D 21 n Decimal 29 33 n 0 n 255 [Range] (1 vertical number of times 8, 1 horizontal number of times 8) [Description]...
  • Page 39: Gs * X Y D1

    LR1100 Programming Manual V1.2  When characters are enlarged with different sizes on one line, all the characters on the line are aligned at the baseline.  The ESC ! command can also turn double-width and double-height modes on or off.
  • Page 40: Gs / M

    LR1100 Programming Manual V1.2 [Reference] GS / GS / m [Name] Print downloaded bit image [Format] ASCII 1D 2F m Decimal 29 47 m 0 m 3, 48m51 [Range] [Description] Prints a downloaded bit image using the mode specified by m.
  • Page 41: Gs I N

    LR1100 Programming Manual V1.2 Decimal 0 n 255 [Range] [Description] Turns on or off white/black reverse printing mode.  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.
  • Page 42: Gs(H Pl Ph Fn M D1 D2 D3 D4 (Fn=48)

    LR1100 Programming Manual V1.2 [Type ID] (n=2) Off/On Decimal Contents Multi-byte code characters not supported Multi-byte code characters supported Auto cutter Installed.(Fixed) Not used Fixed Not used Not used Fixed GS(H pl pH fn m d1 d2 d3 d4 (fn=48)
  • Page 43: Gs L Nl Nh

    LR1100 Programming Manual V1.2 [Default] n = 0 [Reference] GS f, GS k GS L nL nH [Name] Set left margin [Format] ASCII GS L nL nH 1D 4C nL nH Decimal 29 76 nL nH 0nL 255 [Range] 0 nH 255 [Description] Sets the left margin using nL and nH.
  • Page 44: Gs W Nl Nh

    LR1100 Programming Manual V1.2 Print mode 1, 49 Partial cut (one point left uncut) Feeds paper (cutting position + [n × 0.0.66 mm]), and cuts the paper partially (one point left uncut). [Notes for ① and ②]  Cutting status is different, depending on the installed auto-cutter type.
  • Page 45 LR1100 Programming Manual V1.2 ① The printing area width is extended to the right to accommodate one character. ② If the printing area width cannot be extended sufficiently, the left margin is reduced to accommodate one character. ③ If the printing area width cannot be extended sufficiently, the right space is reduced.
  • Page 46: Gs ^ R T M

    LR1100 Programming Manual V1.2  If the printer receives GS : again immediately after previously receiving GS : , the printer remains in the macro undefined state.  The contents of the macro can be defined up to 2048 bytes. If the macro definition exceeds 2048 bytes, excess data is not stored.
  • Page 47: Gs F N

    LR1100 Programming Manual V1.2 [Description] Enables or disables ASB and specifies the status items to include, using n as follows: Off/On Decimal Status for ASB Undefined . Undefined . Error status disabled. Error status enabled. Paper roll sensor status disabled.
  • Page 48: Gs H N

    LR1100 Programming Manual V1.2 1,49 Font B (9 ×17)  HRI indicates Human Readable Interpretation. [Notes]  HRI characters are printed at the position specified by GS H. [Default] n = 0 [Reference] GS H, GS k GS h n...
  • Page 49 LR1100 Programming Manual V1.2 1 k′ 48 d 57, 65 d 68 , 36, CODABAR 43, 45, 46, 47, 58 11 n 12 48 d 57 ② UPC-A 11  n 12 48 d 57 UPC-E 12  n13 48 d 57 JAN13 (EAN13) 7 n 8...
  • Page 50 LR1100 Programming Manual V1.2  This command is not affected by print modes (emphasized, double-strike, underline, character size, white/black reverse printing, or 90rotated character, etc.), except for upside-down printing mode. Control character Control character ASCII Decimal character ASCII Decimal character ■U...
  • Page 51: Gs R N

    LR1100 Programming Manual V1.2 FNC2 7B,32 123,50 FNC3 7B,33 123,51 FNC4 7B,34 123,52 "{" 7B,7B 123,123   If the top of the bar code data is not the code set selection character, the printer stops command processing and process the following data as normal data.
  • Page 52: Gs V 0 M Xl Xh Yl Yh D1

    LR1100 Programming Manual V1.2  When Auto Status Back (ASB) is enabled using GS a, the status transmitted by GS r and the ASB status must be differentiated using.  The status types to be transmitted are shown below: Paper sensor status (n = 1, 49):...
  • Page 53: Gs W N

    LR1100 Programming Manual V1.2  yL, yH, select the number of data bits (yL+yH×256) in the vertical direction for the bit image.  In standard mode, this command is effective only when there is no data in the print [Notes] buffer.
  • Page 54: Gs X N

    LR1100 Programming Manual V1.2 2 n 6 [Range] [Description] Sets the horizontal size of the bar code. n specifies the bar code width as follows: Module Width (mm) for Binary-level Bar Code Multi-level Bar Code Thin Element Width (mm) Thick Element Width(mm) 0.250...
  • Page 55: Kanji Control Commands

    LR1100 Programming Manual V1.2 KANJI CONTROL COMMANDS FS ! n [Name] Set print mode(s) for Kanji characters [Format] ASCII 1C 21 n Decimal 28 33 n 0 n 255 [Range] [Description] Sets the print mode for Kanji characters, using n as follows:...
  • Page 56: Fs - N

    LR1100 Programming Manual V1.2 FS & [Name] Select Kanji character mode [Format] ASCII & Decimal [Description] Selects Kanji character mode. [Notes] For Kanji model:  When the Kanji character mode is selected, the printer processes all Kanji code as two bytes each.
  • Page 57: Fs 2 C1 C2 D1

    LR1100 Programming Manual V1.2 FS . [Name] Cancel Kanji character mode [Format] ASCII Decimal [Description] Cancels Kanji character mode. [Notes] For Kanji model:  When the Kanji character mode is not selected, all character codes are processed one byte at a time as ASCII code.
  • Page 58: Fs S N1 N2

    LR1100 Programming Manual V1.2 FS S n1 n2 [Name] Set left- and right-side Kanji character spacing [Format] ASCII n1 n2 n1 n2 Decimal n1 n2 0 n1 255 [Range] 0 n2 255 [Description] Sets left- and right-side Kanji character spacing to n1 and n2, respectively.
  • Page 59 LR1100 Programming Manual V1.2  When the LSB of n is 0, quadruple-size mode for Kanji characters is turned off.  When the LSB of n is 1, quadruple-size mode for Kanji characters is turned on.  Only the lowest bit of n is valid.
  • Page 60: Page Mode Commands

    LR1100 Programming Manual V1.2 PAGE MODE COMMANDS The printer operates in two print modes: standard mode and page mode. In standard mode, the printer prints and feeds paper each time it receives print data or paper feed commands. In page mode, all the received print data and paper feed commands are processed in the specified memory, and no printing action is executed.
  • Page 61: Esc L

    LR1100 Programming Manual V1.2 Decimal [Description] When in page mode ESC FF prints all data in the print buffer in one time.The buffer data is not deleted after being printed. ESC L [Name] Select page mode [Format] ASCII ESC L...
  • Page 62: Esc T N

    LR1100 Programming Manual V1.2  Data buffered in page mode is cleared.  This command sets the print position to the beginning of the line.  The printing area set by ESC W is initialized.  This command switches the settings for the following commands (in which the...
  • Page 63 LR1100 Programming Manual V1.2 [Format] ASC II ESC W xL xH yL yH dxL dxH dyL dyH 57 xL xH yL yH dxL dxH dyL dyH Decimal 87 xL xH yL yH dxL dxH dyL dyH 0 xL, xH, yL, yH, dxL, dxH, dyL, dyH 255 (except dxL=dxH=0 or dyL=dyH=0) [Range] ...
  • Page 64: Gs $ Nl Nh

    LR1100 Programming Manual V1.2 GS $ nL nH [Name] Set absolute vertical print position in page mode [Format] ASCII GS $ nL nH 1D 24 nL nH Decimal 29 36 nL nH 0 nL 255, 0 nH 255 [Range]  Sets the absolute vertical print starting position to buffer character data in [Description] pagemode.
  • Page 65: Special Printing Commands

    LR1100 Programming Manual V1.2 nL + nH×256 = 65536 - N  Any setting that exceeds the specified printing area is ignored.  This command functions as follows, depending 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.
  • Page 66: Gs Z N

    LR1100 Programming Manual V1.2 GS Z n [Name] Select 2D barcode type [Format] ASCII GS Z 1D 5A Decimal 27 90 [Range] n=0: PDF417(default) n=1: QR-CODE GS ( k pL pH cn fn n (cn=48, fn=65) [Function] Set PDF417 code number of columns in the data region...
  • Page 67: Gs ( K Pl Ph Cn Fn N (Cn=48, Fn=67)

    LR1100 Programming Manual V1.2 n = 0 (automatic processing) [Description] Set number of rows for PDF417. GS ( k pL pH cn fn n (cn=48, fn=67) [Function] Set the PDF417 module width [Format] ASCII GS ( k pL pH cn fn n...
  • Page 68 LR1100 Programming Manual V1.2 m = 48, 49 48 ≤ n ≤ 56 [m = 48] 1 ≤ n ≤ 40 [m = 49] [Default] m = 49, n = 1 [Description] Set error correction level for PDF417. Function The error correction level is set by “level”.
  • Page 69: Gs ( K Pl Ph Cn Fn N (Cn=48, Fn=70)

    LR1100 Programming Manual V1.2 201-400 Error correction level 7 401 or more Error correction level 8 • The error correction codeword is calculated by modulus 929. • Settings of this function are effective until ESC @ is executed, the printer is reset, or the power is turned off.
  • Page 70: Gs ( K Pl Ph Cn Fn M (Cn=48, Fn=81)

    LR1100 Programming Manual V1.2 o The printer is reset or the power is turned off. GS ( k pL pH cn fn m (cn=48, fn=81) [Function] Print PDF417 symbol data in the symbol storage area. [Format] ASCII GS ( k pL pH cn fn m...
  • Page 71: Gs ( K Pl Ph Cn Fn N1 N2 (Cn=49, Fn=65)

    LR1100 Programming Manual V1.2 [Format] ASCII GS ( k pL pH cn fn m 1D 28 6B pL pH cn fn m Decimal 29 40 107 pL pH cn fn m [Range] pL = 3, pH = 0 cn = 48, fn = 82...
  • Page 72: Gs ( K Pl Ph Cn Fn N (Cn=49, Fn=67)

    LR1100 Programming Manual V1.2 n1 = 49, 50 n2 = 0 [Default] n1=50, n2=0 [Description] Set the QR Code model by n1. n Function Set model 1 QR code conversion Set model 2 QR code conversion GS ( k pL pH cn fn n (cn=49, fn=67)
  • Page 73: Gs ( K Pl Ph Cn Fn M D1

    LR1100 Programming Manual V1.2 GS ( k pL pH cn fn m d1…dk (cn=49, fn=80) [Name] Store QR code data in the symbol storage area GS ( k pL pH cn fn m d1…dk [Format] ASCII 1D 28 6b pL pH cn fn m d1…dk 29 40 107 pL pH cn fn m d1…dk...
  • Page 74 LR1100 Programming Manual V1.2 Following information will be returned by the printer. Information Decimal Data length (bytes) Header Identifier Width 30 - 39 48 - 57 1 to 5 Delimiter Height 30 - 39 48 - 57 1 to 5...
  • Page 75 LR1100 Programming Manual V1.2 Paper 0,48 Basic sheet (paper roll) 1,49 paper roll 2,50 m specifies a test pattern. Test pattern 1,49 Hexadecimal dump 2,50 Printer status print 3,51 Rolling pattern print  This command has enabled only when processed at the beginning of a line in [Notes] standard mode.
  • Page 76: Gs Ff

    LR1100 Programming Manual V1.2 Function Forward Direction (Paper Feed Direction) Reverse Direction nL, nH specify the amount of adjustment. Adjustment = (nH×256 + nL) × 0.125 mm.  When processing this command while defining a macro, the macro definition is [Notes] immediately terminated and the command commences with processing.
  • Page 77: Gs C 1 Al Ah Bl Bh N R

    LR1100 Programming Manual V1.2 [Description] Selects a print mode for the serial number counter.  n specifies the number of digits to be printed as follows: When n = 0, the printer prints the actual digits indicated by the number value.
  • Page 78: Gs C 2 Nl Nh

    LR1100 Programming Manual V1.2  Count-up mode is specified when: [Notes] [aL + aH×256] < [bL + bH ×256] and n 0 and r 0  Count-down mode is specified when: [aL + aH ×256] > [bL + bH ×256] and n 0 and r 0 ...
  • Page 79 LR1100 Programming Manual V1.2 Decimal 29 67 59 sa 59 sb 59 sn 59 sr 59 sc 59 “0” sa “65535” [Range] “0” sb “65535” “0” sn “255” “0” sr “255” “0” sc “255” These values are all character strings.
  • Page 80: Gs C

    LR1100 Programming Manual V1.2 GS c [Name] Print counter [Format] ASCII GS c 1D 63 Decimal 29 99 [Description] Sets the serial counter value in the print buffer and increments or decrements the counter value.  After setting the current counter value in the print buffer as print data (a character [Notes] string), the printer counts up or down based on the count mode set.The counter...

Table of Contents