Samsung SRP-275CEPG Operation Manual - Page 58

GS C pL pH m fn b <Function 3&gt

Page 58 highlights

CHAPTER 5 CONTROL COMMANDS LIST [Notes] - When the specified record exists, the printer sends the "Header to NUL" data shown below: Send data Header Identifier Identification status (*1) (*2) Data (*3) NUL Hex 37H 70H 40H or 41H 20H __FEH 00H Decimal 55 112 64 or 65 32 __254 0 Data quantity 1 byte 1 byte 1 byte 1 -80 bytes 1 byte (*1) When the quantity of stored data exceeds 80 bytes, the printer performs partial processing, using the following rules: - If there is unsent data, the identification status of the third byte is 41H or 65 decimal. - If there is no unsent data, the identification status of the third byte is 40H or 64 decimal. (*2) The printer performs batch processing when the data to be stored in the specified record is 80 bytes or less. At this time, the identification status of the third byte is 40H or 64 decimal. (*3) The key code and terminator are not included in the data. - If the host specifies a nonexistent record, the printer sends the "Header to NUL" data shown below: Send data Header Identifier Identification status NUL Hex Decimal Data quantity 37H 55 1 byte 70H 112 1 byte 40H 64 1 byte 00H 0 1 byte - See [Notes for transmission process] for description of transmission process. - See [Notes for ESC/POS Handshaking Protocol] for description of ESC/POS Handshaking Protocol. 5-46 GS ( C pL pH m fn b [Format] ASCII GS ( C pL pH m fn b Hex 1D 28 43 03 00 00 fn 00 Decimal 29 40 67 3 0 0 fn 0 [Range] (pL + pH x 256) = 3 ( pL = 3, pH = 0) m = 0 fn = 3, 51 b = 0 [Description] The printer sends the host the number of data bytes currently used in the NV memory area. [Notes] - ESC/POS Handshaking Protocol is not required for this function. - With this function, the printer sends the "Header to NUL" data shown below: Send data Header Identifier Identification status NUL Hex 37H 28H 30H - 39H 00H Decimal 55 40 48 - 57 0 Data quantity 11 byte 1 byte 1-8 bytes 1 byte (*1) The quantity of stored data bytes, plus the key code and terminator, equal the capacity being used. - The decimal value expressing the capacity being used is converted to ASCII character data and sent from the most significant digit. Example : When 120 bytes is used, the number 120 is expressed with three bytes of data (Hexadecimal: 31H, 32H, and 30H / decimal numbers 49, 50, and 48). When no memory area is used, the number 0 is expressed with 1 byte of data. (Hexadecimal: 30H / decimal number 48). - See previous [Notes for transmission process] for process sending data group. 5-47

  • 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-47
GS ( C pL pH m fn b <Function 3>
[Format]
ASCII
GS
(
C
pL
pH
m
fn
b
Hex
1D
28
43
03
00
00
fn
00
Decimal
29
40
67
3
0
0
fn
0
[Range]
(pL + pH x 256) = 3 ( pL = 3, pH = 0)
m = 0
fn = 3, 51
b = 0
[Description]
The printer sends the host the number of data bytes currently used in the
NV memory area.
-
ESC/POS Handshaking Protocol is not required for this function.
[Notes]
-
With this function, the printer sends the "Header to NUL"
data shown below:
-
The decimal value expressing the capacity being used is converted to
ASCII character data and sent from the most significant digit.
Example
:
When 120 bytes is used, the number 120 is expressed with
three bytes of data (Hexadecimal: 31H, 32H, and 30H / decimal numbers
49, 50, and 48).
When no memory area is used, the number 0 is expressed with
1 byte of data. (Hexadecimal: 30H / decimal number 48).
-
See previous [Notes for transmission process] for process sending
data group.
5-46
[Notes]
-
When the specified record exists, the printer sends the "Header to NUL"
data shown below:
(*1) When the quantity of stored data exceeds 80 bytes, the printer
performs partial processing, using the following rules:
-
If there is unsent data, the identification status of the third byte is
41H or 65 decimal.
-
If there is no unsent data, the identification status of the third byte is
40H or 64 decimal.
(*2) The printer performs batch processing when the data to be stored in the
specified record is 80 bytes or less. At this time, the identification status
of the third byte is 40H or 64 decimal.
(*3) The key code and terminator are not included in the data.
(*1) The quantity of stored data bytes, plus the key code and terminator, equal
the capacity being used.
-
If the host specifies a nonexistent record, the printer sends the
"Header to NUL" data shown below:
-
See [Notes for transmission process] for description of transmission
process.
-
See [Notes for ESC/POS Handshaking Protocol] for description of
ESC/POS Handshaking Protocol.
Send data
Header
Identifier
Identification status (*1) (*2)
Data (*3)
NUL
Hex
37H
70H
40H or 41H
20H __FEH
00H
Decimal
55
112
64 or 65
32 __254
0
Data quantity
1 byte
1 byte
1 byte
1 -80 bytes
1 byte
Send data
Header
Identifier
Identification status
NUL
Hex
37H
70H
40H
00H
Decimal
55
112
64
0
Data quantity
1 byte
1 byte
1 byte
1 byte
Send data
Header
Identifier
Identification status
NUL
Hex
37H
28H
30H - 39H
00H
Decimal
55
40
48 - 57
0
Data quantity
11 byte
1 byte
1-8 bytes
1 byte
CONTROL COMMANDS LIST
CHAPTER 5