Mesa 7i96 with SPINX1 to control spindle speed
- kbec
- Offline
- Premium Member
Less
More
- Posts: 132
- Thank you received: 4
23 Feb 2022 21:35 - 23 Feb 2022 21:37 #235654
by kbec
Replied by kbec on topic Mesa 7i96 with SPINX1 to control spindle speed
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
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
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.
- BigJohnT
- Offline
- Administrator
Less
More
- Posts: 7000
- Thank you received: 1172
23 Feb 2022 22:08 #235655
by BigJohnT
Replied by BigJohnT on topic Mesa 7i96 with SPINX1 to control spindle speed
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
JT
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
- BigJohnT
- Offline
- Administrator
Less
More
- Posts: 7000
- Thank you received: 1172
24 Feb 2022 11:29 #235685
by BigJohnT
Replied by BigJohnT on topic Mesa 7i96 with SPINX1 to control spindle speed
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
JT
Please Log in or Create an account to join the conversation.
- kbec
- Offline
- Premium Member
Less
More
- Posts: 132
- Thank you received: 4
24 Feb 2022 13:49 - 24 Feb 2022 13:52 #235689
by kbec
Replied by kbec on topic Mesa 7i96 with SPINX1 to control spindle speed
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.
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.
Attachments:
Last edit: 24 Feb 2022 13:52 by kbec.
Please Log in or Create an account to join the conversation.
- BigJohnT
- Offline
- Administrator
Less
More
- Posts: 7000
- Thank you received: 1172
24 Feb 2022 14:22 #235693
by BigJohnT
Replied by BigJohnT on topic Mesa 7i96 with SPINX1 to control spindle speed
Attachments:
Please Log in or Create an account to join the conversation.
- BigJohnT
- Offline
- Administrator
Less
More
- Posts: 7000
- Thank you received: 1172
24 Feb 2022 14:29 #235695
by BigJohnT
Replied by BigJohnT on topic Mesa 7i96 with SPINX1 to control spindle speed
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
JT
Please Log in or Create an account to join the conversation.
- BigJohnT
- Offline
- Administrator
Less
More
- Posts: 7000
- Thank you received: 1172
24 Feb 2022 14:36 #235697
by BigJohnT
Replied by BigJohnT on topic Mesa 7i96 with SPINX1 to control spindle speed
I "think" I know what's wrong, give me a bit to try and sort it out.
JT
JT
Please Log in or Create an account to join the conversation.
- kbec
- Offline
- Premium Member
Less
More
- Posts: 132
- Thank you received: 4
24 Feb 2022 14:52 - 24 Feb 2022 14:54 #235699
by kbec
Replied by kbec on topic Mesa 7i96 with SPINX1 to control spindle speed
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
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.
- BigJohnT
- Offline
- Administrator
Less
More
- Posts: 7000
- Thank you received: 1172
24 Feb 2022 14:58 #235702
by BigJohnT
Replied by BigJohnT on topic Mesa 7i96 with SPINX1 to control spindle speed
Also if you can get me a list of pin, parameters and signals and post the text file that will help.
JT
halcmd show > 7i96.txt
JT
Please Log in or Create an account to join the conversation.
- kbec
- Offline
- Premium Member
Less
More
- Posts: 132
- Thank you received: 4
24 Feb 2022 15:07 - 24 Feb 2022 15:07 #235704
by kbec
Replied by kbec on topic Mesa 7i96 with SPINX1 to control spindle speed
Ok, Linux cnc is loaded, but it is idle when I ran this.
Attachments:
Last edit: 24 Feb 2022 15:07 by kbec.
Please Log in or Create an account to join the conversation.
Moderators: PCW, jmelson
Time to create page: 0.155 seconds