I updated my code to use synchronous variables shown in the attachment. I put one at the beginning of the path, I trigger using this one, and one at the end of the path. I am not seeing the same problem as I was, but I am seeing a problem with the trigger happening too late sometimes (about 5% of the time). I put a timer on for the path time, using the two synchronous variables I added, and I found that the times we are turning off too late the path time is shorter by about 15ms.
It appears that sometimes the path is running faster. I thought maybe we were exiting the motion program early, but the entire path is being completed.
PmacSyntax.txt