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.