Command Syntax; Mnemonic; Parameters; Separators - Brother HL-1050 Technical Reference Manual

Laser printer
Hide thumbs Also See for HL-1050:
Table of Contents

Advertisement

4.

COMMAND SYNTAX

An HP-GL and HP-GL/2 command can consist of up to four items:
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.
separators between them.
square brackets.
• Integer - integers are allowed in the range -2
should be an integer are rounded to the nearest integer.
• Clamped integer - integers are allowed in the range -32768 and 32767.
converted (clamped) to the nearest integer within the range,
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.
significant digits is guaranteed.
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.
outside this range are converted (clamped) to the nearest real number within the range.
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.
may be used to explicitly terminate a command.
GL/2 mode must be terminated with a semi-colon.
surrounded by square brackets.
Parameters are shown in italics.
Parameters that can be repeated are followed by "...".
If a number outside the range is specified the entire command is ignored.
CHAPTER 4 HP-GL/2 - 9
a mnemonic, a parameter field, a
Multiple parameters must have
Optional parameters are surrounded by
and 2
- 1.
Real numbers specified for a parameter that
30
30
for example 40,000 will be clamped to 32767.
However,
the final command issued before quitting HP-
Since a terminator is almost always optional it is shown
Parameters outside this range are
Accuracy to at least 6
Parameters
The decimal point
A semi-colon
2/19/04

Advertisement

Table of Contents
loading

Table of Contents