1. Trang chủ
  2. » Giáo Dục - Đào Tạo

Báo cáo thực hành bài 1 truyền thông profinet giữa 2 plc – s7 1200

52 0 0
Tài liệu được quét OCR, nội dung có thể không chính xác
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 đề Truyền Thông Profinet Giữa 2 PLC – S7 1200
Tác giả Sinh Viên Thực Hiện
Người hướng dẫn Giáo Viên Hướng Dẫn: Trịnh Lương Miền
Trường học Trường Đại Học Kỹ Thuật
Chuyên ngành Điện Tử Công Nghiệp
Thể loại Báo cáo thực hành
Năm xuất bản 2023
Thành phố Hà Nội
Định dạng
Số trang 52
Dung lượng 2,33 MB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

Bài 1 : Truyền thông Profinet giữa 2 PLC — S7 1200 Bài toán đặt ra dùng nút nhắn start và stop bật tắt đèn led Master và slave B1: Mở Tia portal vào create new project đặt tên và chọn v

Trang 1

Báo cáo Mạng Truyện Thông Công Nghiệp

Báo Cáo Thực Hành

Giáo Viên Hướng Dẫn : Trịnh Lương Miên

Sinh Viên Thực Hiện :

Lớp : ĐK&TDDH3 —- Kó]

Trang 2

Bài 1 : Truyền thông Profinet giữa 2 PLC — S7 1200 - CS SE HH re rrkrd 3

Bài 2: CC-Link Remote l/O PLC ¡Q-R -.- - - Q00 HS ng ni nh ng, 14

Bài 3 : MITSUBISHI FX5U “MODBUS RTU FRE7007” G - S1 SE KH KHE cọ 30 Bài 4 : mạng chuyền thông Ethernet TCP/IP s2 SzExEE3S2EEEEEz 2S rx Hy ren rkp 38

Trang 3

Bài 1 : Truyền thông Profinet giữa 2 PLC — S7 1200

Bài toán đặt ra dùng nút nhắn start và stop bật tắt đèn led Master và slave

B1: Mở Tia portal vào create new project đặt tên và chọn vị trí lưu -> configure device

Trang 4

Pin to Start

Pin to taskbar

Ururvstall

Trang 5

TU - [1 ewe

Pompe tt C47 cate cpesert meccenst itty, eens vetent iter rent eten:

_x (pet igure © (tres

4

>> ° Witee ALC wenger

Cowal ere few Deneeary etde

B2 : chọn add new device > chọn cấu hình phần cứng cho plc ở đây chúng ta dung PLC Master cpu 1211C DC/DC/DC va PLC Slave cpu 1211C AC/DC/Rly

pS axe oe MO LUE Oe PORTAL

10 @ lard teeserkS? rere

coset (gre kódif4.g.xe svtSe 87 sẽ BỘ

A tye ow ets se ke tay ve

ATR ee FRCP Lee Peers

Cet pert eremrre! EPO re ew Deere eer

Crwrentrbe 5) merewrcaton fob rere

Trang 6

gh, Devices & networks

) “g8 PLC_1 Marter [CPU 1211C DC/DC/DC]

> [i PLC_2 Slave [CPU 1211C ACIDCRly]

> EX Ungrouped devices

› ES Security settings ) 2Š Cross-device functions

> [§§ Common data

> [Ej] Documentation settings

> lF ‹) Languages & resources

» fa Version control interface

Beas MOM Owe tence

:' mm rere aon

Ta

HF Uaioe

y cot tmectee

Trang 7

j{CCŸŸÝICG | (015 | Speier ernie feats or on

1 = theres actos nee - a 0g lero tam

+ Petm™!- Qe (OGRO1) me weet! ea 90 Borer castes enter >

de Poles -;- Je want 0G Mileemy, rake ‡

"`" © mm ._._ Ị 4sj = De)

»

Chon start configuration dé cau hinh cho lénh Get

Trang 8

w t.d.## 6Ø it CRABPDEES RAE & + —.,.` 29

Trang 9

"18 0¡\Ì

Trang 10

*PUT_DB“” REQ — REQ DONE —4"PUT_DB" DONE

War ae 100 — ERROR —<4"PUT_DB” ERROR

PeNGO OSE 2— ADDR 1 STATUS — "PUT_DS" STATUS

bo sIE Csmsm sơn nam

© „tre se ay © CẢI Came perntet mppeeamnone

onthe “mm im youn — Fe Orr Foe Bh yk ee reer ;

0 ig AL deen tee eee - — AANNE ÿ CN — '9° 0 este © LL) Baty « Cai

Trang 13

“GET_DE“ˆ ZEQ —= REQ ˆ noa —+"GET_DS" NOR MB20

fŒ192 100 — |Ð E8ftOe —4”G£T_DEˆ E®&O£

rewioo rye 2 —=AQOR 1 XT1A7TUS == ˆG£T_DE" *€†AT2 MB11 MB21

REQ Yêu cầu =1 thì get dữ liệu ENO Cho phép đầu ra

1D Dia chi cua CPU ma HEX NOR Hoan thanh GET thi =1

ADDR_1 | La vùng đữ liệu mà Slave dùng để gửi tới ERROR | = 1 khi có lỗi truyền thông

"#UT D8" EEO — #£Q DONE —4"PUT_D8* DO*#£

WW !S3 !0D —E£Ð tERRto —4ˆ°PUT_DB"” ERROR

Feu 0 BYTE 2 =— ADDR 1 %TATUS — “PUT_De* Status

Pend O BYTE —$B_! a

Master gửi dữ liệu và Slave nhận dữ liệu

REQ Yêu câu =1 thì PUT dữ liệu ENO Cho phép đầu ra

ID Địa chỉ của CPU mã HEX DONE | Hoàn thành PUT thì =1

ADDR_1 | Là vùng dữ liệu MB30 mà Slave dủng đế nhận dữ liệu tử Master gửi đến ERROR | = 1 khi có lỗi truyền thông

SD 1 Là vùng dữ liệu MB40 mà Master gửi vào để | STATUS | Trạng thái

truyén sang Slave MB30

Nap code và kiểm tra hệ thông đã chạy đúng như yêu cầu bài toán

Hình ảnh thực tế

Trang 14

Bai 2: CC-Link Remote I/O PLC iQ-R

Mở GX-work3 khởi tạo chương trình

Trang 15

aT) Đocuments Settings

Search the web

QX - See more search resul†s : N20,

B1 : Nhắn tổ hợp phím ( Ctrl + N ) hoặc nhan [Project]

B2 : Sẽ hiển thị giao diện New Mục Series :

chon "RCPU" Muc Type :

chon "RO4EN" Muc Program Language :

Trang 16

| mi 1 ^ “.Ắ ".ố a“ ,.Ố sa

1 Mahe + ik Owe S648 2 FORE SS So An Rat + 90FF ' a

|Sai uc o aS eae ONO Fel SS Sw Rol) a _

Sau đó kết nỗi với CPU

Trang 17

| Prope) Det 9n Comwert ie Cote Sang Rien iments Line d9 nn g9 " —

ms cron ire C24 Cư e+ ra thỶz¿ð‡s4é¿é

LẠ 17/2004 Mua Master Joc

BEEBE &S

cc Econ ce hee Ethernet Ccwa co

rET OO

ˆ—serc Tor Sister

toe OU Setớng %.#y lê an 4 CD; >

cac tet Species

! 1 13 4

+ Phát hiện cấu hình mô đun và xác nhận thiết lập tham số

Trang 18

B1: Nhan dut vao [Module Configuration] & thanh "Navigation"

B2: Chọn [Online] ở thanh công cụ, rồi chon [Read Module

Configuration from PLO]

Chờ 1 lúc sau đó ấn [Yes] đến khi hiện thị thông báo thánh công , nhân

[OK] để hoàn thành Sau đó ,sẽ hiển thị Cấu hình mô đun thực tế được

Trang 19

DVS.EH 990 V09 Kahợl, on Dng Aaged9, S6 hệe (nh

Ăna ằ 1 See RMF PRAM BN SSSA Rae + 1 OT Đ

(nals etl ee eee et "4À

/Ăszđứ⁄/Dâ“?,|1ẫÚ)ẫ} ố.ố.ố =

a4 Stet Hy Batch eget ) Oweatent Cort gauten interrames rye Werden

Defect Fta*ea Cetin reat ^

Trang 20

b, Mô đun CPU : R04ENCPU

c, Module tin hiéu vao DIGITAL (input) RX42C4(SLOT 1)

d, Module tin hiéu ra DIGITAL (output): RY42NT2P(SLOT 2)

e, Module tin hiéu vao analog (R60AD4) (SLOT 3)

f, Module tin hiéu ra analog ( R60DA4) (SLOT 4)

h, Mô dun mang RJ71EN71( CCIEF)(SLOT 0)

i, Module vao ra CC-Link I/O digital: AJ65BTB2 — 16DT

Giới thiệu AJ65BTB2 — I6DT

l/O combined module (Screw terminal block/2-piece terminal block type) [Specification]

DC input 8 points, positive common type, 24V DC 2-wire

Transistor output 8 points, sink type, 0.5A 2-wire

Trang 22

Extemal connection

*So d6 dau néi thiét bị:

- Trạm chu master(mac dinh tram 0) :RJ61BT11 (tram dau)

Trang 23

This section describes wiring to the terminal biock

Connect a Ver 1 10-compatible CC-Link dedicated cable as shown below

Trang 24

“RATE 0” Xoay B-RATE về chung số 0 cho 2 tram -Station NO:Néu

SET tram 1 thi ta xoay là 0-1; trạm 2 thì ta xoay là 0-2, Trạm 12 thì xoay

Chon basic settings Network Configuration settings

CC-LinkConfiguration +> Trong Module List , phải Add thư viện như

hình

Trang 25

lựa CC-Link Configuration (Start I/O: 00C0) L x ] : CC-Link Configuration Edit View Close with Discarding the Setting Close with Reflecting the Setting

Mode Setting: Ver 1 Mode Vv TX Speed: 156kbps *Z Link Scan Time (Approx.): - |

ˆ _“ — wwe Cerra: Cl Cc-Link Selection | Find Module | My Favorites | |

Station No Model Name Station Type [atl 81 | OF El % Se |

Y

P| Host Station Master Station H General CC-Link Module

rệ 1/1 AJ65SBT-64AD Remote Device Station El CC-Link Module (Mitsubishi Electric | |

& 2/2 AJ65SBT-62DA Remote Device Station H1 Master/ Bacal Module

= 3/3 AJ65BTB2-16DT Remote 1/0 Stati H Master/Intelligent Device aoduls

Input Module (One-touch Connect STA#0 Master St

+> Tiếp theo vào phần “CC - link Configuration” trên thanh công cụ

Chon “Close with reflecting the setting.”

Trang 26

+> Tiếp theo ,Nháy đúp chuột vào “Link Refresh settings” dé khai báo vùng nhớ truyền nhận

ở đây em khai báo 512 điểm truyền nhận và bắt đầu từ 100 > 2FF

tương đương 512 điểm

Trang 28

t?t:ztd

Trang 29

iwmeomt i i | tit Ltr 4 LG" ki] gửi sÐ ẽ xi ›

\ S

Trang 30

Bai 3 : MITSUBISHI FX5U “MODBUS RTU FRE700”

Trang 31

Mitsubishi FR-E700 Registers for Control

Modbus registers

‘© System environment variable

Register Definition -Readivrte Remane

40002 [Tnvenerreset Wate Fry value can be writen

40003 | Parameter clear Write Set HOGSA as a written valve

70004 —[AlParameter clear Write Set HOQAA as a writen value

40006 | Parameter clear +1 Waite Set HEAS6 as a writen valve

10007 — [Al parameter dear = Write at HAAS as a wten value

40009 | Iverer siatusicontol nput netructons? | Readlante | See below

0070 | Operation modefnverte seting +3 Readhwrie | See below

40014 | Running frequency (RAM value) Readiarite | According tothe Pr37settings, the Frequency

and selectable speed are in rinin

40015 | Running frequency (EEPROM value) Wiite Web

<inverter status/control input instruction> <Operation mode/inverter setting>

Definition ‘Written:

Bit Control input instruction Tnverter status NI

5 Stop command RUN (verter running) = xT 0000 HOOT

1 [Forward rotation command Forward rotation PU FOOT = Z| Reverse rotation command During reverse rotation ExT

RH (high-speed operation H0002 =

“ H0003 2

4 RM (middle-speed operation (OL (overload) Joc

command)e1 NET H007 FOOTE

RI low-speed operation i PUEXT|— H0005 =

command)+1 + TU[feiUSDEJđ8iEGĐSn] z2 —|_ Theresiiclons dependng onthe operafon

RT (second function selection) ‘ABC (fault) «2 mode changes according to the computer

$_|~ AU (eurrent input selection) 0 link specifications

>>> Control Address = 40009 - 40001 = 8 (dec) = 8 (hex)

s Set Word 8(hex) = 0000 0000 0000 0010 = 2 >>> Forward Run

* Set Word 8(hex) = 0000 0000 0000 0100 = 4 >>> Reverse Run

* Set Word 8(hex) = 0000 0000 0000 0000 = 0 >>> Stop

>>> Set Frequency Address = 40014 - 40001 = 13 (dec) = D (hex)

Trang 32

Mitsubishi FR-E700 Registers for Monitoring

40201 |Output frequency/speed +! 0.01Hz/1 40216 |Output termmal status *3 —

40202 |Output current 001A 40220 |Cumulative energization time 1h

40203 |Output voltage 0.1V 40223 |Actual operatlon time 1h

Output frequency setting/speed 40224 | Motor load factor 0.1%

40208 |Converter output voltage 0.1V 40253 |PID measured value 0.1%

40209 |Regenerative brake duty 0.1% 40254 |PID deviation 0.1%

40210 Electronic thermal relay function 01% 40258 |Option mput terminal status+4 —

load factor 40259 |Option mmput terminal status 2+5 —

40211 |Output current peak value 0.01A 40260 {Option output terminal status *6 —

40212 |Converter output voltage peak value 0.1V 40261 [Motor thermal load factor 0.1%

40214 |Output power 0.01kW 40262 {Inverter thermal load factor 0.1%

40215 |Input terminal status +2 Tơ 40263 {Cumulative power 2°) 0.01kWh

¢ Output Frequency Address = 40201 - 40001 = 200 (dec) = C8 (hex)

se Output Current Address = C9 (hex)

¢ Output Voltage Address =CA (hex)

Giải thích câu lệnh ADPRW

Command Node Command Parameters

}——| FNC276

“pa ©le]lel/e

ing on the Code (See Section 8.3) Command Code (See Section 8.3) Slave Node Address 00H to 20H (0 to 32)

16-bit operation (ADPRW)

Slave Node Address (KO to K32) 16-bit binary

Command Parameter depending on the Command Code 16-bit binary

aelalal Command Parameter depending on the Command Code 16-bit binary

/ Command Parameter depending on the Command Code | Bit or 16-bit binary

Cau hình và Lập trình trên phần mềm

Trang 33

làng 2 SOR an AMS = PP MRAE GS Sanaa vš 81: + =8 -@@2^ | a

eA (IV Sm~ SWI< van npg 16s Soe AEA m=".0e5^ = a

Trang 34

| meee Vem) cant Potmy

6 MOTELS Cee 0 Acres

Ue vey

“` _. _ _._

Trang 36

Nạp code chạy thiết bị thật

Dùng watch để điều khiển biến tần hoặc có thể thiết kế giao diện HMI

Trang 38

Bài 4 : mạng chuyén thong Ethernet TCP/IP

Yêu cầu đặt ra kết nói 2 plc fx5u voi 1 man hinh HMI GOT

s—=—m.‹eC

SSseses ee

aE

(Hinh anh mang tinh chat minh hoa)

Cài đặt thống số cầu hình của plc

Tao project mdi cho plc fx5u

Trang 39

¡19191941 « ie OY SMM PPLE SS so 4 ARO = ooFr-

Batt SBR ew ATO ff > Bh Se be “8% _—

#' High Speed I/O

#" Input Response Time

Trang 40

= pape a Sateet Maes

CC-Link IEF Basie Satings ee

MOOEtJ5/TCP Segs Cometurscanae C

Leone Desce Contguratos ©C-Link IÉF lam Set

Tramartession Port Setrege

if aly Applicata Seengs

To Use cr Not to Use MODGUS/TC? Setteg tict Used

One ice Ase epiciect Mtn Sette

Extemel Device Confiperston Eterm! Device Configuration <Datased Settnep

Teeeares sion Poet Setieugs

MEA SOFT Treeretresan Put UDP) ue

MELSDFT Trwiwsteosm Fút TC4P uve

Sau khi check không có lỗi ta cần Apply lại thay đổi

Tương tự với plc địa chỉ IP pahir khác với plc 1

—ayvs2see-x Yd~ + -xvt v4 dngệt —eeveidor= re +

Tợ sọ he CC-|inà lỆ F m2 Natoork Bosc setng, clemes set Address And Sa# re Nhvsk cý Ế) 3dtnss se ông đ Qum Nọde 990%

Trang 41

Cau hinh va cai dat tren HMI GOT

Mở phần mềm GT designer3 và tao project mdi

Chat LAI) Apps Documents Web Settings Folders 4 165

& Google Chrome

Trang 42

New Project Wizard

ER GOT P Adktress Setting

& Screen Switch

[7 New Project Ward

&) System Setting

GR GOT P Accress Setting

&) Screen Switch

< Back text > Cancel

Chon plc IQ-F cho thiết bị PLC FX 5U

Trang 43

New Project Wizard

Dy New Project Wizard

! System Setting Select the connect I/F of “MELSEC iQ"

ER GOT IP Address Setting

&© Screen Switch

fd Screen Design

< Back | — Next = Cancel

New Project Wizard

[Fi New Project Wizard [GOT IP Address Setting (Ethernet Standard Port)

co! System Setting Set Ethernet Standard Port

ER GOT IP Address Setting Peripheral S/W Communication Port No : 5015

&) Screen Switch

< Back Next > Cancel

Cài IP cho HMI (phải cùng lớp với PLC và không được trùng địa

chỉ với 2 PLC)

Cuối cùng nhắn finish để tạo project mới

Trang 44

Tại thanh công cu common chon controller setting

(a MELSOFT GF Denegree) KKOTARK Lettientt

: Bt b@ia> Ooo 0eees ansbinonss 4Aboliae vo

Oe nã GH 7 ‘ 3 = iis!

Hộp thoại mở ra chọn new để khai báo PLC_2

E st the controter to be connected to the GOT

fa FXSCPU(192.168,3.250) Manufacturer: MITSUBISHI ELECTRIC

ete Controler Typg: MELSEC QF

YF: Ethernet:Mult

© Detai Settng Connected Ethernet Controller Setting -

siuin ain S*¢** consoles to be connected to the Ethemet inked GOT,

Ngày đăng: 17/06/2025, 20:14

HÌNH ẢNH LIÊN QUAN

Hình  ảnh  thực  tế - Báo cáo thực hành bài 1  truyền thông profinet giữa 2 plc – s7 1200
nh ảnh thực tế (Trang 13)

🧩 Sản phẩm bạn có thể quan tâm

w