Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
en:software:devices:modbus [2016/12/21 15:05] – [5.2. Modo di funzionamento MASTER] qem103 | en:software:devices:modbus [2016/12/21 16:56] – [5.2.3. Variabili di Stato per diagnostica operazione:] qem103 | ||
---|---|---|---|
Line 151: | Line 151: | ||
Using the two commands SEND or SENDSYC you send the read or write request to the slave, a number of States allow an audit on the operation being executed. We see in detail: | Using the two commands SEND or SENDSYC you send the read or write request to the slave, a number of States allow an audit on the operation being executed. We see in detail: | ||
- | === - Parametri per formattare il messaggio: === | + | === - Parameters for formatting the message: === |
- | **type** = tipo di richiesta che si vuole processare (lettura o scrittura di word o di bit).\\ | + | |
- | **idcard** = indirizzo dell’unità slave verso cui si vuole inviare la richiesta.\\ | + | |
- | **addr** = indice da cui iniziare a leggere o da cui iniziare a scrivere nello slave in questione.\\ | + | |
- | **tabreg** = per le operazioni di lettura (type = 1, 2, 3, 4), questo parametro indica la posizione nella “tabella dei dati letti” dove verrà memorizzato il dato letto sullo slave. Per le operazioni di scrittura (type = 5, 6, 15, 16), questo parametro indica da posizione nella “tabella dei dati da scrivere” dove si trova il dato da scrivere sullo slave. Sono previsti valori tra 1 e 512 per valori del parametro type = 1, 2, 5, 15 (scrittura e lettura di bit), mentre per valori type = 3, 4, 6, 16 (scrittura e lettura di word) i valori previsti sono tra 1 e 32.\\ | + | |
- | **num** = numero di valori che si intendono leggere o scrivere (se il tipo richiesta type lo prevede). Sono previsti valori tra 1 e 128 per valori del parametro type = 1, 2, (lettura di bit), mentre per valori type = 3, 4, 16 (scrittura multipla e lettura di word) i valori previsti sono tra 1 e 32. | + | |
- | === - Comandi per inviare il messaggio: | + | **type** |
- | SEND invia il messaggio di richiesta allo slave.\\ | + | **idcard** |
- | SENDSYC invia il messaggio di richiesta ad uno slave QEM di tipo MODBUS e segnala l’operazione conclusa | + | **addr** |
+ | **tabreg** | ||
+ | **num** = number of values that are read or write (if the request type so provides). Are accepted values are between 1 and 128 for values of type parameter = 1, 2, (reading of bits), while for type value = 3, 4, 16 (multiple word reading and writing) the accepted value are between 1 and 32. | ||
- | === - Variabili di Stato per diagnostica operazione: === | + | === - Commands to send the message: === |
- | Quando l’operazione di trasmissione messaggio è conclusa, viene impostata | + | |
- | stato utilizzato il comando | + | SEND sends the request message to the slave.\\ |
- | invece è stato utilizzato nel master il comando | + | SENDSYC sends the request message to a QEM slave of MODBUS type and reports the operation concluded (//st_sended//) only when the slave executes the RECEIVED command. |
- | avrà eseguito il comando | + | |
- | // | + | === - State variables for diagnostic operation: === |
- | Il comando | + | |
+ | When ended the message send operation, the status st_sended variable is set to 1. If you used the SEND command the state is set to 1 when the master | ||
+ | The SENDSYC | ||
==== - Richieste di lettura ==== | ==== - Richieste di lettura ==== |