constant velocity

More
5 years 10 months ago #192038 by ahmetbm
constant velocity was created by ahmetbm
Hi,
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.
Code:
G21 (Units in millimeters) G90 (Absolute programming) G64 (Default cutting) G17 (XY plane) G40 (Cancel radius comp.) G49 (Cancel length comp.) F280 G0 X 2.01200 Y 0.50000 G4 P1 M3 S1 G1 X 1.84950 Y 1.50000 M3 S1 G1 X 1.68700 Y 2.50000 M3 S1 G1 X 1.52450 Y 3.50000 M3 S1 G1 X 1.36200 Y 4.50000 M3 S1 G1 X 1.19950 Y 5.50000 M3 S1 G1 X 1.08575 Y 6.20000 M3 S1 G1 X 0.92498 Y 7.18937 M3 S1 G1 X 0.80727 Y 8.07545 M3 S1 G1 X 0.71382 Y 8.77545 M3 S1 G1 X 0.57961 Y 9.77545 M3 S1 G1 X 0.44457 Y 10.77545 M3 S1 G1 X 0.30707 Y 11.77545 M3 S1 G1 X 0.22 Y 12.77545 M3 S1 G1 X 0.13 Y 13.77545 M3 S1 G1 X 0.05 Y 14.77545 M3 S1 G1 X 0.02 Y 15.78362 M3 S1 G1 X 0.02 Y 16.78138 M3 S1 G1 X 0.02 Y 17.78138 M3 S1 G1 X 0.02 Y 18.78138 M3 S1 G1 X 0.03197 Y 19.78138 M3 S1 G1 X 0.05812 Y 20.78138 M3 S1 F210 G2 X 2.19 Y 20.78138 I 1.07 J -0.2 M3 S1 F280 G1 X 2.23 Y 19.91940 M3 S1 G1 X 2.3 Y 18.71940 M3 S1 G1 X 2.33 Y 17.71940 M3 S1 G1 X 2.35 Y 16.71940 M3 S1 G1 X 2.35 Y 15.78247 M3 S1 G1 X 2.34 Y 15 M3 S1 F140 G3 X 2.91 Y 15 I 0.285 J -0.02 M3 S1 F280 G1 X 2.91 Y 16.28325 M3 S1 G1 X 2.91 Y 17.28325 M3 S1 G1 X 2.91 Y 18.28325 M3 S1 G1 X 2.91 Y 19.28325 M3 S1 G1 X 2.91 Y 20.28325 M3 S1 G1 X 2.91 Y 21.08083 M3 S1 G1 X 2.93 Y 21.78083

Please Log in to join the conversation.

More
5 years 10 months ago #192046 by tommylight
Replied by tommylight on topic constant velocity
Before clicking on "run from here" , press F9 on the keyboard.

Please Log in to join the conversation.

More
5 years 10 months ago #192072 by ahmetbm
Replied by ahmetbm on topic constant velocity
I have read about that solution in the forum, unfortunately it does not solve my problem.

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.

More
5 years 10 months ago #192097 by cmorley
Replied by cmorley on topic constant velocity
how did you try to issue m3 s1 before running from line? MDI?

Please Log in to join the conversation.

More
5 years 10 months ago #192107 by ahmetbm
Replied by ahmetbm on topic constant velocity
I can not issue m3s1 before running from line, otherwise the machine will be damaged. I only tried that solution as: click "run from here" and wait till it starts executing line and press F9, but it did not activated spindle

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.

More
5 years 10 months ago #192140 by ahmetbm
Replied by ahmetbm on topic constant velocity
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.

Please Log in to join the conversation.

More
5 years 10 months ago #192146 by tommylight
Replied by tommylight on topic constant velocity
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

Please Log in to join the conversation.

More
5 years 10 months ago #192230 by ahmetbm
Replied by ahmetbm on topic constant velocity

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.

More
5 years 10 months ago #192328 by ahmetbm
Replied by ahmetbm on topic constant velocity

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.

Time to create page: 7.939 seconds
Powered by Kunena Forum