CSS/G96 for other than X-axis?

More
30 Mar 2026 18:46 #344965 by spumco
Replied by spumco on topic CSS/G96 for other than X-axis?
Lets see if I've got everything now that I've had a good think:
  • INI
    • V-axis
      • change HOME/HOME_OFFSET to "0" (to match X-axis/Joint0)
    • X-axis
      • add min/max limit entries for switched state
      • add max_vel & max_accel for switched state
    • Remap M-codes
    • [KINS]
      • KINEMATICS = parting_slide (yes/no?)
  • M-CODES
    • M300 - normal mode;  set #<kinstype> = 0, call M100
    • M301 - switched mode;  set #<kinstype> = 1, call M101
    • M100 - set V-axis min/max limits and vel/accel to normal
    • M101 - set V-axis min/max limits and vel/accel to switched values
  • HAL
    • net KINSTYPE-SEL <= motion.analog-out-01 => motion.switchkins-type
    • (analog-out-01 verified to be free)
  • COMPONENT
    • parting_slide.comp created from millturn.comp.
    • substituted @Aciera's suggested edits and added comments
    • compile/install
  • OPTIONAL?
    • Add G53 G0 V0 initial move to M301 so V and X are both at "0" before switching anything
    • Some sort of safety so joint0 jogging is inhibited when switched?  Don't want to accidentally jog joint0 (actual X) when sub-spindle is clamped on to a part.
      • I will probably also add an X jog-inhibit to my spindle/sub synch sequence.
    • Some sort of safety so everything switches to normal on an abort/estop/similar
Assumptions:
  1. I won't need new stepgen settings when switch is active because I'll be commanding the X-axis - which is now joint3.  And nothing about joint3 will have changed.  Millturn example M128/129 only changed the axis settings, not the joint settings.
  2. I won't need the G10 home offsets adjustments in the millturn example since I will be setting V and X home to 0.
Still unclear:
  • Is the INI [KINS] change, along with HAL file loadrt [KINS]... what calls up parting_slide.comp?
  • what connects motion.switchkins-type to the Case0/Case1 settings in parting_slide.comp?

Comments/critique welcome as usual.

Please Log in or Create an account to join the conversation.

More
30 Mar 2026 19:09 #344967 by spumco
Replied by spumco on topic CSS/G96 for other than X-axis?
On second thought, I will need to include the G10 offset stuff.

Just because I set HOME = 0 for both axes doesn't mean the HOME_OFFSET is the same for both.  And if I plan to use G54 offset to get the parting tool tip at spindle centerline I need the switched X-axis G54 values to be the same as V's.

Hmm...
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

Time to create page: 0.072 seconds
Powered by Kunena Forum