Mobile Printing Systems
CPCL Programming Manual
Section 14
Configuration/
Control
Commands
pg. 14-64
continued
Odometer Parameters
odometer.label_dot_length
type: getvar
Reports the length of the last label printed (or fed), in dots. The label dot-length is set to zero when the
printer is turned on. This parameter is updated every time the printer feeds or prints a label and detects a
marker, either gap or bar, while printing or feeding.
getvar result This will return the length of the last label printed (in dots)
Example
Description This command instructs the printer to respond with the length of
the last label printed
Syntax
! U1 getvar “odometer.label_dot_length”
Result “416”
odometer.latch_open_count
type: getvar; setvar
This parameter refers to the number of times the printer’s latch has been opened. The latch open count
can be set to an initial value and incremented every time the latch is opened. Typically the latch is opened
each time a roll of media is loaded.
getvar result This will return the number of times the printer’s latch has been opened
Example
Description This command instructs the printer to respond with the latch_
open count
Syntax ! U1 getvar “odometer.latch_open_count”
Result “100”
setvar choices
“0” - “65535”
Default “0”
Example
Description This command instructs the printer to set the latch_open count to
“0”
Syntax ! U1 setvar “odometer.latch_open_count” “0”
Result The user latch open count odometer will be set to 0
Comments to this Manuals