7.2. Inquire Command; Inquire Command ; Syntax - Page 271

Brother HL-5150D Command Reference Guide for Software Developers

Table of Contents

Technical Reference Guide
GLOSSARY
background image

CHAPTER 5 PJL - 62 

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> 

Detailed Information for Brother HL-5150D Command Reference Guide for Software Developers

Lists of information found in Brother HL-5150D Command Reference Guide for Software Developers - Page 271

  • 7.2.

FAQ (Frequently Asked Questions) for Brother HL-5150D Command Reference Guide for Software Developers - Page 271

  • Syntax @PJL INQUIRE [LPARM : personality ] variable [&lt;CR&gt;]&lt;LF&gt; Response Syntax @PJL INQUIRE [LPARM : personality] variable &lt;CR&gt;&lt;LF&gt; value &lt;CR&gt;&lt;LF&gt; &lt;FF&gt; If the variable is not supported by the printer, it returns the response in the following syntax : @PJL INQUIRE [LPARM : personality] variable &lt;CR&gt;&lt;LF&gt; "?

Related Documents for Brother HL-5150D Command Reference Guide for Software Developers