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 #119 background imageLoading...
Page #119 background image
Reserved Identifiers
103
NetLinx Programming Language Reference Guide
Keywords & Run-Time Library Functions (Cont.)
BREAK The BREAK command terminates execution of the current WHILE,
LONG_WHILE, or FOR loop and resumes program execution at the first instruc-
tion following that loop. BREAK also jumps to the end of a SWITCH statement.
WHILE (<condition>)
{
// statements
IF (<condition>)
{
BREAK // Go to statement: X = X + 1
}
}
// Execution continues here after BREAK or
// after normal completion of the WHILE loop.
X = X + 1
BUTTON_EVENT This keyword defines a button event handler and can only be used in the
DEFINE_EVENT section of the program. This type of handler processes PUSH,
RELEASE, and HOLD events.
BUTTON_EVENT[DEVICE,CHANNEL] or
BUTTON_EVENT [(DEVCHAN[ ])]
{
PUSH:
{
// Push statements go here
}
RELEASE:
{
// Release statements go here
}
HOLD[TIME,[REPEAT]]:
{
// Hold statements go here
}
}
See the Event Handlers section on page 61.
BXOR (^) This operator performs a bitwise XOR operation between two data items, which
can be constants or variables.
CALL Use the CALL keyword and the name of the subroutine in single quotes to tell
NetLinx to execute a subroutine. For example, to execute the subroutine Lights
Off, type the following where you want the CALL to occur:
CALL 'Lights Off'
When NetLinx executes the CALL, program execution jumps to the first line
inside the braces of the DEFINE_CALL. The subroutine is executed only once,
and then NetLinx returns to the statement directly following the CALL statement.
CANCEL_ALL_WAIT This keyword cancels all WAITs (named or unnamed) in the WAIT list.
CANCEL_ALL_WAIT_
UNTIL
This keyword cancels all (named or unnamed) WAIT_UNTIL and
TIMED_WAIT_UNTIL commands.
CANCEL_WAIT This keyword cancels a specified wait. Only named waits can be canceled.
CANCEL_WAIT '<wait name>'

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