dcwei Posted February 8, 2014 Share Posted February 8, 2014 I want to use "PE " command to watch which line of Motion Program is running.But i have a problem, if the program have "dwell" or at the end of the program ("ret"),the "PE" command will go wrong. For example open prog 1 clear Linear ;line 0 ABS ;line 1 TA 500;line 2 TS 250;line 3 x 1000 ;line 4 x -500 ;line 5 x 200 ;line 6 x -1000;line 7 dwell 200 ;line 8 x 1000;line 9 x 0 ;line 10 close if i run the program,and add "PE" in Watch window,then the line number will changed from 5 to 8 suddenly.But motion of the moto is normal. if the Program include P Variable ,“IF……” or “while……” , the line number will become more strange. i found that assignment to a P Variable would takes 2 line. i want to know the reason. Thanks! Link to comment Share on other sites More sharing options...
Mr P Mac Posted February 10, 2014 Share Posted February 10, 2014 Hi, What is the "thread delay period" on the watch window? (Right-click in watch window, select lowest number) ((You could also prove this by adding Dwells after lines 4,5,6)) Mr P Mac. Link to comment Share on other sites More sharing options...
dcwei Posted February 11, 2014 Author Share Posted February 11, 2014 Hi, What is the "thread delay period" on the watch window? (Right-click in watch window, select lowest number) ((You could also prove this by adding Dwells after lines 4,5,6)) Mr P Mac. Thanks My watch window thread delay period is 100. PEWIN32PRO2 said that is the minimum value. I don't think the problem is the value of thread delay period. I think the motion program after compiling,the containt has changed. Link to comment Share on other sites More sharing options...
Mr P Mac Posted February 11, 2014 Share Posted February 11, 2014 Hi, What is the "thread delay period" on the watch window? (Right-click in watch window, select lowest number) ((You could also prove this by adding Dwells after lines 4,5,6)) Mr P Mac. Thanks My watch window thread delay period is 100. PEWIN32PRO2 said that is the minimum value. I don't think the problem is the value of thread delay period. I think the motion program after compiling,the containt has changed. Hi, try adding dwell0 after each lines 4,5,6, it will act as a delimiter and compile differently. Mr p mac Link to comment Share on other sites More sharing options...
dcwei Posted February 11, 2014 Author Share Posted February 11, 2014 Hi, What is the "thread delay period" on the watch window? (Right-click in watch window, select lowest number) ((You could also prove this by adding Dwells after lines 4,5,6)) Mr P Mac. Thanks My watch window thread delay period is 100. PEWIN32PRO2 said that is the minimum value. I don't think the problem is the value of thread delay period. I think the motion program after compiling,the containt has changed. Hi, try adding dwell0 after each lines 4,5,6, it will act as a delimiter and compile differently. Mr p mac Thanks i have got the answer.The PE or List PE command only applies for this application that only contains “X 50 ……Y 30……” Link to comment Share on other sites More sharing options...
Recommended Posts