Mach4 Post Processor for Probing

Mach4 Post Processor for Probing

Aaron_Smalley
Explorer Explorer
1,159 Views
7 Replies
Message 1 of 8

Mach4 Post Processor for Probing

Aaron_Smalley
Explorer
Explorer

I have been trying to add WCS Probing to my mach4 PP by following the post processor training guide.

If its not obvious. I'm not good at coding at all lol.  So it has been mostly copy and paste. I made it through the WCS section and then tried to PP a probing routine to see if it worked. I get the error that probecode is not defined. referencing this line 

 

writeBlock(probeCode.code.format(probeCode.value), "P" + 9832)

 

Is this something that should have been already defined by a default PP? If anyone can help me troubleshoot this problem I would greatly appreciate it. 

 
 
Error: ReferenceError: probeCode is not defined
Error at line: 1033
Error in operation: 'Probe WCS3'

Stack dump:
onSection()@C:\Users\Aaron\AppData\Local\Autodesk\Autodesk Fusion 360\CAM\cache\posts\mach4mill-Probing.cps:1032
Failed while processing onSection() for record 320.
###############################################################################

Error: Failed to invoke function 'onSection'.
Error: Failed to invoke 'onSection' in the post configuration.
Error: Failed to execute configuration.
Stop time: Saturday, May 222021 10:02:56 PM
Post processing failed.
0 Likes
1,160 Views
7 Replies
Replies (7)
Message 2 of 8

kandennti
Mentor
Mentor

I need the cps file to find the cause and fix it.

 

Is the "mach4mill-Probing.cps" file available anywhere?

I couldn't find it here.

https://cam.autodesk.com/hsmposts? 

0 Likes
Message 3 of 8

Aaron_Smalley
Explorer
Explorer

Thank you very much for taking the time to look at this for me.

0 Likes
Message 4 of 8

Aaron_Smalley
Explorer
Explorer

Its the stock mach4 PP modified for WCS probing. I tried following the PP training guide from autodesk. So if its completely screwed up I apologize in advance.

0 Likes
Message 5 of 8

kandennti
Mentor
Mentor

@Aaron_Smalley .

 

Thanks for providing the "mach4mill-Probing.cps" file.

 

I've looked inside a bit and still no solution.
The following is what I noticed.

・The functions "getAngularProbingMode", "setProbingAngle" and "isProbeOperation" are duplicated.

・In some parts, "probeCode.code.format(probeCode.value)" is used, but "probeCode" is not defined.


I'm looking at the PostProcessorTrainingGuide.pdf here.

https://cam.autodesk.com/posts/posts/guides/Post%20Processor%20Training%20Guide.pdf 

I don't see any mention of the definition of "probeCode" in this PP Training Guide.
This is probably related to the GCode number to be written out, but I am unable to proceed further due to lack of knowledge.

 

Is there a Mach4 NC program file that includes probing?

0 Likes
Message 6 of 8

Aaron_Smalley
Explorer
Explorer

No unfortunately i couldn't find any PP for mach4 with probing. I also couldn't find "ProbeCode" being defined anywhere in the training guide either. I am stuck on it as well. I will keep manually probing until more info is released or someone else releasing a working PP. I greatly appreciate you taking time to look into it though. Thanks 

0 Likes
Message 7 of 8

kandennti
Mentor
Mentor

@Aaron_Smalley .

 

I used fanuc.cps to do the post processing.

https://cam.autodesk.com/hsmposts?p=fanuc 

・・・
( WCS1)
N30 T1 M06
N35 G54
N40 G00 X0. Y0.
N45 G43 Z155. H01
N50 G65 P9832
N55 G65 P9810 Z5. F1000.
N60 G65 P9812 Z-5. X42.522 R10. Q10. S1.
N65 G65 P9812 Z-5. Y43.048 R10. Q10. S1.
N70 G65 P9810 Z5.
N75 G00 Z155.
N80 G65 P9833
・・・

The letters around G65 Pxxxx are supposed to be the movement you are measuring, but it was unclear if it is the same for Mach4.

 

If it is the same, you may be able to use a similar part of fanuc.cps, but as far as I can tell, it uses a different function name than the PP training guide.

 

0 Likes
Message 8 of 8

boopathi.sivakumar
Autodesk
Autodesk

Hi@Aaron_Smalley 
I think mach4 uses its own probe codes like G31 and also the one which are defined in the fanuc / siemens uses Renishaw probing routines. I think it wont be supported for mach. Also are you using the touch probe? 

 


Boopathi Sivakumar
Senior Technology Consultant