Min Max limit error on only one axis

  • mjones@welfab.ca
  • Offline
  • Premium Member
  • Premium Member
More
14 Dec 2024 20:17 - 14 Dec 2024 20:28 #316671 by mjones@welfab.ca
Min Max limit error on only one axis was created by mjones@welfab.ca
Hi Guys, I'm sure this is a simple solution but it is escaping me.  
I have a 4 axis lathe x1,x2,z1,z2 but in hal and ini are called x,y,z,a, I would like to change that eventually but that can wait till things work.  After alot of messing around I finally have my homing-limit switches working, reading and the machine homing proper (yay). but for my z axis, after I went into ini and set the min max for all the axis when I started Linuxcnc saying my, and I'm paraphrasing here, z axis isn't right they should be 1e99. From what I can tell that is for a rotary axis.  In the ini its states its linear, so I don't know why I am getting that error.
Any ideas what I'm doing wrong, I know its going to be some stupid that I'm not seeing or thinking of.
Last edit: 14 Dec 2024 20:28 by mjones@welfab.ca. Reason: added limit switches and corrected 1r99 to 1e99 than again to say z axis isn't instead of axis arent

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

More
16 Dec 2024 17:23 #316781 by andypugh
Replied by andypugh on topic Min Max limit error on only one axis
Your lathe could be configured as xzuw, which would probably make sense, though I don't think that canned cycles are supported in the uw plane, nor is radius/diameter mode, as far as I can recall.

Note that the mapping between the "joints" and the "axes" is governed by the kinematics module and and configuration. It may be that something is a bit wrong there in your configuration.

If you attach your HAL and INI file we will have more to go on.

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

  • mjones@welfab.ca
  • Offline
  • Premium Member
  • Premium Member
More
16 Dec 2024 18:30 #316787 by mjones@welfab.ca
Replied by mjones@welfab.ca on topic Min Max limit error on only one axis
Thanks for the response
I was going with x1,x2,z1,z2 because that is what Hardinge used. what they are called in the program doesn't make a lot of difference to me.
I have attached my hal and ini

Thanks

File Attachment:

File Name: superslant...2-16.hal
File Size:35 KB

File Attachment:

File Name: superslant...2-16.ini
File Size:7 KB
Attachments:

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

  • mjones@welfab.ca
  • Offline
  • Premium Member
  • Premium Member
More
20 Dec 2024 22:39 #317065 by mjones@welfab.ca
Replied by mjones@welfab.ca on topic Min Max limit error on only one axis
Ok so I took Andy's advise, and looked at the kinematics tutorial and sure enough axis a,b,c are designated for rotary axis and u,v,w are other linear, so to see if it would make a difference I changed my a axis to u, then when I tried opening linuxcnc it came up with an error saying that pin pid.u.pgain didn't exist. I looked through everything and changed in the ini axis.U to axis.u. then it came up similar to previouse the min max needs to be1e99 +- so then I changed to joint for u to 6 from 3 because the manual says that axis u is joint 6 then it went back to pin pid.u.pgain didn't exist.
I am now wandering if I have to plug that axis into the axis 6 output on the 7i76 board and change all the stepgens to stepgen 6 as well.

Has any one had this problem that can steer me the right way? Forgive my paraphrasing the errors, I am at home now not at work near the machine, and on a windows machine not linux.

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

More
28 Dec 2024 00:17 #317524 by andypugh
Replied by andypugh on topic Min Max limit error on only one axis
Sorry for the late reply, the forum has stopped sending me notifications.

In the INI [KINS] section
[KINS]
KINEMATICS = trivkins coordinates=XZUW
JOINTS = 4

The in the joints and axes defintions:
[AXIS_X]
...
[JOINT_0]
...
[AXIS_Z]
...
[JOINT_1]
...
[AXIS_U]
...
[JOINT_2]
...
[AXIS_W]
...
[JOINT_3]

Also, in [TRAJ]
COORDINATES = XZUW

The in the HAL file make sure that all references to the INI file like 'setp pid.z.Pgain [JOINT_2]P" point to things that exist (they should, if you tructure it like I showed above)

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

  • mjones@welfab.ca
  • Offline
  • Premium Member
  • Premium Member
More
28 Dec 2024 00:31 #317525 by mjones@welfab.ca
Replied by mjones@welfab.ca on topic Min Max limit error on only one axis
Thank you. Better late than never. I am working on the road today and tomorrow, I will try this on Sunday and see how it goes. Will let you know.

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

Time to create page: 0.060 seconds
Powered by Kunena Forum