A limit switch would be a digital device and should be hooked up to the digital sidecar like the sensor on this document.
http://www.usfirst.org/sites/default...alLayout_0.pdf
They can be wired normally open or closed and there's a diagram on the one's that come in the KOP that illustrates this, and it should look like this
http://team358.org/files/programming...imitSwitch.jpg
One wire goes to the terminal on the bottom or COM, and the other wire is attached to the upper or lower terminal on the side based on if you want a normally open or closed switch operation.