Brother International TD-2020 ESC/ P Command Reference - Page 60

ESC (v Specify relative vertical position

Page 60 highlights

ESC/P Command Reference ESC (v Specify relative vertical position ASCII: ESC ( v nL nH mL mH Decimal: 27 40 118 nL nH mL mH Hexadecimal: 1B 28 76 nL nH mL mH Parameters nL=2 nH=0 0≤mL≤255 0≤mH≤127 -16384≤(mL+mH*256)≤16383 Description  Specifies the vertical print position as a relative position from the current position. Vertical position after movement=mL+mH*256+current position  When moving upwards, the specified value is expressed as a two's complement. It is determined by the following equation. mL+mH*256=65536-distance actually moved  Settings moving the print position above the top margin are ignored.  If a position extending beyond the bottom margin is specified, printing starts.  With left alignment, the print position for the next line becomes the end position of the current line. (The horizontal position does not move to the left margin.) With right alignment and center alignment, the horizontal position moves to the beginning of the line.  Auto-canceling double-width characters specified with SO or ESC SO are canceled. Abcdefg ABC Abcdefg ABC Abcdefg ABC ççççççSDFASG SDFASG SDFASG Left alignment Center alignment Right alignment Example: Moving to a vertical position specified after the second line - 54 - 5. Control Command Details

  • 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

ESC/P Command Reference
- 54 -
5. Control Command Details
ESC (v
Specify relative vertical position
ASCII:
ESC
v
nL nH
mL
mH
Decimal:
27
40
118
nL nH
mL
mH
Hexadecimal: 1B
28
76
nL nH
mL
mH
Parameters
nL=2
nH=0
0
mL
255
0
mH
127
-16384
mL+mH*256
16383
Description
Specifies the vertical print position as a relative position from the current position.
Vertical position after movement=mL+mH*256+current position
When moving upwards, the specified value is expressed as a two's complement.
It is determined by the following equation.
mL+mH*256=65536–distance actually moved
Settings moving the print position above the top margin are ignored.
If a position extending beyond the bottom margin is specified, printing starts.
With left alignment, the print position for the next line becomes the end position of the current line.
(The horizontal position does not move to the left margin.)
With right alignment and center alignment, the horizontal position moves to the beginning of the line.
Auto-canceling double-width characters specified with SO or ESC SO are canceled.
Abcdefg
ABC
SDFASG
Abcdefg
ABC
SDFASG
Abcdefg
ABC
SDFASG
Example:
Moving to a vertical position specified after the second line
Left alignment
Center alignment
Right alignment