Bit extraction

Discussion of application development using iX Developer, including but not limited to getting started, using the functions tab, properties, objects and installation.
Post Reply
David.H
Posts: 6
Joined: Thu Oct 17, 2013 2:07 pm

Bit extraction

Post by David.H »

Is there a way to extract bit status from a UInt32 word. I only have access to words in the controller, but need to extract whether a certain bit is on/off so I know status of that input. The controller I'm communicating with puts all data into words, even bits. So the only way to tell what discrete inputs are on/off is to convert the word to bits, like AB does, I suppose. I'm communicating via Modbus.

David.H
Posts: 6
Joined: Thu Oct 17, 2013 2:07 pm

Re: Bit extraction

Post by David.H »

I know replying to my own post. Found the "Expressions" function that does the bit extraction. Knew there was a way.

Post Reply