Use the ECHO command to synchronize status so that you
know the status you are receiving is the requested status.
To do this, send an ECHO command to the printer, and
then discard the incoming status messages until your
message is echoed back. Eliminate all data received from
the printer up to the echoed response string. For the
remainder of your print job, you can be sure that all status
messages you receive after your echoed message were
requested by your application. If you turned on USTATUS,
you may receive unsolicited status information at any time.
Example: Using the
ECHO Command
This example sends the
Testing 68394 10:57:06.4
message using the ECHO command. After the application
receives the
Testing 68394
response, all succeeding
solicited messages received during the current job are those
requested by the current application.
<ESC>%-12345X@PJL <CR><LF>
@PJL COMMENT Using the ECHO command <CR><LF>
@PJL ECHO Testing 68394 10:57:06.4 <CR><LF>
<ESC>%-12345X
A sample HP LaserJet 4 printer response for this example
is shown below. Other PJL printers may have different
responses.
@PJL ECHO Testing 68394 10:57:06.4<CR><LF>
<FF>
Related Commands:
INQUIRE, DINQUIRE, INFO, SET, DEFAULT, USTATUS
Status Readback Commands 7-15
Содержание 4600 - Color LaserJet Laser Printer
Страница 18: ...1 6 Introduction to PJL ...
Страница 36: ...3 8 Using PJL ...
Страница 46: ...4 10 Kernel Commands ...
Страница 66: ...Figure 6 1 How Environments Affect the Print Job 6 4 Environment Commands ...
Страница 108: ...6 46 Environment Commands ...
Страница 180: ...9 18 PJL File System Commands ...
Страница 212: ...10 32 Programming Tips ...
Страница 262: ...B 6 PJL Command Summary ...
Страница 302: ...Glossary 10 ...