Mesa 7i95 and VFD control
- tommy
- Offline
- Premium Member
-
Less
More
- Posts: 116
- Thank you received: 1
06 Aug 2022 19:47 #249220
by tommy
Mesa 7i95 and VFD control was created 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 ...
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 or Create an account to join the conversation.
- PCW
-
- Away
- Moderator
-
Less
More
- Posts: 18217
- Thank you received: 4940
06 Aug 2022 21:18 #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
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 or Create an account to join the conversation.
- tommy
- Offline
- Premium Member
-
Less
More
- Posts: 116
- Thank you received: 1
07 Aug 2022 18:26 #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?
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 or Create an account to join the conversation.
- PCW
-
- Away
- Moderator
-
Less
More
- Posts: 18217
- Thank you received: 4940
07 Aug 2022 21:22 #249303
by PCW
Replied by PCW on topic Mesa 7i95 and VFD control
Step- would be unconnected
Please Log in or Create an account to join the conversation.
- tommy
- Offline
- Premium Member
-
Less
More
- Posts: 116
- Thank you received: 1
07 Sep 2022 06:00 - 07 Sep 2022 06:31 #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]
VFD is set to run 22k RPM @ 5V.
I would need a short explanation which parameters has to do with this.
From hal:
# 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
Last edit: 07 Sep 2022 06:31 by tommy.
Please Log in or Create an account to join the conversation.
- PCW
-
- Away
- Moderator
-
Less
More
- Posts: 18217
- Thank you received: 4940
07 Sep 2022 15:36 #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
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 or Create an account to join the conversation.
- tommy
- Offline
- Premium Member
-
Less
More
- Posts: 116
- Thank you received: 1
08 Sep 2022 08:11 #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
- Single output
- PWM/Dir (obviously not)
- Up/Down
Please Log in or Create an account to join the conversation.
- PCW
-
- Away
- Moderator
-
Less
More
- Posts: 18217
- Thank you received: 4940
08 Sep 2022 16:33 #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
you would choose PWM/DIR
Please Log in or Create an account to join the conversation.
- tommy
- Offline
- Premium Member
-
Less
More
- Posts: 116
- Thank you received: 1
09 Sep 2022 17:34 #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!
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 or Create an account to join the conversation.
- southbendbenchtop
- Offline
- New Member
-
Less
More
- Posts: 4
- Thank you received: 0
12 Sep 2022 15:12 #251740
by southbendbenchtop
Replied by southbendbenchtop on topic Mesa 7i95 and VFD control
Tommy, could you share your ini/hal for this "Dummy" setup I'm having a similar issue
Please Log in or Create an account to join the conversation.
Moderators: PCW, jmelson
Time to create page: 0.067 seconds