6/12/2016 7:24 AM | |
Posts: 17 Rating:
|
Hello! 1. Why in symbol table i see this. What does that mean "Data type of DB 90 is FB41"? 2. I know, that LD - is Dword in Local Stack. But can u give me information about it? |
6/12/2016 1:53 PM | |
Joined: 3/30/2011 Last visit: 3/31/2025 Posts: 738 Rating:
|
Hello, 1. in your block there are multiple call of FB41..... serch for multiple instances (like here). 2.if you search for local data you can have a lot of info (like this) Best Regards |
★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ |
|
This contribution was helpful to
1 thankful Users |
6/12/2016 3:44 PM | |
Joined: 9/2/2008 Last visit: 6/30/2024 Posts: 191 Rating:
|
Hello Sapher_Jalt, 1. Every FB needs memory to store its variables. (Temp variables are only kept for one cycle). So if you have e.g. a PID program inside FB41 with a lot of variables you need to link this FB to a instance DB. Let's say you call FB41 in OB35, you can create DB90 as an instance DB from FB41. If you have multiple PID items in your project, you must also call FB41 multiple times, but you can't use DB90 again. This because the second call of FB41 will overwrite the values in its instance DB from the first call. That's why you make a second instance DB like DB91. In your examples this goes up to DB94. DB90 hasn't got a data type FB41... Really you must say: FB41 has an instance DB90 named "iDB_PID_Mill_M01" I hope this will help you. Regards, Alex |
Problems don't exist, only challenges. |
|
This contribution was helpful to
1 thankful Users |
We are working on a new user interface with better overview and more relevance.
To explore the new Forum, you can follow the textbox in the right column, which will lead you to the corresponding page in the new Forum. Alternatively, you can start from the main page by following this link:
https://sieportal.siemens.com/en-ww/support/forum
In the coming days, we will update the configuration step by step, so that you are directed to the new Forum by default. The “classic Forum” will remain available for all known functionalities alongside the new one.
We are thrilled to finally share the future of our Forum with you. Thank you for your commitment!
Kind regards,
the Forum Support Team
Follow us on