[go: up one dir, main page]

0% found this document useful (0 votes)
335 views34 pages

AC 800PEC Training

PLC

Uploaded by

Toi Toi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
335 views34 pages

AC 800PEC Training

PLC

Uploaded by

Toi Toi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 34

AC 800PEC Training

Course J410 Control Builder


ABB Switzerland AG Introduction
Learning Center Chapter 21
Power Electronics
Turgi, Switzerland
AC 800PEC J400 Training Rev A1
© 2005 ABB Ltd - 1 -

© 2007 ABB Ltd 31/08/2007 Page 1


AC 800PEC Training

21. The Control Builder M for AC 800PEC


Objectives: The participant is able to
Install AC 800PEC Control Builder Extension
start the Control Builder
open a project „Table Model“
explorer a project using the project explorer
use the POU Editor
select On-line/Off-line/simulation mode
import and use the Simulink interface (HWD File)
save Cold Retain Values to the flash memory
AC 800PEC J400 Training Rev A1

modify an existing program


© 2005 ABB Ltd - 2 -

save the project to the flash memory

© 2007 ABB Ltd 31/08/2007 Page 2


AC 800PEC Training

21. The Control Builder M for AC 800PEC


Contents:
21.1 Install the Control Builder for AC 800PEC
21.2 Start the Control Builder
21.3 The Toolbar
21.4 The Explorer
21.5 The Function Block Library
21.6 How to use the POU Editor
21.7 Variables and Data Types
21.8 Task Definitions
21.9 On-line/Off-line/Test Mode/Download
AC 800PEC J400 Training Rev A1

21.10 Extensive Help Function


21.11 How to Create a New Project
© 2005 ABB Ltd - 3 -

21.12 The I/O units of the Control Builder


21.13 How to Save Cold Retain Variables

© 2007 ABB Ltd 31/08/2007 Page 3


AC 800PEC Training

21.1 Install the Control Builder for AC 800PEC

The Control Builder M must be prepared before use for AC 800PEC:

1. Install the Control Builder M Professional

2. Update the Control Builder for AC 800PEC with the add-on software

3. Implement the AC 800PEC Function Block Library

4. Import the Hardware Definition File of MATLAB/Simulink if applicable


AC 800PEC J400 Training Rev A1

5. Import the Hardware Definition File of AnyBus-S if applicable


© 2005 ABB Ltd - 4 -

© 2007 ABB Ltd 31/08/2007 Page 4


AC 800PEC Training

21.1 Install the Control Builder for AC 800PEC

Step 1: Install the Control Builder M Professional


Procedure
Install or update the original
Control Builder M and make
sure that you use the
appropriate release. The
current release is 5.0.0
AC 800PEC J400 Training Rev A1

Usually we use the


Compact Control Builder
© 2005 ABB Ltd - 5 -

The Control Builder for the AC 800PEC is installed as follows:

1. Install the original Control Builder M Professional or the Compact Control Builder

Released versions: see Software Guide, Appendix A – Software Release


Compatibility.
For all other versions, Trouble-free functioning cannot be guaranteed.
To check the Control Builder Version: Click the Help menu,
then click About Control Builder M Professional.
Please refer to the relevant Control Builder M documentation
for detailed directions.

© 2007 ABB Ltd 31/08/2007 Page 5


AC 800PEC Training

21.1 Install the Control Builder for AC 800PEC


Step 2: Update the Control Builder for AC 800PEC 1/2
In order to upgrade the Control Builder M for AC 800PEC
the following file is distributed:

Start the file and follow the instructions on the screen:

Select the type of


AC 800PEC J400 Training Rev A1

Control Builder
you have installed,
usually the Compact
Control builder
© 2005 ABB Ltd - 6 -

2. Execute the AC 800PEC Upgrade Installer file ControlBuilderXXX.exe


and follow the online installation guidelines.

The Control Builder M is now upgraded and ready to be used with the
AC 800PEC and the libraries and template for the AC 800PEC are added.

For example the data in the new Folder AC800PEC_Extra in


C:\Program Files\ABB Industrial IT\Engineer IT\Compact Control Builder AC 800M
5.0\
and the templates for PEC800 and PEC80 are added.

To change the default Project work directory, use the SetupWizard.exe file under
following folder:
C:\Program Files\ABB Industrial IT\Engineer IT\Control Builder M Professional
3.2\Bin
Modify the “File location” according to your wishes.

© 2007 ABB Ltd 31/08/2007 Page 6


AC 800PEC Training

21.1 Install the Control Builder for AC 800PEC


Step 2: Update the Control Builder for AC 800PEC 2/2
In order to store an application in the Flash memory of the AC 800PEC a new
environment variable named SL_REDIRECT_FLASH has to be created:
AC 800PEC J400 Training Rev A1
© 2005 ABB Ltd - 7 -

To store an application in the Flash memory of the AC 800PEC, proceed


as follows:
Establish an environment variable named SL_REDIRECT_FLASH to
redirect the ControlIT application to a folder instead of a removable Flash
device:
1. Select/create an appropriate folder, e.g.
C:\ABB Industrial IT Data\FLASH\. (maximum 70 characters)
2. On your Desktop select
START/Settings/Control Panel/System than Advanced and
Environment Variables.
3. In the appearing Window enter the variable name
and th-e target folder. Then click OK.

See also the User’s Guide Chapter 8.10

© 2007 ABB Ltd 31/08/2007 Page 7


AC 800PEC Training

21.1 Install the Control Builder for AC 800PEC


Step 3: Implement the AC 800PEC Function Block Library
(List is not completed)

PECLib
AC 800PEC J400 Training Rev A1
© 2005 ABB Ltd - 8 -

The Libraries folder contains all the libraries used in a project. By connecting a
library to a project, its types become available to the application.
SystemLib is a library always available in the Project Explorer. Other libraries have
to be inserted by the user. Some libraries may require separate licenses to be
inserted and used in the project.
The libraries may contain type definitions, such as data types, functions, function
block types and control module types, that can be used in the project. The contents
of a library cannot be changed.
Standard Libraries
The SystemLib is always available. It contains all system types, for example, timers,
counters, SR flip-flops and edge detectors.
A number of standard libraries are supplied with the system containing, for example,
functions for PID control, alarms, events etc. You must insert these standard libraries
into the Libraries folder, to make them available in the project. Each library contains
data types, functions, function block types and mostly also control module types.
To get information about a library, select the library icon and press the F1 key to
display the introduction help topic.
See also Common Properties for Standard Libraries.
AC 800PEC Function Block Library
Copy the AC 800PEC Function Block Library (or the special library used in your
project) directly into your project folder, so they will be integrated to your Control
Builder Project Backup and also available for future use.

© 2007 ABB Ltd 31/08/2007 Page 8


AC 800PEC Training

21.1 Install the Control Builder for AC 800PEC


Step 4: Import the Hardware Libraries of MATLAB/Simulink
OperateIT

Tools
Control Builder
Insert Hardware Control Builder
Library to Control
Builder

Generate Hardware
Libraries
Simulink
AC 800PEC J400 Training Rev A1

Create File
Editor
(Signal Description)
© 2005 ABB Ltd - 9 -

Read more in Chap. 7.12

Custom Hardware Libraries


The system hardware libraries can be installed together with the tool. The custom
hardware libraries, however, can be stored together with the project files.
For example, different projects can have different custom hardware libraries.

© 2007 ABB Ltd 31/08/2007 Page 9


AC 800PEC Training

21.2 Start the Control Builder


AC 800PEC J400 Training Rev A1
© 2005 ABB Ltd - 10 -
Start the Control Builder:

Introduction:
This engineering tool for process controllers provides powerful programming
languages according to the IEC 61131-3 standard.
A Project Explorer facilitates navigation through the entire project. Program
segments of interest are easily searched and edited. Online help, online manuals
and context-sensitive, easy-to-use assistance offers help when entering variables,
data types, program code, etc.
The engineering tool offers a number of online facilities during testing, program
modification and commissioning. The status of I/O signals, variables, etc., can be
inspected online.
Libraries with a large number of predefined functions and function blocks for efficient
programming are available.
User-defined data types and function blocks can be created.

© 2007 ABB Ltd 31/08/2007 Page 10


AC 800PEC Training

21.3 The Tool bar of the Control Builder for AC 800PEC

Open Project Test Project Go Online Download to RAM


and Go Online
Create new Project
AC 800PEC J400 Training Rev A1
© 2005 ABB Ltd - 11 -

Test
Use the Test Project entry in the Tools menu for offline testing of the user programs,
with no controller. It compiles and tests the project. All tasks are executed locally in
the PC.
Stop Testing
Stops the simulation of the application and enters the offline mode.
Online
Use the Online entry in the Tools menu to connect to the controller, for example, if
you want to debug the program code in online mode. The program code running in
the controller is compared with the program code in the application. If the versions
differ, the engineering tool cannot connect to the controller and the application
returns to offline mode. Compile and download the program code into the application
and then enter online mode (see the Download Project and Go Online entries
below).
Offline
Use the Offline entry in the Tools menu to return to offline mode. In offline mode, all
program modification functions are enabled. Program updating stops, but the
controller program continues to execute. When going to offline mode the variable
values of coldretain are retrieved from the controller.
Download Project and Go Online
The program code in the application is compiled and downloaded to the RAM for
execution in the controller. The application automatically enters online mode (see
above). If you want to enter offline mode, select the Offline entry (see above).

© 2007 ABB Ltd 31/08/2007 Page 11


AC 800PEC Training

21.4 The Project Explorer of the Control Builder


The Explorer:

Libraries

Applications with
Programs

Controller Description
AC 800PEC J400 Training Rev A1

-I/O units
-Task definition
© 2005 ABB Ltd - 12 -

Lower Pane (Check and Messages)


with tree tabes

The Project Explorer:


The project is managed in the Project Explorer where the control system hardware
and communication options, tasks are shown in a tree structure in Offline mode. The
project also contains libraries of predefined Program Organization Units (POUs).
Hardware and communication settings, as well as program code and variables, are
displayed and can be changed in editors. All changes are made in Offline mode.
In Online mode the programming editor can be used to display and change values of
variables and parameters as the code executes. Operator windows are also
available in Online mode.

© 2007 ABB Ltd 31/08/2007 Page 12


AC 800PEC Training

21.5 The Function Block Library


The AC 800PEC Function Block Library for ControlIT
(List is not completed)

PECLib
AC 800PEC J400 Training Rev A1
© 2005 ABB Ltd - 13 -

The Function Block Library:


To insert a Library, follow the instruction below:
1. Select the Libraries folder in the Project Explorer tree.
2. Click the right mouse button and select Insert Library. (Instead of steps 1 and 2
you can select Insert File Into Project> Library... in the File menu.)
3. The Insert Library dialog box is displayed.
4. Select a library from the list in the dialog box or type the name of the library in the
File name field (extension *.lbr). The default library directory is displayed in the
Look in field. If the library is to be saved in another directory, use the drop-down
list to browse for the desired directory. Use the drop-down list under the Go to
folder to switch between the system library folder and current project folder.
To be able to open official versions (check the box Use official versions), the
UseOfficialSourceOnly system variable must be set to False. See Save Source
Code as Official Version.
5. Click the Open button to insert the library.
The inserted library is displayed in the Project Explorer as a subfolder to the
Library folder.

Remark:
Copy the special libraries (not part of Control Builder M Professional installation)
used in your project directly into your project folder before you insert them, so
they will be integrated to your Control Builder Project Backup and also available
for future use.

© 2007 ABB Ltd 31/08/2007 Page 13


AC 800PEC Training

21.6 How to use the POU Editor


The Program Organization Unit (POU) Editor:

Variable Declaration
Double click
to open POU editor

Code Pane
- Function blocks
AC 800PEC J400 Training Rev A1

- Structured text
- Ladder diagram
- Sequence diagram
© 2005 ABB Ltd - 14 -

Program Organization Units:


The IEC-61131 standard describes programs, function blocks and functions as
Program Organization Units or POUs. These units help you organize your
automation project into code blocks to minimize code writing and optimize code
structure and code maintenance. Function block and function POUs are not limited
to "one-time-use". You can use them repeatedly and in a recursive structure.
In addition to these two types of POUs, there is the program. Although the program
is the only POU that cannot be reused in any of the other POUs it is defined as a
POU.
The Application contains the program code that is to be compiled and downloaded
for execution in the controller.

© 2007 ABB Ltd 31/08/2007 Page 14


AC 800PEC Training

21.7 Variable and Data Type


Declaration of Variables: Attributes:
No attribute:
After a restart the value is set to
its initial value. If no initial value
is assigned to the variable than
it will get the default value of the
data type.
Retain:
The value of the variable is
maintained after a warm restart.
Coldretain:
The value of the variable is
maintained after a warm or cold
restart. To save coldretain
variables use the “Save Cold
Retain” function block
Constant:
The value of the variable is
AC 800PEC J400 Training Rev A1

fixed.
Hidden:
The variable is not visible to the
OIPC server. This will reduce
© 2005 ABB Ltd - 15 -

network traffic.

Variables:
The variables in the program are the carrier of the value. They are defined by their
name (identifier) and data type. The data type can be regarded as the description
that defines the characteristics of the variable. There are different types of variables
in the system. You declare variables in the Declaration Pane.
Local variables can only be accessed in the same function block, control module,
or program in which they are declared. They can not be accessed from any other
function block or program.
Global variables can be accessed from any of the programs. Before accessing a
global variable in a function block, it must be declared as an external variable.
External variables must be declared if a global variable is to be available in a
function block or a control module.
Access variables are variables that can be accessed by other controllers. This
allows data exchange between controllers.

© 2007 ABB Ltd 31/08/2007 Page 15


AC 800PEC Training

21.7 Variable and Data Type


Simple Data Types:
Data type Description Bits
Bool Boolean 1
Dint double integer 32
Int Integer 16
Uint Unsigned integer 16
String Character string
Word Bit string 16
Dword Bit string 32
Time Duration
AC 800PEC J400 Training Rev A1

Date_And_Time Date and timer of day


Real Real number 32
© 2005 ABB Ltd - 16 -

Data Type:
Simple data types are primarily grouped into five categories: numerical, date and
time, string, bit string (for example bool) and structured data types. Each category
can then be subdivided into subordinated categories such as numerals (int and real).
These can then be subdivided into subordinated items such as dint, uint etc.
Memory Allocation
All variables are represented in the system as 32-bit data, so dint from any_int is the
type to use to represent, integers independent of their range. For example, using int
works for 8-bit integers (that is integers in the range -128 to 127), but the same
quantity of memory is allocated as would be allocated for dint, that is 32-bit memory
allocation. Except from a theoretical viewpoint ("separating" variables from each
other based on their usage and contents), there is nothing to be gained by using
anything except dint (as concerning integers). The same is valid for real numbers. In
that case, use real.

© 2007 ABB Ltd 31/08/2007 Page 16


AC 800PEC Training

21.7 Variable and Data Type


Structured Data Types: Create your data type !

Right mouse click


AC 800PEC J400 Training Rev A1

Double mouse click


© 2005 ABB Ltd - 17 -

Type declaration
of a variable

Structured Data Type:


Using user-defined structured data types, you can create new data types with simple
data types on a subordinate level. This concept is best explained through an
example.
Given a tank in a factory, the tank has the following characteristics:
• the state "filled", that is, if the tank is filled or not,
• the contained volume of fluid (measured in cubic meters),
• the temperature of the contained fluid (measured in Kelvin),
• the minimum allowed temperature of the fluid, and
• the maximum allowed temperature of the fluid (both measured in Kelvin).
You can collect all these characteristics into one data type using the structured data
type struct.
Given the specifications above, define a structured data type called tank_type, with a
main identifier tank and subordinate identifiers filled (Boolean), volume (real), temp
(real), max_temp (real) and min_temp (real).

© 2007 ABB Ltd 31/08/2007 Page 17


AC 800PEC Training

21.8 Task Definition


Select the Task Properties:

Right mouse click


AC 800PEC J400 Training Rev A1

Create New Task


Right mouse click
© 2005 ABB Ltd - 18 -

Task Definition:
A task is defined as an execution control element that is capable of starting, on a
periodic basis, the execution of a set of POUs. In the project overview window you
will find three default programs, labelled Fast, Normal and Slow. The configuration of
a task is performed in the Task Properties dialog box.
The three most important task parameters that can be set to optimize program
execution, are:
• Priority
There are six levels of priority: Time Critical, Highest, High, Normal, Low, and
Lowest, numbered from 0 to 5.
The tasks are executed according to their priority where the time-critical task has the
highest priority.
There can only be one time-critical task. Such a task may interrupt the execution at
any point, while other tasks may only interrupt execution at defined points
•Interval time
The interval time during which the program is executed, is set in the Task Overview
window, or in the Task Properties dialog box. Default values are 50 ms (Fast), 250
ms (Normal) and 1000 ms (Slow).
You can change these values at any time. For a time-critical task, the interval time
can be as short as 1 ms. The interval time of tasks of priority 1–5 cannot be less
than 10 ms. The resolution is 1 ms.
The interval time can be set through the SetIntervalTime function or via the Task
Information dialog box.
• Offset
Offset is a mechanism that can be used to avoid unexpected delays in execution
when tasks are scheduled to execute at the same time.

© 2007 ABB Ltd 31/08/2007 Page 18


AC 800PEC Training

21.9 On-line/Off-line/Test mode

Test mode On-Line mode


Use this button for offline testing Use this button to connect to the
of the user programs with no controller, e.g., if you want to
controller required. It compiles debug the program code in
AC 800PEC J400 Training Rev A1

and tests the project. All tasks running mode.


are executed locally in the PC.
© 2005 ABB Ltd - 19 -

Stop Test mode

Test Project
Use the Test Project entry in the Tools menu for offline testing of the user programs,
with no controller. It compiles and tests the project. All tasks are executed locally in
the PC.
Stop Test mode
Stops the simulation of the application and enters the offline mode.

Online
Use the Online entry in the Tools menu to connect to the controller, for example, if
you want to debug the program code in online mode. The program code running in
the controller is compared with the program code in the application. If the versions
differ, the engineering tool cannot connect to the controller and the application
returns to offline mode. Compile and download the program code into the application
and then enter online mode (see the Download Project and Go Online).
Offline
Use the Offline entry in the Tools menu to return to offline mode. In offline mode, all
program modification functions are enabled. Program updating stops, but the
controller program continues to execute. When going to offline mode the variable
values of coldretain are retrieved from the controller (see also Save ColdRetain).

© 2007 ABB Ltd 31/08/2007 Page 19


AC 800PEC Training

21.9 How to download an application


Download application to the FLASH Memory or RAM only:
Download to FLASH
Right click on the controller
and choose Compact Flash

Then choose the Flash Utility

Download to RAM
This will download the application
AC 800PEC J400 Training Rev A1

to the RAM only and the Control


Builder is set to on line mode.
© 2005 ABB Ltd - 20 -

Read more in the User’s Guide chap. 8.10

Download Project and Go Online


The program code in the application is compiled and downloaded to the RAM for
execution in the controller. The application automatically enters online mode (see
above). If you want to enter offline mode, select the Offline entry (see above).
By power off, all changes and parameters are lost!

Save the Applications to Flash Media and Go Online


The program code in the application is compiled and downloaded to the FLASH
Memory. The controller is rebooting and then the application enters online mode.

© 2007 ABB Ltd 31/08/2007 Page 20


AC 800PEC Training

21.10 Extensive Help Function

There is a powerful online help in the


Control Builder.

- Start the help icon from the menu.

- or Help | manuals
AC 800PEC J400 Training Rev A1
© 2005 ABB Ltd - 21 -

- or use the F1 key

Help Menu
To call the system's online help, use the Help menu, which is available in the Project
Explorer and the editors.
Pressing the F1 key on the item currently selected often provides context-sensitive
help.
If no help is available for the selected item nothing is displayed.
Sometimes, several help topics are related to the selected item. In this case, a
dialog box containing the topics found is displayed.
The Help menu of the editor contains three commands; Help Topics, Help about the
editor and Help about (object in the editor).

© 2007 ABB Ltd 31/08/2007 Page 21


AC 800PEC Training

21.11 How to Create a New Project


Create a new project:

Select the template


of AC 800PEC
AC 800PEC J400 Training Rev A1

Or PEC80
© 2005 ABB Ltd - 22 -

Create a Project:
1. In the Control Builder click the File menu, New Project
and select AC 800PEC
2. Enter the project name and location and click OK
File names can only contain the following characters:
A..Z; 0..9 and ‘‘_’’ (character case does not matter)
Not allowed are umlauts, blanks and special characters,
such as \ / ; * ? « < > ¦

© 2007 ABB Ltd 31/08/2007 Page 22


AC 800PEC Training

21.12 The I/O units of the Control Builder


The I/O units:

The Hardware provides the


following I/O units:

Optical ModuleBus for S800 I/O (identical to AC 800M)

Simulink defined by Hardware Description File *.hwd

CEX-BUS Communication

AnyBus-S I/O-Interface
AC 800PEC J400 Training Rev A1
© 2005 ABB Ltd - 23 -

I/O System Overview


The product supports a number of different I/O systems. An I/O system is defined by
the way you connect I/O to the system. You can do this in several ways. For
example, you can connect I/O to the controller system bus, connect it directly to the
CPU, or connect it via a fieldbus. In a PC, you can connect I/O via a PC-board that is
either connected to I/O directly or via a fieldbus.
Several I/O units are usually grouped in what are called I/O connections. The
number of I/O units grouped together in a connection depends on the current I/O
system. For example, in Central I/O, there are up to eight I/O units in one
connection, but for PROFIBUS-DP, all I/O units on a particular slave are considered
to belong to one connection. It is also possible to have just one I/O unit in a
connection (for example, On Board I/O).
I/O Configuration
When I/O units are configured for the first time, a new connection is made and the
I/O units belonging to this connection are configured. When you change
connections, for example, by adding an I/O unit in the connection, it may be
necessary to reconnect the connection. When making other types of changes, it may
be able to configure the existing connection without reconnecting it. The result of
these types of changes, and how they affect the connection to the I/O, is I/O-system
dependent. You are, however, always informed of the consequences of the changes
when you enter Online mode.

© 2007 ABB Ltd 31/08/2007 Page 23


AC 800PEC Training

21.12 The I/O Units (S800)


S800 I/O unit
I/O Channels
Variables

S800 I/O
AC 800PEC J400 Training Rev A1
© 2005 ABB Ltd - 24 -

ModuleBus
Integrated master unit for ModuleBus. I/O units connected to ModuleBus are divided
into clusters.
The ModuleBus can handle up to 96 S800 I/O-units. 12 I/O-units can be directly
connected to the ModuleBus on the central unit, while the remaining I/O-units have
to be connected via I/O-clusters. Up to 7 I/O-clusters can be connected to the
ModuleBus, and the numbering of I/O-units connected to a cluster will start with 101
for cluster 1, 201 for cluster 2 and so on.
Cluster 0 is electrically connected to the master and clusters 1-7 are connected via
an optical bus.
Cluster 0 is not applicable with AC 800PEC controller!
ModuleBus also supports ABB Standard Drives and ABB Engineered Drives via the
optical connection. It is possible to connect a maximum of 84 ABB drives on the
optical ModuleBus on AC 800M. Each attached cluster modem allocates 12
consecutive addresses on the ModuleBus. It is not possible to address a drive in the
same “address space” a cluster modem is using.
Settings Tab
Parameters Description
External power supervision The parameter can be set to: True or False.
Scan Cycle Time Parameter for the cycle time of the ModuleBus
scanner, can be set in the range 0...250 ms.
Default setting: 0.

© 2007 ABB Ltd 31/08/2007 Page 24


AC 800PEC Training

21.12 The I/O Units (Simulink Interface)


The Simulink Interface *.HWD
OperateIT

Tools
Control Builder
Import HWD File into Control Builder
Control Builder

Generate Hardware
Description (HWD) File
Simulink
AC 800PEC J400 Training Rev A1

Create File
Editor
(Signal Description)
© 2005 ABB Ltd - 25 -

Data Exchange with MATLAB/Simulink Application:


In case of a fast MATLAB/Simulink application (which is treated as in I/O unit in the
Control Builder M), an additional and project-specific HWD file must be inserted into
the Control Builder Application.
This additional HWD file is supplied along with the installation package.
Proceed as follows to import the MATLAB/Simulink application into the Control
Builder Application.

© 2007 ABB Ltd 31/08/2007 Page 25


AC 800PEC Training

21.12 The I/O Units (Simulink Interface)


Preparation for insert / replace of the
hardware definition files

Insert Library from Program Files…AC800PEC_Extra

Save a copy in the project folder

Insert the saved copy

Remove the template


AC 800PEC J400 Training Rev A1

Read more in the


User’s Guide chap. 8.5
© 2005 ABB Ltd - 26 -

Preparing for Insert of the Simulink HWD File:


1. Insert the Simulink hardware library of the installation package which is located in
the
folder C:\Program Files\ABB Industrial IT\Engineer IT\
Compact Control Builder AC 800M 5.0\AC800PEC_Extra\HWLibraries
2. Safe a copy of the library in the project folder
Important: With the current version of the Control Builder, do not use the
Browse option since it will not copy the file to the correct folder.
Instead, type the project location either by hand or copy the path from the
Windows Explorer. Always add a backslash (\) to the path.
3. Insert the saved copy
4. Remove the template

© 2007 ABB Ltd 31/08/2007 Page 26


AC 800PEC Training

21.12 The I/O Units (Simulink Interface)


In order to use the Simulink interface as an I/O unit in the Control Builder
The so called Hardware Definition File of Matlab/Simulink must be inserted!

Hardware Definition File


AC 800PEC J400 Training Rev A1
© 2005 ABB Ltd - 27 -

Inserting Simulink HWD File:


1. Extract the Hardware Description (.HWD) file containing the MATLAB/Simulink
application from the InstallerArchive.zip file and save in a folder.
The HWD file should not be located in the same folder as the Control IT project.
2. Right-click on the Simulink Hardware types and choose Insert/Replace Hardware
Type

© 2007 ABB Ltd 31/08/2007 Page 27


AC 800PEC Training

21.12 The I/O Units (Simulink Interface)


Defining Simulink Connections (Parameter and Signals)

Input / Output
Definition

Channel Designation:
QWO.101.0
Number defined by Developer
Hardware unit address
AC 800PEC J400 Training Rev A1

O for all channels


Virtual I/O unit
W for anolog / X for Bool
Q for Parameter / I for Signal
© 2005 ABB Ltd - 28 -

Defining Channel Connection:


The subgroups of the MATLAB/Simulink unit contain Simuling channels.
The Simulink channels can, like all other I/O units, be linked with program
variables.
1. Double-click the Simulink I/O Unit to show the Hardware Configuration Editor.
2. Select the Connections tab. The Simulink channels (which in fact represent the
accessible Simulink variables) are now displayed in the editor.
3. Link the Simulink channels with Control IT variables.

© 2007 ABB Ltd 31/08/2007 Page 28


AC 800PEC Training

21.12 The I/O Units (Simulink Interface)


Defining Simulink Settings

Cycle time with which the supervision checks whether the Simulink
software task is being executed

Defines the cycle time with which OPC events are generated from new
Simulink events since the last cycle
AC 800PEC J400 Training Rev A1

Defines how the Control IT time is being synchronized to the target


controller time
- disabled
© 2005 ABB Ltd - 29 -

- ControlIT Platform
- Platform ControlIT

Defining Simulink Settings:


1. Double-click the Simulink I/O unit to show the Hardware Configuration Editor.
2. Select the Settings tab
3. Enter the desired data.

© 2007 ABB Ltd 31/08/2007 Page 29


AC 800PEC Training

21.12 The I/O Units (Simulink Interface)


„Unit Status“ of the Simulink application

0 OK
AC 800PEC J400 Training Rev A1

1 Error
2 Warning
© 2005 ABB Ltd - 30 -

Simulink Unit Status:


The channel 30000 is permanently reserved for the Unit Status and may not be
altered by the user.
However, the values can be read in Tab Unit Status. In addition, depending on the
error/warning, a detailed description is written in the log file of the controller.

© 2007 ABB Ltd 31/08/2007 Page 30


AC 800PEC Training

21.12 The I/O Units (CEX-Bus Interface)


Data Exchange with ABB Expansion Bus (CEX)

The following Modules are supported

Double RS232-C (CI853)


Profibus Master
MasterBus 300
S100 I/O
AC 800PEC J400 Training Rev A1

CEX Expansion Module


CEX Bus
© 2005 ABB Ltd - 31 -

CEX-Bus Interface:
The CEX (Communication Expansion) Interface provides the physical connection
between the AC 800PEC controller platform to the ABB specific CEX bus system.
The CEX bus is used for connection of various types of communication interfaces.
The CEX module types which are supported by the AC 800PEC are listed in
Appendix B – Recommended Peripheral HW/SW Components.
The CEX module allows the connection of up to 6 external slave units to the CEX
bus. For further details on the applicable CEX bus topologies and devices please
refer to the AC 800M Controller Hardware Product Guide.
Serial interface (Com 3):
The serial RS-422 or RS-232 interface is used to communicate with a control panel.

© 2007 ABB Ltd 31/08/2007 Page 31


AC 800PEC Training

21.12 The I/O Units (AnyBus-S Interface)


Data Exchange with AnyBus-S Modules

The following AnyBus-S Modules


are supported by AC 800PEC
Profibus slave
Profibus DPV1 slave
Device Net slave
Modbus TCP
10MBit Ethernet optic
CC-Link
Lon Works slave
AC 800PEC J400 Training Rev A1

Modbus Plus slave


Modbus RTU slave
© 2005 ABB Ltd - 32 -

CANopen slave
Interbus slave & optic
ControlNet slave
FIPIO slave

AnyBus-S Interface:
The AnyBus-S (slave) interface is used to connect the AC 800PEC processor to any
standard fieldbus type. For some fieldbus types the AnyBus-M (master) can be used
as well. The fieldbus interface is designed according to each fieldbus specification.

© 2007 ABB Ltd 31/08/2007 Page 32


AC 800PEC Training

21.12 The I/O Units (AnyBus-S Interface)


HWD files of AnyBus-S I/O Table in Control Builder
acPECabs.HWD

input channels
User defined
AC 800PEC J400 Training Rev A1

output channels
User defined
© 2005 ABB Ltd - 33 -

AnyBus-S Interface:
Insert/replace the ac800abs.HWD File for AnyBus-S:
1. Find the Hardware Description (.HWD) file for the AnyBus_S interface under
C:\Program Files\ABB Industrial IT\Engineer IT\Compact Control Builder AC
800M 5.0\AC800PEC_Extra\Anybus_S\hwd
file acPEC800abs.hwd

© 2007 ABB Ltd 31/08/2007 Page 33


AC 800PEC Training

21.13 How to save Cold Retain Variables


Handling Cold Retain Variables
Alter to true if an error occurred

20003 Several instances of SaveCRetain FB has


been detected
20006 Internal error. The save job could not be ...
-
-

Alter to true for a short time if the save procedure has


been competed successfully

This enables to save coldretain values to


the flash PROM of the AC 800PEC by a positive slope on
AC 800PEC J400 Training Rev A1

the Request parameter.


© 2005 ABB Ltd - 34 -

The Softcontroller allows you to use the “save coldretain”


without actually being connected to a PEC controller.

The SaveCRetain function block:


The SaveCRetain function block (contained in the PECLib-library) is used to copy
retain values from the AC 800PEC controller RAM to the Flash memory, so that they
can be restored on a restart of the controller.
The SaveCRetain function block must be triggered with an appropriate input signal:
if a rising edge is detected on the Request input the function block saves the current
values of all the Control IT variables marked with the cold retain attribute to the Flash
memory.

The Softcontroller allows you to use the “save coldretain” without actually being
connected to a PEC controller.
So you can parametrizing without a AC 800PEC. The variables are stored in the file
*.crv.

© 2007 ABB Ltd 31/08/2007 Page 34

You might also like