vignesh90 Posted July 26, 2017 Posted July 26, 2017 Hello, I'm trying to use PMACPlotPro2 to log the response of motors to a motion program. Attached the program, data points and the position and velocity plots. I tried a simple jog motion of X axis as well. Attached the plots. The plots I get out of PMACPlotPro2 doesn't make any sense! The connection to the PMAC works well and I have checked this multiple times. It would be great if I can get any help on how to fix this. Thank you!UY.pdfUYmotion.pdfPlotTest.zip
DaveBarnett Posted July 26, 2017 Posted July 26, 2017 It would be helpful if you sent your motion program as a text file, NOT PDF.
vignesh90 Posted July 26, 2017 Author Posted July 26, 2017 Attached the text file. It would be helpful if you sent your motion program as a text file, NOT PDF. UY.txt
DaveBarnett Posted July 26, 2017 Posted July 26, 2017 I took your motion program and ran it on a PowerPmac. It’s not clear to me what exactly you are trying to achieve, but I noticed a few things. I had to clean up the file on a line or two…(see attached motion program) The sinusoidal portion of the data is distorted (not a clean sinusoid). You can see this from a plot of commanded velocity (see plot attached). This is usually caused by incorrectly calculating the velocity portion of the PVT segments, which should ideally match their slopes (accel) on segment boundaries. Is that what you are referring to as “jittery motion“ ? Not sure what your plots are showing…I didn’t see any sinusoidal portions in them. ??
vignesh90 Posted July 26, 2017 Author Posted July 26, 2017 Hi Dave, Thanks for the help with this. Noted the changes to motion program, I'll implement those. I'm not sure why the commanded velocity is distorted. If you see the plots vU and vY in the attached PDF, the velocity looks clean. That's one cycle of the run. I guess this is what causes the "jittery" motion. I took your motion program and ran it on a PowerPmac. It’s not clear to me what exactly you are trying to achieve, but I noticed a few things. I had to clean up the file on a line or two…(see attached motion program) The sinusoidal portion of the data is distorted (not a clean sinusoid). You can see this from a plot of commanded velocity (see plot attached). This is usually caused by incorrectly calculating the velocity portion of the PVT segments, which should ideally match their slopes (accel) on segment boundaries. Is that what you are referring to as “jittery motion“ ? Not sure what your plots are showing…I didn’t see any sinusoidal portions in them. ?? UYmotion.pdf
vignesh90 Posted July 26, 2017 Author Posted July 26, 2017 Hi Dave, I had made an error in the time step calculation. I have corrected it in the attached code. Could you please check the commanded velocity plots for this program? On the other hand, I'm still not sure how to fix PMACPlotPro2. Hi Dave, Thanks for the help with this. Noted the changes to motion program, I'll implement those. I'm not sure why the commanded velocity is distorted. If you see the plots vU and vY in the attached PDF, the velocity looks clean. That's one cycle of the run. I guess this is what causes the "jittery" motion. I took your motion program and ran it on a PowerPmac. It’s not clear to me what exactly you are trying to achieve, but I noticed a few things. I had to clean up the file on a line or two…(see attached motion program) The sinusoidal portion of the data is distorted (not a clean sinusoid). You can see this from a plot of commanded velocity (see plot attached). This is usually caused by incorrectly calculating the velocity portion of the PVT segments, which should ideally match their slopes (accel) on segment boundaries. Is that what you are referring to as “jittery motion“ ? Not sure what your plots are showing…I didn’t see any sinusoidal portions in them. ?? UYmotion_correct.txt
DaveBarnett Posted July 27, 2017 Posted July 27, 2017 Your most recent plot is an Excel plot of the velocity points in your program...correct ? This is not the same as the velocity of the 3rd order curve that Pmac calculates from your data. (and that I plotted)
vignesh90 Posted August 1, 2017 Author Posted August 1, 2017 Hi Dave, Yes those were excel plots. Is there any documentation on how PMAC calculates the velocity so I can understand this better? Thanks! Your most recent plot is an Excel plot of the velocity points in your program...correct ? This is not the same as the velocity of the 3rd order curve that Pmac calculates from your data. (and that I plotted)
DaveBarnett Posted August 3, 2017 Posted August 3, 2017 You can have a look at page 56 of this manual for a detailed description: http://www.deltatau.com/manuals/pdfs/PMAC%20QUICK%20REFERENCE.pdf?id=635787783265509314
Recommended Posts