native rM2M_Pack(const data{}, pos, &{Float,Fixed,_}:value, type);
Function to access packed data. If the Bit0 (RM2M_PACK_GET) of the "type" parameter was set, the
function returns the value that is located at the specified position in the array. Otherwise the function
writes the transferred value to the specified position in the array.
Parameter
Explanation
data
Array with the packed content
Set packed: Array to which the value should be written
Get packed: Array from which the value should be read
pos
Byte offset within the array
Set packed: Position to which the value should be written
Get packed: Position from which the value should be read
value
Set packed: Value that should be written in the array
Get packed: Value that should be read from the array
type
Configuration flags for the function
Bit0: Select "Set packed" / "Get packed"
0 = value should be written
1 = value should be read
Bit1: Byte order
0 = "Little endian" format
1 = "Big endian" format
Bit2...3
reserved for extensions
Bit4...7: Data type
1 = 8-bit unsigned
2 = 16-bit unsigned
4 = 32-bit unsigned / 32-bit float
9 = 8-bit signed
10 = 16-bit signed
12 = 32-bit signed
Note:
You can also use the predefined constants for this parameter (see
"Configuration flags for the rM2M_Pack() function" in chapter "Constants" on
page 141). The constants can also be combined using the "or" link.
Explanation
Return value
l
OK, if successful
l
< OK, if an error occurs (see "Return codes for general purposes" in
chapter "Constants" on page 118)
146
Rev. 05
Summary of Contents for myDatalogEASY V3
Page 2: ......
Page 13: ...Chapter 2 Declaration of conformity Chapter 2 Declaration of conformity Rev 05 13 ...
Page 14: ......
Page 42: ......
Page 76: ......
Page 88: ......
Page 102: ......
Page 110: ......
Page 116: ......
Page 234: ......
Page 244: ......
Page 252: ......
Page 254: ......
Page 266: ......
Page 276: ......