Contents
1. Outline ............................................................................................................................... 1
1.1 System configuration................................................................................................. 1
1.1.1 General configuration........................................................................................ 1
1.1.2 Outline of custom release system ..................................................................... 2
1.2 Software configuration............................................................................................... 3
1.2.1 Software configuration diagram......................................................................... 3
1.2.2 Software related to custom release................................................................... 3
2. Setup of Programming Environment .............................................................................. 5
2.1 Before starting setup................................................................................................. 5
2.2 Setting up of Custom API Library.............................................................................. 5
2.3 Before using.............................................................................................................. 6
3. Programming with Visual Basic...................................................................................... 7
3.1 Before starting programming..................................................................................... 7
3.2 Using Custom API Library......................................................................................... 8
3.2.1 How to use the Custom API Library................................................................... 8
3.2.2 Creation of application with Custom API Library ............................................... 9
3.2.2.1 Counter display application........................................................................ 9
3.2.2.2 Parameter setting application.................................................................... 16
3.2.2.3 File transfer application.............................................................................. 42
3.2.2.4 Improvement of counter display application .............................................. 73
3.2.2.5 Program in operation display application................................................... 85
3.2.2.6 Operation search application..................................................................... 95
3.2.2.7 Alarm message display application ...........................................................119
3.2.3 Helpful information for creating custom applications.........................................128
3.2.3.1 How to access T_BIT data.........................................................................128
3.2.3.2 Precautions for using variables of String type...........................................128
3.2.3.3 Prohibition of Variant type for variable data type.......................................129
3.2.3.4 Calling custom application from MELDASMAGIC MMI Software (MAGIC.EXE)
(option).......................................................................................................129
4. API Test .............................................................................................................................130
4.1 API Test Outline........................................................................................................130
4.2 Installing the API Test...............................................................................................131
4.3 Starting and Ending the API Test..............................................................................132
4.3.1 Starting the API Test..........................................................................................132
4.3.2 Ending the API Test...........................................................................................132
4.4 API Test Basic Operation..........................................................................................133
4.4.1 Selecting the API Function................................................................................133
4.4.2 Opening multiple windows .................................................................................134
4.4.3 Starting multiple API Tests................................................................................135
4.4.4 Setting the API Test options..............................................................................135
4.4.5 Version information............................................................................................136
4.5 Operation of the Function Execution window............................................................137
4.5.1 Common window operations..............................................................................137
4.5.2 Displaying the return value from the function....................................................138
4.5.3 Function window initial value.............................................................................138
4.5.4 System control commands................................................................................139
4.5.4.1 melloctl.......................................................................................................139
4.5.5 File access related commands..........................................................................140
4.5.5.1 melCloseDirectory......................................................................................140
4.5.5.2 melCopyFile...............................................................................................141