Announcements
Autodesk Community will be read-only between April 26 and April 27 as we complete essential maintenance. We will remove this banner once completed. Thanks for your understanding

Wrong post-code for fanuc in G73

ghost24SBH9Z
Contributor Contributor
663 Views
11 Replies
Message 1 of 12

Wrong post-code for fanuc in G73

ghost24SBH9Z
Contributor
Contributor

I have a problem.

 

When i use the cycle chip breaker the post code is not correct becuse don't show me the cycle G73 but all the movements in G0 and G1 to execute the drill cycle.

 

How i can solve?

Reply
Reply
0 Likes
Accepted solutions (1)
664 Views
11 Replies
Replies (11)
Message 2 of 12

KrupalVala
Autodesk
Autodesk

Hi @ghost24SBH9Z 

 

open your post in any editor and search  case "chip-breaking": Now change below code from

case "chip-breaking":
      if ((cycle.accumulatedDepth < cycle.depth) || (P > 0)) {

to

case "chip-breaking":
        // cycle.accumulatedDepth is ignored
        if (P > 0) {

 

save the post and test it carefully.

 

Thanks,

 



Krupal Vala
Senior Technology Consultant - Post Processor & Machine Simulation
Reply
Reply
0 Likes
Message 3 of 12

ghost24SBH9Z
Contributor
Contributor

This is my post now after your advice but anything change

case "chip breaking":
      //(cycle.accumulatedDepth < cycle.depth) ||
      if (P > 0) {
        expandCyclePoint(x, y, z);
      } else {
        writeBlock(
          gRetractModal.format(98), gCycleModal.format(73),
          getCommonCycle(x, y, z, cycle.retract, cycle.clearance),
          "Q" + xyzFormat.format(cycle.incrementalDepth),
          feedOutput.format(F)
        );
Reply
Reply
0 Likes
Message 4 of 12

KrupalVala
Autodesk
Autodesk

Hi @ghost24SBH9Z ,

 

Yes. now test it. 



Krupal Vala
Senior Technology Consultant - Post Processor & Machine Simulation
Reply
Reply
0 Likes
Message 5 of 12

ghost24SBH9Z
Contributor
Contributor

I already tested it but doesn't work

Reply
Reply
0 Likes
Message 6 of 12

KrupalVala
Autodesk
Autodesk
 
Given solution should work. please check with  latest fanuc post. Else try with below codes.
 
case "chip-breaking":
      if ((P > 0)) {
        expandCyclePoint(xyz);
      } else {
        writeBlock(
          (properties.type == "A"? "" : gRetractModal.format(98), conditional(properties.type != "A"gAbsIncModal.format(90)), gCycleModal.format(73),
          getCommonCycle(xyzcycle.retract),
          peckOutput.format(cycle.incrementalDepth),
          feedOutput.format(F)
        );
      }
      break;
 
thanks,


Krupal Vala
Senior Technology Consultant - Post Processor & Machine Simulation
Reply
Reply
0 Likes
Message 7 of 12

ghost24SBH9Z
Contributor
Contributor
Post processor engine: 4.5699.0
Configuration path: D:\Programmi_Installati\Utilit� Fusion360\Post-Processor\dmg mori nhx.cps
Security level: 1000
Include paths: D:\Programmi_Installati\Utilit� Fusion360\Post-Processor
Configuration modification date: Sunday, August 16, 2020 6:06:47 PM
Output path: C:\Users\ghost\AppData\Local\Fusion 360 CAM\nc\1.nc
Checksum of intermediate NC data: 5c5eeee05591e9985fd472e5af0a1ab3
Checksum of configuration: 6a0fa0ff5b03704d0be19b37ec6e12a5
Vendor url: http://en.dmgmori.com
Legal: Copyright (C) 2012-2020 by Autodesk, Inc.
Generato da: Fusion 360 CAM 2.0.8809
...
Warning(D:\Programmi_Installati\Utilit� Fusion360\Post-Processor\dmg mori nhx.cps:1526): reference to undefined property properties.type
Warning(D:\Programmi_Installati\Utilit� Fusion360\Post-Processor\dmg mori nhx.cps:1526): reference to undefined property properties.type

###############################################################################
Errore: ReferenceError: peckOutput is not defined
Error at line: 1528
Error in operation: 'Foratura8'

Stack dump:
onCyclePoint(-397.5,-37.5,207.5)@D:\Programmi_Installati\Utilit¢ Fusion360\Post-Processor\dmg mori nhx.cps:1527
Failed while processing onCycle() for record 386.
###############################################################################

Errore: Failed to execute configuration.
Stop time: Sunday, August 16, 2020 6:06:58 PM
Post processing failed.
Reply
Reply
0 Likes
Message 8 of 12

KrupalVala
Autodesk
Autodesk

Hi @ghost24SBH9Z ,

 

please share your post processor file (*.cps). 

Thanks,



Krupal Vala
Senior Technology Consultant - Post Processor & Machine Simulation
Reply
Reply
0 Likes
Message 9 of 12

ghost24SBH9Z
Contributor
Contributor

There is.

Reply
Reply
0 Likes
Message 10 of 12

KrupalVala
Autodesk
Autodesk

Hi @ghost24SBH9Z ,

 

I though you are using Fanuc generic post. No problem. based on your post i have updated the code.

 case "chip-breaking":
        if ((P > 0)) {
          expandCyclePoint(x, y, z);
        } else {
          writeBlock(
            gRetractModal.format(98), gCycleModal.format(73),
            getCommonCycle(x, y, z, cycle.retract, cycle.clearance),
            "Q" + xyzFormat.format(cycle.incrementalDepth),
            feedOutput.format(F)
          );
        }
        break;

 

Save the post and test it carefully.

 

 



Krupal Vala
Senior Technology Consultant - Post Processor & Machine Simulation
Reply
Reply
0 Likes
Message 11 of 12

ghost24SBH9Z
Contributor
Contributor

ok great!!

 

Thank you so much for your help.

 

Now it work.

Reply
Reply
0 Likes
Message 12 of 12

KrupalVala
Autodesk
Autodesk
Accepted solution

Hi @ghost24SBH9Z ,

 

Thanks your for your feedback. There was a diff. in cycle name-> chip breaking &  chip-breaking.  That's why first solution did not work.

 

IF my answer solve your question, could you please click the "Accept Solution" button ? This helps everyone find answers more quickly!  

 

Thanks,



Krupal Vala
Senior Technology Consultant - Post Processor & Machine Simulation
Reply
Reply
0 Likes