17.02.2013 Views

Kuhnke Electronics Instruction Manual

Kuhnke Electronics Instruction Manual

Kuhnke Electronics Instruction Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Remanent Data<br />

• Step2: Define extraremanent data structure<br />

� Go to tab "Data Types" and define the structure of<br />

extraremanent data to be stored.<br />

� Attach "Magic Numbers" to the beginning and end of<br />

every block. Magic numbers are written once in a<br />

defined manner and should be checked every time<br />

the controller is switched on. They can be used to<br />

verify whether the extraremanent data memory works<br />

properly (e.g. battery charge status).<br />

� Operating hour counter data block:<br />

This structure is an example of some system data<br />

such as a counter for system starts or an operating<br />

hour counter.<br />

(* What magic_numbers are good for:<br />

The extraremanent data of this structure are regarded as valid only<br />

if the magic_numbers return the correct value, in this case:<br />

16#47110815. If not you can go to CheckXREMDATA and remove the<br />

structure.*)<br />

TYPE SystemData:<br />

STRUCT<br />

END_STRUCT<br />

END_TYPE<br />

magic_number:DWORD; (* key for the validity of<br />

the extraremanent data *)<br />

noof_SystemStarts:UDINT; (* count of system starts *)<br />

secs:INT; (* second count *)<br />

mins:INT; (* minute count *)<br />

hors:INT; (* hour count *)<br />

days:INT; (* day count *)<br />

dummy:INT;<br />

dummy2:INT;<br />

magic_number2:DWORD; (* key for the validity of<br />

the extraremanent data *)<br />

120 E 700 GB

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!