• The left margin is set to [(nL + nH × 256) × (horizontal motion unit)] inches.
Printable area
Left margin
Printing area width
[Notes]
• This command is only enabled if set at the beginning of the line.
• If the right margin is greater than the printable area, the printing area width is set at
maximum value.
• If the printing area width = 0, it is set at the maximum value.
• The horizontal and vertical motion units are speci
fi
ed by $1D $50. Changing the hori-
zontal or vertical motion unit does not affect the current left margin.
• The $1D $50 command can change the horizontal (and vertical) motion unit. However,
the value cannot be less than the minimum horizontal movement amount and it must be
in even units of the minimum horizontal movement amount.
[Default]
[Reference]
$1D $4C, $1D $50
[Example]
$1D $5E
Printers: KM216H,
KPM216H
[Name]
Execute macro
[Format] ASCII
GS
^
r
t
m
Hex
1D
5E
r
t
m
Decimal
29 94 r t m
[Range] 0
≤
r, t
≤
255
0
≤
m
≤
1
[Description]
Executes a macro.
•
r
speci
fi
es the number of times to execute the macro.
•
t
speci
fi
es the waiting time for executing the macro.
The waiting time is t × 100 msec. for each macro execution.
• m speci
fi
es macro executing mode:
When the LSB of
m
= 0, the macro is executed r times continuously at the interval speci-
fi
ed by
t
.
When the LSB of
m
= 1, after waiting for the period speci
fi
ed by
t
, the LED indicator blinks
and the printer waits for the LINE FEED button to be pressed. After the button is pressed,
the printer executes the macro once. The printer repeats the operation
r
times.
[Notes]
• This command has an interval of (t × 100 msec.) after a macro is executed by
t.
• If this command is received while a macro is being de
fi
ned, the macro de
fi
nition is
aborted and the de
fi
nition is cleared.
• If the macro is not de
fi
ned or if
r
is 0, nothing is executed.
• When the macro is executed by pressing the LINE FEED button (
m
= 1), the paper
cannot be fed using the LINE FEED button.
[Default]
[Reference] $1D
$3A
[Example]
ESC/POS™ Emulation
32
Command Reference
Summary of Contents for KM216H
Page 44: ...ESC POS Emulation 44 Command Reference...
Page 46: ...Commands Index 46 Command Reference...
Page 47: ......