external start button with axis
- phoenix
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 157
- Thank you received: 0
18 May 2019 10:27 #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 or Create an account to join the conversation.
- bevins
- Offline
- Platinum Member
Less
More
- Posts: 1937
- Thank you received: 335
18 May 2019 10:34 - 18 May 2019 10:36 #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
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.
- phoenix
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 157
- Thank you received: 0
20 May 2019 03:39 #134323
by phoenix
Replied by phoenix on topic external start button with axis
Attachments:
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23178
- Thank you received: 4864
20 May 2019 11:40 #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 or Create an account to join the conversation.
- pl7i92
- Offline
- Platinum Member
Less
More
- Posts: 1875
- Thank you received: 354
20 May 2019 13:02 #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 or Create an account to join the conversation.
- bevins
- Offline
- Platinum Member
Less
More
- Posts: 1937
- Thank you received: 335
20 May 2019 13:32 - 20 May 2019 13:33 #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
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.092 seconds