1、Audi assembly MP377 WinCC CNAudi CC AssemblyMP377 WinCC flexibleRevision Indexno.dateauthorrevision0028.04.2009FrauenthalerCreation (Version 1-0)Table of Contents 1. Overview WinCC flexible 41.1. 项目纵览 51.2. 工作区 61.3. 工具箱 71.4. 属性纵览 72. 原稿 82.1. 建立_PLC_内部释放 82.2. Common_Fill_IDs 82.3. MoviMot_Drive_U
2、mrechnung 82.4. Open_Home_Picture 92.5. Show_Interface 92.6. StartUpPanel 92.7. Wair_n_sec 111. 纵览 WinCC flexible此纵览显示了WinCC flexible的不同视窗此单元简要描述WinCC flexible 的结构,详细的细节请查阅WinCC flexible 入门索引1.1. 项目纵览如果打开WinCC flexible 的项目纵览视窗在右侧所有的附件和所有可以使用的项目编辑器一树形图分布,以及你可以进入项目属性对设备进行HMI设备的设置通过双击一个单元(例如MM_FTM06_Pi
3、c1_P01_P08)此单元在工作区被打开T1.2. 工作区在1.1段涉及的已经在工作区打开了一个单元。在此区域就可以进行改动,如果有需要工具箱在右侧的空白区,它包括标准图形,例如一条线,文本如果加入一个标准框加入工作区直接拖拽工具箱也包括复杂的图形例如显示一条信息或使用者自定义块例如输送单元为使用者自定义块,就需要在工作区进行编辑所有WinCC flexible单元可以设定工作区的边线1.3. 工具箱工具箱包括目标的选择,你可以添加到你的屏幕上,例如图形目标或操作者控制单元。另外,工具箱也提供图书馆功能目标模板和花边的集合1.4. 属性纵览属性纵览是用来编辑属性的,例如,屏幕的颜色,属性纵览
4、只在个别的编辑器中才被使用2. 原稿2.1. Build_PLC_InternalRelease建立一个内部的标签 _PLC_InternalReleaseThis script is called by Value Changed of此原稿被叫做 _PLC_Commissioning and _PLC_Key_State的更改值根源:If SmartTags(_PanelTags_PLC_Commissioning) And SmartTags(_PanelTags_PLC_Key_State) Then SmartTags(_PanelTags_PLC_InternalRelease)
5、= TrueElse SmartTags(_PanelTags_PLC_InternalRelease) = FalseEnd If2.2. Common_Fill_IDsThis script is used for the initialization of the ID Numbers.Source:Dim iFor i = 0 To 200 SmartTags(_PanelTags_IDNumbers_IDNumber_ & i) = iNext2.3. MoviMot_Drive_UmrechnungThe calculation for the MoviMot data is do
6、ne in this script.Source:On Error Resume NextSmartTags(_PanelTags_DetailPicture_PT_DP_AS_V1000_SetSpeed1_Hz)=Abs(50 / 1500 * SmartTags(_PanelTags_DetailPicture_PT_DP_AS_V1000_SetSpeed1) * SmartTags(_PanelTags_DetailPicture_PT_DP_AS_V1004_FacConv)*SmartTags(_PanelTags_DetailPicture_PT_DP_AS_V1003_Fac
7、Corr)SmartTags(_PanelTags_DetailPicture_PT_DP_AS_V1001_SetSpeed2_Hz)=Abs(50 / 1500 * SmartTags(_PanelTags_DetailPicture_PT_DP_AS_V1001_SetSpeed2) * SmartTags(_PanelTags_DetailPicture_PT_DP_AS_V1004_FacConv)*SmartTags(_PanelTags_DetailPicture_PT_DP_AS_V1003_FacCorr)SmartTags(_PanelTags_DetailPicture_
8、PT_DP_AS_V1002_SetSpeed3_Hz)=Abs(50 / 1500 * SmartTags(_PanelTags_DetailPicture_PT_DP_AS_V1002_SetSpeed3) * SmartTags(_PanelTags_DetailPicture_PT_DP_AS_V1004_FacConv)*SmartTags(_PanelTags_DetailPicture_PT_DP_AS_V1003_FacCorr)2.4. Open_Home_PictureThis script opens the home picture.Source:ActivateScr
9、eenByNumber SmartTags(_Settings_Common_StartPictureNumber),02.5. Show_InterfaceShows and configures the Interface pictureiDB_Number: number of the DB at the PLC for this interfaceSource:If iDB_Number 0 Then SmartTags(_PanelTags_Interface_IF_DB_Number) = iDB_Number ActivateScreen _Common_Pictures_Int
10、erfaces_IF_Interface, 0End If2.6. StartUpPanelGeneral Startup definitions are done in this script (like setting up the start picture, ).Source:Dim xWrongConfigDim iPanelNr, iPlantNrDim aiPanelConfiguration1.99: FTM01101.199: FTM02201.299: FTM03501.599: FTM06Define the startpicture for each pannelFTM
11、01 (8)FTM02 (6)FTM03 (9)FTM04 (8)FTM05 (8)FTM06 (12)FTM07 (5)aiPanelConfiguration = Array(_Array(17,17,17,17,17,17,17,17), _Array(17,17,17,17,17,17), _Array(17,17,17,17,17,17,17,17,17), _Array(17,17,17,17,17,17,17,17), _Array(17,17,17,17,17,17,17,17), _Array(17,17,17,17,17,17,17,17,17,17,17,17), _Ar
12、ray(17,17,17,17,17) _)xWrongConfig = FalseSelect Case SmartTags(_Settings_PanelID)DummyCase -1:SmartTags(_Settings_Common_PanelDB) = 61SmartTags(_Settings_Common_StartPictureNumber) = 100Case ElseiPlantNr = SmartTags(_Settings_PanelID) 100iPanelNr = SmartTags(_Settings_PanelID) Mod 100If LBound(aiPa
13、nelConfiguration) = iPlantNr ThenIf IsArray(aiPanelConfiguration(iPlantNr) ThenIf LBound(aiPanelConfiguration(iPlantNr) = iPanelNr -1 ThenSmartTags(_Settings_Common_PanelDB) = 60 + iPanelNrSmartTags(_Settings_Common_StartPictureNumber) = aiPanelConfiguration(iPlantNr)(iPanelNr -1)ElsexWrongConfig =
14、TrueEnd IfElsexWrongConfig = TrueEnd IfElsexWrongConfig = TrueEnd IfEnd SelectIf xWrongConfig = True ThenSmartTags(_Settings_Common_PanelDB)= 0SmartTags(_Settings_Common_StartPictureNumber) = 2ElseSetConnectionMode hmiOnline, PLC_1End If2.7. Wair_n_secThis script waits n seconds.if xStart 0 the star
15、ttime will be setiMaxSec sets the maximum value for the endtime (only used when dtStartSec = 0)Source:Dim dtNow, iInternSecDim strPicIf xStart 0 Then SmartTags(_PanelTags_Common_PT_C_StartTime) = Now SmartTags(_PanelTags_Common_PT_C_StartDelay) = iMaxSec SmartTags(_PanelTags_Common_PT_C_ActStartDelay) = 0End IfIf iSec 100 Then iInternSec = 100Else iInternSec = iSecEnd IfdtNow = SmartTags(_PanelTags_Common_PT_C_StartTime)While DateDiff(s,dtNow,Now) iInternSec SmartTags(_PanelTags_Common_PT_C_ActStartDelay) = DateDiff(s,dtNow,Now)Wend
copyright@ 2008-2023 冰点文库 网站版权所有
经营许可证编号:鄂ICP备19020893号-2