P14-22 Mobile Printer CPCLProgramming Manual
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”.
Note: The media width sensing mechanism has a tolerance of ± 21 dots (at the
standard resolution of 200 d.p.i.)
getvar result Media width as measured in dots
Example Description Get width of installed media
Syntax ! U1 getvar
“media.width_sense.in_dots”
Result 832
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”.
Note: The media width sensing mechanism has a tolerance of ± .1”.
getvar result Media width as measured in inches
Example Description Get width of installed media
Syntax ! U1 getvar
“media.width_sense.in_inches”
Result 4.098