Ibm Configuration; Printing Defined Characters - Citizen 120D+ User Manual

Dot matrix printer
Table of Contents

Advertisement

CREATING CHARACTERS
2.
IBM configuration
BASIC
CHR${27) " = " CHR$(n1) CHR$(n2) CHR$(20)
CHRS(code) CHR$(a) CHR$(0) CHR$(dO). . .
CHR$(d10)
Hex
IB 3D nlh n2h 14 codeh ah 00 dOh . . . dlOh
This command sequence allows you to create your original
characters in the IBM configuration as 120D+ has the
same feature in the Epson configuration. But there is a
difference for sending data between IBM and Epson
configurations.
First, nl and n2 are variables that specify the range of
characters that you wish to define with this command.
Then, calculate the total value with the following formula;
Total value = (number of characters x 13) + 2
If the total value is less than 256, then nl = total value and
n2 = 0. If the total value is greater than or equal to 256,
then divide the number of bytes by 256. nl = the
remainder and n2 = the integer part of the result. For
example, for 64 characters.
Total value = (64 x 13) + 2 = 834
834/256 = 3 66/256
that is, nl =66, n2 =3
The code in this command is the ASCII code for the first
downloaded character. Any ASCII codes from 32 to 126 can
be replaced continuously from standard characters starting
at that code point.
The attribute byte a shows whether the character is
ascending or descending. If a = 0, the character is printed
with the top eight pins of the print head (ascending
character). If a = 1, the character is printed with the
bottom eight pins (ascending character). Proportional
spacing is not valid in the IBM configuration, so there are
no values of the starting column and the ending column.
The variables dO through to d 10 are data byte. Their value is
calculated exactly the way data bytes are calculated for dot
graphics.
And at last, you can select the defined character with either
of commands ESC I CHR$(4) or ESC I CHR$(6). Please refer
to Chapter 4: printing text, Near letter quality.
PRINTING DEFINED CHARACTERS
ON
OFF
BASIC CHR$(27) "%1" CHR$(0)
CHR$(27)
"%0"
CHR$ (0)
Hex
IB 25 01 00
IB 25 00 00
Designing characters and sending their definitions to the
printer is the hard part of using your own characters.
Actually putting those definitions to use is as easy as
selecting any of the 120D + 's other print styles; it is done
with a single command.

Advertisement

Table of Contents
loading

Table of Contents