Guardian Programmer's Guide

Table Of Contents
Communicating With Printers
Guardian Programmer’s Guide 421922-014
11 - 3
Procedures for Working With Printers
Table 11-1 summarizes all CONTROL operations that affect printer operation.
On return from one of the calls listed in Table 11-1, the condition code should be CCE if
the CONTROL operation was successful. A condition code of CCL indicates an error.
Table 11-2 summarizes all SETMODE functions that relate to printer operation.
On return from one of the calls listed in Table 11-2, the condition code should be CCE if
the SETMODE function was performed successfully. A condition code of CCL
indicates an error. A condition code of CCG indicates that the attempted SETMODE
function is invalid for the type of device.
For complete details of these procedure calls, CONTROL operations, and SETMODE
functions, refer to the Guardian Procedure Calls Reference Manual.
Table 11-1. Printer CONTROL Operations
CONTROL
Number Operation
1 Provides forms control
11 Specifies a wait for a modem connection
12
Disconnects a modem
Table 11-2. Printer SETMODE Functions
SETMODE
Number Function
5 Sets the system automatic perforation skip mode
6 Sets system spacing control
22 Sets the line printer baud rate
25 Sets the form length
26 Sets or clears vertical tabs
27 Sets system spacing mode
28 Resets configured values
29 Sets automatic answer mode or control answer mode
37 Gets the device status
68 Sets the horizontal pitch
260 Selects printer language (5577 only)