bode plot에서 위상그래프가 -180을 두번 교차할 경우의 gain margin 구하기
Show older comments
bode plot을 그렸는데 위상그래프가 -180을 두번 교차합니다.
gain margin을 어떻게 구해야할까요?
아래는 phase lead compensaor를 적용하지 않았을 경우의 코드입니다.
pidopts = pidtuneOptions('PhaseMargin',45); % Target phase margin 45 deg
[Cc,info] = pidtune(GH, 'PID', 62.83, pidopts) % Target crossover frequency 10 Hz = 62.83 rad/s
Ts = 0.001; % 샘플링 주기
Tf = 0.0033; % 미분필터 시상수
wc = 10; % 교차주파수(워핑주파수) [Hz]
c2dopts = c2dOptions('Method','tustin','PrewarpFrequency',2*pi*wc);
Cd = c2d( pid(Cc.Kp, Cc.Ki, Cc.Kd, Tf), Ts, c2dopts);
disp(Cd)
figure;
hold on;
bodeopts = bodeoptions;
bodeopts.FreqUnits = 'Hz';
bodeopts.PhaseVisible = 'on';
bodeopts.PhaseWrapping= 'off';
bode(Cd*GHd, opts); grid off;
margin(Cd*GHd,bodeopts);

아래는 phase lead compensaor를 적용한 경우의 코드입니다.
alpha = 0.8;
wc = 10*2*pi; % rad/s
Tlead = 1/wc;
Clead_ct = tf([Tlead 1],[alpha*Tlead 1]);
Clead_dt = c2d(Clead_ct, Ts, 'tustin');
Cd_PLC = Clead_dt * Cd;
figure;
hold on;
margin(Cd_PLC*GHd,bodeopts);

왜 서로 다른 교차점에서 gain margin이 구해졌을까요?
Accepted Answer
More Answers (0)
Categories
Find more on Control System Toolbox 시작하기 in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!