Upload
nguyendang
View
227
Download
6
Embed Size (px)
Citation preview
©C
opyr
ight
7/3
/200
8 A
BB
. All
right
s re
serv
ed.
CO
DE
SYS
_05R
0101
pag
e 1
CoDeSysMemory Card and saving functionalities
DCS800
DC Drives
©C
opyr
ight
1/2
2/20
08 A
BB
. All
right
s re
serv
ed.
CO
DE
SYS
_05R
0101
pag
e 2
Objectives
Handle the ABB Memory Card
Use several download opportunities
Save programs and parameter sets on the Memory Card
After completing this module, you will be able to
©C
opyr
ight
1/2
2/20
08 A
BB
. All
right
s re
serv
ed.
CO
DE
SYS
_05R
0101
pag
e 3
Memory Card handling
Procedure to implement a CoDeSys application
De-energize the electronic
Insert the Memory Card
Energize the electronic
Enable the application
Attention!It is not allowed to pull out or plug in the Memory Card if the electronic is energized
De-energize electronic
Insert Memory Card
Energize electronic
Enable application
©C
opyr
ight
1/2
2/20
08 A
BB
. All
right
s re
serv
ed.
CO
DE
SYS
_05R
0101
pag
e 4
Fault categories in CoDeSys
CoDeSys software and compiler error / warningSee CoDeSys V2.3 User ManualError / warning number 1xxx, 2xxx, 3xxx
CoDeSys interface error / warningSee ABB DCS800 Application ManualError / warning number 41xx
DCS800 firmware fault / alarmNew application program activationChanging notices of the systemFailures concerning application program
©C
opyr
ight
1/2
2/20
08 A
BB
. All
right
s re
serv
ed.
CO
DE
SYS
_05R
0101
pag
e 5
New application program activated
Found New Application (A118)Memory Card inserted but not activated
Application program is not executed
Application Difference (A119)Memory Card inserted and activated
Electronic is de-energized
Insert another Memory Card
Electronic is energized
Execution is stopped
Description in DCS800 Firmware Manual
©C
opyr
ight
1/2
2/20
08 A
BB
. All
right
s re
serv
ed.
CO
DE
SYS
_05R
0101
pag
e 6
Changing notices of the drive
Parameter Added (A131)Upgrade Firmware
Note for application programs
Memory Card Missing (A142)Memory Card inserted and activated
Electronic is de-energized
Memory Card is pulled out
Electronic is energized
Description in DCS800 Firmware Manual
©C
opyr
ight
1/2
2/20
08 A
BB
. All
right
s re
serv
ed.
CO
DE
SYS
_05R
0101
pag
e 7
Failures concerning application program
Memory Card Failure (A143)Wrong Memory Card used
Wrong code on the Memory Card
Application Load Failure (F545)Task stalled
Illegal program
CON-4-board hardware problem
Description in DCS800 Firmware Manual
©C
opyr
ight
1/2
2/20
08 A
BB
. All
right
s re
serv
ed.
CO
DE
SYS
_05R
0101
pag
e 8
Save programs on the Memory Card
Download (PC to DCS800)
Upload (DCS800 to PC) CoDeSys
DriveWindow Light CoDeSys
With CoDeSys following files can be generated:
• PRG (program file) • CHK (checksum file) • SRC (source code)
If the SRC-file is not downloaded other users cannot open the application! The application can be protected with a password by means of function block “ProgProtect”.
With DriveWindow Light it is possible to download all generated files into the Memory Card. The files can only be generated by means of CoDeSys. To download files via DriveWindow Light a knowledge of CoDeSys is not necessary!
Only with CoDeSys it is possible to upload the source code (SRC-file) of an application from the Memory Card. To open the application the source code is needed! If only the PRG- and the CHK-files are saved it is not possible to open the application. If the application is protected with the function block “ProgProtect” password is needed for uploading the application!
©C
opyr
ight
1/2
2/20
08 A
BB
. All
right
s re
serv
ed.
CO
DE
SYS
_05R
0101
pag
e 9
Minimum need of files
Create a complete project
Rebuild the projectProject Rebuild all
Generate download filesOnline Create boot project
- *.PRG - file
- *.CHK - file
This procedure is done in offline mode to generate the files only on the PC!
These files includes the code for the processor!
©C
opyr
ight
1/2
2/20
08 A
BB
. All
right
s re
serv
ed.
CO
DE
SYS
_05R
0101
pag
e 10
Saving with CoDeSys tool
Rebuild the projectProject Rebuild all
Connect to deviceOnline Login
PC is connected
Download the filesOnlineCreate boot project
Enable the applicationOnline Run
©C
opyr
ight
1/2
2/20
08 A
BB
. All
right
s re
serv
ed.
CO
DE
SYS
_05R
0101
pag
e 11
Saving with DriveWindow light download tool
Download tool is implemented in DriveWindow light
Open DriveWindow light
Change to Offline mode
Open Download ToolTool CoDeSys Application Download
Select the *.PRG file
Send the file to Memory Card
©C
opyr
ight
1/2
2/20
08 A
BB
. All
right
s re
serv
ed.
CO
DE
SYS
_05R
0101
pag
e 12
Delete applications
Using CoDeSys- Online Reset (Original)
Using parameters- 1: 99.06 Service Mode DeleteAppl
- 2: 16.06 ParApplSave DeleteAppl
The functionality Delete Applicationcan also be used:
• To repair a damaged Memory Card• To unlock a damaged firmware
©C
opyr
ight
1/2
2/20
08 A
BB
. All
right
s re
serv
ed.
CO
DE
SYS
_05R
0101
pag
e 13
Special Application Parameter (1)
Application parameter P16.06 (ParApplSave):- Save
Save actual parameters into the FLASH
- SaveToMemCSave actual parameter set to Memory CardOnly one parameter set can be saved
- LoadFromMemCLoad the saved parameter set from the Memory
Card to the FLASH of drive
©C
opyr
ight
1/2
2/20
08 A
BB
. All
right
s re
serv
ed.
CO
DE
SYS
_05R
0101
pag
e 14
Special Application Parameter (2)
Further settings of parameter P16.06:- EnableAppl (enable application)
Activate CoDeSys application which is saved
- DisableAppl (disable application)Deactivate CoDeSys application
- DeleteAppl (delete application)Erase Memory Card or repair itUnlock drive
©C
opyr
ight
1/2
2/20
08 A
BB
. All
right
s re
serv
ed.
CO
DE
SYS
_05R
0101
pag
e 15
Save programs against upload
Put block ProgProtect into initialization task
Connect input bProtect to a parameter
Lock / Unlock the upload functionality
Attention:Be careful with this block. There is no administration password available!
©C
opyr
ight
1/2
2/20
08 A
BB
. All
right
s re
serv
ed.
CO
DE
SYS
_05R
0101
pag
e 16
Summary
Key points of this module
Memory Card handling
Saving opportunities
Delete applications
Special application parameter
©C
opyr
ight
1/2
2/20
08 A
BB
. All
right
s re
serv
ed.
CO
DE
SYS
_05R
0101
pag
e 17
Additional information
Links to related information- 3S-software.com
- DC-Drive-News (Intranet, only ABB internal!)
Additional references- Application Manual (3ADW 000199)
- Firmware Manual (3ADW 000193)
- Hardware Manual (3ADW 000194)
- Training Material
©C
opyr
ight
1/2
2/20
08 A
BB
. All
right
s re
serv
ed.
CO
DE
SYS
_05R
0101
pag
e 18
Glossary
CoDeSysController Development System (software tool)
Memory CardFlash memory
DriveWindow LightSoftware Tool for commissioning and maintenance using AC/DC
TargetInterface between Drive and CoDeSys tool
Control BuilderDCS800 application system
PLC_PRGMain program which is used in all applications
POUProgram Organization Unit
LibraryIncludes function blocks which are given or designed by other users