external start button with axis

More
18 May 2019 10:27 #134154 by phoenix
i want step by step instructions to how to add external start button in axis using hal

i specificcaly said STEP BY SYEP
on parellal port pin 15

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

More
18 May 2019 10:34 - 18 May 2019 10:36 #134155 by bevins

Bhushan wrote: i want step by step instructions to how to add external start button in axis using hal

i specificcaly said STEP BY SYEP
on parellal port pin 15


No, you put it in your machine hal file. He said put it in postgui hal file. anyway, did yopu check your halshow to see if your getting the input when you push the button?

BTW, that line works I use it in my machines.
Last edit: 18 May 2019 10:36 by bevins.

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

More
20 May 2019 03:39 #134323 by phoenix
my start button works but now i want to add addidtionbal pause button
so i did it
and this happens
im total noob to hal
Attachments:

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

More
20 May 2019 11:40 #134347 by andypugh
You have tried to connect halui.mode.auto to two different parallel port pins.
This isn't allowed, because it can't work. What value should halui.mode.auto be set to if the two parallel port pins have different values?

You probably need to send the parport inputs to an or2 component, and then take it from there to halui,mode.auto

Also, you are using and2.0 in both sections, and probably mean to use and2.1 in the second part.

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

More
20 May 2019 13:02 #134352 by pl7i92
he shoudt post the ini and hal file
and ofcause some mashine infos as he trying to do weard things that can be done mutch easyer

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

More
20 May 2019 13:32 - 20 May 2019 13:33 #134357 by bevins
I have a pause/resume button and a cycle start button. This is running on 2.7 for 5 years now.
On 2.8, names may have been changed to protect innocent.


#***********************
# Cycle-Start
#***********************
net cycle-start <= hm2_5i25.0.7i77.0.0.input-12 halui.mode.auto halui.program.run

#***********************
# Pause/Resume
#***********************
loadrt and2 count=2
loadrt or2 count=1
loadrt toggle2nist count=1

addf and2.0 servo-thread
addf and2.1 servo-thread
addf or2.0 servo-thread
addf toggle2nist.0 servo-thread

# External Program Pause/Resume Button
net pause-resume-btn and2.0.in0 and2.1.in0 <= hm2_5i25.0.7i77.0.0.input-00
net pause-on toggle2nist.0.is-on and2.0.in1 <= halui.program.is-paused
net run-on and2.1.in1 <= halui.program.is-running
net pause-sig or2.0.in0 <= and2.0.out
net resume-sig or2.0.in1 <= and2.1.out
net toggle-ok toggle.2.in <= or2.0.out
net togglesig toggle2nist.0.in <= toggle.2.out
net toggleon halui.program.pause <= toggle2nist.0.on
net toggleoff halui.program.resume <= toggle2nist.0.off
Last edit: 20 May 2019 13:33 by bevins.

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

Time to create page: 0.125 seconds
Powered by Kunena Forum