82162 printer escape sequences


hi all,

i am trying to print bar code and special characters (setup is hp 71b/82162) but i am not successful. any help is much appreciated!

problem 1: the printer does not recognize the escape sequence for bar code printing. i tried

PRINT CHR$(27)&"z1B45"

but instead of bar code, "1B45" is printed.

problem 2: to be able to print special characters like "ö" i need to switch to 8-bit mode. but

PRINT CHRS(27)&"1"

(as suggested by the german printer manual) does not change anything. i am not able to print special characters. i also checked the status of the printer (SPOLL), which ramained unchanged.

what am i missing here?

thank you for your help!



problems solved!

i just checked the english manual from the museum CD and noticed that there are several typos in the german issue. it omits "*" in the escape sequence for bar code printing and instead of "1" there should be CHAR$(124) in the escape sequence for the 8-bit mode. tss...



According to my printed English manual the barcode sequence is ESC*znnBx1x2...xnn I entered the sequence PRINT CHR$(27)&"*z01B1B45" prints a barcode and the B45 likely because nn=1. The sequence for 8 bit more is ESC| where | is the vertical bar character CHR$(124) Print CHR$(27)&CHR$(124)&CHR$(24) prints an o with and umlaut.

Barcode printing in 8 bit mode require a different sequence PRINT CHR$(210)&CHR$(128)&"1" prints the bacode for 1.

Edited: 8 July 2012, 10:03 a.m.



seems like we were typing at the same time. however, your comment was helpful for printing barcode in 8-bit mode, as i was a bit confused by the status messages i got using SPOLL after PRINT CHR$(210). anyway, everything works fine now!



Possibly Related Threads…
Thread Author Replies Views Last Post
  HP PRIME: interlinked sequences? Alasdair McAndrew 4 1,851 11-23-2013, 10:39 PM
Last Post: Alasdair McAndrew
  HP nut CPU and illegal instruction sequences Håkan Thörngren 9 2,604 01-05-2010, 12:50 PM
Last Post: Eric Smith
  Topcats, HP82143A and HP82161/82162 Battery Pack Vieira, Luiz C. (Brazil) 7 2,415 10-16-2009, 02:19 PM
Last Post: Geoff Quickfall
  Thermal Printer Paper for 82143A Printer? Gordon Hamachi 1 1,106 02-03-2008, 03:05 PM
Last Post: Randy
  Escape the NCEES grip via Aero? ECL 2 1,104 11-26-2005, 10:50 AM
Last Post: Bob
  Escape sequences:Thinkjet... Jim Rudnick 1 943 02-24-2004, 03:19 PM
Last Post: Mads Daugbjerg
  Thermal Printer 82143 -Problems to operate the printer- Martin Wahlich 4 1,696 12-07-2002, 04:01 PM
Last Post: Martin Wahlich
  Printer Paper for HP41 Thermal Printer Y. Samuel Arai 5 1,684 04-14-2001, 10:22 PM
Last Post: Felipe Hernandez
  Chargers for the 82162 thermal printer and the HPIL- rs232c Opotente 1 918 01-11-2001, 07:21 PM
Last Post: Steve (Australia)

Forum Jump: