Line 25: | Line 25: | ||
1. Software settings communication baud rate<br> | 1. Software settings communication baud rate<br> | ||
2. Set the address (communication using the device address, the default address is 01)<br> | 2. Set the address (communication using the device address, the default address is 01)<br> | ||
<br> | |||
Set the address to: 09 | Set the address to: 09 | ||
Line 37: | Line 37: | ||
|} | |} | ||
<br> | <br> | ||
Read Address<br> | Read Address<br> | ||
{| class="wikitable" | |||
|- | |||
! Hex Byte !! Funktion | |||
|- | |||
| 00 03 00 00 00 01 85 db || Send to Device | |||
|- | |||
| 00 03 02 00 01 44 44 || Receive from Device '''01 for Address''' | |||
|} | |||
Meaning of each byte:<br> | Meaning of each byte:<br> | ||
<br> | <br> | ||
Byte 1: address <br> | Byte 1: address <br> | ||
Line 56: | Line 59: | ||
<br> | <br> | ||
[address 1]<br> | |||
{| class="wikitable" | |||
|- | |||
! Hex Byte !! Funktion | |||
|- | |||
| 01 05 00 00 FF 00 8C 3A || 0 relay ON | |||
|- | |||
| 01 05 00 00 00 00 CD CA || 0 relay off | |||
|- | |||
| || | |||
|- | |||
| 01 05 00 01 FF 00 DD FA || No. 1 relay ON | |||
|- | |||
| 01 05 00 01 00 00 9C 0A || No. 1 relay off | |||
|- | |||
| || | |||
|- | |||
| 01 05 00 02 FF 00 2D FA || No. 2 relay ON | |||
|- | |||
| 01 05 00 02 00 00 6C 0A || No. 2 relay off | |||
|- | |||
| || | |||
|- | |||
| 01 0F 00 00 00 08 01 00 FE 95 || Full off | |||
|- | |||
| 01 0F 00 00 00 08 01 FF BE D5 || all bright | |||
|- | |||
| || | |||
|- | |||
| 01 01 00 00 00 08 3D CC || Send : Read all relay states | |||
|- | |||
| 01 01 01 00 51 88 || Return : Relay fully closed | |||
|- | |||
| 01 01 01 03 11 89 || Return : All relays are on | |||
|- | |||
| || | |||
|- | |||
| 01 02 00 00 00 08 79 CC || Send : Read all input switch status | |||
|- | |||
| 01 02 01 00 A1 88 || Return : 8 input states | |||
|- | |||
|} | |||
=== Modbus Rtu 4 === | === Modbus Rtu 4 === |