Hello
I need to implement function:
if xx>32767
then xx = 65535-xx
I'm taking xx with modbus. There must be values between -32767 and 32767. But the controller can't give negative value - only 0...65535
So I need to recalculate it.
Thank's for advice.
I need to implement function:
if xx>32767
then xx = 65535-xx
I'm taking xx with modbus. There must be values between -32767 and 32767. But the controller can't give negative value - only 0...65535
So I need to recalculate it.
Thank's for advice.
Comment