Hi Robert, I think I'm getting there. I've used pulsin successfully now to detect movement after wasting a lot of time by not putting CMCON=7 at the head of the file :-(

Thanks again!