回复:不同数据类型 占用字节数的 迷惑

ashore07

  • 帖子

    73
  • 精华

    0
  • 被关注

    5

论坛等级:游侠

注册时间:2011-01-06

普通 普通 如何晋级?

发布于 2012-07-30 12:10:54

8楼

quote:以下是引用Automann在2012-07-29 23:50:39的发言:
quote:以下是引用ashore07在2012-07-29 21:47:39的发言:
quote:以下是引用Automann在2012-07-29 19:32:22的发言:
STEP7帮助的附录中有数据类型的详细资料。


我想不明白 ,struct 为啥至少2byte
point 的6byte 是怎么分布的

你看了帮助了吗?





A structure (STRUCT) is a complex data type that can be nested in up to eight levels. The elements of a structure can be of any valid data type (except parameter types). The STRUCT data type must consist of at least two components, which must be located between STRUCT and END_STRUCT. A structure can be declared in the variable declaration table of a logic block or in a user-defined data type (UDT).

Using you can access the individual variables of a structure in the user program. A structure within another structure only counts as a component.
评论
编辑推荐: 关闭

请填写推广理由:

本版热门话题

SIMATIC S7-300/400

共有54660条技术帖

相关推荐

热门标签

相关帖子推荐

guzhang

恭喜,你发布的帖子

评为精华帖!

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

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

  • 分享

  • 只看
    楼主

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