恭喜,你发布的帖子
发布于 2018-12-25 12:48:39
3楼
-31662 是INT类型,对应的错误码为 w#6#8452
下面的描述如下
The complete status information does not fit in the tag configured in the STATE parameter.
Note: When the tag configured at STATE is checked for adequate field length, the CountOfElements instruction is called. This counts the fill elements when the data type VARIANT points to an Array of BOOL; with an Array [0...120] of BOOL e.g. 128 is determined as the field length. This has the consequence that the error code W#16#8452 is only returned by DeviceStates when the number of field elements you have set plus the number of fill elements created by the CPU falls below the value 1024 or 128
所以 把你的 数组改为0-127 或者0-1023 试试,
请填写推广理由:
分享
只看
楼主