Gateway
Protocollo di comunicazione
Ricezione (lato PLC Sirius)
Struttura pacchetto
| Indice comando | Sotto---indice | Valore |
|---|---|---|
1 byteuint_8 |
1 byteuint_8 |
4 byteint_32 |
Motorulli in coppia + Posizionamento su ultima configurazione
| Indice | Sotto---indice | Valore |
|---|---|---|
1 |
0 Broadcast1..25 Indice stazione |
0 Coppia off1 Coppia on, poi posizionamento |
Run motorulli
| Indice | Sotto---indice | Valore |
|---|---|---|
2 |
0 Broadcast1..25 Indice stazione |
0 Stop1 Run |
Movimento gruppo
| Indice | Sotto---indice | Valore |
|---|---|---|
3 |
0 n.u.1..10 Indice gruppo |
1..30 Indice configurazione |
Velocità motorulli
| Indice | Sotto---indice | Valore |
|---|---|---|
4 |
0 Broadcast1..25 Indice stazione |
Valore di velocità |
Accelerazione\decelerazione motorulli
| Indice | Sotto---indice | Valore |
|---|---|---|
5 |
0 Broadcast1..25 Indice stazione |
Valore di accelerazione\decelerazione |
Velocità motori rotazione
| Indice | Sotto---indice | Valore |
|---|---|---|
6 |
0 Broadcast1..25 Indice stazione |
Valore di velocità |
Accelerazione\decelerazione motori rotazione
| Indice | Sotto---indice | Valore |
|---|---|---|
7 |
0 Broadcast1..25 Indice stazione |
Valore di accelerazione\decelerazione |
Posizione motori di rotazione
| Indice | Sotto---indice | Valore |
|---|---|---|
8 |
0 Broadcast1..25 Indice stazione |
Posizione |
Reset anomalie
| Indice | Sotto---indice | Valore |
|---|---|---|
9 |
0 Broadcast1..25 Indice stazione |
1 Reset |
Heart beat timer
| Indice | Sotto---indice | Valore |
|---|---|---|
255 |
0 |
0 Disabilitato>0 Abilitato (n = timer in ms) |
Trasmissione (lato PLC Sirius)
Struttura pacchetto
| Risultato | Comando di rif. | Codice Errore |
|---|---|---|
1 byteuint_8 |
1 byteuint_8 |
1 byteuint_8 |
Risposta a comandi
| Risultato | Comando di rif. | Codice Errore |
|---|---|---|
1 ACK255 NACK |
0 Generico1..255 Comando di riferimento |
0 Nessun errore;1 Lunghezza del package ricevuto minore di 6 byte;2 Comando sconosciuto;3 Indice della stazione non valido;4 Stazione indicata non configurata (non ha un cobId assegnato);5 Indice del gruppo non valido;6 Indice della configurazione non valido; |
Status Word (26 Byte)
| Indice comando | SW staz. 1 | SW staz. 2 | ... | SW staz. 24 | SW staz. 25 |
|---|---|---|---|---|---|
1 byte02h |
1 byte | 1 byte | ... | 1 byte | 1 byte |
SW stazione (1 Byte)
| bit 0 | bit 1 | bit 2 | bit 3 | bit 4 | bit 5 | bit 6 | bit 7 |
|---|---|---|---|---|---|---|---|
| Enable | CAN Ok | Fault M1[1] |
Fault M2[2] |
Power M1[1:1] |
Power M2[2:1] |
Run M1[1:2] |
Run M2[2:2] |