What is the difference between G41 and G42?+−
Only the side. G41 shifts the path to the left of the contour, looking in the direction of travel, and G42 shifts it to the right. The trick to avoid second-guessing is to imagine walking behind the tool: the code is the side the tool is on, and the part is on the other side.
Can I put G40 and G41 in the same block?+−
It makes no sense: they belong to the same modal group, so the last one in the block wins and the other is ignored. Each one goes in its own linear move block, one to enter the contour and one to leave it.
Do I need compensation if I program with CAM?+−
It is not required, because CAM can write the cutter center path directly. But if you do that you lose the ability to adjust size at the machine: any correction forces you back to CAM to post the program again. That is why nearly every shop still outputs the contour compensated for finishing.
How do you compensate on a lathe?+−
With the same G41 and G42, but what gets compensated is the insert nose radius, and the orientation number in the offset also has to be set correctly. Without compensation, tapers and radii come out wrong even though straight diameters and faces are on size.
Why do I get an alarm when I turn compensation on?+−
Almost always one of three things: turning it on in an arc instead of a straight line, doing it with sideways travel smaller than the offset radius, or asking for an inside radius smaller than the tool. Check the entry block before you touch anything in the table.