1. Trang chủ
  2. » Luận Văn - Báo Cáo

Luận văn thạc sĩ Kỹ thuật điều khiển và tự động hóa: Điều khiển hệ phi tuyến có trễ sử dụng bộ dự báo Smith và bộ điều khiển pi mờ

80 0 0
Tài liệu đã được kiểm tra trùng lặp

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Tiêu đề Điều khiển hệ phi tuyến có trễ sử dụng bộ dự báo Smith và bộ điều khiển pi mờ
Tác giả Nghiêm Văn A, Nguyễn Đức B
Người hướng dẫn PTS. Nguyễn Văn A
Trường học Trường Đại học Bách Khoa Thành Phố Hồ Chí Minh
Chuyên ngành Kỹ thuật điều khiển và tự động hóa
Thể loại Luận văn thạc sĩ
Năm xuất bản 2021
Thành phố Thành phố Hồ Chí Minh
Định dạng
Số trang 80
Dung lượng 1,42 MB

Cấu trúc

  • 1. Tính cҩp thiӃt cӫDÿӅ tài (13)
  • 2. Mөc tiêu cӫDÿӅ tài (13)
    • 1.2.1. Xây dӵng bӝ ѭӟFOѭӧng Mӡ (20)
    • 1.2.2. KӃt quҧ mô phӓng (23)
    • 1.3. Giҧi pháp thӵc hiӋn (26)
    • 1.4. KӃt luұQFKѭѫQJ (27)
    • 2.1. Bӝ dӵ báo Smith (28)
      • 2.2.1. Giҧi thuұWѭӟFOѭӧng tham sӕ ÿӕLWѭӧng (30)
      • 2.2.2. Giҧi thuұWѭӟFOѭӧng thӡi gian trӉ cӫa hӋ thӕng (35)
    • 2.3. Bӝ ÿLӅu khiӇn PI ± Mӡ (37)
      • 2.3.1. Cҩu trúc bӝ ÿLӅu khiӇn Mӡ (37)
      • 2.3.2. ThiӃt kӃ bӝ ÿLӅu khiӇn Mӡ dӵa vào kinh nghiӋm (40)
      • 2.3.3. ThiӃt kӃ bӝ ÿLӅu khiӇn PI-Mӡ (40)
    • 2.4. KӃt quҧ mô phӓng (45)
      • 2.4.1. Nhұn dҥng tham sӕ ÿӕLWѭӧng dùng thuұWWRiQÿӋ qui (45)
    • 2.4 ĈLӅu khiӇn hӋ thӕng có trӉ sӱ dөng bӝ ÿLӅu khiӇn Smith predictor Mӡ (0)
    • 2.5. KӃt luұQFKѭѫQJ (50)
      • 3.2.1. PLC S7-1200 (53)
      • 3.2.2. BiӃn tҫn Shihlin SS2-021-0.75K (54)
      • 3.2.3. Radar measurement Time-of-Flight Micropilot FMR51 (57)
    • 3.3. KӃt nӕi PLC S7-1200 vӟi Matlab thông qua KEPServerEx (59)
      • 3.3.1. KӃt nӕi S7-1200 vӟi KEPServerEx (59)
      • 3.3.2. KӃt nӕi Matlab vӟi KEPServerEx (62)
    • 3.4. KӃt luұQFKѭѫQg 3 (65)
    • 4.1. Tín hiӋXÿһt cӕ ÿӏnh (66)
      • 4.1.1. Bӝ ÿLӅu khiӇn PI Mӡ (66)
      • 4.1.2. Bӝ ÿLӅu khiӇn Smith Predictor Mӡ (67)
      • 4.1.3. So sánh và kӃt luұn (69)
    • 4.2. Tín hiӋXÿһWWKD\ÿәi (69)
      • 4.2.1. Bӝ ÿLӅu khiӇn PI Mӡ (69)
      • 4.2.2. Bӝ ÿLӅu khiӇn Smith Predictor Mӡ (70)
      • 4.3.1. Bӝ ÿLӅu khiӇn PI Mӡ (72)
      • 4.3.2. Bӝ ÿiӅu khiӇn Smith Predictor Mӡ (0)
    • 4.4. KӃt luұQFKѭѫQJ (74)
  • 1. KӃt luұn (76)
    • 1.1. KӃt quҧ ÿҥWÿѭӧc (76)
    • 1.2. KӃt quҧ FKѭDÿҥWÿѭӧc (76)

Nội dung

3 ѬӟFOѭӧng thӡi gian trӉ cӫa hӋ thӕng vӟi bӝ ÿLӅu khiӇn Mӡ .... 34 2.4ĈLӅu khiӇn hӋ thӕng có trӉ sӱ dөng bӝ ÿLӅu khiӇn Smith predictor Mӡ .... DANH MӨC HÌNH ҦNH SӰ DӨNG TRONG LUҰ19Ă1 Hìn

Tính cҩp thiӃt cӫDÿӅ t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P{KuQK'T1J}YjRKӋPӡOje và ǻH OjVDLVӕFӫDA(k) YjELӃQWKLrQVDLVӕFӫDA(k) WҥLPӛLOҫQOҩ\PүX

/XұWPӡÿѭӧFWKӇKLӋQWURQJEҧQJ 7URQJÿyFiFJLiWUӏQJ{QQJӳ1%

NM, N, Z, P, S, M, B, PM và PB là negative big, negative medium, negative, zero, positive , small, medium, big, positive, positive medium và positive big

Hình 1.8: C̭u trúc h th͙ng logic mͥ ĈӏQKQJKƭDFiFJLiWUӏQJ{QQJӳFӫDELӃQe, ǻe, ǻT QKѭKuQK

Hình 1.9: Giá tr͓ ngôn ngͷ bi͇n vào/ra

&iFTXLWҳFPӡVӱGөQJKӋPӡ0DPGDQL QKѭEҧQJ

PKѭѫQJSKiSVX\OXұQPӡ0$;-0,1SKѭѫQJSKiSJLҧLPӡWUӑQJ tâm

KӃt quҧ mô phӓng

7KӵFKLӋQP{SKӓQJYӟLÿӕLWѭӧQJFyKjPWUX\ӅQVDX

%ӝÿLӅXNKLӇQ3'FKRÿӕLWѭӧQJWUrQOj

'QJEӝÿLӅXNKLӇQ0ӡѭӟFOѭӧQJWKӡLJLDQWUӉNӃWKӧSYӟLEӝGӵEiR6PLWK WDFyÿѭӧFQKӳQJNӃWTXҧVDX

Hình 1.106˯ÿ͛ kh͙i mô ph͗ng trong Matlab

7UѭӡQJKӧSѬӟFOѭӧQJFKtQK[iFÿӕLWѭӧQJÿѭӧFiSGөQJWURQJEӝGӵ báo Smith 3 21.2 2

Hình 1.11ĈiSͱng ngõ ra vͣLÿ͙LW˱ͫQJÿ˱ͫF˱ͣFO˱ͫng chính xác

Hình 1.12ĈiSͱng y và y m , A(k), thͥi gian tr͍ cͯDP{KuQKș m ắ ӃWOXұQNJ}UDFӫDKӋWKӕQJFyWUӉEiPWKHRWtQKLӋXÿһW.KLy và y m OӋFK nhau thì A(k) WăQJQKDQKNKLy và y m trùng nhau thì A(k) EmRKzD%ӝÿLӅX NKLӇQ0ӡÿmѭӟFO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]

1KѭYұ\PXӕQÿLӅXNKLӇQKӋWKӕQJFyWUӉYӟLEӝGӵEiR6PLWKWKuFҫQFyQKӳQJSKѭѫQJSKiSѭӟFOѭӧQJWKDPVӕYjWKӡLJLDQWUӉFӫDKӋWKӕQJ

2.2 ѬӟFOѭӧng tham sӕ hӋ thӕng

2.2.1 Giҧi thuұWѭӟFOѭӧng tham sӕ ÿӕi Wѭӧng

2.2.1.1 Mô hình h ͛ i qui tuy ͇ n tính

&KRÿӕLWѭӧQJFyWtQKLӋX vào là u(k),WtQKLӋXUDOjy(k) QKѭKuQK

Hình 2.4: Tín hi u vào, ra cͯDÿ͙LW˱ͫng

*LҧVӱTXDQKӋJLӳDWtQKLӋXYjRYjWtQKLӋXUD FӫDKӋWKӕQJFyWUӉÿѭӧF P{Wҧ EҵQJSKѭѫQJWUuQKVai phân:

7URQJÿya i i ( 0, ),n b j i ( 0, )m OjFiFKҵQJVӕÿѭӧF[iFÿӏQKWӯWK{QJVӕFӫD FiFSKҫQWӱ; k OjFKӍVӕUӡLUҥFN ô ; d OjWKӡLJLDQWUӉFӫDKӋWKӕQJÿӕLYӟLKӋ UӡLUҥFWKud OjVӕQJX\rQ ; e(k) OjQKLӉXWUҳQJ

7tQKLӋXUDFӫDKӋWKӕQJ

4XDQKӋYjRUDFӫDÿӕLWѭӧQJFyWKӇYLӃWOҥLGѭӟLGҥQJ

1ӃXEӓTXDQKLӉu e(k), WDFyEӝGӵEiRKӗLTXLWX\ӃQWtQK ệ( , ) T ( )ệ (2.7) y k T M k T

2.2.1.2 C ̭ u trúc mô hình h phi tuy ͇ n

7KHR>@FyWKӇVӱGөQJPӝWWURQJQKӳQJSKѭѫQJSKiSVDXÿk\ÿӇQKұQGҥQJ P{KuQKKӋSKLWX\ӃQ

- Mô hình Hammerstein: khâu phi tX\ӃQWƭQKJKpSQӕLWLӃSNKkXWX\ӃQWtQK QKѭ hình 2.5

9ӟLѭӟFOѭӧQJQJ}UDFӫDKӋWKӕQJOj ệ(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ÿLӅXNKLӇQ0ӡFѫEҧQOjVDLVӕE YjYLSKkQVDLVӕDE

7tQKLӋXUDEӝÿLӅXNKLӇQ0ӡFѫEҧQDU

&iFWұSPӡWѭѫQJӭQJYӟLFiFJLiWUӏQJ{QQJӳFӫDFiFELӃQYjRUD

Hình 2.17: Các t̵p mͥ W˱˯QJͱng vͣi các giá tr͓ ngôn ngͷ cͯa các bi͇n vào/ra

NB NE ZE PO PB

NB NB NB NM NS ZE

NE NB NM NS ZE PS

ZE NM NS ZE PS PM

PO NS ZE PS PM PB

PB ZE PS PM PB PB

3KѭѫQJSKiSJLҧLPӡWUXQJEuQKWUӑQJVӕ

6DXNKLÿmÿѭDUDFѫVӣOêWKX\ӃWÿӇѭӟFOѭӧQJWKDPVӕÿӕLWѭӧQJѭӟFOѭӧQJWKӡLJLDQWUӉFӫDKӋWKӕQJYj[k\GӵQJEӝÿLӅXNKLӇQ3,-0ӡNӃWTXҧP{SKӓQJNLӇPFKӭQJWtQKNKҧWKLFӫDFѫVӣOêWKX\ӃWWUrQVӁÿѭӧFWUuQKEj\ӣSKҫQNӃWLӃS.

KӃt quҧ mô phӓng

2.4.1 Nhұn dҥng tham sӕ ÿӕLWѭӧng dùng thuұWWRiQÿӋ qui ѬӟFOѭӧQJWKDPVӕFӫDEӗQFKӭDÿѫQ (NKLEӓTXDWKӡLJLDQWUӉFӫDKӋWKӕQJ)

VHFWRUWKDPVӕYjYHFWRUKӗLTXLÿѭӧFFKӑQQKѭVDX ệ ệ ệ ệ

M êơ ºẳ 6ѫÿӗNKӕLP{SKӓQJWUrQ Matlab:

+uQK6˯ÿ͛ kh͙i nh̵n d̩QJÿ͙i W˱ͫng

Hình 2.19: 1J}UD˱ͣFO˱ͫng cͯDÿ͙LW˱ͫng

Hình 2.20: K͇t qu̫ nh̵n d̩ng dùng thu̵WWRiQÿ qui ắ 1J}UDѭӟFOѭӧQJWѭѫQJÿӕLFKtQK[iFYӟLQJ}UDÿӕLWѭӧQJ7KXұWWR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VӣOêWKX\ӃWWULӇQNKDLWKXұWWRiQÿӕLYӟLP{KuQKWKӵF, NӃWTXҧWKӵFQJKLӋPVӁÿѭӧFWUuQKEj\ӣQKӳQJFKѭѫQJWLӃSWKHR

&KѭѫQJMÔ HÌNH THӴC NGHIӊM

6ѫOѭӧc vӅ mô hình thӵc nghiӋm

0{KuQKKӋWKӕQJWKӵFQJKLӋPÿѭӧF[k\GӵQJYӟLErQQJRjLOjPӝWQJ}YjRYj PӝWQJ}UDErQWURQJOjKӋWKӕQJÿLӅXNKLӇQPӵFFKҩWOӓQJ

+uQK6˯ÿ͛ mô hình th͹c nghi m

+ӋWKӕQJÿLӅXNKLӇQPӵFFKҩWOӓQJ ÿѭӧFYұQKjQKWUrQEӝÿLӅXNKLӇQFKtQKOj PLC S7-NӃWKӧSFҧPELӃQUDGDUÿRPӵFFKҩWOӓQJWURQJEӗQ 7KXұWWRiQ[ӱOê ÿѭӧFYLӃWWUrQ3/&0DWODENӃWQӕLYӟL3/&WK{QJTXD.EPServerEx quan sát các JLiWUӏWK{QJVӕQKұQGҥQJP{KuQKWtQKLӋXGӵEiRWtQKLӋXÿLӅXNKLӇQYjÿiSӭQJ ngõ ra

0ӝWVӕKuQKҧQKYӅP{KuQKWKӵFQJKLӋPÿѭӧFWKӇKLӋQWURQJcác hình 3.2 ÿӃQ3.4

Hình 3.2: Mô hình th͹c nghi m

Hình 3.4: M̿t bên mô hình th͹c nghi m

3.2 ThiӃt bӏ sӱ dөng trong mô hình thӵc nghiӋm

3/&3URJUDPPDEOH/RJLF&RQWUROOjWKLӃWEӏÿLӅXNKLӇQFyWKӇOұSWUuQKÿѭӧF WKLӃWNӃFKX\rQGQJWURQJF{QJQJKLӋSÿӇÿLӅXNKLӇQFiFTXiWUuQK[ӱOêWӯÿѫQJLҧQ ÿӃQSKӭFWҥS

+LӋQQD\FyPһWYӟLUҩWQKLӅXKmQJVҧQ[XҩWQKѭ6LHPHQV2PURQ0LWVXELVKL 5RFNZHOO6KQ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ÿӝWKӭ FyWKӇWKD\ÿәLEҵQJWKDPVӕ&KkQQj\FyWiFGөQJNKLFKӑQFKӃ ÿӝKRҥWÿӝQJErQQJRjL

0һFÿӏQKFyFKӭFQăQJÿLӅXNKLӇQÿӝQJFѫFKҥ\ӣFҩSÿӝWKӭ FyWKӇWKD\ÿәLEҵQJWKDPVӕ&KkQQj\FyWiFGөQJNKLFKӑQFKӃ ÿӝKRҥWÿӝQJErQQJRjL

9 10 &ҩSQJXӗQ9FKRELӃQWUӣÿLӅXNKLӇQWӕFÿӝÿӝQJFѫ

10 2 1ӕLYӟLFKkQFKҥ\FӫDELӃQWUӣKRһFWtQKLӋXÿLӅXNKLӇQDQDORJ a9ÿѭDYӅ

11 4 1ӕLYӟLFKkQFӫDWtQKLӋXÿLӅXNKLӇQ-P$KRһF-5, 0-

12 5 Chân chung cho các chân 2, 4, 10, AM

13 AM ĈҫXUDWtQKLӋXDQDORJa9QӕLYӟLEӝÿӗQJKӗKLӇQWKӏ&KӭF

QăQJFKkQQj\FyWKӇWKD\ÿәLEҵQJWKDPVӕ

14 SO ;XҩWWtQKLӋXÿҫXUD[XQJNKLWҫQVӕKRҥWÿӝQJFӫDELӃQWҫQ ÿҥWWӟLWҫQVӕÿһW&yWKӇWKD\ÿәLEҵQJWKDPVӕ

16 A 7LӃSÿLӇP 5HOD\WKѭӡQJPӣÿDFKӭFQăQJ0һFÿӏQKOjNKLFyOӛL

VӁÿyQJWLӃSÿLӇPQj\OҥL&yWKӇWKD\ÿәLEҵQJWKDPVӕ

17 B 7LӃSÿLӇP5HOD\WKѭӡQJÿyQJÿDFKӭFQăQJ0һFÿӏQKOjNKLFy

OӛLVӁPӣWLӃSÿLӇPQj\UD&yWKӇWKD\ÿәLEҵQJWKDPVӕ

18 C Chân chung cho hai chân A và B

19 RJ-45 &әQJNӃWQӕLWUX\ӅQWK{QJ56

3.2.3 Radar measurement Time-of-Flight Micropilot FMR51

Hình 3.9: Radar measurement Time-of-Flight Micropilot FMR51.

&ҧPELӃQUDGDUFMR51 ÿѭӧFVӱGөQJÿӇÿROLrQWөFNK{QJWLӃS[~FYӟLFKҩW OӓQJEӝWQKmRYjEQ9LӋFÿROѭӡQJNK{QJEӏҧQKKѭӣQJEӣLYLӋFWKD\ÿәLSKѭѫQJ WLӋQWKD\ÿәLQKLӋWÿӝNKtKRһFKѫL&yWKӇWUX\FұSYjRFҧPELӃQWӯ[DWK{QJTXD ӭQJGөQJ6PDUW%OXHFyVҹQ ĈһFÿLӇPFѫEҧQFӫDWKLӃWEӏ

0{LWUѭӡQJ-40 to 150 deg C / -40 to 302 deg F, 40 bar

7LrXFKXҭQF{QJQJKLӋS,31(0$;3 éQJKƭDFiFFKkQNӃWQӕL

Hình 3.100i\E˯P3DQDVRQLF*3-129JXK ĈһFÿLӇPQәLEұW

+ 7KLӃWNӃQKӓJӑQEӅQEӍ

+ LѭXOѭӧQJFҩSQѭӟFWӕLÿDÿӃQOtWSK~W

+ 7UDQJEӏFKXҭQFKӕQJQѭӟF,3;EҧRYӋWӕLѭXFKRÿӝQJFѫErQWURQJ + &KӕQJFKұSÿLӋQăQPzQYjQJҳQPҥFKYӟLOӟSFiFKÿLӋQ

+ &ҩSQѭӟFOrQÿӝFDRWӕLÿDPpW

+ $QWRjQWӕLÿDYӟLWtQKQăQJWӵQJҳWEѫPNKLQKLӋWÿӝEѫPFDR

3.3 KӃt nӕi PLC S7-1200 vӟi Matlab thông qua KEPServerEx

9LӋFNӃWQӕL ÿѭӧFFKLDOjPKDLEѭӟF.ӃWQӕL6-1200 YӟLKEPServerEx và NӃWQӕLMatlab YӟLKEPServerEx

7KӵFKLӋQOҫQOѭӧW FiFEѭӟFVDXÿk\

- &KӑQ Edit / Connectivity / New Channel và FKӑQFKXҭQNӃWQӕLYӟL6-1200 là Siemens TCP/IP Etherner QKѭKuQK

- &iFEѭӟFNӃWLӃS click Next U͛L Finish

- 7LӃSWKHRFKӑQ Click to add a device vjÿһWWrQWKLӃWEӏQKѭKuQK

- ;iFÿӏQKWKLӃWEӏNӃWQӕLQKѭKuQK

- ;iFÿӏQKÿӏD FKӍ,3FӫD6-1200 QKѭKuQK15

- &iFEѭӟFNӃWLӃSFOLFN Next, U͛L Finish

- 6DXNKLNӃWQӕLYӟL6-12FKӑQ Click to add a static tag ÿӇFKӑQÿӏDFKӍ FӫDELӃQWҫQFҧPELӃQKD\FѫFҩXFKҩSKjQKEҩWNǤ trong P{KuQKWKӵFQJKLӋP Hình 3.16 là ví dөYӅFKӑQÿӏDFKӍÿӇÿӑFJLiWUӏFҧPELӃQPӵFQѭӟF

- 6DXNKLWKӵFKLӋQFiFEѭӟFNӃWQӕLS7-YӟL.(36HUYHU([.ӃWTXҧNӃW QӕLÿѭӧFWKӇKLӋQӣKuQK.17

- 7DFyWKӇNLӇPWUDWUҥQJWKiLNӃWQӕLJLӳD6-YӟL.(36HUYHU([ EҵQJ cách click Quick Client QKѭKuQK

Hình 3.19: Ki͋m tra tr̩ng thái k͇t n͙i giͷa S7-1200 vͣi KEPServerEx

6DXNKLÿmNӃWQӕLS7-YӟL.(36HUYHU([EѭӟFWLӃSWKHROjNӃWQӕLMatlab YӟLKEPServerEx EҵQJFiFKVӱGөQJ23&7RROER[WURQJ0DWODE6LPXOLQN

Hình 3.20: OPC Toolbox trong Matlab Simulink

7DVӱGөQJEORFNWURQJ23&7RROER[QKѭVDX

+ 23&&RQILJXUDWLRQFҩXKuQKFKRNӃWQӕLJLӳD0DWODEYj.(36HUverEx + 23&5HDGĈӑFJLiWUӏFiFELӃQÿѭӧFWUX\ӅQTXD.(36HUYHU([

+ 23&:ULWH*KLJLiWUӏYjRFiFELӃQÿѭӧFWUX\ӅQTXD.(36HUYHU([

7UѭӟFWLrQWDFҩXKuQKFKREORFN23&&RQILJXUDWLRQFKӑQ&RQILJXUH23&

&OLHQWVVDXÿyFKӑQKepware.KEPServerEx.V6 QKѭhình 3.20

Hình 3.21: C̭u hình cho block OPC Configuration

7LӃSWKHRWDFҩXKuQKFKREORFN23&5HDGÿӇÿӑFJLiWUӏFiFELӃQFӫD3/& ÿѭӧFWUX\ӅQTXD.(36HUYHU([

7URQJ 23&5HDGWҥL NKXQJ&OLHQWWDFKӑQ HSZDUH.(36HUYHU([9; WҥL NKXQJ,WHP,'VWDFKӑn Add items ÿӇWKrPYjRFiFELӃQFҫQOҩ\GӳOLӋXWҥLNKXQJ 6DPSOHWLPHWDFKӑQӭQJYӟLJLk\ QKѭWUrQKuQK

Hình 3.22: C̭u hình cho block OPC Read

7LӃSWKHRWDFҩXKuQKFKREORFN23&:ULWHÿӇJKLJLiWUӏYjR FiFELӃQ FӫD PLC ÿѭӧFWUX\ӅQTXa KEPServerEx

7URQJ23&:ULWHWҥLNKXQJ&OLHQWWDFKӑQ.HSZDUH.(36HUYHU([9WҥL NKXQJ,WHP,'VWDFKӑQ$GGLWHPVÿӇWKrPYjRFiFELӃQFҫQJKLGӳOLӋXWҥLNKXQJ 6DPSOHWLPHWDFKӑQӭQJYӟLJLk\QKѭWUrQKuQK2

Hình 3.23: C̭u hình cho block OPC Write

6DXNKLÿmKRjQWKjQKFiFEѭӟFNӃWQӕLPLC S7-1200 YӟL0DWODEWK{QJTXDKEPServerExWDÿmFyWKӇWLӃQKjQKOұSWUuQKWUrQPLC ÿӇÿLӅXNKLӇQP{KuQKWKӵFQJKLӋP

6DX NKL ÿm WuP KLӇX Yj [k\ GӵQJ P{ KuQK WKӵF QJKLӋP, NӃW OXұQ U~W UD Wӯ FKѭѫQJQKѭVDX

1ĈmNӃWQӕL3/&67-YӟL.(36HUYHU([WK{QJTXDFKXҭQ(WKHUQHW 2ĈmNӃWQӕLMatlab YӟLKEPServerEx

37uPKLӇXÿӕLWѭӧQJÿLӅXNKLӇQJӗPFy bӗQFKӭDFҧPELӃQUDGDUELӃQWҫQ EѫPQѭӟF

4.ӃWTXҧWKӵFQJKLӋPYLӋFWULӇQNKDLWKXұWWRiQÿLӅXNKLӇQWUrQmô hình VӁ ÿѭӧFWUuQKEj\YjSKkQW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KӡLJLDQWUӉWӯWUDQVPLWWHUSKҧQKӗLYӅQӃXNK{QJ [ӱOêÿѭӧF WKӡLJLDQWUӉQj\WKuFKҩWOѭӧQJÿLӅXNKLӇQFKѭDÿiSӭQJÿѭӧF\rXFҫX ĈmiSGөQJJLҧLWKXұWQKұQGҥQJWKDPVӕÿӕLWѭӧQJJLҧLWKXұWѭӟFOѭӧQJWKӡLJLDQWUӉFӫDKӋWKӕQJNӃWKӧSYӟLEӝÿLӅXNKLӇQ3,-0ӡÿӇÿѭDUDEӝÿLӅXNKLӇQWUrQÿӕLWѭӧQJWKұW ĈmѭӟFOѭӧQJWKDPVӕÿӕLWѭӧQJWKӡLJLDQWUӉKӋWKӕQJJL~SFKRÿiSӭQJKӋWKӕQJEiPWKHRWtQKLӋXÿһWFKҩWOѭӧQJÿLӅXNKLӇQÿѭӧFFҧLWKLӋQ

KӃt luұQFKѭѫQJ

&KѭѫQJÿmQrXUDFѫVӣOêWKX\ӃWYjQKӳQJNӃWTXҧP{SKӓQJNLӇPWUDWtQK NKҧWKLFӫDFѫVӣ OêWKX\ӃW ÿyNӃWOXұQU~WUDWӯFKѭѫQJQKѭVDX Ĉm[k\GӵQJÿѭӧFWKXұWWRiQѭӟFOѭӧQJWKDPVӕÿӕLWѭӧQJѭӟFOѭӧQJWKӡL JLDQWUӉFӫDKӋWKӕQJYjEӝÿLӅXNKLӇQ3,-0ӡ.ӃWTXҧP{SKӓQJFKRWKҩ\FyWKӇiS GөQJEӝÿLӅXNKLӇQ6PLWKSUHGLFWRU0ӡYjRKӋWKӕQJWKӵFFyWKӡLJLDQWUӉ

2 6DXNKLÿmKRjQWKLӋQFѫVӣOêWKX\ӃWWULӇQNKDLWKXұWWRiQÿӕLYӟLP{KuQKWKӵF, NӃWTXҧWKӵFQJKLӋPVӁÿѭӧFWUuQKEj\ӣQKӳQJFKѭѫQJWLӃSWKHR

&KѭѫQJMÔ HÌNH THӴC NGHIӊM

6ѫOѭӧc vӅ mô hình thӵc nghi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JWKDPVӕ&KkQQj\FyWiFGөQJNKLFKӑQFKӃ ÿӝKRҥWÿӝQJErQQJRjL

9 10 &ҩSQJXӗQ9FKRELӃQWUӣÿLӅXNKLӇQWӕFÿӝÿӝQJFѫ

10 2 1ӕLYӟLFKkQFKҥ\FӫDELӃQWUӣKRһFWtQKLӋXÿLӅXNKLӇQDQDORJ a9ÿѭDYӅ

11 4 1ӕLYӟLFKkQFӫDWtQKLӋXÿLӅXNKLӇQ-P$KRһF-5, 0-

12 5 Chân chung cho các chân 2, 4, 10, AM

13 AM ĈҫXUDWtQKLӋXDQDORJa9QӕLYӟLEӝÿӗQJKӗKLӇQWKӏ&KӭF

QăQJFKkQQj\FyWKӇWKD\ÿәLEҵQJWKDPVӕ

14 SO ;XҩWWtQKLӋXÿҫXUD[XQJNKLWҫQVӕKRҥWÿӝQJFӫDELӃQWҫQ ÿҥWWӟLWҫQVӕÿһW&yWKӇWKD\ÿәLEҵQJWKDPVӕ

16 A 7LӃSÿLӇP 5HOD\WKѭӡQJPӣÿDFKӭFQăQJ0һFÿӏQKOjNKLFyOӛL

VӁÿyQJWLӃSÿLӇPQj\OҥL&yWKӇWKD\ÿәLEҵQJWKDPVӕ

17 B 7LӃSÿLӇP5HOD\WKѭӡQJÿyQJÿDFKӭFQăQJ0һFÿӏQKOjNKLFy

OӛLVӁPӣWLӃSÿLӇPQj\UD&yWKӇWKD\ÿәLEҵQJWKDPVӕ

18 C Chân chung cho hai chân A và B

19 RJ-45 &әQJNӃWQӕLWUX\ӅQWK{QJ56

3.2.3 Radar measurement Time-of-Flight Micropilot FMR51

Hình 3.9: Radar measurement Time-of-Flight Micropilot FMR51.

&ҧPELӃQUDGDUFMR51 ÿѭӧFVӱGөQJÿӇÿROLrQWөFNK{QJWLӃS[~FYӟLFKҩW OӓQJEӝWQKmRYjEQ9LӋFÿROѭӡQJNK{QJEӏҧQKKѭӣQJEӣLYLӋFWKD\ÿәLSKѭѫQJ WLӋQWKD\ÿәLQKLӋWÿӝNKtKRһFKѫL&yWKӇWUX\FұSYjRFҧPELӃQWӯ[DWK{QJTXD ӭQJGөQJ6PDUW%OXHFyVҹQ ĈһFÿLӇPFѫEҧQFӫDWKLӃWEӏ

0{LWUѭӡQJ-40 to 150 deg C / -40 to 302 deg F, 40 bar

7LrXFKXҭQF{QJQJKLӋS,31(0$;3 éQJKƭDFiFFKkQNӃWQӕL

Hình 3.100i\E˯P3DQDVRQLF*3-129JXK ĈһFÿLӇPQәLEұW

+ 7KLӃWNӃQKӓJӑQEӅQEӍ

+ LѭXOѭӧQJFҩSQѭӟFWӕLÿDÿӃQOtWSK~W

+ 7UDQJEӏFKXҭQFKӕQJQѭӟF,3;EҧRYӋWӕLѭXFKRÿӝQJFѫErQWURQJ + &KӕQJFKұSÿLӋQăQPzQYjQJҳQPҥFKYӟLOӟSFiFKÿLӋQ

+ &ҩSQѭӟFOrQÿӝFDRWӕLÿDPpW

+ $QWRjQWӕLÿDYӟLWtQKQăQJWӵQJҳWEѫPNKLQKLӋWÿӝEѫPFDR

KӃt nӕi PLC S7-1200 vӟi Matlab thông qua KEPServerEx

9LӋFNӃWQӕL ÿѭӧFFKLDOjPKDLEѭӟF.ӃWQӕL6-1200 YӟLKEPServerEx và NӃWQӕLMatlab YӟLKEPServerEx

7KӵFKLӋQOҫQOѭӧW FiFEѭӟFVDXÿk\

- &KӑQ Edit / Connectivity / New Channel và FKӑQFKXҭQNӃWQӕLYӟL6-1200 là Siemens TCP/IP Etherner QKѭKuQK

- &iFEѭӟFNӃWLӃS click Next U͛L Finish

- 7LӃSWKHRFKӑQ Click to add a device vjÿһWWrQWKLӃWEӏQKѭKuQK

- ;iFÿӏQKWKLӃWEӏNӃWQӕLQKѭKuQK

- ;iFÿӏQKÿӏD FKӍ,3FӫD6-1200 QKѭKuQK15

- &iFEѭӟFNӃWLӃSFOLFN Next, U͛L Finish

- 6DXNKLNӃWQӕLYӟL6-12FKӑQ Click to add a static tag ÿӇFKӑQÿӏDFKӍ FӫDELӃQWҫQFҧPELӃQKD\FѫFҩXFKҩSKjQKEҩWNǤ trong P{KuQKWKӵFQJKLӋP Hình 3.16 là ví dөYӅFKӑQÿӏDFKӍÿӇÿӑFJLiWUӏFҧPELӃQPӵFQѭӟF

- 6DXNKLWKӵFKLӋQFiFEѭӟFNӃWQӕLS7-YӟL.(36HUYHU([.ӃWTXҧNӃW QӕLÿѭӧFWKӇKLӋQӣKuQK.17

- 7DFyWKӇNLӇPWUDWUҥQJWKiLNӃWQӕLJLӳD6-YӟL.(36HUYHU([ EҵQJ cách click Quick Client QKѭKuQK

Hình 3.19: Ki͋m tra tr̩ng thái k͇t n͙i giͷa S7-1200 vͣi KEPServerEx

6DXNKLÿmNӃWQӕLS7-YӟL.(36HUYHU([EѭӟFWLӃSWKHROjNӃWQӕLMatlab YӟLKEPServerEx EҵQJFiFKVӱGөQJ23&7RROER[WURQJ0DWODE6LPXOLQN

Hình 3.20: OPC Toolbox trong Matlab Simulink

7DVӱGөQJEORFNWURQJ23&7RROER[QKѭVDX

+ 23&&RQILJXUDWLRQFҩXKuQKFKRNӃWQӕLJLӳD0DWODEYj.(36HUverEx + 23&5HDGĈӑFJLiWUӏFiFELӃQÿѭӧFWUX\ӅQTXD.(36HUYHU([

+ 23&:ULWH*KLJLiWUӏYjRFiFELӃQÿѭӧFWUX\ӅQTXD.(36HUYHU([

7UѭӟFWLrQWDFҩXKuQKFKREORFN23&&RQILJXUDWLRQFKӑQ&RQILJXUH23&

&OLHQWVVDXÿyFKӑQKepware.KEPServerEx.V6 QKѭhình 3.20

Hình 3.21: C̭u hình cho block OPC Configuration

7LӃSWKHRWDFҩXKuQKFKREORFN23&5HDGÿӇÿӑFJLiWUӏFiFELӃQFӫD3/& ÿѭӧFWUX\ӅQTXD.(36HUYHU([

7URQJ 23&5HDGWҥL NKXQJ&OLHQWWDFKӑQ HSZDUH.(36HUYHU([9; WҥL NKXQJ,WHP,'VWDFKӑn Add items ÿӇWKrPYjRFiFELӃQFҫQOҩ\GӳO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XNKLӇQFKѭDÿiSӭQJÿѭӧF\rXFҫX ĈmiSGөQJJLҧLWKXұWQKұQGҥQJWKDPVӕÿӕLWѭӧQJJLҧLWKXұWѭӟFOѭӧQJWKӡLJLDQWUӉFӫDKӋWKӕQJNӃWKӧSYӟLEӝÿLӅXNKLӇQ3,-0ӡÿӇÿѭDUDEӝÿLӅXNKLӇQWUrQÿӕLWѭӧQJWKұW ĈmѭӟFOѭӧQJWKDPVӕÿӕLWѭӧQJWKӡLJLDQWUӉKӋWKӕQJJL~SFKRÿiSӭQJKӋWKӕQJEiPWKHRWtQKLӋXÿһWFKҩWOѭӧQJÿLӅXNKLӇQÿѭӧFFҧLWKLӋQ

KӂT LUҰ19ơ+ѬӞNG PHÁT TRIӆ1Ĉӄ TÀI

KӃt luұn

KӃt quҧ ÿҥWÿѭӧc

- ѬӟF OѭӧQJWKDPVӕ ÿӕLWѭӧQJEҵQJ JLҧLWKXұWÿӋ TX\ NK{QJWtQKPD WUұQ QJKӏFKÿҧR

- ;k\GӵQJJLҧLWKXұWѭӟFOѭӧQJWKӡLJLDQWUӉFӫDKӋWKӕQJ

- ;k\GӵQJEӝÿLӅXNKLӇQ3,-0ӡNӃWKӧSYӟLEӝGӵEiR6PLWKÿѭDUDEӝÿLӅX NKLӇQ6PLWKSUHGLFWRU0ӡÿӇÿLӅXNKLӇQKӋWKӕQJFyWUӉ

- 7LӃQKjQKm{SKӓQJ WKXұWWRiQWUrQ0DWODEÿӇNLӇPWUDWtQKNKҧWKLFӫDJLҧL WKXұWÿLӅXNKLӇQ

- 7ULӇQNKDLWKXұWWRiQÿLӅXNKLӇQWUrQP{KuQKWKӵFFyNӃWTXҧÿLӅXNKLӇQYjNӃWOXұQWѭѫQJӭQJYӟLWӯQJNӃWTXҧÿLӅXNKLӇQ

KӃt quҧ FKѭDÿҥWÿѭӧc

- ĈһFWtQK ÿӝQJKӑF FӫDYLӋFÿLӅXNKLӇQPӵc FKҩWOӓQJ WURQJEӗQFKӭDÿѫQ WKҩSQrQFKѭDQәLEұWOrQQKӳQJѭXÿLӇPFӫDEӝÿLӅXNKLӇQ6PLWKSUHGLFWRU0ӡ

- &KѭDFySKѭѫQJSKiSFKӍQKQKӳQJKӋVӕKӑFWURQJEӝÿLӅXNKLӇQ1KӳQJKӋ VӕKӑFWURQJEӝÿLӅXNKLӇQÿӅXFKӍQKWK{QJTXD quá WUuQK³WKӱ và VDL´

+ѭӟng phát triӇQÿӅ tài

- 6ӱGөQJJLҧLWKXұWGLWUX\ӅQ*$WӕLѭXKyDQKӳQJKӋVӕKӑFFӫDKӋWKӕQJ

- 6ӱGөQJFiFOHYHOWUDQVPLWWHUNKiFIHHGEDFNÿӇÿLӅXNKLӇQKӋWKӕQJ

- 7KD\ÿәLQKӳQJWKXұWWRiQÿLӅXNKLӇQNKiFNӃWKӧSYӟLEӝGӵEiR6PLWKQKѭ

%ӝÿLӅXNKLӇQ6PLWKSUHGLFWRU6OLGLQJPRGH6PLWKSUHGLFWRU3,DXWR-tuning

[1] S W Sung, J Lee, and I B Lee, Process Identification and PID Control

[2] Z Yang and G T Seested, ³Time-delay system identification using genetic algorithm - Part one: Precise FOPDT model estimation,´ IFAC Proc Vol., vol 3, no PART 1, pp 561±567, 2013

[3] Z Yang and G T Seested, ³Time-delay system identification using genetic algorithm - Part two: FOPDT/SOPDT model approximation,´ IFAC Proc

Vol., vol 3, no PART 1, pp 568±573, 2013

[4] C Khajorntraidet, K Ito, and T Shen, ³Adaptive time delay compensation for air-fuel ratio control of a port injection SI engine,´ in 2015 54th Annual

Conference of the Society of Instrument and Control Engineers of Japan, SICE 2015, 2015, pp 1341±1346

[5] A Abu-Rmileh and W Garcia-Gabin, ³Wiener sliding-mode control for artificial pancreas: A new nonlinear approach to glucose regulation,´ Comput

Methods Programs Biomed., vol 107, no 2, pp 327±340, 2012

[6] H Zhang, J Hu, and W Bu, ³Research on fuzzy immune self-adaptive PID algorithm based on new smith predictor for networked control system,´ Math

[7] Y J Huang, T C Kuo, and H Y Tseng, ³Fuzzy estimator design for the control systems with unknown time-delay,´ World Congr Eng 2007, Vols 1

[8] H T Hoàng, ³+ 7K͙QJĈL͉X.KL͋Q7K{QJ0LQK´7S+ӗ&Kt0LQKNXB ĈҥLKӑF4XӕFJLD7S+ӗ&Kt0LQK

[9] L Ljung, ³System identification: Theory for the User´, Prentice Hall, 1987, pp 303-305

[10] D V Thanh and N T Tai, ³6WXG\RI$GDSWLYH)X]]\6PLWK&RQWUROIRU Time-GHOD\6\VWHPV´in Journal of Science & Technology Development

(VNU-HCM Publishing House), 2015, pp 143-149

*LҧLWKXұWÿӋTXLѭӟFOѭӧQJWKDPVӕÿӕLWѭӧQJ persistent P theta yy uu dem yhat; lamda=0.99; if isempty(P)

P = 125*eye(2,2); theta=zeros(2,1); yy=zeros(3,1); uu=zeros(2,1); dem=0; yhat=0; end %if if y=2; py=[-yy(2)]; pu=uu(2); phi=[py pu]';

L=(P*phi)/(lamda+phi'*P*phi); theta=theta+L*(y-phi'*theta);

P=(P-(P*phi*phi'*P)/(lamda+phi'*P*phi))/lamda; yhat=phi'*theta; end %if thamso=theta; yh=yhat;

*LҧLWKXұWѭӟFOѭӧQJ WKӡLJLDQWUӉ KӋWKӕQJ alpha=1.005; persistent d d1 yhh TS MS; if isempty(d) d=2;TS=0;MS=0;d1=2; yhh=zeros(2,1); end if (yh~=0)&&(abs(y-yh)>=0.7) yhh(1)=yh;

TS=TS+(y-yh)*(yhh(1)-yhh(2));

MS=MS+(yhh(1)-yhh(2))^2; delta_d=((1-alpha)*TS/MS); d1delta_d; d=round(d1); yhh(2)=yhh(1); else end delay=d; out

Ngày đăng: 03/08/2024, 14:10

TÀI LIỆU CÙNG NGƯỜI DÙNG

TÀI LIỆU LIÊN QUAN

w