HP PCL/PJL reference - Printer Job Language Technical Reference Manual
7-12 Status Readback Commands EN
Comments:
If your application has status readback capability, you can request the 
default setting of any valid environment variable. The returned value 
indicates the User Default Environment value for the feature. Since 
the DINQUIRE command returns only the value for one feature, you 
must send multiple DINQUIRE commands for data about more than 
one feature. 
If the printer does not support the variable, the response is:
@PJL DINQUIRE [LPARM:personality | IPARM:port] 
~variable <CR><LF>
"?"<CR><LF>
<FF> 
If a printer language-specific variable is not available because that 
printer language is not installed or is invalid, or if a port-specific 
variable is not available because that port is not supported, the 
command will return an appropriate error code if USTATUS 
DEVICE=VERBOSE is enabled.
Note The LPARM : personality option must be used when requesting 
printer language-specific information. 
The IPARM : port option must be used when requesting port-specific 
information.
Example: Using DINQUIRE to Request Feature 
Settings
This example requests the default settings for resolution and 
personality. The printer returns values of 600 and AUTO.
<ESC>%-12345X@PJL <CR><LF>
@PJL COMMENT Inquiring Default Settings 
~<CR><LF>
@PJL ECHO 08:10:33.7 04-17-93 <CR><LF>
@PJL DINQUIRE RESOLUTION <CR><LF>
@PJL DINQUIRE PERSONALITY <CR><LF>
<ESC>%-12345X
For the HP LaserJet 4 printer, a sample response for this example is 
as follows. Responses from other PJL printers may vary.










