<div dir="ltr"><div><div><div>S Modbus jsem nikdy nepracoval, takze ted asi budu za blbce, ale da se nejak po Modbus prenaset vetsi mnozstvi dat?<br></div>Pokud jsem dobre koukal, tak je mozne v jednom pozadavku prenest 1bit, nebo 16bitove slovo - strana 3 <a href="http://home.zcu.cz/~ronesova/bastl/files/modbus.pdf">http://home.zcu.cz/~ronesova/bastl/files/modbus.pdf</a><br>

<br></div>Ja potrebuju napr. u teplotniho cidla prenest jeho id a teplotu.<br></div>Id ma 8 bajtu:<br><div><div><div>DeviceAddress temp01 = { 0x28, 0x8A, 0xB1, 0x40, 0x04, 0x00, 0x00, 0xC7 }; <br>DeviceAddress temp02 = { 0x28, 0xCC, 0x92, 0x40, 0x04, 0x00, 0x00, 0xB6 };<br>

DeviceAddress temp03 = { 0x28, 0x4D, 0x8D, 0x40, 0x04, 0x00, 0x00, 0x78 };<br>DeviceAddress temp04 = { 0x28, 0x9A, 0x80, 0x40, 0x04, 0x00, 0x00, 0xD5 };<br>DeviceAddress temp05 = { 0x28, 0xE1, 0xC7, 0x40, 0x04, 0x00, 0x00, 0x0D };<br>

</div><div>a teplota bude jeden integer (20.35°C * 100 = 2035).<br></div><div><br></div><div>Da se to po Modbus prenest v jednom pozadavku (9 bajtu - 8 id a 1 hodnota)?<br></div><div>Zatim se mi zda nejlepsi udelat si vlastni protokol.<br>

</div><div><br><br></div></div></div><div class="gmail_extra"><br clear="all"><br>-- <br>S pozdravem<br>Bc. Martin Vancl<br><br>e-mail:  <a href="mailto:tux.martin@gmail.com" target="_blank">tux.martin@gmail.com</a><br>www:    <a href="http://martin.vancl.eu/" target="_blank">http://martin.vancl.eu/</a>
</div></div>