NetLinx Modules
204
NetLinx Programming Language Reference Guide
CASE REC:
{
IF ([dvDECK,nOFSTOP_FB]
OR [dvDECK,nOFREC_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,nOFREC]
CALL 'FEEDBACK' (REC)
}
}
}
}
}
(***********************************************************)
(* THE ACTUAL PROGRAM GOES BELOW *)
(***********************************************************)
DEFINE_PROGRAM
[dcTRANPORTS[1]] = [dvDECK,nOFPLAY_FB]
[dcTRANPORTS[2]] = [dvDECK,nOFSTOP_FB]
[dcTRANPORTS[3]] = [dvDECK,nOFPAUSE_FB]
[dcTRANPORTS[4]] = ([dvDECK,nOFFFWD_FB] OR
(dcTRANPORTS[6].CHANNEL=NO_BUTTON AND [dvDECK,nOFSFWD_FB]))
[dcTRANPORTS[5]] = ([dvDECK,nOFREW_FB] OR
(dcTRANPORTS[7].CHANNEL=NO_BUTTON AND [dvDECK,nOFSREV_FB]))
[dcTRANPORTS[6]] = [dvDECK,nOFSFWD_FB]
[dcTRANPORTS[7]] = [dvDECK,nOFSREV_FB]
[dcTRANPORTS[8]] = ([dvDECK,nOFREC_FB] AND
(![dvDECK,nOFPAUSE_FB]))
(***********************************************************)
(* END OF PROGRAM *)
(* DO NOT PUT ANY CODE BELOW THIS COMMENT *)
(***********************************************************)
Using a module in a program
To use a module in a program, you must declare it using the
DEFINE_MODULE
keyword. This tells 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
DEFINE_MODULE
statement.
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...