AC 800PEC Training
AC 800PEC Training
2. Update the Control Builder for AC 800PEC with the add-on software
1. Install the original Control Builder M Professional or the Compact Control Builder
Control Builder
you have installed,
usually the Compact
Control builder
© 2005 ABB Ltd - 6 -
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.
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.
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.
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 -
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.
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).
Libraries
Applications with
Programs
Controller Description
AC 800PEC J400 Training Rev A1
-I/O units
-Task definition
© 2005 ABB Ltd - 12 -
PECLib
AC 800PEC J400 Training Rev A1
© 2005 ABB Ltd - 13 -
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.
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 -
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.
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.
Type declaration
of a variable
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.
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).
Download to RAM
This will download the application
AC 800PEC J400 Training Rev A1
- or Help | manuals
AC 800PEC J400 Training Rev A1
© 2005 ABB Ltd - 21 -
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).
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 \ / ; * ? « < > ¦
CEX-BUS Communication
AnyBus-S I/O-Interface
AC 800PEC J400 Training Rev A1
© 2005 ABB Ltd - 23 -
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.
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 -
Input / Output
Definition
Channel Designation:
QWO.101.0
Number defined by Developer
Hardware unit address
AC 800PEC J400 Training Rev A1
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
- ControlIT Platform
- Platform ControlIT
0 OK
AC 800PEC J400 Training Rev A1
1 Error
2 Warning
© 2005 ABB Ltd - 30 -
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.
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.
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
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.