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 Both sides next revision
sdk:dio2modbustcp [2015/05/12 09:58]
fachet
sdk:dio2modbustcp [2015/05/13 07:25]
fachet
Line 3: Line 3:
 /* DESC: This script can be used to access to the digital I/Os via Modbus TCP /* DESC: This script can be used to access to the digital I/Os via Modbus TCP
  * Copyright (C) 2015 NetModule AG, Switzerland  * Copyright (C) 2015 NetModule AG, Switzerland
- ​* ​supports ​Read Coil Status (FC01)Read Input Status (FC02) ​and Force Single Coil (FC05)+ * 
 + ​* ​  ​Commands: ​   
 + ​* ​    Read Coil Status (FC01) 
 + ​* ​    Read Input Status (FC02) 
 + ​* ​    Read Input Register (FC04) 
 + ​* ​    Force Single Coil (FC05) 
 + ​* ​    Write Multiple Coils (FC15) 
 + ​* ​       ​
  ​* ​  ​Mapping: ​  ​* ​  ​Mapping: ​
  ​* ​    Coil status(digital I/O): 1=out1, 2=out2  ​* ​    Coil status(digital I/O): 1=out1, 2=out2
  ​* ​    Input satus(digital In): 1=in1, 2=in2  ​  ​* ​    Input satus(digital In): 1=in1, 2=in2  ​
  ​* ​    Input register : 1=temperature 2=mobile 1 rsrp  ​* ​    Input register : 1=temperature 2=mobile 1 rsrp
 + *
  */  */
  
Line 98: Line 106:
     case 5: // write to a single coil     case 5: // write to a single coil
     case 4: // read input register     case 4: // read input register
-    case 15: // write to multiple ​coil+    case 15: // write to multiple ​coils
       syst = nb_status("​system"​);​       syst = nb_status("​system"​);​
       wwan = nb_status("​wwan"​);​       wwan = nb_status("​wwan"​);​