[solved] change axis-limits through hal-pins
So I recently started a topic that I deleted before anybody could answer because I thought I had found the solution when I found the ini.N.min_limit and ini.N.max_limit HAL-pins.
I thought it was worth reposting this question as solved since dgarrett has kindly provided detailed information regarding this in another thread:
@Aciera re: ini hal pins
Is there a way to alter the min- and max-axis limits
ini hal pins are available for both JOINT_N and AXIS_L
MIN_LIMIT,MAX_LIMIT,MAX_ACCELERATION, MAX_VELOCITY
See the milltask man page (especially notes at bottom):
linuxcnc.org/docs/master/html/man/man1/milltask.1.html
In general, an interp-motion sync is needed for ini hal pins
to be recognized for subsequent motion but the sync is
needed to switch kins types anyway.
Recent dgarr/s_kins docs (not commited yet):
www.panix.com/~dgarrett/stuff/switchkins.html
See 3.3 Inifile Limit settings
And intree examples for M128,...:
github.com/LinuxCNC/linuxcnc/blob/dgarr/...ach/puma/mcodes/M128
Please Log in or Create an account to join the conversation.
Question doent the Interpreter make a error if thel imits on the Axis side differ to the joint side
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
I need some help. For tool change I have to change max limit of Z axis from 0 to 140, perform the toolchange and then switch it back to original one.
I have used ini.z.max_limit and that seems to be set ok, I see the borders of working space reflected on axis visual window and the pin value change on Show HAL Configuration menu.
But still, motion seems to be unaware of limits change, whenever I try to move Z into positive values, it throws me an error "joint position exceeding positive limit".
I've tried to sync kinematics by issuing M66 E0 L0 according to above attached links, but no luck, still no change.
Any idea on what else is missing?
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
- Posts: 19209
- Thank you received: 6438
No triple posting, makes it very hard to follow what has been answered and what not.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
@tommylight, apologies. I was desperate to set the machine up before christmass!
Merry christmass gents!
Please Log in or Create an account to join the conversation.