FANUC Post Processor - Add M code to Unlock/Lock B Axis for Rotation

FANUC Post Processor - Add M code to Unlock/Lock B Axis for Rotation

101Vance
Contributor Contributor
341 Views
4 Replies
Message 1 of 5

FANUC Post Processor - Add M code to Unlock/Lock B Axis for Rotation

101Vance
Contributor
Contributor

Yesterday (with forum help) we were able to get the correct format output of the latest FANUC Post Processor. I'm very thankful to be with the latest. However, the journey isn't over. With my older post processor I was able to edit it so that the B-Axis Unlock/Lock "M62" is added at the end of a B-Axis rotation see attached photos of outputs. With the Latest Fanuc PP, I can't seem to find a good place to add that

Old FANUC postOld FANUC post

(Above is the old FANUC Post Processor)

Updated FANUC postUpdated FANUC post

We need the B Axis Lines to have the M62 code (it handles the Unlock/Lock of the table).

Side Note: Yesterdays edit/fix was to change useTiltedWorkplane to "false".

Any help would be greatly appreciated.

0 Likes
342 Views
4 Replies
Replies (4)
Message 2 of 5

a.laasW8M6T
Mentor
Mentor

Hi

 

In this section of the post you can add the M codes

alaasW8M6T_0-1713292399435.png

 

Are you sure M62 is for lock and unlock?

normally there is a different Mcode to Lock vs unlock

0 Likes
Message 3 of 5

101Vance
Contributor
Contributor

Our machine has three states

M61 Unlock - Keep Unlocked

M62 Unlock and Lock after B axis move (This handles both states during a move, simplifies code).

M63 Lock

I've been using the M62 for 99% of the time.

 

I made the edits and now I'm getting an "mformat not defined".

mformat error.png

I'm very grateful for your help with this.

0 Likes
Message 4 of 5

a.laasW8M6T
Mentor
Mentor

Hi

you may have a syntax error in your post

 

see the attached post.

I have removed the Lock command as from your description this is not required

0 Likes
Message 5 of 5

101Vance
Contributor
Contributor

This is a winner. Thank you and Kind Regards.

0 Likes