How to break 32bit data into Bit(coil status)

Started by ccdr, July 13, 2018, 07:40:27 AM

Previous topic - Next topic

ccdr

Hello
I have a Modbus 32-bit data consisting of two 16-bit registers.
The 32-bit data is a group of data 32 individual status bit, i.e. either TRUE or FALSE
I'd like use Data Type of Bit (coil status) to interpret this 32-bit data by setting Count to 32.
I was hoping to get a Bit type array.
But at the end I just got a single scalar data (of type [11]).
Could you please let me know how to get Bit type array out of the 32-bit data?
Thanks in advance.

Arthur Grasin

Hello,

Could you please attach a screenshot of your MODBUS queue?
If you like my work, please take a few seconds and add feedback about our site or our software [here]

ccdr

Quote from: Arthur Grasin on July 13, 2018, 02:55:52 PM
Hello,

Could you please attach a screenshot of your MODBUS queue?
Please see the attachement
I'd like to see a bit array type of READ_FAULT coming out of the parsed result.
But I only got the singular Boolean type result.

Arthur Grasin

Please, enable the "Append counter to name" option.
If you like my work, please take a few seconds and add feedback about our site or our software [here]

ccdr

Quote from: Arthur Grasin on July 16, 2018, 04:13:28 AM
Please, enable the "Append counter to name" option.
Now the parsed result has been broken into bit wise pieces.
Thanks.
By the way, the item name has been changed as well. Can I get a Bit type of array instead of 32 separate items with different names? Should I have to reference these items one by one if I need to enumerate them?

Arthur Grasin

If you like my work, please take a few seconds and add feedback about our site or our software [here]