Charge pump from Mesa 7i96 in 4+1 config?

More
6 years 4 months ago - 6 years 4 months ago #170347 by msageryd
I have my 7i96 in 4+1 configuration, because I need a PWM signal for spindle control.

I also need a charge pump signal. I think this should be about 10 kHz. I haven't found any way to disable the need for a charge pump in my controller. ( www.cnc-step.com/5-channel-stepper-motor-controller/ )

Is it possible to get a 10kHz output from 7i96?
Last edit: 6 years 4 months ago by msageryd.

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

More
6 years 4 months ago - 6 years 4 months ago #170369 by PCW
Hmm that looks like you would have been better off connecting that box to a 7I92
(or the expansion connector of the 7I96) because you could have a 1:1 cable connection

You can use a free stepgen as a charge-pump signal by setting it into velocity mode
with quadrature outputs and setting the velocity to 10000, something like:
Code:
setp hm2_7i96.0.stepgen.03.control-type 1 # velocity mode setp hm2_7i96.0.stepgen.03.step_type 2 # Quadrature so square wave setp hm2_7i96.0.stepgen.03.maxaccel 0 # default '1' is very slow setp hm2_7i96.0.stepgen.03.maxvel 0 # don't bound frequency setp hm2_7i96.0.stepgen.03.steplen 100 # short so won't interfere with frequency setting setp hm2_7i96.0.stepgen.03.stepspace 100 # short so won't interfere with frequency setting setp hm2_7i96.0.stepgen.03.velocity-cmd 10000 # set frequency to 10 KHz net [some_enable_signal] hm2_7i96.0.stepgen.03.enable # only enable charge pump when desired
Last edit: 6 years 4 months ago by PCW.

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

More
6 years 4 months ago #170370 by msageryd
Wow thanks!
Yeah, I suppose a 7i92 would have been way easier. But I also wanted a serial connection for a remote 7i73 which I'll connect to my physical control panel.

I hooked up the step3+ pin to an osciloscope in the hope to see a frequency. All I get is a steady +5V, even after issuing the commands you stated in halcmd. Shouldn't the signal start to oscillate when I manually set enable to true?
setp hm2_7i96.0.stepgen.03.enable true

I've probably missed something stupid.

I can confirm that I have contact with 7i96 by reading input pins.

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

More
6 years 4 months ago - 6 years 4 months ago #170371 by msageryd
@PCW In what way could I have a 1-1 connection from the expansion connector? Do you mean that this connector can output step/dir for my axes as well as chargepump, spindle-pwn, e-stop input, limit inputs, etc?
Last edit: 6 years 4 months ago by msageryd.

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

More
6 years 4 months ago #170372 by PCW
You need to do all the mentioned setup (especially the control_type and step type)

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

More
6 years 4 months ago #170373 by PCW

msageryd wrote: @PCW In what way could I have a 1-1 connection from the expansion connector? Do you mean that this connector can output step/dir for my axes as well as chargepump, spindle-pwn, e-stop input, limit inputs, etc?


Yes, the 7I96 expansion port can emulate any parallel port type configuration with the appropriate firmware

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

Moderators: PCW, jmelson
Time to create page: 0.157 seconds
Powered by Kunena Forum