- Posts: 156
- Thank you received: 0
external start button with axis
7 years 5 months ago #134154
by phoenix
external start button with axis was created 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
i specificcaly said STEP BY SYEP
on parellal port pin 15
Please Log in to join the conversation.
7 years 5 months ago #134155
by bevins
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.
Replied by bevins on topic external start button with axis
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.
Please Log in to join the conversation.
7 years 5 months ago #134323
by phoenix
Replied by phoenix on topic external start button with axis
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
so i did it
and this happens
im total noob to hal
Attachment not found
Attachment not found
Please Log in to join the conversation.
7 years 5 months ago #134347
by andypugh
Replied by andypugh on topic external start button with axis
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.
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 to join the conversation.
7 years 5 months ago #134352
by pl7i92
Replied by pl7i92 on topic external start button with axis
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
and ofcause some mashine infos as he trying to do weard things that can be done mutch easyer
Please Log in to join the conversation.
7 years 5 months ago #134357
by bevins
Replied by bevins on topic external start button with axis
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
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
Please Log in to join the conversation.
Time to create page: 0.507 seconds
