HP d640 HP D640 High-Volume Printer - Technical Reference Manual, C5630-90030 - Page 54

Example 1, Storing a Macro on Disk and Using it in a Print Job

Page 54 highlights

Example 1: Storing a Macro on Disk and Using it in a Print Job Step 1 Write the macro to the hard disk. For example: %-12345X@PJL JOB NAME = "Simple Macro" %-12345X@PJL FSDOWNLOAD FORMAT:BINARY SIZE=30→ NAME = "C:\PCL5\USER\Macro" &f0XThis is a test line.&f1X%-12345X→ %-12345X@PJL EOJ NAME = "Simple Macro" Step 2 Use the macro in a print job. For example: %-12345X@PJL JOB NAME = "Use Simple Macro" %-12345X@PJL ENTER LANGUAGE = PCL E&f95Y&n19Wc:\PCL5\USER\Macro→ &f9XCall the macro:&f95y3X:After the macro→ E → %-12345X@PJL EOJ NAME = "Use Simple Macro" The printed result will be: Call the macro:This is a test line.:After the macro Step 3 Delete the macro from the disk. For example: %-12345X@PJL JOB NAME = "Cleanup" %-12345X@PJL FSDELETE→ NAME = "c:\PCL5\USER\Macro" %-12345X@PJL EOJ NAME = "Cleanup" 48 Chapter 4: Using the Printer's Hard Disk

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122

48
Chapter 4: Using the Printer’s Hard Disk
Example 1:
Storing a Macro on Disk and Using it in a Print Job
Step 1
Write the macro to the hard disk. For example:
<ESC>%-12345X@PJL
JOB
NAME = "Simple Macro"<LF>
<ESC>%-12345X@PJL
FSDOWNLOAD
FORMAT:BINARY
SIZE=30
NAME = "C:\PCL5\USER\Macro"<LF>
<ESC>&f0XThis is a test line.<ESC>&f1X<ESC>%-12345X
<ESC>%-12345X@PJL
EOJ
NAME = "Simple Macro"<LF>
Step 2
Use the macro in a print job. For example:
<ESC>%-12345X@PJL
JOB
NAME = "Use Simple Macro"<LF>
<ESC>%-12345X@PJL
ENTER
LANGUAGE = PCL<LF>
<ESC>E<ESC>&f95Y<ESC>&n19W<0x04>c:\PCL5\USER\Macro
<ESC>&f9XCall
the macro:<ESC>&f95y3X:After the macro
<ESC>E
<ESC>%-12345X@PJL
EOJ
NAME = "Use Simple Macro"<LF>
The printed result will be:
Call the macro:This is a test line.:After the macro
Step 3
Delete the macro from the disk. For example:
<ESC>%-12345X@PJL
JOB
NAME = "Cleanup"<LF>
<ESC>%-12345X@PJL
FSDELETE
NAME = "c:\PCL5\USER\Macro"<LF>
<ESC>%-12345X@PJL
EOJ
NAME = "Cleanup"<LF>