Sharp 90* turn in gcode becomes a large sweeping turn

More
6 years 7 months ago #159740 by PCW

lumberjack_jeff wrote: Thank you for the troubleshooting help.

Can you please advise me about debouncing pin 10?

I think I need to replace this wscnc.hal code

Code:
... net estop-ext <= parport.0.pin-10-in ... #limits debounce to stop false triggers loadrt debounce cfg=2 #change to the number you want setp debounce.0.delay 100 #this sets the delay 100 iterations of the base thread addf debounce.0 base-thread net deb-probe-in debounce.0.0.in <= parport.0.pin-12-in-not net probe-in debounce.0.0.out
with
Code:
... loadrt debounce cfg=2 #I think I only need two setp debounce.0.delay 100 setp debounce.1.delay 100 addf debounce.0 base-thread addf debounce.1 base-thread net deb-probe-in debounce.0.0.in <= parport.0.pin-12-in-not net deb-estop-ext debounce.1.0.in <= parport.0.pin-10-in net probe-in debounce.0.0.out net estop-ext debounce.1.0.out


If you loadrt debounce cfg=2
you get a 2 channel instance of debounce.0
which may be OK if both channels can use the
same delay, for example:

loadrt debounce cfg=2 #I think I only need two
setp debounce.0.delay 100
addf debounce.0 base-thread
net deb-probe-in debounce.0.0.in <= parport.0.pin-12-in-not
net deb-estop-ext debounce.0.1.in <= parport.0.pin-10-in
net probe-in debounce.0.0.out
net estop-ext debounce.0.1.out

Please Log in to join the conversation.

Time to create page: 0.040 seconds
Powered by Kunena Forum