BTP-M300 Programming Manual
- 39 -
[Range]
(pL + pH × 256) = 2 (
pL = 2, pH = 0)
fn = 4
a = 2, 8
[Note]
• This command is valid for serial, parallel, and USB interface printer.
(Function 5)GS ( E pL pH fn [a1 n1L n1H ]...[ak nkL nkH] (fn = 5)
[Function]
Set paper width.
[Format]
ASCII
GS ( E pL pH fn [a1 n1L n1H] … [ak nkL nkH]
Hex
1D 28 45 pL pH fn [a1 n1L n1H] … [ak nkL nkH]
Decimal
29 40 69 pL pH fn [a1 n1L n1H] … [ak nkL nkH]
[Range]
4
≤
(pL + pH ×
256)
≤
65533 (0
≤
pL
≤
255, 0
≤
pH
≤
255)
fn = 5
a = 3
(nL + nH × 256) = 2,4,5 (nL = 2, 4 ,5, nH = 0)
[Notes]
•
Make user-defined settings via the value of (nL + nH × 256)
a
Self-defined value
3 Paper
width
• Paper width settings
(nL + nH × 256)
Paper width
2 57.5
mm{2.26’’}
4 69.5
mm{2.74’’}
5 76
mm{2.99’’}
[Default]
(nL + nH × 256) = 5 (nL = 5, nH = 0)
(Function 6)GS ( E pL pH fn a (fn = 6)
[Function]
Query paper width.
[Format]
ASCII
GS ( E pL pH fn a
Hex
1D 28 45 pL pH fn a
Decimal
29 40 69 pL pH fn a
[Range]
(pL + pH ×
256) = 2 (pL = 2, pH = 0)
fn = 6
a = 3
[Notes]
Query user self-defined value:
a
Self-defined value
3 Paper
width
• Data return format: head infor data + NUL, with details as below:
Head information: 0x37 0x27 0x33 0x1F (4 byte)
Data: Paper width information
NUL: 0x00 (1 byte)
• This command is valid for serial, parallel, and USB interface printer.
(Function 11)GS ( E pL pH fn a d1 … dk (fn = 11)
[Function]
Set serial communication parameters.