RSLogix 5000 help BAND

shady2

Member
Join Date
Mar 2012
Location
kaap
Posts
3
Hi
I am trying to figure out how to decode the following logic block
I understand what the block is trying to do, but do not know how to convert the data type of source B, in order to trace which values of source A is being processed.o_O
Help will be appreciated
 
What are you trying to "decode"?
That is just masking (Logical ANDing) DINT alarm words, with constant DINT values.
Then if any result is non-zero, something else happens that you don't show.
 
Basically it activates a coil.
What I actually wanted to know was eg.
how is "4095" converted to the format 2#0000_ ...... ,etc
this would allow me to detect which bits in the latch will activate the coil when it changes state.
Not sure of the data types and conversions. Did decimal to binary conversion, but the result doesn't make sense.
Thus I know my conversion method is wrong
Hope this makes it more clearer.
 
All numbers are stored in binary on current computing platforms. What conversion are you talking about?
In ControlLogix terms:
2#xxx... indicates a number represented in base 2.
16#xxx... indicates a number represented in base 16.
There is no prefix for base 10.

2#1111 = 16#f = 15
 
All numbers are stored in binary on current computing platforms. What conversion are you talking about?
In ControlLogix terms:
2#xxx... indicates a number represented in base 2.
16#xxx... indicates a number represented in base 16.
There is no prefix for base 10.

2#1111 = 16#f = 15

Thanks for the help
So if I am correct 4095 = 2#111111111111
... and if that is the case, the current logic in the program I'm looking at is incorrect, which is why I was so confused
 
Thanks for the help
So if I am correct 4095 = 2#111111111111
... and if that is the case, the current logic in the program I'm looking at is incorrect, which is why I was so confused

Yes, 4095 = 2#1111 1111 1111
It is one less then 2^12 which is:
4096 or 2#1 0000 0000 0000

As an aside, if you want to look at various representations inside or RSLogix, just create a DINT tag in the tag editor, and enter a value under the Monitor Tags tab. The style dropdown to the right of the value will let you see the numeric value you enter in decimal, binary, octal, hex, or ascii.
 
Last edited:
It would have been so much clearer if the Source B operands had been entered as Binary notation....

2012-03-30_111308.jpg
 
It would have been so much clearer if the Source B operands had been entered as Binary notation....

It would have been even automatic, if instead of using hard coded constants, they used a tag. If it really MUST be constant, then you can always set the "Constant" box in the tag properties. (Version 18+? 19+?)
 
It would have been even automatic, if instead of using hard coded constants, they used a tag. If it really MUST be constant, then you can always set the "Constant" box in the tag properties. (Version 18+? 19+?)

Agreed, but not entirely "automatic" - you would have to set the tag display properties to "Binary" when creating them.
 
I have actually made a mistake in my posted image....

The middle rung Source B was 2,147,483,647 - which of course is ..
2#0111_1111_1111_1111_1111_1111_1111_1111 and not..
2#1111_1111_1111_1111_1111_1111_1111_1111 as I posted.

If all 1's were required, then Source B should have been -1
 

Similar Topics

I am completely stuck on building a ladder program that requires a start button to be pressed 3 times to turn on motor 1. Then motor 2 starts...
Replies
20
Views
517
Hello Everyone, I have tried to access the help function from my RSLogix 5000 but everytime I select a function block on the PLC rung and press...
Replies
3
Views
1,266
I’m working with indirect addressing and trying to make an HMI where each Rectangle Object has a tag of “A[0-127]” with a correlating Push Button...
Replies
15
Views
4,193
I have been tasked to upgrade some SquareD PLCs at our plant. I have done several of these upgrades without any issues. However, I have now met my...
Replies
4
Views
2,436
Hi There, When i did FRD instruction in SLC 500 its working, when i try to simulate in RSLogix 5000 same way as i did in SLC 500 which is not...
Replies
14
Views
2,708
Back
Top Bottom