Converting LD to FBD

daveco

Lifetime Supporting Member
Join Date
Sep 2013
Location
Colorado
Posts
40
How would I create the following in Function Block?

I'm using Unity Pro but if you can show me an example in any logic software, I can build it in Unity.

Basically if EFV (Effluent valve) is closed, I want a ZERO value to be transferred. If it's not closed, I want it to show the NTU value but I need to work off of the same Input. In other words I don't have a EFV_Open contact to work with.

I'm having a hard time figuring out how to duplicate the NC contact portion.

Capture.JPG
 
I'm in the process of converting LD984 to either LD or FBD and trying to figure out which will be the best way to convert it. I know the LD works, but just looking at my options.
 
I found "A" way to do it, but it seems messy. If anyone has a cleaner/simpler way, I'm all eyes.
Used the XOR block that requires only one of the inputs will produce an output, if both have power (1) than no output.

Capture2.JPG
 
It looks like you're doing a Quantum LL984 conversion...

Unity now has MOVE instructions. No need to use SUB to put values into registers.

You don't need the XOR. Just use the "Valve Closed" bit on the EN pin, right click on the pin and select "Negate pin".

There is also a NOT function block if you want to make it more obvious.

I would personally take your Flow GT 100 and feed the result into an AND block with the valve closed input as the second input. Use the result as an EN for a MOVE block.
 
That works! Thanks Saffa! I hadn't thought about the NEGATE option. I changed to the Moves yesterday after finding them.

The results:

Capture5.JPG
 
looking much better. Still one sub in the that can be turned into a MOVE.

We are doing an LL984 conversion to FB for a WWTP at the moment and getting rid of a few hundred SUBs has been almost therapeutic. I used to hate having to think about what each pin would do when i used to troubleshoot the old program
 
We're on the uphill side of the water cycle from you :)

As you're finding out, SUBs are used everywhere in the Modicon water world. I'll put some thought into how to replace that sub but I need a zero value when the contact is closed.

Oh... Simply use the EN pin and move the zero! Duh!
Thanks.
 
Unity have different program scan than old modicons.

Unity have scan from left to right then down.

Old modicons from up to down and then to right.

This means that you probably also need to move your zeroing measrument by valve closing under GT block.

Otherwise you still have reading on Unity if input is over 100 but there is also close_valve input on "1" state.


Doh, there is negated input also
 
Last edited:

Similar Topics

Hello everyone, can anyone help me with covert the STL code to ladder. Iam using plc s71200. A %DB1.DBX33.7 // angel of vaccum...
Replies
2
Views
175
Hello PLCs Forum, I am in a bit of a pickle and was hoping someone could offer me some help. I have a .rss file and just need to see the ladder...
Replies
2
Views
95
Hello nice to meet you, im new in here, I'm currently trying to convert code written in STL for a S7-400 to SCL for an S7-1500, because when i run...
Replies
5
Views
267
Hello, did anybody know, if there exist an converting cable like the1492-CM1746-M01 (for an 1746-IB16 to an 5069-IB16), for an 1746-HSCE to an...
Replies
3
Views
356
Hello, This will be my first time converting powerflex 40's and 400's from devicenet to ethernet. I did some research, and it seems I will need...
Replies
4
Views
699
Back
Top Bottom