Modbus v1 to v2 conversion

I think the “write order swap” issue is around TCP disconnect/reconnect on every transfer.

You might be able to improve your chances pending a proper fix, by moving away from default behaviour, explained here -