Target Settings for Memory Layout

The target settings for memory layout can be configured in Target Settings dialog's Memory Layout tab in CODESYS.

 

The number of data segments in Project > Options > Build > Number of data segments must be set to 1 less than the maximum number of global data segments is in Target Settings > Memory Layout > Maximum number of global data segments.

 

Example:

Maximum number of global data segments = 5 (Target Settings > Memory Layout > Maximum number of global data segments)

Number of data segments= 4 (Project > Options > Build > Number of data segments)

 

To use CODESYS debug functionality, set the target settings so that PLCopen application is run from RAM. If the application is run from flash, debugging can be done one POU at a time if the POU size is under 4 kBytes (Total size of data memory = 16#1B000).

 

 

 

Option 1 (default settings)

The default settings for Epec 3606, 3610 and Epec 4602 control unit are as follows:

 

 

Base

Automatic

Size

Code

16#CC0000

 

16#C0000

Global

16#E00000

 

16#4000

Memory

16#0

X

16#3000

Input

16#0

X

16#800

Output

16#0

X

16#800

Retain

16#0

X

16#0

 

Total size of data memory

16#1C000

Maximum number of POUs

1200

Maximum number of global data segments

5

 

 

Option 2 (RAM settings)

These settings can be used for debugging. PLCopen application stored to flash will not be destroyed. To save the application to flash, use Online > Create boot project.

 

 

 

Base

Automatic

Size

Code

16#E00000

 

16#10000

Global

16#E10000

 

16#4000

Memory

16#0

X

16#3000

Input

16#0

X

16#800

Output

16#0

X

16#800

Retain

16#0

X

16#0

 

Total size of data memory

16#C000

Maximum number of POUs

128

Maximum number of global data segments

3

 

 

 

 

 

 

Source file Topic000706.htm

Last updated 21-Feb-2025