Specifying the Commands
Printer Language Switch Command (RP-GL/2)
You can switch the Printer Language of the machine by using the Printer Language switch command. For RP-GL/2, enter this command in the following format immediately before or after the name of the RP-GL/2 or CALS file.
Format in ESC sequence:
ESC DC2 ! {p} @ CODE-ID ESC SP
<Example: To switch to RP-GL/2>
ESC DC2 ! -1 @ GL2 ESC SP
Format in hexadecimal code:
1B 12 21 {p} 40 CODE-ID 1B 20
<Example: To switch to RP-GL/2>
1B 12 21 2D 31 40 47 4C 32 1B 20
Parameter | Value | Description |
|---|---|---|
p | -1 | Switches to the Printer Language specified by CODE-ID |
CODE-ID | RGL GL2 RTF RPS | The specified values and the corresponding Printer Languages are as follows:
|
Printing Option Specification Command (RP-GL/2)
You can specify printing options by using the printing option specification command. Enter the specification command in the following format immediately before or after the name of an HP-GL or an HP-GL/2 file.
Switch the Printer Language of the machine to RP-GL/2 before specifying this command.
Format in ESC sequence:
ESC DC2 ? z {, option { = value}} {, option { = value}} ... {, option { = value}} ESC SP
ESC DC2 ? z, emlqty=10 ESC SP
Format in hexadecimal code:
1B 12 3F 7A {2C option {3D value}} {2C option {3D value}} ... {2C option {3D value}} 1B 20
1B 12 3F 7A 2C 65 6D 6C 71 74 79 3D 31 30 1B 20
Parameter | Value | Description |
|---|---|---|
option | Text string for the printing option name | Specifies a printing option |
option | When the string is omitted | The value that corresponds to this parameter is ignored. |
When you specify an unsupported value, the value corresponding to this parameter is ignored.
You can sequentially specify the number of pairs for this parameter and its corresponding value. However, if the entered command contains more than one pair specifying the same parameter and value, only the last specified pair is applied.
Parameter | Value | Description |
|---|---|---|
value | Text string of the value specified for the printing option | Specifies a printing option |
When you specify an unsupported value, the option corresponding to this parameter is ignored.

The maximum length of the character strings that can be entered is 1,023 bytes.
The entered command remains in effect for all printing data received, until:
The Printer Language is switched.
A new printing option specification command is received.
List of Printing Option Specification Commands
You can specify printing options by using the printing option specification command. The printing option specification commands that you can specify to use the optional functions are as follows:
Printing option name | Value | Description |
|---|---|---|
emlqty | sort quantity (1-999) | Specifies the sort quantity |
emlimagedirection | reverse, normal | Rotates images on the paper by 180 degrees |
emlusercode | user code | Specifies a user code |