code: def set_pattern_additional_cycles(self, patternnumber, value):
          
          _checkPatternNumber(patternnumber)
          minimalmodbus._checkInt(value, minvalue=0, maxvalue=99, description='number of additional cycles') 
              
          address = _calculateRegisterAddress('cycles', patternnumber)
          self.write_register(address, value, 0)
docs: Set the number of additional cycles for a given pattern.
  
          Args:
              * patternnumber (integer): 0-7
              * value (integer): 0-99