I am currently working on modularizing our software and wanted to create an instance of SF_TableTypeB_Read inside a Structured Text (ST) function block.
Although the help documentation does not mention any limitations regarding the use of SF_TableTypeB_Read in Function Blocks, I am receiving the following error:
SL1.SM1 “TableSource_1” E#0x4F “Table is used in code, but table parameter ‘TableSource_’ is ‘NOT used’, or vice versa”
Hi @Sadek96 ,
Welcome to the Community!
I didn’t use that FUB so far but in the Integrated safety technology User’s manual 6.4.0 there is exactly your case: Subsequently loading a Safe Commissioning Table(page 2602) .
They don’t use ST for the implementation but the example explains step by step want you need to do; it’s possible something is missing in your prj.
thank you for your reply. However, the example only demonstrates how to use it in the main program and does not show how to implement it within a separate function block.
maybe…just one thought…Have you tried to use SF_TableTypeB_Read on the main program and not inside a FUB as described on the manual?
———————————
This is how I have fixed my issue:
Yep, that was it—thank you very much. It was a bit confusing because I had it defined in my main POU, and it still worked, but not anymore when it’s defined in an FUB. it was only beacuse i’v created a new Safety Program and didn’t lock the Table