You are on page 1of 247
Technology and Solutions Caries i z 800xA applications for Minerals Configuration and Operation Objectives Participants learn the operation and configuration of the Industrial” Extended Automation ‘System 800xA with the Minerals application libraries. Upon completion of this course, the students know the system architecture and the hard- ware components of the controller. They know how to configure, modify and test applica- tion programs with Control Builder Professional and Function Designer. They are able to operate the HSI (Human System Interface) and to configure graphics, trends and alarm lists. They know the aveilable Minerals libraries and understand the basic structure of en application program with the respective control modules. Contents System architecture Hardware AC800M User interface / Plant explorer OPC communication Variables and Data types Monitcring and testing applications Programming according IEC 61131-3 Function Block Diagram (FBD) Structured Text (ST) * Program configuration with control medules Minerals libraries Program structure Function Designer Process graphics and faceplates Events and alarms Data logging and trends Bulk Data Manager Troubleshooting Methods Lectures, demonsirations and practical exercises, Participants Engineering, planning, operating, commissioning, maintenance and service personnel, working in the field of Minerals applications Prerequisites Basic knawledge of automation and computer technology Attendance of course CHO05 or equivaient experience Duration 10 CH112 800xA applications for Minerals Configuration and Operation Day1 Day 2 * Course information * Industrial” Overview * System Architecture + 800KA System + ACEOOM Hardware Review IEC 61131-3 Concept and ABB extensions Plant Explorer / Structure handling Getting started Monitoring and testing a controller application Day 3 Day 4 © Review + Monitoring and testing a controller application, continuation + Library Overview and handling + Variables and Data types + Programming in Funotion Block Diagram Review Programming in Structured Text HW Configuration and Task Connection Download in controller Programming with Control Modules + Comparison with Function Blocks - Create an application with Control Modules Day 5 * Review * Review of exercise: create an application with Control Modules + Minerals (BMI) lipreries = Overview of the different object categories and object types - Variable and application structure (Design rules) A8B University Switzerlai cHIT2 800xA applica’ Configuration and Operation ns for Minerals Day 6 Day 7 © Review of first week © Minerals (BMI) libraries ~How to acd I/-signals ~ How to insert a motor in an existing group * OPC Communication + Operation Review Operation, continuation ~ Alarm and Event hancling = Trend handling - Overview of the faceplates and Graphic elements for all object types Process Graphics ‘ ~ Create graphic cisplays = Mine woreles aa - Minerals ActiveX Controls and - Object handling reas acments Day 8 Day9 © Review + Review + Process Graphics, continuation + Workshop ~ Add expressions ~ Configure display navigation + Alarm & Event configuration + Date logging and trends - Logging process signals ~ Create trend displays + Insert a motor in an existing group - Add the corresponding VO-signals - Adapt the graphic dispiay ~ Create a trend display Test Backup / Restore ‘System configuration and — set up = Delete sysiem = Create system Day 10 * Review + System configuration and — set up, continuation Import BMI Demo - Make the BMI Demo functional «Tips & Tricks from the teacher © Course reflection ABB University Switzerland Realtime, integrated Solitons for power ‘utomation, and Inferration Industrial'™ Welcome to the warld of | Industriat!T nos Content = Industrial Products and Solutions a Industrial” enabled / Certification a Industrial Architecture @ Industrial? Benefits 63 oe What is Industrial™? = Industial™ is the reabtime integration of information systems, and automation systems across the entire enterprise. The situation of today Mp eels A = New systems: = Many different formais Time consuming 1 Outdated information 3 1 There is'2 high potentis! to optimize the value chain by integrating all this data and mexe this data acessibie in 2 consistent way, to averyoody in the whole enterprise DD ABD Industrial” provides a solution for this Industrial! . .. The Enterprise Productivity Suite = Reusable, intelligent products and applications: = Copy and Paste enginsering = Plug and Produce instalation Real-Time automation and information ABB Content = What is Industrial™ = Industrial? enabled / Certification = Industrial? Architecture = Indusinal Benefits ABB The Industrial!™ Building Blocks ==". 3 Compatibie, reusable products and applications from ABB and its partners = 0 functional categories of ABB core expertise = Indusirial” Enabled for ‘seamless integration with each other and third partis = Field fa Fund YA w insite 2 Iw arior The =A Products 1 Operatet - Process Portal : ARB The: Products = Operaio™ - Procass Portal «Operate - Process Panel 1 Operate - Pocket Portal = Control” - Control Software for AG BOOM/C and Haraware The Products al eh | + Operate 1 Operate!” - Process Panel = Operate” - Pocket Portal Contr" - Control software fer ACADOM/C and harewars = Conteat S209 0 Inform Historian = Produce Batch The Products fk Loco ea [ea = Operate” Process Portal = Operate" - Process Panel = Operate - Pocket Porta) = Contso*- Control sonware for Aco) 4} ard hardware = Contro! S800 /0 3 Inform®- Historian = Produce” -saten = Engineer - Engineering Studio «© Bulk Daca Manager 2 Function Designer 1 Document wansger = Graphic Buller = Control Builder M+ A + Fleldbue Builcor Industrial!” Solution Suites a Engineered irom Industiat!™ building blooks May be very broad or Very specific... Industrial for Fower Generation = Industriat™ tor Aluminium Industrial”— Configuration Example Content w What is Industrial = Industrial Producis and Solutions = Industrial Architecture = Industrial™ Benefits iT Industrial! product certification = Products from ABB and its pariners enhanced. tested and cenified for compatiallty = Built in, context sensitive information using ABS Aspect Object™ technology = Thousands of compatible building blocks for every ink in the value hein SEE Tivae22 | t All ABB products & solutions will be certified CERTIFICATION | aomnd 90% around 1% | | stands producis || communicating product, tat a linked fa sys i= eS == i There are four levels of certification: Level 0 —iniomation: the producthas basic aepect information standrd form (Ls. tecea <> specifications, drawings, manuais, product et Sassfeation, and eading Information) Im a! Laval {— Consciviy: the product can be er connoded to other Industrial products Pal anu basi date can be exchanges a * Level 2—negration: the product can = Se ‘exchange more sophisticated data (@iatus, maintenance, etc) with bother equipment 1 Level 3 - Optimization: the product has extended aspects that can interact with other ‘components fo optimize the SySiem in which they are Working. Content = What is Industrial™ @ Industrial™ Products and Solutions Se ee enabled / eon) en 2e x Industrial Benefits a Data is entered only once for use in many paris of the system ™ Aspect data stay with each abject for fast deployment and reuse 1 Real-time communication between all parts of the system = Copy and paste deployment, | of te-deployment | One common Platform ™ One common platform for all software products 4 Framework, Screen handling, Navigation 1 Windows 2000, standard PC hardware ™ Software Products plug onto the Platform = Connectivity are options to products Products Aspect systems Aspect integrator Platiorm (AIP) Cornochty opts ABB Aspect Object Concept = Plant entities are represented as Aspect Objects Vales, Pumps, Vessels. = Baton, Produc, Raw Mater = Obiects have different Aspacts = Graptics, Alans, Trends, Reports 1 ochanial Layeut, Gono Aspect 1 Onder Deion, Cost. ™ Different aspects are managed through differant Aspoct Sycters History: Hictorian 1 Contel aspect Conta Buide 1 Process Grantics assect: Grachios Buldor 1 Mechanical aspect AUOGAD: = Quer nendiing: SAP Aspect Objects™ Plant-Wodel Aspect (data) Integration via AIP E ee eee Content = What is Industrial! | m Industrial™ Products and Solutions | = Industrial enabled / Certification @ Industrial™ Architecture Using Standards = Windows 2000 Intornet Explorer 2 Wincowex0 Visual Basic Aativex Controls | OPC - OLE for Process Control Microsoft Component Object Model (COM) Fieidous Foundation i ggoan° eae S. Easy Navigation Access to the needed cata, just one mouse click away Multiple Views of the Plant Process point ofview —hysicalleyout_ Network Topeloay Funstonel Structure Location Structure Control Structure ee Sate a, eet tele Taeancnes Tepicios a Egcciiemtce | EBewrostosan” | ES iecey ico ry Pa cine | are Saale | 38 ders tome | 5B isu Sey Eee Tom eqicnae E epet pene ie 2a ee Sg Fr cesta EO town cove System benefits Integrates Information ‘SINGLE wnaw o Gontl Supense sn Cptmizaton of yourlat + SNPLENevgaten oe alert iiomatond) wing ine ABS ‘pee Ob! Tecnegy = Efficiant Enginsering ONE tne cata enryand use steer component 1+ Working a Terpias anc Onn: Cente corsiguraton = Highly Scalable ‘Sula apucatons lrg an at 2 Scalable pSza ard Fnsionaty ie = Open Communication 1 SIIPLE © nord at nantie = Hated "Saat fem Moot OFS, gy is For More Information: inside.abb For More Information: abb.com 4h — ED FEDED Brain Power. System Architecture System Architecture = The purpose of this presentation is to give an overview of the basic principles how an installation is built up. 1 The presentation focuses on understanding what rules and choices appear when seiecting size, number of nodes, redundaney, ete 1 Individual preduct selections, ke number of objects, tags varous options, 2 , iS not considered here Controllers, Control Network ™ Controllers connect to the Control Network Control level of a aystem = Ethemey tT cPnP = us reautaaney? L Ss =a ea x Ze Control Network sea ocontolas ' ABB ee Field level ™ Figidbus connects to conirollers ious DP, OPIV1 ‘= Foundation Fiekibus H1 Other serial inks [te since?) Sy 8 | Rodncant remct 0 Connectivity server(s) = A connectivity server provides data flow between control level and workplace level | 1 Connectivity package (epiien) = OPC server, protozel stack, faceplates, Manages alo alanrs andeverte (Hinde?) ZS Copaciy —— = Pofeoncurrmly adatns Gata poins OPC ams) sor | Eonnvcivty ADD = The Aspect Server is a central resource 1 Keeps the Aspect Directory, the navigation information Canarity max Ff spect | chieets in ane system Client workplaces inant of con = Process Fort clients Engineering cients x 7 gen ase a Domain Controller = Domain Controlier is required 1 Used for centralized handling of User Groups and Users on Windows level Sitmertacat the role eee i = Workplaces as needed lap eorrieces Poadinn | } Ontserva te beg © Somcchnlly Sever é pp, Server open | Server (B Alarm / optional | eax se ian, Batch, g exons ? } be As= nepedt ! CS — teow! g Lcopscvey Routers, Firewall 1 Protect the installation against illegal acts & Pay close atiention to the firewall Connectivity with different PLC’s = Connect to installed base ee! Z24 (ness d a : mr | separate PC,or bed Weeeee | sennect atagoe \ senoectaecnge = Contral network and Client/server network on the same physical network Physical installation = Hubs and/or switches are used to section the network and to preserve performance 43 BD BD FADD Administration of an 800xA System: 2003-05-06 Pianning a SystemindustriallT System nfiguration rvchitectural Background industrial™ 800xA System 800xA System: Made with certified products from ABB. Administration of an 800xA System Planning a SystemindusiriallT System Configuration Architectural Background Transition from Products to a System ® System Baseline 3 (ar System Version 3): System approach 1 Transition from individual products to ¢ system approach = The Sysiem is the product ™ An integrated system uired by users of a Distributed Contre! System * Functionalty provided by various software components = Functionality as ' Designed, develones, integrated, and tested as a compielé system System 800xA Base Platform ™ One common platform for all software products ™ Operations, Engineering, Information Management * Windows, standard PC hardware = Software Products plug onto the 800xA Base Platform = Connectivity are options to products Batch Information Asset Field Devico Menagement Varagement Optinizaton integration Other Aspect Systems, a ru ACBOOM = Advant = Hareony Melody Other OPC Administration of an 800xA System: Planning a SystemindustriallT System infiguration «hitectural Background System planning | = Redundancy | = Network planning @ Licensing = PC requirements = Security considerations Scalable and Flexible Redundancy a all levels © Acpicaicn severe Cost-effective Design 2003-05-08 Administration of en 800xA System: 2003-05-06 Planning 2 SystemindustriallT System Configuration Architectural Background Single Node Newer ™ One single computer ™ Max, 5:000 Aspect Objects = TOMS Contro! network Small System —— ay —=-m ge = Server optimized = Mex. 10000 Aspect Objects § Toia’ number of nodes = 14 = Maximum fumber of client nodes = 5 Administration of an 800xA System: Planning a SystemindustriallT System Infiguration wehitectural Background ee Medium System camera sever (Gngior acz) By Genero 9 Exgheorg Chet (1.5) ® Operating System optimized = Max. 601000 Aspect Objects 1 Total number of nodes = 23 = Max. 2 (pairs) of Connectivity Servers 1 Maximum:number of client nodes = 5 ABB Large System BB mens apie a sii9 re BS 8 Soe, Ailiexe, osm 7 @ Full size Daman Siverts) 4 Max. 200°000 Aspect Objects 1 Total number of nodes = 0 & Max, 6 (pairs) of Connectivity Servers = Maximum number 2003-05-06 ‘Acministration of an 800%A System: 2003-05-06 Planning a SystemindustriallT System Configuration Architectural Background System planning ™ System scaling = = Network planning = Licensing ™ PC requirements ™ Security considerations . Administration of an 800xA System: Pianning a SystemindustriallT System nfiguration vchitectural Background Servers Domain Sener) Single “002 ae 2003-05-06 Administration of an 800xA System Planning a SystemindusiriallT System Configuration Architectural Background Fiber Optic Ring Redundancy System planning = System scaling m Redundancy = Licensing = PC requirements = Security considerations 2003-05-06 Administration of an 800xA System: 2003-05-06 Planning a SysiemindustriallT System vnfiguration aichitectural Background Multiple Network Areas Logical view Administration of an 800xA System: 2003-08-06 Planning a SystemindustriallT System Configuration Architectural Background Physical view Physical Network Installation Administration of an 800xA System: Planning @ SystemindustriallT System ‘nfiguration nvchitectural Background System planning a System scaling = Redundancy = Network planning ae a PC requirements = Security considerations 800xA System structure 2003-05-06 Administration of an 800xA System: 2003-05-06 Pinning a SystemindusiriallT System Configuration Architectural Background Core System Options oem pene A g System “Seen vie uri Som Smaures peo conmectny (OCS oF PC) Extensions : "] Gore System Options “Type ot comectviy (66s er OFS) Rican Administration of an 800xA System Planning a SystemnindusiriailT System ynfiguration -uthitectural Background Scaling Tags= Numae of eece | swt acpi aspx a ‘age Jocsiond Comes | Came IT 20x = AC BOOM Contisisw, S~ Numero! variates it Ws License mechanism =< — ABD Lewes Utray |= wae Seimioee ] Core Systesy Clps= Gata by 2003-08-06 Administration of an 800%A System: Planning a SystemindustrialiT System Configuration Architectural Background Demo “Wizard 3k” System planning = System scaling m= Redundancy ® Network planning ® Licensing = Security considerations 2003-05-06 Administration of an 800xA System Planning a SystemincustriallT System ‘nfiguration nchitectural Background Single Node System [Raraware [ Reauirements Psion V 2068 cininom Mamay | 2687 Vinal marae mime 4B ise EGS nin Fe fence VD and CORON Reader Network reartacs Care Emre COs aenanaed Graphic Care SGA rope cer wth = Sen ‘2801024 op she recommen rston Mentor ie Moniar commence (17 & noe) Resdisor recommended 12806924 ue Operating System Wise 2000 Prtesionl eigiaior ‘vino Profasiona! eich 800xA System ABB Hardware | Giont Requirements Server Requirements Processer | Penn 0/2 comin Penn V 2465 mii Memory | Oswaton Gin 18 ‘Aspect Sener 100 Enneing Coot 168 Correct) sere 63 conve Operate Aepiemin Sever 168 iru many parsiner.238 | Val memory pe svar 28 GB er embed ior Oa {BSB ria tao ren TOGO minmanisenapace $03 sok reconmenies Sciam ecmmeniee DVD Reader | rN [ox ara Network Cord_| Etre, 100ipbe econnenGod | Een iGQupta SaRTECRT Graphic Card | SVGA gashe oun 3248 | Svea gamne saan BN ee pis recorded | 2A C24 cis tm anand resolute eslon | Nero 50 commande or rap mente Worter ares Mont: (Sn) [Sesh Ti ocr 2003-05-08 Administration of an 800xA System: Planning a SystemindustriallT System Configuration Architectural Background Select Windows Operating System hye] Stal Testun age Node | System System System man a aman severe) | conan sénene) | parnany Coons nce 2000 eee |p| wee see cee | Valo Carn MeceyCerect. | Weoay Cannes. | Agu Gener omer Sener Winsows 2000 ] ] | Professional Geen! Bs | cemockaysnee | pepe ener x x | “een” | comectysener | cher Windows xP ps Professional [= System planning ™ System scaling m Redundancy = Network planning = Licensing = PC requirements ARB 2003-05-06 Aciministration of an 800xA System Planning @ SystemindustriallT System ‘onfiguration Further information For further information see System Guide $3.1 SP1 (3BSE034461R301) Automation System Network Design and Configuration (3BSE034483R101A) 2003-05-06 Administration of an 800xA System: 2003-05-06 Penning a SysiemindusiriallT System Configuration Architectural Background 800xA System 2003-05-06 AC 800M Hardware > CPU PM860/a61 = Communication Interface Units $800 1/0 locally and with Profibus Assembly of hardware Wiring of the VO units Power Supplies and Grounding Download of firmware 800xA System 2003-05-06 {BPEL ENB PME wi aty ‘sek on). =Ojrimet een maybe ( ‘si *) In a configrstion wih redurdant CPUs, COMS and fhe elactea! MaduleBie ccannat be wes 800xA System The INIT button on the CPU = Wan restart "= power-up or dowrioac snpicaton mth warm restart 1 Non retain variabice are sett eta values, = Cold restart, ' push inl-buiten on Cpu Sr less than 7 seconds er ‘Gownlead wth cod restart Vasisbles with atioute ‘ld retain heap thr voluss * Init button reset (long INIT) 1 push ini-tuten an Cpu formove than 2 seconde ‘athe Ron LED stars fo Asem = Applications ere deleted it) @) ABB rm ore eo [oes ae Oe oe eee sealant Soper epee ‘ona aero ee ‘+ Beret poss for Comrot Sale Resigns eotee «esse Sean Etsemet gore Coit sete 2003-05-06 BOOxA System 1Garamunisation.Exchange Bus - CEX Bus + Upto cmmieton nite eae be sed on te C5 be mh 1+ The CEX-hus ute eminaneife + ACE emination delved “yi he PBC TBESD Case ‘TRIS Gena) + dncueasionebie THSS0 was Samet DEP tt eta uae sda eng of 7 mete 2")em be {Eee faces th CEX bu to Seem DIN rl AC 800M Hardware Units = CPU Pys6olse1 SS > Communication Interface Units = $800 1/0 locally and with Profibus e = Assembly of hardware 1 Wiring of the 10 units BS Power Supplies and Grounding = Download of firmware a s CT 2003-05-06 nbrotibys DR C1851 (Gie PROFIBLS-DP por, Maser {lass 1,2 DB female covct ox the "Test tee plate Easy configuration of PROFIBUS.OP save CIBS0 and 200-APDI2, supporting $800, $200 snes UOand ACSOW dives, + GSD Ate campguation ofatner PROFIBUS-DP saves forimpor to (Cone Bude DIN ral moet ‘Two RSIS2-C ps aplemenied with SES canseter,o fhe TPSSS ie pte + Devnilmaaciog +) Tasonision mee lenbie eween 75 ‘aan 0S be + Hs ts oecrU, soes'tuse te Pie egies + Moses spe. + Seve rool yap Sate, ‘Cas promcl desig, sotware option) System Version 3.4 B00xA Sysiem Profibus .DRMa — C1854 Redindine PROPBUS-DP por, Master Clas DBS fens comet ents TPES ace sate Senminiesion nd sles redunaaey ‘sy configuatos of PROFIBUS-DP slave CIES0 and 200-428 12, ‘poring $90, £900, $200 sais DO me Drive, GSD file contention after PROFIBUS-DP sieves Sor mor Cato} pox More.cemmunication interfaces Hardware module Interface Main features cies. Foundation Fieldbus Hl [Foundation Fiekabus i 31.25 Kblis [Etiomot iterfics for Masters 300 “Two RIS pors for conection fo ME300 network. ‘S1D0 1 eomnseton (One 36-pi8 S100 UO por INSUM | RIdS connector for connection | DvSUM on ToRAP. DaveBus intriace Taree optical connections for DaveBus, 10 Bus and PC Tool Foundation Feldbus High Speed Ethemet ‘One RIES por for Foundation Fieldbus High sped Ethernet ‘cmmuication ABB 2003-05-06 ‘800xA System AC 800M Hardware Units = CPU PM860/861 a Communication Interface Units > $800 1/0 locally and with Profibus = Assembly of hardware a Wiring of the /O units @ Power Supplies and Grounding = Download of firmware ABB VO Communication = Local (central) /O. Modulebus = Electrical f= Optical = Contral JO = up (2 86:S040 VO macuies a Remote 0 PROFIBUS-DP, CEX But 1 Electrical 1 Opticat # Remcte V0 = $3800 (0 & $200 UO'sere's ‘ard S9C0 series 2003-05-06 B0OxA System Local (central) 1/0 1 Vis the Mogens 1 tax 9610 modes bass enteral #1710 custeroptea 42280010 mode Nas ster ng 25m (82) (Gletiea! masuotus) * Cptcal mastucbur ‘Soler orDune Paste cS gee er) Modulebus Units = TB820 ‘cpl moos ‘podem, cannes tre VO users othe nae str 1 Supewiser of euncant se! atten 1 Cievoume poweriothe #0 1 Serlexordupin feowtetu stoe = TB805 £ TB808 These male ae, ‘het Tawoe & ‘ne enters cab, b3.0se zm ABB 800KA System evens cexne 1 Max 12 carmuniaton teres orneceKts 1 Eaey confgumton PROFBUSOP save 1 Nox PROFBUS-OP satons (830) erSeomen 14 Max. 24 UO modi /10 Statin 1 ase ctister 1-7 10 custer 11-12" 8800 VO medulesiouster 1 Max clustrlength 2.5m (electicel modules) Remote I/O via Profibus Remote I/O via Profibus 2003-05-06 800xA System Fieldbus Communication Interface 1 C1820, Profibus DP slave * he Folds Conmicaton Irtase (Fo) hands ‘moans ard charts 1 Superson of raisin power bitin 2s Distutes soner the VO f ae ‘modules i * Vo contgurton in RA backep > wrmpus = TeB10rTRBY4, f0arb Moe pea madden crane Saves equipment 800xA System AC800M — Redundant CPU's “The Primary CPU is always updating the Backup CPL + Avert toa memory cals dupteatea, jen rear at he ste of Srmary gua’ te backup Redundancy transperent to application ‘and operating syst ‘Switch overtime Wiring of the VO units aS = Power Supplies and Grounding AbD S800L VO and S800 BV DCiscomeedio fie LiL terminal co the wero 800xA System Process Connections AC 800M Hardware Units = CPU PMa60/861 = Communication Interface Units = $800 VO locally and with Profibus ® Assembly of hardware ™ Wiring of the /O units > Power Supplies and Grounding = Download of firmware acl 2093-05-06 800xA System Power Supply = Considerations Use 2 power supply in each cabinet for Powering Units 13 Use separate power supplies for Powering Units end Powering Field Equipment ifthe power suoply is an extemal +24V' soures DCIDC converters should be considered in order to avoid grounding problems Grounding = Each JO module's grounding soring ‘connects to the matallic OIN-rail which serves as the module electronics ground conductor between the inter-connected devices If the Modules are connected to several DIN rails special care must be taken that the DIN rails nave @ good connection to ground. 2003-05-06 — —806xA System AC 800M Hardware Units = CPU PM860/861 = Communication Interface Units = S800 1/0 locally and with Profibus = Assembly of hardware = Wiring of the /O units RS Power Supplies and Grounding Download of firmware vou ABB Warm restart 1 powersin or download appteation with warm restart ' Non retin varablee re sett nicl values = Cold restart ' pusnietuton on Cpu for less than 7 seconds or onmlead with sit rector = Voriabios with atebete ‘cold rnin’ keep their values 2003-05-06 800xA System Serial Download Download from Control Builder (is c>rp) Select Renfotz = Press Show Firmware Information = Compare Firmware on disk ‘with the Firmware inthe controller ‘Check the Fimware wnicn 2003-05-06 —--.800xA System 2003-05-06 Chapter 4 IEC 61131-3 Concept and ABS extensions TABLE OF CONTENTS: Chapter 4 TEC 61131-3 Concept and ABB extensions 4.1 General Information.. 4.1.1 Description 4.1.2 Objectives 4.1.3 Reference Documentation. 4.2 Lesson I~ IEC 61131-3, the Concept and Common Elements 4.2.1 DeSctiptiOd nn i 4.2.2 Objectives 4.23 IBC 61131-3 — Overview. 4.23.1 The IEC 6131-3 Standard .. 4.2.32 The 5 Languages of IBC 61131-3 4.2.3.3 Instruction List (IL). 4.2.3.4 Structured Text (ST) 4.2.35 Ladder Diagram (LD)... 4.2.3.6 Function Block Diagram (FBD) 4.2.3.7 Sequential Function Chart, SFC 4.2.3.8 The IEC 61131-3 Standard . 4.2.3.9 IEC 61131-3: Common Elements. 4.23.10 IEC 6131-3: Common Elements (2) 4.23.11 IEC 61131-3 Standard Datatypes 4.3 Lesson 2 ~ IEC 61 131-3, the Software Model and Compl 43.1 Description. 4.3.2 Objectives... 4.3.2.1 IEC 6131-3 Software Model. 3 TEC 61131-3: Common Elements (5)... 4 IEC 6131-3 Standard Functions... 5 IEC 6111-3 Standard Functions Blocks. 6 POU = Program Organization Unit 4.4 Lesion 3~ ABB Extensions and Simplifications of IEC 4.4.1 Description 4.4.2 Objectives.. 443 Configuration. 4.4.4 Program Organization Units (POU) 444.1 Applications... 4.4.4.2 Control Modules. 404.5 Tesk Comneotions 4.4.5.1 Task Connections to Function Blocks 4.45.2 Task Connections to Control Modules 4.4.6 Project Consiants. SBSE 022 841/68 Course OH;7+2 1181-8 Concept and ABB extensions sss Chapter 4 IEC 61131-3 Concept and ABB extensions 4.1 General Information 4.1.1 Description ‘This chapter conteins the IBC 61131-3 standard and extensions and simplifications of this standard implemented by ABB in Control Builder. 4.1.2 Objectives On completion of this chapter you will be able to: + Describe the five programming languages of IBC 61131-3. ‘+ Describe common elements, function blocks and the software model and ‘compliance of IEC 61 131-3. ‘+ Describe the ABB extensions and simplifications of EC 61131-3 (Configuration, POU, tesk connection and project constants), 4.1.3 Reference Documentation * www.pleopenorg + Online Manual: IEC 61131-3 Control Languages 3BSE 022 841/B 7 4.2.1 Description Course CH112 Gttanter 4: IEC 61124.2 Concapt and ABB oxtonsions $m SSS 4.2 Lesson 1 - IEC 61131-3, the Concept and Common Elements ‘These lessons contain the basic eoneept and Common Elements of the IEC 61131-3 standard. 4.2.2 Objectives On completion of these lessons you will be able to: ‘+ Describe the five programming languages of IEC 61 131-3 ‘+ Describe common elements, function blocks of IEC 61131-3. 4.2.3 IEC 61131-3 — Overview The 5 parts of the IEC 61131 Standard ‘General overview, definitions IS. International Staneard Heraware is Programming Languages: 's User Guidlines af s]ele [> Messaging Service Specification Course CHI12, 27.3 Concept and ABE extensions eS 4.2.3.1 The IEC 61131-3 Standard pnapier 4: IEC Common Elements 4.2.3.2 The 5 Languages of IEC 61131-3 Structured Sequential Function Chart Step’ N|_FILL |) =| Trensition 1 Funetion Block Diagram Ladder Diagram fe Ser? ge Sleney Transition 2 fq Steps SESE 022 8718 Course GHI12 Chanter 4: IEC 1191-8 Concept and! ABE extensions —o oe ——S—S—S—SSSS— 4.2.3.3 Instruction List (IL) + Single Accumulator based execution model + Based upon the German “Anweisumgsliste’, AWL ‘+ One operation such as scoring @ velue in the accumulator register, is allowed per line wo A ANON | B ST c 4.2.3.4 Structured Text (ST) + High level language, block strcmed ‘© Syntax resenibles PASCAL Complex statements and nested instructions possible + Support for — eration loops (REPEAT-UNTIL; WHILE-DO) ~ Conditional cxecution (IF-THEN-ELSE; CASE) ~ Funetions (SQRTO, SIN) C=AAND NOT 8: Suen 4 SBSE 022 841/B Course O42 Chapter 4:/EC $1187-3 Concept and ABE exensions SSS 4.23.5 Ladder Diagram (LD) © Standardised, rationalised set of relay ladder programming symbols ‘+ Based on well-nown Noxth American stvle of programming, resembling US. of clecsrical crewing standard AB © 1eVi-———4) 4.2.3.6 Function Block Diagram (FBD) © Graphical language, widely used in Europe *+ Allows program elements which appear as blacks to be "wired" together in a form analogous to a circuit diagram ‘+ Used in many applications that involve the flow of information or date between control components chemistry 4.2.3.7 Sequential Function Chart, SFC 3BSE 022 84118 Powexful graphical technique for describing the sequential behaviour ofa control program Used to partition # control problem Shows overview, also suitable for repid diagnostics ‘The basic elements are STEPS with ACTION BLOCKS and TRANSITIONS Support for alternative and parallel sequences 4.2.3.8 The IEC 61131-3 Standard BSE 022 75 Course GHi12 Chapter 4: IEC 61934-2 Concept and ABB oxtoneions —. 4.2.3.11 IEC 61131-3 Standard Datatypes © Bitstring types (BOOL, BYTE, WORD, DWORD, LWORD) + Integer types (SINT, INT, DINT, LINT) + Unsigned integer types (USINT, UINT, UDINT, ULINT) + Real typee (REAL, LREAL) + Time types (TIME, DATE, TIME_OF DAY, DATE_AND_TIME) © Character types (STRING) * Vendor and user defined data types are possible — Direct derived, subrange, enumeration = Amay, structure TS 7 BSE 022 8415. . Course CH Chapter 4: IEC 0113-3 Concept and ABS extensi es ss 4.3 Lesson 2—1EC 61131-3, the Software Model and Compliance 4.3.1 Description ‘These lessons contain details about the Sofware Model and Compliance of. 61131-3 standard, 4.3.2 Objectives ‘Oa completion of these lessons you will be able to: * Describe the Software Model of the IEC 61131-3 standard, + Describe the Compliance of Coatrol Builder to IEC 6113 4.3.2.1 IEC 61131-3 Software Model Function Biosk. Venable cena path T YY Communication Funston 3BSE 0228418 6 4.3.2.2 Control Builder M Pro: | ‘Application on) es 1 a Task, pt iene ‘Access path Comeruicaion Funetin 4.3.2.3 IEC 61131-3: Common Elements (5) BSE 022 84118 ee Bee ees Configuraucn: Resour So eS Bee Saas “Programs = Varable ecution nial path Course CH142 Chapter#: IEC 61131-3 Concept and ABB extensions eee 4.3.2.4 IEC 61131-3 Standard Functions + Bitstring functions (AND, OR XOR, NOT, SHL, SHR, ROL, ROR) ‘+ Numerical functions (ADD, SUB, MUL, DIV, MOD, EXPT, ABS, SORT, LN, LOG, EXP, SIN, COS, TAN, ASIN, ACOS, ATAN) + Typeconversions (e.g, USINT_TO_DINT, BOOL_TO_BYTE) ‘+ Selection functions (SEL, MIN, MAX, LIMIT, MUX) © Comparison fimetions (GT, GE, EQ, LT, LE, NE) + Sting funotions (LEN, LEFT, RIGHT, MID, CONCAT, INSERT, DELETE, REPLACE, FIND) ‘Vendor end user defined functions are possible 4.3.2.5 IEC 61131-3 Standard Functions Blocks + Bisiables (SR.RS, SEMA) + Bdge detection (R_TRIG, F TRIG) © Counters (CTU, CTD, cTuD) = Timers (PP, TON, TOF, RTC) ‘Vendor and user defined function blocks are possible. 4.3.2.6 POU = Program Organization Unit POU's enable re-use of software from macro level (Programs) to micro level (FB and Functions). A POU consists of a leader (variable declaration) and the body instructions), POU Type Replicated as: Comments Program Program instance Main program Function Slack FB instance ‘Subroutine with ovm ‘memory, several in-anct Sutpurs possible Function Funation Subroutine without memory ‘only one output possible Gseomsais 10 3BSE 022 841/58 Course CH112 IEC 61431-3 Concept anc ABB extensions i F 4.4 Lesson 3- ABB Extensions and Simplifications of [EC 61134- 4.4.1 Description This lesson contains the extensions and simplifications of the IEC 61131-3 standard implemented by ABB in the Cont! Builder 4.4.2 Objectives On completion of this lesson you will be able to: + Describe the ABB extensions and simplifications of IEC 61131-3 (Configuration, POU, task connection and project constants). 4.4.3 Configuration ‘The term Configuration is not used in the software model of the Control Builder Professional. The Resource has also been excluded. Instead the Application replaces both Configuration and Resource. The Application is discussed below. 4.4.4 Program Organization Units (POU) 4.4.4.1 Applications An Application is 2 code container replacing the combination of Configuration and ‘Resource of the IEC 61131 Software model. There is however, no direct correlation between an epplication and a controller. An pplication can contain Programs and Control Modules and these can be downloaded to different controllers independently. 4.4.4.1.1 Variables in the Application Editor ‘To handle communication betweea top level Control Modules, it is possible to declare variables in the application editor. These variables only serve the Control Modules, i. they are not used for communicating between programs, Lise Global Variables for this. 4.4.4.2 Control Modules (Control Modules are code containers replazing both first level (Programs) and second level units Function biocks) of the IEC software moxie. Control Modules display several improvements compared to IEC POU:s , c.g. code sorting and a graphical ‘interface. Control Modules will be discussed in detail in chapter 17. BSE 022 84115 71 Course GH112 Chepter-4: 180 61 51-3 Concept and ABB extensions Task Connections 4.4.5.1 Task Connections to Function Blocks Function blocks within fimction blocks can be connécted to tasks independent of the ‘ask of the program or ofthe first level finetion block. This is an extension to the IEC standard, which requires individual connections only for first level function blocks. 4.4.5.2 Task Connections to Control Modules Con:ro! Modules at any depth can be individually task-connected, 4.4.6 Project Constants Project Constanis are extensions to the standard. The standard requires the possibility to look the value of variables by declaring them as constants, Project Constants are discussed in chapter 8. slo 3BSE 022 84178 12 Plant Explorer = structure handling = 4 Plant Explorer Objectives: ‘Upon completion ofthis chapter, you wil be able te: Plant Explorer + Know wnat the Plant Saploreris + Krow how the Pant Explorer is bul up Structure handling + Know the cfferert suchas in 200. + "Navigate between the structures Aspect Objects + Creale Arpact Objoste oo ——— Plant Explorer = Structure handling = Aspect Objects ABB Plant Explorer The working environment for the project / maintenance engineer Browse the aspect server ‘Aspect Directory Starting Plant Explorer (Workplace) # Right click on the icon My ePlant and select Plant Expiorer Workplace with the left-mouse key 8 Engineering, operation, and maintenance of the plant 1 Aspect Gees ans Aapacts © Handling of Aspect Objects === = Create, Dette, Copy, Paste. “emcem 2 Features i * facie iot espe: Multiple smewos Firs her Proview window User dened ens OBJECTLIST: ASPECTLIST: ASPECTPREVIEW gL Aspect Objects Aspexis wu F ' ADD 2 FADD ONE Engineering environment for the engineer Plant Explorer Toolbar Plant Explorer Structure Selector Chitown Context Menus in the Plant Explorer Plant Explorer = What is the Plant Explorer sia = Aspect Objects MANY Structures in the 800xA System 3. # Application Structures = os PS | Control Structure = Conrolneiior: aera 3 Aepieatore _progrenthe ACSOOM control sConiwles ill start to work fo Functional Structure = Plant lay out (structure) from a functional point of view: 1 Frocess dsplays (Graphics) Trend displays Links to object specific data (maintainance docu, et Library Structure * Tempiaies: Sa aaa Object Type Structure ™ Object types: 1 IT enabled products are located ane maintained here ACHOONE Canest =e = GrepicHemrts + Minerals (2 baie ws Facplton 1» GanhicFemens 1 Project specie object types 1 Composite ec * Phato (e.g. Boeing) Process Uni (e.g. Reactor) User Structure = Users and User Group settings and profersnces on 800xA Level: ff sping te Wncows usar 1 Asscciatns to User Roles (each User Graup comasponds toa User Role) Workplace Structure = Worplaces: 2 Workiace Layout = Logs Color = Wortgince Startup display Maintenance Structure Ta a = Maintenance definitions: 1 Eaolue setings Location Structure Placement of tunctions that are realized 29 phycical equipment ** Contains location related information 1 reac! dravangs,toorlavous, 1 Physical lot ayaus Administrative (system) Structures Navigate Between Structures Use the Structure Selector Exercise 5.1 — Introduction Plant Explorer Description: This exercise covers the basic functionality ofthe Plant Explorer toot Objectives: Upon completion of this exercise, you wil be able to + Use Plant Explorer to browes the aspect server and navigate in the B0GxA System ABB Plant Explorer = What is the Plant Explorer = Structure handing ABB Create Aspect Objects a in what structure? = in the Control Structure i you want io setup a new contrllar project = lo the Functional Structure if you went 10 create the HM part (process displays, ‘rend displays, otc...) Create Aspect Objects in the Control Structure = Why? Te set-up 2 new controller project from scratch. The following objects must be created: = Control Network abject = Control Project object Create Aspect Objects in the Control Structure = How (o create the Control Network abject ? Create Aspect Objects in the Control Structure = How to create the Control Project object 2 Create Aspect Objects in the Control Structure The new controller project has been setup now How to enter the project if CBM is not started | | Exercise 5.2 ~ Create a new controller project Description: sige you will create a new controller project. Objectives: Upon completion of this exercise, you wil be able to (Create 2 new controller projact in the 800xA Sysiem > 5s a ADD Brain Power” Course CH142 - a sss 5.1 Introduction Plant Explorer — Exercise 5.1 5.2.1 Description ‘This exercise covers the basic functionality of the Plant Explorer tool. 5.2.2 Objectives ‘Upon completion of this exercise, you will be able to: + Use Plant Explorer to browse the aspect server and navigete in the SOKA System + Know which Structure is used for what purpose Error! Reference source not feund, + Use Plant Explorer to browse the aspect server and navigate in the 800xA System. 5.2.3.1 Plant Explorer Navigation Follow the instructions and answer the questions. + Select the Control Structure and browse the object tree, ~ What Objeots do you find ? Note a few of them (aote the object name and object type) = Selsct the Functional Structure and browse the object tree. ~ What Objects do you find ? Note a few of them (now the object name and object type) + Select the Location Structure aad browse the object wee. ~ What Objects do you find ? Note a few of them (note the object name and object type) Error! Reference source not found. Course CH112 eS Select the Object Type Structure and browse the object wee, ~ What Objects do you find ? Note.a few of them (note the object name and object type) ~ What is the purpose of the Object Type Strucnare 2 Oeie d { + Select the User Structure and browse the object tee. ~ What Objects do you find ? Note a few of them (note the object name and object type) + Select the Library Structure ané browse the object tee. = What Objects do you find ? Note a few of them (note the object name and object type) ~ What is the purpose of the Library Stmcture? —. Error! Reference source not found. 3 Course GHI12 + Select the Workplace Structure and browse the object tree. ~ What Objects co you find ? Note a few of them (note the object name and object type) + Select the Maintenance Structure and browse the object tree. 5 ~ What Objects co you find ? Note a few of them (note the objest name and object type) Error! Reference source not found. Course CHIT2 — oo SSS—SsSsSSSS— 5.2 Create a new controller project — Exercise 5.2 5.2.1 Description In this execise you will create # new controller projec. 5.2.2 Objectives ‘Upon completion of this exertise, you will be able to: + Create a new controller project in the 80GxA System 5.2.3 Scope + Use Plant Explorer to creste the new controller project,. 5.2.3.1 Create a new controller project Create a new controller project for ACS00M. ‘The name of the project should be CourseProject ee SS Error! Reference scurce not found. Course CHIt2 Chapter 6 Getting Started ~ Monitoring and Testing TABLE OF CONTENTS Chapter 6 Getting Started ~ Monitoring and Testing 6.1 Genera! Information... 6.1.1 Description. 6.1.2 Objectives 6.2 Lesson 1 — Open a project. 6.2.1 Description cn 62.2 Objectives. 6.2.2.1 Control Builder M.. 6.22.2 Open a Project. rr 62.3 Overview — the Project Explorer. 6.2.3.1 Tool Bar. 6.4 Lesson 2 ~The POU Edit 6.4.1 Description... | 6.4.2 Objectives. 6.43 The POU Editor. 6.4.4 Opening the POU Editor 6.4.4.1 Toolbar Icons 6.4.5 Variable Declaration Pane....... 6.4.5.1 Variables... 6.4.5.2 Function Blocks... 6.4.5 Message Pane on. 6.4.6.) Description... 6.4.6.2 Check eee 6.4.63 Find in Editor 84.7 Code PINE ern 672 lnerng Code laces 6.4.73 Amanging Code Bieci 6.4.74 Deleting Code Blocks... 6.4.7.5 Selecting Code Blocks 647.6 Renaming Code Blocks 6.5 Checking, Applying and Saving the Program. 6.5.1 Estor Messazes.. 6.6 Exercise 62 — Inserting and Arranging Code Blocks ‘BSE 022 84: SSS 6.7 Lesson 3 —Test Mods and On-line Help 15 6.7.1 Description =is 67.2 Objectives, 15 6.7.3 Test Mode. 15 6.7.4 On-line Help 16 6.74.1 Help Topies oon 6.7.4.2 Help About the Project Explorer. 6.7.4.3 Manuals... a 6.7.4.4 About Control Builder M Professional . 6.8 Exercise 63 — The Online Help System... 6.9 Exercise 6.4 — Testa project in ON-LINE Mode 6.10 Exercise 6.5 ~ Monitor and trace signals in a program written in FBD in ON-Line Mode ‘6.11 Exercise 6,6 Monitor and test a program written in SEC in Test Mode, ‘SBSE 022 84210 Course GH712 Chapter 6: Getting Started ~ Monitoring and Testing ————————-WwA Chapter 6 Getting Started — Monitoring and Testing 6.1 General information 6.1.1 Description This chapter imroduces'you to the Control Builder M tool, 6.1.2 Objectives (On completion of this chapter you will be able to: Open @ project, Describe the project explorer, Use the basics of the POU Editor. Use On-line Help in the Control Builder M tool Test 2 project in ON-Line mode and in Test Mode a 7 3BSE 022 842/D Course CHIT2 Captor &: Getting Started ~ Monitoring end Testing 6.2 Lesson 1 ~ Open a project 6.2.1 Description This lesson contains information about how 10 open a project. 6.2.2 Objectives On completion of this lesson you will be able to: © Open a project, ‘+ Deseribe the project explorer, 6.2.2.1 Control Builder M ‘The Control Builder M is the software package that is used for AC8O0M/C controller programming. Itallows off-line programming, downloed and on-line test functions. GBSE 022 842/D 2 Course CH112 Chapter 8: Getting Started — Monitoring and Testing SSS 6.2.2.2 Open a Project 1). To open a project the Plant Explorer has to be started first => Rightmouse click om the icon My ePlant and select Plant Explorer Workplace 2). Navigate to the Control Structure 3), Select the corresponding project that you want to open and select the aspect Project (Econ ree iy SS eo, Denar ST Sicont rete Typo afrorce — sfatenon 07: Bi central tecwork, oneal network, |[SSkcontrl Sruccure sf22fonne 2.07: P=name SfZzfa0s S07. |B aetiraiing, CortrolProee See IBotiecttasn 1ofafeoos 9:4 GEE Contd theswark, Contra: Netware Project 8B os anc Found proiectCantarts BB OFC Servers, Sytem Alm ond Event Soup 4), Bross right-mouse bution and select Open Project 5). The Control Builder M will be started now and the project will be loaded ftom the aspect server ‘SBSE 022 £42! Course GH112 Chapter 6: Getting Started — Monitoring and Testing —. —————— 6.2.3 Overview — the Project Explorer ‘The Project Explorer is a separate window with a menu tar and a Toolbar. The ‘window is split into two separate viewing areas (panes), In the upper pane, the project, is displayed in ¢ tree view control with folders and in the lower pane there are three tab controls for Description, Check and Message. ‘The Project Explorer is a tool you can use to create, modify and navigate in a project. ‘You can select all objects such as date rypes, functions and function block types and Gisplay them in an editor. The software and hardware is configured in the Project Explorer. For general window information about the Project Explorer, the drop-down menu entries and the toolber commands, look ia the on-line help. 6.2.3.1 Tool Bar et ee 6.2.3.2 Project Tree ‘The project is displayed in a tree view control with the contents indented in an outline based on their logical hierarchical relationship. The objects in the Project Explorer ars each represented by a name and aa icon. By clicking on the buttoa with a plus or sainus sign beside the folder, you ean expand or collapse an icon and the corresponding container. 3 BB tbredes EAE Applications controters SE5eC. 6/0 7 SESE 022 B42/0 6.2.3.2.1 Libraries | TB © deta types | | gem rinaine 6-H tons io0 | BB Aaméventib 1.00 ‘BB 1530_Constants 1.0-2 = T50_Lo 3.0.0 7 BB Conected ibraies 3; Er@ Data Types © object_Detetype | be tatype |) | Se vavesrounrype | | See |) arabovate cook eater 3 mer Bw osce oy EEE ave BBSE 022 842/D Course C112 Chapter 6: Getting Started ~ Monitoring and Testing ‘The Libraries folder contains all libraries used in a project. By connecting a library 10 ‘a project. is types become available to the application. The library SystemLio is alweys available in the Project Explorer. There are a number of additional libraries that can be inserted. The libraries contain type definitions such as Data Types, Functions and Function Block Types and Contro! Module Types that can be used in the project. Course CH112 Chapier 8: Getting Started — Monitoring and Testing ——_—)]} 6.2.3.2.2 Applications In the root of the Applications folder of each project, several Applications can be created (¢ maximum of 256). In the application you create the Program(s) or Control ‘Modules containing the program code to be compiled and downloaded for execution in the Contreller(s), Ezea applicetioa to be used must be connected to a Controller, by adding the Application to the Applications folder of the Controllers folder. An application may contain up to 64 Programs, Each Program must be connected to its own Task, Tais means that you can split the control software into different parts, depending on required interval times and priorities. For each controller, you can create new Tasks (a maximum of 16). You can ereste and define own Data Types, Function Blocks and Couirol Module Types in the Application. EB Appleton | 1.0:0-(Conivoler_1 Noma), EB Comectec brates | control Made pes BB Contra Werins Si rogrens | BB Tora_Fingtroningcontsol “AB Terkt_Procescmaton-(Conteer 4 Som) SE rovarpersin BE Tarkio: sequorcotened 4B) SystenDlearstes (Controle Fast) BB cotrers a aE ‘SBSE 022 842/D Course GHIA2 (Chapter 6: Getting Started ~ Monitoring end Testing -) SSS 6.2.3.2.3 Controllers The hardware definition and the /O connection ate done in the Controllers folder. Ia the root of the Controllers folder of each praject, several controllers can be created (2 mesimum of 32). When you create a new project or insert a new controller, is it suitable to select the controller you intead to use in the project (AC 800C, ACBO0M or Soft Controller). The access varizbles are used for communication with other systems or Controllers. ‘Hardware units are added to the tree structure representing physical hardware units. The Applications containing the code, are not executed unless a "work schedulec"- a Task - is conneoted and serves as an "engine" ranning the code in the controller. In the root of the Tasks foler of each Controller, several tasks can be created (g maximum of 16). Fach Controller have three default Tasks labeled Fast, Normal and Slow with the Interval time set to SCms, 250ms and 1000ms. Each application to be used must be connected to 2 controller, by adding the application to the Applications felder of the Controllers folder. SESE 022 842° Course CHi12 (Chapter 6: Getting Started — Monitoring and Testing 0 sss 6.2.3.3 Lower Pane The Lower pane consists of three tabs: Description, Check end Message. Reaihing applicetice ¢.\progran, Beading censzo. les c \Gsostas i Lee\ABP Control Builder Erpfecsional 7 0NTanplates\40200C\tp! ica tLe es\AEB\Gontzo1 Stiider Professional 2 OtanpiatessAcgaoACesioel leet 6.2.3.3.1 Description Tab A description, written in the editor (eg, the program editor), of the selected object in the tree view control is displayed in the Description tab. 6.2.3.3.2 Check Pane A check of a selected object, e.g, an Application and its contents is performed when you select Check in the pop-up men (click with the right mouse button). Hany errors are found, they are displayed in the Check pane. Double-click on an error to locate the exact position of the error in an editor (or select zattoz in the pop-up menu). If Go to Error in Project Explorer is selected, the POU containing the crror is marked in the Project Explorer. 6.2.3.3.3 Message Tab ‘The Message tab displays system activity messages, e. mode and opening files. 6.3 Exercise 6.1 — Project Explorer Please do exercise 6.1 ‘$BSE 022 842/D 8 Course CH112 Chapter 6: Getting Started ~ Monitoring and Testing 6.4 Lesson 2- The POU Editor 6.4.1 Description ‘This lesson contains information about the POU Editor. 6.4.2 Objectives On completion of this lesson you will be able to: + Use the basics of the POU Editor. © Checking, applying and saving a program, 6.4.3 The POU Editor ‘The IEC 61131 standard deseribes Programs, Function Blocks and Functions as Program Organization Units or POUs. These units help you organize your automation project into code blocks o minimize code writing and optimize the code structure and code maintenance. The Function Blocks and Functions POUs ere not limited :o "one- time-use". You can use them repeatedly and in a recursive stmeture, In addition to these two POUs, you have the Program. Although the program is the only POU that cannot be reused in any of the other POUs itis defined as « POU. The figures below describe the hierarchical structure of the POUs. As you can see, you can use both the Function Block and the Control Module recursively to an unlimited depth whereas the program or Control Module is @ "top-level" POU. The Apalication contains the program code thet is to be compiled and downloaded for execution in the controller. EB Avicatins [EB Arete 1 (Controle tsa) EE Apietons © Data Typee 1 BBB Arpicstion_ -(CortroferJ.Norma) 3 Furction Block Types -@ Data Types. BE Control Module Types |B Function flock Types 2 poorns EE Control Modes 7 EE ControNoduot.My_Ub:Contodocie | BR on Coneratteduien ZT Funciondloct EAB Program - (Controlor_t Fact) | ESSE ERI my Libsruncionalock i BE Control aces | = Corerl Made Tynes | 1 LEM cortroMedle | SBSE 022 42/0 Course CH172 Chapter 6: Getting Started— Monitoring and Testing =) SSS SSSSSSSSS 6.4.4 Opening the POU Editor ‘You open the POU editor ty double clicking on it, The POU editors of Program, Function Blocks and Control Modules have basically the same look and Amctionality. ‘This chapter will explain the functiors and functionality of 2 Program, for more details ebout Control Modules and Function Blocks see the chapters about Functions and Function Blocks and Control Modules. The figure below shows the POU editor of Program. a6 ~ 70 3BSE 022 64/0 6.4.5.1 Variables 38SE 022 342: Course CHi12 Chapter 6: Getting Started — wanttoring ana Testing 6.4.4.1 Toolbar Icons ‘The tables below describe menu commands. toolbar icons and keyboard short cuts common to all editors. Editor specific functions are described in the chapter of respective editors. Toolbar | Keyboard | Description icon | hot key Cee 0 “ipply changes since the las Apply or Apply ane dose, Note thet the edior is ebad at he seme time, Ao nol ral the changes are not savec'to disk only the projact CHsw ‘Same as Apply and cloes axcopt it doas not close the odor ‘fe oe+8 ‘Checks the editor contents for evors, The resultis disolayed in the "Check’ tab in the output pene. Double-click on the lines with error messages to jurtp direatly to the place whore an error occurred, “Toggles the visibly of the message pane a Cee Got pick fst. @ | @ 6.4.5 Variable Declaration Pane ‘You can use the declaration pane to deviare variables, parameters, Function Blocks and Data Type components. Depending on whieh editor you use, different declaration grids can be displayed by selecting the tabs at the bottom of the declaration pane. The figure below shows the declaration pane for a program. More information about the different columns can be found in the next chapter Variables and Data types. ‘The variables in the program are the holders of values. They are declared by giving each 2 name (also called identifier) and by assigning a data type. A single program may contain many variables and they must be declared when they are used. Gourse GH112 Chapter 6: Getting Started - Mantering and Testing = ————— 6.4.5.1.1 Using Excel Tris possible to write variables in Microsoft Excel and the use the copy and paste fanction to move the variables to the declaration pane of the POU editor. 6.4.5.2 Function Blocks Function Blocks must be declared in the Function Blocks tab before they are used in the ST or IL lengauges (Not necessary in the FED and LD editor) 6.4.6 Message Pane The message pane consists of three tabs: Description, Cheok and Find in editor. [Starting check 2000-10-30-14 45 27, Summary: Tine 1 second. 0 ersore. j varnines 6.4.6.1 Description Jn the description tab, you can write notes in plain ASCII text, The notes ere common spall code blocks and grids. It does not change depending on which tah is activated ‘The descciption is displayed in the lower pane of the tee view control by marking the edited objec: (for which a description has been written), eg. a program in the tee view control end after that selecting the Description tab. 6.4.6.2 Check ‘When you are validating code error messages are displayed in this pane, Double-click ‘an error message to go quickly to the place where the error occurred, 6.4.6.3 Find in Editor ‘Whiea you search for text strings, the result of the search is displayed in this pane, Double-click on a line in this report to go quickly to the place the line references, 42 3BSE 022 84210 Course CHi72 (Chapter 6: Geiting Started - Montioring and Testing 6.4.7 Code Pane ‘The code pane is divided into code blocks. Each tab contains a code block in one of the different programming languages, EE OTD), Couetnocks STP MIEEY ‘The order of execution is determined by the order of the tabs for Function Blocks and Programs. The execution order for Control Modules is set up by the system for the ‘most effective order és possible, In the Sgure above the CodeBlockl, CodeBlock2 and CadeBiock3 code blocks are executed in that sequence. The sequence can be changed using Edit> CodeBlock or right clicking on a code block ‘ab. 6.4.7.1 Changing the Language Right click on the tab of a cade block and select Change Language... to change language on 2 code block. 6.4.7.2 Inserting Code Blocks Right click on the tab offa code block and select Insert... to insert a code block. 6.4.7.3 Arranging Code Blocks Right click on the tab of a code block and select Arrange... to arrarige the code blocks. 6.4.7.4 Deleting Code Blocks Right click on the tab of a code biock and select Delete to delete a code block. 6.4.7.5 Selecting Code Blocks ‘Right click on the tab of a code block and select Selert... to select a cade block fom the pop up window. ———— ‘SBSE 922 8420 13 Course CHI12 Chapter 6: Geiting Started ~ Monitoring and Testing i ——————— 6.4.7.6 Renaming Code Blocks Right click on the tab of a code block and select Rename... to change name on the code block 6.5 Checking. Applying and Saving the Program ‘Use this button Mw csc and ten this burton window is saved and closed with this buttot 6.5.1 Error Messages iE following @ check, there is an error in your program, an error message is written in the Check tab in the message panc of the POU Editor. The error message below says ‘ 6.6 Exercise 6.2 — Inserting and Arranging Code Blocks Please do exercise 6.2 SBSE 022 84210 74 Course CHI 12 Chapter &: Getting Started — Montering and Tasting ——_). a 6.7 Lesson 3— Test Mode and On-line Help 6.7.1 Description ‘This lesson contains information about how to test a project in Test Mode and use On- line Help 6.7.2 Objectives Gn completion of this lesson you will be able to: © Testa project in Test Mode. © Use Online Help. 6.7.3 Test Mode It is possible to test a project without using any physical hardware. The complete application is execated on your PC in stead of in the controller hardware ‘To enter the Test Mode: ‘BBSE 022 842/00 16 6.7.4 On-line Help Edios 999OOD: Frogranining Languages = = a 5 © cessed oegencal 8 f a ‘Spatem and Basic | Functions i] s Course CH112 Chapter 8: Getting Started Monitoring and Testing —. applcaesns Ez BE repletion 1 1.0-0- (Coe EB Connected branes 6.7.4.1 Help Topics The Help Topics dialog box enables you to locate topics in the help files by using the table of contents (Contents tab), by selecting keywords that are assigned to topics (Index tab), or by searching for any words within the file (Find tah). To call the system's online help, use the Help menu, which is aveilable in the Project Explorer and the editors. You can also press < Fi >, which provide context sensitive help on the stem currently selected. | Welcome to Control Builder Engineering Tool gE ras ener ie tates proves toner raining. languages according to the standard IEC 61292-3. 5 You will most cases get context sensitive help in sroiect explarer Gand edtors by vang the key Fl Course CH112 (Chapter 6: Gsiting Stated Monitoring and Testng 6.7.4.2 Help About the Project Explorer This menu entry brings the Introduction help topic of the Project Explorer. ‘Cantante nde ae Sysen ineascien = fo tees & DB Cortese se Apgicntiongs) BS 100 Coniigurstion © Communication Handing © & Alan ard vert Handing EB Conebers EE @ BaicnHercing IB @ Peis Oonce sequen Sat Livay Sipewion and Detecson & viartenance B® Ener ond Stat Messages = @ Sonny ee: Project Explorer Intreduction ‘The Project Explorer interface lets you create, modity and navic Objects such as dats *ynes, functions ane function blocs syne= © and dieplayad in diftorent editors, The Project explorer interface end software, For more detailed information, see: ate @ New Project 1+ The Frojoct Explorer Window Menu Entfias and Toolbar Commands WBraries + Controllers = Applications ‘ore Upper pane with tree control Reading Peoject ¢:\ASB Tadustaial 2 Reading Liter soticran Z Teh Besser heceats hl Lower pane with three tab controls Project Explorer window regarding how te work mn the Plan ‘duction and Configurationmenual. ey For further inform conto Sefove

You might also like