Oki MICROLINE 390 TURBO Printer Handbook - Page 89

Epson, Function, Commands, ASCII, Decimal, Hexadecimal, Notes

Page 89 highlights

Epson Function Absoulte Horizontal Position Relative Horizontal Position Set Print Position Commands (ASCII, Decimal, Hexadecimal) Notes ASCII: ESC $ n1 n2 Dec: 27 36 n1 n2 Hex: 1B 24 n1 n2 Move to new horizontal position. Amount of movement from left margin is calculated as follows: [n1 + (n2 x 256)] x (basic unit in inches), where the basic unit is set by ESC (U, set unit command. The default of the basic unit is 1/60 inch. n1=0 to 255 n2=0 to 255 n1=n2=0: left margin Max. value: for 1/60 inch basic unit, n1=48 n2=3(13.6" shift) Space moved using this command will not be underlined. DEL command will not delete the skipped amount. ASCII: ESC \ n1 n2 Dec: 27 92 n1 n2 Hex: 1B 5C n1 n2 Move to new horizontal position, relative to present position. Amount of movement is calculated as follows: ± (n1+ [n2x256] x (basic unit in inches), where the basic unit is set by ESC (U, set unit command. The default of the basic unit with LQ is 1/180 inch, and with UTL it is 1/120 inch. n1=0 to 255 n2=0 to 255 n1=n2=0: no movement + moves to right; - moves to left ASCII: ESC DLE @ Pn A1 A2 P1 P2 P3 P4 Dec: 27 16 64 [data] Hex: 1B 10 40 [data] OKI unique command. Sets next horizontal position of printhead. Pn= number of parameter bytes to follow, range 0 to 255 A1= specifies whether motion is absolute or relative: even-absolute from left margin; odd=relative from present position A2= specifies direction of relative movement: even= toward right margin (forward); odd= toward left margin (reverse) 0 ≤ P1, P2, P3, P4 ≤ 9 representing number of units to move (size of unit depends on character pitch) 82 Appendix C: Priner Commands

  • 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
  • 135

82
Appendix C: Priner Commands
Absoulte Horizontal
Position
Relative Horizontal
Position
Set Print Position
ASCII: ESC $ n
1
n
2
Dec: 27 36 n
1
n
2
Hex: 1B 24 n
1
n
2
ASCII: ESC \ n
1
n
2
Dec: 27 92 n
1
n
2
Hex: 1B 5C n
1
n
2
ASCII: ESC DLE @ P
n
A
1
A
2
P
1
P
2
P
3
P
4
Dec: 27 16 64 [data]
Hex: 1B 10 40 [data]
Epson
Function
Commands
(ASCII, Decimal, Hexadecimal)
Move to new horizontal position.
Amount of movement from left margin
is calculated as follows:
[n
1
+ (n
2
x 256)] x (basic unit in inches),
where the basic unit is set by ESC (U, set
unit command. The default of the basic
unit is 1/60 inch.
n
1
=0 to 255
n
2
=0 to 255
n
1
=n
2
=0: left margin
Max. value: for 1/60 inch basic unit,
n
1
=48 n
2
=3(13.6" shift)
Space moved using this command will
not be underlined. DEL command will
not delete the skipped amount.
Move to new horizontal position, rela-
tive to present position. Amount of
movement is calculated as follows:
±
(n
1
+ [n
2
x256] x (basic unit in inches),
where the basic unit is set by ESC (U, set
unit command. The default of the basic
unit with LQ is 1/180 inch, and with
UTL it is 1/120 inch.
n
1
=0 to 255
n
2
=0 to 255
n
1
=n
2
=0: no movement
+ moves to right; - moves to left
OKI unique command. Sets next hori-
zontal position of printhead.
Pn= number of parameter bytes to fol-
low, range 0 to 255
A
1
= specifies whether motion is abso-
lute or relative: even-absolute from
left margin; odd=relative from present
position
A
2
= specifies direction of relative
movement: even= toward right margin
(forward); odd= toward left margin (re-
verse)
0
P
1
, P
2
, P
3
, P
4
9 representing
number of units to move (size of unit
depends on character pitch)
Notes