Lexmark Forms Printer 2581 Technical Reference - Page 39

Code Commands, Set Code Continuously Print From All Character Chart, Code

Page 39 highlights

Draft document 2-19 Code Page Code Page Commands Set Code Page Use this printer command to change the active code page. Format ESC [ T n1 n2 n3 n4 Hc Lc Decimal 27 91 84 n1 n2 0 0 Hc Lc Hexadecimal 1B 5B 54 n1 n2 00 00 Hc Lc USAGE NOTES • n1 is a one-byte binary number that is the less significant byte of the two-byte parameter count. • n2 is a one-byte binary number that is the more significant byte of the two- byte parameter count. Zero is a valid count. • n3 and n4 are always 0. • Hc and Lc are two-byte values that specify the code page to be used. See"Code Page Table" on page A-1 for decimal and hexadecimal values. • This command is ignored if an unavailable code page is specified. • To calculate Hc Lc for a code page that is not shown: - Divide the code page number, such as 437, by 256. - The whole number result is the Hc value. - The remainder is the Lc value. - If your code page has an alphabetic character, such as 437G, add 10,000 to the code page number, then divide by 256. Continuously Print From All Character Chart This command prints the next (n = m X 256) characters from the All Characters Chart. Format ESC \ Ln Hn n1 ... nn Decimal 27 92 Ln Hn n1 ... nn Hexadecimal 1B 5C Ln Hn n1 ... nn USAGE NOTES • Identify the number of characters (A) that you want to print.

  • 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-19
Draft document
Code Page Commands
Set Code Page
Use this printer command to change the active code page.
USAGE NOTES
n1 is a one-byte binary number that is the less significant byte of the two-byte
parameter count.
n2 is a one-byte binary number that is the more significant byte of the two-
byte parameter count.
Zero is a valid count.
n3 and n4 are always 0.
Hc and Lc are two-byte values that specify the code page to be used.
See“Code Page Table” on page A-1 for decimal and hexadecimal values.
This command is ignored if an unavailable code page is specified.
To calculate Hc Lc for a code page that is not shown:
Divide the code page number, such as 437, by 256.
The whole number result is the Hc value.
The remainder is the Lc value.
If your code page has an alphabetic character, such as 437G, add 10,000
to the code page number, then divide by 256.
Continuously Print From All Character Chart
This command prints the next (n = m X 256) characters from the All Characters Chart.
USAGE NOTES
Identify the number of characters (A) that you want to print.
Format
ESC
[
T
n1
n2
n3
n4
Hc
Lc
Decimal
27
91
84
n1
n2
0
0
Hc
Lc
Hexadecimal
1B
5B
54
n1
n2
00
00
Hc
Lc
Format
ESC
\
Ln
Hn
n1
...
nn
Decimal
27
92
Ln
Hn
n1
...
nn
Hexadecimal
1B
5C
Ln
Hn
n1
...
nn