def execute(self, slave_id, route_map):
for index, value in enumerate(self.values):<EOL><INDENT>address = self.starting_address + index<EOL>endpoint = route_map.match(slave_id, self.function_code, address)<EOL>try:<EOL><INDENT>endpoint(slave_id=slave_id, address=address, value=value,<EOL>function_code=self.function_code)<EOL><DEDENT>except TypeError:<EOL><INDENT>raise IllegalDataAddressError()<EOL><DEDENT><DEDENT>
Execute the Modbus function registered for a route.

        :param slave_id: Slave id.
        :param eindpoint: Instance of modbus.route.Map.