Datamax E-class E-3202 Programmer's Manual page 31

Hide thumbs Also See for E-class E-3202:
Table of Contents

Advertisement

Selecting justification
ESC a n
Left:
n=0 or 48
Center:
n=1 or 49
Right:
n=2 or 50
This command will justify the orientation of the printing. Accessing the command is the same as initializing the printer
command. Ctrl+P to enter the control key command, follow by ESC key.
This will give you the ESC character  I n this command we will set the justification to center. For center justification we
use 1 or 49, in this program we will be using 1. Therefore n=1, insert this into the command by Ctrl+P and Ctrl A. The
character that should appear is
←a n
i.e.
←a ( Ctrl P+Ctrl A)
←a-
Up to this point we should have a program without any carriage returns as follows.
←@↔! ←a-
The command is turned off by inserting a Nul value into the command. This will justify the printer to left.
Please note that if we were to press RETURN (ENTER) after this command, the printer will
feed one line and then start printing. As the program is now it will start printing without
feeding one line. When pressing ENTER in a program the printer will see it as a CR
(carriage return) and a LF (Line Feed). This tip will apply to the next few lines of commands.
Inserting Text into the program
Following the previous command insert the Text we would like to print. At this point we use the RETURN (ENTER) key
to insert carriage returns into our program. This Text will all be printed center justified.
←@↔! ←a-Datamax Corporation <CR>
Matt & Derek
European Tech Support
Feb 2000
DMX-E-3202
POS/Label Printer
ESC/POS Print Examples
26
-
. For reference see the ASCII Chart.
<CR>
<CR>
<CR>
<CR>
<CR>
<CR>
E-3202 Programmer's Manual

Advertisement

Table of Contents
loading

Table of Contents