Dear All,
I thank you for your responces.
I have fixed this problem.
I had to turn the a to d and comparator modules off to allow for digital access to the port.


Thanks again.