Escan (27)(97)n ; Esc\n1n2 (27)(92)n1n2 ; Esc< (27)(60) - Page 300

Brother HL-1870N Command Reference Guide for Software Developers

Table of Contents

Technical Reference Guide
GLOSSARY
background image

 

CHAPTER 6 EPSON - 10 

Set inter-character space  

EscSPn (27)(32)n 

<1Bh><20h>n 

 

This command allows you to set the space between successive characters. 

 

n

 is the space between characters in multiples of 1/120". 

 

n

 must be in the range 0 to 127. 

LPRINT CHR$(27); CHR$(32); CHR$(5); 'Set 1/24" char space 

 

Select justification mode 

Escan (27)(97)n 

 

<1Bh><61h>n 

 

 

This command allows you to select the justification mode for subsequent text. 

 

Set 

n

 to 0 to select left justification.  

 

Set 

n

 to 1 to centre subsequent text.  

 

Set 

n

 to 2 to select right justification.  

 

Set 

n

 to 3 to select full justification (text will be both left and right justified).  

 

The default justification mode is left justification. 

 

The horizontal tab, 

HT

, and backspace, 

BS

, control codes can only be used in left justification mode. 

LPRINT CHR$(27); CHR$(97); CHR$(2); 'Right justify text 

 

Set absolute print position 

Esc$n1n2  (27)(36)n1n2 <1Bh><24h>n1n2 

 

This command allows you to print characters a specified distance in from the left margin. 

 

The unit of movement is 1/60". 

 

The specified distance to be moved is 

n

1

+(

n

2

*256)/120". 

 

If the specified position is to the right of the right margin the command is ignored. 

LPRINT CHR$(27); CHR$(36); CHR$(120); CHR$(0); 'Print a line 2" in  

 

Set relative print position 

Esc\n1n2 (27)(92)n1n2 

<1Bh><5Ch>n1n2 

 

This command allows you to print characters a specified distance to the left or right of the current print 
position. 

 

The unit of movement is 1/120". 

 

If you wish to move the print position to the right, the distance the print position is to be moved is calculated 
as 

(n

1

+(

n

2

*256))/120". 

 

If you wish to move the print position to the left, the distance the print position is to be moved is calculated 
as (65536 – (

n

1

+(

n

2

*256)))/120". 

 

If the specified position is beyond the left or right margin the command is ignored. 

LPRINT CHR$(27); CHR$(36); CHR$(180); CHR$(0); 'Print a line 1.5" to 
the right 

 

Select unidirectional printing 

Esc<  (27)(60) 

  <1Bh><3Ch> 

This command has no effect. 

 

Select / cancel unidirectional printing 

EscU  (27)(85) 

  <1Bh><55h> 

This command has no effect. 

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

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

  • 27. LPRINT CHR$(27); CHR$(32); CHR$(5); 'Set 1/24" char space Select justification mode Escan (27)(97)n &lt;1Bh&gt;&lt;61h&gt;n  This command allows you to select the justification mode for subsequent text.
  • 1.5" to the right Select unidirectional printing Esc&lt; (27)(60) &lt;1Bh&gt;&lt;3Ch&gt; This command has no effect.

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