Thank you all for your help.
Dan t's solution did the trick. I have the encoder input going into a STI (ML) with the shaft encoder into the ML0, ML1 is blank?. I am picking up ML0 into a A=B block with ML2 set as the target. The machine is a cut to length so when the guillotine cut to size the shaft encoder count needs to zero. I have never used these units before so it twisting me head. I have used mitsubisi, siemens and other controllers so sequencing and logic is not new to me. If I can get the hang of these controllers then there are other applications they will be used on.
Thanks again to all
Peter