Saia-Burgess Controls AG
Manual Manual PCD 1 / PCD 2 Series │ Document 26 / 737 EN22 │ 2013-11-26
CPUs and expansion housings
3-35
Expansion of user memory
3
3.14 Expansion of user memory
3.14.1 Basics
The main reasons to expand the user memory for a PCD1/PCD2 are:
● Thebasememoryistoosmalltostoretheuserprogramandthetexts
● Theuserprogramandthenon-modifiabletextsanddatablocksaretobeheldin
Flash EPROM as a failsafe measure (the base memory is always RAM)
● Thebenefitsofdatablockswithaddresses≥4000aretobeused:
- up to 16,384 elements / DBs
- much lower overhead per element: 4 bytes per 32-bit value rather than 8 bytes
- much faster access
The PCD2.M170 and PCD2.M480 are equipped with 1 Mbyte of RAM as standard;
this cannot be expanded. To minimize the risk of program loss, we recommend the
useoftheoptionalPCD7.R400ashcard,whichallowstheuserprogramtobe
backed up.
The use of EPROMs to expand the user memory is obsolete and is no longer
recommended.WorkingwithFlashEPROMsismuchmoreconvenient(noEPROM
programming device required, behaves like RAM for the programmer) and just as
secure as EPROMs.
3.14.2 Memory location of the user program, the resources, texts and DBs
Depending on whether the user memory of a PCD1/PCD2 has been expanded or
not,thememorylocationofvariouspartsoftheapplicationwillvary.Whentheuser
memory is expanded by plugging in a memory chip, the user program and the text
strings/DBs with addresses < 4000 are stored in the additional plug-in chip.
ThebasememoryprovidedontheCPUisthenfree,andcanoptionallybedenedin
thehardwarecongurationas“extensionmemory”andusedtostoretextsandDBs
withaddresses≥4000.
Memory location
Contents
No expansion of
user memory
With expansion of
user memory
Resources (registers,
ags,countersetc.)
The resources are held in a separate RAM memory on
the CPU (always in the same location, buffered by the
SuperCap or the battery)
User program in base memory in additional chip in
“USER PROG”
socket
1)
Texts and DBs with
addresses < 4000
in base memory in additional chip in
“USER PROG”socket
1)
Texts and DBs with
addresses≥4000
not available in extension memory
2)
1) i.e. in RAM, EPROM or Flash EPROM depending on the chip used. The use of EPROM is no longer
recommended; use Flash EPROM instead
2)Mustbedenedinthehardwareconguration
3.14.3 Exampleofamemoryconguration
Thescreenshotsbelowshowexamplesofthehardwarecongurationandassociated
softwaresettingsinPG5foraPCD2.M120(hardwareversion>=J)witha1Mbit
Flash EPROM plug-in expansion unit (item-no. 4 502 7141 0).