Commands¶
Pure byte encoders for the VKP80III command set. Every function returns the raw
bytes for one command; Printer is a thin chainable layer over these.
vkp80iii.commands ¶
Low-level command encoder for the VKP80III (native VKP80III emulation).
Every function here is pure: it validates its arguments and returns the exact byte sequence the printer expects. Nothing in this module performs I/O, which makes the whole command set unit-testable without hardware.
Byte sequences and ranges follow the Custom VKP80III Commands Manual (doc. 915DX010100, VKP80III emulation chapter). Where the manual contains a known typo, the code follows the corrected behaviour and a comment points it out.
The high-level :class:~vkp80iii.printer.Printer is a thin convenience layer
on top of these builders; advanced users can call these directly and send the
bytes through any :class:~vkp80iii.transport.Transport.
initialize ¶
initialize() -> bytes
ESC @ -- clear print buffer and restore power-on settings.
Source code in src/vkp80iii/commands.py
90 91 92 | |
select_peripheral ¶
select_peripheral(
enabled: bool = True, passthrough: bool = False
) -> bytes
ESC = -- enable/disable this device (bit0) and 2nd-serial pass-through (bit7).
Source code in src/vkp80iii/commands.py
95 96 97 98 | |
enable_keys ¶
enable_keys(enabled: bool = True) -> bytes
ESC c 5 -- enable/disable the front keys panel.
Note: once disabled, the panel only comes back after a device reset.
Source code in src/vkp80iii/commands.py
101 102 103 104 105 106 | |
set_print_quality ¶
set_print_quality(quality: PrintQuality | int) -> bytes
GS 0xF0 -- select print quality/speed (high quality/normal/high speed).
Source code in src/vkp80iii/commands.py
109 110 111 | |
set_motion_units ¶
set_motion_units(x: int = 0, y: int = 0) -> bytes
GS P -- set horizontal (1/x") and vertical (1/y") motion units. 0 = default.
Source code in src/vkp80iii/commands.py
114 115 116 | |
set_density ¶
set_density(n: int = 4) -> bytes
GS | (0x1D 0x7C) -- print density. n: 0x02..0x06 = -25%/-12.5%/0%/+12.5%/+25% (0x04 = 0%).
Source code in src/vkp80iii/commands.py
119 120 121 122 123 | |
data_logger ¶
data_logger(action: int) -> bytes
FS G (0x1C 0x47) -- 0 = send all flash log files to host, 1 = delete them.
Source code in src/vkp80iii/commands.py
126 127 128 129 130 | |
set_motion_units_ext ¶
set_motion_units_ext(x: int = 0, y: int = 0) -> bytes
GS 0xD0 -- 16-bit motion units: horiz 1/x" (x<=2040), vert 1/y" (y<=4080).
Source code in src/vkp80iii/commands.py
133 134 135 136 137 138 139 | |
lf ¶
lf() -> bytes
LF -- print buffer and feed one line.
Source code in src/vkp80iii/commands.py
147 148 149 | |
cr ¶
cr() -> bytes
CR -- print + carriage return (acts like LF only if Autofeed=CR enabled).
Source code in src/vkp80iii/commands.py
152 153 154 | |
form_feed ¶
form_feed() -> bytes
ESC FF -- print the data buffered in page mode.
Source code in src/vkp80iii/commands.py
157 158 159 | |
feed_units ¶
feed_units(n: int) -> bytes
ESC J -- print and feed n vertical motion units.
Source code in src/vkp80iii/commands.py
162 163 164 | |
feed_lines ¶
feed_lines(n: int) -> bytes
ESC d -- print and feed n lines (clamped to 254 by firmware).
Source code in src/vkp80iii/commands.py
167 168 169 | |
backspace ¶
backspace() -> bytes
BS -- move back one character position (allows overprinting).
Source code in src/vkp80iii/commands.py
172 173 174 | |
horizontal_tab ¶
horizontal_tab() -> bytes
HT -- advance to the next horizontal tab stop.
Source code in src/vkp80iii/commands.py
177 178 179 | |
line_spacing_1_8 ¶
line_spacing_1_8() -> bytes
ESC 0 -- set line spacing to 1/8 inch.
Source code in src/vkp80iii/commands.py
187 188 189 | |
line_spacing_1_6 ¶
line_spacing_1_6() -> bytes
ESC 2 -- set line spacing to 1/6 inch (default).
Source code in src/vkp80iii/commands.py
192 193 194 | |
set_line_spacing ¶
set_line_spacing(n: int) -> bytes
ESC 3 -- set line spacing to n vertical motion units.
Source code in src/vkp80iii/commands.py
197 198 199 | |
select_print_modes ¶
select_print_modes(
*,
font_b: bool = False,
bold: bool = False,
double_height: bool = False,
double_width: bool = False,
italic: bool = False,
underline: bool = False,
) -> bytes
ESC ! -- set several print modes at once (single byte bitmask).
Source code in src/vkp80iii/commands.py
215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 | |
set_right_spacing ¶
set_right_spacing(n: int) -> bytes
ESC SP -- set right-side character spacing (n motion units, max ~32 mm).
Source code in src/vkp80iii/commands.py
241 242 243 | |
bold ¶
bold(on: bool = True) -> bytes
ESC E -- emphasized (bold) on/off.
Source code in src/vkp80iii/commands.py
246 247 248 | |
double_strike ¶
double_strike(on: bool = True) -> bytes
ESC G -- double-strike on/off (visually identical to bold here).
Source code in src/vkp80iii/commands.py
251 252 253 | |
italic ¶
italic(on: bool = True) -> bytes
ESC 4 -- italic on/off.
Source code in src/vkp80iii/commands.py
256 257 258 | |
underline ¶
underline(
mode: Underline | int = Underline.SINGLE,
) -> bytes
ESC - -- underline off/1-dot/2-dot.
Source code in src/vkp80iii/commands.py
261 262 263 264 265 266 | |
upside_down ¶
upside_down(on: bool = True) -> bytes
ESC { -- upside-down (180°) printing. Only valid at line start.
Source code in src/vkp80iii/commands.py
269 270 271 | |
rotate_90 ¶
rotate_90(on: bool = True) -> bytes
ESC V -- 90° clockwise rotated print mode.
Source code in src/vkp80iii/commands.py
274 275 276 | |
reverse ¶
reverse(on: bool = True) -> bytes
GS B -- white-on-black reverse printing.
Source code in src/vkp80iii/commands.py
279 280 281 | |
select_font ¶
select_font(font: Font | int) -> bytes
ESC M -- select character font A/B (cell size also depends on pitch).
Source code in src/vkp80iii/commands.py
284 285 286 287 288 289 | |
select_charset ¶
select_charset(country: CharsetCountry | int) -> bytes
ESC R -- select an international character set (0..10).
Source code in src/vkp80iii/commands.py
292 293 294 295 296 297 | |
select_code_page ¶
select_code_page(page: CodePage | int) -> bytes
ESC t -- select the active code page for the International font.
Source code in src/vkp80iii/commands.py
300 301 302 | |
char_size ¶
char_size(width: int = 1, height: int = 1) -> bytes
GS ! -- set character width/height multiplier (each 1..8).
Source code in src/vkp80iii/commands.py
305 306 307 308 309 310 311 312 | |
justify ¶
justify(mode: Justify | int) -> bytes
ESC a -- left/center/right justification.
Source code in src/vkp80iii/commands.py
320 321 322 323 324 325 | |
set_absolute_position ¶
set_absolute_position(n: int) -> bytes
ESC $ -- set absolute horizontal print position (n motion units from line start).
Source code in src/vkp80iii/commands.py
328 329 330 | |
set_relative_position ¶
set_relative_position(n: int) -> bytes
ESC \ -- move print position relative to current (negative => 65536+n).
Source code in src/vkp80iii/commands.py
333 334 335 336 337 | |
set_tab_stops ¶
set_tab_stops(*columns: int) -> bytes
ESC D -- set up to 32 horizontal tab stops (ascending columns); none clears all.
The printer stops parsing tab stops at the first value that is not greater than the previous one, so columns must be strictly ascending.
Source code in src/vkp80iii/commands.py
340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 | |
set_left_margin ¶
set_left_margin(n: int) -> bytes
GS L -- set left margin (n horizontal motion units). Valid at line start.
Source code in src/vkp80iii/commands.py
357 358 359 | |
set_print_area_width ¶
set_print_area_width(n: int) -> bytes
GS W -- set printing-area width (n horizontal motion units; 0 = max).
Source code in src/vkp80iii/commands.py
362 363 364 365 366 | |
cut ¶
cut(feed: int | None = None) -> bytes
GS V -- total cut.
cut()-> total cut at the current position (GS V 0).cut(feed=n)-> feednmotion units, then total cut (GS V 65 n).
The VKP80III only supports a total cut (there is no partial cut); the
manual's alignment workflow uses :func:total_cut (ESC i).
Source code in src/vkp80iii/commands.py
374 375 376 377 378 379 380 381 382 383 384 385 | |
total_cut ¶
total_cut() -> bytes
ESC i -- total cut (the cut used in the manual's alignment workflows).
Source code in src/vkp80iii/commands.py
388 389 390 | |
set_black_mark_distance ¶
set_black_mark_distance(tenths_mm: int) -> bytes
GS 0xE7 -- alignment-point distance from black-mark edge, in 1/10 mm.
Range -50..+999 (1/10 mm), i.e. -5 mm .. +99.9 mm. Stored in NVRAM with a limited number of write cycles -- do not send this per ticket.
Byte order follows the manual's worked examples (high/sign byte first), which contradict the printed [Format]; see the manual note.
Source code in src/vkp80iii/commands.py
398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 | |
align_to_printhead ¶
align_to_printhead() -> bytes
GS 0xF6 -- feed until the black mark aligns under the print head (start of ticket).
Source code in src/vkp80iii/commands.py
417 418 419 | |
align_to_cutter ¶
align_to_cutter() -> bytes
GS 0xF8 -- feed until the black mark aligns at the cutter (end of ticket).
Source code in src/vkp80iii/commands.py
422 423 424 | |
paper_recovery ¶
paper_recovery(mm: int = 11) -> bytes
FS C1 -- pull the post-cut stub back toward the head (0..11 mm, 11 = full).
Source code in src/vkp80iii/commands.py
427 428 429 430 431 | |
set_virtual_paper_end ¶
set_virtual_paper_end(cm: int) -> bytes
GS 0xE6 -- residual paper length (cm) after low-paper before virtual paper-end.
Source code in src/vkp80iii/commands.py
434 435 436 | |
set_min_ticket_length ¶
set_min_ticket_length(mm: int) -> bytes
GS 0xE8 -- minimum ticket length in mm (54..255; default 70).
Source code in src/vkp80iii/commands.py
439 440 441 442 443 | |
collect_mode ¶
collect_mode(enabled: bool) -> bytes
ESC C -- COLLECT mode: print uncut tickets into the bin; disabling cuts the batch.
Source code in src/vkp80iii/commands.py
451 452 453 | |
eject_mode ¶
eject_mode() -> bytes
ESC F -- enable EJECT (dispenser-continuous) mode; closed by present_ticket.
Source code in src/vkp80iii/commands.py
456 457 458 | |
set_presentation_offset ¶
set_presentation_offset(mm: int) -> bytes
FS K -- extra presentation offset (mm) added to the fixed 150 mm loop in EJECT mode.
Source code in src/vkp80iii/commands.py
461 462 463 | |
present_ticket ¶
present_ticket(
steps: int = 2,
*,
blink_led: bool = False,
retract: bool = False,
timeout_s: int = 0,
) -> bytes
FS P -- cut and present the ticket at the bezel.
steps-- presentation length in 5 mm steps.blink_led-- blink the bezel mouth LED while presented.retract-- aftertimeout_sretract (True) or eject (False). Retract falls back to eject if disabled in the printer setup.timeout_s-- seconds to wait before eject/retract; 0 = hold until the next print job.
Source code in src/vkp80iii/commands.py
466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 | |
request_status ¶
request_status(
kind: StatusType | int = StatusType.PRINTER,
) -> bytes
DLE EOT n -- real-time status request (replied to even when busy).
Source code in src/vkp80iii/commands.py
491 492 493 | |
request_full_status ¶
request_full_status() -> bytes
DLE EOT 0x14 -- request the 6-byte full status block.
Source code in src/vkp80iii/commands.py
496 497 498 | |
transmit_paper_sensor ¶
transmit_paper_sensor() -> bytes
ESC v -- transmit the 1-byte paper-sensor status (near-end + end).
Source code in src/vkp80iii/commands.py
501 502 503 | |
auto_status_back ¶
auto_status_back(
paper: bool = False,
user: bool = False,
recoverable: bool = False,
unrecoverable: bool = False,
) -> bytes
GS 0xE0 -- enable/disable unsolicited automatic full-status-back per category.
Source code in src/vkp80iii/commands.py
506 507 508 509 510 511 512 513 514 515 516 517 518 519 | |
transmit_device_id ¶
transmit_device_id(n: int = 255) -> bytes
GS I -- transmit device id/type/ROM version (n: 1/2/3 or 0xFF).
Source code in src/vkp80iii/commands.py
522 523 524 | |
read_paper_remaining ¶
read_paper_remaining() -> bytes
GS 0xE1 -- transmit remaining paper before virtual paper-end, e.g. b'510cm'.
Source code in src/vkp80iii/commands.py
527 528 529 | |
read_cut_count ¶
read_cut_count() -> bytes
GS 0xE2 -- transmit total autocutter cuts, e.g. b'785cuts'.
Source code in src/vkp80iii/commands.py
532 533 534 | |
read_printed_length ¶
read_printed_length() -> bytes
GS 0xE3 -- transmit total printed paper length, e.g. b'38890cm'.
Source code in src/vkp80iii/commands.py
537 538 539 | |
read_retract_count ¶
read_retract_count() -> bytes
GS 0xE4 -- transmit number of retractions, e.g. b'512ret'.
Source code in src/vkp80iii/commands.py
542 543 544 | |
read_powerup_count ¶
read_powerup_count() -> bytes
GS 0xE5 -- transmit number of power-ups, e.g. b'512on'.
Source code in src/vkp80iii/commands.py
547 548 549 | |
led_bar ¶
led_bar(
mode: LedMode | int,
freq: LedFlashFreq | int | None = None,
) -> bytes
FS B -- LED bar on/off/steady/reset; freq required for FLASH mode.
Source code in src/vkp80iii/commands.py
557 558 559 560 561 562 563 564 | |
led_color ¶
led_color(
rgb: tuple[int, int, int],
*,
target: str = "immediate",
persist: bool = False,
) -> bytes
FS L -- set an LED bar colour.
target--"immediate"(turn the bar on now in this colour),"background"or"foreground"(used by flashing / shown afterpresent_ticket).persist-- write to FLASH (survives power-off) instead of RAM. Only meaningful for"background"/"foreground"; for"immediate"the bar is always turned on now (RAM) andpersistis ignored, since there is no single op that both lights the bar and writes flash.
Source code in src/vkp80iii/commands.py
588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 | |
led_off ¶
led_off() -> bytes
FS B -- turn the LED bar off, stopping any mode (incl. a led_bar
FLASH). The FS L colour-off (0x6d) does not stop an FS B
flash, so "off" must go through FS B.
Source code in src/vkp80iii/commands.py
612 613 614 615 616 | |
led_rainbow ¶
led_rainbow(
enabled: bool = True, *, persist: bool = False
) -> bytes
FS L -- enable/disable rainbow mode (cycled during ticket presentation).
Source code in src/vkp80iii/commands.py
619 620 621 622 | |
led_defaults ¶
led_defaults() -> bytes
FS L -- restore default LED colours (fg violet, bg green).
Source code in src/vkp80iii/commands.py
625 626 627 | |
print_logo ¶
print_logo(
number: int,
*,
justify: Justify | int = Justify.LEFT,
rotate: bool = False,
border_dots: int = 0,
position_dots: int | None = None,
) -> bytes
FS 0x93 -- print a stored logo by its 2-byte id.
position_dots selects user-defined horizontal placement (overrides
justify).
Source code in src/vkp80iii/commands.py
635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 | |
store_logo_flash ¶
store_logo_flash(
number: int,
width: int,
height: int,
data: bytes,
name: str = "LOGO.BMP",
) -> bytes
FS 0x94 -- store a 1-bit image into flash as logo number.
widthmust be a multiple of 16 (pixels).data--(width // 8) * heightbytes, row-major, MSB = leftmost dot, 1 = black (same packing as :func:raster_image).name-- up to 16 bytes, NUL-padded (an extension is added by the device if absent).
The printer replies <PC1\xAA> on success / <PC0> on failure; use
:meth:vkp80iii.printer.Printer.upload_logo, which reads and checks it.
Source code in src/vkp80iii/commands.py
661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 | |
print_graphic_bank ¶
print_graphic_bank(
source: int, start_line: int = 1, num_lines: int = 862
) -> bytes
ESC 0xFA -- print a graphic page/logo (source 0=RAM page, 1=logo1, 2=logo2).
The graphic area is 862 dot lines tall; start_line + num_lines must
stay within it.
Source code in src/vkp80iii/commands.py
698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 | |
raster_image ¶
raster_image(
width_bytes: int,
height: int,
data: bytes,
mode: int = 0,
) -> bytes
GS v 0 -- print a raster (row-major) bit image.
width_bytes-- bytes per row = ceil(width_in_dots / 8).height-- number of dot rows.data--width_bytes * heightbytes, MSB = leftmost dot, 1 = black.mode-- 0 normal, 1 double-width, 2 double-height, 3 quadruple.
Source code in src/vkp80iii/commands.py
720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 | |
define_downloaded_bit_image ¶
define_downloaded_bit_image(
x_bytes: int, y_bytes: int, data: bytes
) -> bytes
GS * -- define the downloaded bit image (x_bytes*y_bytes <= 1536).
Source code in src/vkp80iii/commands.py
745 746 747 748 749 750 751 752 753 754 755 756 | |
print_downloaded_bit_image ¶
print_downloaded_bit_image(mode: int = 0) -> bytes
GS / -- print the image defined by define_downloaded_bit_image (mode 0..3).
Source code in src/vkp80iii/commands.py
759 760 761 762 763 | |
set_barcode_height ¶
set_barcode_height(dots: int) -> bytes
GS h -- set 1D barcode height in dots (1..255; default 162).
Source code in src/vkp80iii/commands.py
771 772 773 774 775 | |
set_barcode_width ¶
set_barcode_width(module: int) -> bytes
GS w -- set 1D barcode module width (1..6; default 3).
Source code in src/vkp80iii/commands.py
778 779 780 781 782 | |
set_hri_position ¶
set_hri_position(position: HRIPosition | int) -> bytes
GS H -- set HRI text position (none/above/below/both).
Source code in src/vkp80iii/commands.py
785 786 787 788 789 790 | |
set_hri_font ¶
set_hri_font(font: HRIFont | int) -> bytes
GS f -- set HRI text font A/B.
Source code in src/vkp80iii/commands.py
793 794 795 796 797 798 | |
barcode ¶
barcode(
symbology: Barcode | int, data: bytes | str
) -> bytes
GS k -- print a 1D barcode (length-prefixed "format 2" form).
For CODE128 the data must begin with a code-set selector, e.g. "{B"
before ASCII text. str data is encoded as Latin-1. Data length and (for
the numeric symbologies) the digits-only character set are validated.
Source code in src/vkp80iii/commands.py
821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 | |
pdf417_columns ¶
pdf417_columns(n: int = 0) -> bytes
GS ( k Fn065 -- PDF417 data columns (0 = auto, 1..30).
Source code in src/vkp80iii/commands.py
854 855 856 857 858 | |
pdf417_rows ¶
pdf417_rows(n: int = 0) -> bytes
GS ( k Fn066 -- PDF417 rows (0 = auto, else 3..20).
Source code in src/vkp80iii/commands.py
861 862 863 864 865 | |
pdf417_module_width ¶
pdf417_module_width(n: int = 3) -> bytes
GS ( k Fn067 -- PDF417 module width (2..8).
Source code in src/vkp80iii/commands.py
868 869 870 871 872 | |
pdf417_module_height ¶
pdf417_module_height(n: int = 3) -> bytes
GS ( k Fn068 -- PDF417 module height (2..8).
Source code in src/vkp80iii/commands.py
875 876 877 878 879 | |
pdf417_error_correction ¶
pdf417_error_correction(
value: int = 1,
mode: PDF417ErrorMode | int = PDF417ErrorMode.RATIO,
) -> bytes
GS ( k Fn069 -- PDF417 ECC by fixed level (0..8) or ratio (1..40 => n*10%).
Source code in src/vkp80iii/commands.py
882 883 884 885 886 887 888 889 890 891 892 893 | |
pdf417_store ¶
pdf417_store(data: bytes) -> bytes
GS ( k Fn080 -- store PDF417 data in the symbol save area.
Source code in src/vkp80iii/commands.py
896 897 898 | |
pdf417_print ¶
pdf417_print() -> bytes
GS ( k Fn081 -- encode and print the stored PDF417 data.
Source code in src/vkp80iii/commands.py
901 902 903 | |
qr_model ¶
qr_model(model: QRModel | int = QRModel.MODEL2) -> bytes
GS ( k Fn165 -- QR model (Model 2 / MicroQR).
Source code in src/vkp80iii/commands.py
913 914 915 | |
qr_version ¶
qr_version(n: int = 0) -> bytes
GS ( k Fn166 -- QR version (0 = auto, 1..40).
Source code in src/vkp80iii/commands.py
918 919 920 921 922 | |
qr_module_size ¶
qr_module_size(n: int = 6) -> bytes
GS ( k Fn167 -- QR module dot size (2..24).
Source code in src/vkp80iii/commands.py
925 926 927 928 929 | |
qr_error_correction ¶
qr_error_correction(
level: QRErrorCorrection | int = QRErrorCorrection.M,
) -> bytes
GS ( k Fn169 -- QR error-correction level (AUTO/L/M/Q/H).
Source code in src/vkp80iii/commands.py
932 933 934 | |
qr_store ¶
qr_store(data: bytes) -> bytes
GS ( k Fn180 -- store QR data in the symbol save area.
Source code in src/vkp80iii/commands.py
937 938 939 | |
qr_print ¶
qr_print() -> bytes
GS ( k Fn181 -- print the stored QR data.
Source code in src/vkp80iii/commands.py
942 943 944 | |
qr_transmit_size ¶
qr_transmit_size() -> bytes
GS ( k Fn182 -- transmit the size of the stored QR symbol.
Source code in src/vkp80iii/commands.py
947 948 949 | |
aztec_type ¶
aztec_type(t: AztecType | int = AztecType.FULL) -> bytes
GS ( k FnP65 -- AZTEC type (full / rune).
Source code in src/vkp80iii/commands.py
959 960 961 | |
aztec_module_size ¶
aztec_module_size(n: int = 6) -> bytes
GS ( k FnP67 -- AZTEC module dot size (2..24).
Source code in src/vkp80iii/commands.py
964 965 966 967 968 | |
aztec_size ¶
aztec_size(n: int = 0) -> bytes
GS ( k FnP68 -- AZTEC layout/size (0 = auto, 1..36).
Source code in src/vkp80iii/commands.py
971 972 973 974 975 | |
aztec_error_correction ¶
aztec_error_correction(n: int = 0) -> bytes
GS ( k FnP69 -- AZTEC error correction (0 = auto, 1..4).
Source code in src/vkp80iii/commands.py
978 979 980 981 982 | |
aztec_store ¶
aztec_store(data: bytes) -> bytes
GS ( k FnP80 -- store AZTEC data in the symbol save area.
Source code in src/vkp80iii/commands.py
985 986 987 | |
aztec_print ¶
aztec_print() -> bytes
GS ( k FnP81 -- print the stored AZTEC data.
Source code in src/vkp80iii/commands.py
990 991 992 | |
datamatrix_encoding ¶
datamatrix_encoding(
enc: DataMatrixEncoding | int = DataMatrixEncoding.AUTO,
) -> bytes
GS ( k FnQ65 -- DataMatrix encoding scheme.
Source code in src/vkp80iii/commands.py
1002 1003 1004 | |
datamatrix_rotation ¶
datamatrix_rotation(rotate: bool = False) -> bytes
GS ( k FnQ66 -- DataMatrix rotation on/off.
Source code in src/vkp80iii/commands.py
1007 1008 1009 | |
datamatrix_module_size ¶
datamatrix_module_size(n: int = 6) -> bytes
GS ( k FnQ67 -- DataMatrix module dot size (2..24).
Source code in src/vkp80iii/commands.py
1012 1013 1014 1015 1016 | |
datamatrix_size ¶
datamatrix_size(n: int = 0) -> bytes
GS ( k FnQ68 -- DataMatrix symbol size (0 = auto, 1..29).
Source code in src/vkp80iii/commands.py
1019 1020 1021 1022 1023 | |
datamatrix_store ¶
datamatrix_store(data: bytes) -> bytes
GS ( k FnQ80 -- store DataMatrix data in the symbol save area.
Source code in src/vkp80iii/commands.py
1026 1027 1028 | |
datamatrix_print ¶
datamatrix_print() -> bytes
GS ( k FnQ81 -- encode and print the stored DataMatrix data.
Source code in src/vkp80iii/commands.py
1031 1032 1033 | |
counter_print_mode ¶
counter_print_mode(
digits: int = 0,
align: str = "right",
pad_zero: bool = False,
) -> bytes
GS C 0 -- counter print format: digit count, alignment, zero-padding.
Source code in src/vkp80iii/commands.py
1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 | |
counter_mode ¶
counter_mode(
start: int, end: int, step: int = 1, repeat: int = 1
) -> bytes
GS C 1 -- counter range/step/repeat (start
Source code in src/vkp80iii/commands.py
1054 1055 1056 1057 1058 1059 1060 1061 | |
set_counter ¶
set_counter(value: int) -> bytes
GS C 2 -- set the current counter value.
Source code in src/vkp80iii/commands.py
1064 1065 1066 | |
print_counter ¶
print_counter() -> bytes
GS c -- queue the current counter value for printing and advance it.
Source code in src/vkp80iii/commands.py
1069 1070 1071 | |
macro_define_start_end ¶
macro_define_start_end() -> bytes
GS : -- start (or end) macro definition.
Source code in src/vkp80iii/commands.py
1079 1080 1081 | |
macro_execute ¶
macro_execute(
times: int, delay: int, mode: int = 0
) -> bytes
GS ^ -- execute the macro times times with delay (x100 ms) between runs.
Source code in src/vkp80iii/commands.py
1084 1085 1086 | |