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: 

Using a Macro Variable to Decide Part Quantity (HAAS Pre-NGC Post)

0 REPLIES 0
Reply
Message 1 of 1
jacobXNNNF
149 Views, 0 Replies

Using a Macro Variable to Decide Part Quantity (HAAS Pre-NGC Post)

I'm currently trying to build out a post processor in which the part quantity logic is posted with it. Almost all of our jigs allow for 1-4 parts to be made on them and all our CAM files only have the first position setup with operations. If an operator needs to make more parts they input a number in the macro variable #101 and then we manually add in logic to do each strategy and then do a G52 Y offset for however many parts need to be made. Then the program goes to the next strategy and repeats this. Would having this logic post out directly from Fusion 360 be possible without a ton of experience in editing posts? I have made a few custom posts already but those were mostly just fine tuning some settings and adding in some very small custom start codes. Also, below is the logic I currently use for doing this manually. Also, if anyone has a better method of doing this I'm all ears. Just trying to see if I can automate more of my workflow.

(****** POSITION MACRO ******)
(#101 = 0 FOR ALL 4 NECKS)
(#101 = 1 FOR ONLY 1 NECK)
(#101 = 2 FOR 2 NECKS)
(#101 = 3 FOR 3 NECKS)


(*** Fly Cut Positioning ***)
M8
M97 P100
IF [ #101 EQ 1.0 ] GOTO2
G52 Y4.85
M97 P100
IF [ #101 EQ 2.0 ] GOTO2
G52 Y9.7
M97 P100
IF [ #101 EQ 3.0 ] GOTO2
G52 Y14.55
M97 P100
G52 Y0 Z0
IF [ #101 EQ 0.0 ] GOTO2

(*** Inlay Carve Positioning ***)
N2
G52 Y0
M97 P200
IF [ #101 EQ 1.0 ] GOTO3
G52 Y4.85
M97 P200
IF [ #101 EQ 2.0 ] GOTO3
G52 Y9.7
M97 P200
IF [ #101 EQ 3.0 ] GOTO3
G52 Y14.55
M97 P200
G52 Y0 Z0
IF [ #101 EQ 0.0 ] GOTO3

(*** Fretboard Carve Positioning ***)
N3
G52 Y0 
M97 P300
IF [ #101 EQ 1.0 ] GOTO1
G52 Y4.85
M97 P300
IF [ #101 EQ 2.0 ] GOTO1
G52 Y9.7
M97 P300
IF [ #101 EQ 3.0 ] GOTO1
G52 Y14.55
M97 P300
G52 Y0 Z0
IF [ #101 EQ 0.0 ] GOTO1


N1

M5
G53 G0 Z0.
X-0.0175
G53 G0 Y0.
G52 Y0
M30

Labels (1)
0 REPLIES 0

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

Post to forums  

Autodesk Design & Make Report