AMT Datasouth 41AY89AR777 User Manual

Page 106

Attention! The text in this document has been recognized automatically. To view the original document, you can use the "Original mode".

Advertising
background image

DS-180 graphics mode is entered by sending a CONTROL FS (CHR$(28) in
BASIC) to the printer. The printer will remain in the graphics mode until
commanded to exit. Except for FS, ETX, GS and the line terminator each byte
must have bit 7 set to 1 to be a legal graphics byte. Each line of graphics is

terminated by receipt of an ASCII number 0 through 9. This code terminates the
graphics line and advances the paper “n” dot increments where “n” equals the
single digit line terminator 0 through 9.

The forms control alignment may be maintained when in DS-180 graphics.
Top-of-form, perforation skipover and vertical tabs will be executed as
programmed.

A horizontal indent may be programmed by sending the sequence ;nnn where
“nnn” equals an ASCII decimal number. The indent will be “nnn” horizontal dot
positions from the left margin. Example: PRINT";25" causes an indent of 25 dot
positions (1/3 inch). This sequence may be sent immediately after the FS code or
after the line terminator. The indent command sequence must immediately
precede a printable graphics byte.

To exit DS-180 graphics the user must send CONTROL GS or ONTROL ETX.
Exiting graphics using the GS control code corrects for any variations in the line
feed boundary caused by the graphics line terminator. Exiting graphics using the
ETX control code does not correct the line feed boundary. The ETX control code
must be used to print ASCII characters and graphics on the same line. (See
sample program on page 43)

The information to print Figure 4.12 can now be sent to the printer. Make certain
Feature Number 49 is enabled before attempting to enter graphics mode. Sending
CHR$(28) instructs the printer to enter graphics. This is followed by the values
for the columns in line 1. If the value for each colunm is entered individually it
will appear as follows:

CHR$(127);CHR$(64);CHR$(64);CHR$<64);CHR$(64);CHR$(127);CHR$(127);

CHR$(127) ;CHR$(127) ;CHR$(127) ;CHR$(127) ;CHR$ill2) ;CHR${76) ;CHR$(67) ;

The graphics line is terminated with a “6" which advances the paper by 6 dot
increments. The printer will automatically perform a carriage return. The
graphics data for lines 2 through 6 is entered in the same manner.

A sample graphics program is provided on page 4.44. Notice that the sample is
made up of diamonds formed by the bit pattern sent to the printer in statement
230 of the program. The value for each column which makes up the diamond is
shown in Figure 4.13.

NOTE

Some systems are designed to automatically perform a

carriage return and line feed after receiving 132 bytes.

In order to complete a full line of graphics (which typically

exceeds 132 bytes), this feature must be disabled.

4-47

Advertising
This manual is related to the following products: