Google Answers Logo
View Question
 
Q: bar codes ( Answered,   0 Comments )
Question  
Subject: bar codes
Category: Computers > Programming
Asked by: darrelp-ga
List Price: $20.00
Posted: 11 Mar 2003 04:07 PST
Expires: 10 Apr 2003 05:07 PDT
Question ID: 174580
I am using a DOS based program (Versaform XL) that allows the
following type of entries to control the font to be used on a
particular line of text. by choosing the beginning,then the ending
sequence I can turn controls on and off. Using this method, I need to
create a type 128  inch high bar code using a variety of printers
emulating an IBM dot matrix printer. I cannot seem to get the syntax
figured out, nor have I been able to find a table etc that explains
the appropriate syntax.

 Escape Sequences:
            Reset Esc Seq
          Initial Esc Seq 27\69
           Ending Esc Seq 27\70
          Esc Sequence #1 27\91\64\4\0\0\0\17\18
          Esc Sequence #2 27\91\64\4\0\0\0\33\16
          Esc Sequence #3 27\91\64\4\0\0\0\33\18
          Esc Sequence #4 27\91\64\4\0\0\0\1\17
          Esc Sequence #5 27\91\64\4\0\0\0\18\2
          Esc Sequence #6 27\91\64\4\0\0\0\33\17
          Esc Sequence #7 27\91\112\0\0
          Esc Sequence #8 27\91\102\6\0\186\0\0\56\4\0
          Esc Sequence #9 27\91\64\4\0\0\0\33\16
Answer  
Subject: Re: bar codes
Answered By: hlabadie-ga on 26 Mar 2003 21:58 PST
 
Looking at a table of IBM control codes for an IBM Proprinter XL24
emulation on an Okidata Microline 390/391 (for which I have a manual),
the code that you call "Initial Esc Seq 27\69" would begin Emphasized
printing, while the code that you call "Ending Esc Seq 27\70" would
end Emphasized printing. Entered in series as shown, they would cancel
one another. Obviously, the first sequence should be entered to begin
Emphasized printing, followed by the data to be printed in Emphasized
mode, and then the second sequence entered to cancel Emphasized mode
after the job has been printed. The other escape sequences beginning
27\91\64 all set double height printing with various character widths
and line spacings.


According to the Okidata manual, the last two numbers in those Escape
Sequences are designated n1 and n2, and are used to set Line
Spacing-Character Height (n1) and Character Width (n2). In the first
example, Esc Sequence #1 27\91\64\4\0\0\0\17\18, the 17 is n1 and sets
Single line spacing and Standard character height, and it should be
followed by a number (n2) to set character width (0 = current
character width [no change], 1 = standard character width, 2 = double
character width). The number 18 is an invalid option for n2. If 18 is
_substituted for_ 17 as n1, then the printer is set for Single line
spacing and Double character height. Again, this should be followed by
0,1, or 2 to set the character width (n2). Thus, there is a choice
between either 17 or 18, but 17 _and_ 18 are not valid, and the result
probably would be null.

From the table in the Microline manual:

Valid values for n1

0 = current line spacing and character height
1 = current line spacing and standard character height
2 = current line spacing and double character height
16 = single line spacing and current character height
17 = single line spacing and standard character height
18 = single line spacing and double character height
32 = double line spacing and current character height
33 = double line spacing and standard character height
34 = double line spacing and double character height

Valid values for n2

0 = current character width
1 = standard character width
2 = double character width

Therefore, the sequences

Esc Sequence #1 27\91\64\4\0\0\0\17\18 
Esc Sequence #2 27\91\64\4\0\0\0\33\16 
Esc Sequence #3 27\91\64\4\0\0\0\33\18 
Esc Sequence #4 27\91\64\4\0\0\0\1\17 
Esc Sequence #6 27\91\64\4\0\0\0\33\17 

are all invalid.

Esc Sequence #5 27\91\64\4\0\0\0\18\2 is valid, and would set the
printer for Single spacing, Double character height, Double character
width.


Other examples of valid sequences would be

Esc Sequence #1 27\91\64\4\0\0\0\17\1 Single line spacing, standard
character height, standard width

Esc Sequence #2 27\91\64\4\0\0\0\33\1 Double line spacing, standard
character height, standard character width

Esc Sequence #3 27\91\64\4\0\0\0\33\2 Double line spacing, standard
character height, Double character width


The sequence Esc Sequence #7 27\91\112\0\0 would appear to be used to
set line spacing in n/360th inch increments, where the value of n can
be between 0 and 255.

The sequence Esc Sequence #8 27\91\102\6\0\186\0\0\56\4\0 does not
appear to be a valid code, although 27\91\103 does put the printer in
high resolution graphics mode.

See:

Tandy LP 800 260-2890 IBM Control Codes
http://www.chequemate.com/support/Tandy%20LP%20800%20260-2890%20IBM%20Control%20Codes.htm

Command Lists
http://support2.epson.net/manuals/english/sidm/dlq_3500/REF_G/APSPE_5.HTM

(Includes this IBM Bar Code escape sequence.)
Barcode: 

  ESC [f, ESC [p 




SEARCH TERMS

://www.google.com/search?hl=en&lr=&ie=ISO-8859-1&q=IBM+Proprinter+control+codes

hlabadie-ga
Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy