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

2-4 PJL Command Syntax and Format EN
Format of PJL Commands
All PJL command lines follow one of the following four formats. Each
format defines how commands using that format are structured.
Format #1
<ESC>%–12345X
The only command that uses this format is the Universal Exit
Language (UEL) command.
Format #2
@PJL [<CR>]<LF>
This format allows a PJL line with no command, and is used to add
clarity to PJL command listings. You can use one or more of these
commands to visually break up several lines of PJL commands.
Format #3
@PJL command [<words>] [<CR>]<LF>
The COMMENT and ECHO commands currently are the only PJL
commands using format number 3.
Format #4
@PJL command [command modifier : value]
~ [option name [= value]] [<CR>]<LF>
This format is used for all of the other PJL commands and is
described in more detail below.
command — command is one of the assigned PJL command names,
such as ENTER, RDYMSG, or RESET.
[command modifier : value] — The command modifier enables the
user to specify what is effected by the command. For example, with
the command modifier LPARM you can specify language-specific
variables. A PJL command with a command modifier of LPARM : PCL
only affects PCL-specific settings. A PJL command can contain only
one command modifier. For example, in the command: @PJL SET