- Posts: 34
- Thank you received: 0
constant velocity
I have a problem with my g code, below attached a pice of it. When there is a problem during execution of code, i stop the machine, correct the things and use "run from here" command to resume the execution. I am using M3 S1 code to send a signal for laser.
If i use M3 S1 only at the beginning of the code and if i encounter a problem in the middle, i can not activate M3 S1 when i use "run from here" command.
If i use M3 S1 between G1 commands like below, "run from here" works flawless, but machine can not move in constant velocity, it speeds down and up when M3 S1 command encountered.
I will appreciate if anybody can give a solution or even an enlightenment for this purpose?
Thanks.
Please Log in to join the conversation.
- tommylight
-
- Offline
- Administrator
-
- Posts: 22012
- Thank you received: 4
Please Log in to join the conversation.
I need a way to re-activate M3 S1 after clicking "run from here". Otherwise machine will be damaged.
I can change the signal, i only need an activation signal when g code is being executed it is active and when a pause, stop or e-stop arrives it is passive, and when "run from here" is used it is activated automatically.
Thanks in advance.
Please Log in to join the conversation.
Please Log in to join the conversation.
I am curious, if it is possible that the "run from here" command can check if there is a signal should be activated while executing the current line?
Please Log in to join the conversation.
If any advice to use different way that i could not find in linuxcnc, i apreciate it.
Please Log in to join the conversation.
- tommylight
-
- Offline
- Administrator
-
- Posts: 22012
- Thank you received: 4
It requires adding 3 or 4 lines in hal.
www.google.com/search?source=hp&ei=eETaX...I1C_4Q4dUDCAY&uact=5
Please Log in to join the conversation.
ahmetbm wrote: I tried to use M64-M65 for signal activation because i need a signal to trigger a relay, but unfortunately M64-M65 is active after e-stop is triggered.
If any advice to use different way that i could not find in linuxcnc, i apreciate it.
I am sorry my explanation is wrong, in fact M64-65 is stopped by e-stop, however it is activated as soon as i removed e-stop , before i make any jogging or another preparation. So the signal must stay de-active until i press start.
Please Log in to join the conversation.
tommylight wrote: You can AND the e-stop or machine is enabled with the DOUT, so when disabled or e-stopped it will also turn off the output.
It requires adding 3 or 4 lines in hal.
www.google.com/search?source=hp&ei=eETaX...I1C_4Q4dUDCAY&uact=5
Thanks for the tip, i was able to manage the needs, however i was avoiding manual jogging, but i used to solve the problem
Please Log in to join the conversation.
