It appears the PREG is not getting updated quick enough. Probably a read-ahead issue. I put a .1 sec dwell before writing to the register. Is there a command to stop the read ahead?
In my code below it appears line 112 is getting skipped. Putting a .1sec wait on Line 109 fixes the problem.
105: ;
106: PR[85:Temp Offset]=P[1:CUTP2C1] ;
107: !Helix ;
108: CALL SUB_P42JK(1) ;
109: ;
110: ;
111: !TRUNNION P2 - CUT 2 ;
112: PR[85:Temp Offset]=P[2:CUTP2C2] ;
113: !Helix ;
114: CALL SUB_P42JK(2) ;
115: ;
116: ;
117: !TRUNNION P2 - CUT 3 ;
118: PR[85:Temp Offset]=P[3:CUTP2C3] ;
119: !Pslot ;
120: CALL SUB_P42JK(3) ;
121: ;
122: ;
123: !TRUNNION P2 - CUT 4 ;
124: PR[85:Temp Offset]=P[4:CUTP2C4] ;
125: !Helix ;
126: CALL SUB_P42JK(4) ;