Samsung SRP-275CEPG Operation Manual - Page 56

Notes for transmitting processing of the block data, Notes for ESC/POS Handshaking Protocol

Page 56 highlights

CHAPTER 5 CONTROL COMMANDS LIST NV user memory data remains valid until the host sends a deletion or storage function command. Data is written to the non-volatile memory by Function 1, 2, or 3. When using those commands, note the following: - The printer may be BUSY while the functions are performing. The printer does not process any received data while it is BUSY; therefore, under no circumstances should the host send data at this time. Note the rules below for the operating NV memory (store data / cancel data): - Paper feeding is disabled by the paper FEED button. - The printer ignores real-time commands. - Even if "ASB is enabled" is specified, the printer does not send ASB status. You can use the NV user memory as an index of note for the following: - Customize information: index of the NV bit image definition contents. - Maintenance information: ink ribbon replacement date, telephone number of company, etc. [Notes for transmitting processing of the block data] - Data is send by Function 2, 3, 4, or 5. When you use these functions, obey the following rules. - When the host PC transmits the function data, transmit the next data after receiving the corresponding data from the printer. - With serial interface printers, use this function when the host is READY. - With a parallel interface printer, data sent (excluding ASB status) with this command ("Header to NUL") is temporarily stored in the printer send buffer, as with other data. When the host goes into Reverse mode, the printer then sends the data sequentially from the beginning of the send buffer. When using this command, promptly change into Reverse mode to start the data receive process. - You cannot use ASB status and real-time commands while "Header to NUL" data is being sent. - When communication with the printer uses XON/XOFF control with serial interface, the XOFF code may interrupt the "Header to NUL" data string. - The transmission information for each function can be identified to other transmission data according to specific data of the transmission data block. When the header transmitted by the printer is [hex = 37H/decimal =55], treat NUL [hex = 00H/decimal =0] as a data group and identify it according to the combination of the header and the identifier. 5-42 [Notes for ESC/POS Handshaking Protocol] Use ESC/POS Handshaking Protocol below for Functions 2 and 5: identifier. Step Host process 1 Send GS ( C . 2 Receive data from printer. 3 Send response code. (*1) Printer process Start processing of Function 2. (Read specified record back to host.) Send data in memory. Continue processing (*2) (*3) according to response. (*1) Response code ASCII Hex ACK 06 NAK 15 CAN 18 Decimal 6 21 24 Request Send next data. Resend previously sent data. Cancel send process. (*2) Processing according to response (unsent data exists, identified by send data set "Identification status") Response code ACK NAK CAN Process Start send processing for next data. Resend previously sent data. End processing for this command. Processing the codes except for ACK, NAK, and CAN performs the same processing as CAN. (*3) Processing according to response (no unsent data, identified by send data set "Identification status") Response code ACK, CAN NAK Process End processing for this command. Resend previously sent data. Record data definition area capacity is 64 KB. 5-43

  • 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-43
5-42
NV user memory data remains valid until the host sends a deletion or
storage function command.
Data is written to the non-volatile memory by Function 1, 2, or 3.
When using those commands, note the following:
-
The printer may be BUSY while the functions are performing.
The printer does not process any received data while it is BUSY;
therefore, under no circumstances should the host send data at this time.
Note the rules below for the operating NV memory (store data / cancel data):
-
Paper feeding is disabled by the paper FEED button.
-
The printer ignores real-time commands.
-
Even if "ASB is enabled" is specified, the printer does not send
ASB status.
You can use the NV user memory as an index of note for the following:
-
Customize information: index of the NV bit image definition contents.
-
Maintenance information: ink ribbon replacement date, telephone
number of company, etc.
[
Notes for transmitting processing of the block data
]
-
Data is send by Function 2, 3, 4, or 5. When you use these functions, obey the following
rules.
-When the host PC transmits the function data, transmit the next data after receiving
the corresponding data from the printer.
-With serial interface printers, use this function when the host is READY.
-With a parallel interface printer, data sent (excluding ASB status) with this command
("Header to NUL") is temporarily stored in the printer send buffer, as with other data.
When the host goes into Reverse mode, the printer then sends the data sequentially
from the beginning of the send buffer. When using this command, promptly change
into Reverse mode to start the data receive process.
-
You cannot use ASB status and real-time commands while "Header to NUL" data is
being sent.
-
When communication with the printer uses XON/XOFF control with serial interface,
the XOFF code may interrupt the "Header to NUL" data string.
-
The transmission information for each function can be identified to other transmission
data according to specific data of the transmission data block. When the header
transmitted by the printer is [hex = 37H/decimal =55], treat NUL [hex = 00H/decimal =0]
as a data group and identify it according to the combination of the header and the
identifier.
[
Notes for ESC/POS Handshaking Protocol
]
Use ESC/POS Handshaking Protocol below for Functions 2 and 5: identifier.
Step
2
3
Host process
Receive data from printer.
Send response code. (*1)
Printer process
Start processing of Function 2.
(Read specified record back to host.)
Send data in memory.
Continue processing (*2) (*3) according to response.
(*1) Response code
ASCII
ACK
NAK
CAN
Hex
06
15
18
Decimal
6
21
24
Request
Send next data.
Resend previously sent data.
Cancel send process.
(*2) Processing according to response
(unsent data exists, identified by send data set "Identification status")
Response code
ACK
NAK
CAN
Process
Start send processing for next data.
Resend previously sent data.
End processing for this command.
(*3) Processing according to response
(no unsent data, identified by send data set "Identification status")
Response code
ACK, CAN
NAK
Process
End processing for this command.
Resend previously sent data.
Processing the codes except for ACK, NAK, and CAN performs the same processing as CAN.
Record data definition area capacity is 64 KB.
CONTROL COMMANDS LIST
CHAPTER 5
1
Send GS ( C <Function 2>.