Lexmark Forms Printer 2581 Technical Reference - Page 40

Print One Character

Page 40 highlights

Draft document 2-20 Code Page - When a value is represented by two parameter bytes, value (A) = Ln + Hn X 256. Calculate values of A less than 256. • Hn is 0. • Ln is the value. - To calculate values of A equal to or greater than 255. • Divide the value A by 256. • The result is Hn. • The remainder is Ln. • The variables, n1 n2 n3 and so on, are the number of characters that you want to print. For example, for each character, n1 n2 n3...., that you want to print, you must input the decimal or hexadecimal digit for that character. • Use the "Code Page Table" on page A-1 for decimal and hexadecimal values. - Locate the character on the code page table. - Use the decimal or hexadecimal digit for that character in the printer com- mand format. Print One Character This command prints the next character from the All Characters Chart. Format ESC ^ Decimal 27 94 Hexadecimal 1B 5E

  • 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

Code Page
2-20
Draft document
When a value is represented by two parameter bytes, value (A) = Ln + Hn
X 256. Calculate values of A less than 256.
Hn is 0.
Ln is the value.
To calculate values of A equal to or greater than 255.
Divide the value A by 256.
The result is Hn.
The remainder is Ln.
The variables, n1 n2 n3 and so on, are the number of characters that you
want to print. For example, for each character, n1 n2 n3
....
, that you want to
print, you must input the decimal or hexadecimal digit for that character.
Use the “Code Page Table” on page A-1 for decimal and hexadecimal values.
Locate the character on the code page table.
Use the decimal or hexadecimal digit for that character in the printer com-
mand format.
Print One Character
This command prints the next character from the All Characters Chart.
Format
ESC
^
Decimal
27
94
Hexadecimal
1B
5E