Compaq 5525B/31/32 manual Cursor Control

Page 40

Chapter 2 Configuring the PCL-II Emulation with Control Codes

Cursor Control

Absolute and relative cursor control are provided for the printer. Cursor moves are made in the current active pitch and current active vertical spacing. The following escape sequences perform these functions:

Absolute Row

ESC&a#R

 

Move cursor to absolute row # (where # is an unsigned

 

integer)

Absolute Column

ESC&a#C

 

Move cursor to absolute column # (where # is an

 

unsigned integer)

Relative Row

ESC&a[+#]R

 

Move cursor to relative row # from current position

 

(where # is a signed [+ only] integer)

Relative Column

ESC&a[+/-#]C

 

Move cursor to relative column # from current position

 

(where # is a signed [+/-] integer)

NOTE: A plus (+) or minus (-) sign in front of the value indicates that the new position is relative to the current active position. A (+) sign means the new position is to the right (horizontal) or that paper motion is forward (vertical). A (-) sign means that the new cursor position is to the left of the current active position. The printer does not perform reverse paper motion.

The vertical cursor positioning commands move the current active position to the same column on a new line; the vertical movement is based on the active vertical spacing.

The horizontal cursor positioning commands move the current active position to a new column on the same line; the horizontal movement is based on the active horizontal print pitch.

The first column/row within a line/page is column/row zero. Therefore, the upper left-most position is position (0,0). This escape sequence ignores margins and can therefore be used to set the current active position to any location within the printer’s physical limits. If a request is made for a location outside the printer’s physical limits, the current active position is moved to the appropriate limit.

40

Image 40
Contents 5525B/31/32 Line Matrix Printer Page PCL-II Programmer’s Reference Manual Page Trademark Acknowledgements Page Table of Contents Standard Ascii Character Set Introduction Related Product InformationSoftware Features HP PCL-II HP PCL-II Emulation Default Settings Switching Between the EmulationsConfiguring the PCL-II Emulation with Control Codes Printer Feature Set CompatibilityProgrammatic Printer Control General InformationLogical and Physical Pages Escape Sequences Combining Escape SequencesPCL Level Escape Sequences Line Printer Escape Sequences Explanation Programmable Reset Character Font Selection Symbol Set Selection OCR-A Print Pitch Selection Printing in the Hex 80 through Hex FF RegionCharacter Style Selection Character Density Selection PCL LevelHS DP NLQ Switching Character Fonts Print Mode Selection Display Functions ModeSelf-test Vertical Forms Control VFC Line SpacingStandard Computed VFC Page Programmable VFC Special VFC ConsiderationsProgrammable VFC Using PCL Example FormChannel Line Configuring the PCL-II Emulation with Control Codes Programmable VFC Ascii CTL MSB/LSB Example VFC Data Entry Methods \CHANGEQ 7 to 00 \CHANGEQ 8 to Logical Page Length Selection Logical Page Length SelectionPerforation Skip Mode Text Length Vertical Margin SelectionHorizontal Margin Selection Transparent Print DataCursor Control Raster Graphics ESC*b# of raster lines YUnderlining Bar Codes Character OverstrikeESC*z#V Bar Code Selection ESC*z#C Bar Code Label Placement ESC*z#H Bar Code HeightESC*z#Q Bar Code Header Control ESC*zBar Code DataZ Bar Code Label DataPrinting Bar Codes Printing Multiple Labels On The Same Line Printing Bar Codes With TextBar Code Width Information Bar Code Number of Characters SentCode 3 EAN8 Royal MailAdditional Product ID Assigned By Manufacturer N3+an..30 Width, Diameter, or 2nd Dimension, Inches, Logistics N4+n6 US Postnet Barcodes Data Value Representation256X US Postnet BAR Code CPI 22.5 Bars per inch US Postnet BAR Code2 3 4 5 6 7 8 9 CPI 20 Bars per inch US Postnet Bar Code CPI 20 Bars per inch US Postnet Bar Code MethodConfiguring the PCL-II Emulation with Control Codes Standard Ascii Character Set Appendix a Index Bar Code Underlining PCL-II Upca Page Page 5525B/31/32 Line Matrix Printer