Moving cnc on exit ?
02 Sep 2015 19:04 - 02 Sep 2015 20:30 #62052
by bladekel
Moving cnc on exit ? was created by bladekel
Hello to everyone,
I need to move z-axis of my cnc through while on exiting the linuxcnc.
I am trying to write a code to a hal file that will send axis to a written coordinate.
How can i do it ? I am searching the forum for several hours, but couldnt find any...
I need to move z-axis of my cnc through while on exiting the linuxcnc.
I am trying to write a code to a hal file that will send axis to a written coordinate.
How can i do it ? I am searching the forum for several hours, but couldnt find any...
Last edit: 02 Sep 2015 20:30 by bladekel.
Please Log in or Create an account to join the conversation.
02 Sep 2015 21:13 #62058
by BigJohnT
Replied by BigJohnT on topic Moving cnc on exit ?
Do you want to press a button or something on the screen to send your machine to some place? When LinuxCNC is shutting down you can no longer move the machine with LinuxCNC.
JT
JT
The following user(s) said Thank You: bladekel
Please Log in or Create an account to join the conversation.
02 Sep 2015 22:12 #62063
by bladekel
Replied by bladekel on topic Moving cnc on exit ?
I want to keep axis-Z at 0 position even if i forgot to move it before exiting the linuxcnc.
Please Log in or Create an account to join the conversation.
02 Sep 2015 22:59 #62064
by andypugh
It is possible to run a HAL file on exit:
www.linuxcnc.org/docs/html/config/ini_co...id_sub_hal_section_a
The HAL file could unlink the Z-axis position command, then "setp" or "sets" the stepgen / PID to the required position.
Steps would have to be taken to ensure that the f-error didn't trip (unlink the feedpack pins too).
The problem here is that I think the stepgen and pid positions are rather arbitrary, the step or encoder counts might depend rather on where the axes were at startup.
Some careful experimentation with a finger on the _hardware_ e-stop might be needed.
Replied by andypugh on topic Moving cnc on exit ?
I need to move z-axis of my cnc through while on exiting the linuxcnc.
It is possible to run a HAL file on exit:
www.linuxcnc.org/docs/html/config/ini_co...id_sub_hal_section_a
The HAL file could unlink the Z-axis position command, then "setp" or "sets" the stepgen / PID to the required position.
Steps would have to be taken to ensure that the f-error didn't trip (unlink the feedpack pins too).
The problem here is that I think the stepgen and pid positions are rather arbitrary, the step or encoder counts might depend rather on where the axes were at startup.
Some careful experimentation with a finger on the _hardware_ e-stop might be needed.
The following user(s) said Thank You: bladekel
Please Log in or Create an account to join the conversation.
02 Sep 2015 23:14 #62065
by ArcEye
Sounds like what you actually need is decent home switches, then it won't matter where the axes were when you switched off, you can just home and go straight back to wherever you want.
regards
Replied by ArcEye on topic Moving cnc on exit ?
I want to keep axis-Z at 0 position even if i forgot to move it before exiting the linuxcnc.
Sounds like what you actually need is decent home switches, then it won't matter where the axes were when you switched off, you can just home and go straight back to wherever you want.
regards
Please Log in or Create an account to join the conversation.
03 Sep 2015 04:53 #62074
by BigJohnT
You could modify Axis to move your axis to that position before shut down but I think that is dangerous plan. I have return to home buttons (as well as home switches) on my plasma.
JT
Replied by BigJohnT on topic Moving cnc on exit ?
I want to keep axis-Z at 0 position even if i forgot to move it before exiting the linuxcnc.
You could modify Axis to move your axis to that position before shut down but I think that is dangerous plan. I have return to home buttons (as well as home switches) on my plasma.
JT
The following user(s) said Thank You: bladekel
Please Log in or Create an account to join the conversation.
07 Sep 2015 22:43 #62201
by bladekel
May be useful for me if it can be done automatically while exiting the EMC.
But how ?
Replied by bladekel on topic Moving cnc on exit ?
I want to keep axis-Z at 0 position even if i forgot to move it before exiting the linuxcnc.
You could modify Axis to move your axis to that position before shut down but I think that is dangerous plan. I have return to home buttons (as well as home switches) on my plasma.
JT
May be useful for me if it can be done automatically while exiting the EMC.
But how ?
Please Log in or Create an account to join the conversation.
07 Sep 2015 22:48 - 08 Sep 2015 00:43 #62202
by BigJohnT
I don't know how because I would not do it.
JT
Replied by BigJohnT on topic Moving cnc on exit ?
I want to keep axis-Z at 0 position even if i forgot to move it before exiting the linuxcnc.
You could modify Axis to move your axis to that position before shut down but I think that is dangerous plan. I have return to home buttons (as well as home switches) on my plasma.
JT
May be useful for me if it can be done automatically while exiting the EMC.
But how ?
I don't know how because I would not do it.
JT
Last edit: 08 Sep 2015 00:43 by BigJohnT.
Please Log in or Create an account to join the conversation.
07 Sep 2015 23:16 #62204
by cncbasher
Replied by cncbasher on topic Moving cnc on exit ?
may we ask the reason why , or why you think you want to do this
and what ty6pe of machine this is
it's not normal practice , and the reason why we have home and limit switches etc .
knowing the reasons , may prompt a better responce
as this can lead to other dangerous situations
and what ty6pe of machine this is
it's not normal practice , and the reason why we have home and limit switches etc .
knowing the reasons , may prompt a better responce
as this can lead to other dangerous situations
Please Log in or Create an account to join the conversation.
Time to create page: 0.089 seconds