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/23 16:39] – [6. Descrizione funzionamento come slave] qem103en:software:devices:modbus [2016/12/23 16:51] – [6.1.1. Aggiornamento dei parametri tipo owordNN] qem103
Line 420: Line 420:
  
 ===== - Slave operation description ===== ===== - Slave operation description =====
-==== - Modo di funzionamento SLAVE ====+==== - Slave mode operation ====
  
-La modalità slave viene impostata con il parametro mode = 1 mode = 2. Bisogna introdurre nei parametri il codice dell’ID slave tramite il parametro idcard.+Slave mode is set with the mode = 1 or mode = 2 parameterYou must to introduce in the parameters the slave ID code through the idcard parameter.
  
-**Impostazioni modbus e apertura del canale di comunicazione di tipo seriale**+**Modbus settings and opening channel of serial communication**
 <code QCL> <code QCL>
 modbus.mode = 1                             ; modbus slave modbus.mode = 1                             ; modbus slave
Line 440: Line 440:
 ENDIF ENDIF
 </code> </code>
-**Impostazioni modbus e apertura del canale di comunicazione di tipo TCPIP**+**Modbus settings and open of the communication channel of TCPIP type**
 <code QCL> <code QCL>
 modbus.mode = 1                             ; modbus slave modbus.mode = 1                             ; modbus slave
Line 457: Line 457:
 </code> </code>
  
-Le operazioni che spettano all’applicativo QCL sono essenzialmente due+The operations that should execute the QCL are essentially two
-  * aggiornare i parametri tipo owordNN, olongNN (che verranno poi letti dal master) +  * update the parameters owordNN, olongNN type (which will then be read from the master) 
-  * processare i parametri tipo iwordNN, ilongNN (che sono stati scritti dal master) +  * process the parameters iwordNN, ilongNN type (which will then written by the master) 
-=== - Aggiornamento dei parametri tipo owordNN === +=== - Updating owordNN parameters type ===
-Per aggiornare i parametri tipo owordNN il QCL deve scrivere i valori nei parametri quindi inviare il comando VALIDATE. +
-L’utilizzo del comando si rende necessario per rendere disponibili alle letture del master i nuovi dati nello stesso istante, +
-evitando così che possano venire letti solamente parte dei parametri aggiornati. Quindi l’assegnazione di un valore ad un +
-parametro device NON SIGNIFICA che esso sia immediatamente disponibile per le letture del master. Sarà disponibile +
-solamente dopo il comando VALIDATE.+
  
-**Esempio**+To update the owordNN parameters type the QCL must write values in the parameters then send the VALIDATE command. The use of the command is necessary to make available on the readings of the master the new data at the same time, so that they can be read only part of updated parameters. So assigning a value to a device parameter DOES NOT MEAN that it is immediately available for the master readings. Will only be available after the VALIDATE command. 
 + 
 +**Example**
 <code QCL> <code QCL>
 modbus.olong1 = anpos.speed modbus.olong1 = anpos.speed
  • Last modified: 2020/07/13 14:58