MartyW
Member
I am setting up the structure on a project that uses 6 identical manifolds. Each manifold has I/O, HMI events, timers , recipe steps, etc.
I would like to program a single set of FB's/FC's and use for all the manifolds.
I have currently set up a UDT that defines most of the data for a given manifold, placed the UDT into DB and made copies of the DB for each manifold.
I have a function block representing the generic manifold which takes the UDT type as and IN/OUT parameter. I have also configured the various timers needed for the process as IN parameters (only way to get a timer in).
I would like to define a series of FC's/FB's that break up the process into logical parts and call these from the generic Manifold FB.
My problem is that I cannot seem to pass on parameters passed into the Manifold FB into FC's/FB's that are called from the Manifold FB. This is true for my UDT<xx> and timers. I can pass on boolean data types.
Is there a way to get these complex data types into the sub-FB/FC's? Let me know if this is not comprehensible.
Thanks,
Marty
I would like to program a single set of FB's/FC's and use for all the manifolds.
I have currently set up a UDT that defines most of the data for a given manifold, placed the UDT into DB and made copies of the DB for each manifold.
I have a function block representing the generic manifold which takes the UDT type as and IN/OUT parameter. I have also configured the various timers needed for the process as IN parameters (only way to get a timer in).
I would like to define a series of FC's/FB's that break up the process into logical parts and call these from the generic Manifold FB.
My problem is that I cannot seem to pass on parameters passed into the Manifold FB into FC's/FB's that are called from the Manifold FB. This is true for my UDT<xx> and timers. I can pass on boolean data types.
Is there a way to get these complex data types into the sub-FB/FC's? Let me know if this is not comprehensible.
Thanks,
Marty