Homelite HL-1050 Printer User Manual


 
10/10/03
CHAPTER 5 PJL - 40
7.2. Inquire Command
The INQUIRE command is used in order to get the information of the current value of a specified variable
in the PJL DEFAULT setting. (PJL environment). It is possible to get the information for variables the
value of which PJL cannot change (Read-only).
This INQUIRE command can request only one variable at a time. If you would like to get the information
from multiple variables, send multiple
INQUIRE
commands or the
PJL
INFO VARIABLES
command
which responds with all the variables in the PJL Default settings (PJL Default Environment).
Syntax
@PJL INQUIRE [LPARM : personality] variable [<CR>]<LF>
Response Syntax
@PJL INQUIRE [LPARM : personality] variable <CR><LF>
value <CR><LF>
<FF>
If the variable is not supported by the printer, it returns the response in the following syntax :
@PJL INQUIRE [LPARM : personality] variable <CR><LF>
"?" <CR><LF>
<FF>
LPARM : personality
This optional parameter must be used when requesting the information of printer language-specific variables,
such as the font number in the PJL DEFAULT setting.
variable : variable
This is a parameter which specifies which variable you would like to get the information about among the
PJL Default settings (PJL Current Environment). The variables which can be used in this command are
listed in Appendix A. You can also check by sending the @PJL INFO VARIABLES command to the
printer.
value
This is the value of the parameter requested by the variable parameter.
Examples
Example 1 :
This example requests the current print environment settings for RET, PAPER, and ORIENTATION :
<ESC>%-12345X@PJL <CR><LF>
@PJL COMMENT ***Requesting*** <CR><LF>
@PJL COMMENT about PJL Default Settings** <CR><LF>
@PJL ECHO 19:15:00 02-20-1993 <CR><LF>
@PJL INQUIRE RET <CR><LF>
@PJL INQUIRE PAPER <CR><LF>
@PJL INQUIRE ORIENTATION <CR><LF>
<ESC>%-12345X
The printer may return, for example, the following response against the above INQUIRE commands :
@PJL ECHO 19:15:00 02-20-1993 <CR><LF>
<FF>
@PJL INQUIRE RET<CR><LF>
LIGHT<CR><LF>
<FF>
@PJL INQUIRE PAPER<CR><LF>
LETTER<CR><LF>
<FF>
@PJL INQUIRE ORIENTATION<CR><LF>
PORTRAIT<CR><LF>
<FF>