CHAPTER 4 HP-GL/2 - 44
DT - Define label terminator
DT [
c
[,
m
]] [;]
c
: Character
m
: mode
This command allows you to specify the character that terminates strings printed with the LB instruction.
The character immediately following DT is taken to be the terminator. Hence, do not put a space between
the DT and your chosen character. If you do, space will be interpreted as the terminator in all subsequent
LB commands.
m
, the mode, determines whether the terminating character is printed as part of the label or not. If m = 0
the character is printed ; if m = 1 it is not.
If you do not specify a value for m the terminating character is not printed.
If you leave out the character parameter the default character ETX (ASCII 3 ) is used as the terminator.
This setting is effective until the another DT is invoked or IN or DF is performed.
10 REM - Define Label Terminator -
20 WIDTH "LPT:", 255
30 LPRINT CHR$(27); "E";
40 LPRINT CHR$(27); "%0B";
50 LPRINT "IN;SP2;";
60 LPRINT "IN;SP2;SC0,5000,0,5000;"
70 LPRINT "PA0,4500;LBDefault control character ETX"; CHR$(13);CHR$(3);
80 LPRINT "LBterminates by performing end-"; CHR$(13);CHR$(3);
90 LPRINT "LBof-text function.";CHR$(3);
100 LPRINT "PA0,3500;DT@;LBPrinting characters terminate,"; CHR$(13);
"@";
110 LPRINT "LBbut are also printed.@";
120 LPRINT "PA0,3000;DT"; CHR$(7); "LBcontrol characters terminate";
CHR$(13);chr(7);
130 LPRINT "LBand perform their function."; CHR$(7)
140 LPRINT CHR$(27); "%01";
150 LPRINT CHR$(27); "E";
160 END
<Sample 52>
LO - Label origin
LO [
p
] [;]
This instruction allows you to position labels in different ways relative to the current pen location.
You can centre, left justify or right justify labels relative to the current pen location and print them on,
above or below the current location.
You can combine an offset distance, equal to 25% of the current font's point size, with any of the above
origin positions.
p
must either be in the range 1 - 9, 11 - 10 and 21. The label origin position specified by each
p
parameter
value is shown below. 21 sets the label origin to the same one in PCL.
P=1 P=4 P=7
P=2 P=5 P=8
P=3 P=6 P=9
P=11 P=14 P=17
P=12 P=15 P=18
P=13 P=16 P=19
Summary of Contents for HL-4140CN
Page 4: ......
Page 15: ...CHAPTER 1 INTRODUCTION 1 CHAPTER 1 INTRODUCTION ...
Page 20: ...CHAPTER 2 PCL 1 CHAPTER 2 PCL PRINTER CONTROL LANGUAGE ...
Page 137: ...CHAPTER 3 PCL5C 1 CHAPTER 3 PCL5C ...
Page 155: ...CHAPTER 4 HP GL 2 1 CHAPTER 4 HP GL 2 GRAPHICS LANGUAGE ...
Page 208: ...CHAPTER 5 PJL 1 CHAPTER 5 PJL PRINTER JOB LANGUAGE ...
Page 285: ...CHAPTER 6 EPSON 1 CHAPTER 6 EPSON FX 850 ...
Page 313: ...CHAPTER 7 IBM PROPRINTER 1 CHAPTER 7 IBM PROPRINTER XL ...
Page 334: ...CHAPTER 8 BAR CODE CONTROL 1 CHAPTER 8 BAR CODE CONTROL ...
Page 346: ...CHAPTER 9 HP GL 1 CHAPTER 9 HP GL GRAPHICS LANGUAGE ...
Page 373: ...CHAPTER 10 CARBON COPY FUNCTION 1 CHAPTER 10 CARBON COPY FUNCTION ...
Page 383: ...APPENDIX A COMPARISON LIST 1 APPENDIX A COMPARISON LIST ...
Page 490: ...APPENDIX C HBP MODE COMMANDS 1 APPENDIX C HBP MODE COMMANDS For HL 820 1020 1040 Only ...