CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum
Deutsche Version English version russian version 
It is currently Wed Oct 18, 2017 4:59 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 9 posts ] 
Author Message
PostPosted: Wed Apr 26, 2017 1:26 pm 
Offline

Joined: Thu Sep 18, 2014 12:10 am
Posts: 87
After upgrade the development to V3.5.10.30 i take error when compare my costum data type:

[ERROR] CODESYS_V136_S351030: ACT_Fan_SETUP_CHECK [Device: PLC Logic: Application: RECIPES_Handle](Line 4, Column 1): C0066: Cannot compare type 'FanIOSetType' with type 'FanIOSetType'

If i compare the data type variables one by one works but not when compare direct the data type.

Any help?


Top
   
PostPosted: Thu Apr 27, 2017 5:09 am 
Offline
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 2159
Hi,
sounds like an accidentally shown precompile error -
Could you download the Project if you ignore this to the plc and this does work?
BR
Edwin


Top
   
PostPosted: Tue May 02, 2017 9:13 pm 
Offline

Joined: Thu Sep 18, 2014 12:10 am
Posts: 87
Attachment:
Download.png


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


Top
   
PostPosted: Wed May 03, 2017 4:43 am 
Offline
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 2159
Hi,
then you need to give us the code snipet or project where it does occure.

BR
Edwin


Top
   
PostPosted: Wed May 03, 2017 6:48 pm 
Offline

Joined: Thu Sep 18, 2014 12:10 am
Posts: 87
Attachment:
PrjTest.zip


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


Top
   
PostPosted: Wed May 10, 2017 5:15 pm 
Offline

Joined: Thu Sep 18, 2014 12:10 am
Posts: 87
Any news?
You think is better we stay with Development 3.5.9.50 until fount any solution?


Top
   
PostPosted: Thu May 11, 2017 5:14 am 
Offline
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 2159
Hi,
give me some time sorry, the workaround is for sure to switch back only the compiler version to 3.5SP9x
and stay in current CODESYS version, but let us investigate the reason for this.

BR
Edwin


Top
   
PostPosted: Thu May 11, 2017 12:59 pm 
Offline
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 2159
Hello,
this is an error in the older Versions 3.5.8.0 and3.5.9.0 do not Report an compile error even they should do:

Reason:
CDS-29747: After thorough investigation we decided not to implement this feature:
a typical structure contains gaps due to alignment reasons, those gaps are not initialized and do not have a predefined value and should not have a predefined value. Therefore it is not possible to compare structures with a memcmp-function that does not know the internal structure of a structure.
The programmer write compare functions for those structures were the compare is needed.

BR
Edwin


Top
   
PostPosted: Thu May 11, 2017 11:29 pm 
Offline

Joined: Thu Sep 18, 2014 12:10 am
Posts: 87
That is very bad.
Did you understand how much work we need to do if we want our customers to stay updated for all our projects?


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

All times are UTC+01:00


Who is online

Users browsing this forum: Andreas Kehrer and 2 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:  
cron
Powered by phpBB® Forum Software © phpBB Limited