Utilize bits in word

MTPLCUSER

Member
Join Date
May 2008
Location
Michigan
Posts
23
I have a Micrologix plc im using to communicate with a scale indicator. I retrieve the data from the indicator using a MSG command. I am able to see the data in a integer file, but I do not know how to utilize it. For example, the data for N9:2 reads 3840, which Im told breaks down to

Bit 0 = 0 Overload
Bit 1 = 0 underload
Bit 2 = 0 Motion
Bit 3 = 0 Center of Zero
Bit 4 = 0 Motion Delayed command running
Bit 5 = 0 Neg Gross Polarity
Bit 6 = 0 Neg Net Polarity
Bit 7 = 0 A/D Error

I need to alarm for the individual bits equal 1, but I'm confused how I should be doing this?

Thanks for your time.
 
You can address the individual bits as follows:
N9:2/0 = Overload
N9:2/1 = Underload
N9:2/2 = Motion
etc.

Or else you could copy N9:2 into a B3 word, and then use the B3 bits the same way. Either should work.
 
not sure if this is what you're asking for - but try changing the RADIX setting (near the lower right corner) on your N9 display window to BINARY ...
 

Similar Topics

A complete guide to utilize Git in your plant use AssetCentre as a "Build" tool. Hello PLCs.net! I have found my older tutorial to be really...
Replies
1
Views
2,466
The machine manufacturer provided my customer with program files for his SLC 5/03 with extensions .ach, .att, and .adr, but I don't know how to...
Replies
0
Views
1,584
1732 ArmorBlock I/O has been around for quite a while and seems like a great way to distribute I/O. On a recent job, where I spec'd out...
Replies
6
Views
2,797
Hi I am being given several fault words (as a DINT) from a Drive that I am receiving into a Compactlogix L33ER controller. I have a small...
Replies
12
Views
1,140
Dear Fellows; I am working on a very old machine which is designed in GE 90-30 PLC system. I have some difficulties like 1. How a force to...
Replies
3
Views
346
Back
Top Bottom