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).
|
The default settings for Epec 3606, 3610 and Epec 4602 control unit are as follows:
Flash: PLCopen application
Processor RAM: Variables and %I, %Q and %M areas
|
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 |
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.
Processor RAM: Variables and %I, %Q and %M areas (max 48 kBytes), PLCopen application (max 64 kBytes)
|
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