beautypg.com

Measurement Computing Personal488 rev.3.0 For DOS & Windows 3.Xi User Manual

Page 137

background image

8O. Utility Programs

II. SOFTWARE GUIDES - 8. Driver488/DRV

II-122

Personal488 User’s Manual, Rev. 3.0

Printer Port Assignments

Serial Port Assignments

LPT1:

LPT2:

LPT3:

LPT4:

COM1:

COM2:

COM3:

COM4:

LPT1

LPT2

(none)

(none)

COM1

(none)

(none)

(none)

The

IEEELPT

command takes up to four optional device arguments. Each argument is of the form

IEEEpp

,

IEEEppss

or

LPTn

, where

pp

is an IEEE 488 bus primary address from

00

to

30

,

ppss

is a

bus address composed of a primary address from

00

to

30

followed by a secondary address from

00

to

31

, and

n

is a physical printer port device number, from

1

to

4

.

If

IEEELPT

is executed with no arguments, then it just displays the current logical printer port

assignments. If one or more arguments are provided, then the first logical printer port (

LPT1:

) is

redirected to the physical device specified by the first argument, the next logical port (

LPT2:

) is

redirected to the next specified physical device, and so on. If fewer than four devices are specified,
then the remaining logical printers are directed to any unused physical parallel printer ports. For
example, on a machine with two physical parallel printer ports these commands have the effects
indicated in the following table:

Command

Printer Port Assignments

LPT1:

LPT2:

LPT3:

LPT4:

(Boot-Up)

LPT1

LPT2

(none)

(none)

IEEELPT (No change)

LPT1

LPT2

(none)

(none)

IEEELPT IEEE05

IEEE05

LPT1

LPT2

(none)

IEEELPT IEEE05 IEEE1201

IEEE05

IEEE1201

LPT1

LPT2

IEEELPT IEEE05 IEEE1201 IEEE17

IEEE05

IEEE1201

IEEE17

LPT1

IEEELPT IEEE05 IEEE1201 IEEE17 IEEE29

IEEE05

IEEE1201

IEEE17

IEEE29

IEEELPT LPT1 IEEE05

LPT1

IEEE05

LPT2

(none)

IEEELPT LPT2 LPT1 IEEE1201

LPT2

LPT1

IEEE1201

(none)

Note that the port assignments are flexible, any order may be used. Also note how the physical printer
ports are added to the assignments if there is room for them and if they have not already been specified.

Serial port redirection is accomplished by

IEEECOM

.

IEEECOM

is used identically to

IEEELPT

except

that the physical port names (without colons) are

COM1

through

COM4

rather than

LPT1

through

LPT4

.

For example, the

IEEECOM

command:

IEEECOM IEEE12 COM2 COM1

will redirect communications from

COM1:

to IEEE 488 bus device

12

,

COM2:

to

COM2

, and

COM3:

to

COM1

.

In addition to the port specifications, both

IEEELPT

and

IEEECOM

allow two optional parameters. The

/Aioaddr

parameter is used to specify the I/O base address of the IEEE 488 interface board and the

/Baddr

parameter sets its IEEE 488 bus address.

The I/O base address must be specified when the associated IEEE 488 interface board is not at the
default I/O address of

02E1 (hex)

. The I/O base address is usually given as a hexadecimal number.

For example, to use the default I/O address, the parameter would be

/A&H02E1

. If the hexadecimal I/O

address ends in a

0

or an

8

then consecutive I/O addresses will be used. If the address ends in a

1

then

I/O addresses will be separated by

&H400

. I/O addresses ending in other than

0

,

1

, or

8

are not

allowed. For example, the command:

IEEELPT IEEE05 /A&H22E1

would configure

LPT1:

for output to IEEE 488 bus address

05

on a second interface card located at

22E1 (hex)

. The I/O base address is usually set by switches or jumpers on the interface card. Refer

to the manufacturer’s instructions for your IEEE 488 board to determine its I/O address. The default
I/O port base address for

IEEELPT

and

IEEECOM

is

/A&H02E1

.