simotion中用到ANYTYPE_TO_BIGBYTEARRAY 什么意思?请高手详解下

已锁定

龙晨旭日

  • 帖子

    348
  • 精华

    2
  • 被关注

    41

论坛等级:侠圣

注册时间:2011-11-01

黄金 黄金 如何晋级?

simotion中用到ANYTYPE_TO_BIGBYTEARRAY 什么意思?请高手详解下

1710

1

2014-03-07 11:14:19

myRetBYTE :=
_BYTE_FROM_8BOOL(
bit0 := sComAxis[6].SW.boGearing
,bit1 := sComAxis[6].SW.boCamming
,bit2 := sComAxis[6].SW.boSpare12
,bit3 := sComAxis[6].SW.boSpare13
,bit4 := sComAxis[6].SW.boSpare14
,bit5 := sComAxis[6].SW.boSpare15
,bit6 := sComAxis[6].SW.boSpare16
,bit7 := sComAxis[6].SW.boManMode
);
ab8BufferSend := ANYTYPE_TO_BIGBYTEARRAY(myRetBYTE , 101);
这个指令大概理解是将一个字节转换后存到一个数组中,但是怎么保存数据的,他的具体字节顺讯有没变化?
这各指令具体是什么意思呢?英文不很熟,翻译过来理解不了啊?
英文解释如下,请大侠帮忙解释下,谢谢。
The functions convert a variable of any data type (elementary data types, standard data types of technology packages and devices, and user-defined data types) to a byte array.

For AnyType_to_BigByteArray:

Big Endian-type byte array (most significant byte at low memory address)
?这句说的是什么意思呢,括号里面翻译过来是什么意思?
For AnyType_to_LittleByteArray:

Little Endian-type byte array (least significant bytes at low memory address)

The array index of the first element to be occupied in the array is an optional constant offset (default = 0). It must fall within the array limits.

When an ST source file is compiled, a check is made to determine whether the offset falls within the array limits and whether the variable can be displayed completely in the byte array (between the offset and the upper array limit).

Only those byte array elements that are covered by variables to be converted are occupied with values. Other elements of the byte array remain unchanged.
simotion中用到ANYTYPE_TO_BIGBYTEARRAY 什么意思?请高手详解下 已锁定
编辑推荐: 关闭

请填写推广理由:

本版热门话题

SIMOTION

共有2232条技术帖

相关推荐

热门标签

相关帖子推荐

guzhang

恭喜,你发布的帖子

评为精华帖!

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

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

  • 分享

  • 只看
    楼主

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