17.16 Common Commands
for All Languages
17.16
DC2+DH File Deletion
File Deletion
Command
DC2
HEX code
<12>
16
Default Value
None
When turning off the power switch
Valid range
Valid range and
Printer operation in progress
term of
command
Media sensor information acquisition
in progress
Error
[Function]
This command is used to delete the registered files.
[Format]
[DC2]DH,aa,b,c(,ddddd,eeeee)
[Parameters]
Symbol
Language
a
File type
b
Deletion type
c
d
File name size (byte)
File name
*1 Only the file name is
specified
e
[Return data format (normal)]
[ACK]<06>
16
[Return data format (when a command error occurs)]
[NAK]<15>
16
[Exception processing]
Parameter
A value outside the range is
name
specified
Language
Command error
File type
Command error
Deletion type
Command error
File name size
Command error
File name
Command error
*1 Note that all data will be deleted even though subsequent data is not appropriate when specifying
deleting all the files.
Terminology
Command error
Invalid receive data
DH
<44>
<48>
16
16
Parameter name
SB: SBPL settings
SZ: SZPL settings
SI: SIPL settings
SD: SDPL settings
ST: STPL settings
0: Font/logo
1: True Type font
0: File specification
1: All files
1 to 255
Data including the following character
groups
Alphabet
Numeral
Hyphen ("-")
Underscore ("_")
Period (".")
Exception condition
Description
The file is not deleted. The data received after a command
error is determined is not considered as a parameter of this
command.
The subsequent data is ignored.
DC2+DH
Parameter
aa,b,c(,ddddd,eeeee)
The command cannot be received during the printer
operation. ([NAK] return)
The command cannot be received while sensor
information is being acquired. ([NAK] return)
Commands can be received even if an error is occurring.
Valid range
The specified size and received
size are different
Command error
Command error
0: Command error
1: Invalid receive data *1
Command error
374
Acquisition method
Two characters fixed
acquisition
One character fixed
acquisition
One character fixed
acquisition
Acquired up to ","
Acquired up to the
file name size