Here is how the turret works...
The encoder puts out a series of signals, on active pins 1-4,
Tool# active1 active2 active3 active 4 (Active# is the input number in mach3)
1 1 0 0 0
2 0 1 0 0
3 1 1 0 0
4 0 0 1 0
5 1 0 1 0
6 0 1 1 0
7 1 1 1 0
8 0 0 0 1
So if you see above, the macro needs to get selected tool.
Activate output 5
wait 1 sec
Activate output 6
' now is needs to find the right tool, for example if I wanted tool one, I put in t0101, then using the above table, the macro needs to sense that Active 1 is (HI) and active 2, 3, and 4, are (LOW), this indicates its at tool one,
Tool# active1 active2 active3 active 4 (Active# is the input number in mach3)
1 1 0 0 0
Then deactivate output 5
wait 1 sec
deactivate output 6
wait for oemtrigger for turret seated,
then continue program.
Same for tool 2-8, one more example: If I wanted tool 7, I put in t0707 on the mdi line, then using the above table, the macro needs to sense that Active 1,2 and 3, is (HI) and active 4, is (LOW), this indicates its at tool seven,
Tool# active1 active2 active3 active 4 (Active# is the input number in mach3)
7 1 1 1 0
Does this clarify it a bit
? Any ideas as to the macro needed? THANK YOU!