Unity Pro XL 7 DFB's

Strokur

Member
Join Date
Jan 2014
Location
Ohio
Posts
62
Hello again,

I was just wondering, I have 2 separate DFBs 1 to find the level of product and another to scale it according to Specific Gravity of specified product. I've thought about just rewriting both DFBs(The first I had to rewrite old logic and the second I wrote for my boss). Then I wondered if I could just modify the inputs/outputs and save the hassle of rewriting both.

1. Can I use a DFB inside another? (I tried in a test project seemed to work).

2. Is this going to affect the performance of either DFB or the relay of information enough to cause concern?

Regards,
Strokur
 
Hi Strokur.

Yes you can use number of DFB's inside a DFB.
For example.
You have build 2 application DFB's for PUMP OPERATION & RUN HOURS.
Now you are building third DFB where in you can use the above DFB's & default libset DFB's as many times you want.

It never affect other DFB's or other logic

In a recent project I have build a DFB with almost 58 IO's consisting of number of Application DFB's and Default DFB's.

Regards.
 
Meghnesh is correct, and I would do it this way.

Another thing to keep in mind when using DFB you can create multiple sections of code within a dfb to segregate your logic, you could create a section for scaling and another section for specific gravity.
Also remember you can create user defined types (structures) and use these as the inputs or outputs to a dfb.
 
Thanks for the input guys! I had tested it shortly after posting and it seemed to work out fine I just wasn't sure if there were repercussions. Now I'll just have to work on condensing some of this. Again I appreciate everything!
 

Similar Topics

I've used Schneider Electric and Unity Pro for a long time and have always assigned a variable external to the DFB and then assigned that external...
Replies
2
Views
3,472
I'm trying to find "IEC_BMDI_M" to use in my converted Unity Pro program to replace the old Concept "IEC_BMDI" but I can't find it in the...
Replies
3
Views
2,393
I have a problem for importing DFB Blocks in a project of Unity Pro V3.0. I have a compressed file containing the Database of DFB Blocks with a...
Replies
7
Views
5,911
Hi Friends, I`m new to schneider PLCs and unity pro software,and with a very good background in siemens PLCs. I want to know when I`m creating a...
Replies
4
Views
3,422
Hi everyone, i wanted to ask if its possible to read public variables on a DFB's instance on Unity Pro S, from vijeo citect 7.2 using OPC OFS. I...
Replies
5
Views
4,276
Back
Top Bottom