• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Python pdu.ModbusResponse类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: __init__

 def __init__(self):
     '''
     Base initializer for a diagnostic response
     '''
     self.message = None
     ModbusResponse.__init__(self)
开发者ID:thom-nic,项目名称:pymodbus,代码行数:6,代码来源:diag_message.py


示例17: __init__

 def __init__(self, **kwargs):
     '''
     Base initializer for a diagnostic response
     '''
     ModbusResponse.__init__(self, **kwargs)
     self.message = None
开发者ID:bashwork,项目名称:pymodbus,代码行数:6,代码来源:diag_message.py



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python pymodelica.compile_fmu函数代码示例发布时间:2022-05-27
下一篇:
Python pdu.ModbusRequest类代码示例发布时间:2022-05-27
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap