Hardware Manual for the PCD2.M5 Series│Document 26/856; Version EN 12│2014-07-24
Saia-Burgess Controls AG
Memory space on the PCD
PCD2.M5_ Classic CPUs and expansion housings
3-39
3
Storingatext/DBontheashcardwithSYSWRK3000
Storingatext/DBontheonboardashwithSYSWRK3100
Instruction:
SYSWR K 3x00
1)
K number ;addressofthetexts/DBsas
;Kconstantorinaregister,
;existingtext/DB
;addressesintherange>=4000
;maybeused
1)Alternatively,thevalue3x00canbepassedinaregister.
Battery status after execution:
low: thetext/DBhasbeensaved,andtheashcardisready
for new SYSWR instructions
high: thelastinstructionwasnotprocessedtocompletion;
before further SYSWR K 3x0x instructions, a SYSRD
K 3x0x must be executed to check the readiness of the
ashcard
When using the instruction SYSWR K 3x00, note the following:
● Afteranychangeofmemoryconguration,a“backupuserprogramtoash”must
berun,toensurethatthe“backupDBtoash”willwork(partitioningtheash).
● Theashcardcanbewrittentoamaximumof100,000times,soitisnotpermis-
sible to invoke the instruction in a cyclical manner or at short intervals.
● It is strongly recommended to execute a SYSRD K 3x00 before this instruction, to
testwhethertheashcardisavailableandready.
● The processing time for the instruction may be up to 100 ms. At that point, there
isnoguaranteethatallofthetext/DBhasbeenwritten(theprocesswillcontinue
inbackground).Forthisreason,theinstructionmustnotbeinvokedinXOB0
(XOBforapowerfailure)orduringtime-criticalprocesses.
● Iferrorsoccurduringprocessing,XOB13willbecalledwhereitispresent,orthe
error LED will be set
● When starting the PCD after a loss of RAM memory, the state of the texts/DBs
after the last download is restored, even where the SYSWR K 3x00 instruction
has been used to store newer versions.
● Within the maximum number of write cycles, a text/DB can be stored any number
oftimes,withouttheashcardbecomingover-full.