Lexmark Forms Printer 2581 Technical Reference - Page 28

Print Position Commands, Relative Move Inline Forward (n/120\, Print Position

Page 28 highlights

Draft document 2-8 Print Position Print Position Commands Relative Move Inline Forward (n/120") This command moves the current print position to the right by the distance specified in the parameter. Format ESC d Ln Hn Decimal 27 100 Ln Hn Hexadecimal 1B 64 Ln Hn USAGE NOTES • Any attempt to use this command to move the print position beyond the current right margin leaves the print position set to the right margin. • If underscoring and/or overscoring are in effect, the space of the move is underscored/overscored (unlike the case of a horizontal tab). • The unit of measure is 1/120 inch. The position will be moved relative to the current print position. The distance is computed as (Ln+(Hn*256)) in inches. • 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.

  • 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

Print Position
2-8
Draft document
Print Position Commands
Relative Move Inline Forward (n/120")
This command moves the current print position to the right by the distance specified
in the parameter.
USAGE NOTES
Any attempt to use this command to move the print position beyond the
current right margin leaves the print position set to the right margin.
If underscoring and/or overscoring are in effect, the space of the move is
underscored/overscored (unlike the case of a horizontal tab).
The unit of measure is 1/120 inch. The position will be moved relative to the
current print position. The distance is computed as (Ln+(Hn*256)) in inches.
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.
Format
ESC
d
Ln
Hn
Decimal
27
100
Ln
Hn
Hexadecimal
1B
64
Ln
Hn