![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| G-Code Programing Discuss G-code programing and problems here! |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
| We have 4 of these machines in house and trying to wrk on an interchangable system between each machine. I have found the code for setting the G54 - G59 (J1) offsets (G10 Q2 P1-5 X# Y# Z#) but what is the code for setting offsets J2-J4? Also how can I write the Tool Offsets in as we use a presetter from Elbo Controlli / Lyndex Nikken for setting all of our tools. Any help would be appreciated. Jake Enger Setup Specialist MaTech, Inc. Salisbury, MD 21801 410-543-1627 |
|
#2
| ||||
| ||||
| Add a J2 - J5 to the G10 block: G10 Q2 P1 X# Y# Z# (SET G54 J1) G10 Q2 P1 J2 X# Y# Z# (SET G54 J2) G10 Q2 P4 J2 X# Y# Z# (SET G57 J2) G10 Q2 P6 J5 X# Y# Z# (SET G59 J5) I would suggest you punch out the offsets to your PC to be sure of the correct format (the book shows spaces where you wouldn't expect spaces). % H01 X -14.2454 H02 X - 10.9335 D21 X 0.5 % |
|
#3
| |||
| |||
Also when I output the offsets, I have the following: % H01 X 4.0780 H02 X 3.7686 H03 X 3.4360 % Last edited by Jake E.; 01-08-2010 at 02:03 AM. |
|
#4
| ||||
| ||||
| Are you in the OFS function when you load the offsets? Select EDIT mode Press RESET Press OFS Press IN Send the offset file from the PC. Also, according to the manual you can use H or D when inputting offsets. I suppose it only punches H. |
|
#5
| |||
| |||
| I am trying to do it as a macro, similar to the workshifts. This was originally done so we can run a check program to ensure proper tool length is set so we dont have crashes. Many of our tool holders come within .020" of the fixture so we limit the length to +/-.005 to avoid collisions. Below is an example of what we do with the Fanuc programming. O3776(RAIL.NC) (PALLET B) G90G10L2P1X-13.1640Y-7.6980Z-17.6116(STAGE 1 G54) G90G10L2P2X-22.4000Y-5.0460Z-15.8410(STAGE 2 G55) G90G10L2P3X-19.2385Y-5.0450Z-11.1346(STAGE 3 G56) G90G10L2P4X-14.3990Y-5.0460Z-14.1550(STAGE 4 G57) G90G10L2P5X-13.2815Y-10.9312Z-17.5455(STAGE 5 G58) G90G10L2P6X-15.7710Y-14.4484Z-16.3856(STAGE 6 G59) M99 O3777(RAIL.NC) G90 (TOOL LENGTHS) G10L1P1R5.9210 G10L1P2R6.6841 G10L1P3R6.7853 G10L1P4R4.0670 G10L1P5R7.3700 G10L1P6R5.3505 G10L1P7R5.2850 M99 O8775(RAIL.NC) (TOOL LENGTH COMPARISON MACRO PROGRAM) IF[ABS[#2001-5.9207]GT.005]GOTO1001 IF[ABS[#2002-6.6834]GT.005]GOTO1002 IF[ABS[#2003-6.7855]GT.005]GOTO1003 IF[ABS[#2004-4.0670]GT.005]GOTO1004 IF[ABS[#2005-7.3746]GT.005]GOTO1005 IF[ABS[#2006-5.3490]GT.005]GOTO1006 IF[ABS[#2007-5.2878]GT.005]GOTO1007 GOTO9999 N1001#3000=101(H1 OUT OF RANGE) N1002#3000=102(H2 OUT OF RANGE) N1003#3000=103(H3 OUT OF RANGE) N1004#3000=104(H4 OUT OF RANGE) N1005#3000=105(H5 OUT OF RANGE) N1006#3000=106(H6 OUT OF RANGE) N1007#3000=107(H7 OUT OF RANGE) N9999 M99 O8777(RAIL.NC) (INSP PROG FOR PALLET B) (WORK SHIFTS X) IF[ABS[#5221+13.1640]GT.010]GOTO1001(X G54) IF[ABS[#5241+22.4000]GT.010]GOTO1002(X G55) IF[ABS[#5261+19.2370]GT.010]GOTO1003(X G56) IF[ABS[#5281+14.4010]GT.010]GOTO1004(X G57) IF[ABS[#5301+13.2840]GT.010]GOTO1005(X G58) IF[ABS[#5321+15.7710]GT.010]GOTO1006(X G59) (WORK SHIFTS Y) IF[ABS[#5222+7.6980]GT0.01]GOTO1007(Y G54) IF[ABS[#5242+5.0460]GT0.01]GOTO1008(Y G55) IF[ABS[#5262+5.0450]GT0.01]GOTO1009(Y G56) IF[ABS[#5282+5.0468]GT0.01]GOTO1010(Y G57) IF[ABS[#5302+10.9340]GT0.01]GOTO1011(Y G58) IF[ABS[#5322+14.4460]GT0.01]GOTO1012(Y G59) (WORK SHIFTS Z) IF[ABS[#5223+17.6116]GT0.01]GOTO1013(Z G54) IF[ABS[#5243+15.8410]GT.010]GOTO1014(Z G55) IF[ABS[#5263+11.1326]GT0.01]GOTO1015(Z G56) IF[ABS[#5283+14.1550]GT.010]GOTO1016(Z G57) IF[ABS[#5303+17.5451]GT0.01]GOTO1017(Z G58) IF[ABS[#5323+16.3856]GT.010]GOTO1018(Z G59) GOTO9999 (PALLET OUT OF RANGE X) N1001#3000=120(X G54 OUT OF RANGE) N1002#3000=120(X G55 OUT OF RANGE) N1003#3000=120(X G56 OUT OF RANGE) N1004#3000=120(X G57 OUT OF RANGE) N1005#3000=120(X G58 OUT OF RANGE) N1006#3000=120(X G59 OUT OF RANGE) ( OUT OF RANGE Y) N1007#3000=120(Y G54 OUT OF RANGE) N1008#3000=120(Y G55 OUT OF RANGE) N1009#3000=120(Y G56 OUT OF RANGE) N1010#3000=120(Y G57 OUT OF RANGE) N1011#3000=120(Y G58 OUT OF RANGE) N1012#3000=120(Y G59 OUT OF RANGE) ( OUT OF RANGE Z) N1013#3000=120(Z G54 OUT OF RANGE) N1014#3000=120(Z G55 OUT OF RANGE) N1015#3000=120(Z G56 OUT OF RANGE) N1016#3000=120(Z G57 OUT OF RANGE) N1017#3000=120(Z G58 OUT OF RANGE) N1018#3000=120(Z G59 OUT OF RANGE) N9999 M99 Last edited by Jake E.; 01-11-2010 at 06:50 PM. Reason: typo |
| Sponsored Links |
|
#8
| |||
| |||
| OK The different gcodes are working so we will be able to write the offsets in from the program for both the tools and the workshifts. Thanks very much for your help dcoupar. Next problem is trying to figure out the GOTO command ( keep gettting an error when using GOTO, looking for an address) and the parameters for the tool lengths to use for our inspection macros (see previous post). |
|
#9
| |||
| |||
| Stevo |
![]() |
| Tags |
| mx-3, mx3, tool offset, yasnac |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Yasnac mx1 vs. mx5 | Brian FRF | General Metal Working Machines | 0 | 06-09-2009 11:32 PM |
| Yasnac help | cncwhiz | General Metal Working Machines | 12 | 03-25-2009 06:48 PM |
| Need Help!- how to dnc a yasnac mx1 | matosjulio | G-Code Programing | 1 | 02-06-2009 03:26 PM |
| Need Help!- Yasnac LX3 | inthedark | General Metalwork Discussion | 2 | 08-07-2008 05:03 AM |
| Yasnac I80 | Gitanes | General CNC (Mill and Lathe) Control Software (NC) | 0 | 11-23-2005 11:00 PM |