Change X to Z axis

Change X to Z axis

emzy4k
Participant Participant
581 Views
4 Replies
Message 1 of 5

Change X to Z axis

emzy4k
Participant
Participant

Hi guys, I am trying to modify Fanuc turning post processor for my mill, I'm using 4th axis as Lathe, and need to change axis ´´X´´ to ´´Z´´ and ´´Z´´ to ´´X´´ also ´´I´´ to ´´K´´ and ´´K´´ to ´´I´´´
When I'm changing output in variations... 

 

var xOutput = createVariable({prefix:"Z"}, xFormat);
var zOutput = createVariable({prefix:"X"}, zFormat);

This does trick just for zOutput but xOutput stays X as this ( G0 X21.5 X5. )
Same for I and K, just K change and I stay... 

Where I'm missing ??
Thanks



0 Likes
Accepted solutions (1)
582 Views
4 Replies
Replies (4)
Message 2 of 5

boopathi.sivakumar
Autodesk
Autodesk
Accepted solution

@emzy4k 

Attach here the modified post and if possible could you please just attach the model file also

and the its better if you attached the modified nc also

File>Export>.F3d

and don't forgot to zip the file before attaching

 


Boopathi Sivakumar
Senior Technology Consultant

0 Likes
Message 3 of 5

emzy4k
Participant
Participant

Hi and thank you for your interest to help me with it.



0 Likes
Message 4 of 5

emzy4k
Participant
Participant
Thank you four your interest to help me 🙂
I couldn't attach files to the page so I'm trying by email
0 Likes
Message 5 of 5

emzy4k
Participant
Participant

I found a solution, 
there are other lines which needs to be changed... 

// turning using front tool post
if (toolingData.toolPost == FRONT) {
xFormat = createFormat({decimals:(unit == MM ? 3 : 4), forceDecimal:true, scale:-1});
xOutput = createVariable({prefix:"Z"}, xFormat);
iFormat = createFormat({decimals:(unit == MM ? 3 : 4), forceDecimal:true, scale:-1}); // radius mode
iOutput = createReferenceVariable({prefix:"K"}, iFormat);

// turning using rear tool post
} else {
xFormat = createFormat({decimals:(unit == MM ? 3 : 4), forceDecimal:true, scale:1});
xOutput = createVariable({prefix:"Z"}, xFormat);
iFormat = createFormat({decimals:(unit == MM ? 3 : 4), forceDecimal:true, scale:1}); // radius mode
iOutput = createReferenceVariable({prefix:"K"}, iFormat);
}

but I've got turning on mill 😄