Thanks for the suggestions Terry - I have probably got most earlier versions so this is something else for me to try.
I started out using the Z axis direction pin but that has the delay of the small amount of 'would be' z travel, so I then moved on to the M11/M10 combination. It was in an old thread that Brian mentioned the E1P0/P1 and that has been quite good if it worked all the time (but of course it doesn't

).
Going back to the Z dir pin if I could move the 'Z minus' instructions to the start of the next G1 X or Y axis movement then the laser would be triggered at the time of movement but this would not help with switching it off at the end of the movement and modifying existing GCode would possibly start to become complicated. I am really trying to keep this simple by using the same GCode that would be used for engraving and just replacing the Z codes but perhaps this is not going to be possible.
As said before I do appreciate your time.
Tweakie.