Brother HL-Series Technical Reference Manual page 290

Hide thumbs Also See for HL-Series:
Table of Contents

Advertisement

Revision C 16/01/96
new number into base 64 or base 32 according to your system and encode each base 64 or base 32 digit as
the corresponding ASCII character.
• To encode a real number proceed as follows. Multiply the number of decimal places in your coordinate's
data by 3.33 and round the result up to the next highest integer (for example round 6.66 up to 7). This
gives the number of binary bits needed to represent the number's fractional part - the value that you will
supply with the '>' flag. Call this number n. Now multiply the number you are encoding by 2
number to the nearest integer and then follow the procedure described above for encoding an integer.
• Transmit each number to the printer least significant digits first. Terminate each number with the most
significant digit. This must be specified from a different ASCII range from the preceding digits in the
number. In base 64, non-terminating digits are represented by the numbers 63-126 and terminating digits
by the numbers 191-254. In base 32, non-terminating digits are represented by the numbers 63-94 and
terminating digits by the numbers 95-126. Hence if using a base 32 number whose least significant digit is
14, and whose most significant digit is 5, encode 14 as 77 (63+14) and 5 as 100 (95+5).
• In symbol mode the PE command draws the specified symbol at each specified point.
• In polygon mode the points specified within the PE command are not plotted. Instead they are stored in the
polygon buffer and used when a FP (Fill Polygon) or EP (Edge Polygon) command is used.
• The PE command with no parameters simply updates the carriage return point.
CI - Circle Plot
CI r (, qd )[;]
r ; Radius of circle ( in current units )
qd ; Chord angle ( in degrees )
• The command plots a circle with the current position as the centre, with a radius r and chord angle qd.
• After plotting, the cursor returns to the centre of the circle.
• Plotting takes place irrespective of whether the pen is up or down.
• Valid values for r are specified in the current unit.
• Valid values for qd are clamped real numbers in the range 0.5° to 180°. The default value is 5°.
• To avoid placing an unwanted dot at the centre of the circle precede the CI command with a PU command.
10 '-- Circle --
20 WIDTH "LPT1:",255
30 LPRINT CHR$(27);"E";
40 LPRINT CHR$(27);"%0B";
50 LPRINT "IN;SP1;";
60 LPRINT "SC-75,75,-75,75,1;"
70 LPRINT "PA0,0;LT;CI5;LT0;CI-12;"
80 LPRINT "LT1;CI19;LT2;CI-26;"
90 LPRINT "LT3;CI33;LT4;CI-40;"
100 LPRINT "LT5;CI47;LT6;CI54;"
110 LPRINT CHR$(27);"%0A";
120 LPRINT CHR$(27); "E";
130 END
<Sample 30>
Non-terminator
Base 64
63-126
Base 32
63-94
Chapter 8 "HP-GL2" 24
Terminator
191-254
95-126
n
. Round this

Advertisement

Table of Contents
loading

Table of Contents