Pulling registers from Modbus devices and have to swap words before CPW'ing them into floats.
Right now, for instance, I'll COP N7:17 to N7:48 (temporary), COP N7:18 to N7:17, then COP N7:48 to N7:18, then use CPW w/ length 2 to copy the words into a float.
Is there a better way to do this? 4 commands just to process 1 value!
TIA
Right now, for instance, I'll COP N7:17 to N7:48 (temporary), COP N7:18 to N7:17, then COP N7:48 to N7:18, then use CPW w/ length 2 to copy the words into a float.
Is there a better way to do this? 4 commands just to process 1 value!
TIA