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:

Cancel hpcc before index B axis and turn it on right after


?Mark
 Share

Recommended Posts

Need some help here with HMC post  (

When in HPCC in Fanuc16i (we just added this option), the cnc skips right thru B rotations. No alarms of any kind.

I need to modify the post to turn off hpcc before B axis rotation "phsm_off" and turn it back on right after the rotation "phsm2_on".

 

Any help/pointers appreciated!

 

TIA

Link to comment
Share on other sites

That seems to have done the trick:

 

if fmtrnd(prv_cabs) <> fmtrnd(cabs),
            [
            if safe_index,
              [
              if lock_codes = one & not(index) & rot_on_x, pbld, n$, *sunlock, sunlockcomm, e$
              phsm_off                                                                                                                                           <<<added this line
              pbld, n$, [if not(index), sgabsinc, pwcs], pfcout, e$
              if lock_codes = one & not(index) & rot_on_x & cuttype = 0, pbld, n$, *slock, slockcomm, e$
              phsm2_on                                                                                                                                           <<<added this line
              pbld, n$, pfxout, pfyout, e$
              ]
            else,
.
.
Is there any place else I need to add it?
 
TIA
Link to comment
Share on other sites

Hey Ron, yeah... I did the same in all of those places. So far so good.

What's weird is that the machine would just skip over B rotations while in hpcc mode...scary

 

Yes that would be a major issue for me. I would be on the phone with the machine builder or dealer and getting an answer if that is by design. Glad you got it figured out, but not something I think you should have to do.

Link to comment
Share on other sites

Tim,

 

Its pretty simple...

 

G0 G17 G90 G54 A0. X.3125 Y0. S2000 M03
G5.1 Q1 (HIGH SPEED ON)
G43 H1 Z2.
Z1.1
G1 Z1. F50.
X0. F16.
X-2.
G0 Z2.
G0 G90 G49 G53 Z0.
G5.1 Q0 (CANCEL HIGH SPEED)
G0 A270. X.3125 Y0.
G5.1 Q1 (HIGH SPEED ON)
G43 H1 Z2.
Z1.1
G1 Z1. F50.
X0. F16.
X-2.
G0 Z2.
M05
M9
G0 G90 G49 G53 Z0.
G5.1 Q0 (CANCEL HIGH SPEED)
G53 Y0. A0.
M30

 

If I don't cancel the high speed, the A axis won't move. The program will continue running tho.

When we added the 4th axis to this machine, A guy from Doosan came out and wrote a custom ladder on the spot. I figured it was an issue in the ladder. The machine is a Doosan VM925. A very solid machine BTW....like anything out there, it has its quirks.

Link to comment
Share on other sites

Here is mine:

.

.

X0.
X-.75
X-.9
G0 Z11.
(ROUGH EDGE)
Z11.
M11 (UNLOCK)
G05 P0
G54.1 P2 B270.
M10 (LOCK)
G05 P10000
X2.375 Y9.1541
Z11.
Z2.65
G1 Z2.55 F420.
X-2.375 Z2.45
X2.375 Z2.35.
.
.
Again, If I don't cancel HPCC, the B axis won't move, but the program will go on.
I got the post figured out to take care of this, so so far so good...
Link to comment
Share on other sites
Guest MTB Technical Services

Tim,

 

Its pretty simple...

G0 G17 G90 G54 A0. X.3125 Y0. S2000 M03
G5.1 Q1 (HIGH SPEED ON)
G43 H1 Z2.
Z1.1
G1 Z1. F50.
X0. F16.
X-2.
G0 Z2.
G0 G90 G49 G53 Z0.
G5.1 Q0 (CANCEL HIGH SPEED)
G0 A270. X.3125 Y0.
G5.1 Q1 (HIGH SPEED ON)
G43 H1 Z2.
Z1.1
G1 Z1. F50.
X0. F16.
X-2.
G0 Z2.
M05
M9
G0 G90 G49 G53 Z0.
G5.1 Q0 (CANCEL HIGH SPEED)
G53 Y0. A0.
M30

If I don't cancel the high speed, the A axis won't move. The program will continue running tho.

When we added the 4th axis to this machine, A guy from Doosan came out and wrote a custom ladder on the spot. I figured it was an issue in the ladder. The machine is a Doosan VM925. A very solid machine BTW....like anything out there, it has its quirks.

 

 

Yep, this is a syntax issue and it's documented by FANUC.

 

You should really cancel HPCC, AICC, AIAPC before issuing a G49.

While it is not technically wrong, G49 has to be read before you can activate High Speed Modes again.

 

All High Speed modes are issued on a per tool basis.

However, if you issue a G49 without cancelling HSM, you will get results you do not like.

 

Based on what you are both reporting, It appears that both machines also have indexers as opposed to full rotary axes.

This may not be the case, but if HSM is properly formatted you will not have any issues with rotation.

 

It looks like Mark's may have something going on that's slightly different as I don't see a G49.

Mark, where are you activating HPCC within your program?

Link to comment
Share on other sites

Yep, this is a syntax issue and it's documented by FANUC.

 

You should really cancel HPCC, AICC, AIAPC before issuing a G49.

While it is not technically wrong, G49 has to be read before you can activate High Speed Modes again.

 

All High Speed modes are issued on a per tool basis.

However, if you issue a G49 without cancelling HSM, you will get results you do not like.

 

Based on what youa re both reporting, It appears that both machines also have indexers as opposed to full rotary axes.

This may not be the case, but if HSM is properly formatted you will not have any issues with rotation.

The machine is not an indexer. It can be run as a full 4th, as long as the high speed is not active. As far as canceling the command, its been a while since I played with it, tho when we first got the machine I messed and messed with it till I found a place where it would work. This machine was very picky about the placement of the G5.1 Q0 command. I played with it till it worked and left it at that....

Link to comment
Share on other sites

Hi Tim,

No G49 in my program at all. Simple, slightly customized MPMaster based 4th axis post.

 

...

G90 G10 L2 P6 X0 Y0 Z0 B0 (G59)
G90 G10 L20 P1 X-.0012 Y.003 Z0 B0 (G54.1 P1)
G90 G10 L20 P2 X0 Y.003 Z0 B0 (G54.1 P2)
G90 G10 L20 P3 X0 Y.003 Z0 B0 (G54.1 P3)
G90 G10 L20 P4 X0 Y.003 Z0 B0 (G54.1 P4)
G90 G10 L20 P5 X0 Y.003 Z0 B0 (G54.1 P5)
G90 G10 L20 P6 X0 Y.003 Z0 B0 (G54.1 P6)
G0 G17 G40 G80 G90
(ROUGH)
N23 T23 (1.500 DIA R.063 EM 3FL W/.610 LOC 2.00 REL MITSUBISHI AXD4000UR1503A)
M6
M11 (UNLOCK)
G0 G17 G90 G54 B0.
M10 (LOCK)
X2.44 Y2.675 S14000 M3
G43 H23 Z11. T13
M8
G05 P10000       <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Z10.6001
G1 Z10.5001 F420.
G41 D23 X2.065

G3 X1.765 Y2.375 J-.3

... 

 

But you're right.

Out 10 HMC's here, this is the only one with not FULL 4th axis (index only). That could be it.

Link to comment
Share on other sites
Guest MTB Technical Services

Hi Tim,

No G49 in my program at all. Simple, slightly customized MPMaster based 4th axis post.

 

...

G90 G10 L2 P6 X0 Y0 Z0 B0 (G59)
G90 G10 L20 P1 X-.0012 Y.003 Z0 B0 (G54.1 P1)
G90 G10 L20 P2 X0 Y.003 Z0 B0 (G54.1 P2)
G90 G10 L20 P3 X0 Y.003 Z0 B0 (G54.1 P3)
G90 G10 L20 P4 X0 Y.003 Z0 B0 (G54.1 P4)
G90 G10 L20 P5 X0 Y.003 Z0 B0 (G54.1 P5)
G90 G10 L20 P6 X0 Y.003 Z0 B0 (G54.1 P6)
G0 G17 G40 G80 G90
(ROUGH)
N23 T23 (1.500 DIA R.063 EM 3FL W/.610 LOC 2.00 REL MITSUBISHI AXD4000UR1503A)
M6
M11 (UNLOCK)
G0 G17 G90 G54 B0.
M10 (LOCK)
X2.44 Y2.675 S14000 M3
G43 H23 Z11. T13
M8
G05 P10000       <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Z10.6001
G1 Z10.5001 F420.
G41 D23 X2.065

G3 X1.765 Y2.375 J-.3

... 

 

But you're right.

Out 10 HMC's here, this is the only one with not FULL 4th axis (index only). That could be it.

 

You may also be having the issue based on where you have started it.

It should be started before engaging a TLO with G43.

 

This may not be the case since it's the older actual HPCC format.

G05.1 needs to be started before a TLO.

 

You might want to double check if your clamping/unclamping M-codes are actually resident subs and not embedded functions.

I've seen customized M06 programs cause issue for users.

It's probably not the cause but it's worth looking at.

 

On your machine it's probably because you have a strict 3-Axis HSM.

 

I'm not sure how FANUC is optioning this stuff now.

They may actually tie it to the number of continuous axes licensed for the option.

Or it may just be a ladder that was written without consideration for rotary indexing.

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...