Author Topic: Problem reading negative value modbusrtu?  (Read 6173 times)

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Problem reading negative value modbusrtu?
« Reply #15 on: November 20, 2014, 08:41:20 AM »
The next version will possibly be posted within a week.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Problem reading negative value modbusrtu?
« Reply #16 on: November 21, 2014, 07:23:12 AM »
Version 3.83 is now available. See if that version let's you read negative numbers.

Martinus

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: Problem reading negative value modbusrtu?
« Reply #17 on: November 24, 2014, 07:30:27 AM »
Hello Archie,

There is no error while reading the large negative value's :-) thats a good thing.
unfortunally there isd a unwanted side affect.

With the previous version of advancedHMI i could read the actual position from my servo drive and display it.
With the latest version i can read the actual position but the value i get back is not right.

This is the same with the speed, the value is a 8 numbered value wich i can't covert or recalculate to the right speed.

I wil do some more testing to see if i can put my finger on the problem

Martinus

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Problem reading negative value modbusrtu?
« Reply #18 on: November 24, 2014, 08:03:11 AM »
Is the position a floating point number or a long integer?

Martinus

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: Problem reading negative value modbusrtu?
« Reply #19 on: November 24, 2014, 09:40:27 AM »
Hi archie,

The position is a int32 and speed is int16

greets

Martinus

Martinus

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: Problem reading negative value modbusrtu?
« Reply #20 on: November 24, 2014, 10:20:17 AM »
Ok,

Did some further testing with a clean solution.

When i put my servo drive in  setting 1 then i can make sense of it

0: HighWord-LowWord
1: LowWord-HighWord

The speed wich i'm reading is oke but the position i have to divide by 8 to get the correct answer.

tonight i wl do some more testing

Greets

Martinus