Example Code for Honeywell limit switch

this year we are using the honeywell limit switches and I can not find example code, would anyone be willing to post some examle code?

Specify a programming language, since you didn’t use the language specific sub-forum.

Sorry for not stating this in my earlier message but we are coding in Time Based Java.