Coordinate System Rotation

I am running some gcode. Before running it I use an mdi command:
G10 L2 P0 R .25

Once I run the gcode, this rotation gets cancelled out and no rotation persists. Is there a way to keep this rotation until I command otherwise?

Richard

Did you write the gcode or was it created by CAM software?

f the latter, it’s likely that the cam software outputs a line of code at the start of the program that is cancelling the rotation. This is typically done as a safety precaution to prevent any previously active modal commands from causing an issue.

Assuming this is the issue, the easiest thing to do would be to edit the program and insert the rotation just before the first line of motion commands.

Thanks Ian,

The code was in fact created with Fusion. I actually added the code as you suggested, however for this particular setup there are some benefits if I there was a way to hold the rotation until it was released. This is how my previous machine worked.

Thanks for your thoughts…. Richard

Technically, your rotation is being canceled out by the safety block that fusion puts on the beginning of your posted program.

You will either have to edit the post to not cancel the rotation, add the rotation before motion, or some other option I haven’t thought of yet.

Thanks Davie. I appreciate your thoughts.