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 10:06] – [6.1.1. Impostazioni modbus e apertura del canale di comunicazione di tipo seriale] qem207 | software:devices:modbus [2015/09/16 10:09] – [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 | + | |
modbus.OPENCOM | modbus.OPENCOM | ||
+ | tm_opencom = 200 ; timeout for OPENCOM command | ||
WAIT modbus.st_opencom OR tm_opencom | WAIT modbus.st_opencom OR tm_opencom | ||
IF NOT modbus.st_opencom | IF NOT modbus.st_opencom | ||
Linea 282: | Linea 283: | ||
modbus.mode = 0 ; modbus master | modbus.mode = 0 ; modbus master | ||
modbus.prot = 2 ; TCPIP | modbus.prot = 2 ; TCPIP | ||
+ | modbus.tout = 100 ; timeout | ||
tcpip_port= 502 ; number of tcpip port (default 502) | tcpip_port= 502 ; number of tcpip port (default 502) | ||
- | modbus.brate = & | ||
modbus.stopb = tcpip_port / & | modbus.stopb = tcpip_port / & | ||
modbus.par | modbus.par | ||
- | modbus.tout = 100 ; timeout | ||
- | tm_opencom = 500 ; waiting time to have a correct response | ||
modbus.OPENCOM | modbus.OPENCOM | ||
+ | tm_opencom = 500 ; waiting time to have a correct response | ||
WAIT tm_opencom | WAIT tm_opencom | ||
IF NOT modbus.st_opencom | IF NOT modbus.st_opencom |