Samsung SRP-275CEPG Operation Manual - Page 50

ESC g, ESC p, ESC m

Page 50 highlights

CHAPTER 5 CONTROL COMMANDS LIST ESC m [Name] Partial cut (one point left uncut) [Format] ASCII ESC i Hex 1B 69 Decimal 27 105 [Range] None [Default] None [Description] Executes a partial cut of the paper roll with one point left uncut. ESC g [Name] Start macro record [Format] ASCII ESC g 0 [ ]k [d1...dm]k Hex 1B 67 00 [ ]k [d1...dm]k Decimal 27 103 0 [ ]k [d1...dm]k [Range] [Description] [Notes] k ≤ 10 0 ≤ nL ≤ 255 0 ≤ nH ≤ 255 [(256 x nH) + nL ]1 + ...+ [(256 x nH) + nL ]k < 2Mbit (256KB) 0 ≤ d ≤ 255 Start macro definition (Define logo) - k = the number of total macro index - (256 x nH) + nL = the Length of each macro - m = (256 x nH) + nL The SRP-275 Printer maintains a 2M bit (256KB) section of flash memory to save NV bit image. This command is useful to define NV bit image (Logo). The NV bit image is printed by ESC g n. 5-30 ESC g n [Name] Execute Macro [Format] ASCII ESC g n Hex 1B 67 n Decimal 27 103 n [Range] 1 ≤ n ≤ 10 [Description] Execute macro using the parameter by n. [Notes] n = Macro index number. The NV bit image is defined by ESC g. This command should be used only when the macro is downloaded by ESC g command. ESC p [Name] Generate pulse [Format] ASCII ESC p m t1 t2 Hex 1B 70 m t1 t2 Decimal 27 112 m t1 t2 [Range] m = 0, 1, 48, 49 1 ≤ t1 ≤ 255 1 ≤ t2 ≤ 255 [Default] None [Description] Outputs the pulse specified by t1 and t2 to the specified connector pin m as follows: m Connector Pin 0 Drawer kick-out connector pin 2 1 Drawer kick-out connector pin 5 [Notes] - The pulse for ON time is (t1 x 2 msec) and for OFF time is (t2 x 2 msec). If t2 < t1, the OFF time is equal to the ON time. If t2 < 50, t2 is supposed to be 50. 5-31

  • 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

5-31
ESC g
n
[Name]
Execute Macro
[Format]
ASCII
ESC
g
n
Hex
1B
67
n
Decimal
27
103
n
[Range]
1
n
10
[Description]
Execute macro using the parameter by n.
[Notes]
n = Macro index number.
The NV bit image is defined by ESC g.
This command should be used only when the macro is downloaded by
ESC g command.
ESC p
[Name]
Generate pulse
[Format]
ASCII
ESC
p
m
t1
t2
Hex
1B
70
m
t1
t2
Decimal
27
112
m
t1
t2
[Range]
m = 0, 1, 48, 49
1
t1
255
1
t2
255
[Default]
None
[Description]
Outputs the pulse specified by t1 and t2 to the specified connector pin m as
follows:
- The pulse for ON time is (t1 x 2 msec) and for OFF time is (t2 x 2 msec).
[Notes]
If t2 < t1, the OFF time is equal to the ON time.
If t2 < 50, t2 is supposed to be 50.
5-30
ESC m
[Name]
Partial cut (one point left uncut)
[Format]
ASCII
ESC
i
Hex
1B
69
Decimal
27
105
[Range]
None
[Default]
None
[Description]
Executes a partial cut of the paper roll with one point left uncut.
ESC g
[Name]
Start macro record
[Format]
ASCII
ESC
g
0
<k> [<nH> <nL> ]
k
[d1
...
dm]
k
Hex
1B
67
00
<k> [<nH> <nL> ]
k
[d1
...
dm]
k
Decimal
27
103
0
<k> [<nH> <nL> ]
k
[d1
...
dm]
k
[Range]
k
10
0
nL
255
0
nH
255
[(256 x nH) + nL ]1 + ...+ [(256 x nH) +
nL ]k
<
2Mbit (256KB)
0
d
255
[Description]
Start macro definition (Define logo)
-
k = the number of total macro index
-
(256 x nH) + nL = the Length of each macro
-
m = (256 x nH) + nL
[Notes]
The SRP-275 Printer maintains a 2M bit (256KB) section of flash
memory to save NV bit image.
This command is useful to define NV bit image (Logo).
The NV bit image is printed by ESC g n.
m
0
1
Connector Pin
Drawer kick-out connector pin 2
Drawer kick-out connector pin 5
CONTROL COMMANDS LIST
CHAPTER 5