Need help connecting vfdmod and Qtdragon_HD

More
4 years 5 months ago #241845 by ikkuh

Edit. Itmust of been the hour I have responded but mine is a YL620 VFD so the hy_vfd mod won't work
 
A google search on YL620 VFD linuxcnc gets me loads of usefull information.
FYI, I have a Huyang vfd and that works out of the box with qtDragon, all the pins are standard and even the power bar works. So if you have the same signals with your YL620 then everything will start working soon.

(Not trying to be pedantic... But I always look first on the LinuxCNC fora for supported hardware before buying, works better for me.)

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

More
4 years 5 months ago #241847 by cmorley

oficinerobotica post=239873 userid=29769@persei8 Thank you so much. Having a working example helps piecing it all together. I will try to understand a bit more and get back here.

It you got this working and could describe what information would have helped yo do so, I would add the docs.

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

More
4 years 5 months ago #241905 by MarkoPolo
I have the same kit, vfdmod, qtdragon and yl620 inverter.
Right and left turns work for me, I can change the speed on the slider, reads errors in qtdragon.
To read errors correctly I changed in handler.py in lines
pin = QHAL.newpin ("spindle-fault", QHAL.HAL_U32, QHAL.HAL_IN)
pin = QHAL.newpin ("spindle-modbus-errors", QHAL.HAL_U32, QHAL.HAL_IN)
I changed U32 to S32 so that the data type matches.

The speed is displayed incorrectly (x60) but if it displays it in the "amps" field for the test then the speed is correct.
(in the file vfd.hal  net spindle-rpm vfdmod.spindle.rpm-out spindle.0.speed-in qtdragon.spindle-amps)
The following user(s) said Thank You: oficinerobotica

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

More
4 years 5 months ago - 4 years 5 months ago #241927 by oficinerobotica
@cmorley Yes , I got it working :) .... I'm putting together a pseudo guide of what I have done hoping it might help someone else with the same setup. The only thing I still have to get working is the power display and error report underneath the spindle gauge but it seems that @MarkoPolo has a solution for that problem also.
Last edit: 4 years 5 months ago by oficinerobotica.

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

More
4 years 5 months ago #241930 by oficinerobotica
@MarcoPolo Where is the handler.py file located?

I got the speed displayed correctly  correctly using this in my vfd.hal file.
Code:
# yl_vfd speed feedback is given in RPM, while some pins need it in # RPS, so we use a scale loadrt scale names=scale_to_rpm --------------------- --------------------- --------------------- addf scale_to_rpm servo-thread setp scale_to_rpm.gain 0.01666666 net spindle-speed-fb => scale_to_rpm.in net spindle-speed-in spindle.0.speed-in <= scale_to_rpm.out

So my vfd.hal file looks like this atm.
Code:
# yl_vfd speed feedback is given in RPM, while some pins need it in # RPS, so we use a scale loadrt scale names=scale_to_rpm net spindle-speed spindle.0.speed-out => vfdmod.spindle.rpm-in net spindle-cw spindle.0.forward => vfdmod.control.run-forward net spindle-ccw spindle.0.reverse => vfdmod.control.run-reverse net spindle-speed-fb  <= vfdmod.spindle.rpm-out net spindle-current <= vfdmod.parameters.OutputCurent net spindle-frequency <= vfdmod.parameters.TargetFrequency net spindle-voltage <= vfdmod.parameters.OutputVoltage net spindle-comm-ok <= vfdmod.rs485.is-connected net spindle-at-speed vfdmod.spindle.at-speed => spindle.0.at-speed net spindle-current => qtdragon.spindle-amps net spindle-voltage => qtdragon.spindle-volts addf scale_to_rpm servo-thread setp scale_to_rpm.gain 0.01666666 net spindle-speed-fb => scale_to_rpm.in net spindle-speed-in spindle.0.speed-in <= scale_to_rpm.out

 

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

More
4 years 5 months ago #241944 by MarkoPolo
Your vfd.hal works very well, it worked without any modification, thanks a lot.
The handler.py file is located at /usr/share/qtvcp/screens/gtdragon_hd/
There is also a problem that the motor starts to spin from 50Hz to 400Hz, and the qtdragon at this frequency already shows 3000 rpm.
I don't know how to fix it yet.

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

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