Community
Fusion Manufacture
Talk shop with the Fusion (formerly Fusion 360) Manufacture Community. Share tool strategies, tips, get advice and solve problems together with the best minds in the industry.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Probing multiple WCS with pattern subroutines

6 REPLIES 6
Reply
Message 1 of 7
RandyY98W5
266 Views, 6 Replies

Probing multiple WCS with pattern subroutines

I am trying to get familiar with the probing feature after years of doing things the "old fashioned way" with an edge finder in my shop. However, I am noticing an issue with the post, specifically when using multiple WCS with patterns enabled: the subroutine it outputs to probe the WCS, always overrides the original WCS, as opposed to the current one. Our Haas machines have something like 1.5MB of memory so using subroutines is often the only way to get the whole program in memory (and we have had issues running it off a USB or directly off the network).

 

Here is what the code looks like when it is generated WITHOUT subroutines:

(Probe WCS2)
T25 M6
G54
G0 X0. Y0.
G43 Z2.21 H25
T1
G65 P9832
G65 P9810 Z0.21 F39.37
G65 P9811 Z0.01 Q0.5 S1.
G65 P9810 Z0.21
G0 Z2.21
G65 P9833

(Probe WCS3)
G54
G0 X0. Y0.
G65 P9832
G0 Z2.21
G65 P9810 Z0.21 F39.37
G65 P9812 Z-0.2262 X5.75 R0.5 Q0.5 S1.
G65 P9812 Z-0.2262 Y2.5 R0.5 Q0.5 S1.
G65 P9810 Z0.21
G0 Z2.21
G65 P9833
G53 G0 Z0.

(Probe WCS2)
G55
G0 X0. Y0.
G43 Z2.21 H25
G65 P9832
G65 P9810 Z0.21 F39.37
G65 P9811 Z0.01 Q0.5 S2.
G65 P9810 Z0.21
G0 Z2.21
G65 P9833

(Probe WCS3)
G55
G0 X0. Y0.
G65 P9832
G0 Z2.21
G65 P9810 Z0.21 F39.37
G65 P9812 Z-0.2262 X5.75 R0.5 Q0.5 S2.
G65 P9812 Z-0.2262 Y2.5 R0.5 Q0.5 S2.
G65 P9810 Z0.21
G0 Z2.21
G65 P9833
G53 G0 Z0.

(Probe WCS2)
G56
G0 X0. Y0.
G43 Z2.21 H25
G65 P9832
G65 P9810 Z0.21 F39.37
G65 P9811 Z0.01 Q0.5 S3.
G65 P9810 Z0.21
G0 Z2.21
G65 P9833

(Probe WCS3)
G56
G0 X0. Y0.
G65 P9832
G0 Z2.21
G65 P9810 Z0.21 F39.37
G65 P9812 Z-0.2262 X5.75 R0.5 Q0.5 S3.
G65 P9812 Z-0.2262 Y2.5 R0.5 Q0.5 S3.
G65 P9810 Z0.21
G0 Z2.21
G65 P9833
M5
G53 G0 Z0.

Note how on the G65 lines, S1. corresponds to G54, S2. for G55, and so on. Now look at the code generated with subroutines:

(Probe WCS2)
T25 M6
G54
G0 X0. Y0.
G43 Z2.21 H25
T1
G65 P9832
M97 P90000
G65 P9833

(Probe WCS3)
G54
G0 X0. Y0.
G65 P9832
G0 Z2.21
M97 P90001
G65 P9833
G53 G0 Z0.

(Probe WCS2)
G55
G0 X0. Y0.
G43 Z2.21 H25
G65 P9832
M97 P90000
G65 P9833

(Probe WCS3)
G0 X0. Y0.
G65 P9832
G0 Z2.21
M97 P90001
G65 P9833
G53 G0 Z0.

(Probe WCS2)
G56
G0 X0. Y0.
G43 Z2.21 H25
G65 P9832
M97 P90000
G65 P9833

(Probe WCS3)
G0 X0. Y0.
G65 P9832
G0 Z2.21
M97 P90001
G65 P9833
M5
G53 G0 Z0.

N90000(Probe WCS2)
G17
G65 P9810 Z0.21 F39.37
G65 P9811 Z0.01 Q0.5 S1.
G65 P9810 Z0.21
G0 Z2.21
M99

N90001(Probe WCS3)
G17
G65 P9810 Z0.21 F39.37
G65 P9812 Z-0.2262 X5.75 R0.5 Q0.5 S1.
G65 P9812 Z-0.2262 Y2.5 R0.5 Q0.5 S1.
G65 P9810 Z0.21
G0 Z2.21
M99

Now, the work offset is determined before beginning the subroutine, but inside it is always G65 S1. This means that it will only ever overwrite G54, no matter what the driving WCS is. Our post (attached) is a lightly modified version of the Haas Pre-NGC post from the Autodesk post library. Is there a quick fix I can do to my post to resolve this? In this

case, the program is small enough to fit in the machine's memory without subroutines. But that won't always be true, and I don't want to be stuck manually editing the program every time I make a small change.

6 REPLIES 6
Message 2 of 7
seth.madore
in reply to: RandyY98W5

Hey, sorry for the delay in reply. 

I've done some quick testing with the current Haas Pre-NGC post and can't get this to replicate. Couple of things;

Could you share a sample Fusion file that shows your workflow and selections?

Are you using "Patterns" or "Use Multiple WCS"? If Patterns, which type?


Seth Madore
Customer Advocacy Manager - Manufacturing
Message 3 of 7
RandyY98W5
in reply to: seth.madore

We are using "Use multiple WCS." "Patterns" refers to the setting in the post process screen under "Use Subroutines." Here is a sample program which replicates the behavior. Note that the only difference between the two posts is one has Use Subroutines set to "Patterns" and the other is set to "No." I've also attached the NC files generated by these posts.

Message 4 of 7
seth.madore
in reply to: RandyY98W5

Hmm. Using the post you shared, this is what I'm getting when I use subroutines:

(Probe WCS1)
N25 T25 M6
N30 G54
N35 G1 X0. Y0. F500.
N40 G0 G43 Z2.21 H25
N45 G65 P9832
N50 M97 P90000
N55 G65 P9833

(Probe WCS2)
N60 G54
N65 G1 X0. Y0. F500.
N70 G65 P9832
N75 M97 P90001
N80 G65 P9833
N85 G53 G0 Z0.

(Probe WCS1)
N90 G55
N95 G1 X0. Y0. F500.
N100 G0 G43 Z2.21 H25
N105 G65 P9832
N110 M97 P90002
N115 G65 P9833

(Probe WCS2)
N120 G55
N125 G1 X0. Y0. F500.
N130 G65 P9832
N135 M97 P90003
N140 G65 P9833
N145 G53 G0 Z0.

(Probe WCS1)
N150 G56
N155 G1 X0. Y0. F500.
N160 G0 G43 Z2.21 H25
N165 G65 P9832
N170 M97 P90004
N175 G65 P9833

(Probe WCS2)
N180 G56
N185 G1 X0. Y0. F500.
N190 G65 P9832
N195 M97 P90005
N200 G65 P9833

N205 M5
N210 G53 G0 Z0.
N215 X0.
N220 G53 G0 Y0.
N225 M30

N90000(Probe WCS1)
G17
G65 P9810 Z0.21 F39.37
G65 P9811 Z0.01 Q0.4 S1.
G65 P9810 Z0.21
G0 Z2.21
M99

N90001(Probe WCS2)
G0 Z2.21
G17
G65 P9810 Z0.21 F39.37
G65 P9812 Z-0.2262 X6. R0.4724 Q0.4 S1.
G65 P9812 Z-0.2262 Y2.25 R0.4724 Q0.4 S1.
G65 P9810 Z0.21
G0 Z2.21
M99

N90002(Probe WCS1)
G17
G65 P9810 Z0.21 F39.37
G65 P9811 Z0.01 Q0.4 S2.
G65 P9810 Z0.21
G0 Z2.21
M99

N90003(Probe WCS2)
G0 Z2.21
G17
G65 P9810 Z0.21 F39.37
G65 P9812 Z-0.2262 X6. R0.4724 Q0.4 S2.
G65 P9812 Z-0.2262 Y2.25 R0.4724 Q0.4 S2.
G65 P9810 Z0.21
G0 Z2.21
M99

N90004(Probe WCS1)
G17
G65 P9810 Z0.21 F39.37
G65 P9811 Z0.01 Q0.4 S3.
G65 P9810 Z0.21
G0 Z2.21
M99

N90005(Probe WCS2)
G0 Z2.21
G17
G65 P9810 Z0.21 F39.37
G65 P9812 Z-0.2262 X6. R0.4724 Q0.4 S3.
G65 P9812 Z-0.2262 Y2.25 R0.4724 Q0.4 S3.
G65 P9810 Z0.21
G0 Z2.21

 

Am I missing something? 🤔


Seth Madore
Customer Advocacy Manager - Manufacturing
Message 5 of 7
RandyY98W5
in reply to: seth.madore

This is using my post or the up-to-date version of Haas pre-NGC? Because this is still my result with subroutines on. You can see it calls the same subroutine for all three work offsets.

(Probe WCS1)
N30 T25 M6
N35 G54
N40 G0 X0. Y0.
N45 G43 Z2.21 H25
N50 T10
N55 G65 P9832
N60 M97 P90000
N65 G65 P9833

(Probe WCS2)
N70 G54
N75 G0 X0. Y0.
N80 G65 P9832
N85 G0 Z2.21
N90 M97 P90001
N95 G65 P9833
N100 G53 G0 Z0.

(Probe WCS1)
N105 G55
N110 G0 X0. Y0.
N115 G43 Z2.21 H25
N120 G65 P9832
N125 M97 P90000
N130 G65 P9833

(Probe WCS2)
N135 G0 X0. Y0.
N140 G65 P9832
N145 G0 Z2.21
N150 M97 P90001
N155 G65 P9833
N160 G53 G0 Z0.

(Probe WCS1)
N165 G56
N170 G0 X0. Y0.
N175 G43 Z2.21 H25
N180 G65 P9832
N185 M97 P90000
N190 G65 P9833

(Probe WCS2)
N195 G0 X0. Y0.
N200 G65 P9832
N205 G0 Z2.21
N210 M97 P90001
N215 G65 P9833
N220 M5
N225 G53 G0 Z0.

(REST OF THE PROGRAM HAPPENS HERE)

N90000(Probe WCS1)
G17
G65 P9810 Z0.21 F39.37
G65 P9811 Z0.01 Q0.4 S1.
G65 P9810 Z0.21
G0 Z2.21
M99

N90001(Probe WCS2)
G17
G65 P9810 Z0.21 F39.37
G65 P9812 Z-0.2262 X6. R0.4724 Q0.4 S1.
G65 P9812 Z-0.2262 Y2.25 R0.4724 Q0.4 S1.
G65 P9810 Z0.21
G0 Z2.21
M99

 

Message 6 of 7
RandyY98W5
in reply to: RandyY98W5

I also tried setting subroutines to "All" and this worked insofar as it created a separate subroutine for each probe operation. However it also creates a duplicate subroutine for all of the other operations for every WCS, which defeats the purpose of using them to save machine memory.

Message 7 of 7
BrandonTBFBF
in reply to: RandyY98W5

I just had to deal with this for our Okuma Post. Try the attached and let me know if it works.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report