Configuring spindle 0-10V - 7i77
- greg23_78
- Offline
- Premium Member
Less
More
- Posts: 122
- Thank you received: 5
04 Sep 2023 18:19 #279856
by greg23_78
Configuring spindle 0-10V - 7i77 was created by greg23_78
I'm having trouble configuring my 7i77 board for my VFD 0-10V.
Below is the pin configuration from my hal file and my ini file:
#Settings in INI:
[SPINDLE_0]
OUTPUT_SCALE = 800
OUTPUT_MIN_LIMIT = 0
OUTPUT_MAX_LIMIT = 800
#Settings in HAL:
#*******************
# SPINDLE
#*******************
# ---PWM Generator signals/setup---
setp hm2_5i25.0.7i77.0.1.analogout5-scalemax [SPINDLE_0]OUTPUT_SCALE
setp hm2_5i25.0.7i77.0.1.analogout5-minlim [SPINDLE_0]OUTPUT_MIN_LIMIT
setp hm2_5i25.0.7i77.0.1.analogout5-maxlim [SPINDLE_0]OUTPUT_MAX_LIMIT
loadrt abs count=1
addf abs.0 servo-thread
net spindle-speed-scale motion.spindle-speed-out => abs.0.in
net positive-only-spindle-speed-cmd abs.0.out => hm2_5i25.0.7i77.0.1.analogout5
net spindle-cw <= motion.spindle-forward
net spindle-ccw <= motion.spindle-reverse
# ---Setup spindle at speed signals---
#sets spindle-at-speed true
#SPINDLE-CW
net spindle-cw motion.spindle-forward => hm2_5i25.0.7i77.0.0.output-09
#SPINDLE-CCW
net spindle-ccw motion.spindle-reverse => hm2_5i25.0.7i77.0.0.output-10
With this configuration, I have the problem that linuxcnc does not find any motion command.
Pin "motion spindle-foward' does not exist
Pin "motion spindle-reverse' does not exist
Pin "motion spindle-speed-out' does not exist
did i forget to declare something ?
Below is the pin configuration from my hal file and my ini file:
#Settings in INI:
[SPINDLE_0]
OUTPUT_SCALE = 800
OUTPUT_MIN_LIMIT = 0
OUTPUT_MAX_LIMIT = 800
#Settings in HAL:
#*******************
# SPINDLE
#*******************
# ---PWM Generator signals/setup---
setp hm2_5i25.0.7i77.0.1.analogout5-scalemax [SPINDLE_0]OUTPUT_SCALE
setp hm2_5i25.0.7i77.0.1.analogout5-minlim [SPINDLE_0]OUTPUT_MIN_LIMIT
setp hm2_5i25.0.7i77.0.1.analogout5-maxlim [SPINDLE_0]OUTPUT_MAX_LIMIT
loadrt abs count=1
addf abs.0 servo-thread
net spindle-speed-scale motion.spindle-speed-out => abs.0.in
net positive-only-spindle-speed-cmd abs.0.out => hm2_5i25.0.7i77.0.1.analogout5
net spindle-cw <= motion.spindle-forward
net spindle-ccw <= motion.spindle-reverse
# ---Setup spindle at speed signals---
#sets spindle-at-speed true
#SPINDLE-CW
net spindle-cw motion.spindle-forward => hm2_5i25.0.7i77.0.0.output-09
#SPINDLE-CCW
net spindle-ccw motion.spindle-reverse => hm2_5i25.0.7i77.0.0.output-10
With this configuration, I have the problem that linuxcnc does not find any motion command.
Pin "motion spindle-foward' does not exist
Pin "motion spindle-reverse' does not exist
Pin "motion spindle-speed-out' does not exist
did i forget to declare something ?
Please Log in or Create an account to join the conversation.
- PCW
- Offline
- Moderator
Less
More
- Posts: 17859
- Thank you received: 4766
04 Sep 2023 18:51 - 04 Sep 2023 18:52 #279859
by PCW
Replied by PCW on topic Configuring spindle 0-10V - 7i77
If you are using a recent version of LinuxCNC, the spindle pins have
been renamed, the new names would be:
spindle.0.forward
spindle.0.reverse
spindle.0.speed-out
been renamed, the new names would be:
spindle.0.forward
spindle.0.reverse
spindle.0.speed-out
Last edit: 04 Sep 2023 18:52 by PCW.
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19357
- Thank you received: 6480
04 Sep 2023 22:02 #279891
by tommylight
Replied by tommylight on topic Configuring spindle 0-10V - 7i77
Another thing to keep in mind with 7i77, it can output from -10V to +10V, and that might not be healthy for the VFD, probably should send the analogout.5 through an ABS component.
Please Log in or Create an account to join the conversation.
- greg23_78
- Offline
- Premium Member
Less
More
- Posts: 122
- Thank you received: 5
05 Sep 2023 19:08 - 05 Sep 2023 19:32 #280019
by greg23_78
Replied by greg23_78 on topic Configuring spindle 0-10V - 7i77
thank you for your feedback, my VFD is actually waiting for 0-10V. i thought this configuration would allow me to remove the -10V. should i use this procedure for analogout.5 through an ABS component?
#spindle DAC 0-10 control
loadrt scale count=1
addf scale.0 servo-thread
setp scale.0.gain 0.0125
net spindle-speed-scale spindle.0.speed-out => scale.0.in
net spindle-speed-DAC scale.0.out => hm2_5i25.0.7i77.0.1.analogout5
net spindle-fwd motion.spindle-forward => hm2_5i25.0.7i77.0.0.output-10
net spindle-rev motion.spindle-reverse => hm2_5i25.0.7i77.0.0.output-09
I have another question about the wiring of my VFD; below is the schematic of my VFD
should i wire the white wire to aout5 and the green wire to gnd?
#spindle DAC 0-10 control
loadrt scale count=1
addf scale.0 servo-thread
setp scale.0.gain 0.0125
net spindle-speed-scale spindle.0.speed-out => scale.0.in
net spindle-speed-DAC scale.0.out => hm2_5i25.0.7i77.0.1.analogout5
net spindle-fwd motion.spindle-forward => hm2_5i25.0.7i77.0.0.output-10
net spindle-rev motion.spindle-reverse => hm2_5i25.0.7i77.0.0.output-09
I have another question about the wiring of my VFD; below is the schematic of my VFD
should i wire the white wire to aout5 and the green wire to gnd?
Attachments:
Last edit: 05 Sep 2023 19:32 by greg23_78.
Please Log in or Create an account to join the conversation.
- PCW
- Offline
- Moderator
Less
More
- Posts: 17859
- Thank you received: 4766
05 Sep 2023 20:28 - 05 Sep 2023 21:44 #280028
by PCW
Replied by PCW on topic Configuring spindle 0-10V - 7i77
Yes, white wire to AOUT5 green wire to GND
You do not need the scale component, normally you would simply set
the aout5 scalemax and limits appropriately. These may be setup in the ini file
if you used pncconf to create the initial configuration. In any case, something
functionally equivalent to this is needed:
setp hm2_5i25.0.7i77.0.1.analogout5-scalemax 3000
setp hm2_5i25.0.7i77.0.1.analogout5-maxlim 3000
setp hm2_5i25.0.7i77.0.1.analogout5-minlim 0
(if 3000 is the RPM at +10V)
You do not need the scale component, normally you would simply set
the aout5 scalemax and limits appropriately. These may be setup in the ini file
if you used pncconf to create the initial configuration. In any case, something
functionally equivalent to this is needed:
setp hm2_5i25.0.7i77.0.1.analogout5-scalemax 3000
setp hm2_5i25.0.7i77.0.1.analogout5-maxlim 3000
setp hm2_5i25.0.7i77.0.1.analogout5-minlim 0
(if 3000 is the RPM at +10V)
Last edit: 05 Sep 2023 21:44 by PCW.
Please Log in or Create an account to join the conversation.
- greg23_78
- Offline
- Premium Member
Less
More
- Posts: 122
- Thank you received: 5
06 Sep 2023 18:11 #280133
by greg23_78
Replied by greg23_78 on topic Configuring spindle 0-10V - 7i77
I'm really sorry but I don't understand.
I will try to understand because in a second time I will have to configure for 2 spindle speeds with gearchange.comp from andypugh.
so currently my config for the spindle (800rpm) is :
in the ini file :
[SPINDLE_0]
OUTPUT_SCALE = 800
OUTPUT_MIN_LIMIT = 0
OUTPUT_MAX_LIMIT = 800
and in the hal file is :
setp hm2_5i25.0.7i77.0.1.analogout5-scalemax [SPINDLE_0]OUTPUT_SCALE
setp hm2_5i25.0.7i77.0.1.analogout5-minlim [SPINDLE_0]OUTPUT_MIN_LIMIT
setp hm2_5i25.0.7i77.0.1.analogout5-maxlim [SPINDLE_0]OUTPUT_MAX_LIMIT
you suggest as a solution :
setp hm2_5i25.0.7i77.0.1.analogout5-scalemax 3000 (800)
setp hm2_5i25.0.7i77.0.1.analogout5-maxlim 3000 (800)
setp hm2_5i25.0.7i77.0.1.analogout5-minlim 0
isn't it the same thing?
and I use the abs function for compute the absolute value and sign of the input signal
net spindle-speed-scale motion.spindle-speed-out => abs.0.in
net positive-only-spindle-speed-cmd abs.0.out => hm2_5i25.0.7i77.0.1.analogout5
is this not correct?
I will try to understand because in a second time I will have to configure for 2 spindle speeds with gearchange.comp from andypugh.
so currently my config for the spindle (800rpm) is :
in the ini file :
[SPINDLE_0]
OUTPUT_SCALE = 800
OUTPUT_MIN_LIMIT = 0
OUTPUT_MAX_LIMIT = 800
and in the hal file is :
setp hm2_5i25.0.7i77.0.1.analogout5-scalemax [SPINDLE_0]OUTPUT_SCALE
setp hm2_5i25.0.7i77.0.1.analogout5-minlim [SPINDLE_0]OUTPUT_MIN_LIMIT
setp hm2_5i25.0.7i77.0.1.analogout5-maxlim [SPINDLE_0]OUTPUT_MAX_LIMIT
you suggest as a solution :
setp hm2_5i25.0.7i77.0.1.analogout5-scalemax 3000 (800)
setp hm2_5i25.0.7i77.0.1.analogout5-maxlim 3000 (800)
setp hm2_5i25.0.7i77.0.1.analogout5-minlim 0
isn't it the same thing?
and I use the abs function for compute the absolute value and sign of the input signal
net spindle-speed-scale motion.spindle-speed-out => abs.0.in
net positive-only-spindle-speed-cmd abs.0.out => hm2_5i25.0.7i77.0.1.analogout5
is this not correct?
Please Log in or Create an account to join the conversation.
- PCW
- Offline
- Moderator
Less
More
- Posts: 17859
- Thank you received: 4766
06 Sep 2023 18:27 #280135
by PCW
Replied by PCW on topic Configuring spindle 0-10V - 7i77
OK yes that's the same
Please Log in or Create an account to join the conversation.
- greg23_78
- Offline
- Premium Member
Less
More
- Posts: 122
- Thank you received: 5
06 Sep 2023 19:57 #280143
by greg23_78
Replied by greg23_78 on topic Configuring spindle 0-10V - 7i77
I've just tested my VFD but no movement, my CW and CCW relays work but no spindle rotation, I've installed a tester on the analog 5 and gnd output. analog5 on the positive and gnd on the gnd, I send an M4 s400 command or on the jog + but my tester doesn't display any DC voltage.
what could be the problem?
what could be the problem?
Please Log in or Create an account to join the conversation.
- PCW
- Offline
- Moderator
Less
More
- Posts: 17859
- Thank you received: 4766
06 Sep 2023 20:03 #280144
by PCW
Replied by PCW on topic Configuring spindle 0-10V - 7i77
Is hm2_5i25.0.7i77.0.1.analogout5.spinena true?
Please Log in or Create an account to join the conversation.
- greg23_78
- Offline
- Premium Member
Less
More
- Posts: 122
- Thank you received: 5
06 Sep 2023 20:17 #280148
by greg23_78
Replied by greg23_78 on topic Configuring spindle 0-10V - 7i77
Attachments:
Please Log in or Create an account to join the conversation.
Time to create page: 0.145 seconds