Persistent memory, 9300 servo plc, Appendix – Lenze DDS Target 9300 Servo PLC V8.x User Manual
Page 109
9300 Servo PLC
Appendix
3−103
L
9300 Servo PLC EN 5.1
3.3.2
Persistent memory
In the persistent memory 32 bytes of data can be stored safe from power failure and are thus available
to the program even after mains switching. Unlike in the retain memory, data remains unchanged in
the persistent memory even after a new program download. (Saving with C0003 = 1 is not required.)
·
The persistent memory can only be deleted in the DDS online mode using the command
Online
WReset (original).
Access to the persistent memory
The persistent memory is accessed via the system variables of the control configuration. The 32
bytes available can be assigned to several variables of different data types at the same time. In this
way they can be used as required by the application in the PLC program:
System variable (8 bits)
System variable (16 bits)
System variable (32 bits)
Byte
Identifier
Address
Identifier
Address
Identifier
Address
0
VAR_Persistent_byByte0
%QB171.0
VAR_Persistent_wWord0
%QW171.0
VAR_Persistent_dwDWord0
%QD171.0
1
VAR_Persistent_byByte1
%QB171.1
2
VAR_Persistent_byByte2
%QB171.2
VAR_Persistent_wWord1
%QW171.1
3
VAR_Persistent_byByte3
%QB171.3
4
VAR_Persistent_byByte4
%QB171.4
VAR_Persistent_wWord2
%QW171.2
VAR_Persistent_dwDWord1
%QD171.1
5
VAR_Persistent_byByte5
%QB171.5
6
VAR_Persistent_byByte6
%QB171.6
VAR_Persistent_wWord3
%QW171.3
7
VAR_Persistent_byByte7
%QB171.7
8
VAR_Persistent_byByte8
%QB171.8
VAR_Persistent_wWord4
%QW171.4
VAR_Persistent_dwDWord2
%QD171.2
9
VAR_Persistent_byByte9
%QB171.9
10
VAR_Persistent_byByte10
%QB171.10
VAR_Persistent_wWord5
%QW171.5
11
VAR_Persistent_byByte11
%QB171.11
12
VAR_Persistent_byByte12
%QB171.12
VAR_Persistent_wWord6
%QW171.6
VAR_Persistent_dwDWord3
%QD171.3
13
VAR_Persistent_byByte13
%QB171.13
14
VAR_Persistent_byByte14
%QB171.14
VAR_Persistent_wWord7
%QW171.7
15
VAR_Persistent_byByte15
%QB171.15
16
VAR_Persistent_byByte16
%QB171.16
VAR_Persistent_wWord8
%QW171.8
VAR_Persistent_dwDWord4
%QD171.4
17
VAR_Persistent_byByte17
%QB171.17
18
VAR_Persistent_byByte18
%QB171.18
VAR_Persistent_wWord9
%QW171.9
19
VAR_Persistent_byByte19
%QB171.19
20
VAR_Persistent_byByte20
%QB171.20
VAR_Persistent_wWord10
%QW171.10
VAR_Persistent_dwDWord5
%QD171.5
21
VAR_Persistent_byByte21
%QB171.21
22
VAR_Persistent_byByte22
%QB171.22
VAR_Persistent_wWord11
%QW171.11
23
VAR_Persistent_byByte23
%QB171.23
24
VAR_Persistent_byByte24
%QB171.24
VAR_Persistent_wWord12
%QW171.12
VAR_Persistent_dwDWord6
%QD171.6
25
VAR_Persistent_byByte25
%QB171.25
26
VAR_Persistent_byByte26
%QB171.26
VAR_Persistent_wWord13
%QW171.13
27
VAR_Persistent_byByte27
%QB171.27
28
VAR_Persistent_byByte28
%QB171.28
VAR_Persistent_wWord14
%QW171.14
VAR_Persistent_dwDWord7
%QD171.7
29
VAR_Persistent_byByte29
%QB171.29
30
VAR_Persistent_byByte30
%QB171.30
VAR_Persistent_wWord15
%QW171.15
31
VAR_Persistent_byByte31
%QB171.31
Note!
Some Lenze projects, programming examples and templates use parts of the persistent memory.
They are marked with "LenzeInternalUse" and must not be changed by the user.
Example: Power−failure−safe storage of the current position
You can, for instance, use an AT declaration to connect the variable with the current position directly
to the address of a persistent variable and thus store the position safe from power failure:
g_dnActualPosition_p
AT%QD171.6:DINT;