How to use switches at JP8 kanalog
Posted: Thu Mar 25, 2021 10:13 pm
I finally have my machine assembled and mostly wired but I am on the last 5 wires for the tool change sensors and air solenoid that opens my HSD tool holder. I need to bring in three 5 volt sensor inputs and be able to send a 5 volt output to turn on the air solenoid. I have most of the I/O on the kanalog board open apart from hooking up 3 axis to servos so I think the tool change sensor inputs will go to opto in at jp15 and the 5V out to turn my air valve on will come from a switch at JP8 but I don't know how to control these from the C program. I intend to modify the Tool Changer - router linear 4 Tools - C Program but looking at the code they are tying their tool change sensor to a bit number. I don't know how they got from a silkscreened screw terminal to that bit number? Is there an example for implementing simple on off functions with the kanalog IO that I can reference? - Thanks, Dave