Hi guys, sorry if this is a stupid question, but I don't understand how the case command would work for me...
the signal that I get from the hnc's turret encoder is from four switches (four inputs)that are either on or off...
so tool 1 might be 00I0 tool 2 might be 000I etc, so I think that, as the turret rotates, I need to check
the inputs for each of the eight combinations ....if this helps at all here is a sequence of how it should work....
new tool# is called....
check if tool # is valid (1-8)
check if tool # is already there....
if not, then move turret back to safe index position(different for each tool, depending on how much they stick out)
wait till done....
activate output1 to lift and turn turret....(turns only one way)
start looking at the four inputs for the combination unique to that tool number
00I0= tool 1
000I= tool 2
0I00= tool 3
etc.....for all eight positions...
when tool found:
dwell
activate output2 stop turret....(stalls air motor)
dwell
deactivate output1 stop turning and drop/lock turret
dwell
deactivate output2 stop turret
check turret down limit switch (input5)...fault?
return to gcode program....
the couple things that I really don't understand is how to set up the routine to query those four inputs
and, how to tell mach3 where the safe index position is for each tool (set up eight dro's?)...I could just have the turret go all the way back each time but that would waste time moving further than I need to....
thanks for any help you can give me!.....I am slow on the uptake with this vb stuff
Roo Trimble
