Saia-Burgess Controls AG
Manual Manual PCD 1 / PCD 2 Series │ Document 26 / 737 EN22 │ 2013-11-26
CPUs and expansion housings
3-69
Storing data in EEPROM
3
3.24 Storing data in EEPROM
OnthePCD1/PCD2,anEEPROMisusedtostorecongurationdata.Partofthisis
available to the user to store 32-bit values (EEPROM register). These values are not
lost even in the case of battery failure or an empty buffer capacitor.
OnthePCD1thereareveEEPROMregisters(addresses2000to2004);onthe
PCD2therearefty(addresses2000to2049).TheEEPROMregistersareindepend-
ent of the "normal" registers with the same addresses.
ThevaluesarereadwithaSYSRDinstructionandwrittenwithaSYSWRinstruction:
Read:
SYSRD K x or R x
R y
; K x is the address of the EEPROM
; register in the range K 2000 to K 2004
;forPCD1CPUs,orK2000toK2049
; for PCD2 CPUs
; Alternatively, the address of a register
; can also be passed, containing the
; address of the EEPROM register (same
; ranges as for K constants)
; R y is the target register
Write:
SYSWR K x or R x
R y
; K x is the address of the EEPROM
; register in the range K 2000 to K 2004
;forPCD1CPUs,orK2000toK2049
; for PCD2 CPUs
; Alternatively, the address of a register
; can also be passed, containing the
; address of the EEPROM register (same
; ranges as for K constants)
; R y is the source register
WhenusingtheinstructionSYSWRK20xx,notethefollowing:
● TheEEPROMcanbewrittentoamaximumof100,000times,soitisnot
permissible to invoke the instruction in a cyclic manner or at short intervals
● Theprocessingtimefortheinstructionisapprox.20ms.Forthisreason,the
instruction must not be invoked in XOB 0 (XOB for a power outage) or during time-
critical processes