コード例 #1
0
ファイル: read_device_coils.py プロジェクト: bgerp/ztm
    def __init__(self, unit, address, count):
        """Constructor

        Args:
            unit (int): Unit ID
            address (int): Starting address.
            count (int): Count of the registers.
        """

        # Address, Count, key word args.
        ReadCoilsRequest.__init__(self, address, count, unit=unit)
コード例 #2
0
    def __init__(self, address, **kwargs):
        """ Initializes a new instance

        :param address: The address to start reading from
        """
        ReadCoilsRequest.__init__(self, address, 16, **kwargs)
コード例 #3
0
    def __init__(self, address):
        ''' Initializes a new instance

        :param address: The address to start reading from
        '''
        ReadCoilsRequest.__init__(self, address, 16)
コード例 #4
0
ファイル: custom-message.py プロジェクト: 4rc4n4/pymodbus
    def __init__(self, address):
        ''' Initializes a new instance

        :param address: The address to start reading from
        '''
        ReadCoilsRequest.__init__(self, address, 16)
コード例 #5
0
    def __init__(self, address, **kwargs):
        """ Initializes a new instance

        :param address: The address to start reading from
        """
        ReadCoilsRequest.__init__(self, address, 16, **kwargs)