Command syntax, Mnemonic, Parameters – Brother HL-2170W User Manual
Page 160: Separators, Terminator
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.
- HL-1670N HL-6050D HL 5250DN HL-5070N HL-2460 HL-6050DN HL-2150N HL 2700CN HL-2130 HL-S7000DN HL-3040CN HL 1650 HL-6050 HL-5240 HL-5240L HL-1470N HL 3070CW HL 5170DN HL-3450CN HL-3140CW HL 5470DW HL-5140 HL-5440D HL-7050 HL-2240 HL-5040 HL-4070CDW HL-1870N HL-1110 HL-1850 HL 4150CDN HL-8050N HL 5450DN HL 5370DW HL-5050 HL-2140 HL 1270N HL-2600CN HL-6180DW HL-5350DN HL-4050CDN HL-2070N HL-3260N HL-5150D HL-5280DW HL-3170CDW HL-4570CDW HL-3150CDW HL 4040CN HL-4140CN HL 2240D HL 2270DW HL-1250 HL-7050N HL 5340D HL-2250DN HL-1450 HL-L9200CDWT HL-1112 HL-5270DN HL-5450DNT HL-L8250CDN HL 4570CDWT HL-5380DN HL-6180DWT HL-L8350CDW HL-4040CDN HL-L8350CDWT HL-2230 HL-5470DWT HL 2220 HL-1110E HL-1112E