Jump to content
  • Sign Up

I would like to ask what command I will put to align the text to left side: ESC/POS Commands


RedRider
 Share

Recommended Posts

My Epson TM-M10

It prints everything a bit too far to the left and leaves too much space on the right margin.

I added the following ESC/POS command

1B,61,01

It kinda works because it centres all the text which is not really what I want.

I prefer to move everything about 3-4mm to the right.

 

Anyone know what ESC/POS command to use for that?

My printer is set up as an other printer.

 

PS. I have gone through every setting and adjusting the paper width but 48mm is the max setting I can use.

Link to comment
Share on other sites

Hi

I would like to ask what command I will put to align the text to left side. seems like the text starts on the center of the page.

Also, I accidentally removed all the ECS/POS command and now, every time the order slip is printed, the drawer will not open automatically.

 

Hoping someone can help. Thank you

84610119_2547469805495134_8388598181704761344_n.jpg

Link to comment
Share on other sites


Format:

Hex       $1D $4C nL nH

ASCII     GL  L   nL nH

Decimal   27  76  nL nH

 

  • In standard mode, sets the left margin to [(nL + (nH × 256)) × (horizontal motion unit)] from the left edge of the printable area. Uses Two Byte Number Definitions.
  • This command is enabled only when processed at the beginning of a line. (When the current line is empty)
  • This command applies the justification within the area set by Left Margin and Print Area Width
  • This command will justify all data in the printing area such as characters, graphics, bit images, bar code and space area set by Horizontal Tab, Absolute and Relative print positions.


Screenshot(1).png.d2903da0ffa12ee8022558d2ccd6f9f2.png

https://reliance-escpos-commands.readthedocs.io/en/latest/layout.html#d4c

Link to comment
Share on other sites

  • 7 months later...

Hello,

Is it possible to set the left margin using ESC/POS Command ?

I understand that I can add ESC/POS Commands in Advanced Settings (Initial / Cutter / Drawer commands)

I've also found that the code to set the left margin for my printer is : 

ASCII  GS  L  nL  nH
Hex.  1D  4C  nL  nH
Decimal  29  76  nL  nH

Can anyone show me where to apply those codes? or any other codes to set the left margin 

 

Thanks

 

Budi

 

 

Link to comment
Share on other sites

On 9/19/2020 at 1:11 AM, retms said:

Hello,

Thanks again for the response.

Unfortunately, the problem is not that i do not know what the command is,

but rather which section should I put it    eg. should I put the command in  Initial or Cutter or Drawer section?

Link to comment
Share on other sites

On 9/20/2020 at 10:33 AM, BudiJatmiko said:

but rather which section should I put it    eg. should I put the command in  Initial or Cutter or Drawer section?

try to write indentation commands in the initial section. The main thing is that your printer supports them.

Link to comment
Share on other sites

  • 4 months later...

Hi do you know the esc/pos commands for a generic bluetooth printer 58mm. The print gets cut when I print a very long receipt and if I add '0A' many times, it just cuts the paper very very long if I print a short receipt.

It prints correctly if there's only 2 items but it messes up if i add more than 2 items.

It's a hassle to manually change the esc/pos commands every time I need to print a long receipt. Been reading tons of commands from other printer manuals since mine doesn't have one but it's hard to understand and some don't work or I can't even type the command on the app. 😞

 

please help.

 

 

IMG_20210126_012824_195.thumb.jpg.7eff9f0260f714cf63ff12ca8a807df3.jpg

Link to comment
Share on other sites

  • 3 months later...
On 1/26/2021 at 11:13 AM, PPascual said:

Hi do you know the esc/pos commands for a generic bluetooth printer 58mm. The print gets cut when I print a very long receipt and if I add '0A' many times, it just cuts the paper very very long if I print a short receipt.

It prints correctly if there's only 2 items but it messes up if i add more than 2 items.

It's a hassle to manually change the esc/pos commands every time I need to print a long receipt. Been reading tons of commands from other printer manuals since mine doesn't have one but it's hard to understand and some don't work or I can't even type the command on the app. 😞

 

please help.

 

 

IMG_20210126_012824_195.thumb.jpg.7eff9f0260f714cf63ff12ca8a807df3.jpg

Any updates on this issue. I am also facing same issue. 

Link to comment
Share on other sites

  • 5 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Similar Content

    • By obejohn
      After turning my receipt printer on, it prints perfect receipts for the first order. It also lets me print multiple receipts for the first order and they are all fine. For the second and subsequent orders the receipts are gibberish. If I power cycle (off then on) the printer in it will once again print the first order perfectly, but reverts to printing garbage on all subsequent orders.
      The printer is a generic thermal printer with usb, serial, ethernet and WiFi interfaces. I am currently using WiFi. The issue exists whether I use an Android tablet or my smartphone. Presumably, I need to send some sort of start up command sequence to the printer in order to intitialise it. 
      Has anyone experienced this type of problem or can anyone offer a suggestion as to how I can rectify this issue?
    • By Andrew de Freitas
      I know this has been asked a thousand times already... I have followed the instructions to change the printer to "other model" and use the Initial ESC/POS commands as 1C,70,01,00.
      That did not work.
      Saw that someone else recommended using the Hex code for the image in the Initial ESC/POS commands. But I am unable to find the Hex code in the Epson Utility.
      Has anyone gotten it to work with the T88V? or have any other solutions?
       
    • By Chia
      Hi,
      I have the issue when bill printing completed, I tear the bill and the tear line fall on last printer line. How to auto feed paper further after the bill printing completed?


    • By Las-Cascadas-The-Fal
      Hello,
      For anyone having trouble with their bills print being cut off from the right, the following command will help: B6,6C,9A
      just write in the Initial ESC/POS commands area in advanced settings
      Also you can find more command info that might help other situations in: http://www.ekka.com.ua/files/doc/ma501_4421_00_rev14.pdf
      Hope it helps!

       
      NOTE: Just to clarify, i do not own the MP-4000 TH POS Printer mentioned in the manual, but most commands did work for my off-brand Bluetooth thermal printer, so it might also work for yours

Loyverse Point of Sale

 

 

 

 

×
×
  • Create New...