Data type conflict (FB/DB)

Benton

Member
Join Date
Oct 2010
Location
Baton Rouge
Posts
34
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!
 
That's impossible. If you want only one Instance DB, you need to call both those blocks inside an FB and create instances in the STAT area of that Block.
 
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

I cannot add SLC500 analog input tag (I: 8.3) to EZSeries Touch Panel Editor (V 5.3). I used all the listed tag datatype but it all says "Invalid...
Replies
7
Views
113
Hi guys, I have no experience when working with AllenBradley PLC, but I hope someone could clarify the result of multiplication shown in the...
Replies
14
Views
2,178
Trying to get data types (AS Structures) to update after a new tag import is made from PLC. WinCC can show red if an existing element was removed...
Replies
0
Views
265
Is there a way to use LREAL Data type on L71. I am getting 64 bit Double (IEEE754 Double precision 64-bit) data from a modbus device onto PLC via...
Replies
6
Views
939
Back
Top Bottom