HP LaserJet 4100 HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 248
Table 23-2, Example: Printing Labels, CR-LF, CR-LF CR-LF
View all HP LaserJet 4100 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 248 highlights
Note In the examples in this chapter, the left column identifies the command sequence data for the plot. If the label command text is too wide for the column width, is it continued on a second line (which might indicate a Carriage Return in the text). In actual use, the text should be presented on one line, with no carriage-returns. If a Carriage Return is required in the example, it is indicated as "CR-LF." Table 23-2 Example: Printing Labels ECE EC%0B IN; Reset the printer. Enter HP-GL/2 mode. 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. PA1500,2500; Specify absolute plotting and move to (1500,2500). SD1,21,2,1,4,25, 5,1,6,0,7,52; Designate the 25-point Univers Italic font as the standard font. DT*,1; Define the asterisk character as the label terminator (the 1 indicates the terminator shouldn't be printed). SA; Select the alternate font for printing. Since an alternate font hasn't been designated, the default 11.5-point Stick font is selected. LBThis is the Stick Font Default) CR-LF CR-LF *; Print the first line of text, followed by two Carriage Returns and two Line Feed control codes. Notice how the asterisk terminates the label. SS; Select the standard font. LBThis is Univers Italic*; EC%0A ECE Print the next line of text in the newly specified font. Enter the PCL mode. Send a reset to end the job and eject the page. 23-4 The Character Group EN