Hello Guest it is April 28, 2024, 10:13:47 PM

Author Topic: Mach4 modbus register values  (Read 288 times)

0 Members and 1 Guest are viewing this topic.

Mach4 modbus register values
« on: June 13, 2023, 01:43:23 PM »
I have this cosmetic issue with reading rpm from the spindle vfd via modbus. Im using 2 pole motor and setting Hz values, so 400Hz is 24000rpm. Vfd expects the Hz value multiplied by 100, so 40000 means 400.00 Hz. It looks like the change to negative value happens at exactly 32768 (2^15 binary number)
Is there any way to fix this?
« Last Edit: June 13, 2023, 01:55:21 PM by maroskoxx@gmail.com »
Re: Mach4 modbus register values
« Reply #1 on: June 19, 2023, 10:38:52 AM »
I was able to find out, that there is an option to set signed or unsigned register type in register definition.
This solved my issue.