Status category, Variables category – Brother HL-2170W User Manual

Page 277

Advertising
background image

CHAPTER 5 PJL - 73

7.5.4.

STATUS category

The application can use the @PJL INFO STATUS command to check the printer on-line/off-line status, the
current message on the LCD and a status code. The ONLINE=TRUE indicates the printer is online, while
the ONLINE=FALSE shows it is off-line. Refer to the list of the PJL Status Codes in the Appendix for the
meanings of the returned status codes.

Example

The application sends the following command to the printer :

<ESC>%-12345X@PJL<CR><LF>
@PJL COMMENT the INFO STATUS command follows<CR><LF>
@PJL ECHO This is a sample 2-28-1993 19:10:00<CR><LF>
@PJL INFO STATUS<CR><LF>
<ESC>%-12345X

The printer sends back the answer for the above command when BR-Script mode and letter sized paper are
selected and it is in idle status:

@PJL ECHO This is a sample 2-28-1993 19:10:00<CR><LF>
<FF>
@PJL INFO STATUS<CR><LF>
CODE=10001<CR><LF>
DISPLAY="00 IDLE 001P LT"<CR><LF>
ONLINE=TRUE<CR><LF>
<FF>

7.5.5.

VARIABLES category

The application can send the @PJL INFO VARIABLES command to get a list of possible variables for
printer environment settings, possible language-specific variables, the current settings for both and the
possible values or range for those variables. Refer to the "Environment Variables" in Chapter 6 for more
information about the variables for the environment settings.

The language-specific variables returned from the printer depend on the current environment and are
indicated with LPARM: personality.

The value and options for the FONTSOURCE variable depend on the installed font sources such as
cartridge, downloaded permanent soft fonts.

The range of fonts listed for FONTNUMBER variable is only for the current font source. The upper limit
value of the range varies according to the number of fonts in the current font source.

Example

The application sends the following command to the printer :

<ESC>%-12345X@PJL <CR><LF>
@PJL COMMENT the INFO VARIABLES command <CR><LF>
@PJL ECHO This is a sample 2-28-1993 19:35:00 <CR><LF>
@PJL INFO VARIABLES <CR><LF>
<ESC>%-12345X

The printer may send back the answer for the above command :

@PJL ECHO This is a sample 2-28-1993 19:35:00 <CR><LF>
<FF>
@PJL INFO VARIABLES<CR><LF>
COPIES=3 [2 RANGE]<CR><LF>
1<CR><LF>
999<CR><LF>
PAPER=LETTER [9 ENUMERATED]<CR><LF>
LETTER<CR><LF>
LEGAL<CR><LF>
A4<CR><LF>
EXECUTIVE<CR><LF>
MONARCH<CR><LF>
COM10<CR><LF>

Advertising