代码之家  ›  专栏  ›  技术社区  ›  Mario Moure

使用Moka7读取Plc中的数据

  •  0
  • Mario Moure  · 技术社区  · 7 年前

     Client.ReadArea(S7.S7AreaDB,1,1,1,byte[]{2});
     S7.GetDIntAt(byte,1);
    

    每种方法的数值是多少?

    1 回复  |  直到 7 年前
        1
  •  0
  •   Alireza    7 年前
    AreaType area: one of area type like DB (data block), MK (Merker) and ...
    
    int db: `IF` area type is DB, it will the show db number
    
    int start: show the position of start of bits
    
    int amount: number of bits
    
    DataType type: type of Data like BIT, BYTE, WORD, REAL and ....
    
    byte[] buffer: result will be copy to this array