Samsung SRP-350PG Service Manual - Page 71

ESC W xL xH yL yH dxL dxH dyL dyH, ESC a n, ESC c 3 n

Page 71 highlights

Command ESC W xL xH yL yH dxL dxH dyL dyH [Name] Set printing area in page mode. [Format] ASCII ESC W xL xH yL yH dxL dxH dyL dyH Hex 1B 57 xL xH yL yH dxL dxH dyL dyH Decimal 27 87 xL xH yL yH dxL dxH dyL dyH [Range] 0 ≤ xL xH yL yH dxL dxH dyL dyH ≤255 (except dxL=0 or dyL=dyH=0) [Description] The horizontal starting position, vertical starting position, printing area width, and printing area height are defined as x0, y0, dx (inch), respectively. x0 = [(xL + xH ×256)] ×(horizontal motion unit)] y0 = [(yL + yH ×256)] ×(vertical motion unit)] dx = [(dxL + dxH ×256)] ×(horizontal motion unit)] dy = [(dyL + dyH ×256)] ×(horizontal motion unit)] The printing area is set as shown in the figure below. ESC ₩ n [Name] [Format] [Range] [Description] Set relative print position. ASCII ESC ₩ nL nH Hex 1B 5C nL nH Decimal 27 92 nL nH 0 ≤nL ≤255 0 ≤nH ≤255 Set the print starting position based on the current position by using the horizontal or vertical motion unit. * This command sets the distance from the current position to [(nL + nH ×256) ×horizontal or vertical motion unit] ESC a n [Name] [Format] [Range] [Description] Select justification. ASCII ESC a n Hex 1B 61 n Decimal 27 97 n 0 ≤nL ≤2, 48 ≤nL ≤50 Aligns all the data in one line to the specified position. n selects the type of justification as follows : n 0, 48 1, 49 2, 50 Left justification Centering Right justification Justification ESC c 3 n [Name] [Format] [Range] [Description] Select paper sensor(s) to output paper end signals. ASCII ESC c 3 n Hex 1B 63 33 n Decimal 27 99 51 n 0 ≤n ≤255 Selects the paper sensor(s) to output paper end signals. * Each bit of n is used as follows. Bit Off/On Hex Decimal 0 Off 00 0 On 01 1 1 Off 00 0 On 02 2 2 Off 00 0 On 04 4 3 Off 00 0 On 08 8 4-7 - - - Function Paper roll near-end sensor disable. Paper roll near-end sensor enable. Paper roll near-end sensor disable. Paper roll near-end sensor enable. Paper roll end sensor disable. Paper roll end sensor enable. Paper roll end sensor disable. Paper roll end sensor enable. Undefined. 8-8 Samsung Electro-Mechanics

  • 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

Command
8-8
Samsung Electro-Mechanics
ESC W xL xH yL yH dxL dxH dyL dyH
[Name]
[Format]
[Range]
[Description]
Set printing area in page mode.
ASCII
ESC
W
xL xH yL yH dxL dxH dyL dyH
Hex
1B
57
xL xH yL yH dxL dxH dyL dyH
Decimal
27
87
xL xH yL yH dxL dxH dyL dyH
0
xL xH yL yH dxL dxH dyL dyH
255 (except dxL=0 or dyL=dyH=0)
The horizontal starting position, vertical starting position, printing area width, and printing area height
are defined as x0, y0, dx (inch), respectively.
x0 = [(xL + xH ×256)] ×(horizontal motion unit)]
y0 = [(yL + yH ×256)] ×(vertical motion unit)]
dx = [(dxL + dxH ×256)] ×(horizontal motion unit)]
dy = [(dyL + dyH ×256)] ×(horizontal motion unit)]
The printing area is set as shown in the figure below.
ESC
n
[Name]
[Format]
[Range]
[Description]
Set relative print position.
ASCII
ESC
nL
nH
Hex
1B
5C
nL
nH
Decimal
27
92
nL
nH
0
nL
255
0
nH
255
Set the print starting position based on the current position by using the horizontal or vertical motion
unit.
* This command sets the distance from the current position to
[(nL + nH ×256) ×horizontal or vertical motion unit]
ESC a n
[Name]
[Format]
[Range]
[Description]
Select justification.
ASCII
ESC
a
n
Hex
1B
61
n
Decimal
27
97
n
0
nL
2, 48
nL
50
Aligns all the data in one line to the specified position.
n selects the type of justification as follows :
n
Justification
0, 48
Left justification
1, 49
Centering
2, 50
Right justification
ESC c 3 n
[Name]
[Format]
[Range]
[Description]
Select paper sensor(s) to output paper end signals.
ASCII
ESC
c
3
n
Hex
1B
63
33
n
Decimal
27
99
51
n
0
n
255
Selects the paper sensor(s) to output paper end signals.
* Each bit of n is used as follows.
Bit
Off/On
Hex
Decimal
Function
Off
00
0
Paper roll near-end sensor disable.
0
On
01
1
Paper roll near-end sensor enable.
Off
00
0
Paper roll near-end sensor disable.
1
On
02
2
Paper roll near-end sensor enable.
Off
00
0
Paper roll end sensor disable.
2
On
04
4
Paper roll end sensor enable.
Off
00
0
Paper roll end sensor disable.
3
On
08
8
Paper roll end sensor enable.
4-7
-
-
-
Undefined.