Configuring spindle 0-10V - 7i77

More
06 Sep 2023 20:21 - 06 Sep 2023 20:33 #280149 by PCW
It must be true or analog out 5 will be forced to 0V.
I would suggest netting it to the spindle on signal.
Last edit: 06 Sep 2023 20:33 by PCW. Reason: clarify

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

More
11 Sep 2023 20:04 #280491 by greg23_78
yes indeed I will modify the soldering with a cable on the ena output.
Now I have an output 0-10V on a scale 0-800. Unfortunately my VFD does not start the spindle, I will look at the parameters of the vfd a little later.
I looked at programming 2 speeds 0-250/250-800.  

From what I understand, you have to put the gearchange.comp file in the directory of my cnc config. I wanted to remove the manual function (because my gear change comes by driving a pneumatic distributor) from gearchange.comp but I noted that it will manage the gear change function on the jog.
So I'm keeping gearchange.comp as is.

On the other hand to modify to add on my file hal, I have a little more problem, below my work of modification  

loadrt gearchange
loadrt abs
addf gearchange.0 servo-thread
setp gearchange.0.max-low 200
setp gearchange.0.high-ratio 1
setp gearchange.0.low-ratio 2
setp gearchange.0.brake-enable 0
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


# ---setup spindle control signals---

net spindle-vel-cmd-rpm-abs    <=  spindle.0.speed-out-abs
net spindle-enable             <=  spindle.0.on
net spindle-cw                 <=  spindle.0.forward
net spindle-ccw                <=  spindle.0.reverse


# ---Connect the VFD---


net spindle-enable hy_vfd.spindle-on gearchange.0.spindle-on
net spindle-cw spindle.0.forward  => hm2_5i25.0.7i77.0.0.output-10
net spindle-ccw spindle.0.reverse => hm2_5i25.0.7i77.0.0.output-09
net spindle-vel-cmd-rpm-abs spindle.0.speed-out-abs => hm2_5i25.0.7i77.0.1.analogout5
net manual-low spindle.0.manual-low <=
net manual-high spindle.0.manual-high <=
net motor-speed spindle.0.motor-speed => hy_vfd.speed-command

net low-gear gearchange.0.low-gear => hm2_7i84.008a.output-11
net high-gear gearchange.0.high-gear => hm2_7i84.008a.output-10

one of the questions would be on gearchange.0.XXXXX should I replace it with spindle.0.XXX or is there a relationship with gearchange.comp?

my second problem is a bit similar

net spindle-enable hy_vfd.spindle-on gearchange.0.spindle-on
net motor-speed spindle.0.motor-speed => hy_vfd.speed-command

how can I modify so that my program is correct?

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

Time to create page: 0.261 seconds
Powered by Kunena Forum