title: What is the pymodbus syntax to assign values to TCP server registers?
body: <p>I am trying to implement a simple synchronous TCP server using the <a href="https://pymodbus.readthedocs.io/en/latest/source/example/synchronous_server.html" rel="nofollow noreferrer">Synchronous Server Example</a>. However, I do not understand the syntax explanations in the documentation. The example includes the following code block:</p>
  
  <pre><code>store = ModbusSlaveContext(
       di=ModbusSequentialDataBlock(0, [17]*100),
       co=ModbusSequentialDataBlock(0, [17]*100),
       hr=ModbusSequentialDataBlock(0, [17]*100),
       ir=ModbusSequentialDataBlock(0, [17]*100))
  
  context = ModbusServerContext(slaves=store, single=True)
  </code></pre>
  
  <p>Suppose I want to store a value of <code>152</code> to <code>Input Register (ir)</code> address <code>30001</code> and a value of <code>276</code> to address <code>30002</code>?  How should I adapt the above code?</p>