Emc2 dont run the program 2 times
16 Apr 2016 22:49 #73443
by andradela
Emc2 dont run the program 2 times was created by andradela
Hi folks
I'm having some troubles with the emc.
I made this program, it run just the first time, if i reset the emc while its running, It can't start again. To start is necessary shut down and restart the emc.
Follow the program.
%
G17 G21 G90 G94
G54
#1=1
O101 while[#2 Lt 20]
G53 G0 Z0
G0 Z2
G1 Z#1 F600
G3 X0 Y-166.3 I166.3 J0 F500
X166.3 Y0 I0 J166.3
#1 =[#1-1]
#2=[#2+1]
O101 endwhile
%
I'm having some troubles with the emc.
I made this program, it run just the first time, if i reset the emc while its running, It can't start again. To start is necessary shut down and restart the emc.
Follow the program.
%
G17 G21 G90 G94
G54
#1=1
O101 while[#2 Lt 20]
G53 G0 Z0
G0 Z2
G1 Z#1 F600
G3 X0 Y-166.3 I166.3 J0 F500
X166.3 Y0 I0 J166.3
#1 =[#1-1]
#2=[#2+1]
O101 endwhile
%
Please Log in or Create an account to join the conversation.
16 Apr 2016 23:41 - 16 Apr 2016 23:43 #73449
by BigJohnT
Replied by BigJohnT on topic Emc2 dont run the program 2 times
When I try and run the program I get an error on the G3 move.
Normally you don't us % but use M2 to stop a file.
JT
Normally you don't us % but use M2 to stop a file.
JT
Last edit: 16 Apr 2016 23:43 by BigJohnT.
Please Log in or Create an account to join the conversation.
17 Apr 2016 09:10 - 17 Apr 2016 09:18 #73463
by Rick G
Replied by Rick G on topic Emc2 dont run the program 2 times
The g3 move does throw an error.
Also it looks like you need to set / reset #2
Try this as an example...
I always start and end my programs with a % to avoid possible unintentional effects of M2.
Also it looks like you need to set / reset #2
Try this as an example...
%
G17 G21 G90 G94
G54
#1=1
#2=0
O101 while[#2 Lt 20]
G53 G0 Z0
G0 Z2
G1 Z#1 F600
g3 X1 Y1 I1 f600
;G3 X0 Y-166.3 I166.3 J0 F500
;X166.3 Y0 I0 J166.3
#1 =[#1-1]
#2=[#2+1]
O101 endwhile
%
I always start and end my programs with a % to avoid possible unintentional effects of M2.
Last edit: 17 Apr 2016 09:18 by Rick G.
Please Log in or Create an account to join the conversation.
18 Apr 2016 01:02 #73508
by andradela
Replied by andradela on topic Emc2 dont run the program 2 times
Thanks folks for your reply.
I did like Mr Rick G told, it worked great.
Thanks for all for the fast response.
I did like Mr Rick G told, it worked great.
Thanks for all for the fast response.
Please Log in or Create an account to join the conversation.
Time to create page: 0.073 seconds