CHAPTER 5 PJL - 64
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 User Default Settings** <CR><LF>
@PJL ECHO 20:30:00 02-20-1993<CR><LF>
@PJL DINQUIRE RET<CR><LF>
@PJL DINQUIRE PAPER<CR><LF>
@PJL DINQUIRE ORIENTATION<CR><LF>
<ESC>%-12345X
The printer may return, for example, the following response against the above
DINQUIRE
commands:
@PJL ECHO 20:30:00 02-20-1993 <CR><LF>
<FF>
@PJL DINQUIRE RET<CR><LF>
LIGHT<CR><LF>
<FF>
@PJL DINQUIRE PAPER<CR><LF>
LETTER<CR>LF>
<FF>
@PJL DINQUIRE ORIENTATION<CR><LF>
LANDSCAPE<CR><LF>
<FF>
Example 2 :
This example requests the PCL-specific settings.
<ESC>%-12345X@PJL <CR><LF>
@PJL COMMENT ***Inquiring PCL settings*** <CR><LF>
@PJL ECHO 20:33:05 02-20-1993 <CR><LF>
@PJL DINQUIRE LPARM:PCL FONTSOURCE <CR><LF>
@PJL DINQUIRE LPARM:PCL FONTNUMBER <CR><LF>
<ESC>%-12345X
The printer may return the following response for the above
DINQUIRE
commands :
@PJL ECHO 20:33:05 02-20-1993 <CR><LF>
<FF>
@PJL DINQUIRE LPARM : PCL FONTSOURCE <CR><LF>
I<CR><LF>
<FF>
@PJL DINQUIRE LPARM : PCL FONTNUMBER <CR><LF>
15<CR><LF>
<FF>
7.4.
ECHO Command
The
ECHO
command requests the printer to send back a specified message, in order to ensure that the
printer is ready for communication with the application and that the received answer from the printer is what
the application requested. The application must send this command before starting PJL communication.
After sending the
ECHO
command, the application must ignore any status information from the printer
before it receives the response from this command, because not receiving the response from this command
means that the printer is still processing the previous job and its status information is for the previous job
environment. When the application receives the correct response for the requested
ECHO
command, the
printer is now ready for the application and you can be sure that the status information following is for the
requested command by the application.
Syntax
@PJL ECHO [<
words
>] [<CR>]<LF>