Samsung SRP-275 Operator's Manual page 64

Pos impact dot matrix printer
Hide thumbs Also See for SRP-275:
Table of Contents

Advertisement

CHAPTER 5
CONTROL COMMANDS LIST
GS ( E pL pH fn [a1 n1L n1H]...[ak nkL nkH] <Function 5>
[Format]
ASCII
GS
(
Hex
1D
28
Decimal 29
40
4 ≤ (pL + pH x 256) ≤ 65533
[Range]
(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).
a
Type of customized value
3
[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
Hexadecimal: 1D 2B
Decimal:
29
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
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
E
pL
pH
fn
[a1n1L n1H] ... [ak nkL nkH]
45
pL
pH
05
[a1 n1L n1H] ... [ak nkL nkH]
69
pL
pH
5
[a1 n1L n1H] ... [ak nkL nkH]
Paper width
(
E
pL
pH
fn
a
nL
nH
45
04
00
05
03
06
00
40
69
4
0
5
3
6
0
Paper width
57.5 mm (2.26 inch)
69.5 mm (2.74 inch)
76 mm (3.00 inch)
GS ( E pL pH fn a <Function 6>
[Format]
ASCII
GS
(
E
pL
Hex
1D
28
45
02
Decimal 29
40
69
2
[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.
a
Type of customized value
3
Paper width
[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:
Transmit data
Header
Identifier
Value number (*1)
30H or 31H
Transmit data
Separation code
Setting value
30H ~ 39H
NUL
(*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).
pH
fn
a
00
06
a
0
6
a
Hex
Decimal
Data quantity
37H
55
1 byte
21H
33
1 byte
48 ~ 49
1-3 byte
Hex
Decimal
Data quantity
1FH
31
1 byte
48 ~ 59
1-5 byte
00H
0
1-3 byte
5-59

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents