Professional Documents
Culture Documents
automation
1.
-
Chc nng
Cnh bo
Bin (Tag)
Quan st
K t
c tnh
S im cnh bo s
S im cnh bo tng t
di ca dng cnh bo
S Tag trong mt cnh bo
Cch hin th
TP 177A
100
20
Sa cnh bo
S Tag cho php
u vo/ra
S k t cho php
TP 177B
OP 177B
2000
50
80 k t
Ti a: 8
Hin th cnh bo
Hin th trn ca s cnh bo
C
500
1000
C
300
Hnh 1
- To mi mt Project
+ File New ca s cho php chn loi mn hnh s dng
Hnh 2
+ Click Ok to mi mt Project. Khi ta s c mt Project
mi tin hnh thit k.
Hnh 3
Chn Creat a new project with the Project Wizard
ca s cho php chn mc lin kt gia cc my tnh hay
thit b iu khin. (mi khi Click vo mi la chn ta s
thy phng thc kt ni ca la chn hnh bn cnh).
Hnh 4
Nhn Next la chn thit b hin th, thit b iu khin
v dng cp kt ni
Hnh 5
Trong :
o 1: La chn thit b hin th, Click vo vng la
chn s xut hin hnh 2
o 2: La chn cp kt ni
o 3: La chn thit b iu khin
Nhn Next cho php ta thit k nhng hin th c nh trn
mi mn hnh: Logo cng ty, cnh bo, gi. Trn c
cc la chn thay i v tr cc hin th c nh
Hnh 6
Nhn Next cho php ta nh dng cc mn hnh di dng
cc Menu hnh cy, s cc cnh v nhnh ca Menu ny do
ta t la chn. Sau khi la chn xong Menu ny trn mi
mn hnh s t to cho ta nhng nt iu khin lin kt
gia cc mn hnh vi nhau.
Hnh 7
Tip tc nhn Next cho php ta chn thm cc mn hnh
hin th cc thuc tnh ca Project: mn hnh bo v (yu
cu Password truy cp), mn hnh thit lp cho h
thng
Ti liu hng dn s dng mn hnh TP 177
Hnh 8
La chn cc th vin c sn trong chng trnh
Hnh 9
t tn Project v tn ngi thit k
Hnh 10
Nhn Finish kt thc vic khai bo cho mt Project mi.
Hnh 11
- 1: Vng qun l Project, trong vng ny cha ton b cc mn hnh, ci
t, kt ni ca Project.
Ti liu hng dn s dng mn hnh TP 177
Hnh 12
+ Thay i thit b hin th (loi mn hnh): Nhn phi chut vo
Device_1 chn Change device type xut hin bng la
ch loi thit b (Hnh 2 )
+ chn thm mn hnh vo Project tin hnh click p vo
Add Screen.
+ Hin th mn hnh: hin th mn hnh no tin hnh Click p
vo mn hnh .
+ Thay i tn mn hnh: nhn phi chut vo mn hnh cn i
tn chn Rename thay i tn.
b. Vng qun l bin v truyn thng
10
Gi tr gii hn ca bin.
Thi im xut hin cnh bo: ti sn ln ca tn hiu (On
rising edge), hoc sn xung ca tn hiu (On falling
edge).
+ Discrete Alarm: khai bo cc cnh bo dng s.
t dng cnh bo khi xy ra.
S th t ca cnh bo.
Dng cnh bo: li (Erorr), cnh bo (Warning), li h
thng (System).
Chn bin to li.
Gi tr ca bit khi c li xut hin.
+ Setting : ci t cc thng s cho cnh bo
Alarm Setting
t s v tr hng i cho php ca cc cnh bo.
t thi gian xut hin ca cc cnh bo li h thng.
Alarm Class
t cc biu tng tng ng vi cc cnh bo, li
Mu sc ca mi cnh bo.
Alarm Groups
t tn cho tng nhm cnh bo hay li
4. Mt s hm chc nng c bn trong WinCC flexible.
- Sau khi chn thm mt i tng vo mn hnh, ngoi nhng thuc tnh
ca i tng WinCC flexible cn cho ta nhng s kin (Event)
vit ln i tng .
- Cc s kin c chia ra lm nhiu nhm tu thuc vo i tng ta
s dng.
- Trong mi s kin c nhiu hm cho php ta la chn cc hm tc
ng khi c s kin xy ra. Cc hm c bn v hay s dng:
Cc hm tnh ton (Calculator)
- DecreaseValue: Tng gi tr ca bin
+ Tag (In/Out): la chn bin gim gi tr
+ Value: gi tr s gim i sau mi ln xut hin s kin, gi tr
ny c th l mt hng s hoc mt bin khc.
- IncreaseValue: Gim gi tr bin
+ Tag (In/Out): la chn bin gim gi tr
+ Value: gi tr s gim i sau mi ln xut hin s kin, gi tr
ny c th l mt hng s hoc mt bin khc.
- LinearScaling: hm tuyn tnh. Hm ny s tnh gi tr ca Y = (a*X)+b,
vi cc gi tr a v b do ngi lp trnh t chn (c th l hng s hoc
Ti liu hng dn s dng mn hnh TP 177
11
12
Hnh 12
13
Hnh 13
Thit lp thng s tc , a ch, s thit b ti a c th
iu khin.
Hnh 14
Chn dng cng truyn thng kt ni vi PC. Tu thuc vo
loi cp MPI s dng cng USB hay Com m ta chn cng
kt ni thch hp.
14
Hnh 15
+ Thit lp cho TP 177A
Chn Project Tranfer Tranfer Setting
Hnh 16
Khi ta s c mn hnh cho php nh dng truyn thng
cho TP 177A
15
Hnh 17
df
+ Thit lp trn mn hnh
Mn hnh sau khi khi ng s ch ch vi cc ch
khc nhau:
Hnh 18
Nhn Tranfer kt ni vi PC hoc PLC. Ta ch
Tranfer khi mun Dowload chng trnh t my tnh
xung mn hnh
Nhn Start: chy chng trnh iu khin c np
vo.
Nhn Control Panel thit lp cc thng s cho mn
hnh
16
Hnh 19
o Chn MPI/DP thit lp cc thng s
Hn h 20
Vi (1) l a ch ca Bus truyn thng
(2) tc truyn thng
o C th chn: Tranfer ri sau thit lp cho
MPI/DP
Hnh 21
Ti liu hng dn s dng mn hnh TP 177
17
Hnh 22
o OP: khu vc cho php ta th nghim nhy
cm ng ca mn hnh bng cch di con tr
cc v tr khc nhau ca mn hnh.
+ Ton b cc ca s mi hin ra u c th ng v ng vi
thit lp trn bng cch nhn cc phm
v
.
- Download xung m hnh
+ Nhn nt Tranfer trn mn hnh cng nghip
+ Tin hnh truy nhp vo ca s Tranfer (hnh 18 ) ri nhn
Tranfer
6. V d: iu khin v gim st mt bnh trn n gin c kt ni mn
hnh TP 177A vi PLC S7 200
- To mi mt Project trn WinCC Flexible (Xem mc 3.2)
+ Chn thit b hin th l TP 177A (hnh 2)
+ Chn thit b iu khin PLC S7 200 (hnh 5 )
+ Chn cc danh mc c php hin thi trn mn hnh (hnh .)
- Khai bo bin. Bin khai bo s c nh dng l bin lin kt vi thit
b iu khin hay bin ni ti ca mn hnh cng nghip. Cc bc bao
gm:
+ Truy cp vng khai bo bin (hnh)
+ Khai bo bin: tn bin, dng bin (bin lin kt hay bin ni
ti), kiu bin.
18
Hnh 23
+ Nu bin l dng bin lin kt (l mt bin trong b nh ca
thit b iu khin) th khi ta phi khai bo r a ch ca
bin trn thit b iu khin. Khi mi s thay i bin
trn mn hnh hoc trn thit b iu khin u dn n s thay
i gi tr ca vng nh .
+ Tin hnh khai bo cc bin:
TankLevel dng bin lin kt, kiu d liu l Int v c a
ch trn PLC l VW0. Bin ny c tc dng thay lu gi gi
tr ca mc nhin liu trong bnh trn.
Bin Increase v Decrease l hai bin tng gim mc nhin
liu trong bnh. C hai bin u c nh dng kiu Bool
v c a ch trn PLC ln lt l M0.0 v M0.1.
- Tin hnh thit k giao din cho mn hnh
+ M mn hnh thit k
Hnh 24
19
Hnh 25
Ko nt n ny vo vng thit k giao din, nh dng cc
thuc tnh ca nt n:
Thay i ch hin th trn nt. Ln lt thay i tn nt
thnh: Increase, Decrease, v Shut Down. Khi ta c
Hnh 26
Ti liu hng dn s dng mn hnh TP 177
20
Hnh 27
Sau khi sa i xong ta s c mn hnh giao din:
21
Hnh 28
- To chc nng cho cc nt iu khin
+ Chn nt iu khin chn s kin xy ra vi nt n s gi
hm chc nng:
Hnh 29
+ La chn cc hm s c gi khi c s kin xy ra
Hnh 30
+ i vi cc nt n Increase v Decrease ta ln lt chn cc
hm IncreaseValue v DecreaseValue, bin c tc ng l
TankLevel. Sau mi ln c s kin nhn nt tng ng xy ra
gi tr ca bin TankLevel s tng/gim i hai n v.
22
Hnh 31
+ i vi nt n Shutdown ta la chn hm StopRunTime
dng ch chy RunTime.
Hnh 32
- Tin hnh Download xung mn hnh.
- Kt ni mnh hnh vi thit b iu khin (PLC S7 200).
- Lp trnh vi thit b iu khin
+ Vit chng trnh hot ng vi S7: Khi cc nt iu khin trn
mn hnh cng nghip (Increase v Decrease) tc ng s thay
i gi tr ca bin TankLevel. ng thi trn PLC s c hai u
vo ng lm nhim v tng gim gi tr ca bin TankLevel.
+ Chng trnh iu khin
NETWORK 1
LD
M0.0
EU
LD
I0.0
EU
INCW TankLevel
NETWORK 2
LD
M0.1
EU
LD
I0.1
EU
DECW TankLevel
23
Functions
TP 170B
TP 177B TP 270
TP
TP
TP 277
OP 170
OP 177 OP 27
170A
177A
OP 277
B
B
0
Logoff
Yes Yes
Yes Yes
Yes
Yes
AdjustContrast
Yes Yes
Yes Yes
Yes
Yes
ActivateScreen
Yes Yes
Yes Yes
Yes
Yes
ActivateScreenByNumber
Yes Yes
Yes Yes
Yes
Yes
ActivateFirstChildScreen
No
Yes
No
Yes
Yes
Yes
ActivateLeftScreen
No
Yes
No
Yes
Yes
Yes
ActivateCleanScreen
Yes yes
Yes Yes
yes
yes
ActivateRightScreen
No
Yes
No
Yes
Yes
Yes
ActivateBaseScreen
No
Yes
No
Yes
Yes
Yes
ActivateParentScreen
No
Yes
No
Yes
Yes
Yes
24
ActivatePreviousScreen
Yes Yes
Yes Yes
Yes
Yes
UpdateTag
No
Yes
Yes Yes
Yes
Yes
Logon
Yes Yes
Yes Yes
Yes
Yes
ArchiveLogFile
No
No
No
No
Yes
Yes
LogTag
No
No
No
No
Yes
Yes
EditAlarm
No
yes
No
Yes
yes
yes
ScreenObjectCursorDown
Yes Yes
Yes Yes
Yes
Yes
ScreenObjectCursorUp
Yes Yes
Yes Yes
Yes
Yes
ScreenObjectPageDown
Yes Yes
Yes Yes
Yes
Yes
ScreenObjectPageUp
Yes Yes
Yes Yes
Yes
Yes
DirectKey
No
yes
No
yes
yes
yes
DirectKeyScreenNumber
No
yes
No
yes
yes
yes
PrintScreen
No
Yes
No
Yes
Yes
Yes
PrintReport
No
No
No
Yes
Yes
Yes
NotifyUserAction
No
No
No
No
Yes
Yes
25
IncreaseFocusedValue
No
IncreaseValue
yes
yes
yes
yes
Yes Yes
Yes Yes
Yes
Yes
ExportDataRecords
No
Yes
No
Yes
Yes
Yes
ExportImportUserAdministration
No
Yes
No
Yes
Yes
Yes
GoToHome
No
yes
No
yes
yes
yes
GoToEnd
No
yes
No
yes
yes
yes
HTMLBrowserStop
No
No
No
No
No
No
HTMLBrowserRefresh
No
No
No
No
No
No
HTMLBrowserForward
No
No
No
No
No
No
HTMLBrowserBack
No
No
No
No
No
No
InvertBit
Yes Yes
Yes Yes
Yes
Yes
InvertBitInTag
No
Yes
No
Yes
Yes
Yes
ImportDataRecords
No
Yes
No
Yes
Yes
Yes
InvertLinearScaling
No
Yes
Yes Yes
Yes
Yes
CalibrateTouchScreen
Yes yes
Yes Yes
yes
yes
CopyLog
No
No
Yes
Yes
No
No
No
26
TrendViewScrollForward
No
Yes
No
Yes
Yes
Yes
TrendViewScrollBack
No
Yes
No
Yes
Yes
Yes
TrendViewExtend
No
Yes
No
Yes
Yes
Yes
TrendViewCompress
No
Yes
No
Yes
Yes
Yes
TrendViewRulerForward
No
Yes
No
Yes
Yes
Yes
TrendViewRulerBackward
No
Yes
No
Yes
Yes
Yes
TrendViewSetRulerMode
No
Yes
No
Yes
Yes
Yes
TrendViewStartStop
No
Yes
No
Yes
Yes
Yes
TrendViewBackToBeginning
No
Yes
No
Yes
Yes
Yes
LoadDataRecord
No
Yes
No
Yes
Yes
Yes
GetUserName
No
Yes
Yes Yes
Yes
Yes
GetDataRecordFromPLC
No
Yes
No
Yes
Yes
Yes
GetDataRecordName
No
Yes
No
Yes
Yes
Yes
GetDataRecordTagsFromPLC
No
Yes
No
Yes
Yes
Yes
GetGroupNumber
No
Yes
Yes Yes
Yes
Yes
GetPassword
No
Yes
Yes Yes
Yes
Yes
27
LinearScaling
No
Yes
Yes Yes
Yes
Yes
ClearLog
No
No
No
No
Yes
Yes
DeleteDataRecord
No
Yes
No
Yes
Yes
Yes
DeleteDataRecordMemory
No
Yes
No
Yes
Yes
Yes
ClearAlarmBuffer
Yes Yes
Yes Yes
Yes
Yes
ClearAlarmBufferProTool
Yes Yes
Yes Yes
Yes
Yes
AlarmViewEditAlarm
Yes Yes
Yes Yes
Yes
Yes
AlarmViewAcknowledgeAlarm
Yes Yes
Yes Yes
Yes
Yes
AlarmViewShowOperatorNotes
Yes Yes
Yes Yes
Yes
Yes
OpenAllLogs
No
No
No
No
Yes
Yes
OpenScreenKeyboard
No
No
No
No
Yes
Yes
OpenCommandPrompt
No
No
No
No
Yes
Yes
OpenInternetExplorer
No
No
No
yes
Yes
Yes
OpenTaskManager
No
No
No
No
Yes
Yes
OpenControlPanel
No
Yes
No
Yes
Yes
Yes
AcknowledgeAlarm
No
yes
No
yes
yes
yes
28
RecipeViewNewDataRecord
No
Yes
No
Yes
Yes
Yes
RecipeViewGetDataRecordFromPLC
No
Yes
No
Yes
Yes
Yes
RecipeViewDeleteDataRecord
No
Yes
No
Yes
Yes
Yes
RecipeViewMenu
No
Yes
No
Yes
Yes
Yes
RecipeViewOpen
No
Yes
No
Yes
Yes
Yes
RecipeViewSetDataRecordToPLC
No
Yes
No
Yes
Yes
Yes
RecipeViewSaveDataRecord
No
Yes
No
Yes
Yes
Yes
RecipeViewSaveAsDataRecord
No
Yes
No
Yes
Yes
Yes
RecipeViewSynchronizeDataRecordWithTa
No
gs
Yes
No
Yes
Yes
Yes
RecipeViewRenameDataRecord
No
Yes
No
Yes
Yes
Yes
RecipeViewShowOperatorNotes
No
Yes
No
Yes
Yes
Yes
RecipeViewBack
No
Yes
No
Yes
Yes
Yes
ResetBit
Yes Yes
Yes Yes
Yes
Yes
ResetBitInTag
No
Yes
No
Yes
Yes
Yes
ButtonPress
No
yes
No
yes
yes
yes
ButtonRelease
No
yes
No
Yes
yes
yes
29
CloseAllLogs
No
No
No
No
Yes
Yes
SetDataRecordToPLC
No
Yes
No
Yes
Yes
Yes
SetDataRecordTagsToPLC
No
Yes
No
Yes
Yes
Yes
SendEMail
No
No
No
yes
Yes
Yes
PageDown
No
yes
No
yes
yes
yes
PageUp
No
yes
No
yes
yes
yes
SetAcousticSignal
No
No
No
No
Yes
Yes
SetDisplayMode
No
No
No
No
No
No
SetDeviceMode
Yes Yes
Yes Yes
Yes
Yes
SetBit
Yes Yes
Yes Yes
Yes
Yes
SetBitInTag
No
Yes
No
Yes
Yes
Yes
SetBitWhileKeyPressed
Yes Yes
No
Yes
Yes
Yes
SetScreenKeyboardMode
No
No
No
No
Yes
Yes
SetAlarmReportMode
No
Yes
No
Yes
Yes
Yes
SetRecipeTags
No
Yes
No
Yes
Yes
Yes
30
SetLanguage
Yes Yes
Yes Yes
Yes
Yes
SetConnectionMode
No
Yes
Yes Yes
Yes
Yes
SetWebAccess
No
No
No
Yes
Yes
Yes
SetValue
Yes Yes
Yes Yes
Yes
Yes
BackupRAMFileSystem
No
No
No
No
No
No
SimulateSystemkey
No
yes
No
yes
yes
yes
SimulateTag
No
Yes
Yes Yes
Yes
Yes
SmartClientViewRefresh
No
No
No
yes
Yes
Yes
SmartClientViewReadOnlyOff
No
No
No
yes
Yes
Yes
SmartClientViewReadOnlyOn
No
No
No
yes
Yes
Yes
SmartClientViewDisconnect
No
No
No
yes
Yes
Yes
SmartClientViewConnect
No
No
No
yes
Yes
Yes
SmartClientViewLeave
No
No
No
yes
Yes
Yes
SaveDataRecord
No
Yes
No
Yes
Yes
Yes
StartLogging
No
No
No
No
Yes
Yes
StartSequenceLog
No
No
No
No
Yes
Yes
31
StartProgram
No
No
No
No
Yes
Yes
StatusForceGetValues
No
No
No
Yes
Yes
Yes
StatusForceSetValues
No
No
No
Yes
Yes
Yes
ControlSmartServer
No
No
No
yes
Yes
Yes
ControlWebServer
No
No
No
yes
Yes
Yes
StopLogging
No
No
No
No
Yes
Yes
StopRuntime
Yes Yes
Yes Yes
Yes
Yes
SeperateTagFromHandwheel
No
No
No
No
No
No
SetTagToHandWheel
No
No
No
No
No
No
TraceUserChange
No
Yes
Yes Yes
Yes
Yes
DecreaseFocusedValue
No
yes
No
yes
yes
yes
DecreaseValue
Yes Yes
Yes Yes
Yes
Yes
ChangeProject
No
Yes
Yes Yes
Yes
Yes
ChangeConnection
No
Yes
Yes Yes
Yes
Yes
ShowLogonDialog
Yes Yes
Yes Yes
Yes
Yes
ShowInfoText
No
Yes Yes
Yes
Yes
Yes
32
ShowAlarmWindow
Yes Yes
Yes Yes
Yes
Yes
ShowSoftwareVersion
No
No
No
No
Yes
Yes
ShowSystemAlarm
No
Yes
No
Yes
Yes
Yes
33