cb getting started handling

23
Reference: CB_getting started Handling Version: A Date: March 27 th , 2007 Product: ControlBuild H H H a a a n n n d d d l l l i i i n n n g g g  G G G e e e t t t t t t i i i n n n g g g S S S t t t a a a r r r t t t e e e d d d C C C B B B D D D e e e s s s i i i g g g n n n  G G G e e e t t t t t t i i i n n n g g g S S S t t t a a a r r r t t t e e e d d d C C C B B B A A p p p p p p l l l i i i c c c a a a t t t i i i o o o n n n G G G e e e n n n e e e r r r a a a t t t o o o r r r  

Upload: boiteteste

Post on 06-Apr-2018

216 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: CB Getting Started Handling

8/2/2019 CB Getting Started Handling

http://slidepdf.com/reader/full/cb-getting-started-handling 1/22

Reference: CB_getting started HandlingVersion: ADate: March 27

th, 2007

Product: ControlBuild 

H H H a a a n n n d d d l l l i i i n n n g g g  

G G G e e e t t t t t t i i i n n n g g g S S S t t t a a a r r r t t t e e e d d d C C C B B B D D D e e e s s s i i i g g g n n n  G G G e e e t t t t t t i i i n n n g g g S S S t t t a a a r r r t t t e e e d d d C C C B B B AAAp p p p p p l l l i i i c c c a a a t t t i i i o o o n n n G G G e e e n n n e e e r r r a a a t t t o o o r r r  

Page 2: CB Getting Started Handling

8/2/2019 CB Getting Started Handling

http://slidepdf.com/reader/full/cb-getting-started-handling 2/22

Page 2 / 22

Summary

1  Introduction 3 2  Pre-requisite installation 3 3  Presentation of the application to realize 3 4  Application creation 4 

4.1  Project declaration 4 4.2  Libraries import 5 4.3  Application declaration 7 

5  Installation design 8 5.1.1 Creation and Edition of the component 8 5.1.2  Insertion of the physical equipment 9 5.1.3 Variables connection and interfaces creation 10 5.1.4 Mimic realization 10 

6  Installation configuration 14 7  Control part design 16 

7.1  Sequence design 16 7.1.1 Creation and edition of the component 16 7.1.2 SFC sequence 16 

7.2  Installation upgrading 20 7.2.1 Component edition 20 7.2.2 Physical equipment and control part insertion 20 7.2.3 Variables connection and interfaces creation 20 

7.3  Launch the simulation 21 

Page 3: CB Getting Started Handling

8/2/2019 CB Getting Started Handling

http://slidepdf.com/reader/full/cb-getting-started-handling 3/22

Page 3 / 22

1 Introduction

ControlBuild Application Generator  is a tool designed for the

validation, test and code generation for automated systems. You candesign the behavior and the reactions of the electromechanicalequipment of the system you want to design as well as the control ofthese equipments.

The aim of this document is to illustrate the creation of a bottling lineapplication using the libraries delivered with the software in order tosimulate the plant part (real equipment) of the system connected to asimple sequence controlling the plant.

2 Pre-requisite installationControlBuild Embedded, Application Generator, Design or Validation(4.00 released or following ones) must be installed on the PC.

The CB_Materials_Handling project must also be installed.

3 Presentation of the application to realize

This application contains:

1. Electromechanical equipments which will be driven by thecontrol part

• Conveyors,

• Transborders,

• Sensors,

• Motors

2. Physical reactions

• Movement and transformation of manufacturing products,• Interaction between the product and its environment,

• Rising speed curves,

• Faults on physical equipments

Page 4: CB Getting Started Handling

8/2/2019 CB Getting Started Handling

http://slidepdf.com/reader/full/cb-getting-started-handling 4/22

Page 4 / 22

Installation mimic

4 Application creation

A ControlBuild project contains applications, standard libraries and

specifics libraries.

When you create a new project, you must:

• Import standards components libraries calledEquipment_Library ,

• Eventually, import the libraries associated to the domainwhere you work. For handling domain, a library calledMaterial_handling_equipment  is available in the projectCB_material_handling  

4.1 Project declaration

Ask to create a new project by using the option New… from the File menu from the ControlBuild manager editor.

Page 5: CB Getting Started Handling

8/2/2019 CB Getting Started Handling

http://slidepdf.com/reader/full/cb-getting-started-handling 5/22

Page 5 / 22

Choose the name and location of the project.

ControlBuild create the project that will contain three groups:Applications , Standard libraries and Specific libraries .

4.2 Libraries import

Import the standard library equipment_library  in the new project byusing the option Import application/library…  from the File menu fromthe ControlBuild manager editor.

Page 6: CB Getting Started Handling

8/2/2019 CB Getting Started Handling

http://slidepdf.com/reader/full/cb-getting-started-handling 6/22

Page 6 / 22

The library is located in…\Controlbuild\Tooldir\Examples\examples\Standard\equipment_library.

Import the specific library Material_handling_equipment  from theCB_material_handling  project in the new project by using the option

Import application/library…  from the File  menu from the ControlBuildmanager editor as well as before.

Page 7: CB Getting Started Handling

8/2/2019 CB Getting Started Handling

http://slidepdf.com/reader/full/cb-getting-started-handling 7/22

Page 7 / 22

4.3 Application declaration

Select the root Applications and ask for the application creation by usingthe option new application/library…  from the transient  menu from theControlBuild manager editor.

Choose a name for your application.

Page 8: CB Getting Started Handling

8/2/2019 CB Getting Started Handling

http://slidepdf.com/reader/full/cb-getting-started-handling 8/22

Page 8 / 22

Select the application you have just created in the left column from theControlBuild manager editor. In the second column, a MAC typecomponent model is present. This component is an assembly of sub-components; it will contain all the models which form the installation todesign.

5 Installation design

5.1.1 Creation and Edition of the component

To create a new component, you have to:

• Select the application in the first column of the ControlBuildmanager editor.

• Then in the second column, select the New component… option from the transient menu.

• Give a name to the component (process for example), selectthe Mac language and validate.

A component is added in the second column. Select it and click on theEdit… option from the transient menu.

Page 9: CB Getting Started Handling

8/2/2019 CB Getting Started Handling

http://slidepdf.com/reader/full/cb-getting-started-handling 9/22

Page 9 / 22

5.1.2 Insertion of the physical equipment

We have to add the following elements in the process component:

• Three transfer tables (transfer_table model),

• A traverse (simple_traverser model),

• Two product creators (product_creator model),

• A product killer (product_killer model).

You will find these components in the standard librarymaterial_handling_equipment , and equipment_library  for the productcreator and killer.

To insert an instance of a model in the assembly, you have to:

• In the left column of the ControlBuild manager editor, selectthe library or the application containing the component youwant to instantiate. In the components column, select themodel,

• Come back to the assembly (MAC) editor and click on theAdd an external icon.

• Place the instance in the graphical view.

Repeat these actions for the five instances you have to add in feeding .

Save the component by using the icon Save .

Page 10: CB Getting Started Handling

8/2/2019 CB Getting Started Handling

http://slidepdf.com/reader/full/cb-getting-started-handling 10/22

Page 10 / 22

5.1.3 Variables connection and interfaces creation

5.1.3.1 Input interface 

We have to put all the commands that will be calculated by the controlpart in the input interface. In this case, we have to bring out the conveyor

commands of each transfer table and the traverser commands.

5.1.3.2 Output interface 

We have to put all the states that will be read by the control part in theoutput interface. As a result, we have to bring out all the conveyorsfeedbacks and the sensors states of the transfer tables and the traverser.

5.1.4 Mimic realization

The mimic gives some visual feedbacks about the state of the

electromechanical equipment, fluid exchanges, it also allows acting onthe actuators and to force the orders given by the control part that will befinally connected to the simulator.

5.1.4.1 Mimic declaration 

• Save and close the assembly editor.

• Select the process  assembly in the second column of themanager editor. Then, in the third column corresponding tothe views associated to the component, select the New view… from the transient menu.

Page 11: CB Getting Started Handling

8/2/2019 CB Getting Started Handling

http://slidepdf.com/reader/full/cb-getting-started-handling 11/22

Page 11 / 22

• Give a name to the view and select the Mimic type.

5.1.4.2 Mimic edition 

The realization of the mimic has to be done from the tree editor. Thiseditor displays the tree hierarchy of all the equipments instancesinstantiated in each component of the application.

• In the second column, select the process  assembly andselect the Tree… option from the transient menu,

• The tree editor is opened on the process component,

Page 12: CB Getting Started Handling

8/2/2019 CB Getting Started Handling

http://slidepdf.com/reader/full/cb-getting-started-handling 12/22

Page 12 / 22

• Select the root of the tree,

• Edit the mimic by clicking on the Mimic… option from theOpen menu or using the Open mimic icon.

Page 13: CB Getting Started Handling

8/2/2019 CB Getting Started Handling

http://slidepdf.com/reader/full/cb-getting-started-handling 13/22

Page 13 / 22

5.1.4.3 Addition of the graphic view of each equipment in the mimic 

• Place the transfer table Zone A in the mimic by selecting thetransfer table instance called ftransferZoneA in the tree. Then,

• Place the cursor in the MAN list area in the lower part of themimic editor,

• Select the Add MAN option from the transient menu, then theanimation model you want to add conveyor ,

Page 14: CB Getting Started Handling

8/2/2019 CB Getting Started Handling

http://slidepdf.com/reader/full/cb-getting-started-handling 14/22

Page 14 / 22

• Place the equipment in the graphic view of the mimic.

• Repeat these previous steps with the transfer tables for ZoneB and C

• Insert the traverser animation model,

Insert the product creators and the product killer animationmodels,

• Insert the product animation model (box),

6 Installation configuration

The electromechanical equipments must be configured with enough

high precision in order to minimize (on the control part point of view)the difference with the site during the commissioning phase. So, we haveto configure the equipments with their real parameters (capacity, speedrising time, nominal speed value...).

When we put the conveyors in the mimic, they were automatically placedand resized in an orthonormal basis. By default, this reference mask is 10meters by 10 meters. So, we have to adapt the speeds of the conveyor tobe consistent with the conveyors size.

Note: in a real application, it is evident that conveyors must be sizedregarding to the installation mechanical plan and the electromechanicaldevices must receive their real parameters (speed rising time, nominalspeed…)

In the tree editor, configure the parameters of nominal speeds for all themotor instances. These variables are nominalHighSpeed ,nominalLowSpeed . We gonna choose the following values:

•  nominalHighSpeed = 0.2

•  nominalLowSpeed = 0.1

Instances to modify are:

•  simple_traverser/translationmotor  

•  simple_traverser/transferTable/driveProductMotor  

•  transferZoneA/driveProductMotor  

•  transferZoneB/driveProductMotor  

Page 15: CB Getting Started Handling

8/2/2019 CB Getting Started Handling

http://slidepdf.com/reader/full/cb-getting-started-handling 15/22

Page 15 / 22

•  transferZoneC/driveProductMotor  

To modify the value of a variable, you must:

• Select the corresponding instance in the tree,

• Select the variable in the list on the right part,

• Open the variable properties window by double click on thevariable,

• Keyboard the value in the Initial value field.

Page 16: CB Getting Started Handling

8/2/2019 CB Getting Started Handling

http://slidepdf.com/reader/full/cb-getting-started-handling 16/22

Page 16 / 22

Save the configuration by using the Save icon.

7 Control part design

7.1 Sequence designWe are going to design a simple sequence in SFC language to controlthe installation we just designed.

7.1.1 Creation and edition of the component

To create a new component, you have to:

Select the application in the first column of the ControlBuildmanager editor.

• Then in the second column, select the New component… option from the transient menu.

• Give a name to the component (sequence  for example),select the SFC language and validate.

A component is added in the second column. Select it and click on theEdit… option from the transient menu.

7.1.2 SFC sequence

To create the SFC, you should:

Page 17: CB Getting Started Handling

8/2/2019 CB Getting Started Handling

http://slidepdf.com/reader/full/cb-getting-started-handling 17/22

Page 17 / 22

• Declare the variables by using the option New variable… from the transient menu of the variables area

• Create the following variables :

Name Tab Type Initial 

value Description 

productPresence Inputs BOOL false Product presence detected

presenceTrav Inputs BOOL false Traverser detection

leftSensor Inputs BOOL false

rightSensor Inputs BOOL false

emptyingSensor Inputs BOOL false Emptying sensor of zone C

fwdC2 Outputs BOOL false Forward command conveyor 2

highSpeedC2 Outputs BOOL false High speed for conveyor 2

fwdC3 Outputs BOOL false Forward command conveyor 3

highSpeedC3 Outputs BOOL false High speed for conveyor 3

fwdTrav Outputs BOOL false Forward command of traverser

highSpeedTrav Outputs BOOL false High speed for traverser

travFwd Outputs BOOL false

travBwd Outputs BOOL false

Page 18: CB Getting Started Handling

8/2/2019 CB Getting Started Handling

http://slidepdf.com/reader/full/cb-getting-started-handling 18/22

Page 18 / 22

• Place an initial step, 10 normal steps and connect thesesteps

• Format the SFC by using the icon and number it by using

the icon.

• You should now associate actions and receptivities to stepsand transitions. To do so, select a step and click twice on therectangle associated to this step. Then, you can type thecode or drag and drop the variables from the variables areato the step.

• Realize the following sequence

Page 19: CB Getting Started Handling

8/2/2019 CB Getting Started Handling

http://slidepdf.com/reader/full/cb-getting-started-handling 19/22

Page 19 / 22

Page 20: CB Getting Started Handling

8/2/2019 CB Getting Started Handling

http://slidepdf.com/reader/full/cb-getting-started-handling 20/22

Page 20 / 22

7.2 Installation upgradingWe have now to instantiate our real plant component and our control partcomponent in the final application

7.2.1 Component edition

Edit the component my_application  in the second column from themanager editor and select the Edit… option from the transient menu.

7.2.2 Physical equipment and control part insertion

We have to insert the following components in our my_application component:

• One instance of the process component,

• One instance of the sequence component,

7.2.3 Variables connection and interfaces creation

We have to put all the variables corresponding to an operator action(pushbuttons, switch, …) in inputs interface of the application and all thevariables corresponding to a visual feedback (display, light, …) in outputsinterface of the application.

Page 21: CB Getting Started Handling

8/2/2019 CB Getting Started Handling

http://slidepdf.com/reader/full/cb-getting-started-handling 21/22

Page 21 / 22

Then we have to connect the outputs of the control part to thecorresponding inputs of the real plant part and vice and versa.

Now you need to upgrade the conveyor positions in the applicationbecause for this time they are defined on the process model itself.

Open the tree editor on the application by double click on the applicationname in the left column from the manager editor.

Select the instance proces1 in the tree and click on the optionpropagate subnodes initial values from the Edit menu.

7.3 Launch the simulationOpen the tree editor on the application by double click on the applicationname in the left column from the manager editor.

Select the instance process1 in the tree and open the associated mimic

by using the icon.

Launch the simulation from the tree editor by using the Start icon .

Then, put the simulation in continuous mode by using the Continue  

icon .

Then you have to put the start variable to true .

To do so, choose the root of the tree then click twice on the start variablein the right part of the tree editor.

Page 22: CB Getting Started Handling

8/2/2019 CB Getting Started Handling

http://slidepdf.com/reader/full/cb-getting-started-handling 22/22

P 22 / 22

Then choose the value true in the real value field.

Then you can see the sequence running on the mimic.