Huanyang VFD and Mesa 7i76e stuck at 6000 rpm

More
6 years 3 months ago #175318 by Stran_ge
tommylight i did check that pd160 is set to 1 for 0~10v.
The control voltage is 10v aswell.

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

More
6 years 3 months ago - 6 years 3 months ago #175320 by tommylight
Is there an encoder on the spindle ?
If yes, there are no connections to it it HAL file.
If no, using the linucurve
linuxcnc.org/docs/html/man/man9/lincurve.9.html
will help setting set values for set RPM
Last edit: 6 years 3 months ago by tommylight. Reason: typo

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

More
6 years 3 months ago #175322 by Stran_ge
I dont have an encoder on my spindle, it is a standard 2.2kw chinesium spindle with huanyang vfd.

I will try lincurve but i have no clue how to use it correctly...


Cheers, Nils

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

More
6 years 3 months ago - 6 years 3 months ago #175326 by Stran_ge
I edited the Spindle part of my hal as following:
Code:
loadrt timedelay count=1 loadrt lincurve personality=4 addf timedelay.0 servo-thread addf lincurve.0 servo-thread setp timedelay.0.on-delay 4 setp timedelay.0.off-delay 0 #******************* # SPINDLE #******************* setp pid.s.Pgain [SPINDLE_0]P setp pid.s.Igain [SPINDLE_0]I setp pid.s.Dgain [SPINDLE_0]D setp pid.s.bias [SPINDLE_0]BIAS setp pid.s.FF0 [SPINDLE_0]FF0 setp pid.s.FF1 [SPINDLE_0]FF1 setp pid.s.FF2 [SPINDLE_0]FF2 setp pid.s.deadband [SPINDLE_0]DEADBAND setp pid.s.maxoutput [SPINDLE_0]MAX_OUTPUT setp pid.s.error-previous-target true # ---auto rpm: 1-6000 = 6000 / 24000 max setp lincurve.0.x-val-00 0 setp lincurve.0.y-val-00 0 setp lincurve.0.x-val-01 1 setp lincurve.0.y-val-01 6000 setp lincurve.0.x-val-02 6000 setp lincurve.0.y-val-02 6000 setp lincurve.0.x-val-03 24000 setp lincurve.0.y-val-03 24000 net spindle-index-enable <=> pid.s.index-enable net spindle-enable => pid.s.enable net spindle-vel-cmd-rpm-abs => pid.s.command net spindle-vel-fb-rpm-abs => pid.s.feedback net spindle-output <= pid.s.output # ---digital potentionmeter output signals/setup--- setp hm2_7i76e.0.7i76.0.0.spinout-minlim [SPINDLE_0]OUTPUT_MIN_LIMIT setp hm2_7i76e.0.7i76.0.0.spinout-maxlim [SPINDLE_0]OUTPUT_MAX_LIMIT setp hm2_7i76e.0.7i76.0.0.spinout-scalemax [SPINDLE_0]OUTPUT_SCALE net spindle-output => hm2_7i76e.0.7i76.0.0.spinout net spindle-enable => hm2_7i76e.0.7i76.0.0.spinena net spindle-ccw => hm2_7i76e.0.7i76.0.0.spindir # ---setup spindle control signals--- 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-pre <= spindle.0.speed-out-abs lincurve.0.in net spindle-vel-cmd-rpm-abs <= lincurve.0.out net spindle-enable <= 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 timedelay.0.out net spindle-vel-fb-rps => spindle.0.speed-in net spindle-index-enable <=> spindle.0.index-enable # ---Setup spindle at speed signals--- #sets spindle-at-speed true

When i start my spindle it starts at 9xxx rpm instead of 6000 when i type M3 S24000 i only reach 22xxx rpm and for everything else the values are higher than what i typed in.


This is the Spindle part of my Ini:
Code:
[SPINDLE_0] P = 0.0 I = 0.0 D = 0.0 FF0 = 1.0 FF1 = 0.0 FF2 = 0.0 BIAS = 0.0 DEADBAND = 0.0 MAX_OUTPUT = 24000.0 OUTPUT_SCALE = 26000 OUTPUT_MIN_LIMIT = 0 OUTPUT_MAX_LIMIT = 24000


I will attach the full hal and ini aswell.

File Attachment:

File Name: configv5_2...7-21.hal
File Size:12.75 KB

File Attachment:

File Name: configv5_2...7-21.ini
File Size:5.15 KB
Last edit: 6 years 3 months ago by Stran_ge.

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

More
6 years 3 months ago - 6 years 3 months ago #175334 by Stran_ge
I cant be doing everything wrong here :( , is everyone else controlling their vfd via modbus ??
Last edit: 6 years 3 months ago by Stran_ge.

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

Moderators: cmorley
Time to create page: 0.119 seconds
Powered by Kunena Forum