hendraprimasyahputra Posted March 27, 2012 Share Posted March 27, 2012 [/code]Hi, I got a question about PMAC motion program. This is mw program for moving X-axis back and forth with 1 second delay between them. OPEN PROG 1 CLEAR INC LINEAR F 10000 X 5000 DWELL 1000 X -5000 CLOSE the position of the motor measured by linear encoder stored in the M262 variable. now, suppose i want to have the same motion but the motor must stop by a measurement from another sensor in different motor. In this case a motor #4. how can i do that ? right now my idea to have this kind of program OPEN PROG 1 CLEAR INC LINEAR F 10000 while(P20 < 5000) ; P20 equal to m462/(I408*32) X 1 EndWhile DWELL 1000 while(P20 > 0) X -1 EndWhile CLOSE but i using this program, i found that the speed wasn't correct because the motion was build by the increment of X1. any idea ? Thanks Link to comment Share on other sites More sharing options...
Sina.Sattari Posted March 27, 2012 Share Posted March 27, 2012 hendraprimasyahputra, Are you trying to have secondary feedback? If yes, please see the Ixx03 and Ixx04 description in Turbo SRM and Turbo Users Manual. If you're trying to do a cascaded loop, please see this document: http://www.deltatau.com/common/support/technotes/Cascading%20Servo%20Loops.pdf Link to comment Share on other sites More sharing options...
Recommended Posts