PWM not working - 7i96

More
18 Nov 2019 12:27 #150575 by jools
As above I seem to have lost my spindle speed control keys. HAL and INI attached for reference.

Thanks Jools
Attachments:

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

More
18 Nov 2019 13:45 - 18 Nov 2019 13:47 #150579 by jools
Seemed top have sorted it

did a PNC conf for a 7176e and compared them and added this below.

net spindle-vel-cmd-rps <= spindle.0.speed-out-rps
net spindle-vel-cmd-rps-abs <= spindle.0.speed-out-rps-abs
net spindle-vel-cmd-rpm <= spindle.0.speed-out
net spindle-vel-cmd-rpm-abs <= spindle.0.speed-out-abs
net spindle-enable <= spindle.0.on
net spindle-cw <= spindle.0.forward
net spindle-ccw <= spindle.0.reverse
net spindle-brake <= spindle.0.brake
net spindle-revs => spindle.0.revs
net spindle-at-speed => spindle.0.at-speed
net spindle-vel-fb-rps => spindle.0.speed-in
net spindle-index-enable <=> spindle.0.index-enable

This made the buttons show up so will try further. Might not need all of those though so if I don't please let me know.

1 thought. My spindle is PWM driven so do I need the spindle-vel commands? My .ini already has the below:
setp hm2_7i96.0.pwmgen.00.output-type 1
setp hm2_7i96.0.pwmgen.00.scale [SPINDLE]MAX_RPM
setp hm2_7i96.0.pwmgen.pwm_frequency [SPINDLE]PWM_FREQUENCY

Jools
Last edit: 18 Nov 2019 13:47 by jools.

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

More
18 Nov 2019 13:55 #150580 by jools
with those added I can click the buttons to start the spindle but the PWM output from the 7i96 doesn't waver from -5v.

Any thoughts?

Jools

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

More
19 Nov 2019 07:40 #150611 by cmorley
AXIS decides to show the spindle buttons by looking to see if a signal is connected to a certain pin ( I forget which one logically spinde.0.on)
You have connected a signal to these pins but not connected the signal to a corresponding pin. Ie a driver pin to a signal to a driven pin.

Ie spindle.0.on will be set true by AXIS so the signal spindle-enable will go true but
that signal goes nowhere.

Surely the 7i96 configuration program can connect the pins for you.

Chris

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

More
19 Nov 2019 08:27 - 19 Nov 2019 10:57 #150612 by jools
Replied by jools on topic PWM not working - 7i96
Hi Chris

That’s what I thought, but unless I’m doing something wrong on the hardware end I’m at a loss.

I set this up with the 7i96 configuration tool and it produced the first attached ini and Hal flies but no buttons. Researching this and comparing it with a fake pncconf setup for a 7i76 gave me the idea I need to Hal net commands but it still seems not to work.

I’ll investigate the hardware end and try some more settings today but with Hal I’m guessing; I grasp the concept loosely but when it comes to details I don’t have the skills.

Any more help from anyone would be great.

Jools
Last edit: 19 Nov 2019 10:57 by jools.

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

More
22 Nov 2019 13:13 #150911 by andypugh
Replied by andypugh on topic PWM not working - 7i96
The bits of Axis that show/hide spindle buttons are here:
github.com/LinuxCNC/linuxcnc/blob/master...cripts/axis.py#L4039

It is possible that I messed something up when I changed _all_ the spindle-related pin names in 2.8, though.
The following user(s) said Thank You: jools

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

Time to create page: 0.065 seconds
Powered by Kunena Forum