Al, on most controls, when you issue a G41, it stays in effect until a G40 is issued. Z moves can be made while in cutter comp, but not in conjunction with X and Y moves. I'm wondering if the repeated G41's are making it do wierd things. I see some Z moves are followed by another G41, but some are not, so I assume this isnt some control where a Z move cancels comp.....correct? Unless there's some reason for them being there, I'd edit out all the extra G41's and see what happens. It may not fix the problem, but at least the code will look more normal