beautypg.com

Avery Dennison 6037 Rev. AA 3/04 Programmer Manual User Manual

Page 158

background image

5-38 Utility Descriptions

M O D E

The MODE command modifies the operation of the printer, serial port,
and active video display.

Syntax

MODE LPT#[:]=COM#[:]

MODE COM#:baud[,parity[,databits[,stopbits[,P]]]]

MODE video mode

MODE display lines

Remarks

The first syntax above redirects line printer output to the serial port.

The second syntax above changes the operation of the specified
communications port. The options that can be modified are listed below.
Invalid values for any of the options are flagged with an error message.

baud

110, 150, 300, 600, 1200, 2400, 4800, 9600

parity

N - None, O - Odd, E - Even

databits

Either 7 or 8

stopbits

Either 1 or 2 stop bits

P

Printer Port

Using the

P option as the last argument causes output to be sent

repeatedly to the printer port until successfully received. Without the P,
output is sent only once, causing a critical error if unsuccessful.

The third syntax changes the active

video mode for the display terminal.

The valid choices for this version of the MODE command are as follows:

40 — Indicates 40 characters per line.

80 — Indicates 80 characters per line.