Editing Modbus protokoll rs485

From Chaosdorf Wiki
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 79: Line 79:
|-
|-
|}
|}
<br>
 


=== Modbus Rtu 2 ===
=== Modbus Rtu 2 ===
Line 128: Line 128:




all Funktion
Switch all


{| class="wikitable"
{| class="wikitable"
Line 135: Line 135:
| Adresse  || Funktion  || Reghigh || Reglow || Data 1 || Data 2 || Data 3 || Data 4 || CRChigh || CRClow || Funktion   
| Adresse  || Funktion  || Reghigh || Reglow || Data 1 || Data 2 || Data 3 || Data 4 || CRChigh || CRClow || Funktion   
|-
|-
| 01      || 0F        ||  00  ||    00  ||    00  ||  08  ||    01  ||  00  ||  FE    || 95    || Full Relay off
| 01      || 0F        ||  00  ||    00  ||    00  ||  08  ||    01  ||  00  ||  FE    || 95    || Full off
|-
|-
| 01      || 0F        ||  00  ||    00  ||    00  ||  08  ||    01  ||  FF  ||  BE    || D5    || Full Relay on
| 01      || 0F        ||  00  ||    00  ||    00  ||  08  ||    01  ||  FF  ||  BE    || D5    || Full on
|-
|-
|          ||          ||        ||        ||        ||        ||        ||        ||        ||        ||  
|          ||          ||        ||        ||        ||        ||        ||        ||        ||        ||  
Line 169: Line 169:




[address 1]<br>


[address 1 bzw. UID 0x01]<br>
{| class="wikitable"
|-
! Hex Byte  !! Funktion 
|-
| 01 05 00 01 01 00 9d 9a || No. 1 relay ON
|-
| 01 05 00 01 00 00 9c 0a || No. 1 relay off
|-
|    ||
|-
| 01 05 00 02 01 00 6d 9a || No. 2 relay ON
|-
| 01 05 00 02 00 00 6c 0a || No. 2 relay off
|-
|    ||
|-
| 01 05 00 03 01 00 3c 5a || No. 3 relay ON
|-
| 01 05 00 03 00 00 3d ca || No. 3 relay off
|-
|    ||
|-
| 01 05 00 04 01 00 8d 9b || No. 4 relay ON
|-
| 01 05 00 04 00 00 8c 0b || No. 4 relay off
|-
|    ||
|-
| 01 05 00 ff 00 00 fd fa || Quanmie
|-
| 01 05 00 ff ff ff fc 4a || All light
|}


Switch Single
[address 2]<br>


{| class="wikitable"
{| class="wikitable"
! colspan="8"| Hex Data !! colspan="1"| Funktion
|-
|-
| Adresse || Funktion  || Reghigh || Reglow || Data 1 || Data 2 || CRChigh || CRClow || Funktion 
! Hex Byte !! Funktion   
|-
| 02 05 00 01 01 00 9d a9 || No. 1 relay ON
|-No. 1 relay 1 channel status
| 02 05 00 01 00 00 9c 39 || No. 1 relay off
|-
|   ||
|-
| 02 05 00 02 01 00 6d a9 || No. 2 relay ON
|-
| 02 05 00 02 00 00 6c 39 || No. 2 relay off
|-
|-
| 01      || 05        ||  00  ||    00  ||    FF  ||  00    ||    8C  ||  3A  || 0 relay ON
|    ||  
|-
|-
| 01      || 05       ||  00   ||    00  ||    00   ||  00    ||    CD  ||  CA  || 0 relay off 
| 02 05 00 03 01 00 3c 69 || No. 3 relay ON
|-
|-
| 01      || 05       ||  00   ||    01  ||    FF  ||  00     ||    DD  ||  FA  || 1 relay ON
| 02 05 00 03 00 00 3d f9 || No. 3 relay off
|-
|-
| 01      || 05        ||  00  ||    01  ||    00  ||  00    ||    9C  ||  0A  || 1 relay off
|    ||  
|-
|-
| 01      || 05       ||  00   ||    02  ||    FF  ||  00     ||    xx ||  xx  || 2 relay ON  
| 02 05 00 04 01 00 8d a8 || No. 4 relay ON
|-
|-
| 01      || 05       ||  00   ||    02  ||    00   ||  00     ||    xx  ||  xx  || 2 relay off
| 02 05 00 04 00 00 8c 38 || No. 4 relay off
|-
|-
| 01      || 05        ||  00  ||    03  ||    FF  ||  00    ||    xx  ||  xx  || 3 relay ON
|    ||  
|-
|-
| 01      || 05       ||  00   ||    03  ||    00   ||  00     ||    xx  ||  xx || 3 relay off
| 02 05 00 ff 00 00 fd c9 || Quanmie
|-
|-
 
| 02 05 00 ff ff ff fc 79 || All light
 
 
 
 
|}
|}
 
<br>
 
[address 1]<br>
all Funktion
 
{| class="wikitable"
{| class="wikitable"
! colspan="8"| Hex Data !! colspan="1"| Funktion  
|-<gallery>
<small>Small text</small
! Hex Byte  !! Funktion
|-
|-
| Adresse  || Funktion  || Reghigh || Reglow || Data 1 || Data 2 || Data 3 || Data 4 || CRChigh || CRClow || Funktion 
| 01 01 00 01 00 04 6c 09 || Send : No. 1 relay 1 channel status
|-
|-
| 01      || 0F        ||  00  ||    00  ||    00  ||  08  ||    01  ||  00  ||  FE    || 95    || Full Relay off
| || Return ......
|-
|-
| 01       || 0F        ||  00   ||    00   ||    00  ||  08  ||    01  ||  FF  ||  BE    || D5    || Full Relay on
| 01 01 00 02 00 04 9c 09 || Send : No. 1 Relay 2 channel status
|-
|-
|         ||          ||        ||        ||        ||        ||        ||        ||        ||        ||  
| || Return ......
|-
|-
| 01     || 02        ||  00   ||  00    ||  00   ||  08    ||        ||        ||  79    || CC    || Send : Read all input switch status  
| 01 01 00 03 00 04 CD C9 || Send : No. 1 Relay 3 channel status
|-
|-
| 01      || 02        ||  01    ||  00    ||        ||        ||        ||        ||  A1    || 88    || Return : 8 input states
| || Return ......
|-
|-
| 01 01 00 04 00 04 7C 08 || Send : No. 1 Relay 4 channel status
|}
|}


<br>
<br>


[https://hacktronics.co.in/4-channel-relay-module/4-channel-relay-module-programmable-w-opto-isolated-rs485-stm8s103f3 hacktronics.co.in/4-channel-relay-module]
[https://hacktronics.co.in/4-channel-relay-module/4-channel-relay-module-programmable-w-opto-isolated-rs485-stm8s103f3 hacktronics.co.in/4-channel-relay-module]
Please note that all contributions to Chaosdorf Wiki are considered to be released under the Attribution 3.0 Unported (see Chaosdorf Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)