pycomm3/clx.py
def _forward_close(self):
        """ CIP implementation of the forward close message

        Each connection opened with the forward open message need to be closed.
        Refer to ODVA documentation Volume 1 3-5.5.3

        :return: False if any error in the replayed message
        """

        if self._session == 0:
            raise CommError("A session need to be registered before to call forward_close.")

        route_path = Pack.epath(self.attribs['cip_path'] + MSG_ROUTER_PATH, pad_len=True)

        forward_close_msg = [
            PRIORITY,
            TIMEOUT_TICKS,
            self.attribs['csn'],
            self.attribs['vid'],
            self.attribs['vsn'],
        ]

        response = self.generic_message(
            service=ConnectionManagerService.forward_close,
            class_code=ClassCode.connection_manager,
            instance=ConnectionManagerInstance.open_request,
            connected=False,
            route_path=route_path,
            request_data=b''.join(forward_close_msg),
            name='__FORWARD_CLOSE__'
        )
        if response:
            self._target_is_connected = False
            return True

        self.__log.warning(f"forward_close failed - {response.error}")
        return False
 CIP implementation of the forward close message

        Each connection opened with the forward open message need to be closed.
        Refer to ODVA documentation Volume 1 3-5.5.3

        :return: False if any error in the replayed message
        
CIP implementation of the forward close message
Each connection opened with the forward open message need to be closed.
Refer to ODVA documentation Volume 1 3-5.5.3
CIP implementation of the forward close message Each connection opened with the forward open message need to be closed . Refer to ODVA documentation Volume 1 3 - 5 . 5 . 3
def _forward_close(self):
        if self._session == 0:
            raise CommError("A session need to be registered before to call forward_close.")
        route_path = Pack.epath(self.attribs['cip_path'] + MSG_ROUTER_PATH, pad_len=True)
        forward_close_msg = [
            PRIORITY,
            TIMEOUT_TICKS,
            self.attribs['csn'],
            self.attribs['vid'],
            self.attribs['vsn'],
        ]
        response = self.generic_message(
            service=ConnectionManagerService.forward_close,
            class_code=ClassCode.connection_manager,
            instance=ConnectionManagerInstance.open_request,
            connected=False,
            route_path=route_path,
            request_data=b''.join(forward_close_msg),
            name='__FORWARD_CLOSE__'
        )
        if response:
            self._target_is_connected = False
            return True
        self.__log.warning(f"forward_close failed - {response.error}")
        return False
def _forward_close ( self ) : if self . _session == 0 : raise CommError ( "A session need to be registered before to call forward_close." ) route_path = Pack . epath ( self . attribs [ 'cip_path' ] + MSG_ROUTER_PATH , pad_len = True ) forward_close_msg = [ PRIORITY , TIMEOUT_TICKS , self . attribs [ 'csn' ] , self . attribs [ 'vid' ] , self . attribs [ 'vsn' ] , ] response = self . generic_message ( service = ConnectionManagerService . forward_close , class_code = ClassCode . connection_manager , instance = ConnectionManagerInstance . open_request , connected = False , route_path = route_path , request_data = b'' . join ( forward_close_msg ) , name = '__FORWARD_CLOSE__' ) if response : self . _target_is_connected = False return True self . __log . warning ( f"forward_close failed - {response.error}" ) return False
CIP implementation of the forward close message
Each connection opened with the forward open message need to be closed.
CIP implementation of the forward close message Each connection opened with the forward open message need to be closed .
""" CIP implementation of the forward close message

        Each connection opened with the forward open message need to be closed.
        Refer to ODVA documentation Volume 1 3-5.5.3

        :return: False if any error in the replayed message
        """
False if any error in the replayed message
False if any error in the replayed message
self