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