Saia-Burgess Controls AG
Manual Manual PCD 1 / PCD 2 Series │ Document 26 / 737 EN22 │ 2013-11-26
CPUs and expansion housings
3-51
Backup of the user program
3
Storingatext/DBontheashcard,SYSWRK9000
Instruction:
SYSWR K 9000
1)
K number ; address of the texts/DBs as
; K constant or in a
; register, existing text/DB addresses in
; the range >= 4000 may be used
1) Alternatively,thevalue9000canbepassedinaregister.OnthePCD3,theinstruction
SYSWRK3000isusedforthesamefunction.Forreasonsofcompatibility,SYSWR
K 3000 can also be used on the PCD1/2, but this alternative was only integrated into the
rmwareinthe2ndhalfof2004
Accu status after execution:
low: thetext/DBhasbeensaved,andtheashcardisready
fornewSYSWRinstructions
high: the last instruction was not processed to completion;
beforefurtherSYSWRK900xinstructions,aSYSRD
K9000mustbeexecutedtocheckthereadinessofthe
ashcard
WhenusingtheinstructionSYSWRK9000,notethefollowing:
● Theflashcardcanbewrittentoamaximumof100'000times,soitisnotpermis-
sible to invoke the instruction in a cyclical manner or at short intervals
● ASYSRDK9000mustbeexecutedbefore this instruction, to test whether the
flash card is available and ready
● theprocessingtimefortheinstructionmaybeupto100ms.Atthatpoint,thereis
no guarantee that all of the text/DB has been written (the process will continue in
background). For this reason, the instruction must not be invoked in XOB 0 (XOB
for a power outage) or during time-critical processes
● iferrorsoccurduringprocessing,e.g.becausenoflashcardispluggedin,XOB13
willbeinvoked(wherepresent),ortheErrorLEDwillbeset
● whenstartingtheSaiaPCD
®
after a loss of RAM memory, the state of the texts/
DBs after the last downloadisrestored,evenwheretheSYSWRK9000instruc-
tion has been used to store newer versions.
● Withinthemaximumnumberofwritecycles,atext/DBcanbestoredanynumber
of times, without the flash card becoming over-full.