Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision Next revisionBoth sides next revision | ||
en:software:devices:modbus [2016/12/20 17:34] – created qem103 | en:software:devices:modbus [2016/12/20 18:06] – [4.2. Dati scrivibili da QCL e condivisibili in MODBUS] qem103 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== DEVICE MODBUS ====== | ====== DEVICE MODBUS ====== | ||
- | ===== - Introduzione | + | ===== - Introduction |
- | Il protocollo | + | The MODBUS< |
- | integrare | + | The MODBUS |
- | Master/ | + | With using a serial line, there are two modes of transmission used in the Modbus |
- | da tutti gli altri dispositivi connessi.\\ | + | |
- | Il device | + | |
- | Le caratteristiche della trasmissione dati (nr. dispositivo fisico, baud rate, parità, stop bits) e del modo di trasmissione devono | + | |
- | essere selezionate su ogni stazione e non possono essere modificate durante il funzionamento.\\ | + | |
- | Con l' | + | |
- | comunicazione. Il modo è selezionato dal master | + | |
* ASCII (American Standard Code for Information Interchange) | * ASCII (American Standard Code for Information Interchange) | ||
* RTU, (Remote Terminal Unit.) | * RTU, (Remote Terminal Unit.) | ||
- | Il presente manuale si suddivide in due parti:\\ | + | This manual is divided into two parts:\\ |
- | Parte I - Descrizione funzionamento come master\\ | + | Part I - Operation as master\\ |
- | Parte II - Descrizione funzionamento come slave. | + | Part II - Operation as slave. |
- | ===== - Convenzioni | + | ===== - Conventions |
- | Il protocollo di comunicazione | + | The modbus |
- | * INPUT STATUS = Ingressi digitali (Digital Inputs) | + | * INPUT STATUS = Digital Inputs |
- | * COIL STATUS = Uscite digitali (Digital | + | * COIL STATUS = UDigital |
- | * INPUT REGISTER = Ingressi analogici (Analog Inputs) | + | * INPUT REGISTER = Analog Inputs |
- | * HOLDING REGISTER. = Uscite analogiche (Analog Outputs). | + | * HOLDING REGISTER. = Analog Outputs |
- | Nel corso del manuale si deve tener conto delle convenzioni presenti. | + | Throughout the manual you have to take into account existing conventions. |
- | ===== - Dichiarazione device nella unit di configurazione | + | ===== - Device declaration in the configuration |
+ | |||
+ | Declaration of the used device (internal device): device name assigned, MODBUS, slot location and number of the device. | ||
- | Dichiarazione del device utilizzato (device interno): nome del device assegnato, MODBUS, posizione dello slot e numero | ||
- | del device. | ||
<code QCL> | <code QCL> | ||
INTDEVICE | INTDEVICE | ||
... | ... | ||
- | <nome_device> MODBUS | + | <device_name> MODBUS |
... | ... | ||
</ | </ | ||
- | Dove: | + | Where: |
- | |INTDEVICE|è la parola chiave che indica l’inizio della definizione di devices | + | |INTDEVICE|is a keyword indicating the beginning of the definition of internal |
- | |<nome_device>|è il nome del device,| | + | |<device_name>|is the device |
- | |MODBUS|è la parola chiave che identifica il device | + | |MODBUS|is the keyword that identifies the device |
- | |TCamp|è tempo di campionamento del device,| | + | |TCamp|is the sampling time of the device,| |
- | |channel|è la definizione del tipo di canale di comunicazione collegato | + | |channel|is the definition of the type of communications channel connected |
- | Per quanto riguarda la dichiarazione dell’hardware | + | To declare the hardware |
- | riferimento al manuale | + | |
- | **Esempio** | + | **Example** |
<code QCL> | <code QCL> | ||
INTDEVICE | INTDEVICE | ||
Line 58: | Line 51: | ||
</ | </ | ||
- | ===== - Tabelle “scambio dati” per il MODBUS ===== | + | ===== - Tables "data exchange" |
- | ==== - Dati letti dal device ==== | + | ==== - Data read from the device ==== |
- | |::: | + | |::: |
- | |::: | + | |::: |
- | ^Registro\\ Modbus| ||||||||||||||||| | + | ^Modbus\\ register| ||||||||||||||||| |
|0001| |||||||iword1| |||||||2< | |0001| |||||||iword1| |||||||2< | ||
|0002| |||||||iword2| |||||||2< | |0002| |||||||iword2| |||||||2< | ||
Line 98: | Line 91: | ||
|0032| |||||||iword32| |||||||2< | |0032| |||||||iword32| |||||||2< | ||
- | NOTA 1: la “ iword1 ” è la word più significativa della “ ilong1 ” (long = doppia | + | NOTE 1: the “ iword1 ” is the most significant |
- | della “ ilong2 ”, ...\\ | + | NOTE 2: the “ st_ibit0 ” parameter less significant |
- | NOTA 2: il parametro | + | |
- | significativo | + | |
- | ==== - Dati scrivibili da QCL e condivisibili | + | ==== - Writable data from QCL and sharable |
- | |::: | + | |::: |
- | |::: | + | |::: |
- | ^Registro\\ Modbus| ||||||||||||||||| | + | ^Modbus\\ register| ||||||||||||||||| |
|0001| |||||||oword1| |||||||2< | |0001| |||||||oword1| |||||||2< | ||
|0002| |||||||oword2| |||||||2< | |0002| |||||||oword2| |||||||2< | ||
Line 141: | Line 132: | ||
|0032| |||||||oword32| |||||||2< | |0032| |||||||oword32| |||||||2< | ||
- | NOTA 1: la “ oword1 ” è la word più significativa della “ olong1 ” (long = doppia | + | NOTE 1: the “ oword1 ” is the most significant |
- | della “ olong2 ”, ...\\ | + | NOTE 2: the “ st_obit0 ” parameter is the less significant |
- | NOTA 2: il parametro | + | |
- | più significativo | + | |