Activating the document printer functions – Tally Genicom T5023+ User Manual

Page 26

Advertising
background image

Encryptions/Codes

Programming interface (General)

16

T5023/5023+ - Programming Guide

Activating the document printer functions

The control codes or ESC or CSI sequences must be addressed to the printer directly
and uniquely via corresponding program commands. Depending on the respective
programming language, this is, e. g., via PRINT or WRITE instructions

.

Example:

Three lines are to be printed. Lines 1 and 3 are printed in normal print, line 2 in
italic print.

Pseudo code:

Conversion into BASIC

:

Result:

BEGIN

PRINTLF(" first line")
PRINT(ESC 4)
PRINTLF(" second line")
PRINT(ESC 5)
PRINTLF(" third line")

END

10 LPRINT "first line"
20 LPRINT CHR$(27);" 4";
30 LPRINT "second line"
40 LPRINT CHR$(27);" 5";
50 LPRINT "third line"

In this manual the program examples are depicted exclusively in the
form of a pseudo code and the control codes or code series are given
in decimal ASCII encryption or directly as characters. The correspon-
ding information must then be converted into the appropriate pro-
gramming language.

i

Advertising
This manual is related to the following products: