Lexmark Forms Printer 2581 Technical Reference - Page 58

Bar Code Commands, Setup Barcode Parameter, Barcode Types, Bar Code

Page 58 highlights

Draft document 2-38 Bar Code Bar Code Commands Setup Barcode Parameter This command sets the barcode parameters to the printer. Format ESC [ f n1 n2 k Decimal 27 91 102 6 0 k Hexadecimal 1B 5B 66 06 00 k m s m s m s V1 V2 c V1 V2 V1 V2 USAGE NOTES • The printer must receive this command prior to the barcode data command. The printer may ignore this command when the received parameters include undefined data. • The latest barcode command cancels all previous commands. • n1 and n2 specify command length. n1 is always 6 (dec), 06 (hex). n2 is always 0 (dec), 00 (hex). • k specifies the barcode type . See "Barcode Types" on page 2-38. • m specifies the module width. See "Barcode Module Width" on page 2-39. • The variable s denotes the space width adjustment and affects the barcode printing width. "s" specifies space width adjustment and is used for each 'spaces' to match optical conditions. There is no effect for the 'bar' width adjustment. The s parameter is ignored in Post-Net. See remarks in this section for definition of 'space' and 'bar'. See "Adjustment Unit" on page 2-39. • V1 and V2 specify bar length (2 bytes). See "Barcode Length" on page 2-40. • c specifies control flag. See "Barcode Control Flag" on page 2-41. Barcode Types The following values are valid for k: Table 2-17: Barcode Types Decimal 177 178 179 Hexadecimal B1 B2 B3 Barcode NW7 EAN-13 EAN-8

  • 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

Bar Code
2-38
Draft document
Bar Code Commands
Setup Barcode Parameter
This command sets the barcode parameters to the printer.
USAGE NOTES
The printer must receive this command prior to the barcode data command.
The printer may ignore this command when the received parameters include
undefined data.
The latest barcode command cancels all previous commands.
n1 and n2 specify command length.
n1 is always 6 (dec), 06 (hex).
n2 is
always 0 (dec), 00 (hex).
k specifies the barcode type . See “Barcode Types” on page 2-38.
m specifies the module width. See “Barcode Module Width” on page 2-39.
The variable s denotes the space width adjustment and affects the barcode
printing width. "s" specifies space width adjustment and is used for each
'spaces' to match optical conditions.
There is no effect for the 'bar' width
adjustment.
The s parameter is ignored in Post-Net.
See remarks in this
section for definition of 'space' and 'bar'. See “Adjustment Unit” on page 2-39.
V1 and V2 specify bar length (2 bytes). See “Barcode Length” on page 2-40.
c specifies control flag. See “Barcode Control Flag” on page 2-41.
Barcode Types
The following values are valid for k:
Format
ESC
[
f
n1
n2
k
m
s
V1
V2
c
Decimal
27
91
102
6
0
k
m
s
V1
V2
Hexadecimal
1B
5B
66
06
00
k
m
s
V1
V2
Table 2-17:
Barcode Types
Decimal
Hexadecimal
Barcode
177
B1
NW7
178
B2
EAN-13
179
B3
EAN-8