CHAPTER 4 HP-GL/2 - 9
4.
COMMAND SYNTAX
An HP-GL and HP-GL/2 command can consist of up to four items: a mnemonic, a parameter field, a
separator and a terminator.
4.1.
Mnemonic
The two-letter mnemonic is the name of the command and should help remind you of its function.
4.2.
Parameters
Some commands have parameters following the instruction mnemonic. Multiple parameters must have
separators between them. Parameters are shown in italics. Optional parameters are surrounded by square
brackets. Parameters that can be repeated are followed by "...".
Integer - integers are allowed in the range -2
30
and 2
30
- 1. Real numbers specified for a parameter that
should be an integer are rounded to the nearest integer.
Clamped integer - integers are allowed in the range -32768 and 32767. Parameters outside this range are
converted (clamped) to the nearest integer within the range, for example 40,000 will be clamped to 32767.
Non-integers are converted to the nearest integer.
Real number - real numbers whose integer part is in the range -2
30
to 2
30
- 1. Accuracy to at least 6
significant digits is guaranteed. If a number outside the range is specified the entire command is ignored.
The decimal point can be omitted when the number has no fractional part.
Clamped real number - real numbers whose integer part is in the range -32768 to 32767. Parameters
outside this range are converted (clamped) to the nearest real number within the range. The decimal point
can be omitted when the number has no fractional part.
Text parameters are referred to as labels and can consist of any sequence of characters.
4.3.
Separators
If an HP-GL/2 instruction accepts more than one parameter, you must put spaces or a comma between the
parameters to separate them.
4.4.
Terminator
Most commands are terminated implicitly by the first letter of the next instruction mnemonic. A semi-colon
may be used to explicitly terminate a command. However, the final command issued before quitting HP-
GL/2 mode must be terminated with a semi-colon. Since a terminator is almost always optional it is shown
surrounded by square brackets.
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 ...