soft limits different after power cycle
15 Oct 2017 00:25 - 15 Oct 2017 06:32 #100364
by RayJr
"No problem can be solved from the same level of consciousness that created it"
Albert Einstein
soft limits different after power cycle was created by RayJr
This is my second machine build, but first using Mesa hardware. The first one is in use by a high school robotics team (7 years now).
Getting things working, but I am having issues with what the machine is doing with soft limits on homing after a power cycle.
Yesterday, I got homing working the way I think it should. messed with the machine a while and shut it down properly.
Today, I start it up, home it, then the fun begins! I homed it, but after it did the touch dance, it moves back to where it was on power up, and sets the soft limit there. So if the machine started in the middle of travel range, I now have half the range.
Tried deleting the.var file, and re-started, no better.
Got my son involved. It has him puzzled as well.
To sum up teh behavior, it adds the distance it moved to find the home/limit switch to the home offset, and moves there, which can cause serious problems. It does this on all three axis.
Current .hal, .ini & .var files attached.
This was a fresh install from the live image, updated all, updated to 2.7.11.
Thank you for your help!
Ray
Getting things working, but I am having issues with what the machine is doing with soft limits on homing after a power cycle.
Yesterday, I got homing working the way I think it should. messed with the machine a while and shut it down properly.
Today, I start it up, home it, then the fun begins! I homed it, but after it did the touch dance, it moves back to where it was on power up, and sets the soft limit there. So if the machine started in the middle of travel range, I now have half the range.
Tried deleting the.var file, and re-started, no better.
Got my son involved. It has him puzzled as well.
To sum up teh behavior, it adds the distance it moved to find the home/limit switch to the home offset, and moves there, which can cause serious problems. It does this on all three axis.
Current .hal, .ini & .var files attached.
This was a fresh install from the live image, updated all, updated to 2.7.11.
Thank you for your help!
Ray
"No problem can be solved from the same level of consciousness that created it"
Albert Einstein
Last edit: 15 Oct 2017 06:32 by RayJr.
Please Log in or Create an account to join the conversation.
15 Oct 2017 08:10 #100368
by rodw
Replied by rodw on topic soft limits different after power cycle
Its your ini file settings. See 3.12 in the homing configuration docs
linuxcnc.org/docs/2.7/html/config/ini-ho...ml#_immediate_homing
linuxcnc.org/docs/2.7/html/config/ini-ho...ml#_immediate_homing
Please Log in or Create an account to join the conversation.
15 Oct 2017 17:18 #100403
by RayJr
"No problem can be solved from the same level of consciousness that created it"
Albert Einstein
Replied by RayJr on topic soft limits different after power cycle
Hi Rod. Thank you for getting back to me.
As I understand that instruction, it is a setting for when you do not have limit/home switches. You move the machine to a position you want to be home (by using witness marks or other), run the home all, the system takes the current position as home, and no move is executed.
The issue I am having is:
The moves to find the limit/home switch are correct, the move to index is correct, the final move (offset to home) is getting the distance of the initial move to the switch added to the home offset. (I verified this by setting offset to home to 0)
The first time I experienced this, I had the X offset to home 12.0", and the table as plus of the center (so first move was more than 12"), then when the final move executed, it went past the plus limit switch and crashed into the end of travel.
As a side note, it seems it is still ignoring limit switches at this point.
Ray
As I understand that instruction, it is a setting for when you do not have limit/home switches. You move the machine to a position you want to be home (by using witness marks or other), run the home all, the system takes the current position as home, and no move is executed.
The issue I am having is:
The moves to find the limit/home switch are correct, the move to index is correct, the final move (offset to home) is getting the distance of the initial move to the switch added to the home offset. (I verified this by setting offset to home to 0)
The first time I experienced this, I had the X offset to home 12.0", and the table as plus of the center (so first move was more than 12"), then when the final move executed, it went past the plus limit switch and crashed into the end of travel.
As a side note, it seems it is still ignoring limit switches at this point.
Ray
"No problem can be solved from the same level of consciousness that created it"
Albert Einstein
Please Log in or Create an account to join the conversation.
15 Oct 2017 20:30 #100412
by rodw
Replied by rodw on topic soft limits different after power cycle
Get your limit switches working before worrying about the soft limits. Check in Halshow that the switches are being triggered and then once you know the pin, connect it to the right signal
Its very easy to swap a wire and what you think is say the min limit is actually something else.
The other thing I've had happen when configuring a machines is that LinuxCNC's saved variables get scrambled. Thy deleting the .var file in your config folder. Usually it will be linuxcnc.var.
Its very easy to swap a wire and what you think is say the min limit is actually something else.
axis.N.neg-lim-sw-in IN BIT
Should be driven TRUE if the negative limit switch for this joint is tripped.
axis.N.pos-lim-sw-in IN BIT
Should be driven TRUE if the positive limit switch for this joint is tripped.
The other thing I've had happen when configuring a machines is that LinuxCNC's saved variables get scrambled. Thy deleting the .var file in your config folder. Usually it will be linuxcnc.var.
Please Log in or Create an account to join the conversation.
15 Oct 2017 22:02 - 15 Oct 2017 22:04 #100415
by RayJr
"No problem can be solved from the same level of consciousness that created it"
Albert Einstein
Replied by RayJr on topic soft limits different after power cycle
I verified those were all correct before I started other testing, but just did it again with my son to be sure they are correct.
Tripping each limit switch while slow jogging stops the machine & disables it. Tripping any limit disables the machine.
When the home sequence is in the jog to home phase, none of the limit switches have any effect!
This seems to me to be a bug!
Tripping each limit switch while slow jogging stops the machine & disables it. Tripping any limit disables the machine.
When the home sequence is in the jog to home phase, none of the limit switches have any effect!
This seems to me to be a bug!
"No problem can be solved from the same level of consciousness that created it"
Albert Einstein
Last edit: 15 Oct 2017 22:04 by RayJr.
Please Log in or Create an account to join the conversation.
15 Oct 2017 22:49 #100417
by rodw
Replied by rodw on topic soft limits different after power cycle
Not a bug. There is an INi file setting to ignore limits when homing. This is required if you have a shared home/limit switch. Check the homing configuration documentation again.
Did you delte the .VAR file?
Did you delte the .VAR file?
Please Log in or Create an account to join the conversation.
15 Oct 2017 23:30 #100419
by RayJr
"No problem can be solved from the same level of consciousness that created it"
Albert Einstein
Replied by RayJr on topic soft limits different after power cycle
Deleted the .var file several times over the last two days.
Yes, I understand the "ignore limit switches". I just feel that once the home/limit switch is found it should re-enable the hard limits before doing a move to home.
This still does not explain why the move to home is the home offset plus the move to find the home switch then setting the limit there.
Ray
Yes, I understand the "ignore limit switches". I just feel that once the home/limit switch is found it should re-enable the hard limits before doing a move to home.
This still does not explain why the move to home is the home offset plus the move to find the home switch then setting the limit there.
Ray
"No problem can be solved from the same level of consciousness that created it"
Albert Einstein
Please Log in or Create an account to join the conversation.
16 Oct 2017 17:56 #100444
by RayJr
"No problem can be solved from the same level of consciousness that created it"
Albert Einstein
Replied by RayJr on topic soft limits different after power cycle
UPDATE:
I just built a duplicate config with PNCconf, but without the encoders on X, Y ,and Z.
Homing now works as I expected it to work!
So now I think my task is to find where the encoder count is being added back into the home offset, so I can clear it, so it doesn't put the end of travel where the machine was woken up (where the encoders would have a count of zero).
Any ideas are welcome!
Ray
I just built a duplicate config with PNCconf, but without the encoders on X, Y ,and Z.
Homing now works as I expected it to work!
So now I think my task is to find where the encoder count is being added back into the home offset, so I can clear it, so it doesn't put the end of travel where the machine was woken up (where the encoders would have a count of zero).
Any ideas are welcome!
Ray
"No problem can be solved from the same level of consciousness that created it"
Albert Einstein
Please Log in or Create an account to join the conversation.
16 Oct 2017 19:31 #100446
by PCW
Replied by PCW on topic soft limits different after power cycle
It looks like the PID loop is not wired correctly for encoder feedback
For closed loop with encoder feedback the PID feedback term (and axis feedback term)
must come from the encoder, not the stepgen (the stepgen feedback is not used with encoder feedback)
For closed loop with encoder feedback the PID feedback term (and axis feedback term)
must come from the encoder, not the stepgen (the stepgen feedback is not used with encoder feedback)
Please Log in or Create an account to join the conversation.
16 Oct 2017 20:56 #100447
by RayJr
"No problem can be solved from the same level of consciousness that created it"
Albert Einstein
Replied by RayJr on topic soft limits different after power cycle
Can you point me to any tutorials on wiring up the PID?
Ray
Ray
"No problem can be solved from the same level of consciousness that created it"
Albert Einstein
Please Log in or Create an account to join the conversation.
Time to create page: 0.100 seconds