Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/.htaccess/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 使用Moka7读取Plc中的数据_Java_Plc - Fatal编程技术网

Java 使用Moka7读取Plc中的数据

Java 使用Moka7读取Plc中的数据,java,plc,Java,Plc,这些方法需要哪些参数 Client.ReadArea(S7.S7AreaDB,1,1,1,byte[]{2}); S7.GetDIntAt(byte,1); 什么价值观​​进入每种方法的编号 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 th

这些方法需要哪些参数

 Client.ReadArea(S7.S7AreaDB,1,1,1,byte[]{2});
 S7.GetDIntAt(byte,1);
什么价值观​​进入每种方法的编号

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
readArea(AreaType.DB,200,34,1,DataType.BYTE,buffer)