AGG Software Forums
November 22, 2024, 12:07:14 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome on our forum!
 
   Home   Help Search Login Register  

Pages: [1]
  Print  
Author Topic: How to break 32bit data into Bit(coil status)  (Read 18322 times)
ccdr
Jr. Member
**

Karma: +0/-0
Posts: 71


View Profile
« 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.
« Last Edit: July 13, 2018, 10:42:14 AM by ccdr » Logged
Arthur Grasin
Tech. Support
Administrator
Hero Member
*****

Karma: +0/-0
Posts: 806



View Profile WWW
« Reply #1 on: July 13, 2018, 05:55:52 PM »

Hello,

Could you please attach a screenshot of your MODBUS queue?
Logged
ccdr
Jr. Member
**

Karma: +0/-0
Posts: 71


View Profile
« Reply #2 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.


* 32-bit_bitwise_parsing.png (5.46 KB, 457x240 - viewed 5 times.)
Logged
Arthur Grasin
Tech. Support
Administrator
Hero Member
*****

Karma: +0/-0
Posts: 806



View Profile WWW
« Reply #3 on: July 16, 2018, 07:13:28 AM »

Please, enable the "Append counter to name" option.
Logged
ccdr
Jr. Member
**

Karma: +0/-0
Posts: 71


View Profile
« Reply #4 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?
Logged
Arthur Grasin
Tech. Support
Administrator
Hero Member
*****

Karma: +0/-0
Posts: 806



View Profile WWW
« Reply #5 on: July 16, 2018, 09:01:01 AM »

Sorry, but you cannot get an array.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines