Validity: Rule, Task
This keyword permits access to a real nonvolatile system register.
Syntax |
REAL nvrr (n) |
---|---|
n |
Index of the retentive register nvrr. Minimum representable number: 1 Maximum representable number: RTE.CFG Keyword: NUM_NVRR Size: 8 Byte |
Notes |
Registers keep their contents at power off (even in case of an unintentional power failure) |
Example
; in the real nonvolatile register nvrr(1) will be stored ; the sum of the contents of register r(123) ; plus the sine of the contents of the real register rr(23) nvrr(1) = r(123) + sin(rr(23)) ; in nvrr(2) will be stored the value 56.45 nvrr(2) = 56.45 |