All checks were successful
Build & Deploy docs / build-deploy (push) Successful in 2m53s
2.5 KiB
2.5 KiB
Waveshare relais
TESTING ETM EXPERIMENTAL
Module de relais Waveshare (modèle 8 canaux RS485), pilotage via Modbus RTU.
1. Matériel requis
- Module Waveshare 8-Channel Relay (RS485)
- Adaptateur USB↔RS485 côté hub
- Alimentation 12 V DC + câble bus (A/B)
2. Raccordement RS485
A↔A, B↔B, masse commune, terminaison 120 Ω en bout de bus. Alimentation 12 V DC sur les bornes VCC/GND du module.
3. Adressage Modbus
Adresse par défaut : 1. Configurable via l'utilitaire Waveshare ou par commande Modbus de changement d'adresse.
Paramètres : 9600 bps, 8N1.
4. Ajout dans PowerSync
Ajout manuel (port série, adresse esclave). Voir Ajouter un appareil.
Référence
Fabricant : Waveshare
Plugin : WaveshareRelayD8
Modèles pris en charge
| Modèle | Rôle | Transport | Ajout | Grandeurs |
|---|---|---|---|---|
| Waveshare Relay D8 | — | Modbus RTU | Découverte automatique | 17 |
Détail par modèle
??? abstract "Waveshare Relay D8 — waveshareRelayD8"
Réglages :
| Clé | Libellé | Type | Plage | Défaut | Lecture seule |
| --- | --- | --- | --- | --- | --- |
| `rtuMaster` | Modbus RTU master UUID | QString | — | — | non |
| `slaveAddress` | Modbus slave address | int | 1–247 | `1` | non |
_Grandeurs mesurées :_
| Clé | Grandeur | Type | Unité |
| --- | --- | --- | --- |
| `connected` | Connected | bool | — |
| `relay1State` | Relay 1 | bool | — |
| `relay2State` | Relay 2 | bool | — |
| `relay3State` | Relay 3 | bool | — |
| `relay4State` | Relay 4 | bool | — |
| `relay5State` | Relay 5 | bool | — |
| `relay6State` | Relay 6 | bool | — |
| `relay7State` | Relay 7 | bool | — |
| `relay8State` | Relay 8 | bool | — |
| `input1State` | Input 1 | bool | — |
| `input2State` | Input 2 | bool | — |
| `input3State` | Input 3 | bool | — |
| `input4State` | Input 4 | bool | — |
| `input5State` | Input 5 | bool | — |
| `input6State` | Input 6 | bool | — |
| `input7State` | Input 7 | bool | — |
| `input8State` | Input 8 | bool | — |