HP PCL/PJL reference - Printer Job Language Technical Reference Manual
EN PJL File System Commands 9-15
File System Example
The following is a sequence of commands that can be sent to any
printer with flash memory or a hard disk. The example downloads and
calls 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>&n8W♣a_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
printer's file system.
Third Command
@PJL FSMKDIR NAME ="0:\pcl\macros" <CR><LF>