Hello everybody, and greetings from Spain.
I am trying to set the right macros and postprocesor to run a Chinese (yes) CNC that has 3 spindles on the Z axis.
There is a probe for Z height that I plan to use to set the tool height of each spindle.
I am using Mach3 and I either work with Aspire software of with Autodesk Inventor. And here is my logic (I first want help with this and then will see if also with execution).
I will set for now, three tools: T1, T2 and T3.
When mach3 readys a M6T()
it should activate the relay of that spindle
then go home
from there go to the probe
execute Zprobe macro (M930)
Then set that Height tool. Well, it will be at the bottom of the material, and probably would have to add an increment because we have a MDF sheet over the CNC and we then put the material on top of that).
Then it can add material height + safety working height and then it can start the spingle and go to the job position.
We usually use work coordinates rather than machine coordinates, so I have to take that into account when going home and then for the probe. Will work on that, I guess there is plenty of info in the forum.
I am not sure how to tell which relay to activate according the tool number
So, if M6Start.m1s
tool = GetSelectedTool()
SetCurrentTool( tool)
Can I then run something like this?
ActivateSignal (OUTPUT (2+tool))
What I have is three relays on OUTPUT3, 4 and 5, and what to activate them with tool1, 2 and 3
How can I tell the number of output related with the spindle number?
Spindle1=T1=OUTPUT3
Spindle2=T2=OUTPUT4
Spindle3=T3=OUTPUT5
Thanks for the help, and I hope it is clear my explanation![]()