Intermec PF4i Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 17

Layout and Variable Input Data in Separate Sequences, Creating the Layout, Add Variable Data and Print

Page 17 highlights

Chapter 2-Principles of Operation Layout and Variable Input Data in Separate Sequences All necessary commands for setting up the printer (see Chapter 5) should be issued before the LAYOUT INPUT...LAYOUT END sequence. The only exceptions are NASC and NASCD, see Chapters 5.13 and 8.2. Creating the Layout LAYOUT INPUT "tmp:LABEL1" ↵ (start layout recorder) BF ON ↵ (enable bar code interpretation) BF "Swiss 721 BT",6 ↵ (select bar code interpretation font) PP 10,10 ↵ (insertion point for box field) PX 430,340,15 ↵ (create a box) PP 30,30 ↵ (insertion point for image field) PM "GLOBE.1" ↵ (select image) PP 75,270 ↵ (insertion point for bar code field) BT "CODE39" ↵ (select bar code type) PB VAR1$ ↵ (variable input data to bar code field) PP 75,220 ↵ (insertion point for text field) FT "Swiss 721 BT",6 ↵ (select font for text field) PT VAR2$ ↵ (variable input data to text field) LAYOUT END ↵ (save layout) COPY "tmp:LABEL1","/c/LABEL1" ↵ (save layout in "/c") The layout was created in the printer's temporary memory ("tmp:") because it is faster and then, as a safety measure, copied to the permanent memory ("/c") which is slower but safer than ("tmp:"). The instructions could also have been sent as a continuous string rather than line-by-line. Add Variable Data and Print COPY "/c/LABEL1","tmp:LABEL1" ↵ (copy layout to "tmp:") LAYOUT RUN "tmp:LABEL1" ↵ (select layout) (start of input data, ASCII 02 dec) ABC ↵ (variable input data to VAR1$) My FIRST label ↵ (variable input data to VAR2$) (end of input data, ASCII 04 dec) PF ↵ (print one label) This should produce a label looking exactly like the one shown on the previous page. Intermec Direct Protocol v.8.60-Programmer's Reference Manual 9

  • 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
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134

Intermec Direct Protocol v.8.60—Programmer’s Reference Manual
9
Chapter 2—Principles of Operation
Layout and Variable Input Data in Separate Sequences
All necessary commands for setting up the printer (see Chapter 5) should
be issued before the LAYOUT INPUT...LAYOUT END sequence. °e
only exceptions are NASC and NASCD, see Chapters 5.13 and 8.2.
Creating the Layout
LAYOUT INPUT "tmp:LABEL1"
(start layout recorder)
BF ON
(enable bar code interpretation)
BF "Swiss 721 BT",6
(select bar code interpretation font)
PP 10,10
(insertion point for box field)
PX 430,340,15
(create a box)
PP 30,30
(insertion point for image field)
PM "GLOBE.1"
(select image)
PP 75,270
(insertion point for bar code field)
BT "CODE39"
(select bar code type)
PB VAR1$
(variable input data to bar code field)
PP 75,220
(insertion point for text field)
FT "Swiss 721 BT",6
(select font for text field)
PT VAR2$
(variable input data to text field)
LAYOUT END
(save layout)
COPY "tmp:LABEL1","/c/LABEL1"
(save layout in "/c")
°e layout was created in the printer’s temporary memory ("tmp:")
because it is faster and then, as a safety measure, copied to the permanent
memory ("/c") which is slower but safer than ("tmp:"). °e instructions
could also have been sent as a continuous string rather than line-by-line.
Add Variable Data and Print
COPY "/c/LABEL1","tmp:LABEL1"
(copy layout to "tmp:")
LAYOUT RUN "tmp:LABEL1"
(select layout)
<STX>
(start of input data, ASCII 02 dec)
ABC
(variable input data to VAR1$)
My FIRST label
(variable input data to VAR2$)
<EOT>
(end of input data, ASCII 04 dec)
PF
(print one label)
°is should produce a label looking exactly like the one shown on the
previous page.