How to use the pymodbus.pdu.ModbusResponse.__init__ function in pymodbus

To help you get started, we’ve selected a few pymodbus examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github D3f0 / txscada / src / brainstorming / tornado / modbus / pymodbus / register_write_message.py View on Github external
def __init__(self, address=None, count=None):
        ''' Initializes a new instance

        :param address: The address to start writing to
        :param count: The number of registers to write to
        '''
        ModbusResponse.__init__(self)
        self.address = address
        self.count = count
github D3f0 / txscada / src / brainstorming / tornado / modbus / pymodbus / register_read_message.py View on Github external
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 []
github D3f0 / txscada / src / brainstorming / tornado / modbus / pymodbus / bit_write_message.py View on Github external
def __init__(self, address=None, value=None):
        ''' Initializes a new instance

        :param address: The variable address written to
        :param value: The value written at address
        '''
        ModbusResponse.__init__(self)
        self.address = address
        self.value = value
github D3f0 / txscada / src / brainstorming / tornado / modbus / pymodbus / bit_write_message.py View on Github external
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
github D3f0 / txscada / src / brainstorming / tornado / modbus / pymodbus / register_read_message.py View on Github external
def __init__(self, values=None):
        ''' Initializes a new instance

        :param values: The register values to write
        '''
        ModbusResponse.__init__(self)
        self.registers = values if values != None else []
github riptideio / pymodbus / pymodbus / mei_message.py View on Github external
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 = 0
        self.conformity = 0x83  # I support everything right now
        self.next_object_id = 0x00
        self.more_follows = MoreData.Nothing
        self.space_left = None
github D3f0 / txscada / src / brainstorming / tornado / modbus / pymodbus / bit_read_message.py View on Github external
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
github D3f0 / txscada / src / brainstorming / tornado / modbus / pymodbus / diag_message.py View on Github external
def __init__(self):
        '''
        Base initializer for a diagnostic response
        '''
        ModbusResponse.__init__(self)
github riptideio / pymodbus / pymodbus / other_message.py View on Github external
def __init__(self, **kwargs):
        ''' Initializes a new instance

        :param status: The status response to report
        :param message_count: The current message count
        :param event_count: The current event count
        :param events: The collection of events to send
        '''
        ModbusResponse.__init__(self, **kwargs)
        self.status = kwargs.get('status', True)
        self.message_count = kwargs.get('message_count', 0)
        self.event_count = kwargs.get('event_count', 0)
        self.events = kwargs.get('events', [])
github D3f0 / txscada / src / brainstorming / tornado / modbus / pymodbus / register_write_message.py View on Github external
def __init__(self, address=None, value=None):
        ''' Initializes a new instance

        :param address: The address to start writing add
        :param value: The values to write
        '''
        self.address = address
        self.value = value
        ModbusResponse.__init__(self)