VFD Spindle control.

More
09 Aug 2022 18:54 #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 
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 
setp vfd.enable 1

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

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

More
10 Aug 2022 13:48 #249451 by TOLP2
Replied by TOLP2 on topic VFD Spindle control.
Think your error is in this part:
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):
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.
net spindle-at-speed vfd.spindle-at-speed => gmoccapy.spindle_at_speed_led

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

More
10 Aug 2022 14:34 #249452 by Clive S
Replied by Clive S on topic VFD Spindle control.

Think your error is in this part:
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 or Create an account to join the conversation.

More
10 Aug 2022 16:17 #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
net spindle-at-speed spindle.0.at-speed
The following user(s) said Thank You: jyeomans

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

More
26 Aug 2022 17:17 #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.
net spindle-at-speed spindle.0.at-speed\

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

More
26 Aug 2022 17:18 #250536 by jyeomans
Replied by jyeomans on topic VFD Spindle control.
Thank-you for your help!!!

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

Time to create page: 0.118 seconds
Powered by Kunena Forum