APROL SFC Debug variables warning

Hi Everyone,

I have an APROL 4.2-07 project
In my project, I have a Warning on my controller that I have declared variables within a Task that is not used.

This task is setup for a SFC program. I want to remove them to get rid of the Warning, but I can not find where they are declared.

The errors are as follows:
Directory /home/engineering/ENGIN/PROJECTS/{ProjectName}/TARGETS/{Cntrl}/Logical/SQ/ACT not emtpy, do not delete
\home\engineering\ENGIN\PROJECTS\{ProjectName}\TARGETS\{Cntrl}\Logical\SQ\SQ.var (Ln: 195) : warning 5874 : Variable zzSFCDbg_18__T25 is declared but not used in the current configuration -s SQ
\home\engineering\ENGIN\PROJECTS\{ProjectName}\TARGETS\{Cntrl}\Logical\SQ\SQ.var (Ln: 128) : warning 5874 : Variable zzSFCDbg_06__T26 is declared but not used in the current configuration -s SQ
\home\engineering\ENGIN\PROJECTS\{ProjectName}\TARGETS\{Cntrl}\Logical\SQ\SQ.var (Ln: 103) : warning 5874 : Variable zzSFCDbg_03__T27 is declared but not used in the current configuration -s SQ
\home\engineering\ENGIN\PROJECTS\{ProjectName}\TARGETS\{Cntrl}\Logical\SQ\SQ.var (Ln: 20) : warning 5874 : Variable SFCEnableLimitC is declared but not used in the current configuration -s SQ

Any advice on where to find these variables to remove them?

Hello @Shaun_Jansen,

From the error log alone, I am not able to say where the error is. How is your SFC built? Is SQ an instance of your SFC?

If you are not using FB from libraries, variables are defined under the “Variables” tab. Is this shown in the screenshot?

EDIT: Don’t forget if its local variable you nedd to assaignt project variable to it

Are variables zzSFCDbg_18__T25, zzSFCDbg_06__T26, zzSFCDbg_03__T27, and SFCEnableLimitC local or project variables?

Hi Carl.

Thank you for the response.
I have traced the variable within that file specified in the error.

But even after deleting the variables in the file, as soon as I compile and build
it is generated again.

I am just unsure as to what is causing the variable to be created.

Hi @tomas.miculka

I have a SFC instance withing my project structure.
The SQ is the TaskClass created on the controller specifically for the sequence (Like “Task: test@PLC0” in your picture).

I have used all the variables I created within then program.
But the variables I am getting the error on is not in my list.

I don’t know where that information for the variable is coming from

{Are variables zzSFCDbg_18__T25, zzSFCDbg_06__T26, zzSFCDbg_03__T27, and SFCEnableLimitC local or project variables?}
I didnt create these variables. I dont know where they are to change, Link or delete them.

Even looking at the Control Variables, I dont have a SFCEnableLimit created.

Somewhere in CaeManager is defined. These files are generated after the build process in CaeManager.

Are you using IEC steps? Maybe it is something in actions or an older version of SFC.

Hi @Shaun_Jansen, can you update us about status or provide info Tomas asked you?

Hi @tomas.miculka

I am not using IEC steps.
I have also confirmed all the older versions, and they are not declared.

Hi @tomas.miculka

I have look at all the places I could think of where variables are declared.
But I could not find them anywhere.

I even checked that it was not declared within the hardware configuration within Automation Studio.

Last thing that comes to my mind is to ‘synchronize’ variables. In the variables tab, right-click on your mouse and select Synchronize from the toolbar. Otherwise, please contact your local office or support.

Thank you for all your help and replies.

I tried doing the synchronize today. There is no indication or popup when I select it.
But after a build I still have the error.

I will load a support ticket and take it up futher.

When I get a resolution I will post the findings back here.

Thank you