User`s manual
9 - 3 9 - 3
MELSEC
9 MELSEC DATA LINK LIBRARY
9.3 Settings for Using Functions
This section describes the setting operation in order to use functions.
POINT
If Windows
R
2000 Professional or Windows
R
XP Professional is used, Microsoft
R
Visual Basic
R
5.0 and Microsoft
R
Visual C++
R
5.0 cannot be used.
Please use Microsoft
R
Visual Basic
R
6.0 and Microsoft
R
Visual C++
R
6.0.
9.3.1 When using Visual Basic
R
5.0 and Visual Basic
R
6.0
The following describes the setting operation when using Visual Basic
R
5.0 and Visual
Basic
R
6.0.
1. Start Visual Basic
R
5.0 or Visual Basic
R
6.0 and select [Project] - [Add standard
module] menu.
2. Select the "Existing files" tab and select "MDFUNC.BAS. "
"MDFUNC.BAS" has been saved in the following directory during installation:
<User-specified folder>-<COMMON>-<INCLUDE>
9.3.2 When using Visual C++
R
5.0 and Visual C++
R
6.0
The following describes the setting operation when using Visual C++
R
5.0 and Visual
C++
R
6.0.
(1) When setting an include file
1. Start Visual C++
R
5.0 or Visual C++
R
6.0 and select [Tool]-[Option] menu.
2. Select the "Directory" tab and set the directory type to "Include files. "
3. Double-click the item to be set and reference the folder containing the include
file.
MDFUN.H has been save in the following directory during installation:
<User-specified folder>-<COMMON>-<INCLUDE>
4. Add "#include<mdfunc.h>" at the beginning of your program.
(2) When setting a library file
1. Start Visual C++
R
5.0 or Visual C++
R
6.0 and select [Tool]-[Option] menu.
2. Select the "Directory" tab, set "Directory to be displayed" to "Library file," and
reference the folder containing the library file, as in step (1) above.
"MDFUNC32.LIB" is stored in
<User-specified folder>-<COMMON>-<LIB>
during installation.
3. Open the workspace to create and select [Project]-[Set] menu.
4. Select the "Link" tab, set "General" as the category, then type "mdfunc32.lib"
in the object/library module field.