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/20 18:06] – [4.2. Dati scrivibili da QCL e condivisibili in MODBUS] qem103 | en:software:devices:modbus [2016/12/21 15:01] – [5.1. Input e coil Data Access] qem103 | ||
---|---|---|---|
Line 3: | Line 3: | ||
The MODBUS< | The MODBUS< | ||
- | The MODBUS device lets you choose which serial port use for connection. The characteristics | + | The MODBUS device lets you choose which serial port use for connection. The features s of data transmission (number of device, baud rate, parity, stop bits) and the transmission mode must be selected on each station and cannot be changed during the operation.\\ |
With using a serial line, there are two modes of transmission used in the Modbus Protocol. Both ways allow the same communication skills. The mode is selected by the master and must be unique for all devices connected to the network. The modes are: | With using a serial line, there are two modes of transmission used in the Modbus Protocol. Both ways allow the same communication skills. The mode is selected by the master and must be unique for all devices connected to the network. The modes are: | ||
* ASCII (American Standard Code for Information Interchange) | * ASCII (American Standard Code for Information Interchange) | ||
Line 136: | Line 136: | ||
- | ===== - Descrizione funzionamento come master | + | ===== - Master operation description |
- | Il device MODBUS può utilizzare una porta seriale o TCPIP per comunicare in modalità master (parametro //mode// = 0). Esso da la | + | |
- | possibilità (tramite parametri, stati e comandi) a tutti gli strumenti di poter colloquiare con qualsiasi apparecchiatura utilizzante | + | |
- | protocollo Modbus.\\ | + | |
- | Il device rende disponibile una area di scambio dati dove il QCL può scrivere o leggere i valori condivisi con gli slave della | + | |
- | rete. Questa area è rappresentata da una lista di parametri del device suddivisa in due gruppi per differenziare il tipo di | + | |
- | accesso dei dati da parte del device. La prima sezione è identificata come INPUT la seconda come OUTPUT. | + | |
- | La sezione INPUT, per il funzionamento master, è l’area di deposito dei dati letti. Viene utilizzata quindi da tutte le funzioni | + | |
- | di lettura (parametro //type// = 1, 2, 3 o 4). La sezione OUTPUT, nel funzionamento master, è l’area di deposito dei dati | + | |
- | che il master deve trasferire agli slave. Viene utilizzata da tutte le funzioni di scrittura (parametro //type// = 5, 6, 15 o 16). | + | |
- | Per semplificare lo scambio dati tra apparecchiature, | + | |
- | usati in QCL e cioè WORD, LONG e FLAG. Il tipo “BYTE” non compare perché il modbus utilizza solitamente la dimensione | + | |
- | word per ogni indirizzo dei registri. Siccome il protocollo modbus seleziona i dati in base al numero di registro di accesso, | + | |
- | mentre il QCL seleziona in base al simbolo del parametro, si crea una tabella di riferimento in cui ogni simbolo | + | |
- | QCL trova il corrispondente numero del registro di accesso nel protocollo Modbus. Per ottenere una maggior flessibilità di | + | |
- | indirizzamento, | + | |
- | simboli che compaiono nella stessa riga della tabella si riferiscono alle medesime locazioni di memoria. | + | |
- | ==== - Accesso dei dati input e coil ==== | + | The MODBUS device can use a serial port or TCPIP to communicate in master mode (parameter // |
+ | The device provides a data exchange area where the QCL can write or read values shared with the slaves on the network. This area is represented by a list of parameters of the device divided into two groups to differentiate the type of access of the data by the device. The first section is identified as INPUT the second as OUTPUT. The INPUT section, for master operation, is the storage area of reads data. It is used by all reader functions (parameter // | ||
- | I dati tipo input o //coi//l hanno nel protocollo | + | ==== - Input and coil Data Access ==== |
- | nella tabella di scambio dati è definita la seguente modalità: ogni registro | + | |
- | 16 elementi che vengono numerati da sinistra verso destra. Per le scritture o letture | + | The data input or //coil// type have in the modbus |
- | sono superiori a quelli contenuti nel registro l’operazione continua nel registro successivo.\\ | + | The // |
- | Gli stati // | + | |
- | tabella. | + | |
==== - Modo di funzionamento MASTER ==== | ==== - Modo di funzionamento MASTER ==== |