Programming Instructions; General Information; Programming Examples; Initialization - SNBC BT-T080 Programming Manual

Kiosk printer
Table of Contents

Advertisement

3 Programming instructions

3.1 General information

1) The instructions are compiled to help users who use commands to control the printer quickly master
the command set.
2) All programming examples are given in Hex.
3) All normal fonts and characters are data and there is no note for the data in the programming
examples, for instance, 42 43. Commands cited in the instructions are bold and underlined, for
instance, 1B 40.
4) Contents in parentheses are interpretations of the commands. Parentheses and contents in them are
not part of the commands to be transmitted to printer.

3.2 Programming examples

The most frequently used five kinds of commands are outlined as below (Refer to command set for
detailed usage). The general programming approach followed by programmers is "initialization ->set
printing and print data ->print and feed paper ->status query". Read the descriptions below carefully to
quickly master this approach.

3.2.1 Initialization

1) Initialize printer 1B 40
2) Select print mode 1B 53 enter standard mode (Default), 1B 4C enter page mode.

3.2.2 Set printing and print data (character /barcode/bitmap)

1) Set printing area and print position
a)
Horizontal tab (09)
Set horizontal absolute print position (1B 24)
b)
c)
Set horizontal tab positions (1B 44)
Select print direction in page mode (1B 54 n)
d)
e)
Set printing area in page mode (1B 57)
f)
Set horizontal relative print position (1B 5C nL nH)
Select justification (1B 61 n)
g)
h)
Set vertical absolute print position in page mode (1D 24)
Set left margin (1D 4C)
i)
j)
Set horizontal and vertical motion unit (1D 50 )
k)
Set printing area width (1D 57)
l)
Set vertical relative print position in page mode (1D 5C)
Examples:
a)
Set print area in page mode (width:76, height:100)
0A (set the print position to the beginning of the line)
1B 4C (enter page mode)
1B 57 20 00 00 00 60 02 20 03 (set printing area)
- 69 -
BT-T080 Programming Manual

Advertisement

Table of Contents
loading

Table of Contents