Hardware Manual for the PCD3 Series│Document 26/789; Version E 5│31.01.2005
Saia-Burgess
Controls Ltd.
Backup of the user program
PCD3.Mxxx0 Classic CPUs and expansion housings
3-25
3
Restoring a text/DB from the flash card, SYSWR K 3001
Restoring a text/DB from the onboard flash, SYSWR K 3101
Instruction:
SYSWR
K 3x01
1)
K number
; Address of text/DB as
; K constant or in a
; register; existing texts/DBs in
; the range xxx may be used ≥ 4000
1) Alternatively, the value 3x01 can be passed in a register.
Battery status after execution:
low:
the text/DB has been restored and the process is com-
plete, so further SYSWR K 3x0x instructions can be
executed immediately
high:
the last instruction has not yet been fully processed;
before any new SYSWR K 300x instructions, a SYSRD
K 3x00 must be executed to check the readiness of the
flash card
When using the instruction SYSWR K 3x01, note the following:
It is strongly recommended to execute a SYSRD K 3x00 before this instruction, to
test whether the flash card is available and ready
If errors occur during processing, e.g. because no flash card is plugged in, XOB 13
will be invoked (where present), or the Error LED will be set
Deleting stored texts/DBs on the flash card, SYSWR K 3002
Deleting stored texts/DBs from the onboard flash, SYSWR K 3102
Instruction:
SYSWR
K 3x02
1)
K 0
; Dummy parameter, required to
; maintain the structure of the SYSWR
; instruction
1) Alternatively, the value 3x02 can be passed in a register.
Battery status after execution:
low:
The text strings/DBs have been deleted and the process
is complete, so further SYSWR K 3x0x instructions can
be executed immediately
high:
The last instruction has not yet been fully processed;
before any new SYSWR K 3x0x instructions, a SYSRD
K 3x00 must be executed to check the readiness of the
flash card
When using the instruction SYSWR K 3x02, note the following:
The deletion only affects text/DBs previously stored with SYSWR K 3x00. The
contents of the extension memory stored after a download are retained.
It is strongly recommended to execute a SYSRD K 3x00 before this instruction, to
test whether the flash card is available and ready.
The processing time for the instruction may be several 100 ms. For this reason,
the instruction must not be invoked in XOB 0 (XOB for a power failure) or during
time-critical processes.