Using A Module In A Program - AMX NETLINX PROGRAMMING LANGUAGE Manual

Programming language
Table of Contents

Advertisement

NetLinx Modules
}
}
}
(***********************************************************)
(*
(***********************************************************)
DEFINE_PROGRAM
[dcTRANPORTS[1]]
[dcTRANPORTS[2]]
[dcTRANPORTS[3]]
[dcTRANPORTS[4]]
(dcTRANPORTS[6].CHANNEL=NO_BUTTON AND [dvDECK,nOFFSET_FB+SFWD_FB]))
[dcTRANPORTS[5]]
(dcTRANPORTS[7].CHANNEL=NO_BUTTON AND [dvDECK,nOFFSET_FB+SREV_FB]))
[dcTRANPORTS[6]]
[dcTRANPORTS[7]]
[dcTRANPORTS[8]]
(![dvDECK,nOFFSET_FB+PAUSE_FB]))
(***********************************************************)
(*
(*
(***********************************************************)

Using a module in a program

To use a module in a program, you must declare it using the
NetLinx compiler to add the module to the program, effectively merging the module's event handling
and mainline code with the containing program (or module). In other words, the program will have one
event table and one mainline routine consisting of code from the main program and all modules declared
using the
204
CASE REC:
{
IF ([dvDECK,nOFFSET_FB+STOP_FB]
OR [dvDECK,nOFFSET_FB+REC_FB])
{
CANCEL_WAIT 'VCR1 REW TO STOP'
CANCEL_WAIT 'VCR1 PAUSE TO STOP'
CANCEL_WAIT 'VCR1 SREV TO STOP'
CALL 'ALL OFF'
MIN_TO [dvDECK,nOFFSET_FN+REC]
CALL 'FEEDBACK' (REC)
}
}
THE ACTUAL PROGRAM GOES BELOW
= [dvDECK,nOFFSET_FB+PLAY_FB]
= [dvDECK,nOFFSET_FB+STOP_FB]
= [dvDECK,nOFFSET_FB+PAUSE_FB]
= ([dvDECK,nOFFSET_FB+FFWD_FB] OR
= ([dvDECK,nOFFSET_FB+REW_FB]
= [dvDECK,nOFFSET_FB+SFWD_FB]
= [dvDECK,nOFFSET_FB+SREV_FB]
= ([dvDECK,nOFFSET_FB+REC_FB] AND
END OF PROGRAM
DO NOT PUT ANY CODE BELOW THIS COMMENT
statement.
DEFINE_MODULE
*)
OR
*)
*)
keyword. This tells the
DEFINE_MODULE
NetLinx Programming Language Reference Guide

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Netlinx studio 2

Table of Contents