4.5 Operation of the Function Execution window
4.5.6 Data access-related commands
Calling the function
(1) Set the argument to be transferred to the melCancelModal function.
(2) Call the melCancelModal function using the [Execute] button.
(3) The Return Value window appears in the center of the screen. The return value from
melCancelModal appears in the Return Value window. The Return Value window will close
when the [OK] button is clicked.
(4) Click on the [Cancel] button in the melCancelModal window to quit the melCancelModal
window.
Fig. 4-19 melCancelModal window
Address
Use to designate the NC Card.
By using the [Setting] button, the address can be set separately for each item.
Refer to "4.5.9.1 AddressSet window".
Data ID
Use to designate the ID of the data that cancels the registration of the data high- speed reading.
Select the data from the combo box or input directly.
The ID of the data registered in the melRegisterModal window appears in the combo box.
4.5.6.2 melReadData
Calling the function
(1) Set the argument to be transferred to the melReadData function.
(2) Click on the [Input] button. The window of the data type designated in lReadType appears in the
center of the screen. When not inputting data, call the function without clicking on the [Input]
button.
In this case, the default values are used for the structural members.
(3) Input the data in the Input window, and set the structural members.
(4) Call the melReadData function using the [Execute] button.
(5) The Return Value window appears in the center of the screen. The return value from
melReadData appears in the Return Value window.
The output from melReadData appears simultaneously in [Data Area] of the Input window. The
Return Value window will close when the [OK] button is clicked.
(6) Click on the [Cancel] button in the melReadData window to quit the melReadData window. The
Input window also closes simultaneously.
Fig. 4-20 melReadData window
Section No.
Use to designate the section No.
Sub-section No.
Use to designate the sub-section No.
Pointer
"Memory Address of Data" appears in [lpszReadData].
This shows that the memory address of the variable where the data is stored is set in the lpszReadData argument.
Data type
Use to designate the type of variable that will store the read data.
The symbol name of the data type can be selected from the combo box.
Data input
Use to input data and structural member settings.
Refer to "4.5.8 Input window"
Address
Use to designate the NC Card, system, and axis. Use the [Setting] button when setting addresses individually. Refer to "4.5.9.1 AddressSet window".
4.5.6.3 melReadModal
Calling the function
(1) Set the argument to be transferred to the melReadModal function.
(2) Click on the [Input] button. The window of the data type designated in lReadType appears in the
center of the screen. When not inputting data, call the function without clicking on the [Input]
button.
In this case, the default values are used for the structural members.
(3) Input the data in the Input window, and set the structural members.
(4) Call the melReadModal function using the [Execute] button.
(5) The Return Value window appears in the center of the screen. The return value from
melReadModal appears in the Return Value window.
The output from melReadModal appears simultaneously in [Data Area] of the Input window.
The Return Value window will close when the [OK] button is clicked.
(6) Click on the [Cancel] button in the melReadModal window to quit the melReadModal window.
The Input window also closes simultaneously.
Fig. 4-21 melReadModal window
Address
Use to designate the NC Card, system, and axis. Use the [Setting] button when setting addresses individually.
Refer to "4.5.9.1 AddressSet window".
Data ID
Use to designate the ID of the data to be read. The ID of the data registered in the
melRegisterModal window appears in the combo box.
Pointer
"Memory Address of Data" appears in [lpReadData].
This shows that the memory address of the variable where the data is stored is set in the lpReadData argument.
Data type
Use to designate the type of variable that will store the read data.
Data input
Use to input data and structural member settings.
4.5.6.4 melRegisterModal
Calling the function
(1) Set the argument to be transferred to the melRegisterModal function.
(2) Call the melRegisterModal function using the [Execute] button.
(3) The Return Value window appears in the center of the screen, and the return value from
melRegisterModal appears.
The Return Value window will close when the [OK] button is clicked.
(4) Click on the [Cancel] button in the melRegisterModal window to quit the melRegisterModal
window.
Fig. 4-22 melRegisterModal window
Address
Use to designate the NC Card, system, and axis. Use the [Setting] button when setting addresses individually.
Refer to "4.5.9.1 AddressSet window".
Section No.
Use to designate the section No.
Sub-section No.
Use to designate the sub-section No.
Priority order
Use to designate the priority order. The candidates for the priority order can be selected in the combo box.
4.5.6.5 melWriteData
Calling the function
(1) Set the argument to be transferred to the melWriteData function.
(2) Click on the [Input] button. The window of the data type designated in lWriteType appears in the
center of the screen. When not inputting data, call the function without clicking on the [Input]
button.
In this case, the default values are used for the structural members.
(3) Input the data in the Input window, and set the structural members.
(4) Call the melWriteData function using the [Execute] button.
(5) The Return Value window appears in the center of the screen. The return value from
melWriteData appears in the Return Value window.
The Return Value window will close when the [OK] button is clicked.
(6) Click on the [Cancel] button in the melWriteData window to quit the melWriteData window. The
Input window also closes simultaneously.
Fig. 4-23 melWriteData window
Pointer
"Memory Address of Data" appears in [lpWriteData].
This shows that the memory address of the variable where the data is stored is set in the lpWriteData argument.
Address
Use to designate the NC Card, system, and axis. Use the [Setting] button when setting addresses individually.
Refer to "4.5.9.1 AddressSet window".
Section No.
Use to designate the section No.
Sub-section No.
Use to designate the sub-section No.
Data type
Use to designate the variable type that stored the written data.
Data input
Use to input data and structural member settings.