Hi, first off all thank you for the reply 🙂
You are 100% correct, the way that i explained was totally confusing.
The actual setup i have is trunnion that rotates around my X and a 360 deg mounted on top of the trunnion that rotates around my Z.
However, the way it comes programmed denominates that my trunning axis e designated B and the other rotary is my A (it is my first 5 axis and its the HY-6040 cheap router from china to start in the 5 axis wolrd).
My post processor is just like yours, but adapted to my machine.
I tried yours and the it also gave me the same problem i was trying to fix (i inserted some prints to a better explanation on a previous response if you don't mind checking it 🙂 ).
Before editing this post processor i consider doing using the generic FANUC post processor that comes with fusion, since mach3 can read fanuc, and to be honest, the mach3 post processors i found are not well prepared for 5 axis.
The only problem i got with the FANUC with the 5 axis is that instead of giving me A and B coordinates i was only getting I and J so i decided to go with mach3 PP.
Btw this is the part i am testing. Basically the first setup is to machine the top part and the other is to machine one of the sides.