Servo Tuning FF

More
13 Jul 2012 15:14 #21889 by PCW
Replied by PCW on topic Re:Servo Tuning PID and FFn
I suspect the problem is a misunderstanding of how the enables work on the 7I49
there is really only a single common enable (enable 0)
This gates all channels

If you want a separate spindle enable, I would use a 7I71 output

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

More
13 Jul 2012 15:21 #21891 by LAIR82
Replied by LAIR82 on topic Re:Servo Tuning PID and FFn
I actually am not using the enables from the 7I49 though. The drives are enabled through hard logic in the machine, if that should be changed I can do that. My spindle is functioning as commanded, my slide drives are commanded from the pwmgen on channels 02 and 04 with z being 02 and x being 04. I have reconfigured my setup to put z on 04 and x on 02 and still had the same result.

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

More
13 Jul 2012 15:22 #21892 by andypugh
PCW wrote:

If you want a separate spindle enable, I would use a 7I71 output


That appears to be what he has.

Is it necessary to set the GPIO pins on the 5i23 that correspond to the 7i49 /ENA pins to outputs and set them low?

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

More
13 Jul 2012 15:28 #21894 by PCW
Replied by PCW on topic Re:Servo Tuning PID and FFn
No (you cannot because the pin is "owned" by the PWM gens) but you cannot wire ENA 0 to spindle enable or you will turns off the other analog outs when the spindle is off

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

More
13 Jul 2012 15:33 #21895 by andypugh
PCW wrote:

No (you cannot because the pin is "owned" by the PWM gens) but you cannot wire ENA 0 to spindle enable or you will turns off the other analog outs when the spindle is off


I suppose the question is what the hm2 driver pwmgen enable pins do then, as there seems to be one for each pwmgen. It might just set the pwm duty cycle individually to zero.

It's an easy test, though, to turn the spindle on and see if the axes wake up.

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

More
13 Jul 2012 15:34 #21896 by PCW
Replied by PCW on topic Re:Servo Tuning PID and FFn
net spindle-enable => hm2_5i23.0.pwmgen.00.enable
is the error

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

More
13 Jul 2012 18:00 #21906 by LAIR82
Replied by LAIR82 on topic Re:Servo Tuning PID and FFn
Pete,

I changed the enable to be fired from an ladder relay off of my main machine power, but im not seeing anything yet. How do I go about bypassing the PID function, I have already #'ed out all lines in my hal relating to PID,FF, Gain, Bias?

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

More
13 Jul 2012 18:04 #21907 by andypugh
LAIR82 wrote:

I changed the enable to be fired from an ladder relay off of my main machine power, but im not seeing anything yet. How do I go about bypassing the PID function, I have already #'ed out all lines in my hal relating to PID,FF, Gain, Bias?


The simplest would be to type the following in the command box in Halconfig (which might actually have disappeared off the bottom of the window, try resizing the window)

unlinkp hm2_5i23.0.pwmgen.02.value
unlinkp hm2_5i23.0.pwmgen.02.enable
setp hm2_5i23.0.pwmgen.02.enable 1
setp hm2_5i23.0.pwmgen.02.value 0.1

(and so on)

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

More
13 Jul 2012 18:20 #21908 by LAIR82
Replied by LAIR82 on topic Re:Servo Tuning PID and FFn
I finally got it to work and show voltage on my meter. Now its time to go back to yesterday and get to putting some power to the drives.

I had to go back to the original 02 and 04 pwmgen enable lines and connect them back to the PID ENABLE output, with the 00 enable still fired from my main power ladder rung.

See where we go from here.

Thanks again for all the help from you guys,

Rick

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

More
13 Jul 2012 18:22 - 13 Jul 2012 18:27 #21910 by PCW
Replied by PCW on topic Re:Servo Tuning PID and FFn
Also note you also will want
setp hm2_5i23.0.pwmgen.00.enable 1
since pwm enable 0 is a global hardware analog out enable
Last edit: 13 Jul 2012 18:27 by PCW.

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

Time to create page: 0.083 seconds
Powered by Kunena Forum