Intermec PF4i Intermec Printer Language (IPL) Developer's Guide (old) - Page 77

Hex Data Commands in Example

Page 77 highlights

Chapter 4 - Advanced Printer Programming Hex Data Commands in Example Data 1B 67 30 21 80 43 C2 Command g0 0x21 80 43 C2 27 90 A8 D5 90 22 0x27 90 A8 D5 90 0x22 26 84 96 22 22 26 8C 84 22 24 82 25 88 22 21 93 43 C2 25 43 C2 28 0x26 84 96 0x22 0x22 0x26 8D 84 0x22 0x24 82 0x25 88 0x22 0x21 93 43 C2 0x25 43 C2 0x28 Description Enter Direct Graphics mode Change origin 80 - 80 (LO) = 0x00 -> X0 43 - 40 (HI) = 0x03 C2 - 80 (LO) = 0x42 (0x03 ∗ 0x80) + 0x42 = 1C2 -> Y450 Raw bitmap data follows, starts at Y0 90 - 80 (LO) = 0x10 -> 1 dot at Y4 A8 - 80 (LO) = 0x28 -> 2 dots at Y10 and Y12 D5 - 80 (LO) = 0x45 -> 3 dots at Y14, Y17, and Y20 90 - 80 (LO) = 0x10 -> 1 dot at Y25 End of line Transition white 84 - 80 (LO) = 4 white 96 - 80 (LO) = 22 black End of line End of line Transition white 8D - 80 (LO) = 13 white 84 - 80 (LO) = 4 black End of line Repeat last line 82 - 80 (LO) = 2 times Transition black 89 - 80 (LO) = 9 black End of line Change origin 93 - 80 (LO) = 0x13 -> X19 43 - 40 (HI) = 0x03 C2 - 80 (LO) = 0x42 (0x03 ∗ 0x80) + 0x42 = 1C2 -> Y450 Transition black 43 - 40 (HI) = 0x03 C2 - 80 (LO) = 0x42 (0x03 ∗ 0x80) + 0x42 = 1C2 -> Y450 End of bitmap Intermec Printer Language (IPL) Developer's Guide 67

  • 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

Chapter 4 — Advanced Printer Programming
Intermec Printer Language (IPL) Developer’s Guide
67
Hex Data Commands in Example
Data
Command
Description
1B
67
30
<ESC>g0
Enter Direct Graphics mode
21
80
43
C2
0x21
80
43 C2
Change origin
80 - 80 (LO) = 0x00 -> X0
43 - 40 (HI) = 0x03
C2 - 80 (LO) = 0x42
(0x03
0x80) + 0x42 = 1C2 ->
Y450
27
90
A8
D5
90
22
0x27
90
A8
D5
90
0x22
Raw bitmap data follows,
starts at Y0
90 - 80 (LO) = 0x10 -> 1 dot
at Y4
A8 - 80 (LO) = 0x28 -> 2 dots
at Y10 and Y12
D5 - 80 (LO) = 0x45 -> 3 dots
at Y14, Y17, and Y20
90 - 80 (LO) = 0x10 -> 1 dot
at Y25
End of line
26
84
96
22
0x26
84
96
0x22
Transition white
84 - 80 (LO) = 4 white
96 - 80 (LO) = 22 black
End of line
22
0x22
End of line
26
8C
84
22
0x26
8D
84
0x22
Transition white
8D - 80 (LO) = 13 white
84 - 80 (LO) = 4 black
End of line
24
82
0x24
82
Repeat last line
82 - 80 (LO) = 2 times
25
88
22
0x25
88
0x22
Transition black
89 - 80 (LO) = 9 black
End of line
21
93
43
C2
0x21
93
43 C2
Change origin
93 - 80 (LO) = 0x13 -> X19
43 - 40 (HI) = 0x03
C2 - 80 (LO) = 0x42
(0x03
0x80) + 0x42 = 1C2 ->
Y450
25
43
C2
0x25
43 C2
Transition black
43 - 40 (HI) = 0x03
C2 - 80 (LO) = 0x42
(0x03
0x80) + 0x42 = 1C2 ->
Y450
28
0x28
End of bitmap