Beruflich Dokumente
Kultur Dokumente
net
AC500
SD Memory Card
Basic module
ABB Group Version 3.2 (2011-11)
Technical Guides
SD Memory Card
Contents
ABB Group
March 11, 2013 | Slide 2
www.infoPLC.net
General
SD Memory Card
Coming up
ABB Group
March 11, 2013 | Slide 3
www.infoPLC.net
General
SD Memory Card
General
ABB Group
March 11, 2013 | Slide 4
www.infoPLC.net
Retentive variables
User data
Display controller
Communication modules
SD Memory Card
Coming up
ABB Group
March 11, 2013 | Slide 5
www.infoPLC.net
General
www.infoPLC.net
SD Memory Card
The File Structure Created by PLC
Plug the formatted SD card into the slot of an already powered PLC.
Note:
ABB Group
March 11, 2013 | Slide 6
www.infoPLC.net
SD Memory Card
The File Structure as of V1.2 (1)
A zip file containing FW and/or boot code files for the CPUs
and/or FW for communication modules can be downloaded
from the ABB website:
ABB Group
March 11, 2013 | Slide 7
Go to www.abb.com/plc.
Follow the link: Firmware Updates.
www.infoPLC.net
SD Memory Card
The File Structure as of V1.2 (2)
SD Memory Card
Folder Firmware: CPUs
www.infoPLC.net
Folder created by .exe file. Each module type has its own
directory.
Management of several boot code and firmware versions on
one SD card is possible.
ABB Group
March 11, 2013 | Slide 9
www.infoPLC.net
SD Memory Card
Folder Firmware: Communication Modules
Management of several
firmware versions for one
module on one SD card is
possible.
or
ABB Group
March 11, 2013 | Slide 10
www.infoPLC.net
SD Memory Card
Folder USERDATA\PM5xx\CONFDATA
ABB Group
March 11, 2013 | Slide 11
www.infoPLC.net
SD Memory Card
Folder USERDATA\PM5xx\RETDAT
ABB Group
March 11, 2013 | Slide 12
www.infoPLC.net
SD Memory Card
Folder USERDATA\PM5xx\USERDAT
ABB Group
March 11, 2013 | Slide 13
www.infoPLC.net
SD Memory Card
Folder USERDATA\PM5xx\USERPRG
ABB Group
March 11, 2013 | Slide 14
www.infoPLC.net
SD Memory Card
Folder USERDATA\PM5xx\USERPROJ
ABB Group
March 11, 2013 | Slide 15
SD Memory Card
Coming up
ABB Group
March 11, 2013 | Slide 16
www.infoPLC.net
www.infoPLC.net
SD Memory Card
The Command File SDCARD.INI
SDCARD.INI
0: no function
1: load user program
2: firmware update as defined (see below)
3: update firmware and load user program
4: reserved
8: as 0.. 4 + save debug data in case of possible failures
16: reserved
0:
1:
2:
3:
no update
update
update with specific version
update with specific version if the SD file is newer
0: no update
1: update
ABB Group
March 11, 2013 | Slide 17
www.infoPLC.net
SD Memory Card
Store / Load a Project to the SD Card
Machine code
ABB Group
March 11, 2013 | Slide 18
Load this project into another PLC from the SD card plugged
in there.
www.infoPLC.net
SD Memory Card
Store a Project to the SD Card (1)
ABB Group
March 11, 2013 | Slide 19
www.infoPLC.net
SD Memory Card
Store a Project to the SD Card (2)
ABB Group
March 11, 2013 | Slide 20
The RUN LED on the AC500 flashes during writing to the SD card.
The files DEFAULT.PRG and DEFAULT.CHK and configuration files of the plugged
communication modules are loaded from the flash memory and stored to the directory
USERDATA\PM5xx\USERPROG on the SD card in the compressed file BOOT.ZIP.
FunctionOfCard = 1
UserProgram = 1
e.g., the function "Load the user program" is activated.
www.infoPLC.net
SD Memory Card
Load a Project from the SD Card
Due to duplicate a project, SD card has to be inserted into the AC500 when:
The PLC is in STOP mode or
Before switching the power ON
The file structure on the SD card is verified by the CPU
The file structure doesnt exist
ABB Group
March 11, 2013 | Slide 21
Only if:
FunctionOfCard = 1
UserProgram = 1
The project is loaded into the Flash
memory of the CPU
SD Memory Card
Coming up
ABB Group
March 11, 2013 | Slide 22
www.infoPLC.net
www.infoPLC.net
SD Memory Card
Source Code Download and Upload
source code
source code
ABB Group
March 11, 2013 | Slide 23
www.infoPLC.net
SD Memory Card
Source Code Download and Upload
The project is created by use of
Start
ABB Group
March 11, 2013 | Slide 24
no
Start
www.infoPLC.net
SD Memory Card
Source Code Download and Upload(1)
ABB Group
18.05.2010 | Folie 25
www.infoPLC.net
SD Memory Card
Source Code Download and Upload (2)
ABB Group
18.05.2010 | Folie 26
www.infoPLC.net
SD Memory Card
Source Code Download and Upload (3)
ABB Group
18.05.2010 | Folie 27
www.infoPLC.net
SD Memory Card
Source Code Download to the SD Card
ABB Group
March 11, 2013 | Slide 28
www.infoPLC.net
SD Memory Card
Source Code Upload from the PLC
ABB Group
March 11, 2013 | Slide 29
www.infoPLC.net
SD Memory Card
Direct Source Code Upload from the SD card
ABB Group
March 11, 2013 | Slide 30
SD Memory Card
Coming up
ABB Group
March 11, 2013 | Slide 31
www.infoPLC.net
SD Memory Card
Read / Write Data (1)
ABB Group
March 11, 2013 | Slide 32
www.infoPLC.net
SD Memory Card
Read / Write Data (2)
www.infoPLC.net
ABB Group
March 11, 2013 | Slide 33
SD Memory Card
Read / Write Data (3)
ABB Group
March 11, 2013 | Slide 34
www.infoPLC.net
SD_READ reads a data set from a file on the SD card and stores the
read data set beginning at the start flag defined by ADRVAR.
SD Memory Card
Coming up
ABB Group
March 11, 2013 | Slide 35
www.infoPLC.net
www.infoPLC.net
SD Memory Card
Read / Write RETAIN Data as of Version 1.2 (1)
Copying the data from the RETAIN area and writing it to the CPU's
RAM disk as file: save
Loading the file from the SD card to the CPU's RAM disk: import
Copying the data from the RAM disk to the RETAIN area: restore
ABB Group
March 11, 2013 | Slide 36
www.infoPLC.net
SD Memory Card
Read / Write RETAIN Data as of Version 1.2 (2)
PLC Browser:
Library SysInt_AC500_V10.LIB:
ABB Group
March 11, 2013 | Slide 37
www.infoPLC.net
SD Memory Card
Read / Write PERSISTENT Data up to Version 1.2 (1)
ABB Group
March 11, 2013 | Slide 38
Copying the data from the %R area and writing it to the CPU's
RAM disk as file: save
Loading the file from the SD card to the CPU's RAM disk: import
Copying the data from the RAM disk to the %R area: restore
www.infoPLC.net
SD Memory Card
Read / Write PERSISTENT Data up to Version 1.2 (2)
PLC Browser:
Library SysInt_AC500_V10.LIB:
ABB Group
March 11, 2013 | Slide 39
SD Memory Card
Coming up
ABB Group
March 11, 2013 | Slide 40
www.infoPLC.net
www.infoPLC.net
SD Speicherkarte
Firmware Update for PM5xx (1)
ABB Group
March 11, 2013 | Slide 41
www.infoPLC.net
SD Speicherkarte
Firmware update for PM5xx (2)
Firmware update
no
option 1
option 1
SD-Card + Power ON
or
SD-Card + Power ON
option 2
PLC-Browser + SD-Card
ABB Group
March 11, 2013 | Slide 42
www.infoPLC.net
SD Memory Card
Firmware Update for PM5xx
ABB Group
March 11, 2013 | Slide 43
The update is done when the red ERR LED finished blinking
and the green RUN LED is blinking slowly.
www.infoPLC.net
SD Memory Card
Firmware Update for PM5xx by use of PLC Browser
Firmware update: option 2
ABB Group
March 11, 2013 | Slide 44
www.infoPLC.net
SD Memory Card
Cross-References to Documentation
1. CoDeSys Help\Target System\AC500 /
S500\System Technology\System Technology of
the AC500 CPUs\The SD Memory Card in
AC500
2. CoDeSys Help\Target System\
AC500 / S500\Function Block Libraries AC500\
Internal System Library\
ABB Group
March 11, 2013 | Slide 45
www.infoPLC.net
ABB Group
March 11, 2013 | Slide 46