Coding of decimal command parameters – Tally Genicom T5023+ User Manual

Page 44

Advertising
background image

Notes about command description

Standard commands

34

T5023/5023+ - Programming Guide

Example of a formal command description (command syntax):

Coding of decimal command parameters

All command parameters n or n1, n2, etc. in the ESC sequences of the Epson-
compatible commands must be transferred to the document printer in binary co-
ded form and not as ASCII characters. Several parameters are simply transfer-
red consecutively without separation characters (e. g. space or comma). The
binary coding of a paramater must be implemented in the user programm by me-
ans of a corresponding ASCII coding in hexadecimal or decimal encryption. In
the command syntax parameter values to be coded binarily are bracketed in the
first line (for example, (n) or (n1), (n2) (n3)...). In the subsequent lines with the
hexadecimal or decimal encryption of the command, the parameter descriptions
n, n1, etc. are repeated without brackets as variables for concrete values. Which
values a parameter can have are specified in the subsequent function descripti-
on.

ESC

27

1B

A

65
41

(n)

n
n

ASCII character
Decimal
Hexadecimal

Q

R

ƒ

Q

Command name/ESC sequence

R

Decimal encryption according to ASCII table

ƒ

Hexadecimal encryption according to ASCII table

Advertising
This manual is related to the following products: