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 Wed Dec 19, 2018 10:15 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 1 post ] 
Author Message
PostPosted: Tue Dec 12, 2017 11:00 am 
Offline

Joined: Tue Dec 10, 2013 9:00 am
Posts: 27
1. Is it possible to disable some Static Analysis errors/warning when my POU is implemented in CFC? I know in ST code I can use pragmas {analysis '-...'}, but unsure if anything similar is possible on CFC code.

2. In some cases Static Analysis gives me warnings and I cannot disable them with pragmas. For example:

I generate a persistent variables list like below:

Code:
{attribute 'qualified_only'}
VAR_GLOBAL PERSISTENT RETAIN
   {attribute 'analysis' := '-12'}
   g_xCheck:      BOOL := FALSE;
   {attribute 'analysis' := '-12'}
   g_sText:      STRING := 'abc';
END_VAR


Then I place these variables somewhere in a Visualizaiton. The Static Analysis still reports "SA0012: g_xCheck could be declared as constant." - despite of the usage of pragma {attribute 'analysis' := '-12'}. I would like to disable it. What am I missing?


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: 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