code: def write_long(self, registeraddress, value, signed=False):
          
          MAX_VALUE_LONG =  4294967295  # Unsigned INT32
          MIN_VALUE_LONG = -2147483648  # INT32
  
          _checkInt(value, minvalue=MIN_VALUE_LONG, maxvalue=MAX_VALUE_LONG, description='input value')
          _checkBool(signed, description='signed')
          self._genericCommand(16, registeraddress, value, numberOfRegisters=2, signed=signed, payloadformat='long')
docs: Write a long integer (32 bits) to the slave.
  
          Long integers (32 bits = 4 bytes) are stored in two consecutive 16-bit registers in the slave.
  
          Uses Modbus function code 16.
  
          For discussion on number of bits, number of registers, the range
          and on alternative names, see :meth:`.read_long`.
  
          Args:
              * registeraddress (int): The slave register start address  (use decimal numbers, not hex).
              * value (int or long): The value to store in the slave.
              * signed (bool): Whether the data should be interpreted as unsigned or signed.
  
          Returns:
              None
  
          Raises:
              ValueError, TypeError, IOError