Problem trying to use g code with rotation on z axis

Hi.
I’ve been testing the Remote TCP and the Toolpath UR Cap with an e-series UR10. I’ve had good results working with 3 axis movement. I’m trying to implement rotation around the Z axis when it moves around a curve. I’ve manually written the rotation on a point using the A, B and C parameters of G code for 5 axis operations and it does the rotation of the corresponding plain. But trying to get them using Fusion 360 and the universal robots postprocessor has been a hassle. I assume that I’m implementing the wrong machining operation or a wrong work coordinate system in Fusion 360.
If anyone has more detailed information about the setup in Fusion 360 I would appreciate it.
The reason I need to rotate when it moves around a curve is that I’m trying to implement it to sew a vest that the robot is holding.