EasyManuals Logo

AMX NETLINX PROGRAMMING LANGUAGE User Manual

AMX NETLINX PROGRAMMING LANGUAGE
246 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #164 background imageLoading...
Page #164 background image
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.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the AMX NETLINX PROGRAMMING LANGUAGE and is the answer not in the manual?

AMX NETLINX PROGRAMMING LANGUAGE Specifications

General IconGeneral
BrandAMX
ModelNETLINX PROGRAMMING LANGUAGE
CategorySoftware
LanguageEnglish

Related product manuals