How to wire up a SpinX1 to 5i20 / 7i37

More
13 Jan 2019 22:33 #124115 by MATZE-ATZE-SCH
Hello.

Im new to the Linux Stuff an want to convert a manual Mill to CNC with the help of LinuxCNC and Mesa Cards.

Now im on the Point, where I need to control a VFD via LinuxCNC. I have a 5i20, a 7i37TA and a 7i33TA for the axis motion.
Also a SpinX1. It is possible, to connect the SpinX1 to the 7i37TA, to get the PWM, ENA and DIR Signal?
And if it is, how I would connect it?
Would like to use Out0 for PWM, Out2 for ENA and Out4 for the DIR Signal.
The 7i37 is on P3 on the 5i20.

Best regards,
Marcel

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

More
14 Jan 2019 01:35 #124131 by PCW
Unfortunately The 7I37 outputs are a bit too slow for the SPINX1
The SpinX1 would be better connected directly to the 5I20s I/O pins

If you use a SV12 configuration you could have

P2 7I33
P3 SPINX1 using 3 pins directly from 5I20
P4 7I37

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

More
14 Jan 2019 08:58 #124146 by MATZE-ATZE-SCH
Hello,

I have the SVST8_4 firmware on the 5i20.
Will this work, too?
And can I do the config with the wizard?
Or need I to change the files manuel?

Best regards
Marcel

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

More
14 Jan 2019 15:48 #124163 by PCW
I think you can hand edit the hal file and change the firmware name
and the num_pwmgens token. This should not change anything else in your setup.

Then you will need to setup the hal PWM initialization and net connections
for the PWM pins on P3 you wish to use for the SPINX1

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

More
14 Jan 2019 17:13 #124171 by MATZE-ATZE-SCH
Hello,

Ok, I changed the input and output pins in the .hal from P3 to P4. That works fine.
The num_pwmgens i change from 4 to 5.
Now, how do i setup the hal to get the pwm, enable and dir signal to P3?
Can you show me an example?

Best regards
Marcel

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

More
14 Jan 2019 17:19 #124172 by PCW
You should be able to just copy paste a motion axis set of PWM initialization and net connections (changing the PWM mode to 0) and scaling/spindle net connections as appropriate

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

More
15 Jan 2019 18:14 #124252 by MATZE-ATZE-SCH
Hello,

OK, I have wired up the SpinX1.
But I don get it to work...

This is the things, I added to my .hal:

Warning: Spoiler! [ Click to expand ]


But I can not get it to run?

Best regards
Marcel

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

More
15 Jan 2019 18:34 #124254 by PCW
Umm you are setting up a software PWM which is not needed and will not work well

You really want to enable and setup the hardware PWMGen channel 4
(on P3 pins 15,19,23 = IO 31,33,35 = PWM, DIR,ENA )

If you post your existing hal and ini files and I can copy paste a bit back at you with pwm channel 4 support

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

More
15 Jan 2019 19:15 #124258 by MATZE-ATZE-SCH
Hello,

here is the .HAL:

Warning: Spoiler! [ Click to expand ]


And here is my .INI
Warning: Spoiler! [ Click to expand ]


Thank you for your help!

Best regards
Marcel

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

More
15 Jan 2019 20:45 #124265 by PCW
The Spinx1 would like PWM at about 5 KHz

setp hm2_5i20.0.pwmgen.pwm_frequency 5000

Ideal drive for 7I33TA is PDM

That means all axis PWMGens should be set to mode 3


setp hm2_5i20.0.pwmgen.00.output-type 3
setp hm2_5i20.0.pwmgen.01.output-type 3
setp hm2_5i20.0.pwmgen.02.output-type 3
setp hm2_5i20.0.pwmgen.03.output-type 3

Then set PWMGen 04 to PWM mode

setp hm2_5i20.0.pwmgen.04.output-type 1

net spindle-speed-cmd motion.spindle-speed-out => hm2_5i20.0.pwmgen.04.value
net spindle-on motion.spindle-on => hm2_5i20.0.pwmgen.04.enable

# Set the spindle's top speed in RPM
setp hm2_5i20.0.pwmgen.04.scale 3000


This is just a sketch of whats needed so don't expect it to be perfect...

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

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