Samsung SRP-275CEPG Operation Manual - Page 59

GS C pL pH m fn b <Function 4&gt, GS C pL pH m fn b <Function 5&gt

Page 59 highlights

CHAPTER 5 CONTROL COMMANDS LIST GS ( C pL pH m fn b [Format] [Range] [Description] [Notes] 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 (pL + pHx 256) = 3 (pL = 3, pH = 0) m = 0 fn = 4, 52 b = 0 The printer sends the available NV user memory. - 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 Available Capacity (*1) NUL Hex 37H 29H 30H - 39H 00H Decimal 55 41 48 - 57 0 Data quantity 1 byte 1 byte 1-8 bytes 1 byte (*1) The available capacity indicates the number of bytes not being used. - The decimal value for the available capacity is converted to ASCII character data and sent from the most significant digit. Example: When 120 bytes is available (not being used), the number 120 is expressed with 3 bytes of data (Hexadecimal: 31H, 32H, and 30H / decimal numbers = 49, 50, and 48). - See previous [Notes for transmission process] for process sending data group. 5-48 GS ( C pL pH m fn b [Format] [Range] [Description] [Notes] ASCII GS ( C pL pH m fn b Hex 1D 28 43 03 00 00 fn 00 Decimal 9 40 67 3 0 0 fn 0 (pL + pH x 256) = 3 (pL = 3, pH = 0) m = 0 fn = 5, 53 b = 0 Transmits the key code ID for the record stored in the NV user memory. - ESC/POS Handshaking Protocol is required for this function. - When record exists, the printer sends the "Header to NUL" data as shown below: Send data Hex Header 37H Identifier 71H Identification status (*1) (*2) 40H NUL 00H Decimal 55 113 64 0 Data quantity 1 byte 1 byte 1 byte 1 byte (*1) When the quantity of stored data exceeds 40 records, 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 40 records or less. At this time, the identification status of the third byte is 40H or 64 decimal. (*3) The data is the key code. A terminator is 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 (*1) (*2) NUL Hex Decimal 37H 55 71H 113 40H 64 00H 0 Data quantity 1 byte 1 byte 1 byte 1 byte 5-49

  • 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-49
5-48
GS ( C pL pH m fn b <Function 4>
[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 + pHx 256) = 3 (pL = 3, pH = 0)
m = 0
fn = 4, 52
b = 0
[Description]
The printer sends the available NV user memory.
-
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 for the available capacity is converted to ASCII character
data and sent from the most significant digit.
Example:
When 120 bytes is available (not being used), the number 120 is expressed
with 3 bytes of data (Hexadecimal: 31H, 32H, and 30H / decimal numbers
= 49, 50, and 48).
-
See previous [Notes for transmission process] for process sending data
group.
(*1) The available capacity indicates the number of bytes not being used.
Send data
Header
Identifier
Available Capacity (*1)
NUL
Hex
37H
29H
30H - 39H
00H
Decimal
55
41
48 - 57
0
Data quantity
1 byte
1 byte
1-8 bytes
1 byte
GS ( C pL pH m fn b <Function 5>
[Format]
ASCII
GS
(
C
pL
pH
m
fn
b
Hex
1D
28
43
03
00
00
fn
00
Decimal
9
40
67
3
0
0
fn
0
[Range]
(pL + pH x 256) = 3 (pL = 3, pH = 0)
m = 0
fn = 5, 53
b = 0
[Description]
Transmits the key code ID for the record stored in the NV user memory.
-
ESC/POS Handshaking Protocol is required for this function.
[Notes]
-
When record exists, the printer sends the "Header to NUL" data as shown
below:
(*1) When the quantity of stored data exceeds 40 records, 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 40 records or less. At this time, the identification status
of the third byte is 40H or 64 decimal.
(*3) The data is the key code. A terminator is not included in the data.
Send data
Header
Identifier
Identification status (*1) (*2)
NUL
Hex
37H
71H
40H
00H
Decimal
55
113
64
0
Data quantity
1 byte
1 byte
1 byte
1 byte
Send data
Header
Identifier
Identification (*1) (*2)
NUL
Hex
37H
71H
40H
00H
Decimal
55
113
64
0
Data quantity
1 byte
1 byte
1 byte
1 byte
CONTROL COMMANDS LIST
CHAPTER 5
-
If the host specifies a nonexistent record, the printer sends the "Header to
NUL" data shown below :