Knee mill table height; external offset or something else?

More
27 Nov 2023 15:30 - 27 Nov 2023 15:31 #286625 by Aciera
No, it doesn't work like that with joint limits, you would jog right into the soft limit and then motion will suddenly stop. There will be no controlled deceleration but something more like an e-stop event.
Last edit: 27 Nov 2023 15:31 by Aciera.

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

More
27 Nov 2023 16:38 #286629 by tommylight

Yes when using axis limits it works but I can only rely on joint limits in this case. Are you sure it should work with only joint limits in world mode?

All those machines use 2 joints for Y axis, so it does work with joint limits in world mode. Those 2 joints can not be jogged/moved in joint mode, only after homing when it switches to world mode they can be jogged, together, not single joint at a time.
What am i missing here?

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

More
27 Nov 2023 17:33 #286631 by Aciera

What am i missing here?

We are using custom kinematics here, so things are a little unusual.

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

More
27 Nov 2023 17:34 - 27 Nov 2023 17:35 #286632 by m0602232
Maybe you have same limits in joints and axis if your machines are gantry-style?

Anyway, I summed axis z limits and table encoder position to ini.z.max and -min_limit in postgui, about like how Aciera suggested (pos-fb-limited is the encoder position after limit3 smoothing):

loadrt sum2 count=2
addf sum2.0 servo-thread
addf sum2.1 servo-thread
setp sum2.0.in0 [AXIS_Z](MIN_LIMIT)
setp sum2.1.in0 [AXIS_Z](MAX_LIMIT)
net pos-fb-limited sum2.0.in1 sum2.1.in1
net zmin-switched ini.z.min_limit sum2.0.out
net zmax-switched ini.z.max_limit sum2.1.out

At least after first quick test it seems to be working. If you see any reason why it should not be done like this please tell, otherwise huge thanks to Aciera and other contributors!
Last edit: 27 Nov 2023 17:35 by m0602232.

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

More
27 Nov 2023 17:46 #286633 by Aciera
Ok, so what you need to be aware here is that the change in the axis limit settings will only be used by the planner after a queuebuster. This means that during gcode execution the planner will not automatically use the changed limit values as the lookahead may already have finished queueing the gcode for the planner to be ingested.
Since you seem to want to use this when changing tools you may want to remap M6 to include a queuebuster (eg something like 'M66 E0 L0').
I'm not sure if 'M6' already IS a queuebusting operation so you may want to test your setup without actually putting the tool in the spindle during a tool change.
The following user(s) said Thank You: tommylight, m0602232

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

More
27 Nov 2023 20:55 #286637 by tommylight

What am i missing here?

We are using custom kinematics here, so things are a little unusual.


Yeah, had a feeling i jumped into the deep end! :)

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

Time to create page: 0.135 seconds
Powered by Kunena Forum