DUTs with non-overlapping elements

Using the Properties dialog, you can assign a DUT one of two ways of occupying memory:

Occupying memory:

Memory allocation of DUTs with Boolean members in DUTs

NOTE
  • Due to the optimization in memory layout, the Boolean addresses of the DUT elements are not in the same order as defined in the DUT declaration list.

  • When accessing a DUT with DUT sub elements by user addresses, the memory layout should be checked using .csv export or monitoring window.

Example 1:

DUT (DUTwithoutBOOLs) without elements of the data type BOOL:

How DUTs with non-overlapping elements occupy memory:

16-bit word area

DT100

wWORD1

DT101

dwWORD1

DT102

DT103

iINT1

DT104

diDINT1

DT105

DT106

wWORD2

DT107

dwWORD2

DT108

DT109

iINT2

DT110

diDINT2

DT111

DT112

rREAL1

DT113

DT114

sSTRING1

DT115

DT116

DT117

DT118

sSTRING2

DT119

DT120

DT121

NOTE

The variables String1 and String2 must have the same length and be at the end of the declaration.

DUT DUTwithBOOLs with elements of the data type BOOL (no address defined by the user):

How DUTs with non-overlapping elements occupy memory:

Bit area

16-bit word area

R100

bBool1

DT100

wWORD1

R101

bBool2

DT101

dwWORD1

R102

bBool3

DT102

R103

bBool4

DT103

iINT1

DT104

diDINT1

R110

Bools[0]

DT105

R111

Bools[1]

DT106

wWORD2

R112

Bools[2]

DT107

dwWORD2

R113

Bools[3]

DT108

R114

Bools[4]

DT109

iINT2

DT110

diDINT2

DT111

DT112

rREAL1

DT113

DT114

sSTRING1

DT115

DT116

DT117

NOTE

The variable STRING1 must be located at the end of the declaration.

DUT with arrays:

How DUTs with non-overlapping elements occupy memory:

16-bit word area

DT100

String1_Max

DT101

String1_Act

DT102

String1_Char12

DT103

String1_Char34

DT104

String2_Max

DT105

String2_Act

DT106

String2_Char12

DT107

String2_Char34

DT108

String_Parts[1,1]

...

...

DT115

String_Parts[2,4]

DT116

String1

DT117

DT118

DT119

DT120

String2

DT121

DT122

DT123

DT124

Strings[1]

DT125

DT126

DT127

DT128

Strings[2]

DT129

DT130

DT131

NOTE

The variables String1, String2 and Strings must have the same length and be at the end of the declaration.

Modified on: 2020-12-21Feedback on this pagePanasonic hotline