Jump to content

Welcome to eMastercam

Register now to participate in the forums, access the download area, buy Mastercam training materials, post processors and more. This message will be removed once you have signed in.

Use your display name or email address to sign in:

G68 and HPCC Error at Fanuc 18i-MB control


peon
 Share

Recommended Posts

The posted code below works excellent on the Johnford with a Fanuc 18i-MB controller UNTIL we add a G68 code for rotation. Adding a G68 generates a 5012 error (G05 P10000 Illegal Startup). If we remove the HPCC blocks, all will work fine. After doing some reading, I believe the G68 should work fine with the HPCC code. What am I missing from the following program? Any suggestions?

%

O0000(G68_HPCC)

(PROGRAM FOR JOHNFORD FANUC 18I-MB)

(DATE - APR. 06 2011)

(TIME - 12:04 PM)

(T1 1/4 FLAT )

(T2 1/8 FLAT)

G20

G0G17G40G49G80G90

(FIRST SAMPLE CONTOUR)

T1M6

S12450M3

G4X320. ---------------------------WARMS TOOL

G65P9902A3.H1R.0002S12450W0.Z0.-----TOOL SETTING PROBE

M7

G0G90G54X0.Y.125A0.S12450M3

G43H1Z1.T2

G05P10000R7-------------------------HPCC CODE

Z-.475

G1Z-.5F60.

X1.

G0Z1.

G05P0-------------------------------HPCC CANCEL

M9

M5

G91G28Z0.

G28Y0.

M01

(SECOND SAMPLE CONTOUR)

T2M6

S15200M3

G4X450.----------------------------WARMS TOOL

G65P9902A3.H2R.0002S15200W0.Z0.----TOOL SETTING PROBE

M7

G0G90G54X-.0625Y0.A0.S15200M3

G43H2Z1.T1

G05P10000R7-------------------------HPCC CODE

Z-.225

G1Z-.25F40.

Y1.

G0Z1.

G05P0-------------------------------HPCC CANCEL

M9

M5

G91G28Z0.

G28Y0.

G28X0.Y0.

G90

M30

%

Link to comment
Share on other sites

No experience with G05P1000.

But with G05.1Q1, this has to be before the G43 line.

When it's cancelled (at the end of tool), a G49 has to follow it.

 

%

O0666

( CUSTOMER )

( DESCRIPTION )

( DRG NO: )

( ISSUE NO: )

( OP NO: )

 

( SUBS USED PO0000 - PO0000 )

 

G17 G21 G40 G49 G69 G80 G90 M05

 

M00 ( NEW PROGRAM )

( USE BLOCK SKIP TO DISABLE G05.1 HSM )

 

(G54 DATUM)

G10G90L2P1X0Y0Z0

 

M1

 

N0101 T1 M6

M1

( 10MM DIA CARBIDE SLOTDRILL )

( CONTOUR )

G10G90L12P1R5.

/G05.1 Q1

 

G54 G0 G17 G40 G49 G69 G80 G90 X-13.822 Y39.05 S5000 M3

M8

G43 Z100. H1

Z25.

Z2.

G1 Z-5. F250.

G41 D1 X-21.322 F1500.

G3 X-13.822 Y31.55 R7.5

G1 X9.916

Y-23.588

X-37.56

Y31.55

X-13.822

X-12.822

G3 X-5.322 Y39.05 R7.5

G1 G40 X-12.822

G0 Z100. M9

G28 Z100. M19

G05.1 Q0

G49

X0.

G28 Y39.05

T1 M6

 

M30

%

Link to comment
Share on other sites

Thank you Newbeeee! That certainly helped me get on track. I made some post mods and everything works well with the following code.

 

%

O0000(G68_HPCC)

(PROGRAM FOR JOHNFORD FANUC 18I-MB)

(DATE - APR. 07 2011)

(TIME - 11:41 AM)

(T1 1/4 FLAT )

(T2 1/8 FLAT)

G20

G0G17G40G49G80G90G54

(FIRST SAMPLE CONTOUR)

T1M6

S12450M3

G4X320.

G65P9902A3.H1R.0002S12450W0.Z0.

G05P10000R7

M7

G68X0.Y0.R180. ---------------(ROTATION ON)

G0X0.Y.125

S12450M3

G43H1Z1.

T2

Z-.475

G1Z-.5F60.

X1.

G0Z1.

G69 --------------------------(CANCELED ROTATION)

G05P0

M9

M5

G91G28Z0.

G28Y0.

G49

M01

(SECOND SAMPLE CONTOUR)

T2M6

G90

S15200M3

G4X450.

G65P9902A3.H2R.0002S15200W0.Z0.

G05P10000R7

M7

G68X0.Y0.R180. ---------------(ROTATION ON)

G0X-.0625Y0.

S15200M3

G43H2Z1.

T1

Z-.225

G1Z-.25F40.

Y1.

G0Z1.

G69 --------------------------(CANCELED ROTATION)

G05P0

M9

M5

G91G28Z0.

G28Y0.

G49

G90

M30

%

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.

Join us!

eMastercam - your online source for all things Mastercam.

Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.

Follow us

×
×
  • Create New...