Author Topic: Decimals when sending DRO's via MODBUS  (Read 1678 times)

0 Members and 1 Guest are viewing this topic.

Offline Triblix

  • Active Member
  • Posts: 8
    • View Profile
Decimals when sending DRO's via MODBUS
« on: July 16, 2012, 06:31:22 AM »
Good afternoon,

I am sending the X-axis reading from Mach3 via MODBUS, but I am only receiving the integer part of the value.

For example, my x-axis position on Mach3 will be displayed as '+108.2145', but on my SCADA controller it is only displayed as '+108' without the decimals.

How can I overcome this problem so that the decimals will also be displayed?

I have tried using 2 registers in Mach3 when sending (i.e 32bits), but this still did not solve the problem.

Thank you for the assistance.

Kind regards

Offline gallenat0r

  • Active Member
  • Posts: 43
    • View Profile
Decimals when sending DRO's via MODBUS
« Reply #1 on: August 11, 2013, 04:30:52 PM »
Multiply by 10000 before sending and divide by 10000 at the other end?

--
gallenat0r