Makino Milling Machine Libraries (MML) Mccomm - Ocx Reference Manual
Makino Milling Machine Libraries (MML) Mccomm - Ocx Reference Manual
for Professional A / 3 / 5
Index
1. Common .......................................................................................................................... 6
1.1. Properties ................................................................................................................ 6
long MPnodeNo(); [Get/Let]........................................................................................ 6
BOOL MPo8Digits(); [Get/Let] ................................................................................... 6
2. DNC Operation .............................................................................................................. 7
2.1. Properties ................................................................................................................ 7
BOOL MPdncAction(); [Get] ....................................................................................... 7
BOOL MPdncAutoStart(); [Get] ................................................................................. 7
BSTR MPdncFname(); [Get]....................................................................................... 7
BOOL MPdncPause(); [Get] ....................................................................................... 7
long MPdncSize(); [Get] .............................................................................................. 7
short MPdncStatus(); [Get] ........................................................................................ 8
2.2. Methods ................................................................................................................... 9
void MMdncStart(LPCTSTR dncFname, BOOL dncPause, BOOL autoStart,
LPCTSTR insertBegin, LPCTSTR insertEnd); ......................................................... 9
2.3. Events.................................................................................................................... 10
MVdncSize(long dncSize) ............................................................................................ 10
MVdncStatus(short status) ......................................................................................... 10
MVdncFinish(LPCTSTR argFile, LPCTSTR dncFile, long errorNo)....................... 10
3. Download ...................................................................................................................... 12
3.1. Properties .............................................................................................................. 12
BOOL MPdownAction(); [Get] .................................................................................... 12
BSTR MPdownFname(); [Get] ................................................................................. 12
long MPdownSize(); [Get] ......................................................................................... 12
short MPdownStatus(); [Get] ................................................................................... 12
BSTR MPdownComment(); [Get] ............................................................................. 12
long MPdownOldOnum(); [Get] ............................................................................... 13
long MPdownOnum(); [Get]...................................................................................... 13
BOOL MPdownOver(); [Get] .................................................................................... 13
3.2. Methods ................................................................................................................. 14
void MMdownStart(LPCTSTR downFname, LPCTSTR comment, long onumber,
BOOL mainOverWrite, BOOL subOverWrite);....................................................... 14
1. Common
1.1. Properties
2. DNC Operation
2.1. Properties
2.2. Methods
2.3. Events
MVdncSize(long dncSize)
Remarks
Notify the data size transferred with DNC.
Parameters
long dncSize Same as MPdncSize().
MVdncStatus(short status)
Remarks
Notify the data transfer status.
Parameters
short status Same as MPdncStatus().
3. Download
3.1. Properties
3.2. Methods
3.3. Events
MVdownSize(long downSize)
Remarks
Notify the data size transferred with downloading.
Parameters
long downSize Same as MPdownSize().
MVdownStatus(short status)
Remarks
Notify the data transfer status.
Parameters
short status Same as MPdownStatus().
MVdownFinish(LPCTSTR downFile,
LPCTSTR oNumbers,
long errorNo,
long errorONumber)
Remarks
Notify the completion or interruption of data transfer.
Parameters
LPCTSTR downFile Retrieves the download file name.
LPCTSTR oNumbers Retrieves downloaded O numbers with
comma-separated format;
Ex. ”1000,1001,1002,1003”
long errorNo If completed normally, returns 0.
Otherwise, refer to the following error numbers.
long errorONumber O number of downloading error.
Attention
If specified NC program file includes more than one O numbers, and if the
downloading failed halfway, the O numbers succeeded in downloading remain in
CNC memory, not deleted automatically.
Error Numbers
3000 Specified O number is out of range.
3001 Seek-error of downloading file.
4. Uploading
4.1. Properties
BOOL MPupAction();[Get]
Remarks
Retrieve whether the MC is on uploading.
4.2. Methods
Return Values
Refer to MVupFinish() event.
Attention
The relation between onumbers and arraySize is as follows;
32 bit
4.3. Events
MVupSize(long upSize)
Remarks
Notify the data size transferred with uploading.
Parameters
long upSize Same as MPupSize().
MVupStatus(short status)
Remarks
Notify the data transfer status.
Parameters
short status Same as MPupStatus().
MVupFinish(LPCTSTR oNumbers,
LPCTSTR upFile,
long errorNo,
long errorONumber)
Remarks
Notify the completion or interruption of data transfer.
Parameters
LPCTSTR oNumbers Retrieves uploaded O numbers with
comma-separated format;
Ex. ”1000,1001,1002,1003”
LPCTSTR upFile Retrieves the uploaded file name saved in PC.
long errorNo If completed normally, returns 0.
Otherwise, refer to the following error numbers.
long errorONumber O number of uploading error.
Attention
If more than one O numbers are specified for uploading, and if the uploading
failed halfway, the NC program file in the PC includes the contents of O
numbers succeeded in uploading.
Error Numbers
4001 (Internal Error, including communication disconnected)
4002 Background-editing in CNC-side.
5. M198 Operation
Attension
This document describes only general remarks about properties of M198 operation.
Please refer to “Data Server function (M198) with PC Reference Manual” for the details.
5.1. Properties
BOOL MPm198Action();
Remarks
Retrieve whether the MC is on M198 operation.
5.2. Methods
BOOL MMm198Terminate();
Remarks
Terminate M198 operation.
5.3. Events
MVm198Finish(long errorNo)
Remarks
Notify that M198 operation mode is finished.
- over -