Hardware Manual for the PCD2.M5 Series│Document 26/856; Version EN 12│2014-07-24
Saia-Burgess Controls AG
Partitioning options for user memory
PCD2.M5_ Classic CPUs and expansion housings
3-30
3
3.10 Partitioningoptionsforusermemory
InthePG5hardwareconguration,theusermemoryispartitionedbydefaultinto
lines of code and texts/DBs, in a way that suits most applications.
In the case of a large program with few texts/DBs or a very small program with many
texts/DBs, the user can partition the memory manually. In order to choose an appro-
priate breakdown, the following should be noted:
The partitioning is into "kBytes lines of code" and "kBytes text/DBs", where the
"kBytes lines of code" can only be changed in 4 kByte steps, as every line of code
occupies 4 bytes
Theresultoftheformula(4x"kBytesprogramcells")+"kBytestexts/DBs"must
equal the effectively available user memory,
e.g. 4 x 24 kBytes + 32 Kbytes = 128 Kbytes
Each character of a text occupies 1 byte
Each 32-bit element of a DB occupies eight bytes in the address range 0..3999,
and the header of the DB takes up a further three bytes
WerecommendalwaysusingDBswithaddresses≥4000.Thesecanholdmore
elements(16384insteadof384),takeuplessspace(only4bytesinsteadof8
bytesperelement,butNB,8bytesinsteadof3fortheheader)andtheaccess
time is substantially shorter.
Example of manual partitioning: