02.03.2020, 19:03
I've edited Daniel's example to use internal conversion function. You might have to use different swap parameter (w) depending on your ModBus device. Possible values: n (no swap), w (word swap), b (byte swap), bw (byte and word swap).