Inhibit Homing on 2.7
- rapht0r
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 0
22 Oct 2020 13:15 #186896
by rapht0r
Inhibit Homing on 2.7 was created by rapht0r
Hello dear LinuxCNC Community,
Raphael from Germany here. I have the following question:
The machine (mill) I'm working on has an enclosure with a locking door. So far i figured out how to keep the door locked while anything moves (motion.current-vel or motion.requested-vel are nonzero, the VFD reports a spinning spindle, the motion.spindle-on pin is on, a programm is running by checking halui.program-idle or any of the axes is being homed (axis.N.homing)).
Also opening the door will set motion.feed-inhibit and motion.spindle-inhibit (and motion.feed-hold, though I'm not sure if thats necessary) to "TRUE". I thought that would inhibit any motion, however the homing sequence does not honor the feed-inhibit.
Thus, starting a reference sequence while the door is open is possible. I'd like it to not do the homing sequence while the door is open or unlocked
I noticed that motion 2.8 has a pin motion.homing-inhibit or something rather.
Is a similar functionality also available in 2.7?
Apologies for my bad english and thanks in advance!
Raphael
Raphael from Germany here. I have the following question:
The machine (mill) I'm working on has an enclosure with a locking door. So far i figured out how to keep the door locked while anything moves (motion.current-vel or motion.requested-vel are nonzero, the VFD reports a spinning spindle, the motion.spindle-on pin is on, a programm is running by checking halui.program-idle or any of the axes is being homed (axis.N.homing)).
Also opening the door will set motion.feed-inhibit and motion.spindle-inhibit (and motion.feed-hold, though I'm not sure if thats necessary) to "TRUE". I thought that would inhibit any motion, however the homing sequence does not honor the feed-inhibit.
Thus, starting a reference sequence while the door is open is possible. I'd like it to not do the homing sequence while the door is open or unlocked
I noticed that motion 2.8 has a pin motion.homing-inhibit or something rather.
Is a similar functionality also available in 2.7?
Apologies for my bad english and thanks in advance!
Raphael
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19500
- Thank you received: 6538
24 Oct 2020 21:15 #187132
by tommylight
Replied by tommylight on topic Inhibit Homing on 2.7
machine-is-enabled
that will inhibit everything and disable the drives, or is there any reason for not using that?
that will inhibit everything and disable the drives, or is there any reason for not using that?
Please Log in or Create an account to join the conversation.
- rapht0r
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 0
25 Oct 2020 07:52 #187173
by rapht0r
Replied by rapht0r on topic Inhibit Homing on 2.7
Hi, thanks for your reply!
I think i should hive a bit more info about the machine. It's a servo machine and i decided to use the G320X drives. Thus there is no posiotion feedback to LCNC. Also the axis can be pushed around with enough force. As a consequence of those two things i set the VOLATILE_HOME = TRUE in the .ini file. So disabling the drives every time the door is open would also unhome the machine.
I like the idea however..but i dont think i'll be able to to it that way unfortunately.
I think i should hive a bit more info about the machine. It's a servo machine and i decided to use the G320X drives. Thus there is no posiotion feedback to LCNC. Also the axis can be pushed around with enough force. As a consequence of those two things i set the VOLATILE_HOME = TRUE in the .ini file. So disabling the drives every time the door is open would also unhome the machine.
I like the idea however..but i dont think i'll be able to to it that way unfortunately.
Please Log in or Create an account to join the conversation.
- rodw
- Away
- Platinum Member
Less
More
- Posts: 10816
- Thank you received: 3563
25 Oct 2020 08:14 - 25 Oct 2020 08:14 #187176
by rodw
Replied by rodw on topic Inhibit Homing on 2.7
probably a more correct method for all your safety features would be to use estop-latch and build an estop chain in hal. Its not documented well but this is possible.
An example.
An example.
Warning: Spoiler!
# --- ESTOP CHAIN STARTS ---
net latch-reset <= iocontrol.0.user-request-enable
net latch-ok-in <= iocontrol.0.user-enable-out
net latch-ok-in => estop-latch.0.ok-in
net latch0-out <= estop-latch.0.ok-out
net latch0-out => estop-latch.1.ok-in
net latch1-out <= estop-latch.1.ok-out
net latch1-out => estop-latch.2.ok-in
net latch2-out <= estop-latch.2.ok-out
net latch2-out => estop-latch.3.ok-in
net latch-reset => estop-latch.0.reset
net latch-reset => estop-latch.1.reset
net latch-reset => estop-latch.2.reset
net latch-reset => estop-latch.3.reset
net latch-out iocontrol.0.emc-enable-in <= estop-latch.3.ok-out
net estop-out estop-latch.3.fault-out
# --- EXTERNAL ESTOP SWITCH - CONTROL BOX---
net external-estop <= hm2_7i76e.0.7i76.0.0.input-00
net external-estop => estop-latch.0.fault-in
# --- EXTERNAL ESTOP SWITCH - CONSOLE ---
net console-estop <= hm2_7i76e.0.7i76.0.0.input-31-not
net console-estop => estop-latch.3.fault-in
# --- PENDANT ESTOP SWITCH ---
net pendant-estop <= hm2_7i76e.0.7i76.0.0.input-26-not
net pendant-estop => estop-latch.1.fault-in
# --- TORCH BREAKAWAY E-STOP ---
net torch-breakaway <= hm2_7i76e.0.7i76.0.0.input-06
net torch-breakaway => estop-latch.2.fault-in
# --- E-STOP STEPPER DRIVE DISABLE ---
net estop-out hm2_7i76e.0.7i76.0.0.output-05
# --- E-STOP RED WARNING LIGHT ---
net estop-out hm2_7i76e.0.7i76.0.0.output-00
net estop-out hm2_7i76e.0.7i76.0.0.output-10
# --- ESTOP CHAIN ENDS ---
Last edit: 25 Oct 2020 08:14 by rodw.
Please Log in or Create an account to join the conversation.
Time to create page: 0.056 seconds