PathPilot + Mesa 7i76e + DYN4 Servo Drive - Spindle not working

More
02 Dec 2022 05:56 #258298 by yodaddy
I'm running PP 2.7.2 with a Mesa 7i76e, and DMM DYN4 for a servo spindle which I'm trying to run in analog velocity mode. I'm confident I have the 7i76e<->DYN4 wiring correct, and have 10vdc across the 7i76e TB4 SPINDLE+ and SPINDLE-. I can run the spindle with an external 0-10v pot, so I am confident I have the DYN4 set up correctly. Halshow shows hm2_7i76e.0.7i76.0.0.spinena, spindir, and spinout with appropriate values. Everything seems correct, but I can't get voltage out on 7i76e TB4 SPINDLEOUT.

If anyone has PP working with analog spindle control on a 7i76e could I get a copy of your .ini and .hal files? If not, I'd appreciate if someone could take a look at my attached config files and give me suggestions where this is breaking.

Thank You.
Attachments:

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

More
02 Dec 2022 16:10 #258325 by andypugh
I think that the 7i76e spindle output is a digital potentiometer (in effect) so needs the +10 and 0V references from the drive connecting too.

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

More
03 Dec 2022 01:10 #258390 by yodaddy
Yes, it is a potentiometer. The 7i76e and DYN4 are wired and powered per the attached. There is 10v between TB4 pins 1 & 3, but no voltage out on pin 2 when spindle commands are given.

Thanks.
Attachments:

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

More
03 Dec 2022 16:02 #258433 by PCW
Can you post the results of

halcmd show all | grep spin

when LinuxCNC/Pathpilot is running and setup for spindle motion

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

More
03 Dec 2022 17:54 #258442 by yodaddy
Attached is the output from "halcmd show all | grep spin".  Pathpilot was running and I'd just issued "M3 S2000" MDI command.

Thanks!
Attachments:

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

More
03 Dec 2022 18:10 #258444 by PCW
Yeah, if you do not have a watchdog error, and you have ~10V between
TB4 pins 3 and 1 and you do not have about 4V on TB4 pin 2 relative
to TB4 pin 1, It likely the 7I76E has a bad/damaged analog output

(you might check with TB4 pin 2 disconnected to make sure there is not a wiring error)

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

More
04 Dec 2022 12:39 - 04 Dec 2022 13:15 #258497 by yodaddy
No watchdog errors, and I still get 0v on TB4 pin 2 with the wire removed. 

If you have a moment, could you check the wiring schematic DMM gave me that I attached to the reply just before your last?  I'd found an error in their TB3<->JP5 portion which they corrected, and it's possible they screwed something up elsewhere.

Also, I have another 7i76e connected to another computer running PP using the same config as my mill, and have powered it up with 24v according to the 7i76_Anschluss pdf, and 10v for TB4. Nothing else is connected to the 7i76e. I used halcmd to set hm2_7i76e.0.7i76.0.0.spinena <== spindle-enable to TRUE, but still can't get a voltage on TB4 pin 2. Is it possible to test the analog spindle output without it being connected to a drive? If so, what do I need to do?

Thank you.
 
Last edit: 04 Dec 2022 13:15 by yodaddy. Reason: clarification

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

More
04 Dec 2022 15:09 #258507 by PCW
Yes, to test the analog output, without a drive
you connect 10-12v between TB4 pins 3 (+) and 1 (-)
You run LinuxCNC and make sure the enable is true,
and that output value scaling and limits make sense, say:

setp hm2_7i76e.0.7i76.0.0.spinena true
setp hm2_7i76e.0.7i76.0.0.spinout 5000
setp hm2_7i76e.0.7i76.0.0.scalemax 5000
setp hm2_7i76e.0.7i76.0.0.minlim 0
setp hm2_7i76e.0.7i76.0.0.maxlim 5000

And you measure the output between TB4 pin2 (+) and TB4 pin 1(-)

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

More
04 Dec 2022 17:50 #258520 by yodaddy
The board is set up as you described. I set hm2_7i76e.0.7i76.0.0.spinena TRUE, issued an M3 S5000 command, ran halcmd with "halcmd show all | grep hm2_7i76e.0.7i76 > dump", then checked the variables you listed and got output identical to what you listed.

This is a virgin 7i76e purchased from Mesa a couple months ago, and I get the same results as my other 7i76e. Could the tormachspindle cancer be queering things up? I tried to remove it completely, but PP complains that commanded spindle speeds are out of the range of 0-0.

If you don't have any further suggestions I'll chop out all the tormachspindle stuff I can while still being able to start PP.

Thanks. I really appreciate your help.

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

More
06 Dec 2022 00:57 #258645 by andypugh

The board is set up as you described. I set hm2_7i76e.0.7i76.0.0.spinena TRUE, issued an M3 S5000 command, ran halcmd with "halcmd show all | grep hm2_7i76e.0.7i76 > dump", then checked the variables you listed and got output identical to what you listed.

Try doing it outside your config, using the simplest possible config. 
halrun
loadrt hostmot2
loadrt hm2_eth board_ip=10.10.10.10 {or 192.168.1.181 or whatever you are using}
loadrt threads
addf hm2_7i75e.read thread1 {use tab-completion here, I am not sure of the function names}
addf hm2_7i75e.write thread1
start {should see happy LEDS on the board at this point}
setp hm2_7i76e.0.7i76.0.0.scalemax 5000
setp hm2_7i76e.0.7i76.0.0.minlim 0
setp hm2_7i76e.0.7i76.0.0.maxlim 5000
setp hm2_7i76e.0.7i76.0.0.spinena true
setp hm2_7i76e.0.7i76.0.0.spinout 5000

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

Moderators: cncbasher
Time to create page: 0.125 seconds
Powered by Kunena Forum