I’m running into an issue with the Z offset. I can use the up arrow and down arrow to raise and lower the laser. It responds correctly to the up/down arrow and generates the codes ($J=G91G21 Z5 F600 & $J=G91G21 Z-5 F600) to move up or down 5 mm.
Using Z offset, when moving to the next element in a group on the same layer, the code issues a G0 Z1 and G0 Z-1 command, but the laser drops 1 mm at each command instead of raising 1mm then dropping 1 mm to start the next element. Eventually it would contact the work piece if left to run. Whatever the value is, 1 or -1 the laser descends on either command.
I’ve played with the machine settings for the Z axis and get the same results. MY NEJE seems to process the positive G0 Z1 command as a negative. I get the same results for 1 layer with multiple passes and dropping the laser at each pass, or creating multiple stacked layers with Z offset.
Not certain why it responds correctly to the $J=G91G21 Z1 F600, but not G0 Z1, G91G21 Z5, or just Z1.
Ed, I can’t thank you enough ! That was spot on. That is exactly what was happening and the answer and audible clue were staring me right in the face and I totally overlooked it. I’ve been confounded by this problem for quite a while. I did wonder why the pitch of the stepper motor was so different when the commands were being issued, and the answer is it was being overdriven. The machine settings were $122=5000.000, now $122=600. I tried both variations with multiple passes on one layer using Z step per pass, and multiple layers using Z offset and both now work. The laser head smoothly moves up and down and functions as it should.