Overview of Data Processing


Pre processing

Received data is interpreted and categorized as a Real-time command or the other, when it's received. And then the data is stored sequentially in the receive buffer.
In case of a Real-time command, it is processed without a break in the preprocessing.
In case of the other, it is processed in the main processing after stored in the receive buffer.

Main processing

Data in the receive buffer is interpreted sequentially in the main process.
If the data is a normal command, the printer processes the command corresponding to its function; for example, if the data is ESC 3, the printer changes a setting value for the line spacing, and if it is LF, the printer prints the data in the print buffer and feeds the paper one line.
If the data is character data, the printer reads the appropriate font data from the internal memory and writes the image data to the print buffer.
If the data is the other, non-part of command sequence and non-printable code, the printer ignores the data.
After the above process, the interpreted data is deleted from the receive buffer.

Real-time Commands

Commands beginning with DLE (hexadecimal: 10h / decimal: 16) are defined as Real-time commands. They are processed when received, and are ignored as undefined codes in the main process.

Data processing diagram

Graphic
 

Quick Access

  • [Name]
  • [Format]
  • [Range]
  • [Description]
  • [Notes]

ESC/POS® includes patented or patent pending commands. The contents must not be disclosed to third parties.


ESC/POS® Command Reference for TM Printers

Jump to the top