TSC TTP-246M series Programming Manual

TSC TTP-246M series Programming Manual

Tspl/tspl2 programming language

Advertisement

TSPL/TSPL2 Programming Language
TSC BAR CODE PRINTER SERIES
PROGRAMMING
MANUAL

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the TTP-246M series and is the answer not in the manual?

Questions and answers

Summarization of Contents

Setup and System Commands
SIZE Command
Defines label width and length for printer setup.
GAP Command
Sets the distance between two labels and the offset distance.
SPEED Command
Defines the printer's print speed.
DENSITY Command
Sets the printing darkness level.
Label Formatting Commands
BARCODE Command
Prints 1D barcodes. Lists available barcode types.
QRCODE Command
Prints QR code. Describes encodable character sets.
TEXT Command
Prints text on labels. Details font types and parameters.
BITMAP Command
Draws bitmap images.
Status Polling Commands (RS-232)
!? Command
Obtains printer status at any time, indicating readiness or errors.
~!T Command
Inquires the model name and number of the printer.
File Management Commands
DOWNLOAD Command
Saves files into printer memory (DRAM/Flash).
KILL Command
Deletes files from printer memory (DRAM or FLASH).
RUN Command
Executes a program resident in the printer memory.
BASIC Commands and Functions
FOR…NEXT LOOP
Executes one or more lines of program repetitively using a loop counter.
IF…THEN…ELSE…ENDIF LOOP
Executes statements conditionally based on a condition.
STR$() Function
Converts a value or expression into a string.
VAL() Function
Converts numeric characters into an integer or floating point number.
Device Reconfiguration Commands
SET COUNTER Command
Sets counter numbers and increments for programs.
SET GAP Command
Sets gap sensor sensitivity and initiates automatic gap sensor calibration.
SET KEY1, SET KEY2, SET KEY3 Commands
Enables/disables KEY1, KEY2, KEY3 functions on the printer.
SET LED1, SET LED2, SET LED3 Commands
Controls the on/off state of the printer's LEDs.
Printer Global Variables
@LABEL Global Variable
Counts printed labels; retained across power cycles.
@YEAR Global Variable
Reads/writes the year data from the Real Time Clock (RTC).
@HOUR Global Variable
Reads/writes the hour data from the Real Time Clock (RTC).
@MINUTE Global Variable
Reads/writes the minute data from the Real Time Clock (RTC).

Table of Contents

Save PDF