Table 23-20 Example: Using the DR Command

ECE

Reset the printer.

EC%0B

Enter HP-GL/2 mode.

IN;

Initialize HP-GL/2 mode.

 

 

SP1;

Select pen number 1 (black).

 

 

PA3500,2500;

Specify absolute plotting and move to

 

(3500,2500).

 

 

DT#,1;

Define the “#” character as the label

 

terminator.

 

 

DR0,1;LB __1990#;

Set the label direction and print

 

“__1990”.

 

 

DR1,1;LB __1991#;

Set the label direction and print

 

“__1991”.

 

 

DR1,0;LB__1992#;

Set the label direction and print

 

“__1992”.

 

 

DR,1,-1; LB__1993#;

Change the label direction and print

 

“__1993”.

 

 

DR,0,-1;LB__1994

Set the label direction, print “__1994”

CR#;

and Carriage Return.

 

 

DR,-1,-1;LB__1995

Set the label direction and print

CR#;

“__1995”; Carriage Return.

 

 

DR,-1,0;LB__1996

Set the label direction and print

CR#;

“__1996”; Carriage Return.

 

 

EC%0A

Enter the PCL mode.

ECE

Send a reset to end the job and eject

 

the page.

 

 

23-42The Character Group

EN

Page 654
Image 654
HP 5961-0509 Example Using the DR Command, DR,-1,-1LB1995 Set the label direction and print, 23-42The Character Group