VFD Spindle control.

More
4 years 2 months ago #249418 by jyeomans
Hello First post i think. 

i have a vfd set up on a serial usb adaptor. 
every think has worked fine for me a year ago i switched to a newer virson of LinuxCNC. 
after getting every thing set up again i have one problem i can not figure out. 
the machine will not wait for the cutter to come up to speed.  
in my custom.hal 
Code:
loadusr -Wn vfd hy_vfd -n vfd -d /dev/ttyUSB0 -p none -r 9600 net spindle-fwd spindle.0.forward               => vfd.spindle-forward net spindle-reverse spindle.0.reverse           => vfd.spindle-reverse net spindle-speed-cmd  spindle.0.speed-out-abs  => vfd.speed-command net spindle-on spindle.0.on                         => vfd.spindle-on net spindle-at-speed => vfd.spindle-at-speed net spindle-at-speed => gmoccapy.spindle_at_speed_led #net  vfd.Rott   <= gmoccapy.spindle_feedback_bar net hy_RPM  vfd.spindle-speed-fb => gmoccapy.spindle_feedback_bar

and in the custom postgui.hal i have 
Code:
setp vfd.enable 1

not sure what i need to do to get it to wait.  
thanks
 

Please Log in to join the conversation.

More
4 years 2 months ago #249451 by TOLP2
Replied by TOLP2 on topic VFD Spindle control.
Think your error is in this part:
Code:
net spindle-at-speed => vfd.spindle-at-speed net spindle-at-speed => gmoccapy.spindle_at_speed_led

Basically your connecting the signal spindle-at-speed to both the VFD and the UI (outwards). Should that not be information coming from your spindle and sending to the UI, i.e. like this (note the changed arrow):
Code:
net spindle-at-speed <= vfd.spindle-at-speed net spindle-at-speed => gmoccapy.spindle_at_speed_led

I prefer that signals which rely only on two pins, to use the single line notation. The example below reads to me that the signal spindle-at-speed connects the VFD to the UI in a very natural way.
Code:
net spindle-at-speed vfd.spindle-at-speed => gmoccapy.spindle_at_speed_led

Please Log in to join the conversation.

More
4 years 2 months ago #249452 by Clive S
Replied by Clive S on topic VFD Spindle control.

Think your error is in this part:
Code:
net spindle-at-speed => vfd.spindle-at-speed net spindle-at-speed => gmoccapy.spindle_at_speed_led Basically your connecting the signal spindle-at-speed to both the VFD and the UI (outwards). Should that not be information coming from your spindle and sending to the UI, i.e. like this (note the changed arrow): [code]net spindle-at-speed <= vfd.spindle-at-speed net spindle-at-speed => gmoccapy.spindle_at_speed_led I prefer that signals which rely only on two pins, to use the single line notation. The example below reads to me that the signal spindle-at-speed connects the VFD to the UI in a very natural way. [code]net spindle-at-speed vfd.spindle-at-speed => gmoccapy.spindle_at_speed_led
[/code][/code]

All the above are true (<= and =>) Linuxcnc does not take any notice and can be left out

Please Log in to join the conversation.

More
4 years 2 months ago #249454 by Hakan
Replied by Hakan on topic VFD Spindle control.
Make sure spindle.0.at-speed is connected to the net spindle-at-speed, like this
Code:
net spindle-at-speed spindle.0.at-speed

Please Log in to join the conversation.

More
4 years 2 months ago #250535 by jyeomans
Replied by jyeomans on topic VFD Spindle control.
Sorry for the long delay.
i have been out of town got back and this fixed it thanks.
Code:
net spindle-at-speed spindle.0.at-speed\

Please Log in to join the conversation.

More
4 years 2 months ago #250536 by jyeomans
Replied by jyeomans on topic VFD Spindle control.
Thank-you for your help!!!

Please Log in to join the conversation.

Time to create page: 2.597 seconds
Powered by Kunena Forum