Thanks for the advice! I started implementing this the other day and am running into follow errors when switching between modes using a hal pin. I found this thread on the LinuxCNC forums which discusses the same desired behavior and the same errors I'm encountering. It seems like they were able to resolve the issues, so I'll give what they tried a shot: https://forum.linuxcnc.org/10-advanced-configuration/31813-tcp-5-axis-kinematics?limitstart=0
On Thursday, April 12, 2018 at 2:48:29 AM UTC-6, Schooner wrote: > > > On 12/04/18 09:29, '[email protected] <javascript:>' via Machinekit > wrote: > > > > This code snippet from my lathe pulley speed setting script shows the > process to convert and use case / esac to switch the input to the correct > call > > > > Just re-read and that gives the impression you need to use a case / esac > switch > > All you need of course is a single call in place of the switch, as P > contains the value to pass > > eg. halcmd setp combokins.state $int > > > > > > On 11/04/18 21:30, [email protected] <javascript:> wrote: > > Is there a way to switch between kinematics modules using G code in > Machinekit? The desired effect is to be able to switch between trivkins and > a 5 axis inverse kinematics module that allows for TCPC (Haas uses G234 to > enable TCPC, see https://www.youtube.com/watch?v=HxPjH4v5iEg). I've > implemented the 5 axis kinematics module for my machine. I was thinking I > could incorporate the trivial kinematics into the same module and add a hal > pin that would switch between the two. Then I could write a python script > that flips the hal pin, and bind that to a custom G code. Would that work? > Is there another way to do it? > -- > website: http://www.machinekit.io blog: http://blog.machinekit.io github: > https://github.com/machinekit > --- > You received this message because you are subscribed to the Google Groups > "Machinekit" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] <javascript:>. > Visit this group at https://groups.google.com/group/machinekit. > For more options, visit https://groups.google.com/d/optout. > > > -- > website: http://www.machinekit.io blog: http://blog.machinekit.io github: > https://github.com/machinekit > --- > You received this message because you are subscribed to the Google Groups > "Machinekit" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] <javascript:>. > Visit this group at https://groups.google.com/group/machinekit. > For more options, visit https://groups.google.com/d/optout. > > > -- website: http://www.machinekit.io blog: http://blog.machinekit.io github: https://github.com/machinekit --- You received this message because you are subscribed to the Google Groups "Machinekit" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. Visit this group at https://groups.google.com/group/machinekit. For more options, visit https://groups.google.com/d/optout.
