SKA AB

"Clean up" warnings?

3 posts in this topic

Hi. i have bunch of arrays where they are assigned values from custom FB's.

However, after they are invidually assigned its value, that specific range is not read anywhere in the plc, but the whole array is passed along to some other functions, that reads it later, but not reading specific [1]...[10] or what ever the range of the current array is.

Any suggestios how to get rid of these kinds of warnings that really is not a warning (in my book)?
For example below, the whole array Error is tossed into another function, but not the invidual indexes.

Warning    1    The output used as an internal bit is not referenced from others. 'Error[1]'    FB_GroupAxis_New    Row 3
Warning    2    The output used as an internal bit is not referenced from others. 'Error[2]'    FB_GroupAxis_New    Row 4
Warning    3    The output used as an internal bit is not referenced from others. 'Error[3]'    FB_GroupAxis_New    Row 12
Warning    4    The output used as an internal bit is not referenced from others. 'REAL_Temp2'    FB_GroupAxis_New    Row 13
Warning    5    The output used as an internal bit is not referenced from others. 'Error[4]'    FB_GroupAxis_New    Row 14
Warning    6    The output used as an internal bit is not referenced from others. 'Error[5]'    FB_GroupAxis_New    Row 16
Warning    7    The output used as an internal bit is not referenced from others. 'Error[6]'    FB_GroupAxis_New    Row 17
Warning    8    The input used as an internal bit is not written from others. 'SearchKey'    FB_GroupAxis_New    Row 22
 

Share this post


Link to post
Share on other sites

You could make a rung to read these variables into a dummy variable.

Alternatively, you can turn off this check function. Tools > Option > Program Check/Build > Ladder Program Check.

Share this post


Link to post
Share on other sites
On 10/12/2022 at 0:54 PM, IO_Rack said:

You could make a rung to read these variables into a dummy variable.

Alternatively, you can turn off this check function. Tools > Option > Program Check/Build > Ladder Program Check.

Thanks for the info, i ended up doing this to suporess the warning messages.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now