




已阅读5页,还剩40页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
honeywellebi300trainingdisplay serverscripting thiscourseprovidesanoverviewofthefollowingtopics scriptingdifferencesbetweenhmiwebanddspdisplaysunderstandingdisplayscriptingexampleserverscriptingbasic displayscripting dspdisplayscriptinghmiwebdisplayscripting scriptingdifferencesbetweenhmiwebanddspdisplays becausehmiwebanddspdisplaysusedifferentobjectmodels therewillbesubstantialdifferencesbetweenahmiwebscriptandafunctionally identicaldspscript noinherentobjectindspscripts youdonotneedtospecifytheobjectnameinascriptifthescriptisattachedtothatobject thefollowingscriptthereforemovestheobject rect1 totheleft subrect1 onclickleft left 10endsubinhmiwebscripts allobjectsmustbeidentified usingeitherofthefollowingtechniques explicitlyidentifytheobject rect1 left rect1 pixelleft 10usevbscript s me keyword thejscriptequivalentisthe this keyword me left me left 10usetheeventobjectanditssrcelementproperty window event srcelement pixelleft window event srcelement pixelleft 10noapplicationobjectthereisnoapplicationobjectforhmiwebscripts itsnearestequivalentiswindow external indspdisplays theapplicationobjectrepresentsstationitself aswellasthemenu toolbar messagezoneandcommandzone tocallupadisplayinahmiwebscript youwouldusethis window external currentpage display1 tocallupadisplayinadspscript youwouldusethis application currentpage display1 nostationscriptsbecausethereisnoapplicationobjectinhmiwebscripts seenoapplicationobject youcannotwritescriptsforstation nopage leveldictionaryobjectdspscriptshaveadictionaryobjectonthedisplay hmiwebscripts however onlyhaveoneattheapplicationlevel whichyouaccessviawindow external differentobjecthierarchydspscriptscannavigatetheobjecthierarchyviatheobjectscollection hmiwebscriptscanusearangeofcollections themostusefulbeingallandchildren andpossiblyalsotags theallcollectionallowsyoutoiteratethroughalltheelementsofadisplay whilethechildrencollectionallowsyoutoiteratethroughthechildrenofanobject suchasagrouporadiv thetagsmethodreturnsacollectionofallobjectsofagiventag whichcanbeusedtoperformanoperationonallobjectsofasingletype useofthestyleobjectdspscriptsaccessanobject spropertiesdirectly forexample object1 left 100hmiwebscriptsaccessthepropertiesofsometypesofobjectthroughthestyleobject object1 style pixelleft 100thestyleobjecthasmanyproperties andgovernsposition layout suchasmargins visibilityandfontattributesforhtmlelements confirmationofchanges clickswithdspscriptsitispossibletousethecancelclickandcanceldoubleclickmethodstocancelanevent forexample thescriptcanchecktheoperator ssecuritylevelbeforepassingtheeventtotheserver withhmiwebscriptsyoucanusethecancelchangemethodandcanceleventmethodondynamicobjects objectsthatarealinkedtothedatabase activexscriptinginstation whatdoesactivexscriptinginebidisplaysmean usingvbscript awiderangeofpowerfulapplicationscanbecreatedattachvbscriptcodetodisplayelementswithinstationsuchas attachcodetoapage acombobox arectangleetccodeisactivatedonyourchoiceofeventsuchas onmouseenter onchangeofvalue onmouseclicketcthescripteditorisavailablethroughdisplaybuilder whatdoesactivexscriptinglooklike objectdetails pagedetails scripteditor menu activexscripting whywouldiuseactivexscripting scriptsareusedtoenhanceebidisplaysusetoprovidedisplayanimationsuchasobjectsmovingonthescreen doorscanopenandclose carsandpeoplecanmoveobjectsappearingordisappearingbasedoncertainconditions showonlywhatiscurrentlyrelevantpopupdialogboxesforinformationandconfirmationmessagespoppedupinthemessagezonenote scriptsonlyhaveanindirectlinktotheebidatabasesoarenotgenerallyusedforebidatamanipulation examplescripts popupdialogboxforoperatorconfirmationofamanualcontrol 判断条件 启动ontimer事件 清除这个object的ontimer事件 触发程序运行的事件 如onchange onclick等 变换风机的shape的图片 跳过停止图片 pointstonote rememberthefollowing scriptingprovidesverypowerfulfunctionalitybutrequiresgoodprogrammingskillstobeusedeffectivelyscriptingisdesignedfordisplayanimationandisnotoptimizedforothertypesofapplicationscheckwithhscifyouhaveanyquestionsaboutwhatscriptingwillallowyoutoachieve understandingscripting application appwindow dictionary page displayobject 1 displayobject 2 object understandingobjectsproperties objectscharacteristicse g fillcolormethods functionorcommande g redrawevents actionsapplicabletotheobjecte g onclick examplesofobjectsandproperties applicationobjectexampleproperties alarmzonepointid currentpage currentpointid operatorid pagebackgroundcolorappwindowobjectexampleproperties height left title top width windowstatedictionaryobjectexampleproperties count application parentdisplayobjectexampleproperties fillcolor height left linecolor value visible width typeseedisplaybuildermanualpage108 events scriptsareeventdriventheyneedaneventtooccurinordertobeactivatedeventnamesareprefixedwith on e g onclickeventhandlersarecalledbeforeeventsareprocessedsothatthescriptcancanceltheeventifnecessarycommoneventsonclick activatedwhenamouseisclickedonceontheobjectonpageload activatedwhenanewdisplayisloadedonchange activatedwhenauserchangesthevalueofanobject generalscriptinginformation referencingobjectsifthescriptisattachedtotheobject thenyoudon tneedtoreferenceitbynamee g fillcolor vbredifyouwishtochangethepropertyofanotherobjectfromthisscript thenyouneedtorefertoitsname e g rectangle1 fillcolor vbredifreferencingadisplayelementwithagroupifrectangle1isingroup1thengroup1 objects item rectangle1 fillcolor vbredorreferencebynumbergroup1 objects item 1 fillcolor vbred generalscriptinginformation visibilityofscriptsanindividualvariableisonlyvisiblewithinitsownscriptifyouneedvariablesvisiblethroughoutthepage thenyoudefinetheminthegeneralscriptattachedtothepageobjectthedictionaryobjectallowsyoutocreatevariablesvisibleacrossmanypagesandtheapplicationobjectdebuggingscriptsstartstationindebugmodebyaddingtheparameter debugscripttothestartupcommandlinee g station exe debugscriptthiswillinvokeadialogboxtoletyoustopscriptsmanually generalscriptinginformation scriptsarewritteninvbscriptwhichisastandardprogramminglanguageformoreinformationonvbscriptsee timers usedtomoveobjectse g createatimerandthenusetheontimereventtomoveadisplayelementashortdistancedonotusetimerintervalslessthan100msthetimerneedstobeattachedtotheobjectwhichwillbeusingtheontimerevente g subcircle3 onload createtimer 1 250 endsubsubcircle3 ontimer circle3 left circle3 left 100endsubdon tforgettokillthetimerwhenyouhavefinishedbyusingkilltimer examples messagestotheoperatorexample1 popupamessageboxthisusesthevbfunctionmsgboxmsgbox prompt buttons title helpfile context subrect3 onclick popupamessageboxmsgbox hereisamessage vbokonly messagebox endsub examples example2 messagetooperatorwithachoicesubrect5 ondoubleclick if rect5 fillcolor vbwhite thenmessage changeboxcolourtoblue ifmsgbox message vbyesno colourchange vbyesthenrect5 fillcolor vbblueendifelseif rect5 fillcolor vbblue thenmessage changeboxcolourtowhite ifmsgbox message vbyesno colourchange vbyesthenrect5 fillcolor vbwhiteendifendifendsub examples example3 usingthemessagezonesubrect6 onmouseenter application messagezonetext thisisamessageinthemessagezone endsubandclearingthemessagezonesubrect6 onmouseleave application messagezonetext endsub examples comboboxchoice onloadeventsubcombobox1 onload createacomboboxwhichisnotlinkedtoadatabasepointcombobox1 addlistitem on 0combobox1 addlistitem off 1endsubonchangeeventsubcombobox1 onchange vnewvalue ifvnewvalue on thentextmessage visible trueelsetextmessage visible falseendifendsub example movingobjects variabledeclarationsinthegeneralscript variabledeclarations forthegatedimgoingdowndimtoppos fortheconveyorbeltdimgoingrightdimrightsidedimleftsidetwoobjects realbox1andinvisiblebox2subbox1 onload x createtimer 1 100 goingright truerightside box2 leftleftside leftendsub example movingobjects ontimereventsubbox1 ontimer timerid ifgoingright truethenifleftleftsidethenleft left speed valueelsegoingright trueendifendifendsub exercises createatestdisplayincluding 1 aboxwhich whenclickedon amessageboxpopsupwiththemessage thisisabox 2 atextentryfieldwhichcheckstoseethattherangeisbetween20and303 acirclewhich whendoubleclickedon popsamessageintothemessagezonesaying thisisacircle don tforgettoclearthemessagetoo 4 createaboxwhichmovesacrossthescreentotherightsteadily 5 createadisplaywhichlinkstoaworddocumentthatyouhaveonyourmachine6 createadisplaywhichlinkstothed ebiserverscripting agenda whatisserverscripting positioningkeyfeaturesobjectmodeloverviewconfiguringandrunningserverscriptinginebiexercisescodingtips whatis server scripting whatisscripting defineditas runningashortpieceofprogramcodethatextendstheexistingfunctionalityasprovidedbyanapplicationwhatisserverscripting afacilitytoextendserverfunctionalitythatiseasytouseintegratedwithplantscapeengineeringtoolsprovidesequivalentofdisplayscriptingfunctionalityontheserverscriptscaninteractwithserverobjectssuchaspointstargetedatuserswhohavesomevbskillse g projectengineersprovidesnewinterfaceforapplicationdevelopersanautomationserverinterfacehasbeenaddedtotheebiserverbringsobjectorientedprogramming oop totheserver positioning scripting informationprocessingdatahandoffderivedcalculationsinitiateactionsonservereventsaneasierwaytoimplementcustomactionalgosoptimisedforrelativelyshort 30lines scriptsnotintendedforimplementingcontrolstrategiesdotheseinthecontroller applicationsthatarecomputationallyintensiveorrequireextensivefilehandlingusec orvisualbasicfortheseactivitiesrequiringuserintervention keyfeatures easeofuseeditthescriptsforanobjectintheplacethatconfigurationfortheobjectisdone e g reportsfromthereportconfigurationdisplays doesn tblockpointprocessingscriptsarefiredasynchronouslytotheevents i e notintendedforpvalgolikebehaviour doesn timpactimportantserverfunctionslowprioritysubsystemrobustnesssafelyhandlespoorlywrittenscripts objectmodeloverview server points parameters areas reports eventinfo overview serverobject eventsontimeronstartuponshutdownondaystartonshiftstartonmessageonmessageacknowledgepropertiesstatus get paramvalue get put methodscreatetimerkilltimerrequesttaskgeneratealarmgeneratemessagecreatealarmdetails overview pointobject eventsontimeronalarmonnormalonacknowledgepropertiesparamvalue get put methodscreatetimerkilltimercommitvalue overview paramobject eventsonchangeonoperchangepropertiesvalue get put quality get pointname get paramvalue get put methodscommitvalue overview reportobject eventsontimeroncompletionpropertiestype get numb
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 关于空调合同标准文本
- 主机备件采购合同标准文本
- 入股汽修店合同样本
- 会展合同标准文本分析
- 业务鉴定合同样本
- 企业股东合作合同标准文本
- 供货合同与买卖合同样本
- 买卖个人房产合同范例
- ppp医院合作合同样本
- 2025前期物业管理合同(版)《物业管理合同》
- 2025年“世界水日”活动知识竞赛考试指导题库100题(含答案)
- 《煤矿安全生产责任制》培训课件2025
- T-SZSA 030.1-2024 医院及医疗机构建筑空间照明技术规范 第1部分:总规范
- 公开课一等奖创新教学设计 第四单元 明清中国版图的奠定与面临的挑战(无答案)必修 中外历史纲要(上)
- 2025年时政题库及答案(100题)
- 急诊与灾难医学知到智慧树章节测试课后答案2024年秋广西中医药大学
- 耐磨陶瓷复合管项目备案申请可行性研究报告
- 三重一大决策事项清单
- JJF(皖) 181-2024 沥青混合料轮碾成型机校准规范
- 福建省高速公路施工标准化管理指南(工地建设)
- 航信Eterm指令及其功能描述与分类
评论
0/150
提交评论