Hi,
can you explain a bit more about what you mean.
In Mach4 there are six independent axes X,Y,Z,A,B, C any of which can be moved independently of the others,
or any combination of them can be moved in coordinated fashion, sometimes call interpolated movement.
Interpolation seems a bit weird when you mix linear and rotational axes...but I suppose its not inappropriate.
I am guessing that you have come from a Mach3 background. In Mach3 it was common to slave the A axis say,
to the X axis say, and thereafter they would move together as a master/slave pair.
Mach4 is markedly different. If your thinking along the lines of Mach3 and slaved axes you need to unlearn that.
(Large quantities of whiskey aid my forgetting of things!!!)
If you require a slave to the X axis motor, in Mach4 you may assign up to five slaves to the X axis motor on the
Axis Mapping tab of the Control plugin page per attached.
Even more importantly and flexibly you can by Lua script link and unlink the slave/slaves from the master at will.
There are a few quirks as to how and when changes made to the linked/un-linked status of any given slave motor
is flushed to the .ini file. Lets not go down that rabbit hole for the moment. These are from the API.chm file
(Mach4 Docs):
rc = mc.mcAxisMapMotor(
number mInst,
number axisId,
number motorId)
Description:
Map a motor to an axis.
rc = mc.mcAxisUnmapMotor(
number mInst,
number axisId,
number motor)
Description:
Unmap the motor from the axis.
For instance if you have a slave motor on your gantry they would in normal operation be slaved together. What happens if the
gantry gets out-of-square? With the two APIs you can drive to the master home switch of that axis, then unlink the slave
form the master and then 'jiggle' the slave motor back and forth until the secondary home switch ( or gantry squaring switch)
is activated, then you can link the slave back to the master, and all of this can be done in a script, maybe at the push of
a button of your design.
Mach4 is most marvelously flexible once you get into it.
Craig