HP PCL/PJL reference - Printer Job Language Technical Reference Manual

EN Status Readback Commands 7-5
INQUIRE Command
The INQUIRE command is used to obtain the current value of a
specified PJL environment variable, including read-only variables.
Use the INQUIRE command to find out the setting for a particular PJL
feature, such as ORIENTATION.
Syntax:
@PJL INQUIRE [LPARM : personality |
~IPARM : port] variable [<CR>]<LF>
Response Syntax:
@PJL INQUIRE [LPARM:personality |
~IPARM:port] variable <CR><LF>
value <CR><LF>
<FF>
LPARM : personalityThis optional parameter is used to
inquire about printer language-specific environment variables.
For example, you can use this option to request the current
PCL symbol set stored in the PJL Current Environment.
PCL is a valid personality. Other personalities, such as
POSTSCRIPT, can be added as hardware options. Use the
@PJL INFO CONFIG command to request the personalities
installed in a particular printer.
IPARM : port — This optional parameter is used to set
port-specific variables. The HP LaserJet 4PJ is the only printer
which supports port-specific variables.
The IPARM : port option must be used when setting
port-specific variables. Valid values for port for the HP
LaserJet 4PJ printer are SERIAL and PARALLEL.
variable This parameter specifies the environment variable
you want. For example, the INQUIRE RET command requests
the current value of the Resolution Enhancement technology
feature. See Appendix A for a list of valid variables for each
printer. If you require a more detailed description of a
particular variable, see the “Environment Variables” section in
Chapter 6.