Reserved Identifiers
158
NetLinx Programming Language Reference Guide
Keywords & Run-Time Library Functions (Cont.)
UNCOMBINE_LEVELS
This keyword reverses the effect of
COMBINE_LEVELS
. All combines related to
the specified virtual device-level are disabled.
SLONG UNCOMBINE_LEVELS VDL
Parameters:
VDL
: The virtual device-channel passed to
COMBINE_LEVELS
.
Result:
0: Operation was successful
-1: Invalid virtual device-level
Result = COMBINE_LEVELS VDL, DLSetResult =
UNCOMBINE_LEVELS VDL
UPPER_STRING
This function changes all alphabetic characters in the specified string to upper
case. The syntax:
CHAR[ ]UPPER_STRING (CHAR STRING[ ]) WIDECHAR[ ]
UPPER_STRING (WIDECHAR STRING[ ])
Parameters:
STRING
: The character string to convert to upper case.
Result:
The converted character string.
UCString = UPPER_STRING(STRING)
VARIABLE_TO_STRING
(VARIABLE ENCODE)
This routine takes the variable
ENCODE
and creates entries in the buffer to rep-
resent that variable. The variable passed in can be of any type including
arrays, structures, and arrays of structures.
SINTEGER VARIABLE_TO_STRING(ENCODE, CHAR BUFFER[ ], LONG
POSITION)
Parameters:
•
ENCODE
: Any type of variable. This is the variable to be encoded.
•
BUFFER
: This is where the encode data is placed.
•
POSITION
: This is where the first byte of the encoding is placed. Is it also
modified to point to the next location after the last encoded byte. That means
that successive calls to this function can be made without modifying position.
Position should be set to one on the first call.
Result:
0: Encoded OK
-1: Encoded variable unrecognized type
-2: Encoded data would not fit into buffer; the buffer is too small.
Result = VARIABLE_TO_STRING (MyStruct, Buffer, Pos)
Содержание NETLINX PROGRAMMING LANGUAGE
Страница 15: ...Table of Contents xiii NetLinx Programming Language Reference Guide...
Страница 16: ...xiv NetLinx Programming Language Reference Guide Table of Contents...
Страница 18: ...Introduction 2 NetLinx Programming Language Reference Guide...
Страница 76: ...Language Elements 60 NetLinx Programming Language Reference Guide...
Страница 106: ...Combining Devices Levels and Channels 90 NetLinx Programming Language Reference Guide...
Страница 112: ...Master To Master M2M 96 NetLinx Programming Language Reference Guide...
Страница 114: ...Mainline 98 NetLinx Programming Language Reference Guide FIG 1 Message and Mainline Processing in the NetLinx System...
Страница 182: ...Reserved Identifiers 166 NetLinx Programming Language Reference Guide...
Страница 204: ...NetLinx UniCode Functions 188 NetLinx Programming Language Reference Guide...
Страница 244: ...Appendix B Glossary 228 NetLinx Programming Language Reference Guide...
Страница 245: ...Appendix B Glossary 229 NetLinx Programming Language Reference Guide...