@value.setter<EOL><INDENT>def value(self, value):<DEDENT>
try:<EOL><INDENT>struct.pack('<STR_LIT:>>' + conf.TYPE_CHAR, value)<EOL><DEDENT>except struct.error:<EOL><INDENT>raise IllegalDataValueError<EOL><DEDENT>self._value = value<EOL>
Value to be written on register.

        :param value: An integer.
        :raises: IllegalDataValueError when value isn't in range.