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

Creating Counters, Start Value, Number of Digits, Number of Copies Before Update

Page 66 highlights

Chapter 5-Setting Up the Printer 5.6 Creating Counters You can create a number of counters for use in text and bar code fields, where each counter is specified by a CNT$ instruction, see Chapter 3.9. The counters are global, which means that the same counter can be used in many different labels and layouts, but will be incremented/decremented at any PRINTFEED operation, regardless of label. Thus, if you want to use a counter for one specific layout only, make sure not to use it any other layout too. Note that the counter must be created before you send a layout containing a reference to the counter in question. A counter created inside a layout will not be updated properly. Each counter is designated by means of a number. Alpha counters count A-Z, whereas numeric counters have no practical limit. The type of counter is decided by the type of start value. Use the instructions listed on the next page to create a counter and specify its characteristics. Start Value COUNT& "START", ,"" is the first value to be printed. Negative values are indicated by a leading minus sign (-). Type of start value (numeric or alpha) decides type of counter. Number of Digits COUNT& "WIDTH", ,"" Default: adds leading zero characters up to the specified number of digits. Must only be used in numeric counters. 1 Number of Copies Before Update COUNT& "COPY", ,"" Default: sets the quantity of copies to be printed before counter is incremented or decremented. 1 Incrementation/Decrementation COUNT& "INC", ,"| " Default: sets the value by which the counter should be incremented. sets the value by which the counter should be decremented. Decrementation is indicated by a leading minus sign (-). 1 58 Intermec Direct Protocol v.8.60-Programmer's Reference Manual

  • 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

58
Intermec Direct Protocol v.8.60—Programmer’s Reference Manual
Chapter 5—Setting Up the Printer
5.6 Creating Counters
You can create a number of counters for use in text and bar code fields,
where each counter is specified by a
CNT<Counter No.>$
instruc-
tion, see Chapter 3.9. °e counters are global, which means that the
same counter can be used in many different labels and layouts, but will
be incremented/decremented at any
PRINTFEED
operation, regardless
of label. °us, if you want to use a counter for one specific layout only,
make sure not to use it any other layout too.
Note that the counter must be created before you send a layout contain-
ing a reference to the counter in question. A counter created inside a
layout will not be updated properly.
Each counter is designated by means of a number. Alpha counters count
A-Z, whereas numeric counters have no practical limit. °e type of coun-
ter is decided by the type of start value.
Use the instructions listed on the next page to create a counter and
specify its characteristics.
Start Value
COUNT& "START", <counter number>,"<start value>"
<start value>
is the first value to be printed. Negative values are indicated by a leading
minus sign (-).
Type of start value (numeric or alpha) decides type of counter.
Number of Digits
COUNT& "WIDTH", <counter number>,"<number of digits>"
<number of digits>
adds leading zero characters up to the specified number of digits. Must only
be used in numeric counters.
Default:
1
Number of Copies Before Update
COUNT& "COPY", <counter number>,"<number of copies>"
<number of copies>
sets the quantity of copies to be printed before counter is incremented or
decremented.
Default:
1
Incrementation/Decrementation
COUNT& "INC", <counter number>,"<incr. value>|<decr. value> "
<incr. value>
sets the value by which the counter should be incremented.
<decr. value>
sets the value by which the counter should be decremented. Decrementation
is indicated by a leading minus sign (-).
Default:
1