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

9-16 PJL File System Commands EN
This PJL command creates the macros sub-directory under the pcl
directory.
Fourth Command
@PJL FSDOWNLOAD FORMAT:BINARY
~NAME ="0:\pcl\macros\a_macro" SIZE=29<CR><LF>
<ESC>*p900x1500YThis is the macro
~<ESC>%-12345X
This PJL command does several things. First, it specifies the
download format to be binary (FORMAT:BINARY). Second, it specifies
the macro's pathname on the file system (NAME = “0:\pcl\
macros\a_macro”). Third, it specifies the number of bytes to be
downloaded for this macro file (SIZE=29). Fourth, it contains the
binary data to be downloaded (<ESC>*p900x1500YThis is the
macro).
Fifth Command
~<ESC>%-12345X@PJL ENTER LANGUAGE=PCL <CR><LF>
This command explicitly enters the PCL language.
Sixth Command
<ESC>&f1Y
The Macro ID command sets the current macro ID to 1.
Seventh Command
<ESC>&n8Wa_macro
The Alphanumeric ID command associates the current macro ID to
the string ID which is a_macro. In this example, the string name must
be the same filename used with the FSDOWNLOAD command in the
fourth command sequence.