Samsung SRP-275 Operator's Manual page 37

Pos impact dot matrix printer
Hide thumbs Also See for SRP-275:
Table of Contents

Advertisement

CHAPTER 5
CONTROL COMMANDS LIST
5.1 Command notation
X X X X
[Name]
The name of the command.
[Format]
The code sequence.
[Range]
Gives the allowable ranges for the arguments.
[Description] Describes the
command's function.
[Notes]
Provides important information on setting and using the printer command, if necessary.
Item(s) marked with * indicates "important notice".
[Default]
Gives the default values (if any) for the command arguments.
[Reference] Lists related commands.
ASCII indicates the ASCII equivalents.
Hex indicates the hexadecimal equivalents.
Decimal indicates the decimal equivalents.
[ ] k indicates the contents of the [ ] should be repeated k times.
5.2 Explanation of terms
Reception buffer
The reception buffer is a buffer that stores, as is, the data received from the host
(the reception data). The reception data is stored in the reception buffer temporarily,
and is then processed sequentially.
Print buffer
The print buffer is a buffer that stores the image data to be printed.
Print buffer full
This is the state where the print buffer is full. If new print data is input while the print buffer is full,
the data in the print buffer is printed out and a line feed is executed.
This is the same operation as the LF operation.
Start of line
The start of line state satisfies the following condition:
- There is no print data (including spaces and portions of data skipped due to HT) currently
in the print buffer.
Printable area
The maximum range within which printing is possible under the printer specifications.
Inch
A unit of length. One inch is 25.4mm.
MSB
Most Significant Bit.
LSB
Least Significant Bit.
5-2
5.3 Exception processing
5.3.1 Undefined codes
This term refers to the codes ranging from 00H to 1FH in the character code table. If a code in this
range that is not defined as a command is input, that code (one byte) is read in and discarded,
and subsequent data is processed as normal data.
Example : 30H, 31H, 03H, 32H, 0AH, 33H
If the above data string is input, the printer reads in and discards "03H" as an undefined code.
Note that 0AH is defined as a command (LF). As a result, the data string that is actually processed
is: 30H, 31H, 32H, 0AH, 33H
5.3.2 Undefined commands
If the data following ESC (1BH) or GS (1DH) is not defined as a command, then the two bytes
(ESC/GS and the code that follows) are read in and discarded.
Example: 30H, 1BH, 22H, 31H, 32H
If the above data string is input, the printer discards the data 1BH and 22H as undefined commands.
As a result, the data string that is actually processed is: 30H, 31H, 32H
5.3.3 Settings outside the defined range
If a value outside of the defined range is input for a command that takes parameters, that command
is ignored and the previous value for that setting remains unchanged. In the case of a command that
takes multiple parameters, command processing is halted the moment that a value outside of the
defined range is input and subsequent values are processed as normal data.
Example:1BH, 52H, 15H
If the above data string is input, 1BH and 52H are defined as a command (ESC R), but the
parameter 15H is outside of the defined range. As a result, the printer reads in and discards the data
string 1BH, 52H, 15H. Accordingly, the previously set international character set is not changed.
5-3

Advertisement

Table of Contents
loading

Table of Contents