you now talking with nonsense, my comments stops here .
hi Elecman,
Did you connect the ULN 0V pin to the 8051, 0V power supply pin.
Without that common 0V link the 8051 cannot drive the ULN's internal transistors.
The common is essential for the circuit to work.
Lets know how it goes.