发布于 2013-10-29 09:09:55
6楼
"operation".X:=PEEK_BOOL(area:=16#81, dbNumber:=0, byteOffset:=0, bitOffset:="operation".X_C);
"operation".Y:=PEEK_BOOL(area:=16#81, dbNumber:=0, byteOffset:=1, bitOffset:="operation".Y_C);
具体的指令说明,自己看软件帮助
我这是读I区第0个字节,指定位:"operation".X_C是要读的位的变量 operation".X_C==0读的就是第0位
但令我不解的是,operation".X_C这变量并不是帮助里说的DINT,而是INT,否则编译出错。
我错了,都是好久前的帖子,不知道楼主问题解决没/
生命就是次单程旅行