First off I have managed to get EMC2 Live loaded onto a computer and 
running.  Lots of changes since the last time I looked at EMC, I really 
like the graphics in the AXIS interface, makes debugging programs a lot easier.

I did translate a program that was running on a Fanuc control and got it to 
run on EMC.
A few things I had to change.  All with AXIS, I have not tried the others.

1.  I could not get the G28 position to work right.

2.  Had to remove the G68 G69 rotation from the program.

3.  Could not find a way to get to the tool comp numbers.  So had to put 
tool radius in a variable, #107

4.  Some funny stuff happening at the tool change, may be related to the G28.

5.  The work offsets seem to be ignored.  In the MDI panel the active codes 
displays G54 regardless of what is in the program and even changing the G54 
location in the .var file is ignored.  I found the reload tool table in the 
menu but could not find how to reload the variable table.


Question is there some place in the interface to see what the current 
values of variables are?

I find it handy to watch the numbers while the program runs to make sure 
the calculations are being done the way they were intended.  Also nice to 
watch pass counters to see how much is left to go, the graphics display 
also gives that info just not in a quantized form of a number.


Here is the program if you want to try it.
****************************************************
***                                             ****
****************************************************



(MILL CONCAVE RADIUS)
(WORK ZERO)
(X AXIS CENTER OF PART)
(Y AXIS CENTER OF PART)
(Z AXIS TOP OF PART)
()
G0G17G20G40G49G80G90
G91G28Z0M5
(G69)(TURN OFF ROTATION)
()
#100=-1.0000(X START)
#101=1.0000(X STOP)
#102=2.000(RADIUS TO CUT)
#103=[90.0/30](ANGLE STEP SIZE)
#104=0.5000(DEPTH OF RADIUS FROM Z AXIS ZERO)
()
#105=3565(SPINDLE RPM)
#106=21.39(FEED IPM)
#109=2(TOOL BALL ENDMILL)
#110=59(WORKSTATION)
#107=0.1875(NOTE  TOOL RADIUS BECAUSE CAN NOT FIND EMC TOOL TABLE)
(#108=0.0)(PART ROTATION ANGLE)
()
(START AND END ANGLE SHOULD BE)
(BETWEEN 0 AND -180 AND THE)
(START ANGLE SHOULD BE)
(GREATER THEN THE END)
#111=45.0(START ANGLE OF RADIUS)
#112=-45.0(END ANGLE OF RADIUS)
()
(DO NOT EDIT AFTER THIS LINE)
()
N1M1(FIRST TOOL)
T#109M6
M1
G0G90G#110X0.000Y0.000
(G68X0.000Y0.000R#108)
S#105M3
G43Z1.000H#109(M8)
()
(NOTE  13000 IS THE START OF THE TOOL OFFSET TABLE      )
(      FOR THE FANUC NEED TO FIND THE EQUIVALANT IN EMC )
(#150=[-#[13000+#109]+#100])(X START POSITION)
(#151=[#[13000+#109]+#101])(X END POSITION)
()
(NOTE  FIND OUT WHY THIS NEXT LINE IS BAD??)
(#150=[-#107+#100])(X START POSITION)
(NOTE  THIS WORKS IT SHOULD WORK EITHER WAY)
#150=[#100-#107](X START POSITION)
#151=[#107+#101](X END POSITION)
#152=0.000(Y RADIUS CENTER)
#153=[#102-#104](Z RADIUS CENTER)
(#154=#102-#[13000+#109])(RADIUS AND END MILL)
#154=[#102-#107](RADIUS AND END MILL)
#155=#111(CURRENT ANGLE)
#156=[#152+[#154*SIN[#155]]](CURRENT Y)
G0X#150Y#156
()
(WHILE[#155GT#112]DO1)
O100 WHILE[#155GT#112]
#156=[#152+[#154*SIN[#155]]](CURRENT Y)
(#157=[#153-[#154*COS[#155]]-#[13000+#109]])(CURRENT Z)
#157=[#153-[#154*COS[#155]]-#107](CURRENT Z)
G1Y#156F#106
G1Z[#157+0.050]F75.0
G1Z#157F#106
G1X#151F#106
G1Z[#157+0.500]F75.0(RETRACT)
G0X#150
#155=[#155-#103](DECREMENT, COUNTER)
(END1)
O100 ENDWHILE
()
(LAST PASS)
#155=#112
#156=[#152+[#154*SIN[#155]]](CURRENT Y)
(#157=[#153-[#154*COS[#155]]-#[13000+#109]])(CURRENT Z)
#157=[#153-[#154*COS[#155]]-#107](CURRENT Z)
G1Y#156F#106
G1Z[#157+0.050]F75.0
G1Z#157F#106
G1X#151F#106
G1Z[#157+0.500]F75.0(RETRACT)
G0X#150
()
G0Z1.000M5
G91G28Z0M5
(G69)(TURN OFF ROTATION)
G91G28Y0
M30
__________
Andre' B.  Clear Lake, Wi.



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to