Axis Homing not working correctly?
07 Dec 2012 02:31 - 07 Dec 2012 02:32 #27332
by BigJohnT
Replied by BigJohnT on topic Axis Homing not working correctly?
I assume you had the same result?
Did you test the index for proper polarity?
gnipsel.com/linuxcnc/tuning/encoder.html
John
Did you test the index for proper polarity?
gnipsel.com/linuxcnc/tuning/encoder.html
John
Last edit: 07 Dec 2012 02:32 by BigJohnT.
Please Log in or Create an account to join the conversation.
07 Dec 2012 03:29 - 07 Dec 2012 04:02 #27337
by tjamscad
It says use setp but I don't get what i need to type. looking at the configuration watch list index enable just blinks once and stays off. From the link you provided it appears that this is backwards and I need to reverse the polarity. Should I redo the connections on the encoder itself or is there a software change that can be made?
From the HAL file:
##################################################################
#
# W axis
#
net W-motor-pos-fb ppmc.0.encoder.02.position axis.8.motor-pos-fb pid.8.feedback # motor feedback
net Woutput pid.8.output ppmc.0.DAC.02.value # motor pid to DAC
net Wpos-cmd axis.8.motor-pos-cmd pid.8.command # position command into PIDs
net Wenable axis.8.amp-enable-out pid.8.enable # enable PIDs
net Windex axis.8.index-enable ppmc.0.encoder.02.index-enable # homing connection
#
setp ppmc.0.encoder.02.scale [AXIS_8]MOTOR_ENC_SCALE
#
setp pid.8.maxoutput [AXIS_8]MAX_VELOCITY
#
setp axis.8.jog-vel-mode true
#
setp ppmc.0.DAC.02.scale [AXIS_8]OUTPUT_SCALE
#
# set PID loop gains
setp pid.8.Pgain [AXIS_8]P
setp pid.8.Igain [AXIS_8]I
setp pid.8.Dgain [AXIS_8]D
setp pid.8.bias [AXIS_8]BIAS
setp pid.8.FF0 [AXIS_8]FF0
setp pid.8.FF1 [AXIS_8]FF1
setp pid.8.FF2 [AXIS_8]FF2
setp pid.8.deadband [AXIS_8]DEADBAND
#
########################################################################################################################################
Replied by tjamscad on topic Axis Homing not working correctly?
I assume you had the same result?
Did you test the index for proper polarity?
gnipsel.com/linuxcnc/tuning/encoder.html
John
It says use setp but I don't get what i need to type. looking at the configuration watch list index enable just blinks once and stays off. From the link you provided it appears that this is backwards and I need to reverse the polarity. Should I redo the connections on the encoder itself or is there a software change that can be made?
From the HAL file:
##################################################################
#
# W axis
#
net W-motor-pos-fb ppmc.0.encoder.02.position axis.8.motor-pos-fb pid.8.feedback # motor feedback
net Woutput pid.8.output ppmc.0.DAC.02.value # motor pid to DAC
net Wpos-cmd axis.8.motor-pos-cmd pid.8.command # position command into PIDs
net Wenable axis.8.amp-enable-out pid.8.enable # enable PIDs
net Windex axis.8.index-enable ppmc.0.encoder.02.index-enable # homing connection
#
setp ppmc.0.encoder.02.scale [AXIS_8]MOTOR_ENC_SCALE
#
setp pid.8.maxoutput [AXIS_8]MAX_VELOCITY
#
setp axis.8.jog-vel-mode true
#
setp ppmc.0.DAC.02.scale [AXIS_8]OUTPUT_SCALE
#
# set PID loop gains
setp pid.8.Pgain [AXIS_8]P
setp pid.8.Igain [AXIS_8]I
setp pid.8.Dgain [AXIS_8]D
setp pid.8.bias [AXIS_8]BIAS
setp pid.8.FF0 [AXIS_8]FF0
setp pid.8.FF1 [AXIS_8]FF1
setp pid.8.FF2 [AXIS_8]FF2
setp pid.8.deadband [AXIS_8]DEADBAND
#
########################################################################################################################################
Last edit: 07 Dec 2012 04:02 by tjamscad.
Please Log in or Create an account to join the conversation.
07 Dec 2012 07:27 #27353
by BigJohnT
Replied by BigJohnT on topic Axis Homing not working correctly?
With LinuxCNC running open up the Show Hal Configuration window (dunno if Touchy has it but it should) and you can see your pin status in a watch window. In the main window you can type in a Hal command at the bottom.
I'm not familiar with ppmc so I don't know if it has a invert pin for index.
John
I'm not familiar with ppmc so I don't know if it has a invert pin for index.
John
Please Log in or Create an account to join the conversation.
07 Dec 2012 11:44 - 07 Dec 2012 11:47 #27365
by cmorley
Replied by cmorley on topic Axis Homing not working correctly?
Is the switch logic the same for the W home switch as the other axis? ( more important is it what linuxcnc expects)
And does the axis movement direction agree with the machine thinks it's doing?
You can look at the AXIS plot to see if the directions match. (remembering AXIS shows TOOL movement not machine movement)
Both of these can make the machine seem to start homing properly but will not finish properly.
Chris M
And does the axis movement direction agree with the machine thinks it's doing?
You can look at the AXIS plot to see if the directions match. (remembering AXIS shows TOOL movement not machine movement)
Both of these can make the machine seem to start homing properly but will not finish properly.
Chris M
Last edit: 07 Dec 2012 11:47 by cmorley. Reason: add a common gottcha
Please Log in or Create an account to join the conversation.
07 Dec 2012 12:38 #27370
by tjamscad
Replied by tjamscad on topic Axis Homing not working correctly?
John I have not been able to follow your request. I will look at that in the morning and watch the axis preview a Chris has sugesated. I did notice and for got to mention that it starts homing in the direction I tell it to. It makes the switch and then backs off the switch. That is where the problem seems to be. On the DRO it increments + to make the switch and then reverses -. I know from testing it takes right at 1' of movement to get off the switch. When it gets to that 1" mark it starts counting down to the position where it was when EMC loaded up.
Please Log in or Create an account to join the conversation.
07 Dec 2012 16:53 #27373
by cmorley
Replied by cmorley on topic Axis Homing not working correctly?
TOUCHY doesn't give access to halshow.
If you open a terminal (while TOUCHY is running) and type: halcmd loadusr halmeter then right click the top of halmeter and set always-on-top
then you can watch the halpins change ( you can do it multiple times for multiple halmeters.)
Maybe you already know this.
when it starts to go back to where it started, does it ever stop? If not then it most likely means it's still searching for the switch/ or index.
Chris M
If you open a terminal (while TOUCHY is running) and type: halcmd loadusr halmeter then right click the top of halmeter and set always-on-top
then you can watch the halpins change ( you can do it multiple times for multiple halmeters.)
Maybe you already know this.
when it starts to go back to where it started, does it ever stop? If not then it most likely means it's still searching for the switch/ or index.
Chris M
Please Log in or Create an account to join the conversation.
07 Dec 2012 16:56 #27374
by cmorley
Replied by cmorley on topic Axis Homing not working correctly?
I would also consider giving search velocity and final velocity slightly different speeds so you can tell what linuxcnc is doing just be the sound/speed.
Chris M
Chris M
Please Log in or Create an account to join the conversation.
07 Dec 2012 20:34 #27382
by BigJohnT
After the seek when it gets off of the switch during latch if it doesn't stop at the next index pulse the index has to be backwards and LinuxCNC never sees the index.
John
Replied by BigJohnT on topic Axis Homing not working correctly?
John I have not been able to follow your request. I will look at that in the morning and watch the axis preview a Chris has sugesated. I did notice and for got to mention that it starts homing in the direction I tell it to. It makes the switch and then backs off the switch. That is where the problem seems to be. On the DRO it increments + to make the switch and then reverses -. I know from testing it takes right at 1' of movement to get off the switch. When it gets to that 1" mark it starts counting down to the position where it was when EMC loaded up.
After the seek when it gets off of the switch during latch if it doesn't stop at the next index pulse the index has to be backwards and LinuxCNC never sees the index.
John
Please Log in or Create an account to join the conversation.
07 Dec 2012 21:12 #27387
by tjamscad
Replied by tjamscad on topic Axis Homing not working correctly?
It turned out to be a bad port on the PPMC card. All seems to be going well now thanks.
Please Log in or Create an account to join the conversation.
Time to create page: 0.246 seconds