Win10 VM TIA Portal Pro v 15 with WinCC Pro RT
I remember doing this in S7 and I am sure it is simple, but as wonderful as TIA is, it is adding a layer of obstruction.
I want a global DB to contain a series of multi instance FBs.
Hopefully in an array[0..n] of FB.
db_"all my valve data"
FB ValveControl V1
FB ValveControl V2
FB ValveControl V3
some other stuff..
or
FB ValveControl array[1..n] of "FB ValveControl"
some other data
The global db in question would have all the valve FBs in an array of mulit instance and also other data. So not a dedicated db for just this one thing.
I tried declaring the FB as a data type but doesn't like it. Even added it to the type library.
I am using non optimized dbs throughout for several reasons.
Going to try calling it from another fb and see if it will allow the multi instance and then see if it will allow me to copy that into a global db and change the link
I think it would be nice to have all the FB block data in one place and expandable for each project so an array would be easy and then the HMI could point to that area.
Maybe what I am doing is slightly off for this version of Siemens.
Any suggestions?
I remember doing this in S7 and I am sure it is simple, but as wonderful as TIA is, it is adding a layer of obstruction.
I want a global DB to contain a series of multi instance FBs.
Hopefully in an array[0..n] of FB.
db_"all my valve data"
FB ValveControl V1
FB ValveControl V2
FB ValveControl V3
some other stuff..
or
FB ValveControl array[1..n] of "FB ValveControl"
some other data
The global db in question would have all the valve FBs in an array of mulit instance and also other data. So not a dedicated db for just this one thing.
I tried declaring the FB as a data type but doesn't like it. Even added it to the type library.
I am using non optimized dbs throughout for several reasons.
Going to try calling it from another fb and see if it will allow the multi instance and then see if it will allow me to copy that into a global db and change the link
I think it would be nice to have all the FB block data in one place and expandable for each project so an array would be easy and then the HMI could point to that area.
Maybe what I am doing is slightly off for this version of Siemens.
Any suggestions?