Differenze
Queste sono le differenze tra la revisione selezionata e la versione attuale della pagina.
Entrambe le parti precedenti la revisione Revisione precedente Prossima revisione | Revisione precedente Prossima revisioneEntrambe le parti successive la revisione | ||
software:devices:modbus [2015/09/16 09:57] – [6.1.1. Ciao] qem207 | software:devices:modbus [2015/09/16 10:07] – [5.5. Esempi] qem207 | ||
---|---|---|---|
Linea 270: | Linea 270: | ||
modbus.par = 0 ; parity | modbus.par = 0 ; parity | ||
modbus.tout = 100 ; timeout | modbus.tout = 100 ; timeout | ||
- | tm_opencom = 2000 ; timeout for OPENCOM command | + | tm_opencom = 200 |
modbus.OPENCOM | modbus.OPENCOM | ||
WAIT modbus.st_opencom OR tm_opencom | WAIT modbus.st_opencom OR tm_opencom | ||
Linea 489: | Linea 489: | ||
=== - Impostazioni modbus e apertura del canale di comunicazione di tipo seriale === | === - Impostazioni modbus e apertura del canale di comunicazione di tipo seriale === | ||
<code QCL> | <code QCL> | ||
+ | modbus.mode = 1 ; modbus slave | ||
+ | modbus.prot = 1 ; RTU | ||
+ | modbus.brate = 57600 ; baudrate | ||
+ | modbus.stopb = 1 ; stop bits | ||
+ | modbus.par = 0 ; parity | ||
+ | modbus.idcard = 1 ; slave id | ||
+ | modbus.OPENCOM | ||
+ | tm_opencom = 100 ; timeout for OPENCOM command | ||
+ | WAIT modbus.st_opencom OR tm_opencom | ||
+ | IF NOT modbus.st_opencom | ||
+ | OpenComError = 1 ; com not opened | ||
+ | ENDIF | ||
</ | </ | ||
=== - Aggiornamento dei parametri tipo owordNN === | === - Aggiornamento dei parametri tipo owordNN === |