0% found this document useful (0 votes)
777 views28 pages

Makino Milling Machine Libraries (MML) Mccomm - Ocx Reference Manual

This document is a reference manual for the Makino Milling Machine Libraries (MML) McComm.ocx component. It contains documentation on the properties, methods, and events for common functions, DNC operation, downloading, uploading, and M198 operation. The properties, methods and events provide programmatic access to control the milling machine and interact with files for tasks like starting/monitoring DNC, downloading parts programs, and uploading completion data.

Uploaded by

Erich Kreiseder
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
777 views28 pages

Makino Milling Machine Libraries (MML) Mccomm - Ocx Reference Manual

This document is a reference manual for the Makino Milling Machine Libraries (MML) McComm.ocx component. It contains documentation on the properties, methods, and events for common functions, DNC operation, downloading, uploading, and M198 operation. The properties, methods and events provide programmatic access to control the milling machine and interact with files for tasks like starting/monitoring DNC, downloading parts programs, and uploading completion data.

Uploaded by

Erich Kreiseder
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 28

Makino Milling Machine Libraries (MML) Makino Milling Machine Libraries (MML)

Makino Milling Machine Libraries


(MML)
McComm.ocx Reference Manual

for Professional A / 3 / 5

MAKINO MILLING MACHINE Co., Ltd.


FA System Development Group

L:¥PC¥Doc¥MML¥McComm_Eng.doc Page 1/28


Makino Milling Machine Libraries (MML) Makino Milling Machine Libraries (MML)

VERSION DATE DETAILS EDITOR


1st Edition 2003/08/04 Initial check-in. T.Yamaguchi
nd
2 Edition 2007/03/28 Modify the remark of MPdncStatus, MPdownStatus, M.Abe
MPupStatus.
rd
3 Edition 2013/02/27 Add the description of MPo8Digits property. M. Suga

L:¥PC¥Doc¥MML¥McComm_Eng.doc Page 2/28


Makino Milling Machine Libraries (MML) Makino Milling Machine Libraries (MML)

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

L:¥PC¥Doc¥MML¥McComm_Eng.doc Page 3/28


Makino Milling Machine Libraries (MML) Makino Milling Machine Libraries (MML)

long MMgetDownFileInfo(LPCTSTR fileName, long FAR* mainONum, BSTR


FAR* mainProgName, long FAR* subONum, BSTR FAR* subProgName, short
FAR* arraySize); .......................................................................................................... 15
3.3. Events.................................................................................................................... 17
MVdownSize(long downSize) ...................................................................................... 17
MVdownStatus(short status) ...................................................................................... 17
MVdownFinish(LPCTSTR downFile, LPCTSTR oNumbers, long errorNo, long
errorONumber) ............................................................................................................ 17
4. Uploading ..................................................................................................................... 19
4.1. Properties .............................................................................................................. 19
BOOL MPupAction();[Get] .......................................................................................... 19
BSTR MPupFname(); [Get] ...................................................................................... 19
long MPupSize(); [Get] .............................................................................................. 19
short MPupStatus(); [Get] ........................................................................................ 19
long MPupOnum(); [Get] .......................................................................................... 20
long MPupOldOnum(); [Get] .................................................................................... 20
BOOL MPupOver(); [Get]............................................................................................ 20
BOOL MPupAddPercent(); [Get/Let] ....................................................................... 20
4.2. Methods ................................................................................................................. 21
BSTR MMupDefFname(long onumber); .................................................................... 21
void MMupCatStart(LPCTSTR upFname, long FAR* onumbers, short arraySize,
BOOL overWrite); ........................................................................................................ 21
4.3. Events.................................................................................................................... 23
MVupSize(long upSize)................................................................................................ 23
MVupStatus(short status) ........................................................................................... 23
MVupFinish(LPCTSTR oNumbers, LPCTSTR upFile, long errorNo, long
errorONumber) ............................................................................................................ 23
5. M198 Operation ........................................................................................................... 25
5.1. Properties .............................................................................................................. 25
BOOL MPm198Action(); ............................................................................................. 25
5.2. Methods ................................................................................................................. 26
BOOL MMm198Terminate(); ...................................................................................... 26
void MMgetM198DncSize(long FAR* oNumber, BSTR FAR* fileName, long
FAR* dncSize); ............................................................................................................. 26
void MMgetM198DncStatus(long FAR* oNumber, BSTR FAR* fileName, short
FAR* status); ................................................................................................................ 26

L:¥PC¥Doc¥MML¥McComm_Eng.doc Page 4/28


Makino Milling Machine Libraries (MML) Makino Milling Machine Libraries (MML)

void MMm198Start(long FAR* oNumber, BSTR FAR* fileName, short arraySize,


BOOL synchroCnc); ..................................................................................................... 26
5.3. Events.................................................................................................................... 27
MVm198DncSize(long oNumber, LPCTSTR fileName, long size) ........................... 27
MVm198DncStatus(long oNumber, LPCTSTR fileName, short status) ................. 27
MVm198Finish(long errorNo)..................................................................................... 27
MVm198DncFinish(long oNumber, LPCTSTR fileName, long errorNo) ................ 27

L:¥PC¥Doc¥MML¥McComm_Eng.doc Page 5/28


Makino Milling Machine Libraries (MML) Makino Milling Machine Libraries (MML)

1. Common

1.1. Properties

long MPnodeNo(); [Get/Let]


Remarks
Retrieve or specify the node number for the MC.
All functions of McComm.ocx are not available until set the node number.
If the communication is disconnected, it is necessary to re-set the previous
(same) node number after the communication re-connected.
An error is generated when the different node number is set.

BOOL MPo8Digits(); [Get/Let]


Remarks
Set TRUE when you use the O8 digit with McComm.OCX.
An initial value is O4 digit (MPo8Digits=FALSE).

L:¥PC¥Doc¥MML¥McComm_Eng.doc Page 6/28


Makino Milling Machine Libraries (MML) Makino Milling Machine Libraries (MML)

2. DNC Operation

2.1. Properties

BOOL MPdncAction(); [Get]


Remarks
Retrieve whether the MC is on DNC operation.

BOOL MPdncAutoStart(); [Get]


Remarks
Retrieve whether the MC is on the machining by MMdncStart().

BSTR MPdncFname(); [Get]


Remarks
Retrieve the file name specified in MMdncStart().

BOOL MPdncPause(); [Get]


Remarks
Retrieve whether specifies M00 insertion into the head of the DNC data.

long MPdncSize(); [Get]


Remarks
Retrieve the DNC transferred data size.
This size is not equal to the DNC machined data size, because the CNC unit has
data buffering memory area.

L:¥PC¥Doc¥MML¥McComm_Eng.doc Page 7/28


Makino Milling Machine Libraries (MML) Makino Milling Machine Libraries (MML)

short MPdncStatus(); [Get]


Remarks
Retrieve the internal status of DNC transfer.

INIT_STT (0) Initial status.


START_CHK (1) Checking to start procedure.
START_WAIT (2) Waiting for the completion of CNC-side preparation.
START_STR (3) Start function call in FANUC library
TRANS_ACT (4) Data is transferring.
TRANS_CMP (5) Data transfer completed and waiting for the completion
of CNC-side procedure.
TRANS_ERR (6) Data transfer error.
TRANS_WAIT(7) Wait the transfer data from MOS system in case of
“without M30 operation” for MOS system.

L:¥PC¥Doc¥MML¥McComm_Eng.doc Page 8/28


Makino Milling Machine Libraries (MML) Makino Milling Machine Libraries (MML)

2.2. Methods

void MMdncStart(LPCTSTR dncFname,


BOOL dncPause,
BOOL autoStart,
LPCTSTR insertBegin,
LPCTSTR insertEnd);
Remarks
Start the data transfer with DNC.
Parameters
LPCTSTR dncFname Specifies the full-path file name of the NC
program that is transferred with DNC.
This file name can be retrieved with
MPdncFname().
BOOL dncPause Specifies whether specifies M00 insertion into the
head of the DNC data.
This value can be retrieved with MPdncPause().
BOOL autoStart, Specifies whether make Cycle-Start.
This value can be retrieved with
MPdncAutoStart().
LPCTSTR insertBegin Specifies the string to be inserted into the head of
the DNC data.
LPCTSTR insertEnd Specifies the string to be inserted into the tail of
the DNC data.
The inserted location is in front of the M30 or
M02 block.
Return Values
Refer to MVdncFinish event.
Attention
 System mode is not necessary to be ON. But DNC mode is necessary to be
ON.
 DNC operation cannot start when CNC-side is on Cycle-Start state.

L:¥PC¥Doc¥MML¥McComm_Eng.doc Page 9/28


Makino Milling Machine Libraries (MML) Makino Milling Machine Libraries (MML)

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().

MVdncFinish(LPCTSTR argFile, LPCTSTR dncFile, long errorNo)


Remarks
Notify the completion or interruption of data transfer.
Parameters
LPCTSTR argFile Internal filename. Ignored.
LPCTSTR dncFile File name specified in MMdncStart().
long errorNo If completed normally, returns 0.
Otherwise, refer to the following error numbers.
Error Numbers
2000 NC reset.
2010 (Internal error, including communication disconnected)
2020 CNC alarm occurred.
2021 The MC is Emergency Stopped.
2030 (Internal Error, including communication disconnected)
2040 (Internal Error, including communication disconnected)
2050 Either Single-Block is ON or CNC-side machining.
2070 Cycle-Start is not functional.
2080 DNC mode is OFF.
2089 (Internal Error, including communication disconnected)
2090 (Internal Error, including communication disconnected)
2100 DNC mode is OFF.

L:¥PC¥Doc¥MML¥McComm_Eng.doc Page 10/28


Makino Milling Machine Libraries (MML) Makino Milling Machine Libraries (MML)

2110 (Internal Error)


2120 (Internal Error)
2130 Cannot read the DNC file.
2140 Cannot open the DNC file.
2150 Error on the Network File Preparation function. There may
be some troubles on the network.
2155 (Internal Error)
2160 Cannot open the DNC file.
2162 (Internal Error)
2165 The DNC file exists on the disk, but its size is 0 byte.
2170 Seek-error of the DNC file.
2180 Cannot read the DNC file.
2190 The DNC file exists on the disk, but its size is 0 byte.
2200 (Internal Error, including communication disconnected)
2210 (Internal Error, including communication disconnected)
2260 CNC alarm occurred.
2265 The MC is Emergency Stopped.
2270 NC reset.
2280 made DNC interruption on the MC-side.
2285 CNC alarm occurred.
2286 The MC is Emergency Stopped.
2230 Cannot read the DNC file.
2240 (Internal Error, including communication disconnected)
2300 Cannot open the DNC file.
2310 The DNC file exists on the disk, but its size is 0 byte.
2320 Seek-error of the DNC file.
2330 EOP is not turned ON. DNC is interrupted.
2340 (Internal Error, including communication disconnected)
2350 (Internal Error, including communication disconnected)
2360 (Internal Error, including communication disconnected)
2370 (Internal Error)
2371 The setting of I/O channel is invalid.
2372 Failed in the reading of the CNC parameters.

L:¥PC¥Doc¥MML¥McComm_Eng.doc Page 11/28


Makino Milling Machine Libraries (MML) Makino Milling Machine Libraries (MML)

3. Download

3.1. Properties

BOOL MPdownAction(); [Get]


Remarks
Retrieve whether the MC is on program downloading.

BSTR MPdownFname(); [Get]


Remarks
Retrieve the file name of downloading source (saved in PC).

long MPdownSize(); [Get]


Remarks
Retrieve the downloaded data size.

short MPdownStatus(); [Get]


Remarks
Retrieve the internal status of downloading transfer.

INIT_STT (0) Initial status.


START_CHK (1) Checking to start procedure.
START_WAIT (2) Waiting for the completion of CNC-side preparation.
START_STR (3) Start function call in FANUC library
TRANS_ACT (4) Data is transferring.
TRANS_CMP (5) Data transfer completed and waiting for the completion
of CNC-side procedure.
TRANS_ERR (6) Data transfer error.

BSTR MPdownComment(); [Get]


Remarks
Retrieve the specified comment if specified the comment before downloading.
Retrieves the included comment, if the downloaded file includes O number and
comment,

L:¥PC¥Doc¥MML¥McComm_Eng.doc Page 12/28


Makino Milling Machine Libraries (MML) Makino Milling Machine Libraries (MML)

long MPdownOldOnum(); [Get]


Remarks
If the downloaded source file includes O number, and if specified another O
number as download destination, retrieves included O number.

long MPdownOnum(); [Get]


Remarks
Retrieve the downloading O number.
 If the downloaded source files includes O number, and if not specified
another O number as download destination;
 Retrieve the included O number.
 If the downloaded source files doesn‟t include O number, and if specified
another O number as download destination;
 Retrieve the specified O number.

BOOL MPdownOver(); [Get]


Remarks
If same O number already exists in the CNC memory, retrieves whether to
overwrite.

L:¥PC¥Doc¥MML¥McComm_Eng.doc Page 13/28


Makino Milling Machine Libraries (MML) Makino Milling Machine Libraries (MML)

3.2. Methods

void MMdownStart(LPCTSTR downFname,


LPCTSTR comment,
long onumber,
BOOL mainOverWrite,
BOOL subOverWrite);
Remarks
Start downloading.
Parameters
LPCTSTR downFname Specifies the full-path file name of the
downloading NC program.
This file name can be retrieved with
MPdownFname().
LPCTSTR comment Specifies the comment.
This comment can be retrieved with
MPdownComment().
long onumber Specifies the O number.
This O number can be retrieved with
MPdownOnum().
BOOL mainOverWrite If destination O number already exists in the CNC
memory, specifies whether overwrites the O
number.
BOOL subOverWrite If downloading NC program file includes more
than one O numbers, specifies whether overwrites
the 2nd (or later) O number.
Return Values
Refer to MVdownFinish() event.
Attention
 Downloading is independent of System mode.
 If specified O number is foreground searching, downloading cannot start. If
the specified NC program includes more than one O numbers, and if 2nd (or
later) O number is foreground searching, downloading cannot start.
 Downloading cannot start while back-editing.
 Downloading cannot start while CNC unit is memory protected.

L:¥PC¥Doc¥MML¥McComm_Eng.doc Page 14/28


Makino Milling Machine Libraries (MML) Makino Milling Machine Libraries (MML)

About Specified O number


(1) Downloading file includes O number;
If O number is specified as download destination, uses specified O number with
highest priority.
If O number is not specified (that is, ‟0‟ specified), uses included O number in
the file.
In the case downloading file includes O number and comment;
If comment is specified at downloading, uses specified comment.
If comment is not specified, uses included comment in the file.
As a result, if downloading file includes O number and comment, and if O
number is specified and comment is not specified, downloads with new O
number and old comment.
(2) Downloading file does not include O number;
It is necessary to specify O number as downloading destination. Without O
number causes error.

long MMgetDownFileInfo(LPCTSTR fileName,


long FAR* mainONum,
BSTR FAR* mainProgName,
long FAR* subONum,
BSTR FAR* subProgName,
short FAR* arraySize);
Remarks
Retrieve the information of downloaded file.
Parameters
LPCTSTR fileName, Specifies the „full-path‟ file name of
downloaded NC program.
long FAR* mainONum Retrieves main O number.
BSTR FAR* mainProgName Retrieves comment following to main O
number.
In Visual Basic, specify the Long variable.

L:¥PC¥Doc¥MML¥McComm_Eng.doc Page 15/28


Makino Milling Machine Libraries (MML) Makino Milling Machine Libraries (MML)

long FAR* subONum, Retrieves the array of 2nd and later O


numbers.
In Visual Basic, specify the Long array by
reference. This array must have „arraySize‟
items (index 0 to index arraySize-1).
BSTR FAR* subProgName, Retrieves the array of 2nd and later
comments.
In Visual Basic, specify the Long array by
reference. This array must have „arraySize‟
items (index 0 to index arraySize-1).
short FAR* arraySize Specifies the number of items of subONum
and subProgName arrays.
If number of 2nd and later O numbers is less
than arraySize, retrieves number of items
that retrieved new data.
Return Values
Return 0 as completed normally. Otherwise, returns the error status as completed
abnormally.
Error numbers are same as MVdownFinish() event.
Attention
The relation between onumbers and arraySize is as follows;
32 bit

item 0 1st O number


item 1 2nd O number
arraySize ・ ・
・ ・
Item arraySize-1 ArraySize-th O number

L:¥PC¥Doc¥MML¥McComm_Eng.doc Page 16/28


Makino Milling Machine Libraries (MML) Makino Milling Machine Libraries (MML)

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.

L:¥PC¥Doc¥MML¥McComm_Eng.doc Page 17/28


Makino Milling Machine Libraries (MML) Makino Milling Machine Libraries (MML)

3002 Read-error of downloading file.


3003 Download file exists, but its size is 0 byte (empty).
3020 Cannot open downloading file.
3025 Download file exists, but its size is 0 byte (empty).
3030 Seek-error of downloading file.
3031 Downloaded O number is neither specified nor included in
the downloading file.
3032 Specified or included comment is too long.
3060 Cannot downloading because specified file size exceeds the
max. size of CNC memory.
3070 (Internal Error, including communication disconnected)
3080 Specified O number is foreground searching in the
CNC-side.
3090 (Internal Error, including communication disconnected)
3110 (Internal Error, including communication disconnected)
3120 Background editing in the CNC-side.
3130 (Internal Error, including communication disconnected)
3140 Same O number already exists in the CNC memory.
3150 (Internal Error, including communication disconnected)
3151 Memory protected is ON.
3170 Cannot retrieve the downloading data size.
3180 (Internal Error, including communication disconnected)
3165 Cannot downloading because exceeds the max. count of O
numbers in the CNC memory.
3200 (Internal Error, including communication disconnected)
3201 Memory protected is ON.
3240 Cannot read downloading file.
3245 Downloading is interrupted from CNC unit.
3249 Memory protected is ON.
3250 Downloading file includes the characters that CNC cannot
recognize.
3260 (Internal Error, including communication disconnected)
3270 (Internal Error, including communication disconnected)
3280 (Internal Error)

L:¥PC¥Doc¥MML¥McComm_Eng.doc Page 18/28


Makino Milling Machine Libraries (MML) Makino Milling Machine Libraries (MML)

4. Uploading

4.1. Properties

BOOL MPupAction();[Get]
Remarks
Retrieve whether the MC is on uploading.

BSTR MPupFname(); [Get]


Remarks
Retrieve the file name of upload destination (saved in PC).

long MPupSize(); [Get]


Remarks
Retrieve the uploaded data size.

short MPupStatus(); [Get]


Remarks
Retrieve the internal status of uploading transfer.

INIT_STT (0) Initial status.


START_CHK (1) Checking to start procedure.
START_WAIT (2) Waiting for the completion of CNC-side preparation.
START_STR (3) Start function call in FANUC library
TRANS_ACT (4) Data is transferring.
TRANS_CMP (5) Data transfer completed and waiting for the completion
of CNC-side procedure.
TRANS_ERR (6) Data transfer error.

L:¥PC¥Doc¥MML¥McComm_Eng.doc Page 19/28


Makino Milling Machine Libraries (MML) Makino Milling Machine Libraries (MML)

long MPupOnum(); [Get]


Remarks
Uploading methods can specify more than one O numbers.
This property retrieves first specified O number.

long MPupOldOnum(); [Get]


Remarks
Retrieve the uploading O number.
This property is enabled only when more than one O numbers are specified with
uploading methods.
This property is equal to MPupOnum() property when single O number
uploading.

BOOL MPupOver(); [Get]


Remarks
If the same name file already exists that will be created with uploading, retrieves
whether to overwrite this file.

BOOL MPupAddPercent(); [Get/Let]


Remarks
Retrieve or set whether write „%‟ into the head and the tail of uploaded NC
program file.

L:¥PC¥Doc¥MML¥McComm_Eng.doc Page 20/28


Makino Milling Machine Libraries (MML) Makino Milling Machine Libraries (MML)

4.2. Methods

BSTR MMupDefFname(long onumber);


Remarks
Retrieve default file name of uploaded NC program.
Parameters
long onumber Specifies uploaded O number.
Return Values
Return the default file name.
Ex. ”C:¥MAKINO¥NCDATA¥O1000.DNC”

void MMupCatStart(LPCTSTR upFname,


long FAR* onumbers,
short arraySize,
BOOL overWrite);
Remarks
Start uploading.
Parameters
LPCTSTR upFname Specifies the uploaded file name that will be
created in the PC.
Same as MPupFname().
long FAR* onumbers Specifies uploaded O number(s).
In Visual Basic, specify the Long array by
reference. This array must have „arraySize‟ items
(index 0 to index arraySize-1).
If specifies only one O number, use the Long
array by reference too. In this case, set the O
number into the index 0 of the array.
short arraySize Specifies number of items of the O number array.
BOOL overWrite If the same name file as upFname already exists in
the PC, specifies whether overwrite this file.
Same as MPupOver().

L:¥PC¥Doc¥MML¥McComm_Eng.doc Page 21/28


Makino Milling Machine Libraries (MML) Makino Milling Machine Libraries (MML)

Return Values
Refer to MVupFinish() event.
Attention
The relation between onumbers and arraySize is as follows;
32 bit

item 0 1st O number


item 1 2nd O number
arraySize ・ …
・ …
item arraySize-1 ArraySize-th O number

L:¥PC¥Doc¥MML¥McComm_Eng.doc Page 22/28


Makino Milling Machine Libraries (MML) Makino Milling Machine Libraries (MML)

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.

L:¥PC¥Doc¥MML¥McComm_Eng.doc Page 23/28


Makino Milling Machine Libraries (MML) Makino Milling Machine Libraries (MML)

4000 Specified O number is invalid.


4010 Specified O number does not exist in CNC memory.
4020 (Internal Error, including communication disconnected)
4030 (Internal Error, including communication disconnected)
4040 (Internal Error, including communication disconnected)
4050 Cannot open the file for uploading.
4060 Same named file already exists in the PC.
4070 cannot write uploaded data into the file.
4080 (Internal Error, including communication disconnected)
4090 (Internal Error, including communication disconnected)
4100 (Internal Error, including communication disconnected)
4110 (Internal Error)
4120 (Internal Error)

L:¥PC¥Doc¥MML¥McComm_Eng.doc Page 24/28


Makino Milling Machine Libraries (MML) Makino Milling Machine Libraries (MML)

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.

L:¥PC¥Doc¥MML¥McComm_Eng.doc Page 25/28


Makino Milling Machine Libraries (MML) Makino Milling Machine Libraries (MML)

5.2. Methods

BOOL MMm198Terminate();
Remarks
Terminate M198 operation.

void MMgetM198DncSize(long FAR* oNumber,


BSTR FAR* fileName,
long FAR* dncSize);
Remarks
Retrieve the transfer data size and so on of M198 operation.

void MMgetM198DncStatus(long FAR* oNumber,


BSTR FAR* fileName,
short FAR* status);
Remarks
Retrieve the communication status of M198 operation.

void MMm198Start(long FAR* oNumber,


BSTR FAR* fileName,
short arraySize,
BOOL synchroCnc);
Remarks
Start M198 operation.

L:¥PC¥Doc¥MML¥McComm_Eng.doc Page 26/28


Makino Milling Machine Libraries (MML) Makino Milling Machine Libraries (MML)

5.3. Events

MVm198DncSize(long oNumber, LPCTSTR fileName, long size)


Remarks
Notify current O number, file name, transferred data size of M198 operation.

MVm198DncStatus(long oNumber, LPCTSTR fileName, short status)


Remarks
Notify the communication status of M198 operation.

MVm198Finish(long errorNo)
Remarks
Notify that M198 operation mode is finished.

MVm198DncFinish(long oNumber, LPCTSTR fileName, long errorNo)


Remarks
Notify either M198 transfer started as a result of request from MC to PC because
of M198P**** in the MC-side, or M198 transfer error.
Error Numbers
5010 (Internal Error, including communication disconnected)
5020 (Internal Error, including communication disconnected)
5030 (Internal Error, including communication disconnected)
5040 (Internal Error, including communication disconnected)
5050 (Internal Error, including communication disconnected)
5060 (Internal Error, including communication disconnected)
5070 CNC alarm occurred.
5075 The MC is Emergency Stopped.
5080 NC reset.
5090 M198 operation was interrupted from CNC unit.
5100 CNC alarm occurred.
5101 The MC is Emergency Stopped.
5105 (Internal Error, including communication disconnected)
5106 M30 was executed.
5107 (Internal Error, including communication disconnected)
5110 Cannot open the PC file corresponding to the specified O

L:¥PC¥Doc¥MML¥McComm_Eng.doc Page 27/28


Makino Milling Machine Libraries (MML) Makino Milling Machine Libraries (MML)

number with M198P****.


5120 (Internal Error, including communication disconnected)
5130 (Internal Error, including communication disconnected)
5140 There may be some troubles in the network.
5150 Cannot open the PC file corresponding to the specified O
number with M198P****.
5160 The PC file is 0 byte (empty), corresponding to the specified
O number with M198P****.
5170 Seek-error on the PC file corresponding to the specified O
number with M198P****.
5180 Cannot read the PC file corresponding to the specified O
number with M198P****.
5190 The PC file is 0 byte (empty), corresponding to the specified
O number with M198P****.
5200 (Internal Error, including communication disconnected)
5240 (Internal Error, including communication disconnected)
5260 (Internal Error, including communication disconnected)

- over -

L:¥PC¥Doc¥MML¥McComm_Eng.doc Page 28/28

You might also like