回复:DeviceStates

Letham

西门子1847工业学习平台

  • 帖子

    2097
  • 精华

    44
  • 被关注

    364

论坛等级:至圣

注册时间:2006-04-15

钻石 钻石 如何晋级?

发布于 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 试试,

人生就像一场旅行!
评论
编辑推荐: 关闭

请填写推广理由:

本版热门话题

SIMATIC S7-1500系列

共有11074条技术帖

相关推荐

热门标签

相关帖子推荐

guzhang

恭喜,你发布的帖子

评为精华帖!

快扫描右侧二维码晒一晒吧!

再发帖或跟帖交流2条,就能晋升VIP啦!开启更多专属权限!

  • 分享

  • 只看
    楼主

top
X 图片
您收到0封站内信:
×
×
信息提示
很抱歉!您所访问的页面不存在,或网址发生了变化,请稍后再试。