EX-04
EX-04
EX-04
04
For small-motion linearization, we approximate the robot's dynamics using either first-order or
second-order models. This can be represented by simple transfer functions.
First-Order System:
Where:
K: System gain.
τ: Time constant.
Second-Order System:
Where:
o ωn: Natural frequency.
o ζ: Damping ratio.
o K: System gain.
Let's define the transfer functions for both the first-order and second-order systems in MATLAB.
K1 = 1; % Gain
K2 = 1; % Gain
G1
G2
The frequency response of the system can be analyzed using Bode plots. Bode plots show the
magnitude and phase of the system’s response across a range of frequencies.
% Frequency response (Bode plot) for the first-order and second-order systems
figure;
bode(G1);
hold on;
bode(G2);
grid on;
Step 4: Nyquist Plot
We can also plot the Nyquist diagram to analyze the frequency response.
figure;
nyquist(G1);
hold on;
nyquist(G2);
grid on;
Step 5: Interpretation
1. First-Order System:
o The Bode plot for the first-order system will show a single pole at τ −1, with a -20
dB/decade slope in the magnitude plot after the cutoff frequency.
o The phase plot will transition from 0 degrees to -90 degrees as frequency
increases.
2. Second-Order System:
o The Bode plot for the second-order system will show a peak in magnitude near
the natural frequency ωn if the system is underdamped (ζ<1).
o The phase plot will transition from 0 degrees to -180 degrees.
o The Nyquist plot will show how the system behaves in terms of stability and
gain/phase margins.
Conclusion
This approach allows us to analyze the frequency response of a small-motion, linearized model
of an industrial robot using both first-order and second-order system approximations. The
MATLAB code helps visualize the system's behavior across different frequencies, which is
crucial for control system design and stability analysis.