Hello Tom,
Another simple lovely topic which I couldn't solve by myself :/
I have external buttons connected and physically working (checked in Kmotion IO) and I try to make them operate the machine, I followed the instructions here (archive/attachments/Adding%20External%20Buttons.pdf) as much as I could but without success.
Compiler does not give any error but when clicking init the DRO gets yellow and stay yellow.
Please help !
Cordially
Francois
External Button Set-Up
Moderators: TomKerekes, dynomotion
External Button Set-Up
- Attachments
-
- Init.c
- (10.35 KiB) Downloaded 245 times
- TomKerekes
- Posts: 2677
- Joined: Mon Dec 04, 2017 1:49 am
Re: External Button Set-Up
Hi Francois,
You should be able to debug things like this yourself. My guess would be ESTOP is being triggered. Add printfs to determine what is happening.
You should be able to debug things like this yourself. My guess would be ESTOP is being triggered. Add printfs to determine what is happening.
Regards,
Tom Kerekes
Dynomotion, Inc.
Tom Kerekes
Dynomotion, Inc.
Re: External Button Set-Up
Morning Tom,
Crap you were right for both...
Modified the code, now works properly, thank you Tom !
Crap you were right for both...
Modified the code, now works properly, thank you Tom !
Re: External Button Set-Up
Hello Tom.
I am trying to add an E-stop (emergency) button, as indicated in this document.
Another question, when I press the Estop button, it executes the C code and disables the axes, if for some reason the communication between the PC and Kflop were to be lost, this method would not work.
Is there a way to make the E-stop button work in Hardware?
Thank you very much, regards.
I am trying to add an E-stop (emergency) button, as indicated in this document.
Do I assign it to the M code (Stop) as shown in the figure below. Is that correct?
Another question, when I press the Estop button, it executes the C code and disables the axes, if for some reason the communication between the PC and Kflop were to be lost, this method would not work.
Is there a way to make the E-stop button work in Hardware?
Thank you very much, regards.
- TomKerekes
- Posts: 2677
- Joined: Mon Dec 04, 2017 1:49 am
Re: External Button Set-Up
Hi Ibzan,
No. Add it at he end of your Init C Program.Do I assign it to the M code (Stop) as shown in the figure below. Is that correct?
Yes. Add C Code to do whatever you want EStop to do. ie disable axes or turn off contactor relay.Is there a way to make the E-stop button work in Hardware?
Regards,
Tom Kerekes
Dynomotion, Inc.
Tom Kerekes
Dynomotion, Inc.
Re: External Button Set-Up
TomKerekes wrote: ↑Sun Aug 06, 2023 5:37 pmHi Tom,
It already loads the code to my INIT program. I hope this is the correct way
If I understood correctly, would I have to add code in c to activate or deactivate relays in this part of the code?
- Attachments
-
- imagen_2023-08-07_141354335.png (11.01 KiB) Viewed 3808 times
-
- MotomanSK16.c
- (10.33 KiB) Downloaded 194 times
- TomKerekes
- Posts: 2677
- Joined: Mon Dec 04, 2017 1:49 am