CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum by 3S-Smart Software Solutions GmbH | A member of the CODESYS Group
Deutsche Version English version russian version 
It is currently Sat Jan 19, 2019 7:22 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 1 post ] 
Author Message
PostPosted: Tue Dec 25, 2018 3:18 am 
Offline

Joined: Thu Jul 26, 2012 4:55 am
Posts: 10
Hello everybody! Recently, I encountered a difficult problem in the process of developing PLC in codesys. I really need your help.

In my current PLC, I use CoDeSys V3.4 SP4 software. When I define "Retain. SRAM. Size" and "Retain. SRAM. Address" in the CFG file, I can start my APP normally during the system reboot process, but this configuration will make it impossible for me to obtain the address of IEC variables successfully through the "void* IecVarAccGetAddress 2" function provided by 3S. When these variables are defined in the CoDeSys program(ST) as global structure arrays under RETAIN, and when I specify "Retain.SRAM.Size" and "Retain.SRAM.Address" and "Retain.SRAM.AddressMapped" in the CFG file, I can correctly obtain the address of IEC variables from the bottom through the "void* IecrAccGetAd2" function provided by 3S, When these variables are defined in the CoDeSys program(ST) as global structure arrays under RETAIN, But my APP can no longer start automatically.

For this reason, my development has reached a deadlock, and I would like to ask for your help.

The configuration of the " cfg" file:


You do not have the required permissions to view the files attached to this post.


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

All times are UTC+01:00


Who is online

Users browsing this forum: Andreas Kehrer and 6 guests


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