![]() | |
| 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
| ||||
| ||||
Hi lads and lasses! I have an idea for programming machines with two pallets and I was wondering if anyone out there could help me out with this. I am programming 3 Matsuura machines with Fanuc 18i controllers on two and a Yasnac 840Di on tho other one. The machines have two pallets on each with a Chick 4 sided, 2 up per side style tombstone on each. We are currently resetting G54 to G59 with distances from machine zero to the parts (with G10 in sub programs) every time the pallet is rotated. This works ok but making corrections on the parts is a nightmare, especially if there is an angle hole involved. The thoughts behind this new idea is this. - The center of rotation of the pallet is positioned with G54 from machine zero - The parts are positioned with G52 from the center of the pallet - Math is applied to the G52 local coord from the offset table for corrections. This way when you make a change to the X coord on the face of the part (0° position), the machine will automatically change the Z coord when machining the sides of the part (when pallet rotates to 90° or 180°). When you change the Z coord on the face of the part (0° position), the machine will automatically change the X coord when machining the sides of the part (when pallet rotates to 90° or 180°). When you change the Y coord on the face of the part (0° position), the machine will automatically change the Y coord when machining the sides of the part (when pallet rotates to 90° or 180°). This should also work for any angle holes if they are triged out from the pallet center and offsets applied. Here is sample code for setting the machine and position offsets for the Fanuc 18i. % O1010(2324 OTB PAL A MAT 3.NC) (MACHINE VALUE) #101=-11.812(X) #102=-14.327(Y) #103=-28.500(Z) (0 DEG TOP) #111=0(X OFFSET) #112=0(Y OFFSET) #113=0(Z OFFSET) (0 DEG BOTTOM) #117=0(X OFFSET) #118=0(Y OFFSET) #119=0(Z OFFSET) (90 DEG TOP) #121=0(X OFFSET) #122=0(Y OFFSET) #123=0(Z OFFSET) (90 DEG BOTTOM) #127=0(X OFFSET) #128=0(Y OFFSET) #129=0(Z OFFSET) (180 DEG TOP) #131=0(X OFFSET) #132=0(Y OFFSET) #133=0(Z OFFSET) (180 DEG BOTTOM) #137=0(X OFFSET) #138=0(Y OFFSET) #139=0(Z OFFSET) (270 DEG TOP) #141=0(X OFFSET) #142=0(Y OFFSET) #143=0(Z OFFSET) (270 DEG BOTTOM) #147=0(X OFFSET) #148=0(Y OFFSET) #149=0(Z OFFSET) M99 % Here is sample code for a program % O1000(2324 PALLET A.NC) (WAGS BODY REV E) (CYCLE TIME 0M 0S) G0G17G40G49G54 G80G90G98 G91G28Z0 G28X0Y0 M98P1010 G10L2P1X[#101]Y[#102]Z[#103] M1(SPOT IN & OUT PORTS) G0G17G40G49G54 G80G90G98 T21M6(3/4" INSERT DRILL) B0 (0 DEG TOP) G52X[0-#111]Y[2.42-#112]Z[6.495-#113] G0X0Y0 M3S3500 G43H21Z1.T22M50 G81Z0R.2F20. X-2. G80 (0 DEG BOT) G52X[0-#117]Y[-2.055-#118]Z[6.495-#119] G0X0Y0 G81Z0R.2F20. X-2. G80G52X0Y0Z0 G0Z10. B90. (180 DEG BOT) G52X[0-#137]Y[-2.425-#138]Z[6.495-#139] G0X0Y0 Z1.M50 G81Z0R.2F20. X2. G80 (180 DEG TOP) G52X[0-#131]Y[2.05-#132]Z[6.495-#133] G0X0Y0 G81Z0R.2F20. X2. G80G52X0Y0Z0 G0Z10. B90. (ROUGH LONG PORT) (180 DEG TOP) G52X[-4.895-#133]Y[2.42-#132]Z[3.03-#131] G0X0Y0 Z1. G1Z.02F50. Z-3.2F20. G0Z1. (180 DEG BOT) G52X[-4.895-#139]Y[-2.055-#138]Z[3.03-#137] G0X0Y0 G1Z.02F50. Z-3.2F20. G0Z1. (0 DEG BOT) G52X[4.895+#119]Y[-2.425-#118]Z[3.03+#117] G0X0Y0 G1Z.02F50. Z-3.2F20. G0Z1. (0 DEG TOP) G52X[4.895+#113]Y[2.05-#112]Z[3.03+#111] G0X0Y0 G1Z.02F50. Z-3.2F20. G0Z1.M9 G52X0Y0Z0 G91G28Z0M5 G28X0Y0M29 G49M53 M98P1010 G10L2P1X[#101]Y[#102Z[#103] M1(SPOT IN & OUT PORTS) G0G17G40G49G54 G80G90G98 T22M6(5/8" INSERT DRILL) ....BLAH BLAH.... M30 My questions are... - Is this feasable? Does anyone have any better ways of manipulating coordinates for programming pallet machines? - Will it work? Is there a better way of going about programming this? Do I need to use macros or will it work as is? - Does anyone know how to do this for the Yasnac? Write and read data to variables? The Yasnac has 99 R variables. I can write to them no problem but I have problems reading the into the program. Thanks to all in advance. If you have any questions please post. I will be watching this thread closely. Jon |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |