Kkula
I think I am going crazy....I have added all of my PLC physical i/o to my Symbol Table, I have created a FB to handle my analog scaling control and need to access the symbols in the symbol table - but they are not showing up in the editor. I am getting information from all of the Data Blocks.
Can someone tell me what I am missing?
-J
You're not going crazy! Accessing symbols from the Symbol Table within a Function Block (FB) requires a specific step. By default, the FB editor doesn't automatically inherit symbols from the Symbol Table.
You need to explicitly declare the symbols from the Symbol Table as inputs or static variables within your FB.
Here's how:
Example: If you have an analog input defined in the Symbol Table as "AnalogInput1" with address "%I0.0", you would declare it in your FB like this:
VAR_INPUT
AnalogInput1 : REAL; // Address assigned in the FB's properties or via configuration
END_VAR
Important Note: Data Blocks are always directly accessible, hence why you can see their symbols. The Symbol Table requires explicit declaration within the FB's scope.
For further details, please refer to the Siemens documentation on Symbolic Addressing and Symbol Table and Function Blocks (FB) in STEP 7.
Our flexible community website is a platform that allows users to connect, share information, and collaborate on various topics of interest. The website offers a range of features such as discussion forums, messaging, user profiles, event calendars, and more. Users can customize their experience by creating and joining different groups or communities based on their interests or location. The website is designed to be user-friendly and adaptable to the needs and preferences of our diverse user base. Whether you are looking to network professionally, share hobbies and interests, or simply connect with like-minded individuals, our flexible community website has something for everyone. Join us today and become a part of our thriving online community!
India
Copyright ©2025
Share this page with your family and friends.