For the purposes of this article a robot is a continuously acting computer program interacting with the outside world and not normally stopping. What physical senses and effectors or communication channels it has are irrelevant to this discussion except as examples.
This article discusses consciousness with the methodology of logical AI. [McCarthy, 1989] contains a recent discussion of logical AI. AI systems that don't represent information by sentences can have only limited introspective knowledge.