
Chapter 13 Device Logic (Pawn)
native rM2M_RegGetString(reg, const name[], string[], len=sizeof string);
Reads a character string from a registration memory block. Detailed information on the registration
memory blocks is provided in chapter "Registration memory blocks" on page 36.
Parameter
Explanation
reg
Index of the registration memory block (see "Indices of the registration memory
blocks" in chapter "Constants" on page 155)
name
Name of the entry
string
Array to store the string to be read
len
Size (in cells) of the transferred array to store the string to be read - OPTIONAL
Explanation
Return value
l
OK, if successful
l
ERROR, if an unspecified errors occurs
l
RM2M_REG_ERROR_NOTFOUND, if the specified entry does not exist
l
RM2M_REG_ERROR_ISNULL if the value of the specified entry is set to
"null"
l
< OK, if another error occurs (see "Error codes for the registration memory
block access operations" in chapter "Constants" on page 155)
native rM2M_RegGetValue(reg, const name[], &{Float,Fixed,_}:value, tag=tagof value);
reads a value from a registration memory block. Detailed information on the registration memory blocks
is provided in chapter "Registration memory blocks" on page 36.
Parameter
Explanation
reg
Index of the registration memory block (see "Indices of the registration memory
blocks" in chapter "Constants" on page 155)
name
Name of the entry
value
Variable to store the value to be read
tag
The integer and floating-point conversion are differentiated by the "tag" of the
variables. - OPTIONAL
Explanation
Return value
l
OK, if successful
l
ERROR, if an unspecified errors occurs
l
RM2M_REG_ERROR_NOTFOUND, if the specified entry does not exist
l
RM2M_REG_ERROR_ISNULL if the value of the specified entry is set to
"null"
l
< OK, if another error occurs (see "Error codes for the registration memory
block access operations" in chapter "Constants" on page 155)
Rev. 05
157
Содержание myDatalogEASY V3
Страница 2: ......
Страница 13: ...Chapter 2 Declaration of conformity Chapter 2 Declaration of conformity Rev 05 13 ...
Страница 14: ......
Страница 42: ......
Страница 76: ......
Страница 88: ......
Страница 102: ......
Страница 110: ......
Страница 116: ......
Страница 234: ......
Страница 244: ......
Страница 252: ......
Страница 254: ......
Страница 266: ......
Страница 276: ......