HP PCL/PJL reference - Printer Job Language Technical Reference Manual
EN Device Attendance Commands 8-7
STMSG Command
The STMSG command prompts the printer to display the specified
message, go offline, and return a status message indicating which
key the operator pressed to return the printer online. Use this
command to display a customized message, to halt printing until the
operator presses the On Line, Continue, or Reset key, and to take a
different action depending on which key the user presses.
Syntax:
@PJL STMSG DISPLAY = "message" [<CR>]<LF>
Return Syntax:
@PJL STMSG DISPLAY="message" <CR><LF>
key <CR><LF>
<FF>
Parameters:
• DISPLAY = "message" — The variable message can be any
combination of printable characters (except quotation marks,
character 34) and spaces or horizontal tab characters, with a
limit of 1 line of 16 characters (see comments below). The
message variable is a string and must be enclosed in double
quotes as shown in the command syntax.
• key — This variable is returned with the status response after
the operator presses one of three control panel keys. The key
variable has a value of either ONLINE, RESET, JOBCANCEL
or CONTINUE, depending on which key the operator presses
to return the printer online.
Note For HP LaserJet 4PJ, 4V, 4MV, 5Si, 5SiMx, 5Si Mopier printers, if the
LANG variable is set to Japanese, messages are displayed using the
JIS X0201-76 character set.
Parameter Functional Range Default
DISPLAY = "message" Roman-8 characters 33 and
35 – 255, <SP>,<HT>
N/A
key ONLINE, RESET,
CONTINUE, or
JOBCANCEL
N/A