User Guide

Using KPDesign
15
K
PDesign Keypad Design Program
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 'DMS-IMSMod' mdlDMS (dvDMS, dvDMS_R, strFILE_NAME,
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:
Module_Name
DMS-IMSMod.tko
Virtual_Dev
A virtual device you define.
Real_Dev
The device number of the DMS or IMS panel.
StrFileName
A string variable (CHAR array) containing the file name of the KPD file
to run.
StrVarTextArray
A two-dimensional array to store variable text in. The first dimension
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
The name of the compiled TKO file.
MdlDMS
The module name.
DvDMS
The module ID device number (ex 32768).
DvDMS_R
The device number of the keypad.
StrFILE_NAME
Exact name of the KPD file.
StrVarText Array
Description of the parameters for the variable text buffer.