Control Logixs 5000

sambam2004

Member
Join Date
Jan 2004
Posts
2
Hello
is there any way to count, how many bits are set in the DINT in contol Logixs 5000 and use that count to compare whith actual number.

For example if in my DINT any 6 bits are set then I should get the value 6.

I will be greatful for the help
 
Hello
is there any way to count, how many bits are set in the DINT in contol Logixs 5000 and use that count to compare whith actual number.

For example if in my DINT any 6 bits are set then I should get the value 6.

I will be greatful for the help

Please explain what you said in red ???
 
and use that count to compare whith actual number.


I mean if I get the value (for example 6) then I can use the compare instuction like greater than or Less than to control the output
 
and use that count to compare whith actual number.


I mean if I get the value (for example 6) then I can use the compare instuction like greater than or Less than to control the output

To control what output ?

Are you saying the bits in the DINT represent a "demand" from something and you need to control something depending on how many "calls" there are ?

Whatever your goal is, then yes, you can use the "bit-count" any way you choose. But I'd be interested to know what your DINT value represents to advise further.
 

Similar Topics

Hi, I have been reading old posts about PID instructions and I can't seem to find what I’m looking for. I was looking for a description on the...
Replies
4
Views
5,212
I have a temperature control project that I will starting soon and I thought I would ask you guys some of your thoughts or suggestion that you...
Replies
26
Views
12,793
Hi all, Looking for some help with our Control Logixs L55 controller. I have a Telemetry system connected to the controller via the serial port. I...
Replies
7
Views
3,000
If you're using fiber optics, control logixs processor, 1756-CNB and 1788-CN2DN; we had a power failure and now nothing will communicate. is...
Replies
7
Views
2,058
Can you write code in Visual Basic then import it into Control Logixs? I was just wondering if that's possbile. I have never heard of anyone...
Replies
2
Views
1,907
Back
Top Bottom