External Start, Stop buttons

50 views
Skip to first unread message

Gediminas Dirma

unread,
May 22, 2019, 9:26:54 AM5/22/19
to Machinekit
Hello,

I am trying to configure external start and stop buttons for my lathe. But i cant find working example of how to do it in machinekit. I have tried http://www.machinekit.io/docs/hal/halui_examples/ but the one shown there just doesnt work.
Maybe someone has configured these switches and can share their configuration or some suggestions of how to do it.

Thanks for help.

scalaire

unread,
May 22, 2019, 11:35:30 AM5/22/19
to Machinekit
Hi, I'm also configuring machinekit.
Here is what I put for my buttons that works.


fichier.hal
#--------------------------------
newsig button.abort bit
newsig cycle-start bit

net button.abort <= bb_gpio.p9.in-28
net cycle-start <= bb_gpio.p9.in-30
setp bb_gpio.p9.in-30.invert 1
#--------------------------------


touchy.hal
#--------------------------------
net button.abort => touchy.abort
net cycle-start => touchy.cycle-start
#--------------------------------

@++ Jean Claude
Reply all
Reply to author
Forward
0 new messages