code: def set_setpoint(self, setpointvalue):
          
          _checkSetpointValue( setpointvalue, self.setpoint_max )
          self.write_register( 4097, setpointvalue, 1)
docs: Set the setpoint.
          
          Args:
              setpointvalue (float): Setpoint [most often in degrees]