当前位置: 首页>>代码示例>>Python>>正文


Python pdu.ModbusResponse类代码示例

本文整理汇总了Python中pymodbus.pdu.ModbusResponse的典型用法代码示例。如果您正苦于以下问题:Python ModbusResponse类的具体用法?Python ModbusResponse怎么用?Python ModbusResponse使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了ModbusResponse类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

    def __init__(self, values, **kwargs):
        ''' Initializes a new instance

        :param values: The values to write to
        '''
        ModbusResponse.__init__(self, **kwargs)
        self.registers = values or []
开发者ID:thom-nic,项目名称:pymodbus,代码行数:7,代码来源:register_read_message.py

示例2: __init__

    def __init__(self, values):
        ''' Initializes a new instance

        :param values: The requested values to be returned
        '''
        ModbusResponse.__init__(self)
        self.bits = [] if values == None else values
开发者ID:D3f0,项目名称:txscada,代码行数:7,代码来源:bit_read_message.py

示例3: __init__

    def __init__(self, status=0x00, **kwargs):
        ''' Initializes a new instance

        :param status: The status response to report
        '''
        ModbusResponse.__init__(self, **kwargs)
        self.status = status
开发者ID:jackjweinstein,项目名称:pymodbus,代码行数:7,代码来源:other_message.py

示例4: __init__

    def __init__(self, values=None, **kwargs):
        ''' Initializes a new instance

        :param values: The list of values of the fifo to return
        '''
        ModbusResponse.__init__(self, **kwargs)
        self.values = values or []
开发者ID:semyont,项目名称:pymodbus,代码行数:7,代码来源:file_message.py

示例5: __init__

    def __init__(self, values):
        ''' Initializes a new instance

        :param values: The values to write to
        '''
        ModbusResponse.__init__(self)
        self.registers = values if values != None else []
开发者ID:D3f0,项目名称:txscada,代码行数:7,代码来源:register_read_message.py

示例6: __init__

    def __init__(self, records=None):
        ''' Initializes a new instance

        :param records: The requested file records
        '''
        ModbusResponse.__init__(self)
        self.records = records or []
开发者ID:thom-nic,项目名称:pymodbus,代码行数:7,代码来源:file_message.py

示例7: __init__

    def __init__(self, values=None, **kwargs):
        ''' Initializes a new instance

        :param values: The register values to write
        '''
        ModbusResponse.__init__(self, **kwargs)
        RegisterResponseMixin.__init__(self, values)
开发者ID:vrtsystems,项目名称:pymodbus,代码行数:7,代码来源:register_read_message.py

示例8: __init__

    def __init__(self, values, **kwargs):
        ''' Initializes a new instance

        :param values: The requested values to be returned
        '''
        ModbusResponse.__init__(self, **kwargs)
        self.bits = values or []
开发者ID:4rc4n4,项目名称:pymodbus,代码行数:7,代码来源:bit_read_message.py

示例9: __init__

    def __init__(self, identifier='\x00', status=True, **kwargs):
        ''' Initializes a new instance

        :param identifier: The identifier of the slave
        :param status: The status response to report
        '''
        ModbusResponse.__init__(self, **kwargs)
        self.identifier = identifier
        self.status = status
开发者ID:mahongquan,项目名称:pymodbus,代码行数:9,代码来源:other_message.py

示例10: __init__

    def __init__(self, address=None, value=None, **kwargs):
        ''' Initializes a new instance

        :param address: The address to start writing add
        :param value: The values to write
        '''
        ModbusResponse.__init__(self, **kwargs)
        self.address = address
        self.value = value
开发者ID:bashwork,项目名称:pymodbus,代码行数:9,代码来源:register_write_message.py

示例11: __init__

    def __init__(self, address=None, count=None):
        ''' Initializes a new instance

        :param address: The starting variable address written to
        :param count: The number of values written
        '''
        ModbusResponse.__init__(self)
        self.address = address
        self.count = count
开发者ID:D3f0,项目名称:txscada,代码行数:9,代码来源:bit_write_message.py

示例12: __init__

    def __init__(self, read_code=None, information=None, **kwargs):
        ''' Initializes a new instance

        :param read_code: The device information read code
        :param information: The requested information request
        '''
        ModbusResponse.__init__(self, **kwargs)
        self.read_code = read_code or DeviceInformation.Basic
        self.information = information or {}
        self.number_of_objects = len(self.information)
        self.conformity = 0x83 # I support everything right now

        # TODO calculate
        self.next_object_id = 0x00 # self.information[-1](0)
        self.more_follows = MoreData.Nothing
开发者ID:semyont,项目名称:pymodbus,代码行数:15,代码来源:mei_message.py

示例13: __init__

 def __init__(self, values=None, **kwargs):
     ModbusResponse.__init__(self, **kwargs)
     self.values = values or []
开发者ID:bashwork,项目名称:pymodbus,代码行数:3,代码来源:custom_message_async_clients.py

示例14: __init__

 def __init__(self):
     '''
     Base initializer for a diagnostic response
     '''
     ModbusResponse.__init__(self)
开发者ID:D3f0,项目名称:txscada,代码行数:5,代码来源:diag_message.py

示例15: __init__

 def __init__(self, address):
     ModbusResponse.__init__(self)
     self.address = address
     self.count = 16
开发者ID:Mohammed15,项目名称:pymodbus,代码行数:4,代码来源:custom-message.py


注:本文中的pymodbus.pdu.ModbusResponse类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。