Data type conflict (FB/DB)

I'm calling two FBs one is an #AI block and the other is a #Limits alarm block. The interface is the same as other FBs that I am replicating. My problem is if I call the the Limits Block first and give it a DB number of 953, lets say, it creates the instance and fills in the declarations no problem, but when I call the the AI block and give it the same DB it gives be a type conflict of the data block message. What am I doing wrong? I would like both block to point to same DB without creating separate DB instances.
I'm using SIMATIC 7 version 6. Thanks in advance!
 
This is what I have:
STAT 1. FB99 (Analog limit)
2. UDT96 (Parameter)
3. FB96 AI

Network 1 I call FB 96 (I use DB 953 for the instances, it creates no problem)

Network 2 I call FB 99 and I try to use same DB instances but it will not allow me to.

Please advise as to why the instance are not just added to DB 953.

Thanks
 
As others have said, each FB uses its own instance DB, especially if they are different FBs. If you want the data stored in the same DB, use the multi instance function mentioned by others.



If you want both FBs to see the same data, pass it in as an INOUT.
 

Similar Topics

Hello PLC Talk Folk, long time no see... I need some assistance with a project I'm working on, guidance would be appreciated... Hardware...
0
Replies
482
Views
I was wondering about the data type 'K' being a constant. Is it preloaded with the number? So, if I LD K10 and then MOV V400, would I be loading...
3
Replies
1,072
Views
Hello everyone. I have been trying to read real data type variables from an Allen Bradlley Micro 850 PLC using an **** Flexy 205 gateway without...
6
Replies
1,878
Views
Hello, I have encountered a problem. Maybe someone can help me solve it. I want to have a PID controller in a function block and send the...
0
Replies
824
Views
I have a counter in LOGO PLC as shown in attached. I want it to display its count on WinCC IO field. What data type and address type should I...
0
Replies
427
Views
Top