- Posts: 35
- Thank you received: 0
Motion feed hold cycle start physical buttons
- Toolman321
- Topic Author
- Offline
- Junior Member
-
I’ve added some physical buttons for cycle start and pause but my program resumes when I’m not pressing the pause button. I’d like it to stay paused until I hit the start button to resume.
I’d be grateful if someone could help me get it working properly please
Here is the code I’ve added to my Hal:
net prog-start-btn <= hm2_5i25.7i76.0.0.input-08 => halui.program.run
net prog-start-btn <= hm2_5i25.7i76.0.0.input-09 => motion-feed-inhibit
Many thanks
Please Log in or Create an account to join the conversation.
If your config runs with that HAL code then I suspect that it isn't even reading the HAL file with that code in, as it has at least 2 errors. (two HAL outputs to one signal, and no such pin as motion-feed-inhibit)
Please Log in or Create an account to join the conversation.
- Toolman321
- Topic Author
- Offline
- Junior Member
-
- Posts: 35
- Thank you received: 0
net prog-start-btn <= hm2_5i25.7i76.0.0.input-08 => halui.program.run
net prog-pause-btn <= hm2_5i25.7i76.0.0.input-09 => motion.feed-inhibit
Please Log in or Create an account to join the conversation.
- Toolman321
- Topic Author
- Offline
- Junior Member
-
- Posts: 35
- Thank you received: 0
I changed it a little but I couldn’t get it to work and I’m not sure why, I don’t know what most of the code actually means as I’m just trying stuff to see if it will work
Addf and2.0 servo-thread
Addf and2.1 servo-thread
Addf and2.2 servo-thread
Loadrt and2 count=3
# remote-start-feedhold
Net mode.pause and2.2in0 <= hm2_5i25.0.7i76.0.0.input-09
Net mode.pause <= halui.program.pause
Net remotestart and2.0.in0 and2.1.in0 <= hm2_5i25.0.7i76.0.0.input-08
Net oktorun and2.0.in1 <= halui.program-is-idle
Net run.halui.program.run halui.mode.auto <= and2.0.out
Net oktoresume and2.1.in1 <= halui.program-is-paused
Net resume halui.program.resume <= and2.1.out
Could someone tell me what’s is the problem with this please?
Many thanks
Please Log in or Create an account to join the conversation.
Toolman321 wrote: I was looking through some of the forum and found a simalar thread, so I copied the code in input into my custom Hal
I changed it a little but I couldn’t get it to work and I’m not sure why, I don’t know what most of the code actually means as I’m just trying stuff to see if it will work
Andf and2.0 servo-thread
Andf and2.1 servo-thread
Andf and2.2 servo-thread
Loadrt and2 count=3
# remote-start-feedhold
Net mode.pause and2.2in0 <= hm2_5i25.0.7i76.0.0.input-09
Net mode.pause <= halui.program.pause
Net remotestart and2.0.in0 and2.1.in0 <= hm2_5i25.0.7i76.0.0.input-08
Net oktorun and2.0.in1 <= halui.program-is-idle
Net run.halui.program.run halui.mode.auto <= and2.0.out
Net oktoresume and2.1.in1 <= halui.program-is-paused
Net resume halui.program.resume <= and2.1.out
Could someone tell me what’s is the problem with this please?
Many thanks
This is what I use.
Please Log in or Create an account to join the conversation.
- Toolman321
- Topic Author
- Offline
- Junior Member
-
- Posts: 35
- Thank you received: 0
Please Log in or Create an account to join the conversation.