X axis zero point drifting to the right
14 Jul 2016 20:01 #77454
by PCW
Replied by PCW on topic X axis zero point drifting to the right
Its set in the hal file
it needs to be fixed on all axis
it needs to be fixed on all axis
Please Log in or Create an account to join the conversation.
14 Jul 2016 21:15 - 14 Jul 2016 21:17 #77460
by Wirewrap
setp pid.x.maxerror .0005
should be changed to
setp pid.x.maxerror .01
Replied by Wirewrap on topic X axis zero point drifting to the right
Then I guess MAX_ERROR is referring to this?Its set in the hal file
it needs to be fixed on all axis
setp pid.x.maxerror .0005
should be changed to
setp pid.x.maxerror .01
Last edit: 14 Jul 2016 21:17 by Wirewrap. Reason: Corrected value
Please Log in or Create an account to join the conversation.
14 Jul 2016 21:18 #77462
by PCW
Replied by PCW on topic X axis zero point drifting to the right
No, it should be set . 0.01
Please Log in or Create an account to join the conversation.
18 Jul 2016 17:25 #77602
by Wirewrap
Replied by Wirewrap on topic X axis zero point drifting to the right
Now I have spent most of a day testing some modifications to my system that is losing steps in one direction on all axis. I travel 30 km from home to my shop so testing is done batchwise.
Any other ideas to test are highly appreciated.
- modified setp pid.x.maxerror .01 to be compatible with mm machine units. This had no appearent effect, but I will keep it as it seems logical.
- Tested with ridicously low speed and acceleration, like 10 mm/min. No difference in amount of lost steps.
- Bypassed the PID block by changing stepgen to pos mode and connecting axis.0.motor-pos-cmd to hm2_5i25.0.stepgen.00.position-cmd. This had no effect either better nor worse. So the problem is not in the PID block anyway.
- Rewired all step and direction signals with twisted pairs with one separate ground wire each directly from the 6i25 to the Gecko drivers. Worried that this is an electrical disturbance problem after all. Did not help.
- Inverted the step signal from 6i25 to G213 if it is some timing issue between step and dir. No better, no worse.
- Changed microstepping setting in the G213 from 10 micro steps to full step mode. Still losing steps at the same rate.
Any other ideas to test are highly appreciated.
Please Log in or Create an account to join the conversation.
19 Jul 2016 14:34 #77649
by andypugh
Replied by andypugh on topic X axis zero point drifting to the right
I wonder if it is the dir-setup or dir-hold settings?
Please Log in or Create an account to join the conversation.
19 Jul 2016 14:45 - 19 Jul 2016 15:02 #77652
by PCW
Replied by PCW on topic X axis zero point drifting to the right
Other possibilities:
Not enough drive -- add a break out board or a 470 Ohm 5V pullup to the step/dir outputs
Missing or wrong common ground (not returned to 5I25 with step/dir wires so there's cross
talk between DIR and STEP
Not enough drive -- add a break out board or a 470 Ohm 5V pullup to the step/dir outputs
Missing or wrong common ground (not returned to 5I25 with step/dir wires so there's cross
talk between DIR and STEP
Last edit: 19 Jul 2016 15:02 by PCW.
Please Log in or Create an account to join the conversation.
19 Jul 2016 21:11 - 19 Jul 2016 21:30 #77671
by Wirewrap
Also tried to invert the step output to see if there was a difference at what level step is when dir changes. Did not seem so.
Replied by Wirewrap on topic X axis zero point drifting to the right
I tried to increase those values 10x, it had no effect. G213V spec is 200ns min for both.I wonder if it is the dir-setup or dir-hold settings?
Also tried to invert the step output to see if there was a difference at what level step is when dir changes. Did not seem so.
Last edit: 19 Jul 2016 21:30 by Wirewrap. Reason: Info on step polarity
Please Log in or Create an account to join the conversation.
19 Jul 2016 21:25 #77672
by Wirewrap
It really seems like one transition but not the other of the DIR signal gives one extra STEP pulse. Tomorrow I will look with a scope and I will also try with some pullups. The G213V input spec is
"They will operate with 2.5V, 3.3V or 5V logic outputs with 2.5mA minimum source drive current."
Replied by Wirewrap on topic X axis zero point drifting to the right
I already rewired all step and dir signals as twisted pairs with one ground each directly to the 6i25 to avoid a possible common ground interference.Other possibilities:
Not enough drive -- add a break out board or a 470 Ohm 5V pullup to the step/dir outputs
Missing or wrong common ground (not returned to 5I25 with step/dir wires so there's cross
talk between DIR and STEP
It really seems like one transition but not the other of the DIR signal gives one extra STEP pulse. Tomorrow I will look with a scope and I will also try with some pullups. The G213V input spec is
"They will operate with 2.5V, 3.3V or 5V logic outputs with 2.5mA minimum source drive current."
Please Log in or Create an account to join the conversation.
Time to create page: 0.081 seconds