Mobile Printer CPCLProgramming Manual P14-21
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”.
Note: The media width sensing mechanism has a tolerance of ± 2.5 mm
getvar result Media width as measured in millmeters
Example Description Get width of installed media
Syntax ! U1 getvar
“media.width_sense.in_mm”
Result 104.0
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”.
Note: The media width sensing mechanism has a tolerance of ± .25 cm
getvar result Media width as measured in centimeters
Example Description Get width of installed media
Syntax ! U1 getvar
“media.width_sense.in_cm”
Result 10.4