AGG Software Forums
November 24, 2024, 07:58:50 AM *
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 ignore the "Default value"?  (Read 14311 times)
ccdr
Jr. Member
**

Karma: +0/-0
Posts: 71


View Profile
« on: March 31, 2017, 03:12:36 PM »

I'm using data logger suite modbus TCP query/response parser to fetch data from modbus TCP server.
The data occupy 2 registers and are parsed as 32-bit float.
So I set "Registers to read" to 2 and "Count" to 1.
But I can not get valid data upon every request. The next query following the valid data query is an invalid one with the exact data I set in "Default value" field.
How could this happen?
In what condition, the "Default value" is used as parsed data?
If this is inevitable, how could I ignore such "Default value" avoiding the parser variable to log this nonsense value?
Thanks.


* 2017-03.png (218.76 KB, 1088x477 - viewed 2 times.)
Logged
Arthur Grasin
Tech. Support
Administrator
Hero Member
*****

Karma: +0/-0
Posts: 806



View Profile WWW
« Reply #1 on: March 31, 2017, 03:40:29 PM »

Hello,

The program uses the default value in case if the program cannot extract the specified value from a response (a response does not have necessary number of bytes)

You cannot omit a response item if it does not exist in a response.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines