Output Using MSW Logo - 2 Having plugged in the interface, open MSW Logo.

Click in the Input Box at the bottom of the screen and type in: outportB 888 0 and then press ENTER. This will turn all the LEDs OFF.

The general Printer Port outport command in MSW Logo is: outportB 888 <value> , where <value> is a combination of: "1", "2", "4", "8", "16", "32", "64" and "128" up to a maximum of 255.

The output data lines of the Printer Port are referred to as: D0, D1, D2, D3, D4, D5, D6 and D7.

Data Line

Pin Number

<value>

D0

2

1

D1

3

2

D2

4

4

D3

5

8

D4

6

16

D5

7

32

D6

8

64

D7

9

128

If you want to turn on several lines at once you just add the output values for the lines. eg. outportB 888 6 turns on data lines D1 and D2 (6 = 2 + 4). outportB 888 28 turns on data lines D2, D3 and D4 (28 = 4 + 8 + 16)

<- Back -Menu- Next ->