New Project with Mesa 7I96 and THCAD-05
Please Log in or Create an account to join the conversation.
That shows another issue with PnCconf, I will fix that one tomorrow.You are going to need HOME_IGNORE_LIMITS = 1 in the ini or else it will think it hit a limit when you home.
Please Log in or Create an account to join the conversation.
- acourtjester
- Offline
- Elite Member
- Posts: 282
- Thank you received: 23
With your help I have made some good progress today, no where near where I need to be but, I actually felt positive. I rewired the 3 axis home switches to single pin inputs for each and tried to use the axis limit + home but it would trip the limit when moving on the switch. So I have it set now with home only for each axis. I am only working with the Z as it is easy to push the switch. I was puzzled why it homed in the wrong direction while moving correctly with the arrow key. After looking over the info in the homing lay out I found this. The direction of the back-off is opposite the sign of HOME_SEARCH_VEL.
I removed the – from the value in the INI and it changed directions and looks like it work correctly. It does get an error if the home switch is pushed to quickly no problem something for later.
I did make the changes of the Net all-limit-home, but it did not seem to work so I changed it back to what it was. I had to change the home switches for NO so they would not error at start up. The diagram I had looked like they should be NC but I could be wrong.
I will be working on the motor calibration next.
If you don't mind I will have more questions.
I did notice that in Hal show the names change due to what conditions are set in the Pncconf.
You are going to need HOME_IGNORE_LIMITS = 1 in the ini or else it will think it hit a limit when you home.
Maybe that that is why I had a problem
Attachments:
Please Log in or Create an account to join the conversation.
You probably need to invert the inputs, you can do it in PnCconf by checking the Inv box next to the GPIO Input box or you can do it manuually in the hal file by changing from:I did make the changes of the Net all-limit-home, but it did not seem to work so I changed it back to what it was. I had to change the home switches for NO so they would not error at start up. The diagram I had looked like they should be NC but I could be wrong.
net home-z <= hm2_7i76e.0.7i76.0.0.input-15
net home-z <= hm2_7i76e.0.7i76.0.0.input-15-not
Please Log in or Create an account to join the conversation.
- acourtjester
- Offline
- Elite Member
- Posts: 282
- Thank you received: 23
It is working correctly now just the limit part for each axis, but I'm not sure if it is needed.
I did try the not addition but did not have the - in front of the not so it errored out.
Thanks for showing the correct syntax for that addition
I assume the HOME_IGNORE_LIMITS=1 is placed in the joint section of the INI for each axis.
Please Log in or Create an account to join the conversation.
Yes, for every joint that has a shared home/limit switch.I assume the HOME_IGNORE_LIMITS=1 is placed in the joint section of the INI for each axis.
Please Log in or Create an account to join the conversation.
- acourtjester
- Offline
- Elite Member
- Posts: 282
- Thank you received: 23
I am also getting the attached error randomly which seem to be for no reason I can connect
Another problem is the axis move very slowly I built 8 tables using the exact same drivers, motor, and gearing for each axis. I have change the switch selections for different steps per rev (this only changes the calculations for the steps per inch). The only difference is the software, I have used Mach and UCCNC on the others, this is the first Linuxcnc.
Note in passing here is a picture of my other table with the new tables moving assembly mounted for testing with the new controller and linuxcnc.
Attachments:
Please Log in or Create an account to join the conversation.
1. Home switches MUST remain triggered all the way to the end of travel
2. If using a mechanical switch, you may need to use the debounce component. Its possible that contact bounce causes the back off to be registered prematurely. See linuxcnc.org/docs/devel/html/man/man9/dbounce.9.html
I don't think you can do that in pncconf. It is time to leave it behind
I will say it can be hard to see the movements.
3. In your ini file [TRAJ] section, DEFAULT_LINEAR_VELOCITY sets the jogging rate in inches/second. See
linuxcnc.org/docs/devel/html/config/ini-...g.html#_traj_section
Please check these settings in your ini file for each joint and heed the comments
# The values below should be 25% larger than MAX_VELOCITY and MAX_ACCELERATION
# If using BACKLASH compensation STEPGEN_MAXACCEL should be 100% larger.
STEPGEN_MAXVEL = 700
STEPGEN_MAXACCEL = 2000
I did find that it was pretty easy to migrate the velocities accelerations and steps per settings of Mach when I helped another user recently.
Please Log in or Create an account to join the conversation.
- acourtjester
- Offline
- Elite Member
- Posts: 282
- Thank you received: 23
This is what is in mine
STEPGEN_MAXVEL = 6.25
STEPGEN_MAXACCEL = 2.12
Please Log in or Create an account to join the conversation.
Do you have something like this in the ini fileI made the changes in the Pncconf to have both limits and home for the 3 axis. It does work, but the operation (pointed to) in the attached image does not for each of the axis. I moves toward the home, I trip the switch and it stops moving then continues in the same direct slower. When I hit the switch again it backs off and sets the DRO to 0.0. I have tried changing or adding lines in the INI, but cannot make the first back off the switch work.
HOME = 30
HOME_OFFSET = 0
HOME_SEARCH_VEL = -50 This is the speed to search for the switch changing the sign will reverse the direction
HOME_LATCH_VEL = 1 The same with this so if HOME_SEARCH_VEL is -ve make the HOME_LATCH_VEL +ve to back off the switch
HOME_FINAL_VEL = 50
Please Log in or Create an account to join the conversation.