Samsung SRP-275CEPG Operation Manual - Page 55

Paper, Description

Page 55 highlights

CHAPTER 5 CONTROL COMMANDS LIST GS ( A [Name] Execute test print [Format] ASCII GS ( A pL pH n m Hex 1D 28 41 02 00 n m Decimal 29 40 65 2 0 n m [Range] 1 ≤ m ≤ 3, 49 ≤ m ≤ 3 [Description] Executes a specified test print. - pL and pH specify the number of parameters following n to (pL + pHx256) bytes. - n specifies paper used for the test print as follows : n Paper 0, 48 Basic sheet (Paper roll) 1, 49 Paper roll 2, 50 - m specifies a type of the test print as follows: n Type 1, 49 Hexadecimal dump 2, 50 Printer status printing 3, 51 Rolling pattern [Notes] This command is effective only when processed at the beginning of the line. After processing this command, the printer performs a software reset. Executing this command puts the printer in the same status as when the power is turned on. Transmit commands or data after confirming the complete software reset. If hexadecimal dump (m = 1, 49) is specified, the printer prints a message. Transmit commands or data after the printing. When processing printer status printing (m = 2, 50), rolling pattern printing (m = 3, 51), ASB status and real-time commands cannot be used. 5-40 GS ( C [Name] Edit NV user memory [Format] ASCII GS ( C pL pH m fn b [c1, c2] [d1...dk] Hex 1D 28 43 pL pH m fn b [c1, c2] [d1...dk] Decimal 29 40 67 pL pH m fn b [c1, c2] [d1...dk] [Description] Deletes, stores, and transmits data in the NV user memory area based on the functions defined in the table below. Also sends status information for the amount of space used in NV RAM and the amount of space still available. - The function code (fn) specifies the function. fn Paper Description 0, 48 Function 0 Deletes specified record 1, 49 Function 1 Stores data in specified record 2, 50 Function 2 Sends data stored in specified record 3, 51 Function 3 Sends capacity currently being used 4, 52 Function 4 Sends available capacity Transmits the key code of the record stored in the 5, 53 Function 5 NV user memory 6, 54 Function 6 Cancels all records stored in the NV user memory [Notes] - pL and pH specify the bytes following parameter pH (m and [a1 b1] ... [ak bk]) as (pL + (pH x_256)). - The other parameters are explained under each of the functions. The command function is defined by the function code (fn). The command operation differs, depending on the function. The NV user memory area is especially provided for storing character data in the non-volatile memory built into the printer. The NV user memory data configuration is as follows: key code + data + terminator. This unit is called a record. - A record is one data processing unit in the NV user memory. It is identified and specified by a key code. One record consists of a group of 4 bytes of data or more. - The key code is a 2-byte ID code used to identify records and is created with parameters c1, c2 in the command. You can specify any desired character code from 32H - 7EH. - Data is the character string specified by d1... dk in Function 1 of the GS ( C command. You cannot specify control codes 00H - 1FH, 7FH as character string data. - The terminator is a 1-byte code, automatically assigned when the printer stores data. 5-41

  • 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-41
GS ( C
[Name]
Edit NV user memory
[Format]
ASCII
GS
(
C
pL
pH
m
fn
b
[c1, c2]
[d1...dk]
Hex
1D
28 43
pL
pH
m
fn
b
[c1, c2]
[d1...dk]
Decimal
29
40
67
pL
pH
m
fn
b
[c1, c2]
[d1...dk]
[Description]
Deletes, stores, and transmits data in the NV user memory area based on the
functions defined in the table below. Also sends status information for the
amount of space used in NV RAM and the amount of space still available.
-
The function code (fn) specifies the function.
- pL and pH specify the bytes following parameter
pH (m and [a1 b1] ... [ak bk]) as (pL + (pH x_256)).
- The other parameters are explained under each of the functions.
[Notes]
The command function is defined by the function code (fn). The command
operation differs, depending on the function.
The NV user memory area is especially provided for storing character data
in the non-volatile memory built into the printer.
The NV user memory data configuration is as follows:
key code + data + terminator. This unit is called a record.
-
A record is one data processing unit in the NV user memory.
It is identified and specified by a key code. One record consists of a
group of 4 bytes of data or more.
-
The key code is a 2-byte ID code used to identify records and is created
with parameters c1, c2 in the command. You can specify any desired
character code from 32H - 7EH.
-
Data is the character string specified by d1... dk in Function 1 of the GS
( C command. You cannot specify control codes 00H — 1FH, 7FH as
character string data.
-
The terminator is a 1-byte code, automatically assigned when the
printer stores data.
5-40
GS ( A
[Name]
Execute test print
[Format]
ASCII
GS
(
A
pL
pH
n
m
Hex
1D
28
41
02
00
n
m
Decimal 29
40
65
2
0
n
m
[Range]
1
m
3, 49
m
3
[Description]
Executes a specified test print.
-
pL and pH specify the number of parameters following n to
(pL + pHx256) bytes.
-
n specifies paper used for the test print as follows :
-
m specifies a type of the test print as follows:
[Notes]
This command is effective only when processed at the beginning of the line.
After processing this command, the printer performs a software reset.
Executing this command puts the printer in the same status as when the
power is turned on. Transmit commands or data after confirming the
complete software reset.
If hexadecimal dump (m = 1, 49) is specified, the printer prints a message.
Transmit commands or data after the printing.
When processing printer status printing (m = 2, 50), rolling pattern printing
(m = 3, 51), ASB status and real-time commands cannot be used.
n
0, 48
1, 49
2, 50
Paper
Basic sheet (Paper roll)
n
0, 48
1, 49
2, 50
Paper
Basic sheet (Paper roll)
fn
0, 48
1, 49
2, 50
3, 51
4, 52
6, 54
Paper
Function 0
Function 1
Function 2
Function 3
Function 4
Function 6
Description
Deletes specified record
Stores data in specified record
Sends data stored in specified record
Sends capacity currently being used
Sends available capacity
Transmits the key code of the record stored in the
NV user memory
Cancels all records stored in the NV user memory
CONTROL COMMANDS LIST
CHAPTER 5
Paper roll
n
1, 49
2, 50
3, 51
Type
Hexadecimal dump
Printer status printing
Rolling pattern
5, 53
Function 5