Mesa 7i96 with SPINX1 to control spindle speed

More
20 Feb 2022 00:09 #235366 by BigJohnT
You can't open a pncconf ini file with my configuration tool.

JT
The following user(s) said Thank You: kbec

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

More
21 Feb 2022 05:54 #235443 by kbec
This is moving away too much from my original topic. I need some help with the 7i96 tool. I can only get it to come up to 1.3.2 whether I install 1.3.3 or 1.3.4, and it seems any file operations cause it to crash.

Would you rather help me here, or start a new topic somewhere else?

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

More
21 Feb 2022 11:02 - 21 Feb 2022 11:07 #235453 by BigJohnT
I pushed a fix for the version number. Download and install 1.3.4 then run from a terminal to get the error message.

Also attach your ini file the error must be coming from that.

JT
Last edit: 21 Feb 2022 11:07 by BigJohnT.

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

More
21 Feb 2022 15:14 #235467 by kbec
Still a lot of work to do, but I am at least up and running with it. The version display is fixed.

It seems it does not like to open ini files not created by it. It will just crash, I only saw the errors when I started it from the command line.

I'll let you know if I run into any more issues with it.

Thanks a bunch for your help.

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

More
21 Feb 2022 17:07 #235469 by BigJohnT
Thanks for the feedback, I'll make sure it pops up a window and tells you the ini file is not valid.

JT

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

More
21 Feb 2022 23:56 - 22 Feb 2022 00:06 #235485 by kbec
Not 100% sure how to enable it. From   BigJohnT 's 7i96 config tool, I am supposed to wire one of the outputs from the 7i96. I am not sure how to wire that to the SPINX, or the voltage. Each output has a + and a - side.  I am not really sure at all what the voltage output would be or how to wire it.

Here is what I have wired:
-5v from power supply 1 GND
FREE 2 GND
7i96 PWM 3 PWM ACTIVE HIGH
FREE 4 ENABLE ACTIVE LOW
7i96 dir 5 DIR HIGH = CW
+5V from power supply 6 +5V
Last edit: 22 Feb 2022 00:06 by kbec. Reason: Missed something

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

More
22 Feb 2022 15:08 #235533 by PCW
Since there are no free pins for the enable, I would drive it with a SSR output:

Say OUT5+ --> SPINX1 enable
OUT5- --> GND
The following user(s) said Thank You: kbec

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

More
22 Feb 2022 18:50 - 22 Feb 2022 18:56 #235547 by kbec
        I have attached pictures how I have it wired, and how I configured it in the 7i96 config tool.

I am not sure about the frequency, since the mesaflash output in in MHZ, while the config tool is in Htz, is this correct? I am not sure what value I should be using.

The direction LED stays on, the enabled is on when I hit the turn CW or CCW button, enabled turns off when I hit the brake, but I am not seeing anything for the speed LED. I am assuming to use the positive DIR and PWM pins. I do see the speed increase in the Hal Watch, but it is as if the SPINX isn't getting the signal or processing it.

I am also having some issues with the 7i96 config tool I will put up another post dealing with that.

Thanks for your help
 
Attachments:
Last edit: 22 Feb 2022 18:56 by kbec.

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

More
22 Feb 2022 20:53 #235557 by PCW
The PWM frequency should be set to 5 KHz in the utility

If you dont get PWM output, it would probably be best to
post your hal file here to see where the issue lies..
The following user(s) said Thank You: BigJohnT

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

More
22 Feb 2022 22:19 #235561 by kbec
It may just be easier here, so I'll attach my file.
 

File Attachment:

File Name: spintest.hal
File Size:4 KB


Even though the check and build went ok in the config tool, the hal file has problems.
First, quotes are misplaced I think and missing here:

# hostmot2 driver
loadrt hostmot2

loadrt [HOSTMOT2](DRIVER) board_ip=[HOSTMOT2](IPADDRESS) num_stepgens=[HOSTMOT2](STEPGENS) config="num_encoders=[HOST
MOT2](ENCODERS) num_pwmgens=[HOSTMOT2](PWMS)
setp hm2_[HOSTMOT2](BOARD).0.watchdog.timeout_ns 5000000

In this section, all the opening brackets are not there:
# Spindle
setp pid.1.Pgain SPINDLE_0]P
setp pid.1.Igain SPINDLE_0]I
setp pid.1.Dgain SPINDLE_0]D
setp pid.1.bias SPINDLE_0]BIAS
setp pid.1.FF0 SPINDLE_0]FF0
setp pid.1.FF1 SPINDLE_0]FF1
setp pid.1.FF2 SPINDLE_0]FF2

Then when I put in the brackets, it gave this error:
./spintest.hal:64: Ini variable '[SPINDLE_0]P' not found.
Shutting down and cleaning up LinuxCNC...

​​​​​​​
Attachments:

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

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