port = $port; $modbus->connect(); return $modbus; } ?>