cancel
Showing results for 
Search instead for 
Did you mean: 
SOLVED

Persistant Data / Declarations?

Persistant Data / Declarations?

TBauer
Member

Hello,

I have a ctrlx Core PLC and a global variable table for persistant data/variables.

I added "a lot" of variables to it that I have to save and now I get an error message C0415, that there is not enough space for my persistant data.
It seems, for now, I use 34200 Byte. But what is "too much"? Is there a documentation, how many bytes I can save persistantly? 

Also the error message mentiones a "feature" to compact the data. But I can't find the menue for that in my PLC Engineering. I find it in Tools->Adjust but I don't know how to make it visible to "click" on it!?

If some could give me some information would be appreciated!

I attached my error message (sorry, I work in German ;))

2 REPLIES 2

CodeShepherd
Community Moderator
Community Moderator

An ctrlX CORE X3 has 1Mbyte of NVRAM that is used for variable persistance (see ctrlX CORE manual). The useable size for the ctrlX CORE - PLC app is 64 kB and can be changed by hand up to 128kB (see PLC app manual).

ctrlX CORE Web UI PLC retain memory settingctrlX CORE Web UI PLC retain memory setting

Please see general information about the persistant data handling of the PLC in our online documentation.

The mentioned function can be found in the ctrlX PLC Engineering manual:

ctrlX PLC Engineering persistent variable list handlingctrlX PLC Engineering persistent variable list handling

alink
New Contributor

For keeping status of variables I use recipe except for some less which are needed from 1st second.

If it is possible to take an event(s) to trigger a save then I would recommend this way. With recipes there is no limit with variables (as written in CoDeSys help).

When starting of system the recipe can be load and variables are written with last known value.

Maybe this is not for all but for most variables a good way to store their value.

Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist