Modbus serial (ASCII or RTU) controller