Samsung SRP-275CEPG Operation Manual - Page 64

GS E pL pH fn a <Function 6&gt

Page 64 highlights

CHAPTER 5 CONTROL COMMANDS LIST GS ( E pL pH fn [a1 n1L n1H]...[ak nkL nkH] [Format] [Range] [Default] [Description] ASCII GS ( E pL pH fn [a1n1L n1H] ... [ak nkL nkH] Hex 1D 28 45 pL pH 05 [a1 n1L n1H] ... [ak nkL nkH] Decimal 29 40 69 pL pH 5 [a1 n1L n1H] ... [ak nkL nkH] 4 ≤ (pL + pH x 256) ≤ 65533 (0 ≤ pL ≤ 255, 0 ≤ pH ≤ 255: (pL + pH x 256) = 3 x k + 1) fn = 5 1 ≤ k ≤ 21844 a = 3 nL + nH x 256 = 2, 4, 5 ( nL = 2, 4, 5, nH = 0) (nL + nH x 256) = 5 ( nL = 5, nH = 0) [default value when a = 3] Changes the customized value specified by parameter a to (nL + nH x 256). a Type of customized value 3 Paper width [Notes] This function works only in user setting mode. Customized value is specified by unit of 3 bytes ( a, nL, nH) Ex: A transmitted data as specifying paper width; ASCII: GS ( E pL pH fn a nL nH Hexadecimal: 1D 2B 45 04 00 05 03 06 00 Decimal: 29 40 69 4 0 5 3 6 0 To activate the customized values you set with this function, you must transmit a Function 2 command. If you attempt to set a combination of settings that is not possible, the NV bit image memory setting is reduced to an allowable value. paper width settings ( a = 3) (nL + nH x 256) 2 4 5 Paper width 57.5 mm (2.26 inch) 69.5 mm (2.74 inch) 76 mm (3.00 inch) Setting the paper width ( a = 3) can be changed by Memory switch setting mode by the panel switch operation when the power supply is turned on. 5-58 GS ( E pL pH fn a [Format] [Range] [Description] ASCII GS ( E pL pH fn a Hex 1D 28 45 02 00 06 a Decimal 29 40 69 2 0 6 a (pL + pH x 256) = 2 ( pL = 2, pH = 0) fn = 6 a = 3 The printer transmits to the host the customized value for the NV memory area specified by parameter a. [Notes] a Type of customized value 3 Paper width This function works both in user setting mode and during normal printer operation. The printer transmits the data below ( Header to NUL ) with this function: Transmit data Header Identifier Value number (*1) Hex 37H 21H 30H or 31H Decimal 55 33 48 ~ 49 Data quantity 1 byte 1 byte 1-3 byte Transmit data Separation code Setting value NUL Hex 1FH 30H ~ 39H 00H Decimal 31 48 ~ 59 0 Data quantity 1 byte 1-5 byte 1-3 byte (*1) The decimal value for the customized value number (a; parameter of this function) is converted to ASCII character data and sent starting from the high order end. Example: If the a is 118, the 118 (expressed hexadecimally as 31H, 31H, 38H. Decimally as 49, 49, 56) is converted to 3-bytes data. (*2) The customized value is determined by the value defined in Function 5. Example 1: When setting value is 120, the customized value is 120 expressed with 3 bytes of data (hex numbers: 31H,32H, 30H / decimal numbers: 49, 50, 48). Example 2: When setting value is -1, the customized value is 65535 expressed with 5 bytes of data (hex numbers: 36H,35H, 35H, 33H, 35H / decimal numbers: 54,53, 53, 51, 53). 5-59

  • 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

Setting the paper width ( a = 3) can be changed by Memory switch setting mode
by the panel switch operation when the power supply is turned on.
[Notes]
This function works only in user setting mode.
Customized value is specified by unit of 3 bytes ( a, nL, nH)
Ex: A transmitted data as specifying paper width;
ASCII:
GS
(
E
pL
pH
fn
a
nL
nH
Hexadecimal: 1D
2B
45
04
00
05
03
06
00
Decimal:
29
40
69
4
0
5
3
6
0
To activate the customized values you set with this function, you must
transmit a Function 2 command.
If you attempt to set a combination of settings that is not possible, the NV bit
image memory setting is reduced to an allowable value.
5-59
5-58
GS ( E pL pH fn [a1 n1L n1H]...[ak nkL nkH] <Function 5>
[Format]
ASCII
GS
(
E
pL
pH
fn
[a1n1L n1H] ... [ak nkL nkH]
Hex
1D
28
45
pL
pH
05
[a1 n1L n1H] ... [ak nkL nkH]
Decimal
29
40
69
pL
pH
5
[a1 n1L n1H] ... [ak nkL nkH]
[Range]
4
(pL + pH x 256)
65533
(0
pL
255, 0
pH
255: (pL + pH x 256) = 3 x k + 1)
fn = 5
1
k
21844
a = 3
nL + nH x 256 = 2, 4, 5 ( nL = 2, 4, 5, nH = 0)
[Default]
(nL + nH x 256) = 5 ( nL = 5, nH = 0) [default value when a = 3]
[Description]
Changes the customized value specified by parameter a to (nL + nH x 256).
GS ( E pL pH fn a <Function 6>
[Format]
ASCII
GS
(
E
pL
pH
fn
a
Hex
1D
28
45
02
00
06
a
Decimal
29
40
69
2
0
6
a
[Range]
(pL + pH x 256) = 2 ( pL = 2, pH = 0)
fn = 6
a = 3
[Description]
The printer transmits to the host the customized value for the NV memory
area specified by parameter a.
[Notes]
This function works both in user setting mode and during normal printer
operation.
The printer transmits the data below ( Header to NUL ) with this function:
a
3
Type of customized value
Paper width
(nL + nH x 256)
2
4
5
Paper width
57.5 mm (2.26 inch)
69.5 mm (2.74 inch)
76 mm (3.00 inch)
paper width settings ( a = 3)
a
3
Type of customized value
Paper width
(*1) The decimal value for the customized value number (a; parameter of this
function) is converted to ASCII character data and sent starting from the
high order end.
Example:
If the a is 118, the 118 (expressed hexadecimally as 31H, 31H, 38H.
Decimally as 49, 49, 56) is converted to 3-bytes data.
(*2) The customized value is determined by the value defined in Function 5.
Example 1:
When setting value is 120, the customized value is 120 expressed with 3
bytes of data (hex numbers: 31H,32H, 30H / decimal numbers: 49, 50, 48).
Example 2:
When setting value is -1, the customized value is 65535 expressed with 5
bytes of data (hex numbers: 36H,35H, 35H, 33H, 35H / decimal numbers:
54,53, 53, 51, 53).
Transmit data
Header
Identifier
Value number (*1)
Hex
37H
21H
30H or 31H
Decimal
55
33
48 ~ 49
Data quantity
1 byte
1 byte
1-3 byte
Transmit data
Separation code
Setting value
NUL
Hex
1FH
30H ~ 39H
00H
Decimal
31
48 ~ 59
0
Data quantity
1 byte
1-5 byte
1-3 byte
CONTROL COMMANDS LIST
CHAPTER 5