HP LaserJet 4100 HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 327
Example:Using the SR Command, Print NEW P1 AND P2 CHANGE LABEL
View all HP LaserJet 4100 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 327 highlights
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 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. IP-6956,-4388, 6956,4388; Move P1 to (-6956,-4388) and P2 to (6956,4388). DT@; Specify "@" as the label terminator. SR;PA0,2700; LBRELATIVE LABEL SIZE@; Default the character size as a percentage of the P1/P2 rectangle, move the pen to (0,2700), and print "RELATIVE LABEL SIZE." IP0,0,5500,5500; PA0,2000; Move P1 to (0,0) and P2 to (5500,5500), then move the pen to (0,2000). LBNEW P1 AND P2 CHANGE LABEL SIZE@; Print "NEW P1 AND P2 CHANGE LABEL 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 LABEL SIZE@; EC%0A ECE Print "CHANGES LABEL SIZE." Enter the PCL mode. Send a reset to end the job and eject the page. EN SR, Relative Character Size 23-83