Table 23-15 Example: Another DI Example

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.

 

 

PA3500,2500;

Specify absolute plotting and move to

 

(3500,2500).

 

 

DT#,1;

Define the “#” character as the label

 

terminator.

 

 

DI0,1;LB__1990#;

Set the label direction to print at 90° and

 

print “__1990”.

 

 

DI1,1;LB__1991#;

Set the label direction to 45° and print

 

“__1991”.

 

 

DI1,0;LB__1992#;

Set the label direction to 0° and print

 

“__1992”;

 

 

DI,.71,-.71;

Change the label direction using the cosine

LB1993#;

and sine of 315° and print “__1993”.

 

 

DI,0,-1;LB__1994

Change the label direction using the cosine

CR#;

and sine of 270° and print “__1994”;

 

Carriage Return.

 

 

DI,-.71,-.71;

Set the label direction using the cosine and

LB__1995

sine of 270° and print “__1995”; Carriage

CR#;

Return.

 

 

DI,-1,0;LB__1996

Set the label direction using the cosine and

CR#;

sine of -180° and print “__1996”; Carriage

 

Return.

 

 

EC%0A

Enter the PCL mode.

ECE

Send a reset to end the job and eject the

 

page.

 

 

EN

DI, Absolute Direction 23-35

Page 647
Image 647
HP 5961-0509 manual Example Another DI Example