Strange MDI!
02 Mar 2010 11:24 #2150
by eslavko
Strange MDI! was created by eslavko
Hello..
I write hole center probe subroutine and works nice if it's called from main program.
in test.ngc I have
and that's works without problem.
but if I type
o<hcenter> call
in MDI mode the only 1's move is ok and after that the move's are unpredictable for my opinion.
and there is hcenter.ngc
I write hole center probe subroutine and works nice if it's called from main program.
in test.ngc I have
o<hcenter> call
M02
and that's works without problem.
but if I type
o<hcenter> call
in MDI mode the only 1's move is ok and after that the move's are unpredictable for my opinion.
and there is hcenter.ngc
o<h Center> sub
F200 ;set feedrate for probe
G30.1 ;Save current coordinate
G38.3 Y285 ;Scan +Y limit
#100 = #5062 ;Save +Y limit
G30 ;Back to start cordinate
G38.3 Y-4 ;Scan -Y limit
G0Y[[#5062+#100]/2] ;goto aprox Y center
G30.1 ;Save current coordinate
G38.3 X255 ;Scan +X limit
#101 = #5061 ;Save +X limit
G30 ;Back to start cordinate
G38.3 X0 ;Scan -X limit
G0X[[#5061+#101]/2] ;goto exact X center
#101= [#101-#5061] ;calculate span X
G30.1 ;Save current coordinate
G38.3 Y285 ;Scan +Y limit
#100 = #5062 ;Save +Y limit
G30 ;Back to start cordinate
G38.3 Y-4 ;Scan -Y limit
G0Y[[#5062+#100]/2] ;goto exact Y center
#100= [#100-#5062] ;calculate span Y
#102=[#100-#101] ;excentricy
#100=[[#100+#101]/2] ;XY diameter
(debug, Diameter+probe=#100, excentricy=#102)
o<h Center> endsub
m02
Please Log in or Create an account to join the conversation.
02 Mar 2010 21:54 #2156
by Rick G
Replied by Rick G on topic Re:Strange MDI!
Hello,
I believe that if you enter the code from the MDI window EMC will be in MDI mode and only expects one line of code.
Rick
I believe that if you enter the code from the MDI window EMC will be in MDI mode and only expects one line of code.
Rick
Please Log in or Create an account to join the conversation.
02 Mar 2010 22:37 #2157
by eslavko
Replied by eslavko on topic Re:Strange MDI!
Definitly more than one line is executed!
At least machine does move but in nonsense direction and result is printed out again with nonsense values.
At least machine does move but in nonsense direction and result is printed out again with nonsense values.
Please Log in or Create an account to join the conversation.
06 Mar 2010 12:14 #2211
by Rick G
Replied by Rick G on topic Re:Strange MDI!
For those who are following this thread the information above is a little thin. Depending on the version of EMC you are using o<filename> call from the MDI line may not be supported or work reliably. However it seems that this is currently being addressed. There is more about this on the EMC mailing list.
Rick G
Rick G
Please Log in or Create an account to join the conversation.
06 Mar 2010 13:31 #2213
by eslavko
Replied by eslavko on topic Re:Strange MDI!
Ubuntu Hardy, EMC v2.5.0~pre
Please Log in or Create an account to join the conversation.
Time to create page: 0.065 seconds