Mesa 7i96 with SPINX1 to control spindle speed

More
4 years 8 months ago #235654 by kbec
This is the first errorhm2:
loading Mesa HostMot2 driver version 0.15./spintestnew.hal:17: unterminated quoted stringShutting down and cleaning up LinuxCNC...hm2/hm2_7i96.0: registered./spintestnew.

hal:72: Ini variable '[SPINDLE]MAX_OUTPUT' not found.Shutting down and cleaning up LinuxCNC...I think this is due to the MAX_OUTPUT being able to be blank. That is not really an issue with the program I think, but mine.

The setp is due to an extra setp created in the hal file

I also get this:Found file(REL): ./io.hal./io.hal:4: Pin 'spindle.0.on' was already linked to signal 'spindle-enable'Shutting down and cleaning up LinuxCNC...that is fixed by commenting out the line in the io.hal file

Attachment not found

Attachment not found

Please Log in to join the conversation.

More
4 years 8 months ago #235655 by BigJohnT
I fixed the first error and will code a check for the second error and fix the third error in the morning. Thanks again for helping me make this configuration tool work like it's supposed to work.

JT

Please Log in to join the conversation.

More
4 years 8 months ago #235685 by BigJohnT
Ok, I pushed the fixes but didn't bump the version so just reinstall and test the fixes. I wish I had a 7i96 in stock to test with it sure would speed things up.

JT

Please Log in to join the conversation.

More
4 years 8 months ago #235689 by kbec
Configuration seems better, but still not 100%

As I saved it:
 

Attachment not found


 
When it loads in:

Attachment not found



The quote issue is fixed

still seeing the setp duplicate here(I addressed it manually in the attached hal file):
setp pid.1.error-previous-target true
setp setp hm2_7i96.0.pwmgen.pwm_frequency [SPINDLE]PWM_FREQUENCY
setp hm2_7i96.0.pwmgen.00.scale [SPINDLE]SCALE

I think the issue may be in the pins, I am not sure, but I see the value of hm2_7i96.0.pwmgen.00.enable change as it is supposed to, but the hm2_7i96.0.pwmgen.00.value is always at 0. Other pins show speed increase, etc, but this one stays at 0.
 

Attachment not found



I tried to help myself a little, but everything I looked at is more to parallel cards or something totally different. I appreciate your help, I think it is pretty close. Just let me know when you need me to test something, I'll be around.

 

Attachment not found

 

Attachment not found



 

Please Log in to join the conversation.

More
4 years 8 months ago #235693 by BigJohnT
When I open the ini file the Configuration Setup is correct.
 

Attachment not found



I might not have pushed the latest one, I'll do that again.

JT

Please Log in to join the conversation.

More
4 years 8 months ago #235695 by BigJohnT
See if hm2_7i96.0.pwmgen.00.value is linked to a signal or not in the Show Window. I really wish I had a 7i96 in stock right now...

JT

Please Log in to join the conversation.

More
4 years 8 months ago #235697 by BigJohnT
I "think" I know what's wrong, give me a bit to try and sort it out.

JT

Please Log in to join the conversation.

More
4 years 8 months ago #235699 by kbec
I am not sure how you programmed the write. I am thinking the parameter I need is not getting written out.

I reloaded and now the config info pulls in like it should.

When I was looking about it last night, I think the missing piece is a tie in between
hm2_7i96.0.pwmgen.00.value and pid.1.output, I am not sure where that pid.1.output is getting set. I am wondering if that is the setp with no content.

setp pid.1.Igain [SPINDLE]I
setp pid.1.Dgain [SPINDLE]D
setp pid.1.bias [SPINDLE]BIAS
setp pid.1.FF0 [SPINDLE]FF0
setp pid.1.FF1 [SPINDLE]FF1
setp pid.1.FF2 [SPINDLE]FF2
setp pid.1.deadband [SPINDLE]DEADBAND
setp pid.1.maxoutput [SPINDLE]MAX_OUTPUT
setp pid.1.error-previous-target true
#setp
setp hm2_7i96.0.pwmgen.pwm_frequency [SPINDLE]PWM_FREQUENCY
setp hm2_7i96.0.pwmgen.00.scale [SPINDLE]SCALE
net spindle-index-enable <=> pid.1.index-enable
net spindle-enable pid.1.enable
net spindle-vel-cmd-rpm => pid.1.command
net spindle-vel-fb-rpm => pid.1.feedback
net spindle-output <= pid.1.output
net spindle-output => hm2_7i96.0.pwmgen.00.value

Please Log in to join the conversation.

More
4 years 8 months ago #235702 by BigJohnT
Also if you can get me a list of pin, parameters and signals and post the text file that will help.
Code:
halcmd show > 7i96.txt

JT

Please Log in to join the conversation.

More
4 years 8 months ago #235704 by kbec
Ok, Linux cnc is loaded, but it is idle when I ran this.
 

Attachment not found

Please Log in to join the conversation.

Time to create page: 0.072 seconds
Powered by Kunena Forum