Guardian Programmer's Guide

Table Of Contents
Communicating With Printers
Guardian Programmer’s Guide 421922-014
11 - 19
Resetting the Laser Printer Default Values
!Subsequent text is not underlined:
SBUFFER ':=' " and this is not. " -> @S^PTR;
CALL WRITEX(PRINTER^NUM,SBUFFER,@S^PTR '-' @SBUFFER);
IF <> THEN ...
The above example prints the following text:
This is underlined text, and this is not.
Resetting the Laser Printer Default Values
You can reset the printer to its default values (those configured at the control panel) by
sending an escape sequence in the following format to the printer:
The following example shows how to do this in an application program.
STRING .RESET^PRINTER[0:1] := [%33,"E"];
.
.
CALL WRITEX(PRINTER^NUM,
RESET^PRINTER,
$LEN(RESET^PRINTER);
IF <> THEN ...
This escape sequence resets printer characteristics such as symbol set, pitch, and
underlining.
Programming for Tandem Matrix Line Printers
This subsection describes some of the more commonly used programmable features
of the Tandem 5515, 5516, and 5518 matrix line printers.
The information presented here describes how to use:
Page-control commands to set the page length and the size of the left and right
margins
Forms-movement commands to vertically position the paper
Text printing commands to set font characteristics, underline text, and perform
overstriking
For complete details of how to use all available PCL commands for the 5515, 5516,
and 5518 line matrix printers, see the Tandem 5515/5516/5518 Printers Technical
Reference Manual.
Escape sequence to restore configured values:
escE