Asynchronous Terminals and Printer Processes Programming Manual

PRINTER PROGRAMMING CONSIDERATIONS
Condensed and Expanded Print
The condensed print option allows the 5520 to print with a
horizontal pitch of 16.7 characters per inch. Select condensed
print by calling SETMODE 68,
parameter-1
= 1.
The expanded print option (double width) provides a horizontal
pitch of 5 characters per inch. Select expanded print by calling
SETMODE 68,
parameter-1
= 2.
Reenable normal printing by calling SETMODE 68,
parameter-1
= 0.
The I/O software adjusts the maximum buffer size according to
whether expanded, condensed, or normal print is enabled. This
maximum is computed as follows:
• Normal print mode--the configured record size
• Expanded print mode--one-half the configured record size
• Condensed print mode--1.67 times the configured record size,
rounded down, maximum 218 bytes
If you configure the device with a record size of 132 bytes,
the maximum buffer size allowed in condensed print mode is 218
bytes. The same configuration allows only 66 bytes in expanded
print mode. If the device is configured with a record size of
80 bytes, the maximum buffer size allowed in condensed print mode
is 133 bytes. The same configuration allows only 40 bytes in
expanded print mode.
Example
The following example shows how to use condensed and expanded
print.
! select condensed print
CALL SETMODE ( FILENUM, 68, 1 );
! write the text
CALL WRITE ( FILENUM, DATABUFFER, COUNT );
! select expanded print
CALL SETMODE ( FILENUM, 68, 2 );
! write the text
CALL WRITE ( FILENUM, DATABUFFER, COUNT );
! go back to normal print
CALL SETMODE ( FILENUM, 68, 0 );
7-10