Modbus protokoll rs485: Difference between revisions

From Chaosdorf Wiki
Line 27: Line 27:
<br>
<br>
/***************************************************************************************/ <br>
/***************************************************************************************/ <br>
Set the address to: 09<br>
Set the address to: 09
01 10 00 00 00 01 02 00 09 66 56           // Current address 01 is changed to 09<br>
 
00 10 00 00 00 01 02 00 09 6B C6           // Broadcast Address Modified to 09<br>
{| class="wikitable"
|-
! Hex Byte  !! Funktion 
|-
| 01 10 00 00 00 01 02 00 09 66 56 || Current address 01 is changed to 09
|-
| 00 10 00 00 00 01 02 00 09 6B C6 || Broadcast Address Modified to 09
|}
<br>
<br>
Read Address<br>
Read Address<br>
Line 62: Line 69:
No. 2 relay off:  01 05 00 02 00 00 6C 0A <br>
No. 2 relay off:  01 05 00 02 00 00 6C 0A <br>
<br>
<br>
/*************************************************************************************** / <br>
/********************************************
01 10 00 00 00 01 02 00 09 66 56            // Current address 01 is changed to 09<br>
00 10 00 00 00 01 02 00 09 6B C6            // Broadcast Address Modified to 09<br>******************************************* / <br>
off:              01 0F 00 00 00 08 01 00 FE 95 <br>
off:              01 0F 00 00 00 08 01 00 FE 95 <br>
all bright:      01 0F 00 00 00 08 01 FF BE D5 <br>
all bright:      01 0F 00 00 00 08 01 FF BE D5 <br>