Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: Triblix on July 16, 2012, 06:31:22 AM

Title: Decimals when sending DRO's via MODBUS
Post by: Triblix 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
Title: Decimals when sending DRO's via MODBUS
Post by: gallenat0r on August 11, 2013, 04:30:52 PM
Multiply by 10000 before sending and divide by 10000 at the other end?

--
gallenat0r