Printer Job Language - Technical Reference Manual

File System
Example
The following is a sequence of commands that can be sent
to HP LaserJet 5, 5M, 5Si, 5Si MX, and 5Si Mopier printers
to download and call a macro from the flash memory or
hard disk. See the sections following this example for a
description of each command.
<ESC>%-12345X
~@PJL FSMKDIR NAME =“0:\pcl” <CR><LF>
@PJL FSMKDIR NAME =“0:\pcl\macros” <CR><LF>
@PJL FSDOWNLOAD FORMAT:BINARY
~NAME =“0:\pcl\macros\a_macro” SIZE=29<CR><LF>
<ESC>*p900x1500YThis is the macro
~<ESC>%-12345X
~<ESC>%-12345X@PJL ENTER LANGUAGE=PCL <CR><LF>
<ESC>&f1Y
<ESC>&n8Wa_macro
<ESC>&f4X
<ESC>E
<ESC>%-12345X
~@PJL DEFAULT DISKLOCK = ON <CR><LF>
Note The ~ symbol indicates that this text string is part of the
preceding line. That is, there should be no carriage return
or line feed control codes at the end of the preceding line.
First Command <ESC>%-12345X
This PJL command causes the printer to exit the active
printer language and give control to PJL.
Second Command ~@PJL FSMKDIR NAME =“0:\pcl” <CR><LF>
This PJL command creates the pcl directory on volume 0: of
the printers file system.
Third Command @PJL FSMKDIR NAME =“0:\pcl\macros” <CR><LF>
9-14 PJL File System Commands