Reserved Identifiers
148
NetLinx Programming Language Reference Guide
Keywords & Run-Time Library Functions (Cont.)
RSHIFT
This keyword causes the bits in the associated value field to be shifted right.
This has the effect of dividing by 2n where n is the number of bit positions to
shift. The symbol >> is equivalent to
RSHIFT
. For example:
INT2 = INT1 RSHIFT 2
is equivalent to:
INT2 = INT1 >> 2
Both statements shift
INT1
right two positions. Either statement could be
replaced with:
INT2 = INT1 / 4
SELECT…ACTIVE
This keyword statement provides a programming construct for selective execu-
tion of code blocks based on the evaluation of a series of conditions.
See the
Conditionals & Loops
section on page 17 for more information.
SEND_COMMAND
This keyword sends device-specific commands to a NetLinx device. The syn-
tax is:
SEND_COMMAND DEV, '<command string>'
- or -
SEND_COMMAND DEV[ ], '<command string>'
SEND_LEVEL
This keyword sends a value to a specific level on a NetLinx device/port. The
syntax follows any one of the four following examples:
SEND_LEVEL DEV, Level, Value
SEND_LEVEL DEV[ ], Level, Value
SEND_LEVEL DEVLEV, Value
SEND_LEVEL DEVLEV[ ], Value
Parameters:
•
DEV
: Device containing the specified level.
•
Level
: Number of the level to receive the new value.
•
Value
: New level value.
•
DEV[ ]
: Device array (each device contains the specified level).
•
DEVLEV
: Device-level to receive the new value.
•
DL[ ]
: Device-level array (each will receive the new value).
SEND_STRING
This keyword sends a string to a NetLinx device/port. The syntax is:
SEND_STRING DEV, '<string>'
- or -
SEND_STRING DEV[ ], '<string>'
When sending to an IP socket, you may receive the following error (via
ONERROR
event):
17 Local Port Not Open
This error means you are trying to send a string to a local port on which
IP_CLIENT_OPEN
or
IP_SERVER_OPEN
has not been called.
Summary of Contents for NETLINX PROGRAMMING LANGUAGE
Page 15: ...Table of Contents xiii NetLinx Programming Language Reference Guide...
Page 16: ...xiv NetLinx Programming Language Reference Guide Table of Contents...
Page 18: ...Introduction 2 NetLinx Programming Language Reference Guide...
Page 76: ...Language Elements 60 NetLinx Programming Language Reference Guide...
Page 106: ...Combining Devices Levels and Channels 90 NetLinx Programming Language Reference Guide...
Page 112: ...Master To Master M2M 96 NetLinx Programming Language Reference Guide...
Page 182: ...Reserved Identifiers 166 NetLinx Programming Language Reference Guide...
Page 204: ...NetLinx UniCode Functions 188 NetLinx Programming Language Reference Guide...
Page 244: ...Appendix B Glossary 228 NetLinx Programming Language Reference Guide...
Page 245: ...Appendix B Glossary 229 NetLinx Programming Language Reference Guide...