ABB DCS 系统 培训课程 系列讲座 Control ModulesWord文件下载.docx

上传人:b****1 文档编号:5167817 上传时间:2023-05-04 格式:DOCX 页数:13 大小:60KB
下载 相关 举报
ABB DCS 系统 培训课程 系列讲座 Control ModulesWord文件下载.docx_第1页
第1页 / 共13页
ABB DCS 系统 培训课程 系列讲座 Control ModulesWord文件下载.docx_第2页
第2页 / 共13页
ABB DCS 系统 培训课程 系列讲座 Control ModulesWord文件下载.docx_第3页
第3页 / 共13页
ABB DCS 系统 培训课程 系列讲座 Control ModulesWord文件下载.docx_第4页
第4页 / 共13页
ABB DCS 系统 培训课程 系列讲座 Control ModulesWord文件下载.docx_第5页
第5页 / 共13页
ABB DCS 系统 培训课程 系列讲座 Control ModulesWord文件下载.docx_第6页
第6页 / 共13页
ABB DCS 系统 培训课程 系列讲座 Control ModulesWord文件下载.docx_第7页
第7页 / 共13页
ABB DCS 系统 培训课程 系列讲座 Control ModulesWord文件下载.docx_第8页
第8页 / 共13页
ABB DCS 系统 培训课程 系列讲座 Control ModulesWord文件下载.docx_第9页
第9页 / 共13页
ABB DCS 系统 培训课程 系列讲座 Control ModulesWord文件下载.docx_第10页
第10页 / 共13页
ABB DCS 系统 培训课程 系列讲座 Control ModulesWord文件下载.docx_第11页
第11页 / 共13页
ABB DCS 系统 培训课程 系列讲座 Control ModulesWord文件下载.docx_第12页
第12页 / 共13页
ABB DCS 系统 培训课程 系列讲座 Control ModulesWord文件下载.docx_第13页
第13页 / 共13页
亲,该文档总共13页,全部预览完了,如果喜欢就下载吧!
下载资源
资源描述

ABB DCS 系统 培训课程 系列讲座 Control ModulesWord文件下载.docx

《ABB DCS 系统 培训课程 系列讲座 Control ModulesWord文件下载.docx》由会员分享,可在线阅读,更多相关《ABB DCS 系统 培训课程 系列讲座 Control ModulesWord文件下载.docx(13页珍藏版)》请在冰点文库上搜索。

ABB DCS 系统 培训课程 系列讲座 Control ModulesWord文件下载.docx

∙ConnectControlModulestoparameters/variables.

∙UseControlModulesinthegraphics.

∙ModifyaControlModule.

∙CreateControlModulesusingotherControlModules,inanewlibrary.

∙Visualizingtheprogramusinggraphics.

∙Describetheideaofobjectorientation.

∙Describetheadvantages/drawbacksofconnectingtoI/Oindifferentdepths(toglobalvariables,toprogramvariables,toFBvariables,usinganI/O-recordetc.).

∙CreatesimpleinteractionwindowsassociatedtoFunctionBlocksorControlModules.

17.1.3ReferenceDocumentation

Usetheonlinehelp:

Contentstab,ControlModuleDiagramEditor

17.2Lesson1-UsingControlModules

17.2.1Description

ThislessondescribestheadvantagesoftheABBControlModulesandisanintroductiontohowanApplicationcanbeorganizedwhenusingthem.

17.2.2Objectives

Oncompletionofthislessonyouwillbeableto:

17.2.3General

TheControlModuleisthemainstructuringelementforcontrollerapplicationprogramming.Itisaself-executablecontainerforapplicationprogramcodeandgraphics.BecauseaControlModuleinvolvesgraphicalobjects,youcreateitbyusingnotonlythePOUEditor,butalsotheControlModuleeditor.ControlModulesaresuitableforrepresentingcomplexprocessobjectsandcontroloflargeapplications.WorkingwithControlModulesinvolvesthoroughobjectorientedprogramming,asmuchoftheobjectcontrolaspossibleshouldbeencapsulatedintheControlModuleandtheoutwarddependencyshouldbeminimized.Apartfromconventionalprogramming,theControlModuledesignmayinvolveimplementationofgraphicalinteractivity.

ThecompilerdeterminestheapplicationdataflowandexecutionorderofControlModulesautomatically.Therefore,thefinalapplicationgetsflexibleandeasytomaintainasintegrationoffutureadditionalControlModulesaredoneautomatically.ControlModulescanbestructuredhierarchicallyinanumberoflevels.YoucanusethesameControlModuleTypeforseveralControlModules,eachperformingdifferenttasksdependingonparameterconnections.

17.2.4

DifferencebetweenFunctionBlockandControlModule

17.2.4.1GeneralComparison

ThemostimportantdifferencesbetweenControlModulesandFunctionBlocksaresummarizedinthetablebelow.

Property

ControlModule

FunctionBlock

Executionorder*

Automatic;

compilerdetermined,basedondataflow.

Manual;

codestatements,basedonprogramflow.

Executionperscan

Thecodeblocksarealwaysexecutedonceperscanaccordingtodataflowanalysis.

Afunctionblockcanbecalledandexecuted,zero,one,orseveraltimesperscan.

Staticparameterconnections*

Yes.Amostimportantfeature:

Astaticparameterconnectiondoesnotchangeduringexecution;

itcanonlybechangedviacodechangesandrecompilation.Thestaticconnectionsaresetatcompiletimeandyieldsefficientcodegeneration;

powerful,compiler-basedprogramanalysis;

andbetterperformance.

No.ParametersarecopiedeachtimetheFunctionBlockisexecutedaccordingtotheIEC61131-3standard.Fordeepandcomplexhierarchies,theparametercopyingoffunctionblockscostssignificantCPUtime.

Graphics*

Yes,inthreedifferentways;

free-layoutprogramming,supervision,andinteraction.

IndirectlyviainclusionofsubControlModules.

Parameters

In_out,canbeconnectedtographics.Connectionscannotbeinverted:

NOT"

actualparametername"

isinvalid.).

In,Out,orIn_out,onlyIn-andOutparameterscanbeconnectedtosubcontrolmodules.

Together,thepropertiesmarkedwith*facilitatedesignofapplicationlibrariesandre-useofcomplexapplicationbuildingblocks.

17.2.4.2Graphics

YoucandesignaControlModuletoincludeinteractiveandsupervisoryprocesspictures(suchascommandbuttons,inputfieldsandtrendcurves).Inaddition,ControlModulescanberepresentedbycertaininteractiveiconswhichfacilitatestheprocesscontrolandsupervision.

17.2.4.3Executionandcodesorting

ThemaindifferencebetweenControlModulesandFunctionBlocksisthatControlModulesareexecutedinanorderbasedonoptimaldataflow,asdeterminedbythecompiler.TheexecutionorderofFunctionBlocksfollowstheprogramflowasimplementedbytheprogrammer.ControlModulesareonlyexecutedonceperscanwhereasFunctionBlocksmaybeexecutedseveraltimesperscan.

17.2.5WhenisitsuitabletouseControlModules

Beforeyoustarttodesignanapplication,youshoulddecidewhethertousetraditional(sequential)programcodeandfunctionblocksoranobject-orientedsolutionbasedoncontrolmodules.Apartfrompersonalpreferences,thechoicewouldtypicallydependonapplicationsizeandtheneedforre-usableobjects.

Asageneralguideline,traditionalprogrammingistypicallysuitableforsmallapplicationswhereascontrolmodulesarerecommendedforlargeapplications.Controlmodulessupportobject-orientedprogrammingandcodere-usetoagreaterextentandthereforemakealargeapplicationmoreflexibleandeasiertomaintain.

Thesubsequentimplementationwillfollowoneofthebranchesinthefigurebelow.

Thefigureshowsthatalsotheobject-orientedsolutiontypicallyinvolvesfunctionblocks.Thisisbecauseobjectorientationbelowacertaincomplexitylevelisnotjustifiable.Inthiscase,traditionalprogrammingwithfunctionblocksconstitutesthemostrationalalternative.

Insummary,itisrecommendedtousecontrolmodulesratherthanfunctionblocksinthefollowingcases:

∙Forlargeapplications(increasedperformance)

∙Forprocessobjects(codesortingfacilitatesapplicationstructuring)

∙Whenaflexiblesolutionisneeded(objectorientation;

re-useisdesired)

∙Whenthereisaneedtoconcentratethecontrolofacertainobjecttoonecodelocation(facilitatesmaintenance)

17.2.5.1

TheControlModuleeditors

TheControlModuleeditorisacombinedtoolfordrawingandprogramming,itallowsyoutocreateandeditthegraphicalobjectsofaControlModuleandthenconnectvariablestotheseobjects.ItalsogivesyoudirectaccesstothePOUeditor,inwhichyouwritetheControlModulecodeanddeclarevariablesandparameters.

YoucanbothcreatenewControlModulesandeditalreadyexistingoneswiththeControlModuleeditor.Thedrawingfunctionsincludenotonlybasicautoshapes(lines,rectangles,etc.),butalsoreadytouseinteractionobjects(OptionButtons,CheckBoxes,etc.)andcompositeobjects(HistoryGraphs,StringSelectors,etc.).Thegraphicalobjectsaredynamic,thatispointscanmovewithchangingvariablevalues,colorscanchange,numericalvaluescanbepresented,etc.

17.2.6CreatingaControlModule

17.2.6.1Introduction

AControlModulecanbecreatedeitherfromtheProjectExplorerdirectly(textgenerated)orfromaControlModulesWindow(graphicsgenerated).Thefollowinggeneralpropertiesapply:

∙AControlModulealwayshasaparentPOU.ThisPOUTypecanbeaControlModuleType,FunctionBlockType,oranapplication.

∙AControlModulecanbeshowngraphicallyinsidethegraphicoftheparent(iftheparentisamoduletypeoranapplication).

∙AControlModulecanalsobeshown(standalone)inaninteractionwindow(inonlinemodeonly).

17.2.6.2CreateaNew,Graphics-GeneratedControlModule

Right-clickonacontrolmoduletypeintheprojecttreeandselecttheGraphicsentrytoopentheControlModuleTypeWindow.Double-clickinthedrawingareatoactivatethegrid.SelectCreate>

ControlModule...toopenthe"

CreateaControlModule"

dialogboxinwhichyouspecifytheControlModulenameandassociatedType.Exceptforthatagraphics-generatedControlModulebydefaultbecomesgraphicallyvisible,theaboveprinciplesapply.

17.2.7Connections

ControlModulescanbeconnectedtoeachotherintwodifferentways;

viagraphicsandviatext.Youimplementgraphicalconnectionsinthecontrolmoduleswindoworthecontrolmoduletypewindowandtext-basedconnectionsintheConnectionEditor.

YoucanreachtheConnectionEditorviatheConnectionsentry,accessiblewhenacontrolmoduleisselected,choose(Objects>

Connections)orConnectionsfromright-clickpop-upmenu.Acontrolmoduledesignedtobegraphicallyconnectedhavetobebuiltwiththenodesinplace,readyforlaterconnection.Graphicalconnectionsaresuitableforobtainingacomprehensiveviewofmainflows,forexampleinaPIDControllercomprisinganinputcontrolmodule,amaincontrolmodule,andanoutputcontrolmodule.(Yet,observethatabundantuseofgraphicalconnectionsmayslowdownthesystem.)

17.2.7.1Textualconnection

ParameterscanbeconnectedtoactualvariablesintheconnectionlistoftheConnectionEditor.Itisnotpossibletoconnectthesameparameterbothgraphicallyandtextually.TextualconnectionistheonlywaytoconnectparameterswhenthecontrolmoduleissubordinatetoaFunctionBlock,asnosurroundinggraphicsthenexist.

17.2.7.2Graphicalconnection

Graphical

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > PPT模板 > 商务科技

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2