Decimal Value - Star Micronics NX-10 User Manual

Star micronics printer user's manual
Table of Contents

Advertisement

39
more efficiently.
You have at your disposal a unique command
that lets you
choose any valid combination
of print modes and pitch. This is
the Master Print mode command.
It looks like this:
(ESC) "!" n
Here, the value of n defines the print style to be selected. The
value of n can range from 0 to 255, which is the range of values
that can be stored in one eight-bit byte. If you look at each bit in
this byte, you'll find that each one represents
a printing style
variation. Adding the binary values of the selected bits gives the
value of n for a particular
combination
of print styles.
Table 3-10 shows the decimal values of the bits in the Master
Print byte. To calculate the value n for a particular combination
of printing styles, just add the values of the features that you
want to combine.
Table 3-10
Values of mixing print styles for Master Print
1 Bit
1 Print stvle
Decimal value
-
1
1
Elite print
1
2
Proportional
print
2
3
Condensed mint
4
14
1 Emphasized
print
I
8
I
5
Boldface print
16
6
Expanded print
32
7
(Not used)
18
I'
'
Underline
128
1
For example,
if you want to select elite expanded
boldface
print, you would calculate the value of n like this:
Elite
1
Boldface
16
Expanded
32
n=
49
The command would look like this:
CHR$(27);"!";CHR$(49)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents