


































































Studia grazie alle numerose risorse presenti su Docsity
Guadagna punti aiutando altri studenti oppure acquistali con un piano Premium
Questa pagina non è visibile nell’anteprima
Non perderti parti importanti!



































































2 TM210 Automation Studio Basis
Training modules: TM200 – B&R Company Presentation
TM201 – The B&R Product Palette
Software: Automation Studio 3
Automation Runtime 2.
Hardware: None
4 TM210 Automation Studio Basis
Automation Studio is a programming environment for the B&R automation components, which include the controller, motion control and visualization. The clear structure of projects and the ability to manage a wide range of configurations and machine variations makes working in teams that much easier.
In addition to a large number of diagnostics tools, the user is provided with different programming languages and editors. The use of standard libraries provided by B&R and IEC standards that are integrated in the system enables a highly efficient workflow.
Fig. 1 The Automation Studio splash screen
This training module will use examples – with the aid of the extensive Automation Studio help system – to demonstrate how to use the great many tools available in Automation Studio.
Automation Studio Basis TM210 5
1.1 Objectives
Participants will learn how to work with Automation Studio using examples that outline how a typical project works.
You will master the online help system and its navigation.
You will master data types and variables as well as their declaration.
You will get an overview of the different programming languages as well as the possibilities available for each.
Fig. 2 Overview
Installation
Automation Studio Basis TM210 7
2.2 Licensing
A dongle is needed to register Automation Studio. This is connected to the parallel interface or to a USB port on your PC.
2.3 Directory structure
After Automation Studio is installed, the following folders will be added underneath the target directory you specified during installation:
Fig. 5 Directory structure of an Automation Studio installation
Starting Automation Studio
8 TM210 Automation Studio Basis
Installation creates an entry for Automation Studio in the Start menu. Automation Studio can now be launched from the Start menu.
Automation Studio can be started multiple times.
Fig. 6 Automation Studio user interface
The B&R Automation Studio user interface shown above is displayed once the program has been started.
This interface consists of the following elements:
The First Froject
10 TM210 Automation Studio Basis
In this section, we will be creating a new project, writing a program, and transferring everything to the target system. The individual steps for each of these will be explained in detail.
Step-by-step procedure:
4.1 Creating new projects
To create a new project with Automation Studio, use the File: New project... menu item.
Fig. 7 Creating a new project
The New Project Wizard helps you to complete this task.
The First Froject
Automation Studio Basis TM210 11
The following settings need to be made:
Fig. 8 Creating a new project
Click on Finish once you have made all of the settings mentioned above.
The First Froject
Automation Studio Basis TM210 13
4.2 Creating a program
The following steps are necessary to insert a ladder diagram into the project:
4.2.1 Inserting a ladder diagram program
Fig. 10 Adding an object
The wizard for inserting an object is opened in the shortcut menu: Append Object.
Fig. 11 Selecting the object type
Select Categories - Program and then choose New Program. Clicking on Next will continue with the wizard.
The First Froject
14 TM210 Automation Studio Basis
Fig. 12 Object properties 1
Enter a Program name (e.g. MyProg1). A short description can also be entered in the Description field. The Data type declaration is not needed now for the purpose of this example and can therefore be disabled.
Selecting Variable declaration generates a file for the variable declaration of local variables for the new program. Continue with the wizard by clicking on Next.
Fig. 13 Object properties 2
Deselect the option Init program and select Ladder Diagram as Language.
The First Froject
16 TM210 Automation Studio Basis
4.2.2 Declaring variables
Fig. 16 Opening the declaration window
The variable declaration, for adding new variables, is opened by right- clicking MyProg1.var and selecting Open as Table.
A blank white area now appears in the right half of the screen. Add a new variable by right-clicking and selecting Insert Variable.
Fig. 17 Inserting a variable
Enter the name of the variable here. Use the name "diLight".
Fig. 18 Setting the variable name
We now just have to set the variable data type. This should be set to the data type "BOOL".
Fig. 19 Setting the variable type
A variable's data type can be changed by entering the data type name directly in the Type column or by double-clicking on the icon.
The First Froject
Automation Studio Basis TM210 17
Repeat this procedure on your own for the variable "doLight" and you will arrive at the following variable declaration.
Fig. 20 Variables for MyProg
Now save your changes using the save icon.
The variables that we want to use in our ladder diagram are now defined. That means that they can now be used in ladder diagram.
The First Froject
Automation Studio Basis TM210 19
Insert a coil by clicking on the icon. Repeat the same procedure as earlier with the variable doLight for the normally open contact.
Fig. 24 Connecting a coil
Your ladder diagram now looks like this:
Fig. 25 Finished ladder diagram
Save your work with the icon.
The First Froject
20 TM210 Automation Studio Basis
4.3 Compiling a project
We have now successfully finished creating the project and programming the ladder diagram. We will now compile our project. In this step, we are going to learn about any errors that might exist in our project or program.
Compile your project using the icon.
The following window appears after the project has been successfully compiled:
This window informs us that the entire project has been compiled is now up to date. It is also contains the note informing us that the project can now be transferred to the target system.
In the following section we will learn how to define a target system for the project.