Source Code Entry; Sample Netlinx Code - AMX KPDESIGN KEYPAD DESIGN PROGRAM Instruction Manual

Keypad design program
Table of Contents

Advertisement

7. Select the Add as Link option (if you do not want to copy the file to your project folder).

Source Code Entry

To include a module into your program, use the following module line:
DEFINE_MODULE 'DMS-IMSMod' Module_Name(Virtual_Dev, Real_Dev, strFileName,
strVarTextArray)
Where:
For example, a NetLinx module for a DMS keypad would look like:
DEFINE_MODULE
StrVartextArray)
Where:

Sample NetLinx Code

To download a KPD file to a NetLinx Master, you must use the NetLinx DMS-IMS module, with
the following DEFINE_MODULE entry in the Master Source Code:
DEFINE_MODULE 'DMS-IMSMod' Module_Name(Virtual_Dev, Real_Dev,
strFileName, strVarTextArray)
Where:
Module_Name is a unique name. For example:
DEFINE_MODULE 'DMS-IMSMod' mdlDMS (...
or
DEFINE_MODULE 'DMS-IMSMod' mdlIMS (...
For example:
KPDesign Keypad Design Program
DMS-IMSMod.tko
Module_Name
A virtual device you define.
Virtual_Dev
The device number of the DMS or IMS panel.
Real_Dev
A string variable (CHAR array) containing the file name of the KPD file
StrFileName
to run.
A two-dimensional array to store variable text in. The first dimension
StrVarTextArray
should be the largest variable text number you want to use. The sec-
ond dimension should be the maximum size of the string you want dis-
played (maximum is 40 characters).
'
'
DMS-IMSMod
mdlDMS (dvDMS, dvDMS_R, strFILE_NAME,
The name of the compiled TKO file.
DMS-IMSMod
The module name.
MdlDMS
The module ID device number (ex 32768).
DvDMS
The device number of the keypad.
DvDMS_R
Exact name of the KPD file.
StrFILE_NAME
Description of the parameters for the variable text buffer.
StrVarText Array
Using KPDesign
15

Advertisement

Table of Contents
loading

This manual is also suitable for:

Kpdesign

Table of Contents