OK. This is the real deal. I'm rewriting a program that I hope will get GibbsCAM to behave like our Mori Seiki horizontal mill and output the correct B axis code. Our mill looks like this:
The Z axis is the spindle sticking out of the wall, and the rotary table on the floor is the B axis. It does angular positioning by commanding B0., B90., B270., etc.
Here's my Document Control:
I have a tombstone on the rotary table, and a fixture attached to the tombstone that holds two caster housing castings like this:
This image shows the XY plane. Here a 1" end mill faces off the bosses as represented by the vertical tool path. Some drilling and tapping gets done in XY also (not shown).
Then the tombstone needs to rotate 90 dregrees to drill the bosses in the YZ plane, as rerpresented by the horizontal tool path:
Then the tombstone rotates to B270. (a second YZ CS I'll create with reversed Z polarity) and drills the hole through the bosses on the other housing.
I have GibbsCAM behaving correctly so far. I just have some issues with the ouput. I'm using an Advanced Mill post that gives me the following for the two tool paths I have so far:
Notice that G54 is at B0. Thats all good. In the comments for G55, its showing B-90. Unfortunately, the code itself is commanding G55 at B0. also. Thats correct from the point of view of G55, but you see my problem.
O6200( 7-22-11.NCF )
( FOR FIXTURE HOLDING 2 PARTS 7-25-11 )
( FORMAT: FANUC 11M B007.16.PST )
( 8/13/11 AT 11:41 PM )
( OUTPUT IN ABSOLUTE INCHES )
( PARTS PROGRAMMED: 1 )
( FIRST TOOL NOT IN SPINDLE )
( OPERATION 1: CONTOUR )
( XY WG )
( TOOL 1: 1. ROUGH ENDMILL )
( CS#1 - XY CS )
( G54 = X0. Y0. Z0. B0. )
( OPERATION 2: HOLES )
( YX WG )
( TOOL 2: .472 DRILL )
( CS#2 - YZ CS )
( G55 = X0. Y0. Z2.645 B-90. )
( FILE LENGTH: 743 CHARACTERS )
( FILE LENGTH: 6.47 FEET )
( FILE LENGTH: 2.04 METERS )
I need a line of code that reads B90. to rotate my tombstone before doing any work in G55. Typically, I put the B coordinate on a line by itself, before commanding the work offset. I'm just wondering if GibbsCAM can do that, or if thats just something I'll have to add manually.