async connect(IP_ADDR, SLOT = 0, configInstance, outputInstance, inputInstance) {

        this.configInstance = configInstance;
        this.outputInstance = outputInstance;
        this.inputInstance = inputInstance;
               
        const { PORT } = CIP.EPATH.segments;
        const BACKPLANE = 1;

        this.state.controller.slot = SLOT;
        this.state.controller.path = PORT.build(BACKPLANE, SLOT);

        const sessid = await super.connect(IP_ADDR, this.timeout_sp);   
        
        this._initializeControllerEventHandlers(); // Connect sendRRData Event
        
        this.OTconnectionID = await this.forwardOpen();

        return this.OTconnectionID;
        
    }
/**
     * Initializes Session with Desired IP Address
     * Sends forwardOpen to IO device to initialize Ethernet/ip class 1 communication
     *
     * @override
     * @param {string} IP_ADDR - IPv4 Address (can also accept a FQDN, provided port forwarding is configured correctly.)
     * @param {number} SLOT - Controller Slot Number (0 if CompactLogix)
     * @param {object} configInstance - configInstance parameters
     * @param {number} configInstance.assembly - config assembly instance value
     * @param {number} configInstance.size - config data size
     * @param {object} outputInstance - outputInstance parameters
     * @param {number} outputInstance.assembly - output assembly instance value
     * @param {number} outputInstance.size - output data size
     * @param {object} inputInstance - inputInstance parameters
     * @param {number} inputInstance.assembly - input assembly instance value
     * @param {number} inputInstance.size - config data size
     * @returns {Promise}
     * @memberof ENIP
     */
Initializes Session with Desired IP Address
Sends forwardOpen to IO device to initialize Ethernet/ip class 1 communication


Initializes Session with Desired IP Address Sends forwardOpen to IO device to initialize Ethernet / ip class 1 communication
async connect(IP_ADDR, SLOT = 0, configInstance, outputInstance, inputInstance) {
        this.configInstance = configInstance;
        this.outputInstance = outputInstance;
        this.inputInstance = inputInstance;
        const { PORT } = CIP.EPATH.segments;
        const BACKPLANE = 1;
        this.state.controller.slot = SLOT;
        this.state.controller.path = PORT.build(BACKPLANE, SLOT);
        const sessid = await super.connect(IP_ADDR, this.timeout_sp);   
        this._initializeControllerEventHandlers(); 
        this.OTconnectionID = await this.forwardOpen();
        return this.OTconnectionID;
    }
async connect ( IP_ADDR , SLOT = 0 , configInstance , outputInstance , inputInstance ) { this . configInstance = configInstance ; this . outputInstance = outputInstance ; this . inputInstance = inputInstance ; const { PORT } = CIP . EPATH . segments ; const BACKPLANE = 1 ; this . state . controller . slot = SLOT ; this . state . controller . path = PORT . build ( BACKPLANE , SLOT ) ; const sessid = await super . connect ( IP_ADDR , this . timeout_sp ) ; this . _initializeControllerEventHandlers ( ) ; this . OTconnectionID = await this . forwardOpen ( ) ; return this . OTconnectionID ; }
Initializes Session with Desired IP Address
 Sends forwardOpen to IO device to initialize Ethernet/ip class 1 communication
Initializes Session with Desired IP Address Sends forwardOpen to IO device to initialize Ethernet / ip class 1 communication
// Connect sendRRData Event