Logix Designer Boolean selection

dalporto

Lifetime Supporting Member
Join Date
Jun 2021
Location
Montreal, QC
Posts
258
Hi. I haven't touched an Allen Bradley PLC for more than 10 years and I'm kind of rusty.


I want to do something really simple in a FBD section:


If BOOL_SEL is low, use BOOL_IN1 as the block output, is BOOL_SEL is high, use BOOL_IN2 as the output.


With Schneider, this is the SEL block for mostly any input type. SEL block in Logix Designer only allows REAL as inputs. I'm pretty sure that something equivalent exists with Rockwell but I cannot find it and Google does not help me much.


Thanks.
 
Like this? It might be possible to invert the BOOL_SEL "signal" on the input pin of the lower BAND, and then the BNOT is not necessary.
Untitled.png
 
Yes, thanks.


It ended up in an BXOR for that one, but I'll keep this in mind for the next ones.


I got lazy from that Schneider SEL block and forgot about simple logic I guess.
 
Uhhhhh, if I understand what you are saying, then note that:
  • BXOR BOOL_IN1 BOOL_SEL is not the same as BAND BOOL_IN1 (NOT BOOL_SEL).
  • If BOOL_IN1 is 0. BOOL_IN2 is 0 and BOOL_SEL is 1, so BOOL_IN2 should be "selected," BOOL_IN1 should be ignored, and the final (BOR) output should be 0, however
    • The output of BAND BOOL_IN2 BOOL_SEL will be 0, which is correct
    • The output of BXOR BOOL_IN1 BOOL_SEL will be 1, which will be BORed with the BAND BOOL_IN2 BOOL_SEL output of 0, and the final output will be 1, which is not correct.
Or maybe I don't understand where you are putting the BXOR?
 
@drbitboy


I'm trying to replicate a Schneider FDB program in Rockwell.



I was building a new DI_REMAP in FBD in Rockwell like our technicians are accustomed to see for our Schneider rigs. It's a 16 inputs block where I plug the "wired" (ex: Local:4:I.Data.0) inputs. I place my simulation options there also and a couple other things. Customers likes that, I like that, and it's clean.



Often, we would negate an input because we want to annunciate on a "1" and we want all SCADA alarms to be high on a "1" so we don't have logic to do at SCADA level (like alarm on low), like an Ethernet switch or Power Supply Healthy status. It's fail safe, if the wire breaks we want the alarm driven by the PLC. It is also easier to interlock with a bad 24VDC loop failure (I'll alarm on 24DC fail only and not on all 7 other low alarms because 24DC is dead).



With Unity Pro / Control Expert, the "negate" (BNOT with Rockwell) does not take room in the page (it's a small circle on the input leg). With Rockwell, if I have to negate an input, that BNOT block takes a lot of place (like 3-4 rows), and it often happens that I have 6-7 of them on the same 16 inputs. And I don't want to hide it in a Ladder remap since I know the technician won't have the reflect to follow the tag and I don't want to have an intermediate remap.



If I'm using the BNOT right on the FBD page, this is spaghetti unless I take all the page to place it neatly, which undermines the purpose of clarity of the remap.



So long story short, I added an input on my block that will read something like 2#1000_0000_0000_0011 which means that the first and the last two inputs are negated, this is easy to read and it does not mess up my layout on the page.


My plan was to use a SEL block that would go through a BNOT or not if the mask for that bit was "1", but it only accepts REAL.



Since this did not work with the SEL block for that particular setup, I just wrote this while thinking about it (first is the actual wired input, second one is my "BNOT mask value):


0-0 = 0
0-1 = 1
1-0 = 1
1-1 = 0


...and realized I was just trying to do a XOR.


But your way will come handy soon for more complicated selections, like when the selection is coming from two different logic. But I'll miss this block for sure, I think I'll just build it.



Thanks again.
 

Similar Topics

How do I organize the template for my controls. I am new to Logix Designer but have used RS500 and RS5000. My new Logix Designer has Toolbars...
Replies
8
Views
236
Hello, Im building project with 1756-L82ES controller and 1756-IB16S card but i cant find it when trying to add the card to IO configuration...
Replies
3
Views
136
Does anyone know how to set the background colors of instuction blocks (TON, MOV, etc)?
Replies
1
Views
135
Hello all, I'm trying to use the Logix Designer SDK to upload and download a single ACD to many controllers. I got this to work fine copying...
Replies
0
Views
71
Hello, I am trying to connect a Stride Analog Output module to a 1769 CompactLogix via Ethernet. I added a new Generic Ethernet Module for the...
Replies
4
Views
236
Back
Top Bottom