Brother HL-Series Technical Reference Manual page 322

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

Advertisement

Revision C 16/01/96
CP - Relative Character Movement
CP [ spaces [,lines]] [;]
spaces ; the number of text spaces the pen position is moved.
lines ; the number of text lines the pen position is moved.
• Use this command to re-position the pen. The command moves the pen the specified number of lines and
spaces corresponding to the currently selected font's pitch and line spacing. (For proportionally spaced
fonts the width of the space character is used to determine the distance moved horizontally). All movement
is relative to the current label printing direction.
• spaces is the number of spaces that the pen moves. A positive value of spaces moves the pen right from the
current pen location: a negative value moves it to the left.
• lines is the number of lines that the pen moves. A negative value offset moves the pen down from the
current pen location: a positive value moves it upwards.
• Values for spaces and lines are clamped real numbers.
• The command only moves the pen and does not draw lines, irrespective of whether the pen is currently up
or down.
• On completion of the command, the previous pen status (up or down) is restored.
• The height of text lines (the vertical distance that a line feed moves the pen position) is fixed for every font.
However, it can be adjusted using the ES instruction.
• If you omit all parameters, the pen position moves to the carriage return point and then down one line -
hence CP; is equivalent to a carriage return followed by a line feed.
10 '-Character Plot -
20 WIDTH "LPT1:", 255
30 LPRINT CHR$(27); "E";
40 LPRINT CHR$(27); "%0B";
50 LPRINT "IN;SP1;";
60 LPRINT "PA1000,5000;";
70 LPRINT "PD;PR2000,0;PU;";
80 LPRINT "CP-15,1;";
90 LPRINT "LBAbove the line"; CHR$(3);
100 LPRINT "CP-14,-2;";
110 LPRINT "LBBelow the line"; CHR$(3);
120 LPRINT CHR$(27); "%0A";
130 LPRINT CHR$(27); "E";
140 END
<Sample 55>
Chapter 8 "HP-GL2" 56

Advertisement

Table of Contents
loading

Table of Contents