Mesa 7i96 with SPINX1 to control spindle speed

More
23 Feb 2022 21:35 - 23 Feb 2022 21:37 #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

File Attachment:

File Name: spintestnew.hal
File Size:4 KB

File Attachment:

File Name: spintestnew.ini.txt
File Size:3 KB
Attachments:
Last edit: 23 Feb 2022 21:37 by kbec. Reason: formatting
The following user(s) said Thank You: BigJohnT

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

More
23 Feb 2022 22:08 #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
The following user(s) said Thank You: tommylight

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

More
24 Feb 2022 11:29 #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 or Create an account to join the conversation.

More
24 Feb 2022 13:49 - 24 Feb 2022 13:52 #235689 by kbec
Configuration seems better, but still not 100%

As I saved it:
 
 
When it loads in:


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.
 

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.

 

File Attachment:

File Name: io.hal
File Size:0 KB
 

File Attachment:

File Name: spintest2.hal
File Size:3 KB


 
Attachments:
Last edit: 24 Feb 2022 13:52 by kbec.

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

More
24 Feb 2022 14:22 #235693 by BigJohnT
When I open the ini file the Configuration Setup is correct.
 

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

JT
Attachments:

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

More
24 Feb 2022 14:29 #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 or Create an account to join the conversation.

More
24 Feb 2022 14:36 #235697 by BigJohnT
I "think" I know what's wrong, give me a bit to try and sort it out.

JT

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

More
24 Feb 2022 14:52 - 24 Feb 2022 14:54 #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
Last edit: 24 Feb 2022 14:54 by kbec.

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

More
24 Feb 2022 14:58 #235702 by BigJohnT
Also if you can get me a list of pin, parameters and signals and post the text file that will help.
halcmd show > 7i96.txt

JT

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

More
24 Feb 2022 15:07 - 24 Feb 2022 15:07 #235704 by kbec
Ok, Linux cnc is loaded, but it is idle when I ran this.
 

File Attachment:

File Name: 7i96.txt
File Size:63 KB
Attachments:
Last edit: 24 Feb 2022 15:07 by kbec.

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

Moderators: PCWjmelson
Time to create page: 0.357 seconds
Powered by Kunena Forum