Академический Документы
Профессиональный Документы
Культура Документы
Application Program
IEC61131-3 Target Installation Guide and Start Up
2
Table of contents
Table of contents 3 2
Compatibility .............................................................................................................................. 5 6H
Safety instructions...................................................................................................................... 5 7H
Reader ....................................................................................................................................... 5 8H
Requirements............................................................................................................................. 7 14H
Overview .................................................................................................................................. 22
28H
Requirements........................................................................................................................... 22 29H
Uploading................................................................................................................................. 23
32H
Table of contents
Identification............................................................................................................................. 34
48H
Registration .................................................................................................................. 34
49H
Setting .......................................................................................................................... 35
50H
Protecting................................................................................................................................. 36
51H
General .................................................................................................................................... 44
63H
General .................................................................................................................................... 51
68H
Functions ................................................................................................................................. 51
69H
Arithmetic.....................................................................................................................A 1 74H
Special.........................................................................................................................A 1 75H
DriveCtrl.......................................................................................................................A 5 82H
DriveState....................................................................................................................A 7 83H
Table of contents
MulDiv........................................................................................................................A 86H12
ParGet .......................................................................................................................A 87H13
ParProtect..................................................................................................................A 88H14
ParRead ....................................................................................................................A 89H15
ParSet........................................................................................................................A 90H16
ParWrite.....................................................................................................................A 91H18
ProgProtect................................................................................................................A 92H19
SquareRoot ...............................................................................................................A 93H19
Task...........................................................................................................................A 94H20
TaskCycle..................................................................................................................A 95H20
Appendix Registration R1 96H
Table of contents
Chapter overview
The chapter gives general information about the documentation.
Compatibility
The PC program CoDeSys is the hardware independent
IEC 61131-3 programming system under Windows for creating con-
troller applications. ABB DC Drives is using this programming sys-
tem for DCS800.
DCS800 target files and DCS800 libraries are necessary for devel-
oping a software application. With functions out of DCS800 libraries
the software application can be connected from and to firmware pa-
rameters and firmware signals.
Safety instructions
WARNING! The safety instructions for the appropriate DCS800 DC
Drive model must be studied carefully before doing program modifi-
cations or starting any work with the unit.
Neglecting the safety instructions may cause damage to the equip-
ment, physical injury or death.
Reader
The reader of the manual is expected to:
know the standard electrical wiring practices, electronic com-
ponents and electrical schematic symbols.
Glossary
The following terms and abbreviations are used in this manual:
Chapter overview
The chapter describes the installation of the IEC61131-3 PC pro-
gram CoDeSys including the DCS800 target and the DCS800 basic
library.
Requirements
PC system requirements
Pentium II, 500MHz
128 MB RAM
70 MB hard disc required
Windows 98 / NT 4.0 / 2000 / XP
(MS Internet Explorer 4.0 or later required)
CD ROM drive
Free serial port (for connecting to DCS800)
DCS800 requirements
Memory Card
If the program starts not automatically, please start the setup pro-
gram of CoDeSys installation directory from tools CD ROM.
Description
The description shows the most important windows of installation
Press OK.
Press Next
During installation the setup will also install Microsoft XML Parser.
Please follow these instructions.
Write your name and your company and then press Next.
Press Finish.
Chapter overview
This chapter describes the installation of a target.
Please note:
After installation of DCS800 CDROM, which includes CoDeSys and
other PC tools, the DCS800 target is also installed. In this case
nothing is to do.
DCS800 Target
For DCS800 Programming the target file must be installed in addi-
tion to the programming tool.
Start program
Please start the program “InstallTarget” of CoDeSys tool of folder
Start programs.
Note:
If the complete Customer CD-Rom is installed correctly, CoDeSys
and the necessary targets are installed automatically.
Chapter overview
The chapter describes the setting of serial communication from PC
to DCS800.
Press New … and in the opened window write a name for the new
channel; e.g. PC-COM1---DCS800.
Attention:
If there is more than one Device connection, the DCS800 target is
not installed correctly. In this case check the target installation!
Communication Parameters
Port COM1
(or another available port)
Baudrate 38400
Parity ODD
Stop bits 1
Motorola byteorder Yes
Memory Card
Chapter overview
The chapter describes the handling with the Memory Card.
Overview
Requirements
The Memory Card is used for application programming with
DCS800. The Memory Card is a Compact Flash Card, which can
be purchased from ABB only.
The application is stored on this Memory Card. If desired, the
source code and compiled code of the application can be saved on
it.
Please note:
This Memory Card is specially formatted and cannot be read or
write with PC equipments.
Writing via PC will make Memory Card useless for DCS800
Memory Card
Plug-In / Pull-Out
Switch off the electronic supply.
Plug in or pull out the Memory Card and switch on the electronic
again.
Please note:
Don’t plug-in or don’t pull-out the memory card with supplied
DCS800!
Downloading
Download an application via CoDeSys (Login of Online menu) or
download the application via DriveWindow light (DWL).
Uploading
Binary code and source code of an application can be uploaded, if
not protected.
Storing parameter
DCS800 parameter setting can also be saved to and be loaded
from memory card by using parameter 16.06 (ParApplSave).
Memory Card
Start Up Application
Chapter overview
This chapter describes basic setting for building up a DCS800 ap-
plication.
New project
After starting CoDeSys program a new project can be started either
as a blank new with New out of File menu.
A new project can also opened with New from template … out of
File menu, if a project with presettings is saved before.
Start Up Application
Attention:
It is necessary that one program is called PLC_PRG. Further pro-
grams can have other names!
The program PLC_PRG will be called in every cycle at first.
Start Up Application
Start Up Application
Library Manager
Now do the basic settings.
Start Up Application
For adding further libraries or for deleting press e.g. the right mouse
button.
Please note:
Please see Release Note for different libriries to operate with
DCS800 target.
Task Configuration
In tab Resources there can also be found the Task Configuration.
Start Up Application
More available tasks are Init, 5ms, 20ms, 100ms, 500ms and some
triggered by actions.
Save as template
For getting an application template save the “project” after basis
settings for DCS800 and after adding your “personally” libraries as
project; e.g. as “MyProjectTemplate”.
Start Up Application
Application Source
Now create your application by using libraries and IEC operators.
Please note:
DCS800 firmware (parameter and signals) can han-
dle only integer types. Real types must be converted
before writing to parameter or signal.
Parameter Manager
To create new parameters use the function of the parameters man-
ager. The new parameters provide functions:
default
maximum
minimum
scaling / enumeration
volatile / non volatile
Start Up Application
Please note:
The name of the list will also be shown as the name of the
group in the parameter list.
So it is recommended to insert a separate list for each pa-
rameter group!
It is not possible to select other types like parameters,
template and so on!
Then click OK
Start Up Application
Create Parameter
Mark a desired list (group) and insert a line.
Hex-format
Click on field of new line, beginning with group, and insert the de-
sired and correct inputs:
Example
Group group number of parame- 60 as parameter 60.01
ter.
Index index number of parame- 01 as parameter 60.01
ter
Name Name of parameter, My First
which will also shown as
parameter name in panel
or in PC tools.
The name can get maxi-
mal 17 characters.
Var Name of Variable of pro- .iPara_First
gram. A dot before this
variable means, that it
handled as a global one
Def Default value, which is set 0
after downloading applica-
tion.
Min Minimal value -1000
Max Maximal value 1000
Note:
Global variables can be used in several programs. For new created parameters it is necessary to
define global variables.
Start Up Application
Please note:
After e.g. parameter manager is reopened, group and in-
dex will be shown in Hex-format:
Group 60 = 16#3C and Index 01 = 16#1.
Start Up Application
Identification
CoDeSys offers the possibility to identify the developed application
by means of “Project Info”.
The first 12 characters of the fields “Title” and “Version” are shown
in the drives parameter group 4 “Information“. “Title” is written to
ApplicName (4.03) and “Version” is written to ApplicVers (4.12). So
the identification can also be read by the control panel.
Registration
Due to this fact we offer following identification possibility:
Start Up Application
Setting
Start Up Application
Protecting
Projects are to be saved on PC. Projects may be protected with two
levels of passwords for read or write protection.
Start Up Application
Please note:
If it is necessary to use a password, then take care that
you cannot forget it.
Start Up Application
Please check in the message window that there are no error and no
warnings. Otherwise check your application.
Analyze errors:
A click to an error shows the relevant line in the program.
Start Up Application
Start Up Application
Chapter overview
The chapter describes the possibilities of downloading software ap-
plication into DCS800 either by using CoDeSys tool or by using
Drive Window light (DWL).
Attention:
If the source code is saved on the Memory Card, it is possible to
upload the program with another PC.
Change to Offline-Mode.
Attention:
The ABB Download Tool uses the same connection settings like the
DriveWindow light software. Therefore connect first the Drive Win-
dow Light parameter list with the drive and then change in Offline-
Mode.
General
Uploading of program code is possible with CoDeSys program, if
the code is not protected with function block ProgProtect.
Press Save.
Press Save.
Delete a program
Chapter overview
This chapter describes the possibilities for the erasure of a pro-
gram.
General
There are 3 possibilities to delete a program:
Reset
This command resets all variables to that specific value, with
which they have got initialized.
Reset (cold)
This command sets all variables to their initialization value. The
situation is that which occurs at the start of a program, which
has been downloaded just before to the PLC.
Reset (original)
This command resets all variables including the remanent ones
to their initialization values and erases the user program on the
controller.
Functions
Find the functions for resetting in Online-Menu. It is necessary login
the system.
Delete a program
Delete a program
Appendix A - Libraries
Overview about available libraries
There are several libraries with function blocks available.
But only the DCS800 Drive Library will be shipped with the drive
and installed automatically with CDROM 3ADW000211. The other
libraries must be ordered and installed separately. Please contact
your local ABB sales office.
Arithmetic
The Arithmetic Library includes function blocks for processing with
numeric values. There are an integrator, a filter and a ramp genera-
tor available. Use this library for mathematic calculations.
Special
The Special Library includes function blocks for binary operations
and especially applications. It can be used for packing and extract-
ing boolean values. Also a gear calculator is available.
Winder
The Winder Library includes function blocks for winder applications.
The several function blocks must be connected to a complete struc-
ture for winding.
Appendix A – Libraries
Note:
AI5: AI1 of 1st analog I/O option module
st
AI6: AI2 of 1 analog I/O option module
Appendix A – Libraries
Note:
The result of AnOut is in parameter group 15 as CtrlWord. For connection with an
analog output of the drive, write down the CtrlWord in the belonging index of parame-
ter group 15.
Example:
Two values from analog input 1 and 2 should be subtract and write to analog output
1.
Now the result of AnOut is in parameter 15.02 stored. For connection to the physical
analog output 1 it is necessary to write the CtrlWordAO1 to the Index:
Parameter 15.01: 1502
Appendix A – Libraries
Note:
DO1…8: DO´s of DCS800 CON4
DO9…10: DO´s of 1st option module
nd
DO11…12: DO´s of 2 option module
The result of DigOut will be shown in parameter 7.05 as DO CtrlWord. For connec-
tion of a digital output with the drive it is necessary to write parameter 7.05 in the be-
longing index of parameter group 14. Choose also the correct bit in parameter group
14.
Appendix A – Libraries
Note:
Also unconnected inputs will be written to the correspondent destination parameter,
which means that the value of zero will be written.
The destination parameter will not be written with zero, if the open input is connected
to a constant of 100 000.
Appendix A – Libraries
Appendix A – Libraries
Appendix A – Libraries
Appendix A – Libraries
Appendix A – Libraries
Example:
In this example an alarm message will be activated with a boolean value. With the
function block EventInit there is the possibility to allocate an alarm text, which is
saved in parameter 60.01. The texts, which is declared as ENUM data type can be
selected in the parameter manager under Def, Min and Max.
Appendix A – Libraries
If you activate the alarm after 1000 ms the alarm switched on and you can see the
message e.g. on the panel.
Appendix A – Libraries
Note:
Internal values 32 bit limited to +/- 32767.
Appendix A – Libraries
Note:
ParGet and ParSet are based on the internal scaling of Parameters; speed scaling =
20000, torque- and current-scaling = 10000.
These blocks don’t store their values into the FLASH while writing on the firmware
parameters.
Appendix A – Libraries
Appendix A – Libraries
Note:
ParRead and ParWrite provide the same scaling as the values displayed on panel.
These blocks don’t store their values into the FLASH while writing on the firmware
parameters.
Appendix A – Libraries
Note:
ParGet and ParSet are based on the internal scaling of Parameters; speed scaling =
20000, torque- and current-scaling = 10000.
These blocks don’t store their values into the FLASH while writing on the firmware
parameters.
If you don´t need a masking input, set wAND to 0!!!
Appendix A – Libraries
Example:
The Main Control Word (7.01) should be set with the function block ParSet. But Bit 0
and 1 must be active all the time. In this case it is possible to use the input wAND for
the two Bits. The other Bits will be set with the input wOR.
The bits should be set like the picture above. This combination gives the Hex-Code
B8 and the Decimal-Code 184. In CoDeSys it is necessary to use the Decimal-Code!
This combination will be connected with wOR, the normal input.
Input wAND is for masking the wOR input.
In this example we set wAND to 3. That means bit 0 and 1 are set.
The result for 7.01 Main Control Word is BB or 187 in decimal.
If you change the value on the input wOR the bits 0 and 1 remain untouched.
Appendix A – Libraries
Note:
ParRead and ParWrite provide the same scaling as the values displayed on panel.
These blocks don’t store their values into the FLASH while writing on the firmware
parameters.
Appendix A – Libraries
Note:
Add this block to your initialization task.
Appendix A – Libraries
Note:
These tasks are definable in the CoDeSys task configuration.
TaskCycle Cycle time of the current task. It can be used for creat-
ing function blocks with discrete values like integrator.
Appendix A – Libraries
Appendix Registration
Registration Form
For registration (see also chapter Identification on page 34) of iden-
0H 99H
Mail to dc-drives@de.abb.com
1H
or fax to +496203-71-7609
Country *
E-mail address *
Please note: Use a general e-mail address, so that a contact will also work, if any-
body is not in the office. This e-mail will be used for application requests.
Phone number
Contact person *
E-mail address *
News mails desired? Yes / No
Desired Identification *
Appendix Registration
Appendix Registration
Request Form
For a request, who has done the application, please send an email with
following contents.
Your name will be forwarded to the company, who has developed the re-
quest application according identification.
Mail to 2Hdc-drives@de.abb.com
Contents
of parameter 4.03
of parameter 4.12
Your Company
Name
Department
Address
Country
Contact person
Email address
Appendix Registration
Wallstadter Straße 59
68526 Ladenburg • Germany
Tel: +49 (0) 62 03-71-0
Fax: +49 (0) 62 03-71-7609
www.abb.com/motors&drives *199R0201A6160000*
*199R0201A6160000*