meindert.norg Posted January 31, 2011 Share Posted January 31, 2011 LS, Is there an easy way to calculate and plot the frequency response (bode plot) of a controller, using the controller I-variables? For example, I can see that the I-variables file can be read into Matlab, and using the clock parameters and PID parameters, the controller frequency response can be calculated and plotted. Did anyone already do this, or something similar? regards, Meindert Link to comment Share on other sites More sharing options...
Sina.Sattari Posted February 1, 2011 Share Posted February 1, 2011 Meindert, The controller has data sampling capability (Gather Function) which allows sampling of any register in PMAC as fast as every servo cycle. However, to convert the data from time-domain to frequency-domin, you have to use external computation tools. Such tools are available from Delta Tau: PMAC Executive PRO2 Suite (PMAC Tuning PRO2) will give you Fast Fourier transform on responses to different move patterns. PMAC Servo Analyzer also provides you with Bode plots of the system by injecting sine wave / white noise into system. I have attached the manual for this software for you to see if it is useful for you. [attachment=1429:name] Regards, Link to comment Share on other sites More sharing options...
meindert.norg Posted February 1, 2011 Author Share Posted February 1, 2011 Hi Sina, Thanks for your response. My apologies if I was not completely clear in my original question. I'm not looking to [b]measure [/b]the controller frequency response, but want to [b]calculate [/b]the frequency response, using the PID I-variables. Do you have tools (for example in Matlab) that do that? regards, Meindert Link to comment Share on other sites More sharing options...
Omron Forums Support Posted February 4, 2011 Share Posted February 4, 2011 [quote='meindert.norg' pid='1245' dateline='1296510035'] LS, Is there an easy way to calculate and plot the frequency response (bode plot) of a controller, using the controller I-variables? For example, I can see that the I-variables file can be read into Matlab, and using the clock parameters and PID parameters, the controller frequency response can be calculated and plotted. Did anyone already do this, or something similar? regards, Meindert [/quote] Hi Meindert, The only thing that should be considered are the scale factors involved in the servo gain values due to the fixed point implementation of the controller. As an example a simple pid w/o feedforward terms the commanded output is: Dac(k)=2^-19*Ix30*((Ix08*(FE(k)+Ix33*IE(k)/2^23))-Ix31*Ix09*AV(k)/128) FE=Following error AV= Actual velocity IE=integrated(summed) following error. These scale factors are given in the usermanual. Link to comment Share on other sites More sharing options...
Recommended Posts