HP PCL/PJL reference - Printer Job Language Technical Reference Manual

EN Status Readback Commands 7-23
PAGECOUNT Category
The INFO PAGECOUNT returns the number of pages printed by the
current print engine. This returned number is an indication of printer
usage.
Example: Using the INFO PAGECOUNT Command
<ESC>%-12345X@PJL <CR><LF>
@PJL COMMENT Using PJL INFO PAGECOUNT <CR><LF>
@PJL ECHO 06:53:29.3 1-25-93 <CR><LF>
@PJL INFO PAGECOUNT <CR><LF>
<ESC>%-12345X
A sample HP LaserJet 4ML printer response for this example is
shown here. Some printers do not return the label “PAGECOUNT=” in
front of the page count.
@PJL INFO PAGECOUNT<CR><LF>
PAGECOUNT=183933<CR><LF>
<FF>