7i76 Spindle VFD 0-10V question
10 Jul 2017 15:36 #95607
by timmert
7i76 Spindle VFD 0-10V question was created by timmert
I'm busy connecting a Danfoss 6000 series VFD to the 7i76 board with 0-10V
But I don't understand how to connect it. I can find some examples for a normal parallel port but not for the 7i76.
On TB4 on my 7i76 I can find a Dir+/Dir- and Enable+/Enable- also a Spindle +10VDC and SPN VDC (what's this?) And a spindle ground.
My question is what exactly needs to be connected?
The VFD got 2 analog inputs for (for voltage signals) reference and feedback singnals and a analog input for current.
Do I only need to connect 1 wire from the +10VDC to the analog input of the VFD?
No ground?
What to do with the spindle direction?
But I don't understand how to connect it. I can find some examples for a normal parallel port but not for the 7i76.
On TB4 on my 7i76 I can find a Dir+/Dir- and Enable+/Enable- also a Spindle +10VDC and SPN VDC (what's this?) And a spindle ground.
My question is what exactly needs to be connected?
The VFD got 2 analog inputs for (for voltage signals) reference and feedback singnals and a analog input for current.
Do I only need to connect 1 wire from the +10VDC to the analog input of the VFD?
No ground?
What to do with the spindle direction?
Please Log in or Create an account to join the conversation.
10 Jul 2017 18:15 - 10 Jul 2017 18:16 #95615
by PCW
Replied by PCW on topic 7i76 Spindle VFD 0-10V question
7I76 TB4 VFD
1 SPINDLE- ==> ANALOG COMMON VFD 55
2 SPINDLE OUT ==> ANALOG INPUT VFD 53
3 SPINDLE+ ==> 10V OUT VFD 50
4
5 SPINDLE ENA- ==> START VFD 18
6 SPINDLE ENA+ ==> +24V VFD 12
7 SPINDLE DIR- ==> REVERSE VFD 19
8 SPINDLE DIR+ ==> +24V VFD 12
This assumes VFD SW4 is closed and the analog input on pin 53 is
enabled and scaled properly in the VFD setup and further that VFD pins 18 and 19
are programed with their default values (START and REVERSE)
1 SPINDLE- ==> ANALOG COMMON VFD 55
2 SPINDLE OUT ==> ANALOG INPUT VFD 53
3 SPINDLE+ ==> 10V OUT VFD 50
4
5 SPINDLE ENA- ==> START VFD 18
6 SPINDLE ENA+ ==> +24V VFD 12
7 SPINDLE DIR- ==> REVERSE VFD 19
8 SPINDLE DIR+ ==> +24V VFD 12
This assumes VFD SW4 is closed and the analog input on pin 53 is
enabled and scaled properly in the VFD setup and further that VFD pins 18 and 19
are programed with their default values (START and REVERSE)
Last edit: 10 Jul 2017 18:16 by PCW.
Please Log in or Create an account to join the conversation.
10 Jul 2017 19:09 #95619
by timmert
Replied by timmert on topic 7i76 Spindle VFD 0-10V question
Thanks for the quick reply
Where you get this information? or is it expierence?
I checked if all the pins on the fvd where right (rev, start etc) and all is good
what's the best method to make the config PNCconfig?
Where you get this information? or is it expierence?
I checked if all the pins on the fvd where right (rev, start etc) and all is good
what's the best method to make the config PNCconfig?
Please Log in or Create an account to join the conversation.
11 Jul 2017 14:26 #95666
by andypugh
Replied by andypugh on topic 7i76 Spindle VFD 0-10V question
The info needed is in the 7i76 manual and the Danfoss VFD manual, but you do rather need to know what the terms used mean.
Pncconf is probably the best way to make a basic config, but it might well need a bit of manual tweaking of the HAL and INI files to get it perfect.
Pncconf is probably the best way to make a basic config, but it might well need a bit of manual tweaking of the HAL and INI files to get it perfect.
The following user(s) said Thank You: timmert
Please Log in or Create an account to join the conversation.
11 Jul 2017 14:34 #95667
by timmert
Replied by timmert on topic 7i76 Spindle VFD 0-10V question
It's starting to make a bit sense now...slowly...but ok haha
I set up the VFD and did a manual run with the controls on the VFD and the motor turns fine.
After this I connected everything to the mesa board like you said.
Parameters for the VFD are set.
When I turn on the spindle in LinuxCNC I can see it sends a reference to the VFD (VFD shows the %) when I slow/speed up the rpm in linuxcnc.
I think the voltage control is working?
But the spindle status stays 'stop' at the VFD side. I think the enable doesn't work?
Pin12 and 18 are connected. And SW4 jumper is set to on so that the Pin12 gets +24V.
In the attachment you can find the HAL file. It's a basic config with only the spindle config.
I set up the VFD and did a manual run with the controls on the VFD and the motor turns fine.
After this I connected everything to the mesa board like you said.
Parameters for the VFD are set.
When I turn on the spindle in LinuxCNC I can see it sends a reference to the VFD (VFD shows the %) when I slow/speed up the rpm in linuxcnc.
I think the voltage control is working?
But the spindle status stays 'stop' at the VFD side. I think the enable doesn't work?
Pin12 and 18 are connected. And SW4 jumper is set to on so that the Pin12 gets +24V.
In the attachment you can find the HAL file. It's a basic config with only the spindle config.
Please Log in or Create an account to join the conversation.
11 Jul 2017 17:50 #95680
by timmert
Replied by timmert on topic 7i76 Spindle VFD 0-10V question
I got everything working
Thanks for the help
Thanks for the help
Please Log in or Create an account to join the conversation.
11 Jul 2017 18:22 #95682
by andypugh
Replied by andypugh on topic 7i76 Spindle VFD 0-10V question
Great. Thanks for letting us know.
Please Log in or Create an account to join the conversation.
12 Jul 2017 11:01 - 12 Jul 2017 11:53 #95716
by timmert
Replied by timmert on topic 7i76 Spindle VFD 0-10V question
Next step is to configure the spindle speed.
The motor is set up:
10V = 75HZ = 4320RPM
There is a pulley(belt) between spindle and motor.
Motor: 85mm
Spindle: 130mm
I used pulley teeth to fill in the size of the pulleys. Since I can't set decimals for the pulley ratio
4320RPM at the motor should be 2824RPM at spindle.
Image is an example. Not the set values.
PNCconfig comes up with the following settings:
[SPINDLE_9]
P = 0.0
I = 0.0
D = 0.0
FF0 = 1.0
FF1 = 0.0
FF2 = 0.0
BIAS = 0.0
DEADBAND = 0.0
ENCODER_SCALE = -360.0
MAX_OUTPUT = 2824.61538462
OUTPUT_SCALE = 2824
OUTPUT_MIN_LIMIT = 0
OUTPUT_MAX_LIMIT = 2824
But when I enter for example M3 S700 the VFD shows it's running at 30,3Hz (2880RPM=50HZ) So that means the motor runs 1.734RPM. And the spindle speed is 1131.2RPM. The scale doesn't seem to be correct.
What's the best way to solve this?
Besides I have an encoder (index+phase1 360ppr). Isn't it possible to use the encoder as reference? It needs to be set up for constant surface speed anyway I think?
The motor is set up:
10V = 75HZ = 4320RPM
There is a pulley(belt) between spindle and motor.
Motor: 85mm
Spindle: 130mm
I used pulley teeth to fill in the size of the pulleys. Since I can't set decimals for the pulley ratio
4320RPM at the motor should be 2824RPM at spindle.
Image is an example. Not the set values.
PNCconfig comes up with the following settings:
[SPINDLE_9]
P = 0.0
I = 0.0
D = 0.0
FF0 = 1.0
FF1 = 0.0
FF2 = 0.0
BIAS = 0.0
DEADBAND = 0.0
ENCODER_SCALE = -360.0
MAX_OUTPUT = 2824.61538462
OUTPUT_SCALE = 2824
OUTPUT_MIN_LIMIT = 0
OUTPUT_MAX_LIMIT = 2824
But when I enter for example M3 S700 the VFD shows it's running at 30,3Hz (2880RPM=50HZ) So that means the motor runs 1.734RPM. And the spindle speed is 1131.2RPM. The scale doesn't seem to be correct.
What's the best way to solve this?
Besides I have an encoder (index+phase1 360ppr). Isn't it possible to use the encoder as reference? It needs to be set up for constant surface speed anyway I think?
Last edit: 12 Jul 2017 11:53 by timmert.
Please Log in or Create an account to join the conversation.
12 Jul 2017 12:38 #95725
by andypugh
Replied by andypugh on topic 7i76 Spindle VFD 0-10V question
It's probably easiest to edit the INI directly. Set MAX_OUTPUT and OUTPUT_SCALE both to the spindle speed that corresponds to 10V at the VFD.
Please Log in or Create an account to join the conversation.
12 Jul 2017 13:01 #95727
by timmert
Replied by timmert on topic 7i76 Spindle VFD 0-10V question
ok ok that comes very closes andy
I don't know how close it needs to be?
when I enter M3 S2000
The actual RPM is 1966.1RPM
Do I need to set the encoder somehow?
Encoder (phase A and index is working, checked trough HALmeter)
# ---Encoder feedback signals/setup---
setp hm2_5i25.0.encoder.00.counter-mode 1
setp hm2_5i25.0.encoder.00.filter 1
setp hm2_5i25.0.encoder.00.index-invert 0
setp hm2_5i25.0.encoder.00.index-mask 0
setp hm2_5i25.0.encoder.00.index-mask-invert 0
setp hm2_5i25.0.encoder.00.scale [SPINDLE_9]ENCODER_SCALE
net spindle-revs <= hm2_5i25.0.encoder.00.position
net spindle-vel-fb-rps <= hm2_5i25.0.encoder.00.velocity
net spindle-index-enable <=> hm2_5i25.0.encoder.00.index-enable
I don't know how close it needs to be?
when I enter M3 S2000
The actual RPM is 1966.1RPM
Do I need to set the encoder somehow?
Encoder (phase A and index is working, checked trough HALmeter)
# ---Encoder feedback signals/setup---
setp hm2_5i25.0.encoder.00.counter-mode 1
setp hm2_5i25.0.encoder.00.filter 1
setp hm2_5i25.0.encoder.00.index-invert 0
setp hm2_5i25.0.encoder.00.index-mask 0
setp hm2_5i25.0.encoder.00.index-mask-invert 0
setp hm2_5i25.0.encoder.00.scale [SPINDLE_9]ENCODER_SCALE
net spindle-revs <= hm2_5i25.0.encoder.00.position
net spindle-vel-fb-rps <= hm2_5i25.0.encoder.00.velocity
net spindle-index-enable <=> hm2_5i25.0.encoder.00.index-enable
Please Log in or Create an account to join the conversation.
Time to create page: 0.081 seconds