AGG Software Forums

Online Help Center => Data loggers and plug-ins => Topic started by: ccdr on July 13, 2018, 10:40:27 AM



Title: How to break 32bit data into Bit(coil status)
Post by: ccdr on July 13, 2018, 10:40:27 AM
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.


Title: Re: How to break 32bit data into Bit(coil status)
Post by: Arthur Grasin on July 13, 2018, 05:55:52 PM
Hello,

Could you please attach a screenshot of your MODBUS queue?


Title: Re: How to break 32bit data into Bit(coil status)
Post by: ccdr on July 16, 2018, 05:10:36 AM
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.


Title: Re: How to break 32bit data into Bit(coil status)
Post by: Arthur Grasin on July 16, 2018, 07:13:28 AM
Please, enable the "Append counter to name" option.


Title: Re: How to break 32bit data into Bit(coil status)
Post by: ccdr on July 16, 2018, 08:26:58 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?


Title: Re: How to break 32bit data into Bit(coil status)
Post by: Arthur Grasin on July 16, 2018, 09:01:01 AM
Sorry, but you cannot get an array.