en:software:devices:modbus

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
en:software:devices:modbus [2016/12/21 14:50] – [5. Master operation description] qem103en:software:devices:modbus [2016/12/21 15:05] – [5.2. Modo di funzionamento MASTER] qem103
Line 141: Line 141:
 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 //type// = 1, 2, 3 o 4). The OUTPUT section, in the master operation, is the area of data storage that the master should transfer to the slaves. It is used by all writing functions (parameter //type// = 5, 6, 15 o 16). To facilitate the exchange of data between devices, the structure of the Exchange area includes data types commonly used in QCL namely WORD, LONG and FLAG. The “BYTE” type does not appear because the modbus usually uses the word size for each address registers. The modbus protocol selects data based on the number of access log register, while the QCL selects based on the parameter symbol, you create a reference table in which each QCL symbol find the corresponding number in the register of access in Modbus protocol. To obtain greater flexibility for addressing, the same area of Exchange data can be manipulated by the QCL with different dimension parameterized. All the symbols that appear in the same row of the table refer to the same memory locations. 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 //type// = 1, 2, 3 o 4). The OUTPUT section, in the master operation, is the area of data storage that the master should transfer to the slaves. It is used by all writing functions (parameter //type// = 5, 6, 15 o 16). To facilitate the exchange of data between devices, the structure of the Exchange area includes data types commonly used in QCL namely WORD, LONG and FLAG. The “BYTE” type does not appear because the modbus usually uses the word size for each address registers. The modbus protocol selects data based on the number of access log register, while the QCL selects based on the parameter symbol, you create a reference table in which each QCL symbol find the corresponding number in the register of access in Modbus protocol. To obtain greater flexibility for addressing, the same area of Exchange data can be manipulated by the QCL with different dimension parameterized. All the symbols that appear in the same row of the table refer to the same memory locations.
  
-==== - Accesso dei dati input e coil ====+==== - Input and coil Data Access ====
  
-I dati tipo input //coi//l hanno nel protocollo modbus una dimensione a bit. Per la memorizzazione di queste informazioni +The data input or //coil// type have in the modbus Protocol a bit sizeTo store this information in the table of data exchange is defined as follows modeeach register (and then every word parameter of the device) represents 16 elements that are numbered from left to rightFor the Scriptures or multiple readings when bits read are higher than those contained in the register the operation continues in the next register.\\ 
-nella tabella di scambio dati è definita la seguente modalitàogni registro (e quindi ogni parametro word del device) rappresenta +The //st_ibit0//... and //st_obit1//... states are useful in order to facilitate access to information bit, only in the first table log.
-16 elementi che vengono numerati da sinistra verso destraPer le scritture o letture multiple quando i bit da leggere +
-sono superiori a quelli contenuti nel registro l’operazione continua nel registro successivo.\\ +
-Gli stati //st_ibit0//... //st_obit1//... sono utili per agevolare l’accesso alle informazioni di tipo bit solo nel primo registro della +
-tabella.+
  
-==== - Modo di funzionamento MASTER ====+==== - Mode of MASTER operation ====
  
-La modalità master viene impostata con il parametro mode = 0. La scheda genera messaggi modbus solamente su comando +The master mode is set with the mode parameter = 0. The card generates modbus messages only on QCL ordering and does not automaticallyTo "format" the modbus message string there are a number of parameters.\\ 
-del QCL e non automaticamentePer “formattare” la stringa del messaggio modbus vi sono una serie di parametri.\\ +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 executedWe see in detail:
-Mediante i due comandi SEND SENDSYC si inviano la richiesta di lettura o scrittura allo slave, una serie di stati +
-permettono una verifica sull’operazione eseguitaVediamo in dettaglio:+
  
 === - Parametri per formattare il messaggio: === === - Parametri per formattare il messaggio: ===
  • Last modified: 2020/07/13 14:58