Mesa 7i95 and VFD control

More
4 years 2 months ago #249220 by tommy
Hi,

I would need a little help to correctly wire and set up 7i95 to control VFD. There is no need for FWD/REV control, as on my router I need only FWD and it will be wired this way directly on VFD.

Here are some pages from VFD manual:






https://1drv.ms/u/s!AsTjVWm3v2FTh1U1E66KkAmLtD5W?e=LchVWP


Do I need any kind of converter or can I use 6th axis output, as it is not used on this machine ...
 

Please Log in to join the conversation.

More
4 years 2 months ago #249229 by PCW
Replied by PCW on topic Mesa 7i95 and VFD control
There is 7I95 firmware that has PWM/Dir on the 6th step/dir outputs
The PWM can likely be used to drive the 0-5V analog input on the VFD

A 7I95 isolated output can drive the forward input

Please Log in to join the conversation.

More
4 years 2 months ago #249294 by tommy
Replied by tommy on topic Mesa 7i95 and VFD control
So,
STEP+ from mesa goes to terminal #2 on VFD,
GND from mesa connects to terminal #5 on VFD, or should I use STEP- from mesa?

Please Log in to join the conversation.

More
4 years 2 months ago #249303 by PCW
Replied by PCW on topic Mesa 7i95 and VFD control
Step- would be unconnected

Please Log in to join the conversation.

More
4 years 1 month ago #251391 by tommy
Replied by tommy on topic Mesa 7i95 and VFD control
now I have VFD wired and doing some test runs, I'm heaving problem to reach full RPMs  on spindle. As I measured on mesa, there is 2.9V @ max RPM programmed in LunuxCNC.
VFD is set to run 22k RPM @ 5V.

I would need a short explanation which parameters has to do with this.
From hal:
Code:
# Spindle # Spindle Velocity Pins net spindle-vel-cmd-rps <=  spindle.0.speed-out-rps net spindle-vel-cmd-rps-abs <= spindle.0.speed-out-rps-abs net spindle-vel-cmd-rpm <= spindle.0.speed-out net spindle-vel-cmd-rpm-abs <= spindle.0.speed-out-abs # Spindle Command Pins net spindle-on <= spindle.0.on net spindle-cw <= spindle.0.forward net spindle-ccw <= spindle.0.reverse net spindle-brake <= spindle.0.brake net spindle-revs => spindle.0.revs net spindle-at-speed => spindle.0.at-speed net spindle-vel-fb-rps => spindle.0.speed-in net spindle-index-enable => spindle.0.index-enable # Set spindle at speed signal sets spindle-at-speed true net spindle-on hm2_7i95.0.stepgen.04.enable setp hm2_7i95.0.stepgen.04.dirsetup [SPINDLE]DIRSETUP setp hm2_7i95.0.stepgen.04.dirhold [SPINDLE]DIRHOLD setp hm2_7i95.0.stepgen.04.steplen [SPINDLE]STEPLEN setp hm2_7i95.0.stepgen.04.stepspace [SPINDLE]STEPSPACE setp hm2_7i95.0.stepgen.04.position-scale [SPINDLE]SCALE setp hm2_7i95.0.stepgen.04.position-scale [SPINDLE]SCALE setp hm2_7i95.0.stepgen.04.maxvel [SPINDLE]MAX_RPS setp hm2_7i95.0.stepgen.04.maxaccel [SPINDLE]MAX_ACCEL_RPS setp hm2_7i95.0.stepgen.04.control-type 1 net spindle-vel-cmd-rps =>  hm2_7i95.0.stepgen.04.velocity-cmd From INI: [code][SPINDLE] SPINDLE_TYPE = stepgen_4 SPINDLE_PWM_TYPE = 1 DRIVE = Custom SCALE = 2200 STEPLEN = 3000 STEPSPACE = 3000 DIRSETUP = 3000 DIRHOLD = 3000 STEP_INVERT = True DIR_INVERT = False MIN_RPM = 0 MAX_RPM = 22000 MIN_RPS =  MAX_RPS = 366.67 MAX_ACCEL_RPM = 10000 MAX_ACCEL_RPS = 166.67
[/code]

Please Log in to join the conversation.

More
4 years 1 month ago #251412 by PCW
Replied by PCW on topic Mesa 7i95 and VFD control
Normally you would use a PWM generator for analog out,
not a step generator.

That said, you _can_ get PDM out of a stepgen but if you want
more than 1/2 scale you need to make the STEPSPACE parameter
smaller than the STEPLEN parameter. I would suggest 100 for STEPSPACE

Please Log in to join the conversation.

More
4 years 1 month ago #251471 by tommy
Replied by tommy on topic Mesa 7i95 and VFD control
I'm using mesa configurator, so which PWM type should I select to "activate" PWM generator for analog out?
- Single output
- PWM/Dir (obviously not)
- Up/Down

Please Log in to join the conversation.

More
4 years 1 month ago #251504 by PCW
Replied by PCW on topic Mesa 7i95 and VFD control
Using normal 7I95+PWM firmware (7i95_1pwmd.bit)
you would choose PWM/DIR

Please Log in to join the conversation.

More
4 years 1 month ago #251556 by tommy
Replied by tommy on topic Mesa 7i95 and VFD control
Problem I had was unused 5th axis, which is "not allowed".
Now I created "dummy" 5th axis and moved spindle connections to 6th, set it to Analog, used PWM/Dir and it works flawlessly with pwmgen!

Please Log in to join the conversation.

More
4 years 1 month ago #251740 by southbendbenchtop
Tommy, could you share your ini/hal for this "Dummy" setup I'm having a similar issue

Please Log in to join the conversation.

Time to create page: 0.105 seconds
Powered by Kunena Forum