Tsc::Command::Setup
This module implements Setup and System Commands.
Constants
AUTODETECT = "AUTODETECT"
BACKFEED = "BACKFEED"
BACKUP = "BACKUP"
BLINE = "BLINE"
BLINEDETECT = "BLINEDETECT"
CLS = "CLS"
CODEPAGE = "CODEPAGE"
COUNTRY = "COUNTRY"
CUT = "CUT"
DELAY = "DELAY"
DENSITY = "DENSITY"
DIRECTION = "DIRECTION"
DISPLAY = "DISPLAY"
EOJ = "EOJ"
FEED = "FEED"
FORMFEED = "FORMFEED"
GAP = "GAP"
GAPDETECT = "GAPDETECT"
HOME = "HOME"
INITIALPRINTER = "INITIALPRINTER"
LIMITFEED = "LIMITFEED"
MENU = "MENU"
OFFSET = "OFFSET"
PRINT = "PRINT"
REFERENCE = "REFERENCE"
SELFTEST = "SELFTEST"
SHIFT = "SHIFT"
SIZE = "SIZE"
SOUND = "SOUND"
SPEED = "SPEED"
Instance methods
cls
Sourcedirection(n : Int32, m : Int32)
Defines the printout direction and mirror image. This will be stored in the printer memory.
Acceptable values for n and m are 0 or 1. Please refer to the following diagram:
printer.direction(0, 0) # Top-first, no mirroring
printer.direction(1, 0) # Bottom-first, no mirroring
printer.direction(0, 1) # Top-first with mirroring
printer.direction(1, 1) # Bottom-first with mirroring
print(sets : Int32, copies : Int32 = 0)
Prints the label format currently stored in the image buffer.
# Three sets of two labels, grand total of six labels
printer.print(3, 2)
Defines the label width and length.
Since:
- Dot units of measurement for this command has been supported since V6.27 EZ and later firmware.
# 3.5in x 3.0in label
printer.size(3.5, 3.0)
# 100mm x 100mm label
printer.size(100, 100, Tsc::Unit::Mm)
# 120dot x 120dot label
printer.size(120, 120, Tsc::Unit::Inch)