transplant modbus from rs232 to rs485