CHAPTER 8 ESC/POS MODE (INTERFACE COMMANDS)
B-EP
Series
8-7
8.9 EXCEPTION
HANDLING
8.9.1 UNDEFINED
CODE
This applies to the codes that fall in the range between 00h and 1Fh in the character code table.
If a code that is not defined in the range is inputted as a command, 1 byte must be discarded, and
the subsequent data must be processed as normal data.
<Ex.> Data string [30H][31H][03H][32H][0AH][33H] is inputted.
[30H] [31H] [03H] [32H] [0AH] [33H]
Data string actually processed
[30H] [31H] [32H] [0AH] [33H]
8.9.2 UNDEFINED
COMMAND
If a code following the [ESC] (1Bh), [FS] (1Ch), or [GS] (1Dh) is not defined as a command, [ESC],
[FS], or [GS] and the following code (2 bytes in total) must be discarded.
<Ex.> Data string [30H][1BH][22H][31H][32H] is inputted.
[30H] [1BH] [22H] [31H] [32H]
Data string actually processed
[30H] [31H] [32H]
8.9.3
SETTING OUT OF DEFINED RANGE
If a numeric value outside the defined range is inputted, the command must be ignored, and an
already set value must not be changed. For commands that have multiple arguments, once a
numeric value out of the defined range is inputted, command processing is aborted, and the
subsequent data is processed as normal data.
<Ex.> Data string [1BH][2DH][05H] is inputted.
[1BH] [2DH] [05H]
Data string actually processed
[05H] is out of the defined range. Therefore, the data string must be discarded. The
already set underline remains unchanged.
Code defined as the [LF] command
Discarded as an undefined code
Discarded as an undefined code
Out of the defined range
Defined as the Underline Set command ([ESC]-)