• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

PCL5 to PCL6 Escape code changes

Bharath kumar

Junior Member
Hello...
My cobol code that prints a signature on HP PCL5 printer has to be changed in such a way that it should print now on PCL6 printer. Vendor says they designed the signature box in the same manner as did for PCL5. But we are still not able to print the signature.

Existing code for PCL5:
03 PRINTLINE
05 ESC-12 PIC X(02) VALUE '|`'
05 ESC-34 PIC X(02) VALUE '1B'
05 ESC-5 PIC X(01) VALUE '$'
05 ESC-CHAR PIC X(03) VALUE '(0Y'.
05 ESC-67 PIC X(02) VALUE '|`'
05 ESC-89 PIC X(02) VALUE '1B'
05 ESC-10 PIC X(01) VALUE '$'
05 PRINT-SIGN PIC X(23) VALUE
'(s0p 1.18h61.v0s0b220T '.

We tried passing escapse characters as EDCDIC and Hexadecimals but it didnt work.

Can someone please advise

- Bharath
 
My understanding is that PCL6 is downward compatible with PCL5. I have some dealings with mainframe print drivers (Algol, not Cobol) and we did not need to make any changes when qualifying newer HP PCL6 printers.

Is it possible that you need to send a specific control sequence to put the printer into PCL mode? I think those HP printers speak multiple PDLs.

Art
 
Back
Top