Asynchronous Terminals and Printer Processes Programming Manual

PRINTER PROGRAMMING CONSIDERATIONS
Error Handling
Call CONTROLBUF to reload the DAVFU if values other than the
defaults are being used. To guarantee a good restart point,
print a message asking the operator to align the paper.
If the printer is turned on without paper loaded, error 100 is
returned. If the ON LINE button is pressed without paper loaded,
then error 102 (PAPER OUT) is returned. Once the PAPER OUT
condition is cleared and the ALARM/CLEAR button is pressed, the
printer again becomes NOT READY. The ON LINE button must be
pressed. At this point, error 191 is returned if the power on
occurred while the file was open.
PROGRAMMING CONSIDERATIONS FOR THE MODEL 5530 PRINTER
Both ATP6100 and SERIALPRINTPROCESS support the model 5530 serial
printer. The subtype for the 5530 is 6. CONTROL 1 performs form
control and line skipping. A cut sheet paper feeder option is
available for the 5530.
Skip by Line Count
Use the CONTROL procedure to advance the paper a specific number
of lines. The following call moves the paper 30 lines:
LITERAL ^30^LINES = 30 + 16; !data declaration
.
CALL CONTROL ( FILE^NUM, FORMS^CONTROL, ^30^LINES );
.
The printer cannot be taken offline during a multiple line feed
operation. This restriction allows the I/O process to keep track
of form movement.
November 1987 7-15