Controlling VFD power
- billykid
- Offline
- Platinum Member
Less
More
- Posts: 507
- Thank you received: 79
14 Jan 2020 08:40 #154807
by billykid
Replied by billykid on topic Controlling VFD power
I don't know if the syntax is the same, I don't think there are big differences.
Please Log in or Create an account to join the conversation.
- persei8
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 386
- Thank you received: 121
14 Jan 2020 16:08 #154829
by persei8
Replied by persei8 on topic Controlling VFD power
Thanks for posting that but the hy_gt_vfd module syntax is quite different. I have successfully implemented VFD control using mb2hal so I know my wiring and hardware is right. I see no reason for the hy_gt_vfd module to never be ready, but that's what it does so I give up on that. I think mb2hal is a better solution anyway because I can customize which transactions to use and it was relatively simple to integrate into my custom gui.
Please Log in or Create an account to join the conversation.
- sliptonic
- Offline
- Premium Member
Less
More
- Posts: 140
- Thank you received: 20
03 Oct 2020 21:03 #184728
by sliptonic
Replied by sliptonic on topic Controlling VFD power
I've been trying to get a GT series vfd working and I'm seeing exactly the same symptoms. Are you saying you use mb2hal for a GT? If so, can you share your config?
Please Log in or Create an account to join the conversation.
- persei8
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 386
- Thank you received: 121
03 Oct 2020 22:31 #184751
by persei8
Replied by persei8 on topic Controlling VFD power
I was using mb2hal until I made my own vfd hal component. I attached the mb2hal.ini but it may be outdated. Keep in mind it is specific to qtdragon so you may need to modify a bit. The hy_gt_vfd component is available at github.com/persei802/QtDragon. To run it you will need to install minimalmodbus. minimalmodbus.readthedocs.io/en/stable/ The following are the lines I have in my qtdragon_postgui.hal file for connecting the vfd driver pins.
loadusr -Wn gt_vfd ./hy_gt_vfd.py -d /dev/ttyUSB0
net spindle-on gt_vfd.spindle-on <= spindle.0.on
net spindle-rps gt_vfd.speed-fb => spindle.0.speed-in
net spindle-rps near.0.in1
net spindle-amps gt_vfd.output-amps => qtdragon.spindle_amps
net spindle-volts gt_vfd.output-volts => qtdragon.spindle_volts
net spindle-fault gt_vfd.fault-info => qtdragon.spindle_fault
net spindle-cmd gt_vfd.speed-cmd <= spindle.0.speed-out-abs
net spindle-cmd-rps near.0.in2 <= spindle.0.speed-out-rps
net spindle-pause qtdragon.spindle_pause => spindle.0.inhibit
net modbus-errors gt_vfd.modbus-errors => qtdragon.modbus-errors
Either way works quite well.
Jim
loadusr -Wn gt_vfd ./hy_gt_vfd.py -d /dev/ttyUSB0
net spindle-on gt_vfd.spindle-on <= spindle.0.on
net spindle-rps gt_vfd.speed-fb => spindle.0.speed-in
net spindle-rps near.0.in1
net spindle-amps gt_vfd.output-amps => qtdragon.spindle_amps
net spindle-volts gt_vfd.output-volts => qtdragon.spindle_volts
net spindle-fault gt_vfd.fault-info => qtdragon.spindle_fault
net spindle-cmd gt_vfd.speed-cmd <= spindle.0.speed-out-abs
net spindle-cmd-rps near.0.in2 <= spindle.0.speed-out-rps
net spindle-pause qtdragon.spindle_pause => spindle.0.inhibit
net modbus-errors gt_vfd.modbus-errors => qtdragon.modbus-errors
Either way works quite well.
Jim
Please Log in or Create an account to join the conversation.
Time to create page: 0.054 seconds