I have been working on a PLC program for several months and it seems that no matter how much I fix it, it continues to jump ahead many stages in the PLC from the motion controller response. I began cutting out all of the bells and whistles and focused on just the inner most functionality and it still seems to do the impossible. I know it is a handshaking issue, but I have several machines out on the floor that run with this same program without any problem for the last fifteen years. They have older motor controllers with less functionality, but no jump ahead problems. I use the data ready(y/n), process complete (y/n)bits to control the Tick Tock, of the handshaking. Any ideas or suggestions. I am planning on re-entering all of the ladder logic, comments, etc. into a blank project and see what that will do. Is there anything like Windows Notepad for striping out the formatting bits in a document, that I can put the ladder logic files into and it would flatten the files, so that no extraneous hidden bits are set.