1
Mach SDK plugin questions and answers. / Re: Kinematics plugin development
« on: December 03, 2015, 09:40:46 AM »
To comment myself: I got the pulses per unit from the xml-file now (it's not perfect though, the user has to save the changes if motor tuning is changed). I haven't found the tool length yet.
I tested the idea of simply changing the pulse values in Engine->Trajectories, but this results in very abrupt changes is DROs when I hit the start cycle button and sometimes in the middle of the G code, too. I think the right way to approach the problem would be either to interface MainPlanner or change the pulses in Engine slower (so that they would approach the values given by the equations gradually). I haven't found anything to grasp on in MainPlanner, though.
The easiest way to tackle the problem would be to write the equations to Formulas window in Mach3 (Functon cfg's -> Formulas). But that doesn't work for me for some reason. If I do that my example G code stalls after a few lines.
I'm going to look at Linux CNC, too (or EMC2 which ever they call it). I don't like Linux, but in this case they seem to provide kinematics so it'll be worth the trouble if it works.
I tested the idea of simply changing the pulse values in Engine->Trajectories, but this results in very abrupt changes is DROs when I hit the start cycle button and sometimes in the middle of the G code, too. I think the right way to approach the problem would be either to interface MainPlanner or change the pulses in Engine slower (so that they would approach the values given by the equations gradually). I haven't found anything to grasp on in MainPlanner, though.
The easiest way to tackle the problem would be to write the equations to Formulas window in Mach3 (Functon cfg's -> Formulas). But that doesn't work for me for some reason. If I do that my example G code stalls after a few lines.
I'm going to look at Linux CNC, too (or EMC2 which ever they call it). I don't like Linux, but in this case they seem to provide kinematics so it'll be worth the trouble if it works.