CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum
Deutsche Version English version russian version 
It is currently Mon Oct 23, 2017 4:28 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Wed Oct 11, 2017 9:43 am 
Offline

Joined: Tue Oct 04, 2016 10:13 am
Posts: 26
retain variables are set to zero after reboot :(

/data/etc/CODESYSControl_User.cfg
[CmpApp]
Bootproject.RetainMismatch.Init=1
RetainType.Applications=InSRAM

/data/etc/CODESYSControl.cfg
; Note!!!
; Don't edit this file, as changes on this file will be
; lost after reboot, if the system is running in read-only mode.
; Please use /data/etc/CODESYSControl_User.cfg instead.
;

[ComponentManager]
Component.1=SysGraphic
Component.2=SysWindow
Component.3=SysNativeControl

[SysFile]
FilePath.1=/etc/, 3S.dat
PlcLogicPrefix=1

[CmpSocketCanDrv]
ScriptPath=/opt/codesys/scripts/
ScriptName=rts_set_baud.sh

[CmpSettings]
FileReference.0=SysFileMap.cfg, SysFileMap
FileReference.1=/data/etc/CODESYSControl_User.cfg

[_]
Linux.DisableFpuUnderflowException=1
Linux.DisableFpuOverflowException=1
Linux.DisableFpuInvalidOperationException=1

[CmpRetain]
Retain.SRAM.Size=0x20000
Retain.SRAM.Address=0x08000000

[SysProcess]
Command.0=shutdown

[CmpWebServer]
ConnectionType=0

[CmpOpenSSL]
WebServer.Cert=server.cer
WebServer.PrivateKey=server.key
WebServer.CipherList=HIGH

[CmpLog]
Logger.0.Name=/tmp/codesyscontrol.log
Logger.0.Filter=0x0000000F
Logger.0.Enable=1
Logger.0.MaxEntries=1000
Logger.0.MaxFileSize=1000000
Logger.0.MaxFiles=1
Logger.0.Backend.0.ClassId=0x00000104 ;writes logger messages in a file
Logger.0.Type=0x314 ;Set the timestamp to RTC

[SysMem]
Linux.Memlock=0

[CmpCodeMeter]
InitLicenseFile.0=3SLicense.wbb

[SysEthernet]
Linux.ProtocolFilter=3

[CmpSchedule]
SchedulerInterval=4000
ProcessorLoad.Enable=1
ProcessorLoad.Maximum=95
ProcessorLoad.Interval=5000

[SysCom]
Linux.Devicefile=/dev/ttymxc


[CmpApp]
Application.1=Application


Top
   
PostPosted: Wed Oct 11, 2017 12:53 pm 
Offline

Joined: Tue Oct 04, 2016 10:13 am
Posts: 26
emPC-A/iMX6Q/2 SY-EPC-64002
codesys control 3.5.11.20
please help i cant understand what i did wrong.
i had another project with first version of emPC-imx6 control on SY-EPC-64001 where everything works fine.
when i tried to install i received an error "/data/CODESYSControl.cfg missing..", after installed again through codesys no error,
i saw that config files are different in another janz i have CODESYSControl_User_Default.cfg which is not referenced in CODESYSControl.cfg


Top
   
PostPosted: Wed Oct 11, 2017 4:47 pm 
Offline

Joined: Tue Oct 04, 2016 10:13 am
Posts: 26
Problem solved! it seems was some user rights issues with the new janz image, no write rights with user dev on home folder and maybe others... i'm not linux expert .

edited /data/etc/CODESYSControl_User.cfg as root, /data/etc/ container for root?????
[CmpApp]
Bootproject.RetainMismatch.Init=1
RetainType.Applications=InSRAM
Application.1=Application

removed /data/etc/CODESYSControl_User.cfg ???? /data/etc/ container for dev????


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 3 posts ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited