4.2.8. Coordinates; 4.2.9. Units; 4.2.10. Unit of measure- Page 57

Brother HL-5070N Command Reference Guide for Software Developers

Table of Contents

Technical Reference Guide
GLOSSARY
background image

 

CHAPTER 2 PCL - 37 

4.2.8.

 

Coordinates 

The printer control language coordinate system has its origin at the intersection of the left edge of the logical 
page and the top margin. The x-coordinate value of the current cursor position increases as the cursor moves 
from left to right, the y-coordinate value increases as the cursor moves down the page. The cursor can be 
explicitly positioned anywhere on the current logical page using the PCL coordinate system. In addition, the 
cursor's coordinate position will change as text and graphics are printed. 

 

4.2.9.

 

Units 

You can specify cursor movement within the PCL coordinate system using one of three different unit systems. 

Decipoints 

A decipoint is one-tenth of a typographic point measurement = 1/720". 

Rows and columns 

Using the horizontal motion index (HMI) (Esc&k#H) and vertical motion index (VMI)(Esc&l#C) commands 
you can set the width of a column and the height of a row. You can then use the column width and row height as 
the units of the coordinate system. The line-spacing command is an alternative to the VMI command. 

Units 

The unit of measurement used must be defined by the unit of measure command as described in 4.2.10. 

 

4.2.10.

 

Unit of measure 

Esc&u#D (27)(38)(117)#(68) 

<1Bh><26h><75h>#<44h> 

ï‚Ÿ

 

# value can be 96, 100, 120, 144, 150, 160, 180, 200, 225, 240, 288, 300, 360, 400, 450, 480,  600, 720, 800, 
900, 1200, 1440, 1800, 2400, 3600, 7200. 

ï‚Ÿ

 

# stands for the unit of measurement in dots per inch. 

ï‚Ÿ

 

The value set by this command is used as the unit setting for use by other setting commands such as 
ESC*p#X. 

ï‚Ÿ

 

The default value of # is 300. 

Example) 

Esc&u300D Esc*p+100x+200Y 

move cursor 100/300 inch right and 200/300 inch down. 

Esc&u600D Esc*p+100x+200Y 

move cursor 100/600 inch right and 200/600 inch down. 

 

4.2.11.

 

Setting the left and right margins 

Esc&a#L (27)(38)(97)#(76) 

<1Bh><26h><61h>#<4Ch> 

# stands for the distance between the left edge of the logical page and the left margin in columns. 

 

Esc&a#M (27)(38)(97)#(77) 

<1Bh><26h><61h>#<4Dh> 

# stands for the distance between the left edge of the logical page and the right margin in columns. 

 

ï‚Ÿ

 

The column width is as defined by the HMI. If you subsequently change the HMI, the margin positions that 
you have set do not change - that is, when you specify margin positions they remain fixed physically until 
you specify new ones or reset them to default values. 

ï‚Ÿ

 

You cannot specify a value for the left margin that is greater than the value of the current right margin. 

ï‚Ÿ

 

If the current cursor position is to the left of your new left margin setting, the cursor will be moved to the 
new left margin. 

ï‚Ÿ

 

You cannot set the right margin further right than the right edge of the logical page. 

Detailed Information for Brother HL-5070N Command Reference Guide for Software Developers

Lists of information found in Brother HL-5070N Command Reference Guide for Software Developers - Page 57

  • 4.2.
  • 8. Coordinates The printer control language coordinate system has its origin at the intersection of the left edge of the logical page and the top margin.
  • 4.2.
  • 9. Units You can specify cursor movement within the PCL coordinate system using one of three different unit systems.
  • 4.2.
  • 4.2.
  • 4.2.
  • 11. Setting the left and right margins Esc&amp;a#L (27)(38)(97)#(76) &lt;1Bh&gt;&lt;26h&gt;&lt;61h&gt;#&lt;4Ch&gt; # stands for the distance between the left edge of the logical page and the left margin in columns.

Related Documents for Brother HL-5070N Command Reference Guide for Software Developers