Category: General LinuxCNC Questions
sorry not been here for awhile but life just got in the way, very bussy months here
looks like you have been bussy Grotius
dont forget with multi program running like i showed, its important that you dont tie each "interperter locekd to an axis group" becasue it needs to be far from it to be powerfull, any instanact should read any spindle feedback, know where other axis are so can follow them as a slave or master axis "offset" etc
so yes that a hal layer thing so hal can pass info between each other.
because each program group can and should be able to command other axis out side its "group" so program 2, shuld be able to move Z1 , so part can position from the guide bush. very much how you manage mode/group switching
ill try and find the page in one of my manuals for lathe and share will give you some ideas i think. better than many words, but abit like this...
while on swiss yes each "program instance" has an axis group set. i can change mode with a G code, like G710 etc (there are loads of these code sets) and it will control how these 3 programs interact together, you have to use same G710 setting code in all 3 or it alarms out
then control knows program 2 is now master , or program 3 is master etc realy which axis group the other 2 must be salved too..
(btw not all swiss etc have 3 heads, some only have 2, some have just 1)
eg
that way, you can program threading on program 1 , have X and Z do thread of a pitch say 1mm, while program 2 can also do threading, following Z in the program of Z1 but do a different pitch on Z2 of say 2mm , as it can read the spindle encoder also into both interpreters etc..,
on a fixed head lathe, you dont need to follow Z1 as your stock does not move,
unless your chasing the main turret with a sub spindle, while main turet works on front spindle like that miyano video.
yes you can bring in a sub for support and hold the part, and have Z3 follow Z1 while turret does what ever.. sounds complex but with simple switching etc becomes abit natral thinking on program layout etc for the siwss world of coding and setup.
but yes as you said making linuxcnc multi interpreter and multi hal is abig challenge many have looked at it before and no one has ever taken it on.
sorry for long reply