首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >用Moka7读取Plc中的数据

用Moka7读取Plc中的数据
EN

Stack Overflow用户
提问于 2017-07-20 12:37:45
回答 1查看 829关注 0票数 0

这些方法需要哪些参数?

代码语言:javascript
复制
 Client.ReadArea(S7.S7AreaDB,1,1,1,byte[]{2});
 S7.GetDIntAt(byte,1);

​​进入每个方法的数目是什么值?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-08-06 10:57:28

代码语言:javascript
复制
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

client.readArea(AreaType.DB,200,34,1,DataType.BYTE,缓冲液);

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/45214986

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档