How to rotate axis 6

Dear,

In my program I have to rotate axis 6 180 degrees counter clockwise and then back 180 degrees clockwise.
Is there a command to do this or is this done by rotating points orientations ?

Thanks in advance for the help greetings.

MoveAbsJ

MoveJ p10,vmax,z10,tGrip,\WObj:=wobj0;

MoveJ Reltool(p10,0,0,0\Rz:=180),vmax,fine ,tGrip,\WObj:=wobj0;

MoveJ p10,vmax,z10,tGrip,\WObj:=wobj0

This will work if your TCP is directly in line with axis six and it has the same orientation.

Thanks for the help.