Example:Using the SR Command

The following example first shows a label with a character size relative to P1 and P2 (SR). Next, the locations of P1 and P2 are changed; then, the character size percentages are specified. Notice that the new character size has equal parameters of 2.5; because the P1/P2 area is square, the resulting characters are square.

Table 23-51 Example: Using the SR Command

ECE

Reset the printer.

EC%0B

Enter HP-GL/2 mode.

IN;

Initialize HP-GL/2 mode.

 

 

SP1;

Select pen number 1. Even though there is

 

no physical pen, the SP command must be

 

used to enable printing.

 

 

IP-6956,-4388,

Move P1 to (-6956,-4388) and P2 to

6956,4388;

(6956,4388).

 

 

DT@;

Specify “@” as the label terminator.

 

 

SR;PA0,2700;

Default the character size as a percentage

LBRELATIVE

of the P1/P2 rectangle, move the pen to

LABEL SIZE@;

(0,2700), and print “RELATIVE LABEL

 

SIZE.”

 

 

IP0,0,5500,5500;

Move P1 to (0,0) and P2 to (5500,5500),

PA0,2000;

then move the pen to (0,2000).

 

 

LBNEW P1 AND P2

Print “NEW P1 AND P2 CHANGE LABEL

CHANGE LABEL

SIZE.”

SIZE@;

 

 

 

PA0,1000;SR2.5,2.5;

Move to (0,1000) and set the character size

 

to 2.5% by 2.5% of the P1/P2 rectangle.

 

 

LBNEW SRm

Print “NEW SR INSTRUCTION” and send

INSTRUCTION@;CP

CP for Carriage Return/Line Feed.

;

 

 

 

LBCHANGES

Print “CHANGES LABEL SIZE.”

LABEL SIZE@;

 

 

 

EC%0A

Enter the PCL mode.

ECE

Send a reset to end the job and eject the

 

page.

 

 

EN

SR, Relative Character Size 23-83

Page 695
Image 695
HP 5961-0509 manual ExampleUsing the SR Command, Example Using the SR Command