Beruflich Dokumente
Kultur Dokumente
HomeISAPublicationsInTechMagazine2016/SepOctFactoryAutomation:Programmingstandardsimproveautomationandcontrols
AbouttheAuthor
BillLydonisInTechschiefeditor.
Hehasmorethan25yearsof
industryexperienceinbuilding,
industrial,andprocess
automation,includingproduct
design,applicationengineering,
andprojectmanagement.He
startedhiscareerworkingwith
computerbasedmachinetool
controlsinotherpositions,he
appliedprogrammablelogic
controllersandprocesscontrol
technology.Inadditiontolarge
companyexperience,he
IEC611313andPLCopenstandardsimproveeveryaspectofacontrolandautomationlifecycle. cofoundedandwaspresidentofa
venturecapitalfundedindustrial
automationsoftwarecompany.
IEC611313,alongwithPLCopenextensionsandsupport,providessoftwarestandardsessential Lydonbelievesthesuccess
forefficientlyachievingcompetitivemanufacturingincludingimplementingIndustry4.0,Industrial factorsinmanufacturingare
InternetofThings,andInternetofThingssystems.Thestandardsenableengineerstocreate changing,makingitimperativeto
industrialautomationapplicationsusingstructuredmodernsoftwaretechniquesthathavebeen applyautomationasastrategic
proveninthecomputerindustryovermanyyearstoincreaseproductivity,quality,andfunctionality tooltocompete.Heisalso
ofindustrialautomationsystems.Anothermajorbenefitisacommonbaseofunderstandingand involvedwithPLCopenstandards
trainingforapplicationengineersandservicepeople. astheNorthAmerica
representative.
Background ReaderFeedback
TheIEC611313standardissupportedbytwogroups:theInternationalElectrotechnical Wewanttohearfromyou!Please
Commission(IEC)andPLCopen. sendusyourcommentsand
questionsaboutthistopicto
IEC61131isanInternationalElectrotechnicalCommission(www.iec.ch)standardforindustrial
controllersthathassevenparts.IEC611313definesprogramminglanguages.Since1906,theIEC
hasbeenanonprofit,nongovernmentalinternationalstandardsorganizationthatpreparesand
publishesinternationalstandardsforallelectrical,electronic,andrelatedtechnologiescollectively
knownaselectrotechnology.EightytwocountriesareIECmembers,andanother82participatein
theaffiliatecountryprogram.TheIECisheadquarteredinGeneva,Switzerland,withregional
centersinAsiaPacific(Singapore),LatinAmerica(SoPaulo,Brazil),andNorthAmerica(Boston).
PLCopen
ThePLCopen(PLCopen.org)organizationwasfoundedin1992asanotforprofitindustry
associationofmembercompaniescommittedtodevelopingopenindustrialautomationsoftware
standardstoincreasefunctionalitywhilereducingengineering,training,operations,and
maintenancecosts.PLCopenhasavendorcertificationprogram,andcertifiedproductsarelisted
ontheorganizationwebsite.PLCopenisheadquarteredinTheNetherlands,withregional
representativesinNorthAmerica(www.plcopenna.org),Japan(www.plcopenjapan.jp),andChina
(www.plcopen.org.cn).ThewebsitedescribescertificationsofIEC611313compliantprogramming
systems.
https://www.isa.org/intech/20161003/ 1/4
11/2/2016 FactoryAutomation:ProgrammingstandardsimproveautomationandcontrolsISA
PLCopencertificationincludeconformance,safety,andmotioncontrol.Vendorcertifiedproducts
arelistedonthePLCopenwebsite(www.PLCopen.org).
Internet of Things
InternetofThings(IoT)conceptsaredrivingcomputingintoedgedevices,suchassensorsand
powerfulsinglechipcomputers,andIEC611313issuitedfortheseembeddedapplications.It
providestheprogrammingstandardtosupportimplementationsofIoTtechnologyforindustrial
controlsinautomation.
Theintegrateddesignenvironmenttodevelop,simulate,anddebugautomation,control,and
humanmachineinterfaces
Multitasking oriented
IEC611313definesataskorientedenvironmentthathastheflexibilitytomeetthecontrol
requirementsforanyapplication.Atthehighestlevel,allthesoftwarerequiredtosolveaparticular
controlproblemcanbeformulatedasaconfiguration.Aconfigurationisspecifictoaparticular
typeofcontrolsystem,includingthearrangementofthehardware(processingresources,memory
addressesforI/Ochannels,andsystemcapabilities).Withinaconfiguration,usersdefineoneor
moreresources.OnecanlookataresourceasaprocessingfacilitythatcanexecuteIECprograms.
Withinaresource,oneormoretaskscanbedefined.Taskscontroltheexecutionofasetof
programsorfunctionblocks.Thesecanbeexecutedeitherperiodicallyorupontheoccurrenceofa
specifiedtrigger,suchasthechangeofavariable.Programsarebuiltfromanumberofdifferent
softwareelementswritteninanyoftheIECdefinedlanguages.Typically,aprogramconsistsofa
https://www.isa.org/intech/20161003/ 2/4
11/2/2016 FactoryAutomation:ProgrammingstandardsimproveautomationandcontrolsISA
networkoffunctionsandfunctionblocks,whichcanexchangedata.Functionandfunctionblocks
arethebasicbuildingblocks,containingadatastructureandanalgorithm.
Data types
IEC611313definesstrongdatatypingtopreventprogrammingerrors(e.g.,dividingadatebyan
integer).CommondatatypesareBoolean,integer,realandbyteandword,date,array,timeofday,
andstring.Basedonthese,userscandefinespecificdatatypesforanapplication,knownas
deriveddatatypes.Variablesareonlyassignedtoexplicithardwareaddresses(e.g.,inputand
outputs)inconfigurations,resources,orprograms,sothereisahighlevelofhardware
independencethatsupportsthereusabilityofthesoftware.Thescopesofthevariablesarenormally
limitedtotheorganizationalunitinwhichtheyaredeclared(e.g.,local).Thismeansthattheir
namescanbereusedinotherpartswithoutanyconflict,eliminatinganothersourceoferror.Ifthe
variableshaveglobalscope,theyhavetobedeclaredasglobal.Parameterscanbeassignedan
initialvalueatstartupandcoldrestarttoensureproperoperation.
Programming languages
TheIEC611313standarddefinesfivelanguagesthatallcanbeusedtogetherandsharecommon
datatypes.
Instruction List
InstructionList(IL)istextuallanguagethatresembleslowlevelassemblerprogramming.
Ladder Diagram
LadderDiagram(LD)hasitsrootsintheU.S.andisbasedonthegraphicalpresentationofRelay
LadderLogic.RelayLadderLogicisacknowledgedtobethefirstgraphicalindustrialautomation
programmingmethodthatsignificantlyimprovedproductivity.
Atemperaturecontrolloop,orproportional,integral,derivative(PID),isanexcellentexampleofa
functionblock.Oncedefined,itcanbeusedoverandoveragain,inthesameprogram,different
programs,orevendifferentprojects.Thismakesithighlyreusable.
Functionblockscanbewritteninanyofthe
Standardfunctions
IEClanguages.Inaddition,formany
implementations,userscancreatefunctions IEChasdefinedstandardfunctions,suchas
withtheCprogramminglanguage.These ADD(ition),ABS(absolute),SQRT,SINus,and
capabilitiesletuserscreatenewfunction COSinus.Thesefunctionsareavailableto
blocksforprojectsandapplicationsto useinIL,LD,ST,andFBprogramming.
promotereuseofprovencode.
Structured Text
StructuredText(ST)isaverypowerfulhighlevellanguagewithitsrootsinAda,Pascal,andC.It
containsalltheessentialelementsofamodernprogramminglanguage,includingselection
branches(IFTHENELSEandCASEOF)anditerationloops(FOR,WHILE,andREPEAT).All
standardIEC611313functionscanbeusedinStructuredTextprogramming,anduserscancreate
theirownfunctionblocksforapplicationsandprojects.
https://www.isa.org/intech/20161003/ 3/4
11/2/2016 FactoryAutomation:ProgrammingstandardsimproveautomationandcontrolsISA
Recent developments
TwomajornewdevelopmentsaretheadditionofthePLCopenXMLinterchangestandardandthe
PLCopenOPCUAstandard.
XML interchange
ThePLCopenXMLstandardprovidesanopen,
nonproprietary,softwareinterfacefortheinterchangeof
industrialandprocesscontrolprogramsbetween
controls,productlifecyclemanagement,machineand
processsimulation,computeraideddesign,
documentationsoftware,andothersystems.The
PLCopenXMLschemas,documentation,andan
introductionareavailablefreeatwww.controlxml.com.
ThefilesincludeanexplanationofthePLCopen
XMLSchema,adocumentonXMLformatsforIEC
611313,andXMLschemafiles.ThePLCopen
standardhasgainedacceptancebytheAutomationML
organization(www.AutomationML.org).
OPC UA
PLCopenjointlydevelopedthePLCopenOPCUAstandardwiththeOPCFoundation.Itincludes
datamodelstosimplifytheinterfacebetweencontrollers,controlsoftware,andbusinessenterprise
systems.Theintegrationofdatawithrealtimecontrolandbusinessinformationsystemsisdone
usingthesefunctionblocks.
Thefunctionblocksarealsodefinedfordirectmachinetomachinecommunicationsbetween
multiplevendorcontrollerstocoordinateautomation.Theseareimportantfunctionsforachieving
thegoalsofIndustry4.0,theIndustrialInternetofThings,andsmartfactoryapplicationstoimprove
manufacturingefficiencyandproductivity.Thesefunctionblockssimplifytheintegrationof
production,processcontrol,packaging,andothermachinesintoefficientnewsystemarchitectures.
https://www.isa.org/intech/20161003/ 4/4