CITRES’ Cac bước để tạo một Project trong WinCC Khởi động WinC Tạo một Project mới Cài đặt Driver kết néi PLC Định nghĩa các Tag sử dụng Tạo và soạn thảo một giao diện người dùng C
Trang 1
CITRES’
LAP TRINH WINCC CHO
HE THONG SCADA
Trang 2Hệ thống giám sát và thu thập dữ liệu SGADA điển hình
Supervisory Gontrol and Data Aquisifion System
Provina technology Itd 148Bis Nam Kỳ Khởi Nghĩa, Q 1 Hồ Chí Minh City
Trang 5
CITRES’
Một số chức năng cơ bản của hệ thống SCADA
+ Diéu khién (Control)
+ Hién thi (Display): Trend (Historical), Table
+ Canh bao (Alarm)
+ Lưu trữ (Archieve)
+ In ấn (Report)
Một số phần mềm cho hệ SCADA hiện có tại Việt Nam
WinCC (Siemens), Fix-Intellution, Wonderware, Scitect,
Plantscape (Honeywell)
Để trao đổi dữ liệu với PL các phần mềm này đều sử dung
khái niệm Tag hay Point
Provina technology Itd 148Bis Nam Kỳ Khởi Nghĩa, Q 1 Hồ Chí Minh City
Trang 6CITRES’
WINCC WINDOWS CONTROL CENTER
Trang 7
Cai dat WinCC
Cau hinh may tinh:
CITRES’
MHz MHz RAM 96 MB 128 MB Graphic Controller SVGA (4 MB) XGA (8 MB}
Resolution 800 * 600 1024 * 768 Hard Disk 500 MB available space | > 500 MB available space
CD-ROM Drive CD-ROM Drive
Hé diéu hanh sv dung cho WinCC5.0: Win2000 Service Pack
2, WinNT Service Pack 5 Provina technology Itd 148Bis Nam Ky Khoi Nghia, Q 1 Hồ Chi Minh City
Trang 8CITRES’
Đưa đĩa CD vào
Click on this text to install : | F ea
Jisplay CD-ROM Contents
™install SIMATIC WinCC
‘ools and Drivers
| Provina technology Itd 148Bis Nam Kỳ Khởi Nghĩa, Q 1 Hồ Chí Minh City
Trang 10CITRES’
Choose Language and Destination Location
1.) Select additional WinCC languages
English is installed by default
< Back | Next > Cancel |
Chon Next va lam theo hướng dẫn trên màn hình
Provina technology Itd 148Bis Nam Kỳ Khởi Nghĩa, Q 1 Hồ Chí Minh City
Trang 11
CITRES’
In order to work with WinCC, an authorization must be performed
You can perform this authorization either during the installation or
ASWC1712 Channel S5TF/Eth bá
( Yes, authorization should be performed during installation
f*$lo, the authorization is performed at a later time
Witho authorization, WinCC will operate in DEMO mode
Select "No, the
Licences authorization is performed
< Back Next > Cancel
Lam theo chỉ dẫn trên màn hình cho đến khi hoàn tat
| Provina technology Itd 148Bis Nam Kỳ Khởi Nghĩa, Q 1 Hồ Chí Minh City
Trang 12
CITRES’
Cac bước để tạo một Project trong WinCC
Khởi động WinC
Tạo một Project mới
Cài đặt Driver kết néi PLC Định nghĩa các Tag sử dụng
Tạo và soạn thảo một giao diện người dùng
Cài đặt théng s6 cho winCC Runtime
Chạy phương trình (Activate)
Có thé dùng chương trình WinCC Variable Simulator dé
mô phóng hoạt động của các Tag
Trang 14‘You can use this dialog box [winCC_HCMC]
to create a new WinCC ; project Drive:
OK Cancel
Trang 15
3 Cai dat Driver két ndiPLC
Click chudt phai vao Tag Management — Add new Driver
Trang 16Look in: | Sy bin y| © © e* Ee
| SIMATIC 505 TCPIP,.CHN | SIMATIC 55 Programmers Port ¢
laa] SIMATIC 55 Ethernet Layer 4.CHN 'ga] SIMATIC 55 Serial 3964R.CHN Kết nối với ] 5IMATIC 55 Ethernet TF.CHN c#[5IMATIC 57 Protocol Suite cHN Et Nol Vol 'aa] SIMATIC 55 PMC Ethernet.CHN 'ga] SIMATIC TI Ethernet Layer 4 PLC S/7- 'ga] SIMATIC 55 PMC Profibus.CHN #] 5IMATIC TI 5erial.CHN 200 ch
'ga] SIMATIC 55 Profibus FDL.CHN ‘a SIPART.CHN chọn
Driver nà
File name: (im | Open
Files of type: |winEC Communication Driver [*.chn] M Cancel L
Trang 17CITRES’
+ Can phan biét hai loai Internal Tag va External (Process) Tag
Tao External Tag
a we tt eee eee ee Pil=I Es |
Fie Ect View Edtcrs Tools Help
Trang 19CITRES’
Chon New Tag tu Connection vua tao
C> WinC CE zplorer - Test MCP —IPIx]l
SIMATIC ST PROTOCOL 9 #1 Click wath the right
ñ industrial Ethernet | Mouse button here
Extemal Tags 0 / License: DEMO | INUM ⁄
Provina technology Itd 148Bis Nam Kỳ Khởi Nghĩa, Q 1 Hồ Chí Minh City
Trang 20Dalayoe | Unsigned 16-b& vahie
[2-1 Binaly Taq
z Signed 8-bt value
cess Unsigned 8-bt value
aA Signed 16-bi value
ole {j4ri 61 ‘Uneaed 7 “Vt Value
_- #2 Click on the arrow key and select
“Unsigned 16-bit value” from the list
Ooess Velie serrce
Provina technology Itd 148Bis Nam Kỳ Khởi Nghĩa, Q 1 Hồ Chí Minh City
Trang 21Address | #1 From the list-bon for the data
area of the tag, select the data area
"Y¥ord* and MY¥
‘O* has been sal
Select the dala wea
Trang 23File Edit View Editors Tools Help
|nœ|mw| # %® | *s > | |
B® Test Name | Type | Parameters
— wa Computer 7) @ currentUser Text tag 8-bit character set 0
EI-]ll[ Tag Management Bậc New Group
Test\Tag Management\Internal tags' External Tags: 0 / License: DEMO | (NUM | ⁄
Provina technology Itd 148Bis Nam Ky Khoi Nghia, Q 1 Hồ Chi Minh City
Trang 24CITRES’
Gõ tên và chọn kiểu dữ liệu cho Internal Tag
General | Limits/Repotting | L C ho a OK đề lưu
— Properties of Tags | nte rn AI Tag
Name:
Datatype : | Binary Tag
hd Length: fi
— Process Yalue Range _JJ_—(-_ Tiag Value Range
Yaluel VYaluel | /alue2 | \/alue2 |
Please note that when you use tags in the dynamic dialog, the name of the tag
does not contain any national special characters and does not begin with a number
Trang 25Address:
Adapt format : (* Project-wide update Computer-local update
[Linear scaling Process Yalue Range
Data type of the tags from the view of the OS
Hồ Chi Minh City Provina technology Itd 148Bïs Nam Kỳ Khởi Nghĩa, Q †
Trang 26CITRES’
4.Tao giao điện
Glick chuột phải vao Graphics Designer + Chon New
Propesties
ew men -— oo
7/8/3371
|
Hồ Chí Minh City
Trang 27CITRES’
0ó thể đổi tên Picture bằng cách nhấp chuột phải, chon Rename
É WinCCExplorer - C:\Siemens`.WinCC`.WinCCProjects` Test`Test.mcp
File Edit View Editors Tools Help
4) Tag Management Open picture
7 1 Ex structure tag Rename picture
7 IT Graphics LESHRIET Delete picture
Bq Alarm Logging Define screen as start screen
Trang 30tr -] Buttons 3D On_Off _1 On_Off _2 On_Off _3 , ` ~
Trang 31
Tạo nút nhấn
CITRES'
Chon Button trong muc Windows Object bân ObJect Palette, kéo
qua và đặt tại vị trí mong muốn trên màn hình soạn thảo
Provina technology Itd
— fA] Static Text
148Bis Nam Ky Khoi Nghia, Q 1 Hồ Chi Minh City
Trang 32Ted [Semple ti | we SESS
Change Pichuwe on Mouse Cick | 45 Seleci this trên trang
udhizizsbon (No acoess-protectice fram man hinh
[SAMPLE od , | #2 Click on this icon
| to set the target
Trang 33CITRES'
- Tạo hình ảnh động cho đối tượng
Nhấp chuột phải vào đối tượng, chọn Properties
“vith the right mouse button, Group abject r |
chck on the Tank and select — `
*Propertias’ Linking
Trang 34
CITRES’
| Chon Tag Assignment trén tab Properties
Nhấp chuột phải vào mục Dynamic —› Chọn Tag muốn liên kết
Click wath 1he right mouse button on the transparent lightbulb and select “Tag”
Trang 36
CITRES’
Tạo l/0 Field để quan sát hay cài đặt dữ liệu cho đối tượng
Kéo 1/0 Field co trong muc Smart Object bén cua so Object
Palette vao man hinh soan thao
#! Click on this button to select the “TankLevel” tag
Taz: TankStend
Update: [E00 rie + Chon Tag và thời gian cập
= a“ nhật từ của số I/0 Field
#2 Select an update £ cycle of500 ms here * Both
“Fama auscts | 1b + Chon Save dé luu lai trang màn hình trước khi chạy
Fort Nome ana :
_ 0ñ | Cancel
Provina technology Itd 148Bis Nam Kỳ Khởi Nghĩa, Q 1 Hồ Chí Minh City
Trang 37CITRESï
5 0ài đặt tham số khi chạy Runtime
Trên cửa số WinŒG Explorer click chuột phải vào mục
Gomputer, chọn Properies —› Chọn Properties lần nữa
Trên tab Graphics Runtime chọn trang màn hình khởi
Trang 39
CITRES®
Su dung chuong trinh mé phong cac Tag trong WinCC
+ Tu man hinh windows, vao Start > Chon Simatic ~WinCC
— Tool —WinCC Variable Simulator
+ Trén muc Properties, chon New Tag tu menu Edit — Chon Tag
cần mô phông va cách thức thay đổi dữ liệu của Tag: Dang Sin,
Tăng dần ,giảm tần, dao động —› Chọn active
+ Trở lại mục List of Tags chon Start Simulation dé bat đầu mô phong
Provina technology Itd 148Bis Nam Kỳ Khởi Nghĩa, Q 1 Hồ Chí Minh City
Trang 40CITRES'
Fie £ ob
ie Simulation for WinCC
Lut ot Tags |+ Seect ‘Eda’ and then "New Ta
Trang 42
CITRES’
Sử dụng Tag logging dé hién thi théng số của quá trình
sản xuất qua các bước sau:
Mo Tag Logging Editor Đặt cấu hình cho Timer
Tạo dữ liệu lưu trữ với Archieve WIzard
Vẽ đồ thị hiển thị thông số của quá trình sản xuất
Tạo một bảng báo cáo Cai dat tham số Runtime
Trang 43CITRES’
1 Mo Tag Logging Editor
Nhan chudt phai vao Tag Logging trén ctfa so WinCC Explorer—+Open
hl>A4qali0n Vandow Í Data Window
name T Ladi c fuchiving type — [Lgdiấnging: —_
[arSlxd úch Ônabg 2739 01 34454 |lpcctdtryarg “Ỉiên
Trang 44
CITRESï
2 Đặt cấu hinh cho Timer
Nhấn chuột phải vào timer, chon New và cài đăt thời gian lấy dữ
—r
#1 Enter a name for the timer
sO re
#2 Enter the Basis for the timer
#3 Enter the Factor for the timer
Trang 45CITRES’
3 Tạo dữ liệu lưu trữ với Archive Wizard
Nhấp chuột phải vào Archieve , chọn Archieve Wizard, nhãn
Next và thực hiện như các bước dưới đây:
So The aechee type celermner rnpœlzl
=] propeities of the archive If you complete the
7 Wizard Didog now, the presetlings fer the
#1 Enter the Arche name here
Trang 46CITRESï
Nhấn Select để chọn Tag cần lưu trữ
Nhấn nút Save
trước khi đóng của số Archieve
Provina technology Itd 148Bis Nam Kỳ Khởi Nghĩa, Q 1 Hồ Chí Minh City
Trang 47CITRES’
4 Vẽ đồ thị hiển thị thông số của qua trình sản xuất
+ 0ó thể tạo một trang màn hình mới
+ Trong của sé Graphics Designer, chon WinCC Online
Trend Control trên Tab Control bén cua sé Object
Palette va kéo vao man hinh soan thao
+ 0ó thé gõ tên đồ thị và cài đặt các thộc tính cho đồ
thị từ cửa số sau:
Provina technology Itd 148Bis Nam Kỳ Khởi Nghĩa, Q 1 Hồ Chí Minh City
Trang 48CITRES’
Provina technology Itd
Properties of WinCC Online Trend Control
[Display idee Enter a title for ihe cune
—DataScuies re ve
@ifion is
| Aichive Tags | c nY-hxe
Background Color [Z SEszbb
be
Calor [_ FaiBa ñœ
—FPet‡kterece
F icRkTl edocs [Ƒ nFr Usar Authorestion The project ie active
Trang 49#2 Use this button to
select whichtag should be :H# tp
Trang 50
CITRES”
Nhấn 0Trl + Double Click dé xem thử hình ảnh của đồ thị lúc
chạy Runtime, có thể sửa lại các thông số của đồ thị sao cho
Trang 51+ Chon WinCC Online | footie 7 ayy bạc
Table Control co trong man = E Sau Ba
n n ` v aichive dala Enter the title of the table
đặt vào trang màn ee I Sineable
hinh soan thao or | 7 CBee
+ Điền tên Va cac User Authorization: | Use: Authorization: |
thong sé cla bang ty | = Seon |
cửa số hiện ra [on | Coed | an | Heb
Provina technology Itd 148Bis Nam Kỳ Khởi Nghĩa, Q 1 Hồ Chí Minh City
Trang 52
CITRES®
Chuyén qua tab “Column” để gõ tên của giá trị hiển thị trên bảng
và chọn Tag cần quan sát như hình sau:
Trang 54CITRES®
6 Cai dat tham s6 khi chay Runtime
+ Trên cửa số WinGG Explorer click chuột phải vào mục
Computer, chon Properies —> Chon Properties lan nifa
+ Trén tab “Start up’, chon tag Logging Runtime
Pelee inn is
Tex! Lbvary FRunlme
_ Giobal Sci! Rurtme
Alain Logging A urtime
Trang 5508.07.95 07:17:46,160 am
[B07 39 ñ7:]7 $7 067 am
E8 07 33 07:17 4S 3 10.00 caorssoriresme am
(807.95 0717-50 66 10 0807.99 07:17:51 067 20
Trang 56
CITRES”
Thiết lập các cảnh báo và thông báo lỗi
ÖGz WY œ |: ': *g&ữq =-e€ŒG lDafg ine aNumtMessage text
Trang 57
CITRES’
Sử dụng Alarm Logging để thiết lập các cảnh báo va thông báo lỗi
Các trình tự có thể thực hiện như sau (tuỳ theo yêu cầu) :
Mở cửa số soạn thảo Alarm Logging Editor
Khởi động System Wizard
Cài đặt Message Texi
Ding Message Class dé dat màu cho cdc message
Cai dat Limit value
Tao Message Window trén man hinh soan thao
Thiết lập các tham số Runtime
Trang 58
CITRES'
1 Mở cửa sổ Alarm Logging
Nhấn chuột phải vào Alarm Logging, chọn Open
| Naa gation Window ï Data Window
eT, ae ei a Lc ee Stet? Neeepetet | Portof arc lH
- — xe Ales lebSiod 2 0 Net
Trang 59CITRES’
2 Khởi động System Wizard
Vao File — Select Wizard —>chon System Wizard— Next
Chon các thông số như những hình sau đây:
9wxIlem Wtzad Selecting Message Blocks
Provina technology Itd
Mexsages a6 201 33 (adies retds 6 fEZZ2302 4000
You can ec® these windows wth the Edito: Graphics
Deagrer
‘You spealp whet colunes thers tebles can here by electing
from the headnge Syetem Blocks User T ext Blocks ard
Process Value Blocks
— Useq Tew Blocks
C None
vã ; elisg Tit Enor Locabon
+ Class Meztegn Typs| AD
¢ Back | New > | Cencel | Hebb
148Bis Nam Ky Khởi Nghĩa, Q 1 Hồ Chí Minh City
Trang 60WED — See ae eee Datte+ wd
+ _ Me»›34e | ypes The clave to which 4 maxespe
‘SSS belongs specitine # and how fhe message chould bee
fy ONY Thm Mortage Type |M Pan ihe Hecsage Claire]
bas Repel species the cols mah which fe message &
repeserted The pe ako specter when he message comes, Men tho gore, or dil vase acknom edged
=a eo 2 -eo @ -o @2@ 2 es 2 2 © @ -eo- 2 -O DBS @& © D@ -O- O@ -O- SF - -O-
Vlarr Erro: vvh Ti per den, Fake, mai vung
_—— — 46/6 (66 96% 6 A6 6 eS SG CC er er CC CC VN CC VAO VN W 2 er s4
f* + Dsyz [pssím mìh Types Completed Chack-flack &
[ceisirg l$& les:aœ
Select this blassaqe
Trang 61ŠhayrTem che For 250 Messages
Salact this Archive T _+Lorg- Tem dichive In Continzowe Operation Nhấn Next