45
2-inch Label Technical Manual
printer files.
file.rename
do
This command can be used to rename printer files.
file.run
do
This command can be used to execute a batch file or
label file stored in the printer’s file system.
file.type
do
This command can be used to retrieve contents of a
file.
Printer Machanism Parameters
head.latch
getvar
This parameter refers to the status of the printer head
latch. The head latch must be closed for printing.
media.width_sense.enable
setvar
“on”
“off”
This parameter turns the Media Width Sensing option
“on” or “off”. This parameter only applies to printers
equipped with the Media Width Sensing option, other’s
will ignore this command.
default “off”
media.width_sense.in_mm
getvar
This parameter returns the current media width
installed in the printer measured in millimeters. The
“media.width_sense.enable” parameter must be set to
“on”.
media.width_sense.in_cm
getvar
This parameter returns the current media width
installed in the printer measured in centimeters. The
“media.width_sense.enable” parameter must be set to
“on”.
media.width_sense.in_dots
getvar
This parameter returns the current media width
installed in the printer measured in dots. The
“media.width_sense.enable” parameter must be set to
“on”.
media.width_sense.in_inches
getvar
This parameter returns the current media width
installed in the printer measured in inches. The
“media.width_sense.enable” parameter must be set to
“on”.
Media Parameters
getvar
media.sense_mode
setvar
“bar”
“gap”
This parameter refers to media sense mode.
default “gap”
media.status
getvar
This parameter refers to the paper status.
getvar
media.tof
setvar
“0”
~
“255”
This parameter refers to the print’s top-of-form setting.
The TOF setting is used to program the distance
between the top-of-form and the end of the next
(positive value) or previous (negative value) eye-sense
mark or gap. The eye-sense-mark or gap that is closer
to the top-of form should be used for top-of-form
setting. Refer to the SETTOF command in Section 9 for
more detailed information on the TOF setting.
default “16”
getvar
media.type
setvar
“label”
This parameter refers to the media type that is being
used.