
2009/06/29
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 -230 to 230 - 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.
Содержание HL-2600CN Series
Страница 4: ......
Страница 15: ...2009 06 29 CHAPTER 1 INTRODUCTION 1 CHAPTER 1 INTRODUCTION ...
Страница 20: ...2009 06 29 CHAPTER 1 INTRODUCTION 6 ...
Страница 21: ...7 17 2009 CHAPTER 2 PCL 1 CHAPTER 2 PCL PRINTER CONTROL LANGUAGE ...
Страница 129: ...2009 06 29 CHAPTER 3 PCL5C 1 CHAPTER 3 PCL5C ...
Страница 147: ...2009 06 29 CHAPTER 4 HP GL 2 1 CHAPTER 4 HP GL 2 GRAPHICS LANGUAGE ...
Страница 149: ...2009 06 29 CHAPTER 4 HP GL 2 3 7 6 Character Plot Instructions 38 7 6 1 Introduction 39 8 INDEX 52 ...
Страница 200: ...2009 06 29 CHAPTER 4 HP GL 2 54 ...
Страница 201: ...2009 06 29 CHAPTER 5 PJL 1 CHAPTER 5 PJL PRINTER JOB LANGUAGE ...
Страница 276: ...2009 06 29 CHAPTER 6 EPSON 1 CHAPTER 6 EPSON FX 850 ...
Страница 304: ...2009 06 29 CHAPTER 7 IBM PROPRINTER 1 CHAPTER 7 IBM PROPRINTER XL ...
Страница 325: ...2009 06 29 CHAPTER 7 IBM PROPRINTER 22 ...
Страница 326: ...2009 06 29 CHAPTER 8 BAR CODE CONTROL 1 CHAPTER 8 BAR CODE CONTROL ...
Страница 337: ...2009 06 29 CHAPTER 9 HP GL 1 CHAPTER 9 HP GL GRAPHICS LANGUAGE ...
Страница 364: ...2009 06 29 CHAPTER 9 HP GL 28 ...
Страница 365: ...2009 06 29 CARBON COPY FUNCTION 1 CHAPTER 10 CARBON COPY FUNCTION ...
Страница 373: ...2009 06 29 APPENDIX A COMPARISON LIST 1 APPENDIX A COMPARISON LIST ...
Страница 462: ...2009 06 29 APPENDIX C HBP MODE COMMANDS 1 APPENDIX C HBP MODE COMMANDS For HL 820 1020 1040 Only ...
Страница 475: ...2009 06 29 APPENDIX C HBP MODE COMMANDS 14 ...
Страница 485: ...2009 06 29 APPENDIX D REFERENCE LIST OF MX 2000 4000 5000 7000 SERIES UNIQUE COMMANDS 10 ...