Target Settings for Memory Layout

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

 

There are 4 different setting options for Epec 3720/3724 control unit:

 

Option 4 requires 3724 Extended Memory (EM) Control Unit variant.

3724 EM variant uses CODESYS target ID 13825 which enables 1088 kB flash memory for PLCopen application.

 

Option

Flash

External RAM

Processor RAM

Option 1 (default settings)

  • PLCopen application

  • Variables

  • %I, %Q and %M areas

Option 2

 

  • PLCopen application

  • Variables

  • %I, %Q and %M areas

Option 3

  • PLCopen application

 
  • Variables

  • %I, %Q and %M areas

Option 4

(default for Extended Memory variant)

  • PLCopen application

  • Variables

  • %I, %Q and %M areas

 

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 = 71 (Target Settings > Memory Layout > Maximum number of global data segments)

Number of data segments= 70 (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#11B000).

 

 

 

Option 1 (default settings)

 

 

Base

Automatic

Size

Code

16#CC0000

 

16#C0000

Global

16#400000

 

16#4000

Memory

16#E00800

X

16#1B800

Input

16#E00000

 

16#400

Output

16#E00400

 

16#400

Retain

16#E00800

X

16#0

 

Total size of data memory

16#11C000

Maximum number of POUs

1200

Maximum number of global data segments

71

 

Option 2

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#400000

 

16#C0000

Global

16#4C0000

 

16#4000

Memory

16#E00800

X

16#1B800

Input

16#E00000

 

16#400

Output

16#E00400

 

16#400

Retain

16#E00800

X

16#0

 

Total size of data memory

16#40000

Maximum number of POUs

1200

Maximum number of global data segments

16

 

 

Option 3

 

 

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 4 (default for Extended Memory variant)

Option 4 requires 3724 Extended Memory (EM) Control Unit variant.

3724 EM variant uses CODESYS target ID 13825 which enables 1088 kB flash memory for PLCopen application.

 

Used automatically by MultiTool Creator when 3724 EM Control Unit project is created.

 

 

 

Base

Automatic

Size

Code

16#C80000

 

16#110000

Global

16#400000

 

16#4000

Memory

16#E00800

X

16#1B800

Input

16#E00000

 

16#400

Output

16#E00400

 

16#400

Retain

16#E00800

X

16#0

 

Total size of data memory

16#11C000

Maximum number of POUs

1500

Maximum number of global data segments

71

 

 

 

Source file Topic000707.htm

Last updated 21-Feb-2025