Always a constant problem and easy to get confused about the real cause. This article might help:
http://www.industrialcontroldesignline.com/howto/212500754