- Posts: 310
- Thank you received: 0
Check air pressure before doing anything?
This sorta begs a question I've asked in the past, but never got a good answer to: is there a way to run some code (Python is fine) whenever any Gcode command is issued (whether it be MDI, program, or response to a widget click)?
Please Log in to join the conversation.
Cover particular codes? possible for some codes - that's what remap was for.
But remap is for the planning stage of codes.
You want to act on at-the-moment-of-execution point.
Depending on what you are trying to do (say spindle control) HAL is probably the best.
Chris
Please Log in to join the conversation.
Same with tool change, your component would not set iocontrol.0.tool−change to request a tool change until air pressure was OK. Instead it would just hold and wait.
Please Log in to join the conversation.
rodw wrote: I don't think gcode is required at all. I would write a custom component and send all of the signals you want to monitor to it including your air pressure. Without actually knowing what you wish to achieve its hard to be specific, but if you had an output pin that went true on low air pressure, to raise a warning and say the component would not enable the spindle at speed until air pressure was to spec.
Same with tool change, your component would not set iocontrol.0.tool−change to request a tool change until air pressure was OK. Instead it would just hold and wait.
Why not require air to bring the machine out of estop?
Please Log in to join the conversation.
- tommylight
-
- Away
- Administrator
-
- Posts: 22012
- Thank you received: 4
+1bevins wrote: Why not require air to bring the machine out of estop?
Please Log in to join the conversation.
I am unable to compile new Air Componet. And e-stop maybe little overdress. In the 90s we combine this type of alarms via single block mode or motion stop mode. Now I would connect through Spindel.0.amp-foult-In or last unused joint.5.amp-fault-in. So you get Alarm.
regards Christian
Please Log in to join the conversation.
- tommylight
-
- Away
- Administrator
-
- Posts: 22012
- Thank you received: 4
motion-inhibit
enable
e-stop
amplifier-fault
spindle-enable
there might also be other pins that can be used to tailor the functionality, all in hal, no comp needed.
Please Log in to join the conversation.
Please Log in to join the conversation.
tommylight wrote: You can use
motion-inhibit
enable
e-stop
amplifier-fault
spindle-enable
there might also be other pins that can be used to tailor the functionality, all in hal, no comp needed.
I think you're right, I can get really close with these.
Please Log in to join the conversation.
JetForMe wrote: Because air is not necessarily required for everything, like homing or jogging. E-stop is overkill. And really, I may not even want to stop a running program, although that would be best; feedhold and stop the spindle, so that the program can be resumed after the air situation is corrected.
You could keep the the spindle at speed pin disabled if the air pressure was not good. Once air pressure was good, it would just start to run. probably just an and2 required.
Please Log in to join the conversation.
