Thank you for the feedback so far.
I am work at the moment so I can not impliment the suggestions until later today,I will give feedback on any results in due course.
Dave - at the moment it only should read the target position at the start of program and only update the target position if the PIC is reset, I intend to write in a routine later in the programs evolution that will allow the target position to be updated while the program is running.
Once again thank you for the help.
Bookmarks